text: (window.webpackJsonp=window.webpackJsonp||[]).push([[47],{"./config/polyfills.js":function(e,t,n){"use strict";"undefined"==typeof Promise&&(n("./node_modules/promise/lib/rejection-tracking.js").enable(),window.Promise=n("./node_modules/promise/lib/es6-extensions.js")),n("./node_modules/isomorphic-fetch/fetch-npm-browserify.js"),Object.assign=n("./node_modules/object-assign/index.js"),Object.entries||n("./node_modules/object.entries/index.js").shim(),n("./node_modules/raf/polyfill.js"),n("./node_modules/core-js/fn/array/from.js"),n("./node_modules/core-js/fn/array/find.js"),n("./node_modules/core-js/fn/object/values.js"),n("./node_modules/core-js/fn/string/starts-with.js"),n("./node_modules/core-js/fn/promise/finally.js"),n("./node_modules/core-js/es6/map.js"),n("./node_modules/core-js/es6/set.js"),n("./node_modules/core-js/es6/symbol.js"),n("./node_modules/core-js/fn/array/find-index.js"),n("./node_modules/core-js/fn/array/includes.js"),n("./node_modules/core-js/fn/symbol/iterator.js"),n("./node_modules/url-polyfill/url-polyfill.js"),"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype||n("./node_modules/intersection-observer/intersection-observer.js")},"./src/App.tsx":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./node_modules/react-loadable/lib/index.js"),c=n.n(i),s=n("./node_modules/react-redux/es/index.js"),l=n("./node_modules/react-helmet-async/lib/index.module.js"),u=n("./node_modules/react-router/esm/react-router.js"),d=n("./src/components/branch-banner/helpers/index.ts"),m=n("./src/components/session/RequireFlag.tsx"),p=n("./src/components/session/WithFlag.tsx"),f=n("./src/store/actions/branch.ts"),h=function(e){var t=e.initialPageLoaded,n=Object(s.f)((function(e){return{branchKey:e.config.branchKey,isAmp:e.config.isAmp,show:e.navigation.branch.show,hasRendered:e.navigation.branch.hasRendered,blockedByCTA:e.navigation.branch.blockedByCTA,data:e.navigation.branch.data,isBot:e.client.isBot}}),s.d),r=n.branchKey,o=n.isAmp,i=n.show,c=n.hasRendered,h=n.blockedByCTA,g=n.data,b=n.isBot,v=Object(s.e)(),E=Object(u.g)();return a.useEffect((function(){i&&Object(d.d)()}),[E]),a.useEffect((function(){i&&!h&&Object(d.e)((function(){}),g||{})}),[g,h]),a.useEffect((function(){t&&!c&&v(Object(f.i)(!0))})),b||o?null:t&&c&&a.createElement(m.a,{name:"enable_branch_io"},a.createElement(p.a,{name:"dont_track_user"},(function(e){return a.createElement(l.a,null,a.createElement("script",{type:"text/javascript"},function(e){var t=e.branchKey,n=e.dontTrackUser,r=String(n);return'\n(function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="https://cdn.branch.io/branch-latest.min.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener applyCode autoAppIndex banner closeBanner closeJourney creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode trackCommerceEvent logEvent".split(" "), 0);\nbranch.init(\''.concat(t,"', {metadata: {}, 'no_journeys': true, 'disable_exit_animation': true, 'disable_entry_animation': true, 'tracking_disabled': ").concat(r,"}, function(err, data) {});\n").trim()}({branchKey:r,dontTrackUser:e})))})))},g=n("./src/components/debug/GoogleAnalytics.tsx"),b=c()({loader:function(){return n.e(21).then(n.bind(null,"./src/components/debug/DebugInfo.tsx"))},modules:["src/components/debug/DebugInfo"],webpack:function(){return["./src/components/debug/DebugInfo.tsx"]},loading:function(){return null}});function v(){return a.createElement(m.a,{name:"trace_ui"},a.createElement(b,null))}var E=function(){return a.createElement("script",null,"document.domain = document.domain;")},y=n("./src/components/privacy/EuPrivacyBannerLoader.tsx"),O=n("./src/components/session/useFlag.tsx"),x=function(){var e=Object(O.b)("enable_post_page_curation_tools"),t=e.loading,n=e.value;return t||n?null:a.createElement("div",{dangerouslySetInnerHTML:{__html:'<script>if (window.self !== window.top) window.location = "about:blank"<\/script>'}})},_=n("./src/components/session/WithViewer.tsx"),w=n("./src/components/style/BaseThemeProvider.tsx"),S=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),j=n.n(S),P=n("./src/framework/style/index.ts"),C=n("./src/styles/breakpoints.ts"),k=n("./src/styles/newBreakpoints.ts"),T=function(e){var t;return t={},j()(t,C.xl(e),{display:"none"}),j()(t,C.lg(e),{display:"none"}),j()(t,C.md(e),{display:"none"}),j()(t,C.sm(e),{display:"none"}),j()(t,C.xs(e),{display:"none"}),j()(t,k.xl(e),{display:"none"}),j()(t,k.lg(e),{display:"none"}),j()(t,k.md(e),{display:"none"}),j()(t,k.sm(e),{display:"none"}),j()(t,k.xs(e),{display:"none"}),t};function I(){var e=Object(P.useCx)();return a.createElement("div",{className:e(T)})}var R=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),N=n.n(R),A=n("./node_modules/@apollo/react-components/lib/react-components.esm.js"),L=n("./node_modules/graphql-tag/src/index.js"),D=n.n(L),U=n("./src/components/navigation/Redirect.tsx"),M=n("./src/components/susi/helpers/index.ts"),F=n("./src/components/susi/susi-modal/SusiModalLayout.tsx"),B=n("./src/framework/design-system/components/index.ts"),H=n("./src/framework/design-system/type/index.ts"),V=n("./src/framework/source/index.ts"),z=n("./src/styles/zIndex.ts"),G=n("./src/util/navigation.ts"),W=n("./src/util/routes.ts"),q=function(e){var t=e.idToken,n=e.onClose,r=void 0===n?function(){}:n,o=e.openSignIn,i=e.signInHref,c=Object(s.f)((function(e){return{authDomain:e.config.authDomain,currentLocation:e.navigation.currentLocation,isCustomDomain:e.client.isCustomDomain,productName:e.config.productName}})),l=c.authDomain,u=c.currentLocation,d=c.isCustomDomain,m=c.productName,p={state:["",Object(M.a)(u,Object(V.d)(),d?"google_one_tap_cd":"google_one_tap"),"register"].join("|")},f=Object(W.V)(l),h=Object(G.a)(f,p);return h="".concat(h,"#id_token=").concat(t),a.createElement(B.b,{border:"BASE_LIGHT",backgroundColor:"BACKGROUND",borderRadius:"4px",height:"183px",padding:"12px 26px 12px 16px",position:"fixed",top:"34px",right:"22px",width:"378px",zIndex:z.a.floating,sm:{top:"initial",bottom:"0px",right:"initial",left:"0px",width:"100%"}},a.createElement(B.b,{display:"flex",justifyContent:"space-between",marginRight:"-16px"},a.createElement(H.b,{scale:"S"},"Continue to ",m),a.createElement(B.g,{isPositionAbsolute:!1,onClick:r,size:"LARGE"})),a.createElement(B.b,{marginTop:"15px",display:"flex",alignItems:"center",justifyContent:"flex-start"},a.createElement(B.b,{marginRight:"12px"},a.createElement(B.c,{buttonStyle:"STRONG",href:h},"Sign up")),a.createElement(H.a,{scale:"M"},"Already have an account?"," ",a.createElement(B.b,{display:"inline",marginLeft:"6px"},a.createElement(B.t,{href:i,linkStyle:"OBVIOUS",onClick:function(e){e.preventDefault(),o()}},"Sign in")))),a.createElement(B.b,{marginTop:"16px"},a.createElement(F.a,{ctaText:"Sign Up"})))},Y=n("./src/framework/reporter/index.ts"),K=n("./src/routes/RoutingContext.tsx"),X=n("./src/screens/ErrorScreen.tsx"),Q=n("./src/screens/helpers/visits.ts"),$=n("./src/store/actions/googleOneTap.ts"),J=n("./src/store/actions/navigation.ts"),Z=n("./src/util/constants.ts"),ee=n("./src/util/hooks/useScript.tsx"),te=n("./src/util/referrers.ts");function ne(){var e=N()(["\n  query EmailAvailability($email: String) {\n    emailAvailability(email: $email)\n  }\n"]);return ne=function(){return e},e}var re=new Set(["ShowHome","ShowPost","ShowPostUnderUser","ShowPostUnderCollection","ShowUser","ShowSequenceLibrary","ShowSequencePost","ShowCollectionHome"]);function oe(e){return!!e&&re.has(e.route.name)}function ae(e){var t=e.initialPageLoaded,n=e.isLoggedIn,r=Object(s.e)(),i=Object(s.f)((function(e){return{isCustomDomain:e.client.isCustomDomain,authDomain:e.config.authDomain,authGoogleClientId:e.config.authGoogleClientId,currentLocation:e.navigation.currentLocation,hideGoogleOneTap:e.navigation.hideGoogleOneTap,referrer:e.navigation.referrer}}),s.d),c=i.currentLocation,l=i.hideGoogleOneTap,u=i.referrer,d=i.isCustomDomain,m=i.authDomain,p=i.authGoogleClientId,f=Object(O.a)("enable_google_one_tap_on_subdomains"),h=Object(O.a)("enable_google_one_tap"),g=a.useState(!1),b=o()(g,2),v=b[0],E=b[1],y=a.useState("SHOW_GOOGLE_ONE_TAP"),x=o()(y,2),_=x[0],w=x[1],S=Object(P.useTheme)(),j=a.useState({email:"",idToken:""}),C=o()(j,2),k=C[0],T=C[1],I=Object(K.c)(),R=Object(G.g)(c,m),N=d?"google_one_tap_cd":"google_one_tap";if(a.useEffect((function(){var e;n||(e=Object(Q.b)())&&e>Date.now()-Z.e||!(!d||f&&R)||Object(te.c)(u)&&window.innerWidth<S.breakpoints.md||!(oe(I(window.location.pathname))||f&&oe(I(window.location.pathname)))?r(Object($.c)(!1)):E(!0)}),[]),a.useEffect((function(){l&&v&&t&&window&&window.google&&window.google.accounts&&window.google.accounts.id&&window.google.accounts.id.cancel()}),[l,v,t]),!v||l&&"SHOW_SIGN_IN"!==_)return null;switch(_){case"SHOW_GOOGLE_ONE_TAP":return h?a.createElement(ie,{authGoogleClientId:p,setCredential:T,verifyEmail:function(){return w("VERIFY_EMAIL")},susiEntry:N}):null;case"VERIFY_EMAIL":return a.createElement(A.b,{query:ce,variables:{email:k.email}},(function(e){var t=e.loading,n=e.error,r=e.data,o=(r=void 0===r?{}:r).emailAvailability;return t?null:n?a.createElement(X.a,{error:n}):(w(o?"CONFIRM_SIGNUP":"SUCCESSFUL_SIGNIN"),null)}));case"CONFIRM_SIGNUP":return a.createElement(V.b,{source:{susiEntry:N,name:"register"}},a.createElement(q,{idToken:k.idToken,onClose:function(){return w("")},openSignIn:function(){w("SHOW_SIGN_IN")},signInHref:Object(W.Eb)(m,c)}));case"SUCCESSFUL_SIGNIN":var L={state:["",Object(M.a)(c,Object(V.c)({susiEntry:N,name:"login"}),N)].join("|")},D=Object(W.V)(m),F=Object(G.a)(D,L);return F="".concat(F,"|#id_token=").concat(k.idToken),a.createElement(U.a,{to:F});case"SHOW_SIGN_IN":return r(Object(J.s)({step:"SIGNIN_OPTIONS",operation:"login",susiEntry:N})),null;default:return null}}function ie(e){var t=e.authGoogleClientId,n=e.setCredential,r=e.verifyEmail,i=e.susiEntry,c=a.useState(!1),l=o()(c,2),u=l[0],d=l[1],m=Object(s.e)(),p=Object(Y.c)();return a.useEffect((function(){u&&p.event("susi.viewed",{entryPoint:i,operation:"connect"})}),[u]),window.onGoogleLibraryLoad=function(){window.google.accounts.id.initialize({client_id:t,cancel_on_tap_outside:!1,callback:function(e){n({email:JSON.parse(atob(e.credential.split(".")[1])).email,idToken:e.credential}),r()}}),window.google.accounts.id.prompt((function(e){e.isSkippedMoment()?"user_cancel"===e.getSkippedReason()&&Object(Q.j)():e.isNotDisplayed()||(d(!0),m(Object($.c)(!0)))}))},Object(ee.a)("https://accounts.google.com/gsi/client"),null}var ce=D()(ne()),se=n("./src/components/susi/helpers/useReduxSusi.tsx"),le=n("./src/components/susi/susi-modal/SusiContainer.tsx"),ue=function(){var e=Object(se.a)(),t=e.resetModal,n=e.susiModalConfig,r=n.step,o=n.susiEntry,i=n.operation;return a.createElement(B.I,{initialVisibility:!!r},(function(e){var n=e.hide;return a.createElement(V.b,{source:{susiEntry:o,name:i},extendSource:!0},a.createElement(le.a,{hide:function(){n(),t()}}))}))};var de=Object(s.c)()((function(e){var t=e.email,n=e.dispatch,r=e.isLoggedin&&!t;return a.useEffect((function(){r&&n(Object(J.m)({duration:"FOREVER",message:"",toastStyle:"VERIFY_EMAIL"}))}),[]),null}));var me=function(e){var t=e.isSuspended,n=Object(s.e)();return a.useEffect((function(){t&&n(Object(J.m)({duration:"FOREVER",message:"",toastStyle:"USER_SUSPENDED"}))}),[t]),null},pe=n("./node_modules/@babel/runtime/helpers/extends.js"),fe=n.n(pe),he=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),ge=n.n(he),be=n("./node_modules/@babel/runtime/helpers/createClass.js"),ve=n.n(be),Ee=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),ye=n.n(Ee),Oe=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),xe=n.n(Oe),_e=n("./node_modules/@babel/runtime/helpers/inherits.js"),we=n.n(_e),Se=n("./src/framework/design-system/components/portal/ui/Toast.tsx"),je=n("./src/framework/design-system/components/util/VisibilityController.tsx"),Pe=function(e){function t(e){var n;ge()(this,t),n=ye()(this,xe()(t).call(this,e));var r=e.enqueuedToast;return r&&n.props.dispatch(Object(J.l)()),n.state={currentToast:r||void 0,toastCount:1},n}return we()(t,e),ve()(t,[{key:"componentWillReceiveProps",value:function(e){var t,n=e.enqueuedToast,r=e.currentLocation,o="NEXTPAGE"===(null===(t=this.state.currentToast)||void 0===t?void 0:t.duration)&&r!==this.props.currentLocation;(n||o)&&(this.props.dispatch(Object(J.l)()),this.setState((function(e){return{currentToast:n||void 0,toastCount:e.toastCount+1}})))}},{key:"render",value:function(){var e=this.state,t=e.currentToast,n=e.toastCount;if(!t)return null;var r={};"FOREVER"!==t.duration&&"NEXTPAGE"!==t.duration&&(r.duration=t.duration),t.toastStyle&&(r.toastStyle=t.toastStyle);var o=a.createElement(B.d,{strong:!0},t.message);return t.toastStyle&&Se.b[t.toastStyle]&&(o=t.message),[a.createElement(je.a,{key:n,initialVisibility:!0},(function(e){var t=e.isVisible,n=e.hide;return a.createElement(B.G,fe()({isVisible:t,hide:n},r),o)}))]}}]),t}(a.Component),Ce=Object(s.c)((function(e){return{enqueuedToast:e.navigation.enqueuedToast,currentLocation:e.navigation.currentLocation}}))(Pe),ke=n("./src/framework/reporter/performance.tsx"),Te=n("./src/store/selectors/session.ts"),Ie=n("./src/util/performance.ts"),Re=n("./node_modules/@babel/runtime/regenerator/index.js"),Ne=n.n(Re),Ae=n("./src/store/actions/tracing.ts"),Le=function(e){var t=e.productName;return a.createElement(a.Fragment,null,a.createElement(l.a,{htmlAttributes:{lang:"en"}},a.createElement("meta",{charset:"utf-8"}),a.createElement("meta",{name:"viewport",content:"width=device-width,minimum-scale=1,initial-scale=1"}),a.createElement("title",null,t),a.createElement("meta",{name:"theme-color",content:"#000000"}),a.createElement("meta",{name:"twitter:app:name:iphone",content:"Medium"}),a.createElement("meta",{name:"twitter:app:id:iphone",content:"828256236"}),a.createElement("meta",{property:"al:ios:app_name",content:"Medium"}),a.createElement("meta",{property:"al:ios:app_store_id",content:"828256236"}),a.createElement("meta",{property:"al:android:package",content:"com.medium.reader"}),a.createElement("meta",{property:"al:android:app_name",content:"Medium"}),a.createElement("meta",{property:"fb:app_id",content:"542599432471018"}),a.createElement("meta",{property:"og:site_name",content:"Medium"}),a.createElement("link",{rel:"search",type:"application/opensearchdescription+xml",title:"Medium",href:"/osd.xml"}),'\x3c!--[if lt IE 9]><script charset="UTF-8" src="https://cdn-static-1.medium.com/_/fp/js/shiv.RI2ePTZ5gFmMgLzG5bEVAA.js"><\/script><![endif]--\x3e',a.createElement("link",{rel:"apple-touch-icon",sizes:"152x152",href:"https://cdn-images-1.medium.com/fit/c/152/152/1*8I-HPL0bfoIzGied-dzOvA.png"}),a.createElement("link",{rel:"apple-touch-icon",sizes:"120x120",href:"https://cdn-images-1.medium.com/fit/c/120/120/1*8I-HPL0bfoIzGied-dzOvA.png"}),a.createElement("link",{rel:"apple-touch-icon",sizes:"76x76",href:"https://cdn-images-1.medium.com/fit/c/76/76/1*8I-HPL0bfoIzGied-dzOvA.png"}),a.createElement("link",{rel:"apple-touch-icon",sizes:"60x60",href:"https://cdn-images-1.medium.com/fit/c/60/60/1*8I-HPL0bfoIzGied-dzOvA.png"}),a.createElement("link",{rel:"mask-icon",href:"https://cdn-static-1.medium.com/_/fp/icons/monogram-mask.KPLCSFEZviQN0jQ7veN2RQ.svg",color:"#171717"})))},De=n("./src/util/glyph.ts"),Ue=function(e){var t,n=e.glyphUrl,r=Object(O.a)("glyph_font_set"),o=Object(s.f)((function(e){return e.config.isAmp}));switch(Object(O.a)("glyph_embed_commands")){case"none":t="";break;case"none_swap":t="/swap";break;case"title":t="/e/sr/latin/e/ssr/latin/e/ssb/latin/e/title/latin";break;case"title_swap":t="/e/sr/latin/e/ssr/latin/e/ssb/latin/e/title/latin/swap";break;case"more":t="/e/sr/latin/e/ssr/latin/e/ssb/latin/e/title/latin/e/ssr/rest";break;case"control":default:t="/e/sr/latin/e/ssr/latin/e/ssb/latin"}return a.createElement(l.a,null,a.createElement("link",{id:"glyph_link",rel:"stylesheet",type:"text/css",href:Object(De.a)({fontFamilyPath:t,glyphFontSet:String(r),glyphUrl:n,isAmp:o})}))},Me=n("./node_modules/@babel/runtime/helpers/typeof.js"),Fe=n.n(Me),Be=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),He=n("./node_modules/@apollo/react-ssr/lib/react-ssr.esm.js"),Ve=n("./src/apollo/CustomApolloProvider.tsx"),ze=n("./src/components/style/FelaRendererProvider.tsx"),Ge=n("./src/components/style/RendererContext.tsx"),We=c()({loader:function(){return n.e(49).then(n.bind(null,"./src/routes/NavigationTimingReporter.tsx"))},modules:["src/routes/NavigationTimingReporter"],webpack:function(){return["./src/routes/NavigationTimingReporter.tsx"]},loading:function(){return null}});function qe(e){var t,n,r,o,i,c=e.to,l=e.from;return t=Object(s.f)((function(e){return{currentLocation:e.navigation.currentLocation,referrer:e.navigation.referrer,referrerSource:e.navigation.referrerSource}}),s.d),n=t.currentLocation,r=t.referrer,o=t.referrerSource,i=Object(Y.c)(),a.useEffect((function(){i.event("client.navigate",{metadata:{},newPath:n||"",oldPath:r||"",source:o||""})}),[n]),a.createElement(We,{to:c,from:l})}var Ye=n("./src/log/index.ts"),Ke=n("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),Xe=n.n(Ke),Qe=n("./node_modules/lodash/isEqual.js"),$e=n.n(Qe),Je=n("./node_modules/querystring-es3/index.js");function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){return Array.isArray(e)?e[0]:e}var tt=function(e){var t=e.name,n=e.component,r=e.render,o=e.exact,i=void 0===o||o,c=Xe()(e,["name","component","render","exact"]),l=Object(s.e)();return a.createElement(u.b,fe()({},c,{exact:i,render:function(e){var o,i=!1;if(e.location){if((o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){j()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.location)).hash&&l(Object(J.n)(e.location.hash)),o.search){var c=Object(Je.parse)(o.search.slice(1));c._branch_view_id&&(i=!0),c.source&&l(Object(J.q)(et(c.source))),c.redirectUrl&&l(Object(J.t)(et(c.redirectUrl))),l(Object(J.r)(et("true"===c.responsesOpen))),delete o.search}o.pathname.match(/.+\/$/)&&(o.pathname=o.pathname.replace(/\/$/,""))}var s=null;return e.staticContext?(e.staticContext.route={name:t},o&&l(Object(J.o)(o.pathname))):(l(Object(J.o)(e.location.pathname)),!o||$e()(e.location,o)||i||(s=a.createElement(u.a,{to:o}))),n?a.createElement(a.Fragment,null,s,a.createElement(n,e)):r?a.createElement(a.Fragment,null,s,r(e)):null}}))},nt=n("./src/screens/LoadingScreen.tsx");function rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(n),!0).forEach((function(t){j()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var at={delay:300,timeout:2e4,loading:function(e){return e.error?a.createElement(X.a,{error:e.error}):e.timedOut?a.createElement(X.a,{error:new Error("Loadable Screen component has timed out")}):e.pastDelay?a.createElement(nt.a,null):null}},it=function(e){return function(t,n){var r=t[e];return a.createElement(r,n)}},ct={LoadableAboutHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(8),n.e(12)]).then(n.bind(null,"./src/handlers/AboutHandler.tsx"))},modules:["src/handlers/AboutHandler"],webpack:function(){return["./src/handlers/AboutHandler.tsx"]},render:it("AboutHandler")})),LoadableAMPPostHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(3),n.e(1),n.e(2),n.e(11)]).then(n.bind(null,"./src/handlers/AMPPostHandler.tsx"))},modules:["src/handlers/AMPPostHandler"],webpack:function(){return["./src/handlers/AMPPostHandler.tsx"]},render:it("AMPPostHandler")})),LoadableBillingHistoryHandler:c()(ot({},at,{loader:function(){return n.e(13).then(n.bind(null,"./src/handlers/BillingHistoryHandler.tsx"))},modules:["src/handlers/BillingHistoryHandler"],webpack:function(){return["./src/handlers/BillingHistoryHandler.tsx"]},render:it("BillingHistoryHandler")})),LoadableCollectionHomepageHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(9),n.e(1),n.e(2),n.e(14)]).then(n.bind(null,"./src/handlers/CollectionHomepageHandler.tsx"))},modules:["src/handlers/CollectionHomepageHandler"],webpack:function(){return["./src/handlers/CollectionHomepageHandler.tsx"]},render:it("CollectionHomepageHandler")})),LoadableCollectionHomepagePreviewHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(9),n.e(1),n.e(2),n.e(15)]).then(n.bind(null,"./src/handlers/CollectionHomepagePreviewHandler.tsx"))},modules:["src/handlers/CollectionHomepagePreviewHandler"],webpack:function(){return["./src/handlers/CollectionHomepagePreviewHandler.tsx"]},render:it("CollectionHomepagePreviewHandler")})),LoadableCollectionNewShortformEditorHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(7),n.e(1),n.e(5),n.e(16)]).then(n.bind(null,"./src/handlers/CollectionNewShortformEditorHandler.tsx"))},modules:["src/handlers/CollectionNewShortformEditorHandler"],webpack:function(){return["./src/handlers/CollectionNewShortformEditorHandler.tsx"]},render:it("CollectionNewShortformEditorHandler")})),LoadableCollectionPostShortformEditorHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(7),n.e(1),n.e(5),n.e(17)]).then(n.bind(null,"./src/handlers/CollectionPostShortformEditorHandler.tsx"))},modules:["src/handlers/CollectionPostShortformEditorHandler"],webpack:function(){return["./src/handlers/CollectionPostShortformEditorHandler.tsx"]},render:it("CollectionPostShortformEditorHandler")})),LoadableCollectionStyleEditorHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(4),n.e(10),n.e(51),n.e(18)]).then(n.bind(null,"./src/handlers/CollectionStyleEditorHandler.tsx"))},modules:["src/handlers/CollectionStyleEditorHandler"],webpack:function(){return["./src/handlers/CollectionStyleEditorHandler.tsx"]},render:it("CollectionStyleEditorHandler")})),LoadableDebugCachedPostHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(3),n.e(1),n.e(2),n.e(20)]).then(n.bind(null,"./src/handlers/DebugCachedPostHandler.tsx"))},modules:["src/handlers/DebugCachedPostHandler"],webpack:function(){return["./src/handlers/DebugCachedPostHandler.tsx"]},render:it("DebugCachedPostHandler")})),LoadableDebugHandler:c()(ot({},at,{loader:function(){return n.e(19).then(n.bind(null,"./src/handlers/DebugHandler.tsx"))},modules:["src/handlers/DebugHandler"],webpack:function(){return["./src/handlers/DebugHandler.tsx"]},render:it("DebugHandler")})),LoadableLOHomepageHandler:c()(ot({},at,{loader:function(){return n.e(22).then(n.bind(null,"./src/handlers/LOHomepageHandler.tsx"))},modules:["src/handlers/LOHomepageHandler"],webpack:function(){return["./src/handlers/LOHomepageHandler.tsx"]},render:it("LOHomepageHandler")})),LoadableMembershipHandler:c()(ot({},at,{loader:function(){return n.e(23).then(n.bind(null,"./src/handlers/MembershipHandler.tsx"))},modules:["src/handlers/MembershipHandler"],webpack:function(){return["./src/handlers/MembershipHandler.tsx"]},render:it("MembershipHandler")})),LoadableMutedEntitiesHandler:c()(ot({},at,{loader:function(){return n.e(24).then(n.bind(null,"./src/handlers/MutedEntitiesHandler.tsx"))},modules:["src/handlers/MutedEntitiesHandler"],webpack:function(){return["./src/handlers/MutedEntitiesHandler.tsx"]},render:it("MutedEntitiesHandler")})),LoadableNewsletterV2StatsHandler:c()(ot({},at,{loader:function(){return n.e(25).then(n.bind(null,"./src/handlers/NewsletterV2StatsHandler.tsx"))},modules:["src/handlers/NewsletterV2StatsHandler"],webpack:function(){return["./src/handlers/NewsletterV2StatsHandler.tsx"]},render:it("NewsletterV2StatsHandler")})),LoadableNewsletterV3LandingHandler:c()(ot({},at,{loader:function(){return n.e(26).then(n.bind(null,"./src/handlers/NewsletterV3LandingHandler.tsx"))},modules:["src/handlers/NewsletterV3LandingHandler"],webpack:function(){return["./src/handlers/NewsletterV3LandingHandler.tsx"]},render:it("NewsletterV3LandingHandler")})),LoadableNewsletterV3SettingsHandler:c()(ot({},at,{loader:function(){return n.e(27).then(n.bind(null,"./src/handlers/NewsletterV3SettingsHandler.tsx"))},modules:["src/handlers/NewsletterV3SettingsHandler"],webpack:function(){return["./src/handlers/NewsletterV3SettingsHandler.tsx"]},render:it("NewsletterV3SettingsHandler")})),LoadableNotAvailableHandler:c()(ot({},at,{loader:function(){return n.e(28).then(n.bind(null,"./src/handlers/NotAvailableHandler.tsx"))},modules:["src/handlers/NotAvailableHandler"],webpack:function(){return["./src/handlers/NotAvailableHandler.tsx"]},render:it("NotAvailableHandler")})),LoadablePackageBuilderHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(4),n.e(1),n.e(2),n.e(29)]).then(n.bind(null,"./src/handlers/PackageBuilderHandler.tsx"))},modules:["src/handlers/PackageBuilderHandler"],webpack:function(){return["./src/handlers/PackageBuilderHandler.tsx"]},render:it("PackageBuilderHandler")})),LoadablePayHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(52),n.e(30)]).then(n.bind(null,"./src/handlers/PayHandler.tsx"))},modules:["src/handlers/PayHandler"],webpack:function(){return["./src/handlers/PayHandler.tsx"]},render:it("PayHandler")})),LoadablePostHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(3),n.e(1),n.e(2),n.e(31)]).then(n.bind(null,"./src/handlers/PostHandler.tsx"))},modules:["src/handlers/PostHandler"],webpack:function(){return["./src/handlers/PostHandler.tsx"]},render:it("PostHandler")})),LoadablePostSettingsHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(4),n.e(1),n.e(2),n.e(32)]).then(n.bind(null,"./src/handlers/PostSettingsHandler.tsx"))},modules:["src/handlers/PostSettingsHandler"],webpack:function(){return["./src/handlers/PostSettingsHandler.tsx"]},render:it("PostSettingsHandler")})),LoadableReadingListHandler:c()(ot({},at,{loader:function(){return n.e(33).then(n.bind(null,"./src/handlers/ReadingListHandler.tsx"))},modules:["src/handlers/ReadingListHandler"],webpack:function(){return["./src/handlers/ReadingListHandler.tsx"]},render:it("ReadingListHandler")})),LoadableSequenceLibraryHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(10),n.e(1),n.e(2),n.e(34)]).then(n.bind(null,"./src/handlers/SequenceLibraryHandler.tsx"))},modules:["src/handlers/SequenceLibraryHandler"],webpack:function(){return["./src/handlers/SequenceLibraryHandler.tsx"]},render:it("SequenceLibraryHandler")})),LoadableSequencePostHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(3),n.e(1),n.e(2),n.e(35)]).then(n.bind(null,"./src/handlers/SequencePostHandler.tsx"))},modules:["src/handlers/SequencePostHandler"],webpack:function(){return["./src/handlers/SequencePostHandler.tsx"]},render:it("SequencePostHandler")})),LoadableSeriesHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(3),n.e(8),n.e(1),n.e(36)]).then(n.bind(null,"./src/handlers/SeriesHandler.tsx"))},modules:["src/handlers/SeriesHandler"],webpack:function(){return["./src/handlers/SeriesHandler.tsx"]},render:it("SeriesHandler")})),LoadableStatsPostHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(4),n.e(53),n.e(37)]).then(n.bind(null,"./src/handlers/StatsPostHandler.tsx"))},modules:["src/handlers/StatsPostHandler"],webpack:function(){return["./src/handlers/StatsPostHandler.tsx"]},render:it("StatsPostHandler")})),LoadableTickLandingPageHandler:c()(ot({},at,{loader:function(){return n.e(38).then(n.bind(null,"./src/handlers/landing-pages/ticks/TickLandingPageHandler.tsx"))},modules:["src/handlers/landing-pages/ticks/TickLandingPageHandler"],webpack:function(){return["./src/handlers/landing-pages/ticks/TickLandingPageHandler.tsx"]},render:it("TickLandingPageHandler")})),LoadableTopicHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(6),n.e(39)]).then(n.bind(null,"./src/handlers/TopicHandler.tsx"))},modules:["src/handlers/TopicHandler"],webpack:function(){return["./src/handlers/TopicHandler.tsx"]},render:it("TopicHandler")})),LoadableTrendingPostsHandler:c()(ot({},at,{loader:function(){return n.e(40).then(n.bind(null,"./src/handlers/TrendingPostsHandler.tsx"))},modules:["src/handlers/TrendingPostsHandler"],webpack:function(){return["./src/handlers/TrendingPostsHandler.tsx"]},render:it("TrendingPostsHandler")})),LoadableTributeLandingPageHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(54),n.e(1),n.e(2),n.e(41)]).then(n.bind(null,"./src/handlers/landing-pages/tribute/TributeLandingPageHandler.tsx"))},modules:["src/handlers/landing-pages/tribute/TributeLandingPageHandler"],webpack:function(){return["./src/handlers/landing-pages/tribute/TributeLandingPageHandler.tsx"]},render:it("TributeLandingPageHandler")})),LoadableTrumplandLandingPageHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(42)]).then(n.bind(null,"./src/handlers/landing-pages/trumpland/TrumplandLandingPageHandler.tsx"))},modules:["src/handlers/landing-pages/trumpland/TrumplandLandingPageHandler"],webpack:function(){return["./src/handlers/landing-pages/trumpland/TrumplandLandingPageHandler.tsx"]},render:it("TrumplandLandingPageHandler")})),LoadableUserProfileHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(6),n.e(43)]).then(n.bind(null,"./src/handlers/UserProfileHandler.tsx"))},modules:["src/handlers/UserProfileHandler"],webpack:function(){return["./src/handlers/UserProfileHandler.tsx"]},render:it("UserProfileHandler")})),LoadableYourStoriesHandler:c()(ot({},at,{loader:function(){return Promise.all([n.e(6),n.e(44)]).then(n.bind(null,"./src/handlers/YourStoriesHandler.tsx"))},modules:["src/handlers/YourStoriesHandler"],webpack:function(){return["./src/handlers/YourStoriesHandler.tsx"]},render:it("YourStoriesHandler")}))},st=n("./src/screens/NotFoundScreen.tsx"),lt=function(){return a.createElement(tt,{name:"unknown",render:function(e){return a.createElement(st.a,{loggingData:{reason:3,props:e}})}})};function ut(e){var t=e.fallback,n=void 0===t?lt:t,r=e.location,o=Object(u.g)(),i=(r=r||o).pathname,c=Object(K.e)(i);if(!c)return a.createElement(n,null);var s=c.route,l=c.params,d=s.service,m=s.name,p=s.pathPattern,f=function(e){var t,n=e.handler,r=e.service,o=e.name;return"string"==typeof n?(t=ct[n]||ct["Loadable".concat(n)],"lite"!==r||t||Ye.a.warn({handler:n,routeName:o},"No Lite handler found for route.")):t=n,t}(s);if("lite"!==d||!f)return a.createElement(n,null);var h={params:l,path:p,url:i,isExact:!0};return a.createElement(tt,{key:r.pathname,location:r,name:m,component:f,computedMatch:h})}var dt=n("./src/store/index.ts");function mt(){void 0!==("undefined"==typeof window?"undefined":Fe()(window))&&window.scrollTo(0,0)}var pt=l.b,ft=function(e){var t=e.loading,n=Object(u.g)(),r=Object(Y.c)(),i=a.useContext(Ge.a),c=a.useContext(s.b).store,l=Object(K.f)(),d=Object(Be.b)(),m=a.useState(n),p=o()(m,2),f=p[0],h=p[1],g=a.useRef(n),b=a.useRef(new Set([n.pathname]));return a.useEffect((function(){if(g.current=n,b.current.has(n.pathname))return mt(),void h(n);pt.canUseDOM=!1,Object(He.a)(a.createElement(u.d,{location:n,context:{}},a.createElement(Ve.a,{client:d},a.createElement(s.a,{store:Object(dt.a)(c.getState())},a.createElement(pt,null,a.createElement(ze.a,{renderer:i},a.createElement(Y.b,{reporter:r},a.createElement(w.b,null,a.createElement(K.a.Provider,{value:l},a.createElement(ut,null)))))))))).then((function(){pt.canUseDOM=!0,b.current.add(n.pathname),n===g.current&&(mt(),h(n))}))}),[n]),a.createElement(a.Fragment,null,a.createElement(qe,{to:n,from:f}),t&&n.pathname!==f.pathname?a.createElement(t,null):null,a.createElement(ut,{location:f}))},ht=n("./src/styles/font.ts"),gt=c()({loader:function(){return Promise.all([n.e(55),n.e(46)]).then(n.bind(null,"./src/framework/perf/PerformanceLogger.ts"))},modules:["src/framework/perf/PerformanceLogger"],webpack:function(){return["./src/framework/perf/PerformanceLogger.ts"]},loading:function(){return null}}),bt=function(e){return{backgroundColor:e.backgroundColor}},vt=function(){var e,t,r,i,c,l,u,d=Object(s.f)((function(e){return{productName:e.config.productName,glyphUrl:e.config.glyphUrl,isAmp:e.config.isAmp,susiModal:e.navigation.susiModal}}),s.d),m=d.productName,f=d.glyphUrl,b=d.isAmp,O=d.susiModal,S=a.useState(!1),j=o()(S,2),P=j[0],C=j[1];return a.useEffect((function(){C(!0)}),[]),e=Object(s.f)((function(e){return e.client.isBot})),t=Object(s.f)((function(e){return e.session.user.id})),r=Object(ke.c)(),i=Object(K.c)(),a.useEffect((function(){if(r&&!e){var n=i(window.location.pathname),o={route:n?n.route.metricName:"unidentified",loggedIn:Object(Te.a)(t),withinPostInternalLinksExperiment:!1},a=window.performance&&window.performance.timing?{duration:new Ie.a(window.performance.timing.navigationStart,Date.now())}:{};r.reportClientReady(o,a)}}),[]),c=Object(s.e)(),l=Object(s.f)((function(e){return e.config.lightStep})),u=Object(s.f)((function(e){return e.debug.originalSpanCarrier})),a.useEffect((function(){var e,t,r;Ne.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Ne.a.awrap(Promise.all([n.e(55),n.e(46)]).then(n.bind(null,"./src/util/tracing.ts")));case 2:e=o.sent,t=e.init(l),r=e.extractSpan(t,u),c(Object(Ae.b)(t,r));case 6:case"end":return o.stop()}}))}),[]),a.createElement(a.Fragment,null,a.createElement(gt,null),a.createElement(w.a,null,a.createElement(B.J,null,(function(e){return a.createElement("div",{className:e([Object(ht.s)(),bt])},a.createElement(Le,{productName:m}),a.createElement(Ce,null),a.createElement(Ue,{glyphUrl:f}),a.createElement(I,null),!!O&&a.createElement(ue,null),!b&&a.createElement(E,null),a.createElement(_.b,null,(function(){return null})),a.createElement(p.a,{name:""},(function(){return null})),a.createElement(_.b,null,(function(e){var t,n=!!e;return a.createElement(a.Fragment,null,!b&&a.createElement(x,null),a.createElement(y.b,{loggedIn:n}),a.createElement(ae,{initialPageLoaded:P,isLoggedIn:n}),a.createElement(de,{email:e&&e.email,isLoggedin:n}),a.createElement(me,{isSuspended:null!==(t=null==e?void 0:e.isSuspended)&&void 0!==t&&t}))})),a.createElement(ft,{loading:B.u}),a.createElement(v,null),a.createElement(g.a,null),a.createElement(h,{initialPageLoaded:P}))}))))};t.a=vt},"./src/apollo/CustomApolloProvider.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),s=n.n(c),l=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),u=n.n(l),d=n("./node_modules/@babel/runtime/helpers/inherits.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),f=n.n(p),h=n("./node_modules/@apollo/react-common/lib/react-common.esm.js"),g=n("./node_modules/prop-types/index.js"),b=n.n(g),v=n("./node_modules/react/index.js"),E=function(e){function t(){return o()(this,t),s()(this,u()(t).apply(this,arguments))}return m()(t,e),i()(t,[{key:"getChildContext",value:function(){return{renderPromises:this.props.renderPromises}}},{key:"render",value:function(){return this.props.children}}]),t}(v.Component);f()(E,"childContextTypes",{renderPromises:b.a.object});var y=function(e){var t=e.children,n=e.client,r=Object(h.c)();return v.createElement(h.a,{client:n},v.createElement(r.Consumer,null,(function(e){var n=e.renderPromises;return v.createElement(E,{renderPromises:n},t)})))}},"./src/apollo/client.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n("./node_modules/apollo-cache-inmemory/lib/bundle.esm.js"),o=n("./node_modules/apollo-client/bundle.esm.js"),a=n("./node_modules/apollo-link-http/lib/bundle.esm.js"),i=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),c=n.n(i),s=n("./node_modules/apollo-link/lib/bundle.esm.js");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),m=n.n(d),p=n("./node_modules/graphql-tag/src/index.js"),f=n.n(p);function h(){var e=m()(["\n  query userResultByUsernameNormalizingQuery($username: ID!) {\n    userResult(username: $username) {\n      ... on User {\n        id\n      }\n    }\n  }\n"]);return h=function(){return e},e}function g(){var e=m()(["\n  query userResultByUserIdNormalizingQuery($userId: ID!) {\n    userResult(id: $userId) {\n      ... on User {\n        id\n      }\n    }\n  }\n"]);return g=function(){return e},e}function b(){var e=m()(["\n  query userByUsernameNormalizingQuery($username: ID!) {\n    user(username: $username) {\n      id\n    }\n  }\n"]);return b=function(){return e},e}function v(){var e=m()(["\n  query userByUserIdNormalizingQuery($userId: ID!) {\n    user(id: $userId) {\n      id\n    }\n  }\n"]);return v=function(){return e},e}var E=f()(v()),y=f()(b()),O=f()(g()),x=f()(h());var _=n("./src/fragmentTypes.json"),w=function(e){var t=e.uri,n=e.state,i=e.ssrMode,c=e.transformLink,l=e.version,d=Object(a.a)({uri:t,credentials:"same-origin"});d=new s.a((function(e,t){var n=e.operationName;return n&&e.setContext((function(e){return{headers:u({},e.headers||{},{"Graphql-Operation":n})}})),t?t(e):null})).concat(d),c&&(d=c(d));var m=new r.b({introspectionQueryResultData:_}),p=new r.a({addTypename:!0,fragmentMatcher:m,dataIdFromObject:function(e){switch(e.__typename){case"Topic":return e.topicId||e.slug;case"MeteringInfo":return"MeteringInfo:singleton";case"PostPreview":var t=e.postId||e.post&&e.post.id;if(t)return"".concat(e.__typename,":").concat(t);break;default:return Object(r.c)(e)}}});return d=function(e){return new s.a((function(t,n){return n?n(t).map((function(n){if(t.query.definitions.find((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation&&e.selectionSet.selections&&"Field"===e.selectionSet.selections[0].kind&&("user"===e.selectionSet.selections[0].name.value||"userResult"===e.selectionSet.selections[0].name.value)&&e.selectionSet.selections[0].arguments&&("username"===e.selectionSet.selections[0].arguments[0].name.value||"id"===e.selectionSet.selections[0].arguments[0].name.value)}))){var r=n.data&&(n.data.user||n.data.userResult);if(r){var o={user:r},a={userResult:r};r.id&&(e.writeQuery({query:E,data:o,variables:{userId:r.id}}),e.writeQuery({query:O,data:a,variables:{userId:r.id}})),r.username&&(e.writeQuery({query:y,data:o,variables:{username:r.username}}),e.writeQuery({query:x,data:a,variables:{username:r.username}}))}}return n})):null}))}(p).concat(d),{cache:p,client:new o.a({link:d,cache:!i&&n?p.restore(n):p,ssrMode:i,connectToDevTools:!0,name:"lite",version:l,defaultOptions:{watchQuery:{errorPolicy:"all"},query:{errorPolicy:"all"},mutate:{errorPolicy:"all"}}})}}},"./src/apollo/createLightstepLink.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/apollo-link/lib/bundle.esm.js");function o(e){return new r.a((function(t,n){return t.operationName&&t.setContext((function(t){var n=t.headers;return n=n||{},Object.keys(e).forEach((function(t){n[t]=e[t]})),{headers:n}})),n?n(t):null}))}},"./src/apollo/createRequestIdentificationLink.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/apollo-link/lib/bundle.esm.js");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){var n=l(e);return new a.a((function(e,r){var a=t.getMatch(window.location.pathname),i=a?a.route.metricName:"unidentified";return e.setContext((function(e){var t,r;return{headers:c({},e.headers||{},(r={},o()(r,"Medium-Frontend-App",n),o()(r,"Medium-Frontend-Route",i),o()(r,"Medium-Frontend-Path","".concat(window.location.pathname).concat(null!==(t=window.location.search)&&void 0!==t?t:"")),r))}})),r?r(e):null}))}var l=function(e){return"lite/".concat(e)}},"./src/components/branch-banner/helpers/index.ts":function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"e",(function(){return O}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),i=n.n(a),c=n("./node_modules/graphql-tag/src/index.js"),s=n.n(c),l=n("./src/framework/source/SourceContext.tsx"),u=n("./src/screens/helpers/visits.ts"),d=n("./src/util/referrers.ts");function m(){var e=i()(["\n  fragment buildBranchViewData_meteringInfo on MeteringInfo {\n    postIds\n  }\n"]);return m=function(){return e},e}function p(){var e=i()(["\n  fragment buildBranchViewData_post on Post {\n    creator {\n      name\n      id\n      isFollowing\n    }\n    collection {\n      name\n      id\n      viewerIsFollowing\n    }\n    layerCake\n    primaryTopic {\n      slug\n      name\n      isFollowing\n    }\n    content(postMeteringOptions: $postMeteringOptions) {\n      isLockedPreviewOnly\n    }\n  }\n"]);return p=function(){return e},e}var f=function(){var e=window.branch&&window.branch.closeJourney&&window.branch.setBranchViewData&&window.branch.track&&window.branch.link;return e},h=function(e){f()&&window.branch.closeJourney((function(){e&&e()}))},g=s()(p()),b=s()(m()),v=function(e){var t=e.inAppBrowser,n=e.post,r=e.meteringInfo,o=e.referrer,a=e.referrerSource,i=e.viewer,c=e.profile_name,s=e.profile_photo,l=e.profile_username,d=e.page_type,m=i&&i.mediumMemberAt?i.mediumMemberAt:null,p=n||{},f=p.creator,h=p.layerCake,g=p.primaryTopic,b=p.collection,v=p.content,y=h&&(1===h||2===h||3===h),O=y&&g?g.name:null,x=y&&g?g.slug:null,_=o&&a?E(o,a):"Other",w={data:{in_app_browser:t||"",is_logged_in:!!i,is_member:!!m&&m>0,user_created_at:i?i.createdAt:null,medium_member_at:m,post_topic_name:O,post_topic_slug:x,post_publication_name:b?b.name:null,post_publication_id:b?b.id:null,layer_cake:h,num_nonmoc_posts_in_month:Object(u.e)(),num_posts_in_day:Object(u.c)(),num_posts_in_week:Object(u.f)(),num_posts_in_month:Object(u.d)(),post_creator_name:f?f.name:null,post_creator_id:f?f.id:null,source:_,following_author:!(!f||!f.isFollowing),following_pub:!(!b||!b.viewerIsFollowing),following_topic:!!(y&&g&&g.isFollowing),profile_name:c||"",profile_photo:s||"",profile_username:l||"",page_type:d||""}};return v&&v.isLockedPreviewOnly?w.data.meter_state="paywalled":w.data.is_member?w.data.meter_state="member":r&&r.postIds&&r.postIds.length>0?w.data.meter_state="metered":w.data.meter_state="not_metered",w},E=function(e,t){if(Object(d.c)(e))return"Twitter";if(Object(d.a)(e))return"Facebook";if(t){var n=Object(l.c)(t),r=n.name,a=n.dimension;if("email"===r&&a){var i=a.split("."),c=o()(i,2),s=c[0],u=c[1];if("newsletter"===s)return"Pub Digest";if("member"===s)return"Marketing Email";if("digest"===s){if("reader"===u)return"Daily Digest";if("weekly"===u)return"Weekly Digest"}}}return Object(d.b)(e,t)?"Search":"Other"},y=function e(t){f()?window.branch.setBranchViewData(t):setTimeout((function(){e(t)}),500)},O=function e(t,n){f()?window.branch.track("pageview",n,(function(){t&&t()})):setTimeout((function(){e(t,n)}),500)}},"./src/components/collection/CollectionAvatar.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return b}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),i=n.n(a),c=n("./node_modules/react/index.js"),s=n("./node_modules/react-redux/es/index.js"),l=n("./src/components/ui/image/index.ts"),u=n("./src/framework/design-system/components/index.ts"),d=n("./src/framework/design-system/util/style/converters.ts"),m=n("./src/util/miroImage.ts"),p=n("./src/util/routes.ts");function f(){var e=o()(["\n  fragment CollectionAvatar_collection on Collection {\n    name\n    avatar {\n      id\n    }\n    ...collectionUrl_collection\n  }\n  ","\n"]);return f=function(){return e},e}var h=function(e){return function(t){return{borderRadius:Object(d.b)(t.borderRadius.regular),width:Object(d.b)(e),height:Object(d.b)(e)}}};var g=i()(f(),p.G),b=Object(s.c)((function(e){return{currentLocation:e.navigation.currentLocation}}))((function(e){var t=e.collection,n=e.currentLocation,r=e.size,o=void 0===r?60:r,a=e.link;if(!t||!t.avatar||!t.avatar.id)return null;var i=t.avatar,s=t.name,d=Object(p.F)(t,n),f=c.createElement(l.b,{rules:[h(o)],miroId:i.id,alt:s||"Publication avatar",width:o,height:o,strategy:m.a.Crop});return a?c.createElement(u.f,{href:d},f):f}))},"./src/components/debug/GoogleAnalytics.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-helmet-async/lib/index.module.js"),a=n("./node_modules/react-redux/es/index.js"),i=n("./src/components/session/WithFlag.tsx");t.a=Object(a.c)((function(e){return{googleAnalyticsCode:e.config.googleAnalyticsCode,isBot:e.client.isBot,isAmp:e.config.isAmp}}))((function(e){var t=e.googleAnalyticsCode,n=e.isBot,a=e.isAmp;return n||a?null:r.createElement(i.a,{name:"dont_track_user"},(function(e){return e?null:r.createElement(o.a,null,r.createElement("script",null,"(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\nm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\nga('create', '".concat(t,"', 'auto');\nga('send', 'pageview');")))}))}));var c=function(e,t,n){r.useEffect((function(){var r=window?window.ga:null;!t&&!n&&e&&r&&e.forEach((function(e,t){var n="tracker".concat(t);r("create",e,"auto",n),r("".concat(n,".send"),"pageview")}))}),[null==e?void 0:e.join(","),t,n])}},"./src/components/format/Date.tsx":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n("./node_modules/date-fns/index.js");function o(t){var n=t.timestamp;return Object(r.getYear)(n)===Object(r.getYear)(e.Date.now())?Object(r.format)(n,"MMM D"):Object(r.format)(n,"MMM D, YYYY")}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./src/components/format/TimeAgo.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/date-fns/index.js");function o(e){var t=e.timestamp;return Object(r.distanceInWords)(Date.now(),t,{addSuffix:!0})}},"./src/components/metabar/Logo.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"c",(function(){return P})),n.d(t,"b",(function(){return C}));var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./node_modules/react-loadable/lib/index.js"),i=n.n(a),c=n("./node_modules/react-redux/es/index.js"),s=n("./src/framework/style/index.ts"),l=n("./src/styles/colors.ts");function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d=o.a.createElement("path",{d:"M5 40V5h35v35H5zm8.56-12.63c0 .56-.03.69-.32 1.03L10.8 31.4v.4h6.97v-.4L15.3 28.4c-.29-.34-.34-.5-.34-1.03v-8.95l6.13 13.36h.71l5.26-13.36v10.64c0 .3 0 .35-.19.53l-1.85 1.8v.4h9.2v-.4l-1.83-1.8c-.18-.18-.2-.24-.2-.53V15.94c0-.3.02-.35.2-.53l1.82-1.8v-.4h-6.47l-4.62 11.55-5.2-11.54h-6.8v.4l2.15 2.63c.24.3.29.37.29.77v10.35z"}),m=function(e){return o.a.createElement("svg",u({width:35,height:35,viewBox:"5 5 35 35"},e),d)};function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=o.a.createElement("path",{d:"M56.3 19.5c0 .4 0 .5.3.7l1.5 1.4v.1h-6.5V19c-.7 1.8-2.4 3-4.3 3-3.3 0-5.8-2.6-5.8-7.5 0-4.5 2.6-7.6 6.3-7.6 1.6-.1 3.1.8 3.8 2.4V3.2c0-.3-.1-.6-.3-.7l-1.4-1.4V1l6.5-.8v19.3zm-4.8-.8V9.5c-.5-.6-1.2-.9-1.9-.9-1.6 0-3.1 1.4-3.1 5.7 0 4 1.3 5.4 3 5.4.8.1 1.6-.3 2-1zm9.1 3.1V9.4c0-.3-.1-.6-.3-.7l-1.4-1.5v-.1h6.5v12.5c0 .4 0 .5.3.7l1.4 1.4v.1h-6.5zm-.2-19.2C60.4 1.2 61.5 0 63 0c1.4 0 2.6 1.2 2.6 2.6S64.4 5.3 63 5.3a2.6 2.6 0 0 1-2.6-2.7zm22.5 16.9c0 .4 0 .5.3.7l1.5 1.4v.1h-6.5v-3.2c-.6 2-2.4 3.4-4.5 3.4-2.9 0-4.4-2.1-4.4-6.2 0-1.9 0-4.1.1-6.5 0-.3-.1-.5-.3-.7L67.7 7v.1H74v8c0 2.6.4 4.4 2 4.4.9-.1 1.7-.6 2.1-1.3V9.5c0-.3-.1-.6-.3-.7l-1.4-1.5v-.2h6.5v12.4zm22 2.3c0-.5.1-6.5.1-7.9 0-2.6-.4-4.5-2.2-4.5-.9 0-1.8.5-2.3 1.3.2.8.3 1.7.3 2.5 0 1.8-.1 4.2-.1 6.5 0 .3.1.5.3.7l1.5 1.4v.1H96c0-.4.1-6.5.1-7.9 0-2.7-.4-4.5-2.2-4.5-.9 0-1.7.5-2.2 1.3v9c0 .4 0 .5.3.7l1.4 1.4v.1h-6.5V9.5c0-.3-.1-.6-.3-.7l-1.4-1.5v-.2h6.5v3.1a4.6 4.6 0 0 1 4.6-3.4c2.2 0 3.6 1.2 4.2 3.5.7-2.1 2.7-3.6 4.9-3.5 2.9 0 4.5 2.2 4.5 6.2 0 1.9-.1 4.2-.1 6.5-.1.3.1.6.3.7l1.4 1.4v.1h-6.6zm-81.4-2l1.9 1.9v.1h-9.8v-.1l2-1.9c.2-.2.3-.4.3-.7V7.3c0-.5 0-1.2.1-1.8L11.4 22h-.1L4.5 6.8c-.1-.4-.2-.4-.3-.6v10c-.1.7 0 1.3.3 1.9l2.7 3.6v.1H0v-.1L2.7 18c.3-.6.4-1.3.3-1.9v-11c0-.5-.1-1.1-.5-1.5L.7 1.1V1h7l5.8 12.9L18.6 1h6.8v.1l-1.9 2.2c-.2.2-.3.5-.3.7v15.2c0 .2.1.5.3.6zm7.6-5.9c0 3.8 1.9 5.3 4.2 5.3 1.9.1 3.6-1 4.4-2.7h.1c-.8 3.7-3.1 5.5-6.5 5.5-3.7 0-7.2-2.2-7.2-7.4 0-5.5 3.5-7.6 7.3-7.6 3.1 0 6.4 1.5 6.4 6.2v.8h-8.7zm0-.8h4.3v-.8c0-3.9-.8-4.9-2-4.9-1.4.1-2.3 1.6-2.3 5.7z"}),h=function(e){return o.a.createElement("svg",p({height:22,width:112,viewBox:"0 0 111.5 22"},e),f)};n("./src/svg/logo-wordmark-138x27px.svg");function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var b=o.a.createElement("path",{d:"M1 29V1",stroke:"#D5D5D5",strokeWidth:.5,fill:"none",strokeLinecap:"round"}),v=function(e){return o.a.createElement("svg",g({width:2,height:29},e),b)},E=i()({loading:function(){return null},loader:function(){return n.e(45).then(n.bind(null,"./src/svg/hatch-monogram-45px.svg"))},modules:["src/svg/hatch-monogram-45px.svg"],webpack:function(){return["./src/svg/hatch-monogram-45px.svg"]}}),y=i()({loading:function(){return null},loader:function(){return n.e(45).then(n.bind(null,"./src/svg/hatch-79x22px.svg"))},modules:["src/svg/hatch-79x22px.svg"],webpack:function(){return["./src/svg/hatch-79x22px.svg"]}}),O=function(e){return function(t){return{fill:e?t.baseColor.fill.dark:t.baseColor.fill.normal}}},x=function(e){return{fill:l.E}},_=function(e){return{fill:e.baseColor.fill.normal}},w=function(e){return{fill:l.E}},S=function(e){return{isHatch:"Hatch"===e.config.productName}},j=Object(c.c)(S)((function(e){var t=e.isHatch,n=e.dark,o=Object(s.useCx)();return t?r.createElement(E,{className:o(x)}):r.createElement(m,{className:o(O(n))})})),P=Object(c.c)(S)((function(e){var t=e.isHatch,n=Object(s.useCx)();return t?r.createElement(y,{className:n(w)}):r.createElement(h,{className:n(_)})})),C=function(){return r.createElement(v,null)}},"./src/components/metabar/Metabar.tsx":function(e,t,n){"use strict";n.d(t,"c",(function(){return Y})),n.d(t,"b",(function(){return K})),n.d(t,"a",(function(){return X}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),i=n.n(a),c=n("./node_modules/graphql-tag/src/index.js"),s=n.n(c),l=n("./node_modules/react/index.js"),u=n("./node_modules/react-redux/es/index.js"),d=n("./src/components/metabar/MetabarActions.tsx"),m=n("./src/components/metabar/MetabarActionsLO.tsx"),p=n("./src/components/metabar/Logo.tsx"),f=n("./src/components/navigation/Anchor.tsx"),h=n("./src/framework/style/index.ts"),g=n("./src/styles/flex.ts"),b=n("./src/styles/position.ts"),v=n("./src/styles/zIndex.ts"),E={zIndex:v.a.metabarCenter,pointerEvents:"none"},y={pointerEvents:"auto"},O=function(){var e=Object(h.useCx)();return l.createElement("div",{className:e([b.a,Object(g.a)({alignItems:"center",justifyContent:"center"}),E])},l.createElement(f.a,{href:"/","aria-label":"Homepage",className:e(y)},l.createElement(p.c,null)))},x=n("./src/components/metabar/MetabarLayout.tsx"),_=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),w=n.n(_),S=n("./src/components/metabar/OpenInApp.tsx"),j=n("./src/components/optimizely/OptimizelyWrapper.tsx"),P=n("./src/components/session/WithViewer.tsx"),C=n("./src/components/session/useFlag.tsx"),k=n("./src/framework/design-system/components/index.ts"),T=n("./src/framework/design-system/type/index.ts"),I=n("./src/styles/breakpoints.ts"),R=n("./src/util/routes.ts");function N(){var e=o()(["\n  fragment MetabarLeft_post on Post {\n    id\n    creator {\n      id\n    }\n    isPublished\n    pendingCollection {\n      creator {\n        id\n      }\n      name\n      viewerIsEditor\n    }\n    statusForCollection\n  }\n"]);return N=function(){return e},e}function A(){var e=o()(["\n  fragment MetabarLeft_collection on Collection {\n    name\n  }\n"]);return A=function(){return e},e}function L(){var e=o()(["\n  fragment MetabarLeft_user on User {\n    username\n  }\n"]);return L=function(){return e},e}var D=function(e){return w()({fontFamily:"'Helvetica Neue', sans-serif",fontSize:"20px",color:e.baseColor.text.normal,marginTop:"7px",marginLeft:"10px",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden"},I.sm(e),{fontSize:"14px",marginTop:"0px",marginLeft:"4px",WebkitLineClamp:"2"})};var U=function(e){var t=e.authDomain,n=e.isMonogramOnly,r=void 0!==n&&n,o=e.post,a=e.topic,i=e.username,c=Object(h.useCx)(),s=!!Object(C.a)("enable_li_open_in_app");return l.createElement(P.b,null,(function(e){var n=function(e,t){if(!e)return"";var n=e.pendingCollection,r=e.creator&&e.creator.id,o=!!t&&!!n&&!!n.creator&&n.creator.id===t.id,a=!!n&&n.viewerIsEditor,i=o||a,c=i||!!t&&t.id===r,s=c&&n&&n.name||"";return e.isPublished?s?"Submitted to ".concat(s):c&&"PENDING"===e.statusForCollection?"Submitted story":"":c&&"PENDING"===e.statusForCollection?s?i&&t&&t.id===r?"Draft in ".concat(s):"Draft submitted to ".concat(s):"Submitted draft":"NOT_YET_SUBMITTED"===e.statusForCollection?"Unsubmitted draft":"Draft"}(o,e);return l.createElement(k.b,{display:"flex",alignItems:"center"},l.createElement(f.a,{href:"/","aria-label":"Homepage"},l.createElement(k.b,{display:r||n?"none":"block",sm:{display:"none"}},l.createElement(p.c,null)),l.createElement(k.b,{display:r||n?"block":"none",sm:{display:"block"}},l.createElement(p.a,null))),n?l.createElement(j.a,{featureString:"".concat(e?"li":"lo","-post-page-navbar"),target:"status-message"},l.createElement(k.b,{marginLeft:"15px",paddingTop:"2px"},l.createElement(T.a,{color:"DARKER",scale:"M",tag:"div"},n))):null,!n&&function(e){var n=s&&e;return l.createElement(l.Fragment,null,l.createElement(k.b,{display:"none",sm:{display:n?"flex":"none"}},l.createElement(S.a,{viewer:e,postId:o&&o.id,username:i,topicSlug:a&&a.slug||null})," "),l.createElement(k.b,{display:a&&a.slug&&a.name?"flex":"none",sm:{display:n?"none":"flex"}},l.createElement(k.b,{marginTop:"1px",marginLeft:"15px",sm:{display:"none"}},l.createElement(p.b,null)),l.createElement(j.a,{featureString:"".concat(e?"li":"lo","-post-page-navbar"),target:"topic-copy"},l.createElement(f.a,{href:Object(R.Ub)(t,a&&a.slug||"")},l.createElement("div",{className:c(D)},a&&a.name)))))}(e))}))},M=s()(L()),F=s()(A()),B=s()(N()),H=n("./src/components/metabar/constants.ts"),V=n("./src/metadata/Favicon.tsx");function z(){var e=o()(["\n  fragment Metabar_post on Post {\n    id\n    creator {\n      id\n    }\n    primaryTopic {\n      name\n      slug\n    }\n    collection {\n      ...Metabar_collection\n    }\n    ...MetabarActions_post\n    ...MetabarActionsLO_post\n    ...MetabarLeft_post\n  }\n  ","\n  ","\n  ","\n  ","\n"]);return z=function(){return e},e}function G(){var e=o()(["\n  fragment Metabar_user on User {\n    ...MetabarLeft_user\n    ...MetabarActionsLO_user\n  }\n  ","\n  ","\n"]);return G=function(){return e},e}function W(){var e=o()(["\n  fragment Metabar_collection on Collection {\n    id\n    favicon {\n      id\n    }\n    ...MetabarLeft_collection\n  }\n  ","\n"]);return W=function(){return e},e}var q=s()(W(),F),Y=s()(G(),m.c,M),K=s()(z(),d.b,m.b,B,q),X=Object(u.c)((function(e){return{authDomain:e.config.authDomain,isNativeMedium:e.client.isNativeMedium}}))((function(e){var t,n,r=e.authDomain,o=e.behavior,a=e.post,c=e.user,s=e.topic,u=e.isAmp,p=e.isFixed,f=e.isLogoOnly,g=e.isLogoCentered,b=e.isMonogramOnly,E=e.isTransparent,y=e.isNativeMedium,_=e.marginBottom,w=e.marginBottomSm,S=e.backLink,j=Object(h.useTheme)(),P=l.useState(!1),I=i()(P,2),R=I[0],N=I[1],A=l.useState(!1),L=i()(A,2),D=L[0],M=L[1],F=!!Object(C.a)("make_nav_sticky")&&D;if(l.useEffect((function(){window.innerWidth<j.breakpoints.sm&&M(!0)}),[]),y)return null;var B=!f&&!g;return l.createElement(x.a,{behavior:o,height:H.a,heightSm:H.c,isFixed:F||p,isLocked:F||R,isTransparent:E,marginBottom:_,marginBottomSm:w},l.createElement(V.a,{faviconImageId:null==a||null===(t=a.collection)||void 0===t||null===(n=t.favicon)||void 0===n?void 0:n.id}),l.createElement(k.v,null,l.createElement(k.b,{display:"flex",alignItems:"center",height:"".concat(H.a,"px"),sm:{display:"flex",height:"".concat(H.c,"px")}},g?l.createElement(O,null):l.createElement(k.b,{flexGrow:"1",zIndex:v.a.metabar},l.createElement(U,{authDomain:r,post:a,isMonogramOnly:b,username:c&&c.username||null,topic:s})),S&&l.createElement(k.b,{marginRight:"10px"},l.createElement(T.a,{scale:"M",color:"LIGHTER"},S)),B&&l.createElement(k.b,{flexGrow:"0",zIndex:v.a.metabar},u?l.createElement(m.a,{post:a,username:c&&c.username||null,topicSlug:s&&s.slug||null}):l.createElement(d.c,{post:a,setIsMetabarLocked:N,username:c&&c.username||null,topicSlug:s&&s.slug||null})))))}))},"./src/components/metabar/MetabarActions.tsx":function(e,t,n){"use strict";n.d(t,"c",(function(){return fr})),n.d(t,"a",(function(){return hr})),n.d(t,"b",(function(){return gr}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),i=n.n(a),c=n("./node_modules/react/index.js"),s=n.n(c),l=n("./node_modules/react-redux/es/index.js"),u=n("./src/components/collection/CollectionAvatar.tsx"),d=n("./src/components/session/RequireFlag.tsx"),m=n("./src/components/style/BaseThemeProvider.tsx"),p=n("./src/components/ui/PopoverMenu.tsx"),f=n("./src/framework/design-system/components/index.ts"),h=n("./src/util/routes.ts");function g(){var e=o()(["\n  fragment CollectionMetabarActionsPopover_collection on Collection {\n    id\n    slug\n    isAuroraEligible\n    isAuroraVisible\n    isEnrolledInHightower\n    isNewsletterV3Enabled\n    newsletterV3 {\n      id\n      slug\n    }\n    ...collectionUrl_collection\n  }\n  ","\n"]);return g=function(){return e},e}var b=i()(g(),h.G),v=Object(l.c)((function(e){return{authDomain:e.config.authDomain,currentLocation:e.navigation.currentLocation}}))((function(e){var t=e.authDomain,n=e.children,r=e.collection,o=e.currentLocation,a=r.isEnrolledInHightower,i=r.newsletterV3?Object(h.t)(r,r.newsletterV3.slug,t):Object(h.q)(r,t),s=r.isAuroraVisible?"Settings":"Homepage and settings",l=c.createElement(p.a,null,c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.s)(r,t)},"New story")),c.createElement(p.c,null),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.D)(r,t)},"Stories")),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.C)(r,o)},"Stats")),!r.isNewsletterV3Enabled&&c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.z)(r,t)},"Letters")),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.y)(r,t)},"Followers")),a?c.createElement(c.Fragment,null,c.createElement(p.c,null),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.w)(r,t)},"Medium Partner Program"))):null,c.createElement(p.c,null),r.isNewsletterV3Enabled&&c.createElement(p.b,null,c.createElement(f.t,{href:i},"Newsletter")),!r.isAuroraVisible&&c.createElement(c.Fragment,null,c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.A)(r,t)},"Navigation")),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.x)(r,t)},"Feature pages"))),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.B)(r,t)},s)),r.isAuroraEligible&&c.createElement(d.a,{name:"enable_theme_editor"},c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.E)(r,t)},"Style editor"))));return c.createElement(f.I,null,(function(e){var t=e.isVisible,r=e.toggle,o=e.hide;return c.createElement(m.b,null,c.createElement(f.w,{isVisible:t,hide:o,popoverRenderFn:function(){return l},display:"flex"},c.createElement(f.b,{display:"flex",alignItems:"center",paddingTop:"10px",paddingBottom:"10px"},c.createElement(f.t,{onClick:r},n))))}))})),E=n("./src/components/user/UserAvatar.tsx"),y=n("./src/framework/reporter/index.ts"),O=n("./src/log/index.ts");var x=Object(l.c)((function(e){return{authDomain:e.config.authDomain,xsrf:e.session.xsrf}}))((function(e){var t,n=e.authDomain,r=e.children,o=e.viewer,a=e.xsrf,i=e.setIsMetabarLocked,s=o.username,l=o.mediumMemberAt,u=o.isPartnerProgramEnrolled,d=Object(y.c)();if(!o||!s)return null;a||O.a.error("No xsrf token found."),t=c.createElement("div",null,c.createElement(f.b,{display:"flex",alignItems:"center",marginTop:"12px",marginBottom:"20px"},c.createElement(E.d,{user:o,scale:"S",link:!0}),c.createElement(f.b,{marginLeft:"16px"},l>0&&c.createElement(f.t,{href:Object(h.ib)(n),linkStyle:"OBVIOUS"},"Member"),c.createElement(f.t,{href:Object(h.hb)(n,s),linkStyle:"OBVIOUS"},c.createElement(f.d,{strong:!0},o.name)),c.createElement(f.t,{href:Object(h.hb)(n,s),linkStyle:"SUBTLE",inline:!0},c.createElement(f.d,null,"@",o.username)))),l?c.createElement(f.t,{href:Object(h.U)(n)},"Gift membership"):c.createElement(f.t,{href:Object(h.ac)(n),linkStyle:"OBVIOUS"},"Become a member"));var g=c.createElement(f.b,{maxWidth:"220px"},c.createElement(p.a,null,c.createElement(p.b,null,t),c.createElement(p.c,null),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.jb)(n)},"New story")),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.xc)(n)},"Stories")),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.pc)(n)},"Series")),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.tc)(n)},"Stats")),c.createElement(p.c,null),c.createElement(p.b,null,c.createElement(f.t,{href:u?Object(h.mc)(n):Object(h.lb)(n)},"Medium Partner Program")),c.createElement(p.c,null),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.oc)(n)},"Reading list")),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.nc)(n)},"Publications")),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.lc)(n)},"Customize your interests")),c.createElement(p.c,null),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.hb)(n,s)},"Profile")),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.rc)(n)},"Settings")),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.W)()},"Help")),a?c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.Fb)(a)},"Sign out")):null));return c.createElement(f.I,null,(function(e){var t=e.isVisible,n=e.toggle,o=e.hide;return c.createElement(m.b,null,c.createElement(f.w,{isVisible:t,hide:function(){o(),i(!1)},popoverRenderFn:function(){return g},display:"flex",flip:!1,setMaxHeight:!0},c.createElement(f.b,{display:"flex",alignItems:"center",paddingTop:"10px",paddingBottom:"10px"},c.createElement(f.t,{onClick:function(){d.event("nav.clicked",{element:"userActions"}),n(),i(!t)}},r))))}))})),_=n("./src/components/session/WithViewer.tsx"),w=n("./src/components/upsell/UpsellClickable.tsx"),S=n("./src/framework/source/index.ts"),j=n("./src/framework/track/UpsellPresentationTracker.tsx");function P(){var e=o()(["\n  fragment MetabarButtonConversionLI_post on Post {\n    ...UpsellClickable_post\n  }\n  ","\n"]);return P=function(){return e},e}var C=i()(P(),w.b),k=function(e){var t=e.post;return c.createElement(S.b,{source:{name:"upgrade_membership",dimension:"nav_full"}},c.createElement(j.a,null,c.createElement(w.a,{isButton:!0,buttonStyle:"SUBTLE",buttonSize:"SMALL",post:t},c.createElement(_.b,null,(function(e){return e&&e.hasPastMemberships?"Resume membership":"Upgrade"})))))},T=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),I=n.n(T),R=n("./src/util/hooks/useUserAgentMobileOrTablet.tsx");function N(){var e=o()(["\n  fragment MetabarPostMenuList_post on Post {\n    id\n    shareKey\n    mediumUrl\n  }\n"]);return N=function(){return e},e}var A=i()(N()),L=Object(l.c)((function(e){return{authDomain:e.config.authDomain}}))((function(e){var t=e.authDomain,n=e.openFriendLinkPopover,r=e.post,o=r&&r.shareKey,a=r&&r.mediumUrl,i=!Object(R.a)(),s=o&&a?c.createElement(p.b,null,c.createElement(f.t,{onClick:n},"Share Friend Link")):null;return c.createElement(p.a,null,i?c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.rb)(t,r.id)},"Edit story")):null,c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.vb)(t,r.id)},"Story settings")),c.createElement(p.b,null,c.createElement(f.t,{href:Object(h.sc)(t,r.id)},"View stats")),s)})),D=n("./src/components/social/ShareFriendLink.tsx"),U=n("./src/framework/design-system/type/Detail.tsx"),M=n("./src/svg/overflow-dots-filled-25px.svg");function F(){var e=o()(["\n  fragment MetabarPostMenuButton_post on Post {\n    id\n    ...ShareFriendLink_post\n    ...MetabarPostMenuList_post\n  }\n  ","\n  ","\n"]);return F=function(){return e},e}var B={border:0,clip:"rect(1px, 1px, 1px, 1px)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal !important"},H=i()(F(),D.b,A),V=function(e){var t=e.post,n=Object(y.c)(),r=c.useCallback((function(){n.event("editor.writerControlsOpen",{postId:t.id})}),[t]),o=c.useCallback((function(){n.event("editor.shareMeterBypassUrlOpen",{postId:t.id})}),[t]),a=c.useCallback((function(){n.event("post.copyFriendLink",{postId:t.id})}),[t]),i=c.useState(!1),s=I()(i,2),l=s[0],u=s[1],d=function(){u(!0),o()};return c.createElement(f.I,null,(function(e){var n=e.isVisible,o=e.toggle,i=e.hide,s=function(){u(!1),i()};return c.createElement(S.b,{source:{name:"post_page",dimension:"writer_controls",postId:t.id}},c.createElement(m.b,null,c.createElement(f.w,{isVisible:n,hide:s,popoverRenderFn:function(e){return l?(e(),c.createElement(f.b,{width:"330px",padding:"15px"},c.createElement(D.a,{post:t,onCopy:a}),c.createElement(f.b,{marginTop:"20px"},c.createElement(U.a,{scale:"M"},c.createElement(f.t,{onClick:s},"Cancel"))))):(e(),c.createElement(L,{openFriendLinkPopover:d,post:t}))}},c.createElement(f.b,{display:"flex",paddingTop:"10px",paddingBottom:"10px",marginLeft:"16px",marginRight:"16px",sm:{display:"flex",marginLeft:"10px",marginRight:"10px"}},c.createElement(f.t,{onClick:function(){r(),o()}},c.createElement(f.b,{tag:M.a}),c.createElement("span",{style:B},"Post management tools menu"))))))}))},z=n("./node_modules/@babel/runtime/regenerator/index.js"),G=n.n(z),W=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),q=n.n(W),Y=n("./src/components/format/Date.tsx"),K=n("./src/components/navigation/Redirect.tsx"),X=n("./src/components/ui/Byline.tsx"),Q=n("./src/components/ui/image/index.ts"),$=n("./src/framework/design-system/type/index.ts"),J=n("./src/framework/style/index.ts"),Z=n("./src/svg/search-25px.svg");function ee(){return(ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var te=s.a.createElement("path",{d:"M4.66 8.72L3.43 9.95a1.75 1.75 0 0 0 0 2.48l5.14 5.13c.7.7 1.8.69 2.48 0l1.23-1.22 5.35-5.35a2 2 0 0 0 .51-1.36l-.32-4.29a2.42 2.42 0 0 0-2.15-2.14l-4.3-.33c-.43-.03-1.05.2-1.36.51l-.79.8-2.27 2.28-2.28 2.27zm9.83-.98a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5z",fillRule:"evenodd"}),ne=function(e){return s.a.createElement("svg",ee({width:21,height:21},e),te)},re=n("./src/util/miroImage.ts"),oe=n("./node_modules/isomorphic-fetch/fetch-npm-browserify.js"),ae=n.n(oe),ie=["user","collection","tag"];var ce={collection:null,query:"",collections:[],posts:[],users:[],tags:[]};function se(e,t,n){var r=e.results,o={collection:null,query:"",collections:[],posts:[],users:[],tags:[]};return o.query=t,n?(o.collection=n,o.posts=r[0].hits.filter((function(e){return!!e.latestPublishedAt}))):(o.users=r[0].hits,o.collections=r[1].hits,o.tags=r[2].hits),o}function le(e,t,n){var r,o,a,i,c,s,l;return G.a.async((function(u){for(;;)switch(u.prev=u.next){case 0:return r=n&&n.id?n.id:null,o="https://"+e.appId+e.host,a=o+"/1/indexes/*/queries",i={query:t,hitsPerPage:3,numericFilters:""},r&&(i.facetFilters="collectionId:".concat(r),i.attributesToRetrieve="title,postId,latestPublishedAt"),c=(r?["post"]:ie).map((function(t){return"tag"===t&&(i.numericFilters="postCount>=1,followerCount>=1"),{indexName:e.indexPrefix+t,params:Object.keys(i).map((function(e){return e+"="+i[e]})).join("&").toString()}})),s={requests:c},u.next=10,G.a.awrap(ae()(a,{method:"POST",headers:{"X-Algolia-API-Key":e.apiKeySearch,"X-Algolia-Application-Id":e.appId},body:JSON.stringify(s)}).then((function(e){return e.json()})));case 10:return l=u.sent,u.abrupt("return",se(l,t,n));case 12:case"end":return u.stop()}}))}function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){var t=e.type,n=e.name,r=e.url,o=e.imageId,a=e.query,i=Object(y.c)(),s=Object(J.useCx)(),l=c.createElement(c.Fragment,null);if("TAG"===t){l=c.createElement("div",{className:s({fill:"rgba(0, 0, 0, 0.54)",display:"block",marginLeft:"5px",marginRight:"6px"})},c.createElement(ne,null))}"COLLECTION"===t&&(l=c.createElement(Q.b,{rules:{borderRadius:"3px"},miroId:o||"",freezeGifs:!1,alt:n||"Publication avatar",width:32,height:32,strategy:re.a.Crop})),"USER"===t&&(l=c.createElement(Q.a,{miroId:o||"1*dmbNkD5D-u45r44go_cf0g.png",alt:n||"",diameter:32,freezeGifs:!1}));var u=c.createElement($.a,{color:"DARKER",scale:"M"},c.createElement("div",{className:s({width:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})},n));return c.createElement(f.b,{display:"flex",width:"250px",tag:"li",paddingLeft:"20px",paddingRight:"20px"},c.createElement(f.b,{marginBottom:"16px"},c.createElement(f.t,{linkStyle:"SUBTLE",href:r,onClick:function(e){i.event("search.predictiveResultClicked",{type:t.toLowerCase(),query:a,path:e.currentTarget.href,rank:0,total:0})}},c.createElement(X.a,{avatar:l,title:u,description:null}))))}function me(e){var t=e.collectionOrProductName,n=e.slug,r=e.onQueryChange,o=Object(J.useCx)(),a={border:"none",outline:"none",font:"inherit",fontSize:"16px",lineHeight:"20px",opacity:0},i=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){q()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({position:"relative"},e?{width:"182px",marginRight:"28px",opacity:100}:{width:"0px",opacity:0},{transition:"width 140ms ease-in"})},s=c.useState(""),l=I()(s,2),u=l[0],d=l[1],m=c.useState(!1),p=I()(m,2),g=p[0],b=p[1],v=function(e){d(e.target.value),r(e.target.value)};return g?c.createElement(K.a,{to:Object(h.Bb)(u,n)}):c.createElement(f.I,null,(function(e){var n=e.isVisible,r=e.toggle;return c.createElement(f.b,{display:"flex"},c.createElement(f.t,{onClick:r},c.createElement(f.b,{tag:Z.a,marginLeft:"16px",marginRight:"10px",sm:{marginLeft:"10px",marginRight:"10px"}})),c.createElement("input",{className:o([a,i(n)]),placeholder:"Search ".concat(t),ref:function(e){return e&&n&&e.focus()},value:u,onChange:v,onKeyDown:function(e){13===e.keyCode&&b(!0)}}))}))}function pe(e){var t=e.title,n=e.url;return c.createElement(f.b,{width:"250px",padding:"0 20px"},c.createElement(f.b,{display:"flex",justifyContent:"space-between",marginBottom:"8px"},c.createElement($.d,null,t),n&&c.createElement($.a,{scale:"S"},c.createElement(f.t,{linkStyle:"SUBTLE",href:n},"More"))),c.createElement(p.c,{paddingTopBottom:"0"}))}function fe(e){var t=e.data,n=e.moreUrl,r=t.collections,o=t.query;return c.createElement(c.Fragment,null,c.createElement(pe,{title:"Publications",url:n}),c.createElement(f.b,{marginTop:"20px",marginBottom:"8px"},r.map((function(e,t){var n=e.collectionId,r=e.imageId,a=e.name;return c.createElement(de,{key:t,type:"COLLECTION",name:a,imageId:r,url:Object(h.v)(n),query:o})}))))}function he(e){var t=e.data,n=e.moreUrl,r=e.isCustomDomain,o=t.tags,a=t.query;return c.createElement(c.Fragment,null,c.createElement(pe,{title:"Tags",url:n}),c.createElement(f.b,{marginTop:"20px",marginBottom:"8px"},o.map((function(e,t){var n=e.displayText,o=e.tagSlug;return c.createElement(de,{key:t,type:"TAG",name:n,url:Object(h.Sb)(o,r),query:a})}))))}function ge(e){var t=e.data,n=e.moreUrl,r=t.query,o=t.users;return c.createElement(c.Fragment,null,c.createElement(pe,{title:"People",url:n}),c.createElement(f.b,{marginTop:"20px",marginBottom:"8px"},o.map((function(e,t){var n=e.imageId,o=e.name,a=e.username;return c.createElement(de,{key:t,type:"USER",imageId:n,name:o,url:Object(h.ic)(a),query:r})}))))}function be(e){var t=e.query,n=e.url,r=e.productName;return c.createElement(f.b,{display:"flex",alignContent:"center",backgroundColor:"BASE_LIGHT",width:"250px",overflow:"hidden",whiteSpace:"pre-line",padding:"10px 20px"},c.createElement($.a,{scale:"S",color:"DARKER"},c.createElement(f.t,{href:n},"Search for '".concat(t,"' on ").concat(r))))}function ve(e){var t=e.data,n=Object(J.useCx)(),r=Object(y.c)(),o={width:"210px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},a=t.posts,i=c.useCallback((function(e){r.event("search.predictiveResultClicked",{type:"post",query:t.query,path:e.currentTarget.href,rank:0,total:0})}),[t.query]);return 0!==a.length?c.createElement(c.Fragment,null,c.createElement(pe,{title:"Stories"}),c.createElement(f.b,{marginTop:"20px",marginBottom:"8px"},a.map((function(e,t){var r=Object(h.ub)({id:e.postId},!0);return c.createElement(f.b,{key:t,display:"flex",width:"250px",tag:"li",paddingLeft:"20px",paddingRight:"20px"},c.createElement(f.b,{marginBottom:"16px"},c.createElement(f.t,{linkStyle:"SUBTLE",href:r,onClick:i},c.createElement($.a,{scale:"S",color:"DARKER"},c.createElement("div",{className:n(o)},e.title)),c.createElement($.a,{scale:"S"},c.createElement(Y.a,{timestamp:e.latestPublishedAt})))))})))):null}var Ee=Object(l.c)((function(e){return{productName:e.config.productName,algolia:e.config.algolia,isCustomDomain:e.client.isCustomDomain}}))((function(e){var t=e.collection,n=e.productName,r=e.algolia,o=e.isCustomDomain,a=e.setIsMetabarLocked,i=Object(J.useCx)(),s=Object(y.c)(),l=c.useState(ce),u=I()(l,2),d=u[0],m=u[1],g=c.useState(""),b=I()(g,2),v=b[0],E=b[1],O=c.useState(!1),x=I()(O,2),_=x[0],w=x[1],S=t&&!t.domain?t.slug:null,j=t&&t.name?t.name:n,P=function(){w(!1),a(!1)},C=c.useCallback((function(){return s.event("search.predictiveOpened",{})}),[]);c.useEffect((function(){if(!v)return P();_||(w(!0),a(!0),C());G.a.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=m,e.next=3,G.a.awrap(le(r,v,t||null));case 3:return e.t1=e.sent,e.abrupt("return",(0,e.t0)(e.t1));case 5:case"end":return e.stop()}}))}),[v]);var k={marginTop:"16px",marginBottom:"16px",display:"inherit",alignItems:"center",maxWidth:"210px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},T=c.createElement(p.a,{padding:"0"},c.createElement(f.b,{display:"flex",width:"250px",tag:"li",paddingLeft:"20px",paddingRight:"20px"},c.createElement(f.d,null,c.createElement("div",{className:i(k)},c.createElement(f.b,{display:"inline",tag:Z.a,marginRight:"10px",sm:{marginRight:"10px"}}),c.createElement(f.t,{href:Object(h.Bb)(v,S)},t?"Search ".concat(j):"Search for '".concat(d.query,"'"))))),function(){if(!d)return null;var e=d.collections,r=d.posts,a=d.tags,i=d.users;return t?t&&r?c.createElement(c.Fragment,null,c.createElement(ve,{data:d}),c.createElement(be,{url:Object(h.Bb)(v,null),query:v,productName:n})):void 0:c.createElement(c.Fragment,null,i&&!!i.length&&c.createElement(ge,{data:d,moreUrl:Object(h.Bb)(v,S,"users")}),e&&!!e.length&&c.createElement(fe,{data:d,moreUrl:Object(h.Bb)(v,S,"publications")}),a&&!!a.length&&c.createElement(he,{data:d,moreUrl:Object(h.Bb)(v,S,"tags"),isCustomDomain:o}))}()),R=c.createElement(me,{collectionOrProductName:j,slug:S,onQueryChange:function(e){E(e)}});return c.createElement(f.I,null,(function(e){var t=e.hide;return c.createElement(f.w,{flip:!1,isVisible:_,hide:function(){P(),t()},popoverRenderFn:function(){return T},setMaxHeight:!0},R)}))})),ye=function(e){var t=e.collection,n=Object(l.f)((function(e){return e.config.authDomain}));return s.a.createElement(f.b,{display:"flex",paddingTop:"10px",paddingBottom:"10px",marginLeft:"16px",marginRight:"0px",sm:{marginLeft:"10px",marginRight:"0px"}},s.a.createElement(f.c,{href:Object(h.s)(t,n),buttonStyle:"STRONG",size:"SMALL"},"New story"))},Oe=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),xe=n.n(Oe),_e=n("./node_modules/lodash/merge.js"),we=n.n(_e),Se=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js");function je(e){return c.createElement(c.Fragment,null,(n=(t=e).collection,r=t.isYours,o=t.isFirst,n&&n.name?n.name:r?o?"Your publication":"your publication":o?"A publication":"a publication"));var t,n,r,o}var Pe=n("./src/components/notifications/notification-types/util/NotificationLayout.tsx"),Ce=n("./src/components/notifications/notification-types/util/NotificationStyles.tsx");function ke(){var e=o()(["\n  fragment NotificationCollectionDraftSubmitted_notification on Notification {\n    collection {\n      name\n      slug\n      id\n      ...collectionUrl_collection\n    }\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n  ","\n"]);return ke=function(){return e},e}var Te=i()(ke(),Pe.a,h.G),Ie=Object(l.c)((function(e){return{currentLocation:e.navigation.currentLocation}}))((function(e){var t=e.currentLocation,n=e.notification,r={actorName:n.actor?n.actor.name:null,rollupItems:n.rollupItems},o=function(e){return e.post&&e.post.title?c.createElement(c.Fragment,null,"submitted a draft ",c.createElement(Ce.a,null,e.post.title)," to ",c.createElement(Ce.a,null,c.createElement(je,{collection:e.collection,isYours:!0}))):c.createElement(c.Fragment,null,"submitted a draft to ",c.createElement(Ce.a,null,c.createElement(je,{collection:e.collection,isYours:!0})))}(n);return c.createElement(Pe.b,{actors:r,user:n.actor,url:n.collection?Object(h.F)(n.collection,t):"",occurredAt:n.occurredAt,isUnread:n.isUnread},o)}));function Re(){var e=o()(["\n  fragment NotificationCollectionEditorAdded_notification on Notification {\n    collection {\n      name\n      slug\n      id\n      ...collectionUrl_collection\n    }\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n  ","\n"]);return Re=function(){return e},e}var Ne=i()(Re(),Pe.a,h.G),Ae=Object(l.c)((function(e){return{currentLocation:e.navigation.currentLocation}}))((function(e){var t=e.currentLocation,n=e.notification,r={actorName:n.actor?n.actor.name:null,rollupItems:n.rollupItems};return c.createElement(Pe.b,{actors:r,user:n.actor,url:n.collection?Object(h.F)(n.collection,t):"",occurredAt:n.occurredAt,isUnread:n.isUnread},c.createElement(c.Fragment,null,"added you as an editor of ",c.createElement(Ce.a,null,c.createElement(je,{collection:n.collection}))))}));function Le(){var e=o()(["\n  fragment NotificationCollectionFollowedMilestone_notification on Notification {\n    milestoneArg\n    collection {\n      name\n      slug\n      id\n      ...collectionUrl_collection\n    }\n    occurredAt\n    isUnread\n    rollupItems {\n      actor {\n        id\n      }\n    }\n  }\n  ","\n"]);return Le=function(){return e},e}var De=i()(Le(),h.G),Ue=Object(l.c)((function(e){return{currentLocation:e.navigation.currentLocation}}))((function(e){var t=e.currentLocation,n=e.notification,r=function(e){return 1===e.milestoneArg?c.createElement(c.Fragment,null,c.createElement(Ce.a,null,c.createElement(je,{collection:e.collection,isYours:!0,isFirst:!0}))," has a follower"):e.milestoneArg?c.createElement(c.Fragment,null,c.createElement(Ce.a,null,c.createElement(je,{collection:e.collection}))," has "+e.milestoneArg+" followers"):null}(n);return c.createElement(_.b,null,(function(e){return c.createElement(Pe.b,{user:e,url:n.collection?Object(h.F)(n.collection,t):"",occurredAt:n.occurredAt,isUnread:n.isUnread},r)}))}));function Me(e){var t=e.post,n=e.isYours,r=e.isFirst;return t&&t.title?t.title:n?r?"Your story":"your story":r?"A story":"a story"}function Fe(){var e=o()(["\n  fragment NotificationCollectionPostApproved_notification on Notification {\n    collection {\n      name\n      slug\n      id\n      ...collectionUrl_collection\n    }\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n  ","\n"]);return Fe=function(){return e},e}var Be=i()(Fe(),Pe.a,h.G),He=Object(l.c)((function(e){return{currentLocation:e.navigation.currentLocation}}))((function(e){var t=e.currentLocation,n=e.notification,r={actorName:n.actor?n.actor.name:null,rollupItems:n.rollupItems};return c.createElement(Pe.b,{actors:r,user:n.actor,url:n.collection?Object(h.F)(n.collection,t):"",occurredAt:n.occurredAt,isUnread:n.isUnread},c.createElement(c.Fragment,null,"approved ",c.createElement(Ce.a,null,c.createElement(Me,{post:n.post,isYours:!0}))," to be added to ",c.createElement(Ce.a,null,c.createElement(je,{collection:n.collection}))))}));function Ve(){var e=o()(["\n  fragment NotificationCollectionPostPublished_notification on Notification {\n    collection {\n      name\n      slug\n      id\n      ...collectionUrl_collection\n    }\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n  ","\n"]);return Ve=function(){return e},e}var ze=i()(Ve(),Pe.a,h.G),Ge=Object(l.c)((function(e){return{currentLocation:e.navigation.currentLocation}}))((function(e){var t=e.currentLocation,n=e.notification,r={actorName:n.actor?n.actor.name:null,rollupItems:n.rollupItems};return c.createElement(Pe.b,{actors:r,user:n.actor,url:n.post?Object(h.ub)(n.post):n.collection?Object(h.F)(n.collection,t):"",occurredAt:n.occurredAt,isUnread:n.isUnread},c.createElement(c.Fragment,null,"published ",c.createElement(Ce.a,null,c.createElement(Me,{post:n.post,isYours:!0}))," in ",c.createElement(Ce.a,null,c.createElement(je,{collection:n.collection}))))}));function We(){var e=o()(["\n  fragment NotificationCollectionPostSubmitted_notification on Notification {\n    collection {\n      name\n      slug\n      id\n      ...collectionUrl_collection\n    }\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n  ","\n"]);return We=function(){return e},e}var qe=i()(We(),Pe.a,h.G),Ye=Object(l.c)((function(e){return{currentLocation:e.navigation.currentLocation}}))((function(e){var t=e.currentLocation,n=e.notification,r={actorName:n.actor?n.actor.name:null,rollupItems:n.rollupItems};return c.createElement(Pe.b,{actors:r,user:n.actor,url:n.collection?Object(h.F)(n.collection,t):"",occurredAt:n.occurredAt,isUnread:n.isUnread},c.createElement(c.Fragment,null,"submitted ",c.createElement(Ce.a,null,c.createElement(Me,{post:n.post}))," to ",c.createElement(Ce.a,null,c.createElement(je,{collection:n.collection}))))}));function Ke(){var e=o()(["\n  fragment NotificationFastrakPostAccepted_notification on Notification {\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n  }\n"]);return Ke=function(){return e},e}var Xe=i()(Ke()),Qe=Object(l.c)((function(e){return{productName:e.config.productName}}))((function(e){var t=e.productName,n=e.notification;return c.createElement(_.b,null,(function(e){return c.createElement(Pe.b,{user:e,url:n.post?Object(h.ub)(n.post):"",occurredAt:n.occurredAt,isUnread:n.isUnread},c.createElement(c.Fragment,null,c.createElement(c.Fragment,null," ",t," curators selected "),c.createElement(Ce.b,null,c.createElement(Me,{post:n.post,isYours:!0}))))}))}));function $e(){var e=o()(["\n  fragment NotificationHighlightWasPiledOnto_notification on Notification {\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    actor {\n      id\n      name\n    }\n    quote {\n      startOffset\n      endOffset\n      paragraphs {\n        text\n        type\n      }\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return $e=function(){return e},e}function Je(e){var t=e.notification,n=function(e){var t,n,r,o;if((null==e||null===(t=e.quote)||void 0===t||null===(n=t.paragraphs)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.text)&&(null==e||null===(o=e.quote)||void 0===o?void 0:o.endOffset)){var a=e.quote.paragraphs[0].text.slice(e.quote.startOffset||0,e.quote.endOffset);return c.createElement(c.Fragment,null,"also highlighted ",c.createElement(Ce.c,{text:a}))}return c.createElement(c.Fragment,null,"also highlighted ",c.createElement(Ce.b,null,c.createElement(Me,{post:e.post,isYours:!0})))}(t),r={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:r,user:t.actor,url:t.post&&t.post.id?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},n)}var Ze=i()($e(),Pe.a);function et(){var e=o()(["\n  fragment NotificationMentionInNote_notification on Notification {\n    note {\n      content\n    }\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return et=function(){return e},e}function tt(e){var t=e.notification,n=function(e){return e.note&&e.note.content?c.createElement(c.Fragment,null,"mentioned you in a note ",c.createElement(Ce.d,{text:e.note.content})):c.createElement(c.Fragment,null,"mentioned you in a note on ",c.createElement(Ce.b,null,c.createElement(Me,{post:e.post})))}(t),r={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:r,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},n)}var nt=i()(et(),Pe.a);function rt(){var e=o()(["\n  fragment NotificationMentionInNoteReply_notification on Notification {\n    noteReply {\n      content\n    }\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return rt=function(){return e},e}function ot(e){var t=e.notification,n=function(e){return e.noteReply&&e.noteReply.content?c.createElement(c.Fragment,null,"mentioned you in a note reply ",c.createElement(Ce.d,{text:e.noteReply.content})):c.createElement(c.Fragment,null,"mentioned you in a note reply on ",c.createElement(Ce.b,null,c.createElement(Me,{post:e.post})))}(t),r={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:r,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},n)}var at=i()(rt(),Pe.a);function it(){var e=o()(["\n  fragment NotificationMentionInNoteReplyUpdate_notification on Notification {\n    noteReply {\n      content\n    }\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return it=function(){return e},e}function ct(e){var t=e.notification,n=function(e){return e.noteReply&&e.noteReply.content?c.createElement(c.Fragment,null,"updated a reply mentioning you ",c.createElement(Ce.d,{text:e.noteReply.content})):c.createElement(c.Fragment,null,"updated a reply mentioning you on ",c.createElement(Ce.b,null,c.createElement(Me,{post:e.post})))}(t),r={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:r,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},n)}var st=i()(it(),Pe.a);function lt(){var e=o()(["\n  fragment NotificationMentionInNoteUpdate_notification on Notification {\n    note {\n      content\n    }\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return lt=function(){return e},e}function ut(e){var t=e.notification,n=function(e){return e.note&&e.note.content?c.createElement(c.Fragment,null,"updated a note mentioning you ",c.createElement(Ce.d,{text:e.note.content})):c.createElement(c.Fragment,null,"updated a note mentioning you on ",c.createElement(Ce.b,null,c.createElement(Me,{post:e.post})))}(t),r={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:r,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},n)}var dt=i()(lt(),Pe.a);function mt(){var e=o()(["\n  fragment NotificationMentionInPost_notification on Notification {\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return mt=function(){return e},e}function pt(e){var t=e.notification,n={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:n,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},c.createElement(c.Fragment,null,"mentioned you in a story ",c.createElement(Ce.b,null,t.post&&t.post.title)))}var ft=i()(mt(),Pe.a);function ht(){var e=o()(["\n  fragment NotificationMentionInSeries_notification on Notification {\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return ht=function(){return e},e}function gt(e){var t=e.notification,n={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:n,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},c.createElement(c.Fragment,null,"mentioned you in a series ",c.createElement(Ce.b,null,t.post&&t.post.title)))}var bt=i()(ht(),Pe.a);function vt(){var e=o()(["\n  fragment NotificationNoteReplied_notification on Notification {\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    noteReply {\n      content\n      id\n    }\n    actor {\n      id\n      name\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return vt=function(){return e},e}function Et(e){var t=e.notification,n=function(e){return e.noteReply&&e.noteReply.content?c.createElement(c.Fragment,null,"replied to your private note ",c.createElement(Ce.d,{text:e.noteReply.content})):c.createElement(c.Fragment,null,"replied to your private note on ",c.createElement(Ce.a,null,c.createElement(Me,{post:e.post})))}(t),r={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:r,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},n)}var yt=i()(vt(),Pe.a);function Ot(){var e=o()(["\n  fragment NotificationPostAddedToEditorsPicks_notification on Notification {\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return Ot=function(){return e},e}function xt(e){var t=e.notification;return c.createElement(Pe.b,{user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},c.createElement(c.Fragment,null,c.createElement(Ce.a,null,c.createElement(Me,{post:t.post,isYours:!0,isFirst:!0}))," has been selected by our editors as a Featured Story on the top of our homepage. Congratulations!"))}var _t=i()(Ot(),Pe.a);function wt(){var e=o()(["\n  fragment NotificationPostAddedToHomepageCatalog_notification on Notification {\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return wt=function(){return e},e}function St(e){var t=e.notification,n={actorName:null,rollupItems:t.rollupItems};return c.createElement(_.b,null,(function(e){return c.createElement(Pe.b,{actors:n,user:e,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},c.createElement(c.Fragment,null,c.createElement(Ce.a,null,c.createElement(Me,{post:t.post,isYours:!0,isFirst:!0}))," was featured on the Medium homepage"))}))}var jt=i()(wt(),Pe.a);function Pt(){var e=o()(["\n  fragment NotificationPostClappedMilestone_notification on Notification {\n    milestoneArg\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    occurredAt\n    isUnread\n    rollupItems {\n      actor {\n        id\n      }\n    }\n  }\n"]);return Pt=function(){return e},e}function Ct(e){var t=e.notification,n=function(e){return e.milestoneArg?c.createElement(c.Fragment,null,c.createElement(Ce.a,null,c.createElement(Me,{post:e.post,isYours:!0,isFirst:!0}))," got "+e.milestoneArg+" claps"):null}(t);return c.createElement(_.b,null,(function(e){return c.createElement(Pe.b,{user:e,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},n)}))}var kt=i()(Pt());function Tt(){var e=o()(["\n  fragment NotificationPostCollaboratedPublished_notification on Notification {\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    actor {\n      id\n      name\n    }\n    quote {\n      quoteParagraphPreview {\n        text\n      }\n      paragraphs {\n        type\n      }\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return Tt=function(){return e},e}function It(e){var t=e.notification,n=function(e){return e.post&&e.post.title?c.createElement(c.Fragment,null,"published a story ",c.createElement(Ce.a,null,e.post.title)," that you collaborated on together"):c.createElement(c.Fragment,null,"published a story that you collaborated on together")}(t),r={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:r,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},n)}var Rt=i()(Tt(),Pe.a);function Nt(){var e=o()(["\n  fragment NotificationPostMongerRequestSent_notification on Notification {\n    actor {\n      id\n      name\n      username\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return Nt=function(){return e},e}var At=i()(Nt(),Pe.a),Lt=Object(l.c)((function(e){return{productName:e.config.productName}}))((function(e){var t=e.productName,n=e.notification;return c.createElement(Pe.b,{user:n.actor,url:n.post?Object(h.ub)(n.post):"",occurredAt:n.occurredAt,isUnread:n.isUnread},c.createElement(c.Fragment,null,"Our curators would love to feature your story on ",t,". We just emailed you with the details – check your inbox."))}));function Dt(){var e=o()(["\n  fragment NotificationPostNoteReplied_notification on Notification {\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    noteReply {\n      content\n    }\n    actor {\n      id\n      name\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return Dt=function(){return e},e}function Ut(e){var t=e.notification,n=function(e){return e.noteReply&&e.noteReply.content?c.createElement(c.Fragment,null,"replied to a private note ",c.createElement(Ce.d,{text:e.noteReply.content})):c.createElement(c.Fragment,null,"replied to a private note on ",c.createElement(Ce.b,null,c.createElement(Me,{post:e.post})))}(t),r={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:r,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},n)}var Mt=i()(Dt(),Pe.a);function Ft(){var e=o()(["\n  fragment NotificationPostNoted_notification on Notification {\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    note {\n      id\n      content\n    }\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return Ft=function(){return e},e}function Bt(e){var t=e.notification,n=function(e){return e.note&&e.note.content?c.createElement(c.Fragment,null,"left a note ",c.createElement(Ce.d,{text:e.note.content})):c.createElement(c.Fragment,null,"left a note on ",c.createElement(Ce.a,null,c.createElement(Me,{post:e.post})))}(t),r={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:r,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},n)}var Ht=i()(Ft(),Pe.a);function Vt(){var e=o()(["\n  fragment NotificationPostPublishedBySomeoneYouFollow_notification on Notification {\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return Vt=function(){return e},e}function zt(e){var t=e.notification,n={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:n,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},c.createElement(c.Fragment,null,"published a new story ",c.createElement(Ce.b,null,t.post?t.post.title:"")))}var Gt=i()(Vt(),Pe.a);function Wt(){var e=o()(["\n  fragment NotificationPostRecommended_notification on Notification {\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return Wt=function(){return e},e}function qt(e){var t=e.notification,n={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:n,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},c.createElement(c.Fragment,null,"clapped for ",c.createElement(Ce.a,null,c.createElement(Me,{post:t.post}))))}var Yt=i()(Wt(),Pe.a);function Kt(){var e=o()(["\n  fragment NotificationPostRecommendedMilestone_notification on Notification {\n    milestoneArg\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    occurredAt\n    isUnread\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return Kt=function(){return e},e}function Xt(e){var t=e.notification,n=function(e){return 1===e.milestoneArg?c.createElement(c.Fragment,null,c.createElement(Ce.a,null,c.createElement(Me,{post:e.post,isYours:!0,isFirst:!0}))," has a fan"):e.milestoneArg?c.createElement(c.Fragment,null,c.createElement(Ce.a,null,c.createElement(Me,{post:e.post,isYours:!0,isFirst:!0}))," has "+e.milestoneArg+" fans"):null}(t);return c.createElement(_.b,null,(function(e){return c.createElement(Pe.b,{user:e,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},n)}))}var Qt=i()(Kt(),Pe.a);function $t(){var e=o()(["\n  fragment NotificationPostShared_notification on Notification {\n    actor {\n      id\n      name\n    }\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    occurredAt\n    isUnread\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return $t=function(){return e},e}function Jt(e){var t=e.notification,n=function(e){return e.post?c.createElement(c.Fragment,null," shared a post with you ",c.createElement(Ce.b,null,c.createElement(Me,{post:e.post}))):c.createElement(c.Fragment,null," shared a post with you")}(t),r={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:r,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},n)}var Zt=i()($t(),Pe.a);function en(){var e=o()(["\n  fragment NotificationQuote_notification on Notification {\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    actor {\n      id\n      name\n    }\n    quote {\n      startOffset\n      endOffset\n      paragraphs {\n        text\n        type\n      }\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return en=function(){return e},e}function tn(e){var t=e.notification,n=function(e,t){var n,r,o;if(e.quote&&e.quote.paragraphs.length>1)return c.createElement(c.Fragment,null,"left "+e.quote.paragraphs.length+" highlights in ",c.createElement(Ce.b,null,c.createElement(Me,{post:e.post,isYours:!0})));if(t)return c.createElement(c.Fragment,null,"highlighted ",c.createElement(Ce.b,null,c.createElement(Me,{post:e.post,isYours:!0})));if((null==e||null===(n=e.quote)||void 0===n||null===(r=n.paragraphs)||void 0===r||null===(o=r[0])||void 0===o?void 0:o.text)&&e.quote.endOffset){var a=e.quote.paragraphs[0].text.slice(e.quote.startOffset||0,e.quote.endOffset);return c.createElement(c.Fragment,null,"highlighted ",c.createElement(Ce.c,{text:a}))}return c.createElement(c.Fragment,null,"highlighted ",c.createElement(Ce.b,null,c.createElement(Me,{post:e.post})))}(t,e.isRollup),r={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:r,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},n)}var nn=i()(en(),Pe.a);function rn(){var e=o()(["\n  fragment NotificationResponseCreated_notification on Notification {\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    responsePost {\n      id\n      mediumUrl\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return rn=function(){return e},e}function on(e){var t=e.notification,n=e.isRollup,r={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:r,user:t.actor,url:n&&t.post?Object(h.ub)(t.post):t.responsePost?Object(h.ub)(t.responsePost):"",occurredAt:t.occurredAt,isUnread:t.isUnread},c.createElement(c.Fragment,null,"responded to ",c.createElement(Ce.a,null,c.createElement(Me,{post:t.post,isYours:!0}))))}var an=i()(rn(),Pe.a);function cn(){var e=o()(["\n  fragment NotificationSeriesPublishedBySomeoneYouFollow_notification on Notification {\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return cn=function(){return e},e}function sn(e){var t=e.notification,n={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:n,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},c.createElement(c.Fragment,null,"started a series ",c.createElement(Ce.b,null,t.post&&t.post.title)))}var ln=i()(cn(),Pe.a);function un(){var e=o()(["\n  fragment NotificationSeriesSubscribed_notification on Notification {\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return un=function(){return e},e}function dn(e){var t=e.notification,n={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:n,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},c.createElement(c.Fragment,null,"subscribed to updates from your series ",c.createElement(Ce.a,null,t.post?t.post.title:"")))}var mn=i()(un(),Pe.a);function pn(){var e=o()(["\n  fragment NotificationSeriesYouFollowUpdated_notification on Notification {\n    actor {\n      id\n      name\n    }\n    occurredAt\n    isUnread\n    post {\n      id\n      mediumUrl\n      title\n      visibility\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n"]);return pn=function(){return e},e}function fn(e){var t=e.notification,n={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return c.createElement(Pe.b,{actors:n,user:t.actor,url:t.post?Object(h.ub)(t.post):"",occurredAt:t.occurredAt,isUnread:t.isUnread},c.createElement(c.Fragment,null,"updated their series ",c.createElement(Ce.b,null,t.post?t.post.title:"")))}var hn=i()(pn(),Pe.a);function gn(){var e=o()(["\n  fragment NotificationTaxes_notification on Notification {\n    actor {\n      name\n    }\n    notificationType\n    occurredAt\n    isUnread\n    rollupItems {\n      actor {\n        id\n      }\n    }\n  }\n"]);return gn=function(){return e},e}var bn=i()(gn()),vn=Object(l.c)((function(e){return{productName:e.config.productName}}))((function(e){var t=e.productName,n=e.notification,r=n.notificationType;return c.createElement(_.b,null,(function(e){return c.createElement(Pe.b,{user:e,url:Object(h.mb)(),occurredAt:n.occurredAt,isUnread:n.isUnread},c.createElement(c.Fragment,null,function(e,t){return"tax_not_submitted_day_one"===e||"tax_not_submitted_post_earning_limit"===e||"tax_not_submitted_pre_earning_limit"===e?"In order to receive payments through the ".concat(t," Partner Program,\n    please take a moment to add your taxpayer information."):"tax_not_submitted_final"===e?"This is the final week to add your tax information to receive your withheld\n    ".concat(t," payments."):"tax_not_submitted_last_day"===e?"Your ".concat(t," Partner Program withholdings have been forfeited,\n    but you can begin earning again once you submit verified tax information."):"tax_failed_tin_day_one"===e?"We were not able to verify your taxpayer information.\n    In order to be paid, please take a moment to revisit your information.":"tax_failed_tin_post_earning_limit"===e||"tax_failed_tin_pre_earning_limit"===e?"We were not able to verify your taxpayer information. In order to receive payments through\n    ".concat(t," Partner Program, please revisit your information."):"tax_failed_tin_final"===e?"This is the final week to add your tax information to receive your withheld\n    ".concat(t," Partner Program payments."):"tax_failed_tin_last_day"===e?"Your ".concat(t," withholdings have been forfeited,\n    but you can begin earning again once you submit verified tax information."):void 0}(r,t)))}))})),En=n("./src/components/user/UserFollowButton.tsx");function yn(){var e=o()(["\n  fragment NotificationsFollowersDialog_user on User {\n    username\n    name\n    imageId\n    bio\n    isFollowing\n    mediumMemberAt\n  }\n"]);return yn=function(){return e},e}function On(e){var t=e.actors,n=e.isVisible,r=e.hide;return c.createElement(f.i,{isVisible:n,hide:r,withAnimation:!0},c.createElement(f.b,{maxWidth:"550px",sm:{paddingTop:"0"}},c.createElement(f.b,{display:"flex",flexDirection:"column",textAlign:"center"},c.createElement($.b,{scale:"S"},"Follows")),t&&t.map((function(e){var t=e.actor;return t&&c.createElement(xn,{hide:r,actor:t,key:t.id})}))))}var xn=function(e){var t=e.actor,n=e.hide,r=t.username,o=t.name,a=t.bio,i=void 0===a?"":a;return o&&r?c.createElement(f.b,{padding:"12px 0"},c.createElement(f.b,{display:"flex",alignItems:"flex-start",justifyContent:"space-between"},c.createElement(f.b,{display:"flex",alignItems:"flex-start"},c.createElement(f.b,{marginRight:"20px"},c.createElement(E.d,{user:t,scale:"S"})),c.createElement(f.b,{display:"flex",flexDirection:"column",alignItems:"flex-start"},c.createElement($.b,{scale:"XS"},c.createElement(f.t,{href:Object(h.ic)(r),onClick:n},o)),c.createElement($.a,{scale:"S"},i))),c.createElement(f.b,{marginLeft:"48px"},c.createElement(En.c,{buttonSize:"SMALL",user:t})))):null},_n=i()(yn());function wn(){var e=o()(["\n  fragment NotificationUsersFollowingYou_notification on Notification {\n    actor {\n      id\n      name\n      username\n    }\n    occurredAt\n    isUnread\n    rollupItems {\n      actor {\n        id\n        ...NotificationsFollowersDialog_user\n      }\n    }\n    ...NotificationLayout_notification\n  }\n  ","\n  ","\n"]);return wn=function(){return e},e}function Sn(e){var t=e.notification,n=e.isRollup,r={actorName:t.actor?t.actor.name:null,rollupItems:t.rollupItems};return n?c.createElement(f.I,null,(function(e){var n=e.isVisible,o=e.show,a=e.hide;return c.createElement(c.Fragment,null,c.createElement(Pe.b,{actors:r,user:t.actor,onClick:o,url:"",occurredAt:t.occurredAt,isUnread:t.isUnread},c.createElement(c.Fragment,null,"started following you")),c.createElement(On,{actors:r.rollupItems,isVisible:n,hide:a}))})):c.createElement(Pe.b,{actors:r,user:t.actor,url:t.actor&&t.actor.username?Object(h.ic)(t.actor.username):"",occurredAt:t.occurredAt,isUnread:t.isUnread},c.createElement(c.Fragment,null,"started following you"))}var jn=i()(wn(),Pe.a,_n);function Pn(){var e=o()(["\n  fragment Notification_notification on Notification {\n    notificationType\n    ...NotificationQuote_notification\n    ...NotificationResponseCreated_notification\n    ...NotificationPostRecommended_notification\n    ...NotificationCollectionPostSubmitted_notification\n    ...NotificationCollectionDraftSubmitted_notification\n    ...NotificationCollectionPostApproved_notification\n    ...NotificationCollectionPostPublished_notification\n    ...NotificationCollectionEditorAdded_notification\n    ...NotificationPostCollaboratedPublished_notification\n    ...NotificationPostNoted_notification\n    ...NotificationNoteReplied_notification\n    ...NotificationPostNoteReplied_notification\n    ...NotificationMentionInNote_notification\n    ...NotificationMentionInNoteUpdate_notification\n    ...NotificationMentionInNoteReply_notification\n    ...NotificationMentionInNoteReplyUpdate_notification\n    ...NotificationCollectionFollowedMilestone_notification\n    ...NotificationPostAddedToEditorsPicks_notification\n    ...NotificationPostRecommendedMilestone_notification\n    ...NotificationPostClappedMilestone_notification\n    ...NotificationPostPublishedBySomeoneYouFollow_notification\n    ...NotificationSeriesPublishedBySomeoneYouFollow_notification\n    ...NotificationSeriesYouFollowUpdated_notification\n    ...NotificationSeriesSubscribed_notification\n    ...NotificationUsersFollowingYou_notification\n    ...NotificationMentionInPost_notification\n    ...NotificationMentionInSeries_notification\n    ...NotificationPostAddedToHomepageCatalog_notification\n    ...NotificationFastrakPostAccepted_notification\n    ...NotificationHighlightWasPiledOnto_notification\n    ...NotificationPostMongerRequestSent_notification\n    ...NotificationTaxes_notification\n    ...NotificationPostShared_notification\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return Pn=function(){return e},e}function Cn(e){var t=e.notification,n=t.notificationType.includes("_rollup");switch(n?t.notificationType.replace("_rollup",""):t.notificationType){case"quote":return c.createElement(tn,{notification:t,isRollup:n});case"response_created":return c.createElement(on,{notification:t,isRollup:n});case"post_recommended":return c.createElement(qt,{notification:t});case"collection_post_submitted":return c.createElement(Ye,{notification:t});case"collection_draft_submitted":return c.createElement(Ie,{notification:t});case"collection_post_approved":return c.createElement(He,{notification:t});case"collection_post_published":return c.createElement(Ge,{notification:t});case"collection_editor_added":return c.createElement(Ae,{notification:t});case"post_collaborated_published":return c.createElement(It,{notification:t});case"post_noted":return c.createElement(Bt,{notification:t});case"note_replied":return c.createElement(Et,{notification:t});case"post_note_replied":return c.createElement(Ut,{notification:t});case"mention_in_note":return c.createElement(tt,{notification:t});case"mention_in_note_update":return c.createElement(ut,{notification:t});case"mention_in_note_reply":return c.createElement(ot,{notification:t});case"mention_in_note_reply_update":return c.createElement(ct,{notification:t});case"collection_followed_milestone":return c.createElement(Ue,{notification:t});case"post_added_to_editors_picks":return c.createElement(xt,{notification:t});case"post_recommended_milestone":return c.createElement(Xt,{notification:t});case"post_clapped_milestone":return c.createElement(Ct,{notification:t});case"post_published_by_someone_you_follow":return c.createElement(zt,{notification:t});case"series_published_by_someone_you_follow":return c.createElement(sn,{notification:t});case"series_you_follow_updated":return c.createElement(fn,{notification:t});case"series_subscribed":return c.createElement(dn,{notification:t});case"users_following_you":return c.createElement(Sn,{notification:t,isRollup:n});case"mention_in_post":return c.createElement(pt,{notification:t});case"mention_in_series":return c.createElement(gt,{notification:t});case"post_added_to_homepage_catalog":return c.createElement(St,{notification:t});case"fastrak_post_accepted":return c.createElement(Qe,{notification:t});case"highlight_was_piled_onto":return c.createElement(Je,{notification:t});case"post_monger_request_sent":return c.createElement(Lt,{notification:t});case"post_shared":return c.createElement(Jt,{notification:t});case"tax_not_submitted_day_one":case"tax_not_submitted_pre_earning_limit":case"tax_not_submitted_post_earning_limit":case"tax_not_submitted_final":case"tax_not_submitted_last_day":case"tax_failed_tin_day_one":case"tax_failed_tin_post_earning_limit":case"tax_failed_tin_pre_earning_limit":case"tax_failed_tin_final":case"tax_failed_tin_last_day":return c.createElement(vn,{notification:t});default:return null}}var kn=i()(Pn(),nn,an,Yt,qe,Te,Be,ze,Ne,Rt,Ht,yt,Mt,nt,dt,at,st,De,_t,Qt,kt,Gt,ln,hn,mn,jn,ft,bt,jt,Xe,Ze,At,bn,Zt),Tn=n("./node_modules/@apollo/react-components/lib/react-components.esm.js");function In(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(){var e=o()(["\n  query NotificationCountMutation_notificationsWidgetQuery {\n    notificationStatus {\n      unreadNotificationCount\n    }\n  }\n"]);return Rn=function(){return e},e}function Nn(){var e=o()(["\n  mutation NotificationCountMutation {\n    updateActivityLastViewed\n  }\n"]);return Nn=function(){return e},e}var An=i()(Nn()),Ln=i()(Rn()),Dn=function(e){var t=e.children;return c.createElement(Tn.a,{mutation:An,optimisticResponse:{updateActivityLastViewed:!0},update:function(e){var t={query:Ln},n=e.readQuery(t);n.notificationStatus.unreadNotificationCount=0,e.writeQuery(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?In(Object(n),!0).forEach((function(t){q()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({data:n},t))}},(function(e){return t({mutate:e})}))};function Un(){return(Un=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Mn=s.a.createElement("path",{d:"M-273.33 423.67l-1.67-1.52v-3.65a5.5 5.5 0 0 0-6.04-5.47 5.66 5.66 0 0 0-4.96 5.71v3.41l-1.68 1.55a1 1 0 0 0-.32.74V427a1 1 0 0 0 1 1h3.49a3.08 3.08 0 0 0 3.01 2.45 3.08 3.08 0 0 0 3.01-2.45h3.49a1 1 0 0 0 1-1v-2.59a1 1 0 0 0-.33-.74zm-7.17 5.63c-.84 0-1.55-.55-1.81-1.3h3.62a1.92 1.92 0 0 1-1.81 1.3zm6.35-2.45h-12.7v-2.35l1.63-1.5c.24-.22.37-.53.37-.85v-3.41a4.51 4.51 0 0 1 3.92-4.57 4.35 4.35 0 0 1 4.78 4.33v3.65c0 .32.14.63.38.85l1.62 1.48v2.37z"}),Fn=function(e){return s.a.createElement("svg",Un({width:25,height:25,viewBox:"-293 409 25 25"},e),Mn)};function Bn(){var e=o()(["\n  query NotificationsBadgeQuery {\n    notificationStatus {\n      unreadNotificationCount\n    }\n  }\n"]);return Bn=function(){return e},e}function Hn(e){var t,n=e.toggle,r=Object(Se.e)(Vn,{ssr:!1}),o=r.loading,a=r.data,i=c.useState(!1),s=I()(i,2),l=s[0],u=s[1];if(o)return c.createElement(f.t,{onClick:function(){n(),u(!0)},display:"block"},c.createElement(f.b,{tag:Fn,margin:"15px 0"}));var d=(null==a||null===(t=a.notificationStatus)||void 0===t?void 0:t.unreadNotificationCount)||0;return d>0?c.createElement(Dn,null,(function(e){var t=e.mutate;return l&&(u(!1),setTimeout((function(){return t()}),0)),c.createElement(f.c,{buttonStyle:"STRONG",size:"BADGE",shape:"CIRCLE",onClick:function(){n(),t()},width:"30px"},d)})):c.createElement(f.t,{onClick:n,display:"block"},c.createElement(f.b,{tag:Fn,margin:"15px 0"}))}var Vn=i()(Bn());function zn(e){var t=e.fetchMore;return t?c.createElement(f.t,{linkStyle:"OBVIOUS",onClick:t},"Older notifications"):c.createElement(c.Fragment,null,"You're all caught up.")}var Gn=Object(l.c)((function(e){return{authDomain:e.config.authDomain}}))((function(e){var t=e.authDomain,n=e.fetchMore;return c.createElement(f.b,{width:"100%",display:"flex",justifyContent:"space-between",marginTop:"10px",marginBottom:"10px",padding:"10px 20px"},c.createElement($.a,{scale:"M"},c.createElement(zn,{fetchMore:n})),c.createElement($.a,{scale:"M"},c.createElement(f.t,{linkStyle:"OBVIOUS",href:Object(h.tc)(t)},"Your stats")))})),Wn={from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},qn=function(e){return function(t){return{width:"40px",height:"40px",borderRadius:"50%",borderWidth:"2px",borderStyle:"solid",borderColor:"".concat(t.baseColor.border.normal," transparent ").concat(t.baseColor.border.normal," ").concat(t.baseColor.border.normal),animation:"".concat(e," 2s infinite linear;")}}},Yn=function(){var e=Object(J.useKeyframes)({keyframesName:Wn}).keyframesName,t=Object(J.useCx)();return c.createElement("div",{className:t(qn(e))})};function Kn(){var e=o()(["\n  query NotificationsWidgetQuery($pagingOptions: PagingOptions) {\n    notificationsConnection(paging: $pagingOptions) {\n      notifications {\n        ...Notification_notification\n      }\n      pagingInfo {\n        next {\n          limit\n          page\n          source\n          to\n        }\n      }\n    }\n  }\n  ","\n"]);return Kn=function(){return e},e}var Xn=function(){return c.createElement(f.b,{display:"flex",justifyContent:"center",padding:"20px",width:"360px"},c.createElement(Yn,null))};function Qn(e){var t=e.setIsMetabarLocked,n=Object(Se.c)($n,{ssr:!1}),r=I()(n,2),o=r[0],a=r[1],i=a.called,s=a.loading,l=a.data,u=a.fetchMore,d=s||void 0===l?Xn:function(){var e=(l||{}).notificationsConnection;if(!e)return null;var t,n=e.notifications;n||(n=[]);var r=e.pagingInfo&&e.pagingInfo.next;if(r){var o={limit:r.limit,page:r.page,source:r.source,to:r.to};t=function(){return u({variables:{pagingOptions:o},updateQuery:function(e,t){var n,r,o,a,i=t.fetchMoreResult;return we()({},i,{notificationsConnection:{notifications:[].concat(xe()(null!==(n=null==e||null===(r=e.notificationsConnection)||void 0===r?void 0:r.notifications)&&void 0!==n?n:[]),xe()(null!==(o=null==i||null===(a=i.notificationsConnection)||void 0===a?void 0:a.notifications)&&void 0!==o?o:[]))}})}})}}return c.createElement(p.a,{padding:"0"},c.createElement(c.Fragment,null,n.map((function(e,t){return c.createElement(c.Fragment,{key:t},c.createElement(p.b,{paddingTopBottom:"0",paddingLeftRight:"0"},c.createElement(Cn,{notification:e})),c.createElement(p.c,{paddingTopBottom:"0"}))})),c.createElement(Gn,{fetchMore:t})))};return c.createElement(f.I,null,(function(e){var n=e.isVisible,r=e.hide,a=e.toggle;return c.createElement(f.w,{flip:!1,hide:function(){r(),t(!1)},isVisible:n,popoverRenderFn:d,setMaxHeight:!0},c.createElement(Hn,{toggle:function(){i||o(),t(!n),a()}}))}))}var $n=i()(Kn(),kn),Jn=n("./src/components/optimizely/OptimizelyWrapper.tsx"),Zn=n("./src/components/session/useFlag.tsx");function er(){return(er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var tr=s.a.createElement("path",{d:"M16 6a2 2 0 0 1 2 2v13.66h-.01a.5.5 0 0 1-.12.29.5.5 0 0 1-.7.03l-5.67-4.13-5.66 4.13a.5.5 0 0 1-.7-.03.48.48 0 0 1-.13-.29H5V8c0-1.1.9-2 2-2h9zM6 8v12.64l5.16-3.67a.49.49 0 0 1 .68 0L17 20.64V8a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z"}),nr=s.a.createElement("path",{d:"M21 5v13.66h-.01a.5.5 0 0 1-.12.29.5.5 0 0 1-.7.03l-.17-.12V5a1 1 0 0 0-1-1h-9a1 1 0 0 0-1 1H8c0-1.1.9-2 2-2h9a2 2 0 0 1 2 2z"}),rr=function(e){return s.a.createElement("svg",er({width:25,height:25,viewBox:"0 0 25 25"},e),tr,nr)};function or(){var e=o()(["\n  fragment MetabarActionsLI_post on Post {\n    ...MetabarButtonConversionLI_post\n    isLocked\n    pendingCollection {\n      ...MetabarActionsLI_collection_common\n    }\n    ...MetabarPostMenuButton_post\n  }\n  ","\n  ","\n  ","\n"]);return or=function(){return e},e}function ar(){var e=o()(["\n  fragment MetabarActionsLI_collection on Collection {\n    ...CollectionAvatar_collection\n    ...CollectionMetabarActionsPopover_collection\n    ...MetabarActionsLI_collection_common\n  }\n  ","\n  ","\n  ","\n"]);return ar=function(){return e},e}function ir(){var e=o()(["\n  fragment MetabarActionsLI_collection_common on Collection {\n    creator {\n      id\n    }\n    viewerIsEditor\n  }\n"]);return ir=function(){return e},e}var cr=i()(ir()),sr=i()(ar(),u.b,b,cr),lr=i()(or(),C,cr,H),ur=Object(l.c)((function(e){return{authDomain:e.config.authDomain}}))((function(e){var t=e.authDomain,n=e.collection,r=e.post,o=e.viewer,a=e.setIsMetabarLocked,i=!!o.mediumMemberAt,s=n||r&&r.pendingCollection,l=Object(Zn.a)("can_edit_members_only_posts"),m=Object(Zn.a)("enable_aurora_lightweight_flow"),p=s&&s.creator&&s.creator.id===o.id,g=s&&s.viewerIsEditor,b=p||g,y=r&&r.creator&&r.creator.id===o.id,O=r&&(b||y),_=l&&r&&r.isLocked,w=O||_,j=w&&r?c.createElement(V,{post:r}):null,P=m&&(null==n?void 0:n.isAuroraVisible)&&b,C=!Object(R.a)();return c.createElement(f.d,null,c.createElement(f.b,{display:"flex",alignItems:"center",justifyContent:"flex-end"},j||c.createElement(c.Fragment,null,c.createElement(f.b,{display:"flex",md:{display:"none"}},c.createElement(S.b,{source:{name:"search-popover"}},c.createElement(Ee,{collection:n,setIsMetabarLocked:a}))),c.createElement(f.b,{display:"none",md:{display:"flex"}},c.createElement(f.t,{href:Object(h.Ab)()},c.createElement(f.b,{tag:Z.a,marginLeft:"16px",marginRight:"16px",sm:{marginLeft:"10px",marginRight:"10px"}})))),!w&&!P&&c.createElement(f.t,{href:Object(h.oc)(t)},c.createElement(f.b,{tag:rr,marginRight:"16px",sm:{display:"none"}})),c.createElement(f.b,{marginRight:"16px",display:"flex",sm:{marginRight:"10px"}},c.createElement(Qn,{setIsMetabarLocked:a})),!i&&!P&&c.createElement(Jn.a,{featureString:"li-post-page-navbar",target:"upsell-button"},c.createElement(f.b,{marginRight:"16px",sm:{display:"none"}},c.createElement(k,{post:r}))),c.createElement(x,{viewer:o,setIsMetabarLocked:a},c.createElement(E.d,{user:o,scale:"XS"})),n&&b&&c.createElement(d.a,{name:"enable_lite_pub_header_menu"},c.createElement(f.b,{marginLeft:"16px",sm:{marginLeft:"10px"}},c.createElement(v,{collection:n},c.createElement(u.a,{collection:n,size:32})))),n&&b&&P&&C&&c.createElement(ye,{collection:n})))})),dr=n("./src/components/metabar/MetabarActionsLO.tsx");function mr(){var e=o()(["\n  fragment MetabarActions_post on Post {\n    ...MetabarActionsLI_post\n  }\n  ","\n"]);return mr=function(){return e},e}function pr(){var e=o()(["\n  fragment MetabarActions_collection on Collection {\n    ...MetabarActionsLI_collection\n  }\n  ","\n"]);return pr=function(){return e},e}function fr(e){var t=e.post,n=e.collection,r=e.withoutConversionButton,o=void 0!==r&&r,a=e.setIsMetabarLocked,i=e.topicSlug,s=e.collectionSlug,l=e.username;return c.createElement(_.b,null,(function(e){return e?c.createElement(ur,{viewer:e,post:t,collection:n,setIsMetabarLocked:a}):c.createElement(dr.a,{withoutConversionButton:o,post:t,username:l,topicSlug:i,collectionSlug:s})}))}var hr=i()(pr(),sr),gr=i()(mr(),lr)},"./src/components/metabar/MetabarActionsLO.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"c",(function(){return S})),n.d(t,"b",(function(){return j}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),i=n.n(a),c=n("./node_modules/graphql-tag/src/index.js"),s=n.n(c),l=n("./node_modules/react/index.js"),u=n("./node_modules/react-redux/es/index.js"),d=n("./src/components/upsell/UpsellClickable.tsx"),m=n("./src/framework/design-system/components/index.ts"),p=n("./src/framework/source/index.ts"),f=n("./src/framework/track/UpsellPresentationTracker.tsx");function h(){var e=o()(["\n  fragment MetabarButtonConversionLO_post on Post {\n    ...UpsellClickable_post\n  }\n  ","\n"]);return h=function(){return e},e}var g=s()(h(),d.b),b=function(e){var t=e.post;return l.createElement(p.b,{source:{name:"upgrade_membership",dimension:"nav_full"}},l.createElement(f.a,null,l.createElement(d.a,{linkStyle:"SUBTLE",post:t},l.createElement(m.d,null,"Become a member"))))},v=n("./src/components/metabar/OpenInApp.tsx"),E=n("./src/components/optimizely/OptimizelyWrapper.tsx"),y=n("./src/components/session/useFlag.tsx"),O=n("./src/components/susi/SusiClickable.tsx");function x(){var e=o()(["\n  fragment MetabarActionsLO_post on Post {\n    ...MetabarButtonConversionLO_post\n    ...SusiClickable_post\n  }\n  ","\n  ","\n"]);return x=function(){return e},e}function _(){var e=o()(["\n  fragment MetabarActionsLO_user on User {\n    username\n  }\n"]);return _=function(){return e},e}var w=function(e){var t=e.withoutConversionButton,n=void 0!==t&&t,r=e.post,o=e.username,a=e.topicSlug,c=e.collectionSlug,s=Object(u.f)((function(e){return{hasRenderedAlternateUserBanner:e.navigation.hasRenderedAlternateUserBanner,isAmp:e.config.isAmp}}),u.d),d=s.isAmp,p=s.hasRenderedAlternateUserBanner,f=l.useState(!1),h=i()(f,2),g=h[0],x=h[1],_=!!Object(y.a)("enable_lo_open_in_app"),w=!!Object(y.a)("enable_highlander_member_digest");l.useEffect((function(){x(!0)}),[]);return w&&p?l.createElement(l.Fragment,null):l.createElement(m.b,{display:"flex",alignItems:"center"},!d&&l.createElement(m.b,{display:"flex",sm:{display:"none"}},!n&&l.createElement(E.a,{featureString:"lo-post-page-navbar",target:"upsell-button"},l.createElement(b,{post:r})),l.createElement(E.a,{featureString:"lo-post-page-navbar",target:"sign-in-link"},l.createElement(m.b,{marginLeft:"16px"},l.createElement(m.d,null,l.createElement(O.a,{linkStyle:"OBVIOUS",operation:"login",susiEntry:"nav_reg"},"Sign in"))))),g||d?l.createElement(l.Fragment,null,l.createElement(m.b,{display:"none",sm:{display:_?"flex":"none",alignItems:"center"}},l.createElement(v.a,{postId:r&&r.id,username:o,topicSlug:a,collectionSlug:c})),l.createElement(E.a,{featureString:"lo-post-page-navbar",target:"sign-in-button"},l.createElement(m.b,{marginLeft:"16px"},l.createElement(O.a,{isButton:!0,buttonStyle:"OBVIOUS",operation:"register",post:r,susiEntry:"nav_reg"},"Get started")))):l.createElement(l.Fragment,null))},S=s()(_()),j=s()(x(),g,O.d)},"./src/components/metabar/MetabarLayout.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return v}));var r,o=n("./node_modules/@babel/runtime/helpers/extends.js"),a=n.n(o),i=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),c=n.n(i),s=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),l=n.n(s),u=n("./node_modules/react/index.js"),d=n("./src/framework/design-system/components/index.ts"),m=n("./src/framework/design-system/typedefs/responsiveStyles.ts"),p=n("./src/framework/style/index.ts"),f=n("./src/framework/track/index.ts"),h=n("./src/styles/mediaTypes.ts"),g=n("./src/styles/zIndex.ts");!function(e){e.None="none",e.Gentle="gentle",e.Aggressive="aggressive"}(r||(r={}));var b=function(e,t,n){return function(r){var o;return o={display:"block",position:t?"fixed":"absolute",top:"0",left:"0",right:"0",backgroundColor:n?"transparent":r.backgroundColor,zIndex:g.a.metabar,boxShadow:e?void 0:"0 4px 12px 0 rgba(0, 0, 0, 0.05)",borderBottom:e?"1px solid ".concat(e):void 0},l()(o,Object(h.b)("no-preference"),{transition:t?"transform 300ms ease":null,willChange:t?"transform":null}),l()(o,Object(h.c)(r),{display:"none"}),o}},v=function(e){var t=e.behavior,n=void 0===t?r.None:t,o=e.borderColor,i=e.children,s=e.height,h=e.heightSm,g=e.isFixed,v=e.isLocked,E=e.isTransparent,y=e.marginBottom,O=void 0===y?64:y,x=e.marginBottomSm,_=void 0===x?24:x,w=e.breakpoint,S=void 0===w?m.a.sm:w,j=Object(p.useCx)(),P=u.useState(!0),C=c()(P,2),k=C[0],T=C[1],I=u.useState(0),R=c()(I,2),N=R[0],A=R[1];return u.useEffect((function(){if("none"!==n&&g)return f.a.on("scroll_down",t),f.a.on("scroll_up",e),function(){f.a.off("scroll_down",t),f.a.off("scroll_up",e)};function e(){window.pageYOffset<=25&&T(!0),"aggressive"===n&&N-window.pageYOffset>=25&&T(!0)}function t(){window.pageYOffset>25&&!v&&T(!1),A(window.pageYOffset)}})),u.createElement(u.Fragment,null,u.createElement("nav",{className:j(b(o,g,E)),style:{transform:k?null:"translatey(-100%)"}},u.createElement("div",{className:g?"branch-journeys-top":void 0},i)),u.createElement(d.b,a()({height:"".concat(s,"px"),marginBottom:"".concat(O,"px")},l()({},S,{height:"".concat(h,"px"),marginBottom:"".concat(_,"px")}))))}},"./src/components/metabar/OpenInApp.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-redux/es/index.js"),a=n("./node_modules/react-router/esm/react-router.js"),i=n("./src/components/optimizely/OptimizelyWrapper.tsx"),c=n("./src/framework/design-system/components/index.ts"),s=n("./src/framework/reporter/index.ts"),l=n("./src/framework/style/index.ts"),u=n("./src/routes/RoutingContext.tsx"),d=function(e){var t=e.isButton,n=e.collectionSlug,d=e.appEntry,m=void 0===d?"mobileNavBar":d,p=e.postId,f=e.topicSlug,h=e.username,g=e.viewer,b=Object(o.f)((function(e){return{isAmp:e.config.isAmp,authDomain:e.config.authDomain}}),o.d),v=b.isAmp,E=b.authDomain,y="".concat(g?"Li":"Lo","MobileNavBar"),O="https://rsci.app.link/s1cSf8zJT3?",x=Object(s.c)(),_=Object(u.c)(),w=Object(a.g)(),S=Object(l.useTheme)(),j="general";r.useEffect((function(){window.innerWidth<S.breakpoints.md&&x.event("openInApp.viewed",{entryPoint:m})}),[]);var P=function(){var e=_(w.pathname);if(!e)return"".concat(O,"~feature=").concat(y,"&~channel=general");j=e.route.name;var t="~feature=".concat(y,"&~channel=").concat(j);switch(j){case"ShowPost":case"ShowSequencePost":case"ShowPostUnderCollection":case"ShowPostUnderUser":return p?"https://rsci.app.link/?$canonical_url=https%3A%2F%2F".concat(E,"/p/").concat(p,"&").concat(t):"".concat(O).concat(t);case"ShowCollectionHome":return n?"https://rsci.app.link/?$canonical_url=https%3A%2F%2F".concat(E,"/").concat(n,"&").concat(t):"".concat(O).concat(t);case"ShowTopic":return f?"https://rsci.app.link/?$canonical_url=https%3A%2F%2F".concat(E,"/topic/").concat(f,"&").concat(t):"".concat(O).concat(t);case"ShowUser":return h?"https://rsci.app.link/?$canonical_url=https%3A%2F%2F".concat(E,"/@").concat(h,"&").concat(t):"".concat(O).concat(t);default:return"".concat(O).concat(t)}},C="mobileNavBar"===m?"16px":"0px",k="responsesSidebar"===m?"SMALL":"LARGE";return v?r.createElement(c.b,{marginLeft:C,display:"none",sm:{display:"block"}},t?r.createElement(c.c,{buttonStyle:"STRONG",href:P(),size:k},"Open in app"):r.createElement(c.t,{linkStyle:"OBVIOUS",href:P()},"Open in app")):r.createElement(i.a,{featureString:"".concat(g?"li":"lo","-").concat(j,"-navbar"),target:"open-in-app-button"},r.createElement(c.b,{marginLeft:C,display:"none",sm:{display:"block"}},t?r.createElement(c.c,{buttonStyle:"STRONG",href:P(),onClick:function(){x.event("openInApp.clicked",{entryPoint:m})},size:k},"Open in app"):r.createElement(c.t,{onClick:function(){x.event("openInApp.clicked",{entryPoint:m})},linkStyle:"OBVIOUS",href:P()},"Open in app")))}},"./src/components/metabar/constants.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a}));var r=65,o=56,a=54},"./src/components/navigation/Anchor.tsx":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./node_modules/react-redux/es/index.js"),c=n("./node_modules/react-router-dom/esm/react-router-dom.js"),s=n("./src/components/post/EmbeddedPostContext.tsx"),l=n("./src/components/session/WithFlag.tsx"),u=n("./src/components/session/useFlag.tsx"),d=n("./src/framework/source/index.ts"),m=n("./src/routes/RoutingContext.tsx"),p=n("./src/util/navigation.ts");t.a=function(e){var t,n=e.href,r=e.children,f=e.disableSourceParam,h=void 0!==f&&f,g=e["aria-label"],b=e.className,v=e.onClick,E=e.target,y=e.noFollow,O=Object(d.d)(),x=Object(m.c)(),_=Object(i.f)((function(e){return{currentHostname:e.navigation.hostname,tierOneDomainsRegexp:(e.config.tierOneDomains||[]).filter((function(e){return!!e})).map((function(e){return new RegExp("^(.+\\.)?".concat(e,"$"))}))}})),w=_.currentHostname,S=_.tierOneDomainsRegexp,j=!!S.find((function(e){return e.test(w)})),P=!Object(p.h)(n,w),C=a.useContext(s.a),k=Object(p.c)(n),T=!h||C&&(j||Object(p.f)(n)||!P),I="#"===n[0];O&&T&&(n=Object(p.a)(n,{source:O}));var R={"aria-label":g,className:b,onClick:v,target:I||C?void 0:E,rel:"noopener"};(y||k&&P&&j&&!S.find((function(e){return e.test(k)})))&&(R.rel="".concat(R.rel," nofollow").trim());var N=!!Object(u.a)("enable_aurora_opt_in_control"),A=a.createElement("a",o()({href:n},R),r);if(P||I||v)return A;var L=Object(p.d)(n),D=null===(t=x(L))||void 0===t?void 0:t.route;if(!D||"lite"!==D.service)return A;if(N&&"ShowCollectionHome"===(null==D?void 0:D.name))return A;var U=a.createElement(c.b,o()({to:L},R),r);return D.serviceVariantFlag?a.createElement(l.a,{name:D.serviceVariantFlag},(function(e){return!0===e?U:A})):U}},"./src/components/navigation/Redirect.tsx":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-router/esm/react-router.js"),a=n("./src/screens/LoadingScreen.tsx");function i(t){var n=t.to,i=t.temporary,c=void 0!==i&&i;if(e.window)return e.window.location.assign(n),r.createElement(a.a,null);var s={pathname:n,state:{statusCode:c?302:301}};return r.createElement(o.a,{to:s})}}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./src/components/notifications/notification-types/util/NotificationLayout.tsx":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return _}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),i=n.n(a),c=n("./node_modules/date-fns/index.js"),s=n("./node_modules/graphql-tag/src/index.js"),l=n.n(s),u=n("./node_modules/react/index.js"),d=n("./src/components/format/Date.tsx"),m=n("./src/components/format/TimeAgo.tsx"),p=n("./src/components/notifications/notification-types/util/NotificationStyles.tsx"),f=n("./src/components/user/UserAvatar.tsx"),h=n("./src/framework/design-system/components/index.ts");function g(){var e=o()(["\n  fragment NotificationLayout_notification on Notification {\n    actor {\n      ...UserAvatar_user\n    }\n    rollupItems {\n      actor {\n        id\n      }\n    }\n  }\n  ","\n"]);return g=function(){return e},e}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e){if(!e)return null;var t,n=e.actorName?e.actorName:"Unknown user";if(e.rollupItems){var r=(t=e.rollupItems)?new Set(t.map((function(e){return e.actor}))).size:0;if(r>1)return r>2?n+" + "+(r-1)+" others ":n+" + 1 other "}return n+" "}function y(t){var n=t.timestamp;return Object(c.differenceInDays)(e.Date.now(),n)>=5?u.createElement(d.a,{timestamp:n}):u.createElement(m.a,{timestamp:n})}function O(e){var t=e.onClick,n=e.url,r=e.children;return t?u.createElement(h.t,{style:{border:"none"},onClick:t},r):n?u.createElement(h.t,{inheritBorder:!1,href:n},r):u.createElement(h.b,{border:"NONE"},r)}function x(e){var t=e.url,n=e.onClick,r=e.user,o=e.actors,a=e.children,i=e.occurredAt,c=e.isUnread;return u.createElement(h.L,null,(function(e){return u.createElement("div",{style:v({display:"flex",flexDirection:"row",padding:"20px",width:"360px",lineHeight:1.4},c?{borderLeftColor:"".concat(e.accentColor.border.normal),borderLeftStyle:"".concat(e.borderStyle),borderLeftWidth:"3px"}:{border:"none"})},u.createElement(h.b,{marginRight:"16px",marginTop:"auto",marginBottom:"auto"},r?u.createElement(f.d,{scale:"XS",user:r,link:!0}):u.createElement(f.a,{scale:"XS"})),u.createElement(O,{url:t,onClick:n},u.createElement(h.b,{textAlign:"left",display:"flex",flexDirection:"column"},u.createElement(h.b,null,o?u.createElement(p.a,null,E(o)):null,a),i&&u.createElement(h.b,null,u.createElement(y,{timestamp:i})))))}))}var _=l()(g(),f.b)}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./src/components/notifications/notification-types/util/NotificationStyles.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/components/index.ts"),a=n("./src/framework/style/index.ts");function i(e){var t=e.children,n=Object(a.useCx)();return r.createElement(a.WithTheme,null,(function(e){var o={color:e.baseColor.text.dark};return r.createElement("span",{className:n(o)},t," ")}))}function c(e){var t=e.children,n=Object(a.useCx)();return r.createElement(a.WithTheme,null,(function(e){var a={color:e.baseColor.text.dark};return r.createElement("span",{className:n(a)},r.createElement(o.b,null,t))}))}function s(e){var t=e.children,n=Object(a.useCx)();return r.createElement(a.WithTheme,null,(function(e){var a={color:e.baseColor.text.dark,textOverflow:"ellipsis"};return r.createElement("span",{className:n(a)},r.createElement(o.b,null,t))}))}function l(e){var t=e.children,n=Object(a.useCx)();return r.createElement(a.WithTheme,null,(function(e){return r.createElement("span",{className:n({color:e.baseColor.text.dark,backgroundColor:"rgba(12,242,143,.2)",display:"block",width:"fit-content",maxWidth:"250px",padding:"2px 2px 1px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})},t," ")}))}function u(e){var t=e.text;return r.createElement(l,null,t.substring(0,50))}function d(e){var t=e.text;return r.createElement(s,null,"“"+t.substring(0,50)+"”")}},"./src/components/optimizely/OptimizelyWrapper.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./node_modules/react-redux/es/index.js"),c=n("./src/framework/style/index.ts"),s=function(e){var t,n,r=e.children,s=e.featureString,l=e.target,u=e.tag,d=void 0===u?"div":u,m=Object(c.useCx)(),p=Object(i.f)((function(e){return e.config.isAmp})),f=Object(i.f)((function(e){return e.client.isBot})),h=a.useState(!1),g=o()(h,2),b=g[0],v=g[1];return a.useEffect((function(){return function e(){t=setTimeout((function(){window.optimizely||e(),clearTimeout(n),v(!0)}),100)}(),n=setTimeout((function(){if(clearTimeout(t),v(!0),!window.optimizely)throw new Error("Optimizely completely failed to load, falling back to default experience")}),1e3),function(){clearTimeout(n),clearTimeout(t)}}),[]),a.createElement(d,{className:m({visibility:b||p||f?"visible":"hidden"}),id:"".concat(s,"-").concat(l)},r)}},"./src/components/post-listing/PostListingItemBylineWithAvatar.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),i=n.n(a),c=n("./node_modules/react/index.js"),s=n("./node_modules/react-redux/es/index.js"),l=n("./src/components/format/Date.tsx"),u=n("./src/components/session/WithFlag.tsx"),d=n("./src/components/ui/MiddotContainer.tsx"),m=n("./src/components/user/UserAvatar.tsx"),p=n("./src/framework/design-system/components/index.ts"),f=n("./src/svg/star-15px.svg"),h=n("./src/util/numbers.ts"),g=n("./src/util/routes.ts");function b(){var e=o()(["\n  fragment PostListingItemBylineWithAvatar_post on Post {\n    creator {\n      username\n      name\n      id\n      imageId\n      mediumMemberAt\n    }\n    isLocked\n    readingTime\n    updatedAt\n    statusForCollection\n    collection {\n      id\n      name\n      ...collectionUrl_collection\n    }\n  }\n  ","\n"]);return b=function(){return e},e}var v=i()(b(),g.G);t.b=Object(s.c)((function(e){return{currentLocation:e.navigation.currentLocation}}))((function(e){var t=e.currentLocation,n=e.post,r=n.creator,o=n.readingTime;return r?c.createElement(p.b,{display:"flex",alignItems:"center"},c.createElement(m.d,{user:r,scale:"S",link:!0}),c.createElement(p.b,{marginLeft:"16px"},c.createElement(p.d,{strong:!0,clamp:2},c.createElement(p.f,{href:Object(g.ic)(r.username||"")},r.name),"APPROVED"===n.statusForCollection&&n.collection&&n.collection.name&&c.createElement(p.f,{href:Object(g.F)(n.collection,t)}," in ",n.collection&&n.collection.name)),c.createElement(p.d,null,c.createElement(p.b,{display:"flex",alignItems:"center"},c.createElement(d.a,{middotPadding:"4px",marginTop:"3px",display:"flex",flexWrap:"wrap"},n&&n.updatedAt&&c.createElement(l.a,{timestamp:n.updatedAt}),"".concat(Object(h.f)(o||0)," min read")),c.createElement(u.a,{name:"remove_stars_ui"},(function(e){return!n.isLocked||e?null:c.createElement(p.b,{marginLeft:"4px",alignSelf:"center",marginTop:"1px"},c.createElement(f.a,null))})))))):null}))},"./src/components/post-listing/PostListingItemImage.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/typeof.js"),i=n.n(a),c=n("./node_modules/lodash/isPlainObject.js"),s=n.n(c),l=n("./node_modules/graphql-tag/src/index.js"),u=n.n(l),d=n("./node_modules/react/index.js"),m=n("./src/framework/design-system/components/index.ts"),p=n("./src/framework/style/index.ts"),f=n("./src/styles/breakpoints.ts"),h=n("./src/util/miroImage.ts"),g=n("./src/util/routes.ts");function b(){var e=o()(["\n  fragment PostListingItemImage_post on Post {\n    id\n    mediumUrl\n    previewImage {\n      id\n      focusPercentX\n      focusPercentY\n    }\n  }\n"]);return b=function(){return e},e}var v={display:"block",backgroundOrigin:"border-box",backgroundSize:"cover"};t.b=function(e){var t=e.post,n=e.width,r=e.height,o=e.miroWidth,a=e.miroHeight,c=Object(p.useCx)(),l=n||o,u=r||a,b=t.previewImage;if(!b)return null;var E=Object(h.d)({miroId:b?b.id:"",width:o,height:a,strategy:h.a.Resample}),y=b.focusPercentX||50,O=b.focusPercentY||50,x=l.base||l,_=u.base||u;return d.createElement(m.f,{href:Object(g.ub)(t),className:c([v,function(e){var t={backgroundPosition:"".concat(y,"% ").concat(O,"%"),backgroundImage:"url(".concat(E,")"),height:"number"==typeof _?"".concat(_,"px"):_,width:"number"==typeof x?"".concat(x,"px"):x};return"object"===i()(l)&&s()(l)&&Object.keys(l).forEach((function(n){if("base"!==n){var r=f[n](e);if(l[n]){t[r]=t[r]||{};var o=l[n];t[r].width="number"==typeof o?"".concat(o,"px"):o}}})),"object"===i()(u)&&s()(u)&&Object.keys(u).forEach((function(n){if("base"!==n){var r=f[n](e);if(u[n]){t[r]=t[r]||{};var o=u[n];t[r].height="number"==typeof o?"".concat(o,"px"):o}}})),t}])})};var E=u()(b())},"./src/components/post/EmbeddedPostContext.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/react/index.js"),o=r.createContext(!1)},"./src/components/post/helpers/loggedOutHistory.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return b}));var r,o,a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),i=n.n(a),c=n("./src/util/LocalStorage.ts"),s="post-view",l="post-read",u="topic-view",d="medium-search",m="external-search",p=(r={},i()(r,s,200),i()(r,l,200),i()(r,u,200),i()(r,d,200),i()(r,m,200),r),f=(o={},i()(o,s,new c.a("pv")),i()(o,l,new c.a("pr")),i()(o,u,new c.a("tv")),i()(o,d,new c.a("ms")),i()(o,m,new c.a("es")),o),h=function(e){v(s,e,Date.now())},g=function(e){v(l,e,Date.now())},b=function(e){v(u,e,Date.now())},v=function(e,t,n){var r=f[e];r.getCount()===p[e]&&r.clean();try{r.set(t,n)}catch(e){r.clean()}}},"./src/components/privacy/EuPrivacyBannerLoader.tsx":function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-redux/es/index.js"),a=n("./src/store/actions/navigation.ts"),i=n("./src/util/LocalStorage.ts"),c="accepted",s=new i.a("201805-policy");t.b=Object(o.c)((function(e){return{isEu:e.client.isEu}}))((function(e){var t=e.dispatch,n=e.isEu,o=e.loggedIn,i=n&&!s.get(c)&&!o;return r.useEffect((function(){i&&t(Object(a.m)({duration:"FOREVER",message:"",toastStyle:"EU_PRIVACY_BANNER"}))}),[]),null}))},"./src/components/reading-list/post-preview/updateReadingList.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),i=n.n(a),c=n("./node_modules/graphql-tag/src/index.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(){var e=i()(['\n  query RetrieveReadingList($readingListType: UserReadingListType, $searchQuery: String) {\n    viewer {\n      id\n      readingList {\n        postPreviewConnection(type: $readingListType, searchQuery: $searchQuery)\n          @connection(key: "postPreviewConnection", filter: ["type", "searchQuery"]) {\n          postPreviews {\n            post {\n              id\n            }\n          }\n        }\n        counts {\n          saved\n          archived\n        }\n      }\n    }\n  }\n']);return l=function(){return e},e}var u=n.n(c)()(l()),d=function(e,t,n,r,a){var i,c,l,d,m,p={searchQuery:t,readingListType:n},f=e.readQuery({query:u,variables:p}),h=null==f||null===(i=f.viewer)||void 0===i||null===(c=i.readingList)||void 0===c?void 0:c.postPreviewConnection,g=null==f||null===(l=f.viewer)||void 0===l?void 0:l.readingList,b=null==f||null===(d=f.viewer)||void 0===d||null===(m=d.readingList)||void 0===m?void 0:m.counts;if(h&&g&&b){var v=h.postPreviews.findIndex((function(e){return e.post&&e.post.id===r}));-1!==v&&(h.postPreviews.splice(v,1),g.counts=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},b,{},a(b.saved,b.archived)),e.writeQuery({query:u,data:f,variables:p}))}}},"./src/components/session/RequireFlag.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("./node_modules/react/index.js"),o=n("./src/components/session/WithFlag.tsx");function a(e){var t=e.name,n=e.children,a=e.requiredValue,i=void 0===a||a;return r.createElement(o.a,{name:t},(function(e){return e===i?n:null}))}},"./src/components/session/WithFlag.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./src/components/session/useFlag.tsx");function o(e){var t=e.name,n=e.children,o=e.nonBlocking,a=void 0!==o&&o,i=Object(r.b)(t),c=i.error,s=i.loading,l=i.value;return c||s?a?n(null):null:n(l)}},"./src/components/session/WithViewer.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n("./src/components/session/useViewer.tsx");function o(e){var t=e.children,n=e.nonBlocking,o=Object(r.c)(),a=o.error,i=o.loading,c=o.value;return n&&(a||i)?t(null):i?null:t(c)}n.d(t,"a",(function(){return r.a}))},"./src/components/session/useFlag.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return p}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),i=n("./node_modules/graphql-tag/src/index.js");function c(){var e=o()(["\n  query WithFlagQuery {\n    variantFlags {\n      name\n      valueType {\n        __typename\n        ... on VariantFlagBoolean {\n          booleanValue: value\n        }\n        ... on VariantFlagString {\n          stringValue: value\n        }\n      }\n    }\n  }\n"]);return c=function(){return e},e}var s=n.n(i)()(c()),l=function(e){var t=null;return e&&"VariantFlagBoolean"===e.valueType.__typename&&void 0!==e.valueType.booleanValue?t=e.valueType.booleanValue:e&&"VariantFlagString"===e.valueType.__typename&&void 0!==e.valueType.stringValue&&(t=e.valueType.stringValue),t},u=function(e,t){var n=e.find((function(e){return e.name===t}));return l(n)},d=function(e){var t=Object(a.e)(s),n=t.data,r=(n=void 0===n?{}:n).variantFlags,o=void 0===r?[]:r,i=t.loading,c=t.error;return i?{loading:i}:c?{error:c}:{value:u(o,e)}},m=function(e){return d(e).value},p=function(){var e=Object(a.e)(s),t=e.data,n=(t=void 0===t?{}:t).variantFlags,r=void 0===n?[]:n,o=e.loading,i=e.error;return o||i?{}:r.reduce((function(e,t){return e[t.name]=l(t),e}),{})}},"./src/components/session/useViewer.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return p}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),i=n("./node_modules/graphql-tag/src/index.js"),c=n.n(i);function s(){var e=o()(["\n  query WithViewerQuery {\n    viewer {\n      ...WithViewerFragment\n    }\n  }\n  ","\n"]);return s=function(){return e},e}function l(){var e=o()(["\n  fragment WithViewerFragment on User {\n    id\n    username\n    name\n    imageId\n    mediumMemberAt\n    hasPastMemberships\n    isPartnerProgramEnrolled\n    email\n    unverifiedEmail\n    createdAt\n    isEligibleToViewNewResponses\n    isMembershipTrialEligible\n    isSuspended\n  }\n"]);return l=function(){return e},e}var u=c()(l()),d=c()(s(),u),m=function(){var e=Object(a.e)(d),t=e.data,n=(t=void 0===t?{}:t).viewer,r=void 0===n?null:n,o=e.loading,i=e.error;return o?{loading:o}:i?{error:i}:{value:r}},p=function(){return m().value}},"./src/components/social/ShareFriendLink.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return y}));var r=n("./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),i=n.n(a),c=n("./node_modules/graphql-tag/src/index.js"),s=n.n(c),l=n("./node_modules/react/index.js"),u=n("./src/framework/design-system/components/index.ts"),d=n("./src/framework/design-system/type/Detail.tsx"),m=n("./src/framework/style/index.ts"),p=n("./src/svg/checkmark-19px-filled.svg"),f=n("./src/util/CopyUrl.tsx"),h=n("./src/util/routes.ts");function g(){var e=i()(["\n  fragment ShareFriendLink_post on Post {\n    id\n    shareKey\n    mediumUrl\n  }\n"]);return g=function(){return e},e}var b=s()(g()),v=function(e){return{background:"linear-gradient(to right, ".concat(e.baseColor.text.normal,", 90%, white 100%)"),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent",color:"transparent",fontSize:"15px",lineHeight:"20px",paddingBottom:"3px",fontFamily:e.font.uiRegular.family,marginRight:"20px",borderColor:e.baseColor.border.lighter,borderStyle:"solid",borderBottomWidth:"1px",borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,whiteSpace:"nowrap",overflow:"hidden",flexGrow:0}},E=function(e){return{position:"relative",display:"flex",justifyContent:"space-between",marginTop:"32px",paddingBottom:"5px",fontFamily:e.font.uiRegular.family}},y=function(e){var t=e.onCopy,n=e.post,r=e.withInlineLearnMore,a=void 0!==r&&r,i=Object(m.useCx)(),c=Object(m.useTheme)(),s=n&&n.shareKey,g=n&&n.mediumUrl,b="".concat(g,"?source=friends_link&sk=").concat(s),y=l.createElement(u.t,{linkStyle:"OBVIOUS",inline:!0,href:Object(h.T)()},"Learn more."),O={};return t&&(O.onCopy=t),l.createElement(u.b,null,l.createElement(d.a,{scale:"M"},"This link guarantees anyone free access to your story, even if they’ve read all of their complimentary stories for this month. ",!a&&l.createElement("br",null),y),l.createElement("div",{className:i(E)},l.createElement("p",{className:i(v)},b),l.createElement(f.a,o()({url:b,flexGrow:"1"},O),(function(e){return l.createElement(u.b,{width:"60px",display:"flex",justifyContent:"flex-end"},e?l.createElement(l.Fragment,null,l.createElement(p.a,{fill:c.accentColor.fill.normal})," Copied"):"Copy")}))))}},"./src/components/style/BaseThemeProvider.tsx":function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return m}));var r=n("./node_modules/react/index.js"),o=n("./src/components/session/useFlag.tsx"),a=n("./src/framework/design-system/components/index.ts"),i=n("./src/styles/theme.ts"),c=n("./node_modules/lodash/merge.js"),s=n.n(c),l=r.createContext({baseTheme:i.a}),u=function(){return r.useContext(l)},d=function(e){var t=e.children,n=u().baseTheme;return r.createElement(a.F,{theme:n},t)},m=function(e){var t,n=e.children,a=i.a;return"unified01"===Object(o.a)("glyph_font_set")&&(t=a,a=s()({},t,{newFonts:{detail:{fontSize:{XS:11,S:13,M:14,L:16},lineHeight:{XS:16,S:20,M:20,L:24},cropTop:.38,cropBottom:.1},heading:{fontSize:{XXS:15,XS:17,S:20,M:25,L:32,XL:40},lineHeight:{XXS:20,XS:22,S:28,M:32,L:40,XL:48},cropTop:.38,cropBottom:.1},overline:{fontSize:{S:10,M:13,L:16},lineHeight:{S:16,M:20,L:24},cropTop:.18,cropBottom:.1},subtitle:{fontSize:{S:14,M:17,L:21},lineHeight:{S:20,M:24,L:28},cropTop:.38,cropBottom:.1}}})),r.createElement(l.Provider,{value:{baseTheme:a}},r.createElement(d,null,n))}},"./src/components/style/FelaRendererProvider.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),s=n.n(c),l=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),u=n.n(l),d=n("./node_modules/@babel/runtime/helpers/inherits.js"),m=n.n(d),p=n("./node_modules/fela-dom/es/index.js"),f=n("./node_modules/react/index.js"),h=n("./src/components/style/RendererContext.tsx"),g=function(e){function t(){return o()(this,t),s()(this,u()(t).apply(this,arguments))}return m()(t,e),i()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.ssrMode,n=e.renderer;t||Object(p.b)(n)}},{key:"render",value:function(){return f.createElement(h.a.Provider,{value:this.props.renderer},f.Children.only(this.props.children))}}]),t}(f.Component)},"./src/components/style/RendererContext.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("./node_modules/fela/es/index.js"),o=n("./node_modules/react/index.js"),a=o.createContext(Object(r.b)())},"./src/components/style/createRenderer.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/fela/es/index.js"),o=n("./node_modules/fela-dom/es/index.js"),a=n("./node_modules/fela-plugin-fallback-value/es/index.js"),i={html:{boxSizing:"border-box"},"*, *:before, *:after":{boxSizing:"inherit"},body:{margin:0,padding:0,textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",color:"rgba(0,0,0,0.8)",position:"relative",minHeight:"100vh"},"h1, h2, h3, h4, h5, h6, dl, dd, ol, ul, menu, figure, blockquote, p, pre, form":{margin:0},"menu, ol, ul":{padding:0,listStyle:"none",listStyleImage:"none"},main:{display:"block"},a:{color:"inherit",textDecoration:"none"},"a, button, input":{WebkitTapHighlightColor:"transparent"},"img, svg":{verticalAlign:"middle"},button:{background:"transparent",overflow:"visible"},"button, input, optgroup, select, textarea":{margin:0}};function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.noGlobals,n=e.ssrMode,c=Object(r.b)({plugins:[Object(a.a)()],mediaQueryOrder:["all and (min-width: 1080px)","all and (max-width: 1079.98px)","all and (max-width: 903.98px)","all and (max-width: 727.98px)","all and (max-width: 551.98px)","all and (min-width: 904px) and (max-width: 1079.98px)","all and (min-width: 728px) and (max-width: 903.98px)","all and (min-width: 552px) and (max-width: 727.98px)","print"]});return n||Object(o.a)(c),t||Object.keys(i).forEach((function(e){return c.renderStatic(i[e],e)})),c}},"./src/components/style/useRenderer.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("./node_modules/react/index.js"),o=n("./src/components/style/RendererContext.tsx"),a=function(){return r.useContext(o.a)}},"./src/components/susi/GoogleRecaptcha.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./node_modules/react-redux/es/index.js"),c=n("./src/components/session/useFlag.tsx"),s=n("./src/framework/reporter/index.ts"),l=n("./src/util/hooks/useScript.tsx"),u=function(e){var t=e.callback,n=e.shouldExecuteRecaptcha,r=Object(s.c)(),u=Object(i.f)((function(e){return{recaptchaKey:e.config.recaptchaKey,recaptcha3Key:e.config.recaptcha3Key}})),d=u.recaptchaKey,m=u.recaptcha3Key,p=!!Object(c.a)("enable_email_sign_in_captcha"),f=!!Object(c.a)("enable_recaptcha_v3"),h=a.useState(!1),g=o()(h,2),b=g[0],v=g[1],E=a.useState(!1),y=o()(E,2),O=y[0],x=y[1],_=a.useState(null),w=o()(_,2),S=w[0],j=w[1];a.useEffect((function(){O&&(t(S),x(!1))}),[O]);var P=f?"https://www.google.com/recaptcha/api.js?render=".concat(m):"https://www.google.com/recaptcha/api.js";return Object(l.a)(P),a.useEffect((function(){if(!p)return t();if(n){var e=window.grecaptcha;e&&(b||(e.render("g-recaptcha",{callback:function(t){j(t),x(!0),e.reset()},sitekey:f?m:d,size:"invisible"}),v(!0)),e.execute(),r.event("site.loginByEmailCaptchaInvoked",{}))}}),[n]),a.createElement("div",{id:"g-recaptcha"})}},"./src/components/susi/SusiClickable.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return S})),n.d(t,"d",(function(){return j})),n.d(t,"e",(function(){return P})),n.d(t,"f",(function(){return C})),n.d(t,"c",(function(){return k}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),i=n.n(a),c=n("./node_modules/graphql-tag/src/index.js"),s=n.n(c),l=n("./node_modules/react/index.js"),u=n("./node_modules/react-redux/es/index.js"),d=n("./src/components/susi/helpers/useReduxSusi.tsx"),m=n("./src/components/susi/susi-modal/SusiContainer.tsx"),p=n("./src/framework/design-system/components/index.ts"),f=n("./src/framework/source/index.ts"),h=n("./src/util/navigation.ts"),g=n("./src/util/routes.ts");function b(){var e=o()(["\n  query SusiClickableAccountTokenQuery {\n    ...SusiContainer_query\n  }\n  ","\n"]);return b=function(){return e},e}function v(){var e=o()(["\n  fragment SusiClickable_newsletterV3 on NewsletterV3 {\n    ...SusiContainer_newsletterV3\n  }\n  ","\n"]);return v=function(){return e},e}function E(){var e=o()(["\n  fragment SusiClickable_user on User {\n    ...SusiContainer_user\n  }\n  ","\n"]);return E=function(){return e},e}function y(){var e=o()(["\n  fragment SusiClickable_topic on Topic {\n    ...SusiContainer_topic\n  }\n  ","\n"]);return y=function(){return e},e}function O(){var e=o()(["\n  fragment SusiClickable_post on Post {\n    id\n    mediumUrl\n    ...SusiContainer_post\n  }\n  ","\n"]);return O=function(){return e},e}function x(){var e=o()(["\n  fragment SusiClickable_collection on Collection {\n    ...SusiContainer_collection\n  }\n  ","\n"]);return x=function(){return e},e}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var w=function(e){var t=e.actionUrl,n=e.additionalClickActions,r=e.buttonSize,o=e.buttonStyle,a=e.children,c=e.collection,s=e.isButton,m=e.linkStyle,b=e.operation,v=e.post,E=e.susiEntry,y=e.topic,O=e.user,x=e.newsletterV3,w=e.inline,S=Object(u.f)((function(e){return{authDomain:e.config.authDomain,isAmp:e.config.isAmp,currentLocation:e.navigation.currentLocation}}),u.d),j=S.authDomain,P=S.currentLocation,C=S.isAmp,k="http[s]?://[^/]*"+j,T=null==P.match(k),I=Object(f.g)();void 0===E&&(E=I||void 0);var R=Object(d.a)().openModal,N=C&&v?v.mediumUrl||Object(g.wb)(j,v.id):P,A="login"===b?Object(h.a)(Object(g.Eb)(j),{redirect:N}):Object(h.a)(Object(g.Gb)(j),{redirect:N}),L=function(e){e.preventDefault(),n&&n(),R(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({actionUrl:t,collection:c,step:"login"===b?"SIGNIN_OPTIONS":"SIGNUP_OPTIONS",susiEntry:E,operation:b,topic:y,newsletterV3:x},O&&{user:O}))};return C||T?l.createElement(f.b,{source:{susiEntry:E},extendSource:!0},s?l.createElement(p.c,{href:A,buttonStyle:o||"SUBTLE",size:r},a):l.createElement(p.t,{href:A,linkStyle:m||"SUBTLE",inline:w},a)):s?l.createElement(p.c,{onClick:L,buttonStyle:o||"SUBTLE",size:r},a):l.createElement(p.t,{href:A,onClick:function(e){e.metaKey||e.ctrlKey||L(e)},linkStyle:m||"SUBTLE",inline:w},a)},S=s()(x(),m.b),j=s()(O(),m.d),P=s()(y(),m.f),C=s()(E(),m.g),k=s()(v(),m.c);s()(b(),m.e)},"./src/components/susi/helpers/index.ts":function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return m}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./src/screens/helpers/visits.ts"),i=n("./src/util/navigation.ts");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var s=function(e,t){switch(e){case"bookmark_footer":case"bookmark_preview":case"bookmark_sidebar":return"bookmark";case"clap_footer":case"clap_preview":case"clap_sidebar":return"clap";case"email_homepage":return"direct_email_signup";case"follow_custom_page":case"follow_pub":case"follow_sidebar":case"follow_header":return"follow_co_brand";case"follow_byline":case"follow_profile":case"follow_list":case"follow_topicgrid":case"follow_topicpage":case"follow_tag":return"follow";case"follow_card":case"follow_footer":case"follow_search":case"follow_topicfeatured":return t&&t.collection?"follow_co_brand":"follow";case"highlight_sidebar":case"highlight_text":return"highlight";case"landing_benefits":return"subscribe";case"landing_creator":return"writer";case"landing_gift":return"gift";case"metered_view_2":return"smart_meter_2";case"metered_view_3":return"smart_meter_3";case"post_custom_domain":case"post_free":return"post_prompt";case"post_paywall":case"post_regwall":return"read_exclusive";case"privatenote_text":case"respond_text":case"respond_box":case"respond_sidebar":return"respond";case"collection_newsletter_v3_landing":return"subscribe_newsletter_v3";case"homepage_banner":case"nav_reg":case"report_footer":case"smart_meter":default:return"general"}},l=function(e,t){var n=t.collection,r=(n=void 0===n?{name:""}:n).name,o=t.productName,a=t.topic,i=(a=void 0===a?{name:""}:a).name,c=t.user,l=(c=void 0===c?{name:""}:c).name;switch(s(e,t)){case"bookmark":return{subheader:"Sign in to save stories to your personalized bookmarks and access them anytime, anywhere."};case"clap":return{subheader:l?"Sign in to clap for this story and show ".concat(l," how much you appreciated it."):"Sign in to clap for this story"};case"follow":return{subheader:"Sign in to follow"+(l?" ".concat(l):i?" ".concat(i):"")+"."};case"follow_co_brand":return{subheader:"Sign in to follow ".concat(r,"."),poweredBy:"".concat(r," is powered by ").concat(o,".")};case"highlight":return{subheader:"Sign in to highlight this passage and show the author it resonates with you."};case"read_exclusive":return{subheader:"Sign in to read this story and get personalized recommendations from ".concat(o,".")};case"respond":return{subheader:"Sign in to keep the conversation moving with a response."};case"subscribe":return{subheader:"Sign in to your existing account to continue."};case"subscribe_newsletter_v3":case"post_prompt":case"smart_meter_2":case"smart_meter_3":default:return{subheader:"Sign in to get personalized story recommendations, follow authors and topics you love, and interact with stories."}}},u=function(e,t){var n=t.collection,r=(n=void 0===n?{name:""}:n).name,o=t.productName,i=t.topic,c=(i=void 0===i?{name:""}:i).name,l=t.user,u=(l=void 0===l?{name:""}:l).name,d=t.newsletterV3,m=(d=void 0===d?{name:""}:d).name;switch(s(e,t)){case"bookmark":return{title:"Create an account to bookmark this story.",subheader:"Save stories to your personalized bookmarks and access them anytime, anywhere."};case"clap":return{title:"Create an account to clap for this story.",subheader:"Applause shows ".concat(u?u+" ":"","how much you appreciated this story.")};case"follow":return{title:"Never miss a story"+(u?" from ".concat(u):c?" about ".concat(c):"")+".",subheader:"Create a ".concat(o," account to follow your favorite authors, publications, and topics.")};case"follow_co_brand":return{title:"Never miss a story"+(u?" from ".concat(u):c?" about ".concat(c):"")+".",subheader:"Create an account to follow your favorite authors, publications, and topics.",poweredBy:"".concat(r," is powered by ").concat(o,".")};case"highlight":return{title:"Create an account to highlight this passage.",subheader:"Highlighting on ".concat(o," shows the author and readers which ideas resonate with you.")};case"post_prompt":var p=Object(a.e)()||0;return{title:"Pardon the interruption.",subheader:p<3?"We see you’ve read on ".concat(o," before - there’s a personalized experience waiting just a few clicks away. Ready to make ").concat(o," yours?"):"You’ve read ".concat(p," stories this month. There’s a lot more where that came from. Ready to make ").concat(o," yours?")};case"read_exclusive":return{title:"Create an account to read this story.",subheader:"Signing up for ".concat(o," is quick, easy, and free.")};case"respond":return{title:"Create an account to write a response.",subheader:"Build on this story’s ideas with your own – responses keep the conversation moving."};case"smart_meter_2":return{title:"Keep reading.",subheader:"Read more stories this month when you create a free ".concat(o," account.")};case"smart_meter_3":return{title:"Read to your mind’s desire.",subheader:"Sign up for a free ".concat(o," account, and you’ll get one more story in your member preview this month.")};case"subscribe":return{title:"First, create an account",subheader:"Once you've created your account, you'll be able to upgrade for unlimited access to ".concat(o,".")};case"subscribe_newsletter_v3":return{title:"To get ".concat(m,", create a free ").concat(o," account."),subheader:""};default:return{title:"Join ".concat(o,"."),subheader:"Create an account to receive great stories in your inbox, personalize your homepage, and follow authors and topics that you love."}}},d=["clap_footer","clap_preview","clap_sidebar","landing_benefits","landing_gifts","highlight_sidebar","highlight_text","landing_home_hero","post_free","post_custom_domain","post_paywall","post_regwall","privatenote_text","respond_box","report_footer","report_profile","respond_text"],m=function(e,t,n,r,a){var s=n&&d.includes(n),l=Object(i.a)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({source:t},s&&{skipOnboarding:"1"})),u=r&&a?Object(i.a)(r,{token:a,source:t}):"";return u?Object(i.a)(u,{redirectUrl:l}):l}},"./src/components/susi/helpers/useReduxSusi.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/react-redux/es/index.js"),i=n("./src/store/actions/navigation.ts");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var s=function(){var e=Object(a.e)(),t=Object(a.f)((function(e){return e.navigation.susiModal})),n=function(n){return e(Object(i.s)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{},n)))};return{goToSignInOptions:function(){return n({operation:"login",step:"SIGNIN_OPTIONS"})},goToSignUpOptions:function(){return n({operation:"register",step:"SIGNUP_OPTIONS"})},openModal:function(t){return e(Object(i.s)(t))},resetModal:function(){return e(Object(i.s)({step:null,operation:"login"}))},setOperation:function(e){return n({operation:e})},setStep:function(e){return n({step:e})},setToken:function(e){return n({token:e})},susiModalConfig:t,toggleOperation:function(){return n({operation:"login"===t.operation?"register":"login"})},updateModal:n}}},"./src/components/susi/oauth-buttons/FacebookSusiButton.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/extends.js"),i=n.n(a),c=n("./node_modules/graphql-tag/src/index.js"),s=n.n(c),l=n("./node_modules/react/index.js"),u=n("./node_modules/react-redux/es/index.js"),d=n("./src/components/susi/oauth-buttons/OAuthButton.tsx"),m=n("./src/svg/facebook-square-25px.svg"),p=n("./src/util/routes.ts");function f(){var e=o()(["\n  fragment FacebookSusiButton_query on Query {\n    ...OAuthButton_query\n  }\n  ","\n"]);return f=function(){return e},e}var h=function(e){var t=i()({},e),n=Object(u.f)((function(e){return e.config.authDomain}));return l.createElement(d.a,i()({},t,{icon:m.a,service:"Facebook",urlFragment:Object(p.Jb)(n)}))},g=s()(f(),d.b)},"./src/components/susi/oauth-buttons/GoogleSusiButton.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return y}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/extends.js"),i=n.n(a),c=n("./node_modules/graphql-tag/src/index.js"),s=n.n(c),l=n("./node_modules/react/index.js"),u=n.n(l),d=n("./node_modules/react-redux/es/index.js"),m=n("./src/components/susi/oauth-buttons/OAuthButton.tsx");function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=u.a.createElement("g",{fill:"none",fillRule:"evenodd"},u.a.createElement("path",{d:"M20.66 12.7c0-.61-.05-1.19-.15-1.74H12.5v3.28h4.58a3.91 3.91 0 0 1-1.7 2.57v2.13h2.74a8.27 8.27 0 0 0 2.54-6.24z",fill:"#4285F4"}),u.a.createElement("path",{d:"M12.5 21a8.1 8.1 0 0 0 5.63-2.06l-2.75-2.13a5.1 5.1 0 0 1-2.88.8 5.06 5.06 0 0 1-4.76-3.5H4.9v2.2A8.5 8.5 0 0 0 12.5 21z",fill:"#34A853"}),u.a.createElement("path",{d:"M7.74 14.12a5.11 5.11 0 0 1 0-3.23v-2.2H4.9A8.49 8.49 0 0 0 4 12.5c0 1.37.33 2.67.9 3.82l2.84-2.2z",fill:"#FBBC05"}),u.a.createElement("path",{d:"M12.5 7.38a4.6 4.6 0 0 1 3.25 1.27l2.44-2.44A8.17 8.17 0 0 0 12.5 4a8.5 8.5 0 0 0-7.6 4.68l2.84 2.2a5.06 5.06 0 0 1 4.76-3.5z",fill:"#EA4335"})),h=function(e){return u.a.createElement("svg",p({width:25,height:25},e),f)},g=n("./src/util/routes.ts"),b=n("./src/util/useragent.ts");function v(){var e=o()(["\n  fragment GoogleSusiButton_query on Query {\n    ...OAuthButton_query\n  }\n  ","\n"]);return v=function(){return e},e}var E=function(e){var t=i()({},e),n=Object(d.f)((function(e){return{authDomain:e.config.authDomain,inAppBrowserName:e.client.inAppBrowserName}}),d.d),r=n.authDomain;return n.inAppBrowserName===b.a?l.createElement(l.Fragment,null):l.createElement(m.a,i()({},t,{icon:h,service:"Google",urlFragment:Object(g.Kb)(r)}))},y=s()(v(),m.b)},"./src/components/susi/oauth-buttons/OAuthButton.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return E}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),i=n("./node_modules/graphql-tag/src/index.js"),c=n.n(i),s=n("./node_modules/react/index.js"),l=n("./node_modules/react-redux/es/index.js"),u=n("./src/components/session/WithViewer.tsx"),d=n("./src/components/susi/helpers/index.ts"),m=n("./src/framework/design-system/components/index.ts"),p=n("./src/framework/reporter/index.ts"),f=n("./src/framework/source/index.ts"),h=n("./src/screens/helpers/visits.ts"),g=n("./src/util/navigation.ts");function b(){var e=o()(["\n  fragment OAuthButton_query on Query {\n    accountToken\n  }\n"]);return b=function(){return e},e}var v=function(e){var t=e.actionUrl,n=e.customCopy,r=e.icon,o=e.redirectTo,i=e.operation,c=e.token,b=e.service,v=e.urlFragment,E=e.width,y=void 0===E?"212px":E,O=e.targetUserId,x=e.alternateUserSuggestion,_=Object(p.c)(),w=Object(f.g)(),S=Object(l.f)((function(e){return{currentLocation:e.navigation.currentLocation,sessionUserId:e.session.user.id}}),l.d),j=S.currentLocation,P=S.sessionUserId,C=o||j,k=Object(d.a)(C,Object(f.d)(),w,t,c),T=Object(a.e)(u.a),I=T.loading,R=T.error,N=T.data,A=(N=void 0===N?{viewer:void 0}:N).viewer;if(I||R)return s.createElement(s.Fragment,null);var L={state:["",k,i].join("|")},D=Object(g.a)(v,L),U=r,M=n||"Sign ".concat("login"===i?"in":"up"," with ").concat(b);return s.createElement(m.c,{buttonStyle:"SOCIAL",href:D,onClick:function(){Object(h.m)(x,A?A.id:P,O,b,!1),_.event("susi.methodClicked",{entryPoint:w,operation:i,susiMethod:b.toLowerCase(),alternateUserSuggestionShown:x||!1,alternateUserSuggestionAccountType:b.toLowerCase(),alternateUserSuggestionTargetUserId:O,alternateUserSuggestionSourceUserId:A?A.id:P})},shape:"RECTANGLE",size:"REGULAR",width:y},s.createElement(m.b,{display:"flex",alignItems:"center"},s.createElement(m.b,{marginRight:"8px",marginTop:"-2px",tag:U}),M))},E=c()(b())},"./src/components/susi/oauth-buttons/TwitterSusiButton.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return E}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/extends.js"),i=n.n(a),c=n("./node_modules/graphql-tag/src/index.js"),s=n.n(c),l=n("./node_modules/react/index.js"),u=n("./node_modules/react-redux/es/index.js"),d=n("./src/components/susi/oauth-buttons/OAuthButton.tsx"),m=n("./src/framework/style/index.ts"),p=n("./src/svg/twitter-filled-25px.svg"),f=n("./src/util/routes.ts");function h(){var e=o()(["\n  fragment TwitterSusiButton_query on Query {\n    ...OAuthButton_query\n  }\n  ","\n"]);return h=function(){return e},e}var g={fill:"#55ACEE"},b=function(e){var t=e.className,n=Object(m.useCx)();return l.createElement(p.a,{className:n(g)+(t?" "+t:"")})},v=function(e){var t=i()({},e),n=Object(u.f)((function(e){return e.config.authDomain}));return l.createElement(d.a,i()({},t,{icon:b,service:"Twitter",urlFragment:Object(f.Lb)(n)}))},E=s()(h(),d.b)},"./src/components/susi/susi-modal/SusiContainer.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return tt})),n.d(t,"b",(function(){return rt})),n.d(t,"d",(function(){return ot})),n.d(t,"f",(function(){return at})),n.d(t,"g",(function(){return it})),n.d(t,"c",(function(){return ct})),n.d(t,"e",(function(){return st}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/extends.js"),s=n.n(c),l=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),u=n.n(l),d=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),m=n("./node_modules/graphql-tag/src/index.js"),p=n.n(m),f=n("./node_modules/react/index.js"),h=n.n(f),g=n("./node_modules/react-redux/es/index.js"),b=n("./src/components/susi/helpers/useReduxSusi.tsx"),v=n("./src/components/session/useFlag.tsx"),E=n("./src/components/navigation/Redirect.tsx"),y=n("./src/framework/design-system/components/index.ts"),O=n("./src/framework/design-system/type/index.ts"),x=n("./src/framework/reporter/index.ts"),_=n("./src/framework/source/index.ts"),w=n("./src/framework/style/index.ts"),S=n("./src/svg/exclamation-25px.svg"),j=function(e){return{color:e.errorColor}},P={background:"transparent",border:"none",outline:"none",width:"100px",font:"inherit",paddingLeft:"5px",paddingRight:"5px",textAlign:"center"},C=function(e){return{position:"absolute",right:"0px",top:"7px",width:"16px",height:"16px",fill:e.errorColor}},k=function(){return{"0%":{transform:"translateX(-1%)"},"20%":{transform:"translateX(1%)"},"40%":{transform:"translateX(-1%)"},"60%":{transform:"translateX(1%)"},"80%":{transform:"translateX(-1%)"},"100%":{transform:"translateX(1%)"}}},T=function(e){var t,n=e.code,r=e.errorMessage,o=e.handleCodeChange,a=e.handleSubmit,i=e.isAnimating,c=e.operation,s=Object(w.useCx)(),l=Object(x.c)(),d=Object(_.g)(),m=f.useState(!1),p=u()(m,2),h=p[0],g=p[1],b=f.useState(!1),v=u()(b,2),E=v[0],T=v[1];return f.useEffect((function(){l.event("susi.loginCode.viewed",{operation:c,susiEntry:d})}),[]),t=r?"ERROR":h?"BASE_DARKER":E?"BASE_DARK":"BASE_NORMAL",f.createElement("div",{className:r&&s(j)},f.createElement(y.b,{alignItems:"center",display:"flex",flexDirection:"column",paddingBottom:"1px",textAlign:"center",width:"350px"},f.createElement(y.K,{keyframes:{errorKeyName:k}},(function(e){var c,l=e.errorKeyName;return f.createElement("div",{className:s([{position:"relative"},i?(c=l,{animation:"".concat(c," ").concat(400,"ms")}):{}])},f.createElement(y.b,{borderBottom:t},f.createElement(O.f,{scale:"L"},f.createElement("input",{autoFocus:!0,className:s([P]),onBlur:function(){return g(!1)},onChange:o,onFocus:function(){return g(!0)},onKeyDown:function(e){13===e.keyCode&&a()},onMouseLeave:function(){return T(!1)},onMouseOver:function(){return T(!0)},pattern:"[0-9]*",ref:function(e){setTimeout((function(){e&&e.focus()}),10)},type:"number",value:n}),r&&f.createElement(S.a,{className:s(C)}))))}))),r&&f.createElement(y.b,{marginTop:"8px"},f.createElement(O.a,{scale:"S"},f.createElement("div",{className:s(j)},r))))},I=n("./src/util/navigation.ts"),R=n("./src/util/routes.ts");function N(){var e=o()(["\n  mutation VerifyLoginCode($loginCode: String!) {\n    verifyLoginCode(loginCode: $loginCode) {\n      ... on Token {\n        value\n      }\n      ... on BadRequest {\n        message\n      }\n      ... on NotFound {\n        message\n      }\n      ... on TooManyRequests {\n        message\n      }\n    }\n  }\n"]);return N=function(){return e},e}var A=p()(N()),L=function(e){var t=e.operation,n=Object(x.c)(),r=Object(_.g)(),o=Object(g.f)((function(e){return e.config.authDomain})),a=f.useState(""),i=u()(a,2),c=i[0],s=i[1],l=f.useState(!1),m=u()(l,2),p=m[0],h=m[1],b=f.useState(""),v=u()(b,2),O=v[0],w=v[1],S=f.useState(""),j=u()(S,2),P=j[0],C=j[1],k=Object(d.d)(A,{variables:{loginCode:O},onCompleted:function(e){var a=e.verifyLoginCode;switch(n.event("susi.loginCode.submitted",{operation:t,susiEntry:r}),a.__typename){case"Token":var i=Object(I.a)(Object(R.N)(o),{token:a.value});C(i);break;case"TooManyRequests":n.event("susi.loginCode.exceededAttempts",{operation:t,susiEntry:r}),L(a.message);break;case"BadRequest":case"NotFound":L(a.message)}}}),N=u()(k,1)[0],L=function(e){s(e),h(!0),setTimeout((function(){return h(!1)}),400)},D=function(){if(!function(e){return null!=e.match(/^[0-9]+$/)&&6===e.length}(O))return L("Login code must be 6 digits.");L(""),N()};return P?f.createElement(E.a,{to:P}):f.createElement(y.b,{alignItems:"center",display:"flex",flexDirection:"column"},f.createElement(y.b,{marginTop:"12px",marginBottom:"28px"},f.createElement(T,{code:O,errorMessage:c,isAnimating:p,handleCodeChange:function(e){w(e.target.value)},handleSubmit:D,operation:t})),f.createElement(y.b,{marginTop:"12px",marginBottom:"15px"},f.createElement(y.c,{buttonStyle:"BRAND",onClick:D},"OK")))},D=n("./src/components/susi/susi-modal/SusiModalLayout.tsx"),U=function(e){var t=e.hide,n=e.email,r=e.operation,o=Object(w.useTheme)(),a=Object(x.c)(),i=f.useState(!1),c=u()(i,2),l=c[0],d=c[1],m=!!Object(v.a)("enable_login_code_flow");f.useEffect((function(){window.innerWidth<o.breakpoints.md&&(d(!0),a.event("experiment.eligible",{experimentId:"6ecc47df8328"}))}),[]);var p=n?" to ".concat(n):"",h="".concat("login"===r?"sign in":"complete your account set-up"),g={title:"Check your inbox",subheader:m&&l?"We just emailed a six-digit code".concat(p,". Submit it below to ").concat(h,"."):"We just emailed a magic link".concat(p,". Click the link to ").concat(h,".")};return f.createElement(D.b,s()({bottomImageId:"1*yL5Sos_AmbQS9uHTd8PJVA.png",isSubHeaderResponsive:!1},g),m&&l?f.createElement(L,{operation:r}):f.createElement(y.b,{marginBottom:"28px",marginTop:"12px"},f.createElement(y.c,{buttonStyle:"BRAND",onClick:t},"OK")))},M=function(e){return{color:e.errorColor}},F={background:"transparent",border:"none",outline:"none",width:"270px",font:"inherit",paddingLeft:"5px",paddingRight:"5px"},B=function(e){return{position:"absolute",right:"0px",top:"7px",width:"16px",height:"16px",fill:e.errorColor}},H=function(){return{"0%":{transform:"translateX(-1%)"},"20%":{transform:"translateX(1%)"},"40%":{transform:"translateX(-1%)"},"60%":{transform:"translateX(1%)"},"80%":{transform:"translateX(-1%)"},"100%":{transform:"translateX(1%)"}}},V=function(e){var t,n=e.email,r=e.errorMessage,o=e.handleEmailChange,a=e.handleSubmit,i=e.isAnimating,c=Object(w.useCx)(),s=f.useState(!1),l=u()(s,2),d=l[0],m=l[1],p=f.useState(!1),h=u()(p,2),g=h[0],b=h[1];return t=r?"ERROR":d?"BASE_DARKER":g?"BASE_DARK":"BASE_NORMAL",f.createElement("div",{className:r&&c(M)},f.createElement(y.b,{alignItems:"center",display:"flex",flexDirection:"column",paddingBottom:"1px",textAlign:"center",width:"270px"},f.createElement(y.b,{marginBottom:"12px"},f.createElement(O.a,{color:"DARKER",scale:"S"},f.createElement("div",{className:r&&c(M)},"Your email"))),f.createElement(y.K,{keyframes:{errorKeyName:H}},(function(e){var s,l=e.errorKeyName;return f.createElement("div",{className:c([{position:"relative"},i?(s=l,{animation:"".concat(s," ").concat(400,"ms")}):{}])},f.createElement(y.b,{borderBottom:t},f.createElement(O.a,{scale:"L"},f.createElement("input",{autoFocus:!0,className:c([F]),onBlur:function(){return m(!1)},onChange:o,onFocus:function(){return m(!0)},onKeyDown:function(e){13===e.keyCode&&a()},onMouseLeave:function(){return b(!1)},onMouseOver:function(){return b(!0)},ref:function(e){setTimeout((function(){e&&e.focus()}),10)},type:"text",value:n}),r&&f.createElement(S.a,{className:c(B)}))))}))),r&&f.createElement(y.b,{marginTop:"8px"},f.createElement(O.a,{scale:"S"},f.createElement("div",{className:c(M)},r))))},z=n("./src/components/susi/GoogleRecaptcha.tsx"),G=n("./src/components/susi/helpers/index.ts"),W=n("./src/components/susi/oauth-buttons/GoogleSusiButton.tsx"),q=n("./src/screens/helpers/visits.ts"),Y=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(){var e=o()(["\n  mutation SendAcctAuthEmail(\n    $email: String!\n    $redirect: String\n    $fullName: String\n    $captchaValue: String\n    $operation: String\n    $onMobileWeb: Boolean\n  ) {\n    sendAcctAuthEmail(\n      email: $email\n      redirect: $redirect\n      fullName: $fullName\n      captchaValue: $captchaValue\n      operation: $operation\n      onMobileWeb: $onMobileWeb\n    ) {\n      ... on SusiMethod {\n        value\n      }\n      ... on BadRequest {\n        message\n      }\n      ... on FailedChallenge {\n        message\n      }\n      ... on NotFound {\n        message\n      }\n    }\n  }\n"]);return Q=function(){return e},e}var $=p()(Q()),J=/@gm/,Z=function(e){var t=e.actionUrl,n=e.children,r=e.email,o=e.operation,a=e.setEmail,i=e.setStep,c=e.token,s=Object(x.c)(),l=Object(_.d)(),m=Object(_.g)(),p=!!Object(v.a)("skip_sign_in_recaptcha"),h=Object(g.f)((function(e){return e.navigation.currentLocation})),b=f.useState(""),E=u()(b,2),O=E[0],S=E[1],j=f.useState(!1),P=u()(j,2),C=P[0],k=P[1],T=f.useState(!1),I=u()(T,2),R=I[0],N=I[1],A=f.useState(!1),L=u()(A,2),D=L[0],U=L[1],M=f.useState(!1),F=u()(M,2),B=F[0],H=F[1],K=Object(w.useTheme)();f.useEffect((function(){window.innerWidth<K.breakpoints.md&&H(!0)}),[]);var Q=function(e){S(e),N(!0),setTimeout((function(){return N(!1)}),400),U(!1)},Z=function(){return Q("Please try again.")},ee=Object(d.d)($,{onCompleted:function(e){var t;switch(e.sendAcctAuthEmail.__typename){case"SusiMethod":t=e.sendAcctAuthEmail.value,s.event("site.loginLinkSent",{}),a(r),i("CHECK_YOUR_INBOX");break;case"FailedChallenge":t=e.sendAcctAuthEmail.message,s.event("site.loginByEmailCaptchaFailure",{}),Q(t);break;case"BadRequest":"User does not exist"===(t=e.sendAcctAuthEmail.message)?(s.event("susi.blocked",{operation:o,entryPoint:m,susiMethod:"medium"}),Object(q.m)(!1,"","","",!0),a(""),U(!1),i("UNRECOGNIZED_EMAIL")):Q(t);break;case"NotFound":default:Z()}},onError:Z}),te=u()(ee,1)[0],ne=t&&c?Object(G.a)(h,l,m,t,c):Object(G.a)(h,l,m),re={email:r,operation:o,redirect:ne,onMobileWeb:B},oe=function(){!function(e){return!!e.match(Y)}(r)?Q("Please enter a valid email address."):p&&"login"===o?te({variables:re}):U(!0)};return f.createElement(y.b,{alignItems:"center",display:"flex",flexDirection:"column"},!(p&&"login"===o)&&f.createElement(z.a,{callback:function(e){return te({variables:X({captchaValue:e},re)})},shouldExecuteRecaptcha:D}),f.createElement(y.b,{marginTop:"12px",marginBottom:"28px"},f.createElement(V,{email:r,errorMessage:O,isAnimating:R,handleEmailChange:function(e){a(e.target.value.trim()),k(J.test(e.target.value))},handleSubmit:oe})),f.createElement(y.b,{marginTop:"12px",marginBottom:"15px"},f.createElement(y.c,{buttonStyle:"BRAND",onClick:oe},"Continue")),C&&f.createElement(W.a,{operation:o,actionUrl:t||"",redirectTo:ne}),n)},ee=n("./src/svg/arrow-left-19px.svg"),te={height:"25px",width:"25px",marginBottom:"2px"},ne=function(e){var t=e.actionUrl,n=e.email,r=e.goToSignInOptions,o=e.goToSignUpOptions,a=e.operation,i=e.setEmail,c=e.setStep,s=e.token,l=Object(w.useCx)(),u={title:"Sign ".concat("login"===a?"in":"up"," with email"),subheader:"login"===a?"Enter the email address associated with your account, and we’ll send a magic link to your inbox.":"Enter your email address to create an account."},d="All sign ".concat("login"===a?"in":"up"," options");return f.createElement(D.b,u,f.createElement(Z,{actionUrl:t,email:n,operation:a,setEmail:i,setStep:c,token:s},f.createElement(y.b,{marginBottom:"28px",marginTop:"12px",paddingRight:"21px"},f.createElement(O.a,{scale:"M"},f.createElement(y.t,{linkStyle:"OBVIOUS",onClick:"login"===a?r:o},f.createElement(ee.a,{className:l(te)}),d)))))},re=n("./src/components/optimizely/OptimizelyWrapper.tsx"),oe=n("./src/components/session/RequireFlag.tsx"),ae=n("./src/components/susi/oauth-buttons/OAuthButton.tsx");function ie(){return(ie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ce=h.a.createElement("path",{d:"M16.86 12.48c.02 2.42 2.12 3.22 2.14 3.23-.02.06-.34 1.15-1.1 2.27-.67.98-1.36 1.94-2.45 1.96-1.07.02-1.41-.63-2.63-.63-1.23 0-1.6.61-2.62.65-1.05.04-1.85-1.05-2.52-2.02-1.37-1.98-2.42-5.6-1.01-8.04a3.9 3.9 0 0 1 3.3-2c1.03-.02 2 .7 2.64.7.63 0 1.8-.87 3.05-.74.52.02 1.98.21 2.92 1.58-.07.05-1.74 1.02-1.72 3.04zm-2.01-5.93c.56-.68.93-1.62.83-2.55-.8.03-1.78.54-2.35 1.21-.52.6-.97 1.55-.85 2.47.9.07 1.81-.46 2.37-1.13",fill:"#000"}),se=function(e){return h.a.createElement("svg",ie({width:25,height:25,viewBox:"0 0 25 25",fill:"none"},e),ce)};function le(){var e=o()(["\n  fragment AppleSusiButton_query on Query {\n    ...OAuthButton_query\n  }\n  ","\n"]);return le=function(){return e},e}var ue=function(e){var t=s()({},e),n=Object(g.f)((function(e){return e.config.authDomain}));return f.createElement(ae.a,s()({},t,{icon:se,service:"Apple",urlFragment:Object(R.Ib)(n)}))},de=p()(le(),ae.b);function me(){return(me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var pe=h.a.createElement("path",{d:"M4 6v13h17V6H4zm5.9 7.97l2.6 2.12 2.6-2.12 4.14 4.02H5.76l4.15-4.02zm-4.88 3.32V9.97l4.1 3.35-4.1 3.97zm10.87-3.97l4.1-3.35v7.32l-4.1-3.97zm4.1-6.3v1.64l-7.49 6.12-7.48-6.13V7.01h14.96z"}),fe=function(e){return h.a.createElement("svg",me({width:25,height:25},e),pe)},he=function(e){var t=e.operation,n=e.goToEmailAuthStep,r=Object(x.c)(),o=Object(_.g)();return f.createElement(re.a,{featureString:"email-susi-button",target:"clickable"},f.createElement(y.c,{buttonStyle:"SOCIAL",onClick:function(){r.event("susi.methodClicked",{entryPoint:o,operation:t,susiMethod:"medium"}),n()},shape:"RECTANGLE",size:"REGULAR",width:"212px"},f.createElement(y.b,{alignItems:"center",display:"flex"},f.createElement(y.b,{marginRight:"8px",marginTop:"-2px",tag:fe}),f.createElement(re.a,{featureString:"email-susi-button",target:"text"},"Sign ","login"===t?"in":"up"," with email"))))},ge=n("./src/components/susi/oauth-buttons/FacebookSusiButton.tsx"),be=n("./src/components/susi/oauth-buttons/TwitterSusiButton.tsx");function ve(){var e=o()(["\n  fragment SignInOptions_query on Query {\n    ...AppleSusiButton_query\n    ...FacebookSusiButton_query\n    ...GoogleSusiButton_query\n    ...TwitterSusiButton_query\n    ...EmailSusiButton_query\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return ve=function(){return e},e}function Ee(){var e=o()(["\n  fragment EmailSusiButton_query on Query {\n    accountToken\n  }\n"]);return Ee=function(){return e},e}function ye(){var e=o()(["\n  fragment SignInOptions_newsletterV3 on NewsletterV3 {\n    id\n    name\n  }\n"]);return ye=function(){return e},e}function Oe(){var e=o()(["\n  fragment SignInOptions_user on User {\n    id\n    name\n  }\n"]);return Oe=function(){return e},e}function xe(){var e=o()(["\n  fragment SignInOptions_topic on Topic {\n    id\n    name\n  }\n"]);return xe=function(){return e},e}function _e(){var e=o()(["\n  fragment SignInOptions_collection on Collection {\n    id\n    name\n  }\n"]);return _e=function(){return e},e}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Se=function(e){var t=e.actionUrl,n=e.collection,r=e.goToEmailAuthStep,o=e.toggleOperation,a=e.token,c=e.topic,s=e.user,l=e.newsletterV3,u=Object(_.g)(),d={actionUrl:t||"",operation:"login",token:a||""},m={collection:n,productName:Object(g.f)((function(e){return e.config.productName})),topic:c,user:s,newsletterV3:l},p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ctaText:"Sign In",isSubHeaderResponsive:!1,title:"Welcome back."},Object(G.b)(u,m));return f.createElement(re.a,{featureString:"susi-entry-point",target:Object(G.d)(u,m)},f.createElement(re.a,{featureString:"susi-sign-in",target:"modal"},f.createElement(D.b,p,f.createElement(re.a,{featureString:"susi-modal",target:"google-button"},f.createElement(W.a,d)),f.createElement(re.a,{featureString:"susi-modal",target:"fb-button"},f.createElement(y.b,{marginTop:"12px",marginBottom:"12px"},f.createElement(ge.a,d))),f.createElement(oe.a,{name:"enable_apple_sign_in"},f.createElement(re.a,{featureString:"susi-modal",target:"apple-button"},f.createElement(y.b,{marginTop:"12px",marginBottom:"12px"},f.createElement(ue,d)))),f.createElement(re.a,{featureString:"susi-modal",target:"twitter-button"},f.createElement(y.b,{marginTop:"12px",marginBottom:"12px"},f.createElement(be.a,d))),f.createElement(re.a,{featureString:"susi-modal",target:"email-button"},f.createElement(y.b,{marginBottom:"40px"},f.createElement(he,{goToEmailAuthStep:r,operation:"login"}))),f.createElement(re.a,{featureString:"susi-modal",target:"sign-in-link"},f.createElement(y.b,{marginBottom:"58px"},f.createElement(O.a,{color:"DARKER",scale:"L"},"No account?"," ",f.createElement(y.t,{onClick:o,linkStyle:"OBVIOUS"},f.createElement("b",null,"Create one"))))))))},je=p()(_e()),Pe=p()(xe()),Ce=p()(Oe()),ke=p()(ye()),Te=p()(Ee()),Ie=p()(ve(),de,ge.b,W.b,be.b,Te);function Re(){var e=o()(["\n  fragment SignUpOptions_query on Query {\n    ...FacebookSusiButton_query\n    ...GoogleSusiButton_query\n  }\n  ","\n  ","\n"]);return Re=function(){return e},e}function Ne(){var e=o()(["\n  fragment SignUpOptions_newsletterV3 on NewsletterV3 {\n    id\n    name\n  }\n"]);return Ne=function(){return e},e}function Ae(){var e=o()(["\n  fragment SignUpOptions_user on User {\n    id\n    name\n  }\n"]);return Ae=function(){return e},e}function Le(){var e=o()(["\n  fragment SignUpOptions_collection on Collection {\n    id\n    name\n  }\n"]);return Le=function(){return e},e}function De(){var e=o()(["\n  fragment SignUpOptions_topic on Topic {\n    id\n    name\n  }\n"]);return De=function(){return e},e}function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Me=function(e){var t=e.actionUrl,n=e.collection,r=e.goToEmailAuthStep,o=e.toggleOperation,a=e.token,c=e.topic,s=e.user,l=e.newsletterV3,u=Object(x.c)(),d=Object(_.g)(),m=Object(g.f)((function(e){return e.config.productName})),p=!!Object(v.a)("hide_fb_sign_up"),h=!!Object(v.a)("sign_up_with_email_button"),b={actionUrl:t||"",operation:"register",token:a||""},E={collection:n,productName:m,topic:c,user:s,newsletterV3:l},w=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ctaText:"Sign Up",isSubHeaderResponsive:!1},Object(G.c)(d,E)),S=f.createElement(re.a,{featureString:"susi-modal",target:"fb-button"},f.createElement(y.b,{marginTop:"12px"},f.createElement(ge.a,b)));return f.useEffect((function(){u.event("experiment.eligible",{experimentId:"490d6ea29a90"})}),[]),f.createElement(re.a,{featureString:"susi-entry-point",target:Object(G.d)(d,E)},f.createElement(re.a,{featureString:"susi-sign-up",target:"modal"},f.createElement(D.b,w,f.createElement(re.a,{featureString:"susi-modal",target:"google-button"},f.createElement(W.a,b)),!p&&S,h?f.createElement(re.a,{featureString:"susi-modal",target:"email-button"},f.createElement(y.b,{marginTop:"12px"},f.createElement(he,{goToEmailAuthStep:r,operation:"register"}))):f.createElement(re.a,{featureString:"susi-modal",target:"email-link"},f.createElement(y.b,{marginTop:"20px"},f.createElement(O.a,{color:"DARKER",scale:"M"},f.createElement(re.a,{featureString:"susi-modal-email-link",target:"clickable"},f.createElement(y.t,{linkStyle:"SUBTLE",onClick:r},f.createElement(re.a,{featureString:"susi-modal-email-link",target:"text"},"Sign up with email")))))),f.createElement(re.a,{featureString:"susi-modal",target:"sign-up-link"},f.createElement(y.b,{marginTop:"40px",marginBottom:"100px"},f.createElement(O.a,{color:"DARKER",scale:"L"},"Already have an account?"," ",f.createElement(y.t,{onClick:o,linkStyle:"OBVIOUS"},f.createElement("b",null,"Sign in"))))))))},Fe=p()(De()),Be=p()(Le()),He=p()(Ae()),Ve=p()(Ne()),ze=p()(Re(),ge.b,W.b),Ge=function(e){var t=e.actionUrl,n=e.email,r=e.operation,o=e.setEmail,a=e.setStep,i=e.goToSignUpWithEmail,c=e.token;return f.createElement(D.b,{title:"Sorry, we didn't recognize that email.",subheader:"Would you like to sign in with a different email?"},f.createElement(Z,{actionUrl:t,email:n,operation:r,setEmail:o,setStep:a,token:c},f.createElement(y.b,{marginTop:"12px",marginBottom:"28px",paddingRight:"21px"},f.createElement(O.a,{scale:"M"},f.createElement(y.t,{linkStyle:"OBVIOUS",onClick:function(){return a("SIGNIN_OPTIONS")}},"See all sign in options")," or ",f.createElement(y.t,{linkStyle:"OBVIOUS",onClick:i},"create a new account")))))},We=n("./src/store/actions/googleOneTap.ts"),qe=n("./src/styles/colors.ts");function Ye(){var e=o()(["\n  fragment SusiContainer_query on Query {\n    ...SignInOptions_query\n    ...SignUpOptions_query\n  }\n  ","\n  ","\n"]);return Ye=function(){return e},e}function Ke(){var e=o()(["\n  fragment SusiContainer_newsletterV3 on NewsletterV3 {\n    ...SignInOptions_newsletterV3\n    ...SignUpOptions_newsletterV3\n  }\n  ","\n  ","\n"]);return Ke=function(){return e},e}function Xe(){var e=o()(["\n  fragment SusiContainer_user on User {\n    ...SignInOptions_user\n    ...SignUpOptions_user\n  }\n  ","\n  ","\n"]);return Xe=function(){return e},e}function Qe(){var e=o()(["\n  fragment SusiContainer_topic on Topic {\n    ...SignInOptions_topic\n    ...SignUpOptions_topic\n  }\n  ","\n  ","\n"]);return Qe=function(){return e},e}function $e(){var e=o()(["\n  fragment SusiContainer_post on Post {\n    id\n  }\n"]);return $e=function(){return e},e}function Je(){var e=o()(["\n  fragment SusiContainer_collection on Collection {\n    ...SignInOptions_collection\n    ...SignUpOptions_collection\n  }\n  ","\n  ","\n"]);return Je=function(){return e},e}function Ze(){var e=o()(["\n  query AccountTokenQuery {\n    accountToken\n  }\n"]);return Ze=function(){return e},e}function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var tt=function(e){var t=e.hide,n=Object(g.e)(),r=Object(x.c)(),o=Object(_.g)(),a=Object(g.f)((function(e){return e.navigation.currentLocation})),c=Object(g.f)((function(e){return e.config.authDomain})),l=f.useState(""),m=u()(l,2),p=m[0],h=m[1],v=Object(b.a)(),E=v.goToSignInOptions,O=v.goToSignUpOptions,w=v.resetModal,S=v.setStep,j=v.setToken,P=v.susiModalConfig,C=P.actionUrl,k=P.collection,T=P.operation,I=P.post,R=P.step,N=P.topic,A=P.token,L=P.user,D=P.newsletterV3,M=v.toggleOperation,F=v.updateModal,B=function(){h(""),w()},H=null==a.match("http[s]?://[^/]*".concat(c));Object(d.e)(nt,{fetchPolicy:"no-cache",skip:!C||!R||H,onCompleted:function(e){var t=e.accountToken;return t&&j(t)}}),f.useEffect((function(){o&&(n(Object(We.d)(!0)),r.event("susi.viewed",{postId:I&&I.id,entryPoint:o,operation:T}),"post_free"===o&&r.event("signInWall.dialogViewed",{}))}),[o]);return f.createElement(y.i,{isVisible:!!R,hide:t,withAnimation:!0,withCloseButton:!1,padding:0},f.createElement(y.b,{background:qe.F,borderRadius:"4px",boxShadow:"0 2px 10px ".concat(Object(qe.A)(.15)),md:{width:"600px",height:"auto"},sm:{borderRadius:"0",width:"100vw !important",height:"100vh !important"},position:"relative",width:"678px"},f.createElement(y.g,{onClick:t,size:"LARGE"}),function(){switch(R){case"ENTER_EMAIL":return f.createElement(ne,{actionUrl:C,email:p,goToSignInOptions:E,goToSignUpOptions:O,setEmail:h,setStep:S,operation:T,token:A});case"UNRECOGNIZED_EMAIL":return f.createElement(Ge,{actionUrl:C,email:p,setEmail:h,goToSignUpWithEmail:function(){F({operation:"register",step:"ENTER_EMAIL"})},setStep:S,operation:T,token:A});case"CHECK_YOUR_INBOX":return f.createElement(U,s()({hide:B},{email:p,operation:T}));case"SIGNIN_OPTIONS":case"SIGNUP_OPTIONS":default:var e="login"===T?Se:Me,t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},C&&{actionUrl:C},{},k&&{collection:k},{},N&&{topic:N},{},A&&{token:A},{},L&&{user:L},{},D&&{newsletterV3:D},{toggleOperation:M,goToEmailAuthStep:function(){return S("ENTER_EMAIL")}});return f.createElement(e,t)}}()))},nt=p()(Ze()),rt=p()(Je(),je,Be),ot=p()($e()),at=p()(Qe(),Pe,Fe),it=p()(Xe(),Ce,He),ct=p()(Ke(),ke,Ve),st=p()(Ye(),Ie,ze)},"./src/components/susi/susi-modal/SusiModalLayout.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-redux/es/index.js"),a=n("./src/components/optimizely/OptimizelyWrapper.tsx"),i=n("./src/framework/design-system/components/index.ts"),c=n("./src/framework/design-system/type/index.ts"),s=n("./src/util/miroImage.ts"),l=n("./src/util/routes.ts"),u=function(e){var t=e.ctaText,n=Object(o.f)((function(e){return e.config.productName}));return r.createElement(i.b,{maxWidth:"314px"},r.createElement(c.a,{scale:"S"},"To make ",n," work, we log user data and share it with service providers. Click “",t,"” above to accept ",n,"’s"," ",r.createElement(i.t,{href:Object(l.Tb)(),linkStyle:"OBVIOUS",inline:!0,target:"blank"},"Terms of Service")," & ",r.createElement(i.t,{href:Object(l.xb)(),linkStyle:"OBVIOUS",inline:!0,target:"blank"},"Privacy Policy"),"."))},d=function(e){var t=e.bottomImageId,n=e.children,o=e.ctaText,l=e.isSubHeaderResponsive,d=void 0===l||l,m=e.poweredBy,p=e.subheader,f=e.title;return r.createElement(a.a,{featureString:"susi-modal",target:"background"},r.createElement(i.b,{background:"white",borderRadius:"4px",display:"flex",flexDirection:t?"column":"row",height:"100%",minHeight:"695px",justifyContent:"space-between",md:{display:"flex",justifyContent:"center"},width:"100%"},r.createElement(i.b,{alignItems:"center",display:"flex",flexDirection:"column",flexGrow:"1",justifyContent:"center",md:{display:"flex",width:"100%"},padding:"44px 56px",sm:{paddingTop:"120px"},textAlign:"center",width:t?"100%":"360px"},r.createElement(a.a,{featureString:"susi-modal",target:"header"},r.createElement(c.c,{scale:"M"},f)),!!m&&r.createElement(i.b,{sm:{display:"none"}},r.createElement(a.a,{featureString:"susi-modal",target:"powered-by-line"},r.createElement(c.a,{color:"LIGHTER",scale:"M"},m))),r.createElement(a.a,{featureString:"susi-modal",target:"subheader"},r.createElement(i.b,{marginTop:m?"20px":"30px",maxWidth:"316px",sm:d?{display:"none"}:{}},r.createElement(c.a,{color:"DARKER",scale:"L"},p))),r.createElement(i.b,{marginTop:"50px"},n),o&&r.createElement(u,{ctaText:o})),function(e){if(!e)return null;var t=Object(s.d)({width:1800,height:212,miroId:e,strategy:s.a.Resample}),n="url(".concat(t,")");return e&&r.createElement(a.a,{featureString:"susi-modal",target:"bottom-image"},r.createElement(i.b,{backgroundImage:n,backgroundPositionX:"center",backgroundPositionY:"center",backgroundSize:"cover",height:"212px",maxWidth:"900px"}))}(t)))}},"./src/components/ui/AspectRatioPlaceholder.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/components/index.ts"),a=r.forwardRef((function(e,t){var n=e.height,a=e.width,i=e.backgroundColor,c=void 0===i?"BASE_NORMAL":i,s=e.children,l=a/n;return r.createElement(o.b,{position:"relative",margin:"auto",backgroundColor:c,ref:t},r.createElement(o.b,{paddingBottom:"".concat(100/l,"%"),height:"0"},s))}))},"./src/components/ui/Byline.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/components/index.ts"),a=n("./src/framework/style/index.ts"),i=function(){return{alignItems:"center",display:"flex"}},c=function(e){var t=e.avatar,n=e.button,c=e.description,s=e.title,l=Object(a.useCx)();return r.createElement("div",{className:l(i)},r.createElement("div",null,t),r.createElement(o.b,{marginLeft:t?"12px":void 0,width:"100%"},r.createElement(o.b,{display:"flex"},r.createElement("div",{style:{flex:1}},r.createElement(o.d,{strong:!0},s)),n&&r.createElement("span",null,n)),c&&r.createElement(o.d,null,c)))}},"./src/components/ui/MiddotContainer.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),o=n.n(r),a=n("./node_modules/lodash/isArray.js"),i=n.n(a),c=n("./node_modules/react/index.js"),s=n("./src/framework/design-system/components/index.ts");function l(){return c.createElement(s.b,{tag:"span"},c.createElement(s.d,null,"·"))}function u(e){var t=e.children,n=e.middotPadding,r=o()(e,["children","middotPadding"]),a=(i()(t)?t:[t]).filter((function(e){return!!e})).reduce((function(e,t,r){return 0!==r&&e.push(c.createElement(s.b,{paddingLeft:n,paddingRight:n,key:"middot-".concat(r)},c.createElement(l,null))),e.push(t),e}),[]);return c.createElement(s.b,r,a)}},"./src/components/ui/PopoverMenu.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/components/index.ts"),a=n("./src/framework/style/index.ts");function i(e){var t=e.paddingTopBottom,n=void 0===t?"8px":t,a=e.paddingLeftRight,i=void 0===a?"20px":a;return r.createElement(o.b,{padding:"".concat(n," ").concat(i),tag:"li"},r.createElement(o.d,null,e.children))}function c(e){var t=Object(a.useCx)(),n=e.paddingTopBottom,i=void 0===n?"8px":n;return r.createElement(o.b,{paddingTop:i,paddingBottom:i,tag:"li"},r.createElement("div",{className:t((function(e){return{borderTop:"1px solid ".concat(e.baseColor.border.lighter)}}))}))}function s(e){var t=e.padding,n=e.children;return r.createElement(o.z,{ui:"SMALL"},r.createElement(o.b,{display:"flex",flexDirection:"column",alignItems:"stretch",paddingTop:t||"8px",paddingBottom:t||"8px",tag:"ul"},n))}},"./src/components/ui/image/Image.tsx":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./node_modules/react-redux/es/index.js"),c=n("./src/framework/style/index.ts");t.a=Object(i.c)((function(e){return{isAmp:e.config.isAmp}}))((function(e){var t=e.alt,n=e.src,r=e.height,i=e.width,s=e.isAmp,l=e.rules,u=e.imgRef,d=e.srcSet,m=e.sizes,p=Object(c.useCx)(),f=r?Math.round(r):void 0,h=i?Math.round(i):void 0,g=null===i,b={alt:t,src:n,width:g?void 0:h,height:g?void 0:f,srcSet:d,sizes:s?void 0:m};return t||(b.role="presentation"),s?a.createElement("amp-img",o()({alt:t,class:p(l),layout:"responsive"},b)):a.createElement("img",o()({alt:t,className:p(l),ref:u},b))}))},"./src/components/ui/image/MiroImage.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./src/components/ui/image/Image.tsx"),c=n("./src/util/miroImage.ts");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){var t,n=e.alt,r=e.rules,o=e.miroId,s=e.width,u=e.height,d=e.strategy,m={miroId:o,width:s,darken:e.darken,freezeGifs:e.freezeGifs,focusPercentX:e.focusPercentX,focusPercentY:e.focusPercentY};return t=u?Object(c.d)(l({},m,{height:u,strategy:d})):Object(c.d)(l({},m,{strategy:c.a.Resample})),a.createElement(i.a,{src:t,alt:n,rules:r,height:u,width:s})}},"./src/components/ui/image/ProgressiveMiroImage.tsx":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),i=n.n(a),c=n("./node_modules/react/index.js"),s=n("./node_modules/react-redux/es/index.js"),l=n("./src/components/ui/AspectRatioPlaceholder.tsx"),u=n("./src/components/ui/image/Image.tsx"),d=n("./src/components/ui/image/progressiveImageLoader.tsx"),m=n("./src/framework/style/index.ts"),p=n("./src/styles/colors.ts"),f=n("./src/styles/position.ts"),h=n("./src/store/selectors/session.ts");var g=n("./src/util/miroImage.ts"),b=n("./src/util/post/image.ts");function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var E=function(e){return e?{opacity:1,transition:"opacity ".concat(400,"ms 0ms")}:{opacity:0,transition:"opacity 100ms ".concat(400,"ms")}},y={overflow:"hidden",willChange:"transform",transform:"translateZ(0)"};t.a=Object(s.c)((function(e){return{isAmp:e.config.isAmp}}))((function(e){var t,n,r,a,O,x,_=e.isAmp,w=e.alt,S=e.rules,j=e.miroId,P=e.width,C=e.maxWidth,k=e.expectedWidth,T=e.otherWidths,I=e.height,R=e.strategy,N=e.darken,A=e.freezeGifs,L=e.focusPercentX,D=e.focusPercentY,U=e.autoSize,M=Object(m.useCx)(),F=(t=j,n=Object(s.f)((function(e){var t,n=e.config,r=e.client,o=e.session;return{webpMiroImageIds:n.webpMiroImageIds,supportsWebp:r.supportsWebp,userId:null===(t=o.user)||void 0===t?void 0:t.id}})),r=n.webpMiroImageIds,a=n.supportsWebp,O=n.userId,x=!O||!Object(h.a)(O),Boolean(x&&a&&t&&r&&t.includes(".png")&&r.filter((function(e){return e&&t.includes(e)})).length>0)),B=I?Object(g.e)({miroId:j,height:I,width:P}):void 0,H={miroId:j,width:P,height:I,strategy:R,darken:N,freezeGifs:A,focusPercentX:L,focusPercentY:D,webp:F},V=Object(g.d)(H),z=T.map((function(e){var t=Object(g.d)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},H,{width:e}));return"".concat(t," ").concat(e,"w")})).join(", "),G=k===b.a?"100vw":"".concat(k,"px"),W=z&&z.length>0,q=c.createElement(u.a,{src:V,alt:w,rules:S,height:I,width:P,srcSet:W?z:void 0,sizes:W?G:void 0}),Y=Object(d.a)(_?null:V),K=o()(Y,2),X=K[0],Q=K[1],$=c.useState(!1),J=o()($,2),Z=J[0],ee=J[1],te=c.useRef(null);c.useEffect((function(){var e=te.current;if(e){var t=function(){return ee(!0)};return e.complete?t():e.addEventListener("load",t),function(){e.removeEventListener("load",t)}}}),[]);var ne=Z&&!X,re=[E(X)];if(S&&(re=re.concat(S).concat({background:p.F})),I)return _?c.createElement(l.a,{height:I,width:P},q):c.createElement(l.a,{height:I,width:P},c.createElement("div",{className:M([E(ne),f.a,y])},c.createElement(u.a,{src:B,alt:w,rules:[f.a,(oe=!X,{filter:"blur(20px)",transform:"scale(1.1)",visibility:oe?"visible":"hidden",transition:oe?null:"visibility 0ms ".concat(400,"ms")})],height:I,width:P,imgRef:te})),c.createElement(u.a,{src:X?V:void 0,alt:w,rules:re,height:U?void 0:I,width:U?void 0:P,imgRef:Q,srcSet:z,sizes:G}),c.createElement("noscript",null,q));var oe,ae={};return C&&(ae.maxWidth=C),c.createElement(u.a,{src:V,alt:w,rules:ae,height:I,width:P})}))},"./src/components/ui/image/index.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return l.a}));var r=n("./node_modules/react/index.js"),o=n("./src/components/ui/image/MiroImage.tsx"),a=n("./src/framework/design-system/util/style/converters.ts"),i=n("./src/util/miroImage.ts"),c=function(e){return{display:"block",borderRadius:"50%",height:Object(a.b)(e),width:Object(a.b)(e)}};function s(e){var t=e.alt,n=e.diameter,a=e.miroId,s=e.freezeGifs,l=e.rules,u=[[c(n)],l];return r.createElement(o.a,{rules:u,alt:t,miroId:a,width:n,height:n,strategy:i.a.Crop,freezeGifs:s})}n("./src/components/ui/image/Image.tsx");var l=n("./src/components/ui/image/ProgressiveMiroImage.tsx")},"./src/components/ui/image/progressiveImageLoader.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./src/framework/track/index.ts"),c=function(e){var t=!1,n=a.useState(!1),r=o()(n,2),c=r[0],s=r[1],l=a.useRef(null),u=a.useCallback((function(n){if(e&&n.isIntersecting&&!t){t=!0;var r=new Image;r.src=e;var o=function(){s(!0),t=!1};r.decode?r.decode().then((function(){return o()})).catch((function(){})):r.onload=function(){return o()},r.onerror=function(){}}}),[e]);return Object(i.f)({onIntersect:u,disconnect:function(){return!e||c},target:l,threshold:.1,rootMargin:"500px 0px 1000px 0px"},[c,u]),[c,l]}},"./src/components/upsell/UpsellClickable.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return v}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),i=n.n(a),c=n("./node_modules/graphql-tag/src/index.js"),s=n.n(c),l=n("./node_modules/react/index.js"),u=n("./node_modules/react-redux/es/index.js"),d=n("./src/framework/design-system/components/index.ts"),m=n("./src/framework/reporter/index.ts"),p=n("./src/framework/source/index.ts"),f=n("./src/util/routes.ts");function h(){var e=o()(["\n  fragment UpsellClickable_post on Post {\n    id\n    collection {\n      id\n    }\n    sequence {\n      sequenceId\n    }\n    creator {\n      id\n    }\n  }\n"]);return h=function(){return e},e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b=s()(h()),v=Object(u.c)((function(e){return{authDomain:e.config.authDomain}}))((function(e){var t=e.authDomain,n=e.buttonSize,r=e.buttonStyle,o=e.children,a=(e.customTheme,e.eventData),c=void 0===a?{}:a,s=e.inline,u=void 0!==s&&s,h=e.isButton,b=void 0!==h&&h,v=e.linkStyle,E=void 0===v?"SUBTLE":v,y=e.post,O=e.redirectUrl,x=e.width,_=O||Object(f.ib)(t),w=Object(m.c)(),S=Object(p.e)(),j=function(){w.event("upsell.clicked",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},c,{dimension:S&&S.dimension,locationId:S&&S.dimension,postId:y&&y.id,authorId:y&&y.creator?y.creator.id:"",sequenceId:y&&y.sequence?y.sequence.sequenceId:""}))};return b?l.createElement(d.c,{buttonStyle:r,href:_,onClick:j,size:n,width:x},o):l.createElement(d.t,{onClick:j,href:_,linkStyle:E,inline:u},o)}))},"./src/components/user/UserAvatar.tsx":function(e,t,n){"use strict";n.d(t,"e",(function(){return F})),n.d(t,"c",(function(){return B})),n.d(t,"a",(function(){return G})),n.d(t,"b",(function(){return W}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),i=n.n(a),c=n("./node_modules/react/index.js"),s=n.n(c),l=n("./src/components/ui/image/index.ts"),u=n("./src/components/style/BaseThemeProvider.tsx"),d=n("./src/framework/design-system/components/index.ts");function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.5 1.3c-13.7 0-25.57 7.56-31.35 18.57L4 19.27C10 7.83 22.3 0 36.5 0S63 7.83 69 19.27l-1.15.6C62.07 8.86 50.21 1.29 36.5 1.29zM5.15 53.12c5.78 11.01 17.64 18.58 31.35 18.58 13.7 0 25.57-7.57 31.35-18.58l1.15.6C63 65.17 50.7 73 36.5 73S10 65.17 4 53.73l1.15-.6z"}),f=function(e){return s.a.createElement("svg",m({width:73,height:73,viewBox:"0 0 73 73"},e),p)};function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var g=s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.5 1.2A27.45 27.45 0 0 0 4.06 15.82L3 15.27A28.65 28.65 0 0 1 28.5 0C39.64 0 49.29 6.2 54 15.27l-1.06.55A27.45 27.45 0 0 0 28.5 1.2zM4.06 41.18A27.45 27.45 0 0 0 28.5 55.8a27.45 27.45 0 0 0 24.44-14.62l1.06.55A28.65 28.65 0 0 1 28.5 57 28.65 28.65 0 0 1 3 41.73l1.06-.55z"}),b=function(e){return s.a.createElement("svg",h({width:57,height:57,viewBox:"0 0 57 57"},e),g)};function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var E=s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.5 1.1c-9.39 0-17.53 5.55-21.51 13.66L2 14.28C6.15 5.82 14.66 0 24.5 0S42.85 5.82 47 14.28l-.99.48C42.03 6.65 33.9 1.1 24.5 1.1zM2.99 34.24C6.97 42.35 15.1 47.9 24.5 47.9c9.39 0 17.53-5.55 21.51-13.66l.99.48C42.85 43.18 34.34 49 24.5 49S6.15 43.18 2 34.72l.99-.48z"}),y=function(e){return s.a.createElement("svg",v({width:49,height:49,viewBox:"0 0 49 49"},e),E)};function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var x=s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.5 1.4c-17.14 0-32 9.95-39.25 24.5L5 25.28C12.47 10.28 27.8 0 45.5 0S78.53 10.29 86 25.28l-1.25.62C77.5 11.35 62.65 1.4 45.5 1.4zM6.25 65.1c7.25 14.55 22.1 24.5 39.25 24.5 17.14 0 32-9.95 39.25-24.5l1.25.62C78.53 80.72 63.2 91 45.5 91S12.47 80.71 5 65.72l1.25-.62z"}),_=function(e){return s.a.createElement("svg",O({width:91,height:91,viewBox:"0 0 91 91"},e),x)};function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var S=s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 1C11.83 1 5.17 5.75 1.9 12.71L1 12.3C4.4 5.02 11.4 0 19.5 0S34.6 5.02 38 12.29l-.9.42C33.82 5.75 27.16 1 19.5 1zM1.9 26.29C5.18 33.25 11.84 38 19.5 38c7.67 0 14.33-4.75 17.6-11.71l.9.42C34.6 33.98 27.6 39 19.5 39S4.4 33.98 1 26.71l.9-.42z"}),j=function(e){return s.a.createElement("svg",w({width:39,height:39,viewBox:"0 0 39 39"},e),S)};function P(){return(P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var C=s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72 1.7c-27.28 0-50.93 16.1-62.47 39.61L8 40.56C19.8 16.51 44.02 0 72 0c27.98 0 52.2 16.5 64 40.56l-1.53.75C122.93 17.8 99.27 1.71 72 1.71zM9.53 102.7c11.54 23.51 35.2 39.6 62.47 39.6 27.28 0 50.93-16.09 62.47-39.6l1.53.75C124.2 127.49 99.98 144 72 144c-27.98 0-52.2-16.5-64-40.56l1.53-.75z"}),k=function(e){return{fill:e.accentColor.fill.normal,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",position:"absolute",width:"calc(100% + 25px)",height:"calc(100% + 25px)",top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)",pointerEvents:"none"}},T={XS:j,S:y,M:b,L:f,XL:_,XXL:function(e){return s.a.createElement("svg",P({width:144,height:144,viewBox:"0 0 144 144"},e),C)}};function I(e){var t=e.scale,n=T[t];return c.createElement(u.b,null,c.createElement(d.J,null,(function(e){return c.createElement("div",{className:e(k)},c.createElement(n,null))})))}var R=n("./src/framework/design-system/components/Popover.tsx"),N=n("./src/framework/design-system/components/util/VisibilityController.tsx"),A=n("./src/framework/design-system/type/Detail.tsx"),L=n("./src/framework/design-system/util/style/converters.ts"),D=n("./src/framework/style/index.ts"),U=n("./src/util/routes.ts");function M(){var e=o()(["\n  fragment UserAvatar_user on User {\n    username\n    id\n    name\n    imageId\n    mediumMemberAt\n  }\n"]);return M=function(){return e},e}var F="1*dmbNkD5D-u45r44go_cf0g.png",B={XS:32,S:40,M:48,L:64,XL:80,XXL:128},H=function(e){return{color:e.backgroundColor,display:"inline-block",padding:"12px 16px",whiteSpace:"nowrap"}},V=function(e){var t=e.children,n=e.href;return e.link?c.createElement(d.f,{href:n},t):t},z=function(e){var t=e.children,n=e.hasPopover,r=e.name,o=Object(D.useCx)();return n&&r?c.createElement(N.a,null,(function(e){var n,a=e.isVisible,i=e.show,s=e.hide,l=function(){n&&clearTimeout(n),i()},u=function(){n=setTimeout(s,100)};return c.createElement("span",{onMouseOver:l,onMouseOut:u},a&&c.createElement(R.a,{darkTheme:!0,disablePortalOverlay:!0,display:"block",placement:"top",hide:u,isVisible:!0,shouldAnimateOpen:!0,popoverRenderFn:function(){return c.createElement("div",{onMouseOver:l},c.createElement(A.a,{scale:"S"},c.createElement("span",{className:o(H)},r)))}},c.createElement(c.Fragment,null)),t)})):t};function G(e){var t=e.scale;return c.createElement(l.a,{miroId:F,alt:"Unknown user",diameter:B[t],freezeGifs:!1})}t.d=function(e){var t=e.hasPopover,n=void 0!==t&&t,r=e.link,o=void 0!==r&&r,a=e.scale,i=e.user,s=i.username,u=i.imageId,d=i.name,m=i.mediumMemberAt,p=e.withHalo,f=void 0===p||p,h=Object(D.useCx)();if(!s)return null;var g,b=Object(U.ic)(s),v=!!m&&f,E=c.createElement(l.a,{miroId:u||F,alt:d||"",diameter:B[a],freezeGifs:!1}),y=E;return v&&(y=c.createElement("div",{className:h((g=B[a],{position:"relative",width:Object(L.b)(g),height:Object(L.b)(g)}))},c.createElement(I,{scale:a}),E)),c.createElement(z,{hasPopover:n,name:d},c.createElement(V,{href:b,link:o},y))};var W=i()(M())},"./src/components/user/UserFollowButton.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return D})),n.d(t,"a",(function(){return U}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),i=n.n(a),c=n("./node_modules/react/index.js"),s=n("./node_modules/react-redux/es/index.js"),l=n("./src/components/session/WithViewer.tsx"),u=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),d=n.n(u),m=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),p=n.n(m),f=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),h=n("./src/framework/design-system/components/index.ts"),g=n("./src/framework/reporter/index.ts"),b=n("./src/framework/source/index.ts");function v(){var e=o()(["\n  fragment UserFollowButtonSignedIn_user on User {\n    id\n    isFollowing\n  }\n"]);return v=function(){return e},e}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(){var e=o()(["\n  mutation unfollowUser($targetUserId: ID!) {\n    unfollowUser(targetUserId: $targetUserId) {\n      id\n      isFollowing\n    }\n  }\n"]);return O=function(){return e},e}function x(){var e=o()(["\n  mutation followUser($targetUserId: ID!) {\n    followUser(targetUserId: $targetUserId) {\n      id\n      isFollowing\n    }\n  }\n"]);return x=function(){return e},e}var _=i()(x()),w=i()(O()),S=function(e){var t=e.user,n=e.buttonSize,r=void 0===n?"REGULAR":n,o=e.buttonStyleFn,a=void 0===o?function(e){return e?"STRONG":"OBVIOUS"}:o,i=Object(f.d)(_,{variables:{targetUserId:t.id},optimisticResponse:{followUser:y({},t,{id:t.id,isFollowing:!0})}}),s=p()(i,1)[0],l=Object(f.d)(w,{variables:{targetUserId:t.id},optimisticResponse:{unfollowUser:y({},t,{id:t.id,isFollowing:!1})}}),u=p()(l,1)[0],d=Object(g.c)(),m=Object(b.f)(),v=t.isFollowing,E=a(!!v),O=c.useCallback((function(){return d.event("user.followed",{targetUserId:t.id,followSource:m}),s()}),[t.id,m,s]),x=c.useCallback((function(){return d.event("user.unfollowed",{targetUserId:t.id,followSource:m}),u()}),[t.id,m,u]);return c.createElement(h.c,{onClick:v?x:O,buttonStyle:E,size:r},v?"Following":"Follow")},j=i()(v()),P=n("./src/components/susi/SusiClickable.tsx"),C=n("./src/util/routes.ts");function k(){var e=o()(["\n  fragment UserFollowButtonSignedOut_post on Post {\n    ...SusiClickable_post\n  }\n  ","\n"]);return k=function(){return e},e}function T(){var e=o()(["\n  fragment UserFollowButtonSignedOut_user on User {\n    id\n    ...SusiClickable_user\n  }\n  ","\n"]);return T=function(){return e},e}var I=function(e){var t=e.buttonSize,n=void 0===t?"REGULAR":t,r=e.isObvious,o=void 0!==r&&r,a=e.user,i=e.post;return c.createElement(b.b,{source:{userId:a.id},extendSource:!0},c.createElement(P.a,{buttonSize:n,buttonStyle:o?"OBVIOUS":"SUBTLE",isButton:!0,operation:"register",post:i,user:a,actionUrl:i?Object(C.Rb)(a.id,i.id):Object(C.Qb)(a.id)},"Follow"))},R=i()(T(),P.f),N=i()(k(),P.d);function A(){var e=o()(["\n  fragment UserFollowButton_post on Post {\n    collection {\n      id\n    }\n    ...UserFollowButtonSignedOut_post\n  }\n  ","\n"]);return A=function(){return e},e}function L(){var e=o()(["\n  fragment UserFollowButton_user on User {\n    ...UserFollowButtonSignedIn_user\n    ...UserFollowButtonSignedOut_user\n  }\n  ","\n  ","\n"]);return L=function(){return e},e}t.c=Object(s.c)((function(e){return{isAmp:e.config.isAmp}}))((function(e){var t=e.user,n=e.buttonSize,r=void 0===n?"REGULAR":n,o=e.buttonStyleFn,a=void 0===o?function(e){return e?"STRONG":"OBVIOUS"}:o,i=e.post;if(e.isAmp)return null;var s=!(!i||!i.collection);return c.createElement(l.b,null,(function(e){return e?e.id!==t.id&&c.createElement(S,{user:t,buttonSize:r,buttonStyleFn:a}):c.createElement(I,{isObvious:s,post:i,user:t,buttonSize:r})}))}));var D=i()(L(),j,R),U=i()(A(),N)},"./src/easter-eggs/ascii.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Chromium")||console.log("-+++++=        .+++++=\n.+@@@@@+       #@@@@*:\n  .@@@@@=     *@@@@@  \n   @+@@@@-   =#@@@@@  \n   @ +@@@@: :% @@@@@  \n   @  *@@@@-%: @@@@@  \n   @   *@@@@-  @@@@@  \n  -@-   #@@+  :@@@@@: \n-#@@@#-  ##  =@@@@@@@=\n.......      .........\n"),console.log("We're hiring! https://medium.com/jobs-at-medium/work-at-medium-959d1a85284e")}},"./src/fragmentTypes.json":function(e){e.exports=JSON.parse('{"__schema":{"types":[{"kind":"UNION","name":"UserResult","possibleTypes":[{"name":"User"},{"name":"GraphqlEmptyId"},{"name":"NotFound"},{"name":"Suspended"},{"name":"Blocked"},{"name":"AccountSuspended"}]},{"kind":"UNION","name":"UserSuggestionReasonType","possibleTypes":[{"name":"FolloweesWhoFollow"},{"name":"Topic"}]},{"kind":"UNION","name":"PostResult","possibleTypes":[{"name":"Post"},{"name":"GraphqlEmptyId"},{"name":"NotFound"},{"name":"WithheldInCountry"},{"name":"RemovedByUser"},{"name":"UnavailableForLegalReasons"},{"name":"Unauthorized"},{"name":"PostSuspended"},{"name":"AccountSuspended"},{"name":"AccountDeleted"}]},{"kind":"UNION","name":"StreamItemType","possibleTypes":[{"name":"StreamItemCompressedPostList"},{"name":"StreamItemFullFeatureCard"},{"name":"StreamItemHalfFeatureCard"},{"name":"StreamItemHeaderCard"},{"name":"StreamItemHeading"},{"name":"StreamItemImageCard"},{"name":"StreamItemPostPreview"},{"name":"StreamItemQuoteCard"},{"name":"StreamItemQuoteList"},{"name":"StreamItemQuotePreview"},{"name":"StreamItemSeriesGridCard"},{"name":"StreamItemSeriesHeroCarousel"},{"name":"StreamItemSequence"},{"name":"StreamItemShortformLinkCard"},{"name":"StreamItemShortformNoteCard"},{"name":"StreamItemShortStoryCard"},{"name":"StreamItemStandardCard"},{"name":"StreamItemRecentFromFollowedEntitiesSection"},{"name":"StreamItemEntityCarousel"},{"name":"StreamItemPostStoryResponse"},{"name":"StreamItemPostSimpleResponse"},{"name":"StreamItemPillbox"},{"name":"StreamItemTruncatedPostCard"}]},{"kind":"UNION","name":"HeadingType","possibleTypes":[{"name":"HeadingBasic"},{"name":"HeadingWithLink"},{"name":"HeadingDismissible"}]},{"kind":"UNION","name":"EntityType","possibleTypes":[{"name":"RecentFromFollowedCollectionEntity"},{"name":"RecentFromFollowedCreatorEntity"}]},{"kind":"UNION","name":"EntityCarouselType","possibleTypes":[{"name":"Collection"},{"name":"User"}]},{"kind":"UNION","name":"NewsletterV2StatsListResult","possibleTypes":[{"name":"NewsletterV2StatsList"},{"name":"Forbidden"}]},{"kind":"UNION","name":"MilestoneType","possibleTypes":[{"name":"PostMilestoneDistributionUserDisabled"},{"name":"PostMilestoneDistributionUserEnabled"}]},{"kind":"UNION","name":"RecircItem","possibleTypes":[{"name":"Post"},{"name":"SuggestedPost"}]},{"kind":"UNION","name":"UserNavItemType","possibleTypes":[{"name":"UserNavItemTypeSystemItem"}]},{"kind":"UNION","name":"VariantFlagValueType","possibleTypes":[{"name":"VariantFlagBoolean"},{"name":"VariantFlagString"}]},{"kind":"UNION","name":"SendAcctAuthEmailResult","possibleTypes":[{"name":"SusiMethod"},{"name":"BadRequest"},{"name":"FailedChallenge"},{"name":"NotFound"}]},{"kind":"UNION","name":"VerifyLoginCodeResult","possibleTypes":[{"name":"Token"},{"name":"BadRequest"},{"name":"NotFound"},{"name":"TooManyRequests"}]},{"kind":"UNION","name":"CustomStyleSheetUpdateResult","possibleTypes":[{"name":"CustomStyleSheet"},{"name":"BadRequest"},{"name":"Conflict"},{"name":"NotFound"}]}]}}')},"./src/framework/design-system/components/Body.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/util/type/toRule.ts"),a=n("./src/framework/style/index.ts"),i=function(e){var t=e.grid.yStep,n=e.scale.ui,r=6*t;switch(n){case"SMALL":return r-t;case"REGULAR":return r;case"LARGE":return r+t;default:throw new Error("Unknown value for UI scale: ".concat(n))}},c=[function(e){return{color:e.baseColor.text.light,fill:e.baseColor.fill.light}},Object(o.a)((function(e){return{font:e.font.uiRegular,lineHeight:i(e),display:"block",wordBreak:"break-word"}}))];function s(e){var t=e.children,n=e.tag,o=void 0===n?"p":n,i=Object(a.useCx)(),s=o;return r.createElement(s,{className:i(c)},t)}},"./src/framework/design-system/components/Box.tsx":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),i=n.n(a),c=n("./node_modules/react/index.js"),s=n("./src/log/index.ts"),l=function(e,t,n){t.forEach((function(t){null!=e[t]&&n(t,e[t])}))},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r={};return l(e,t,(function(e,t){return r[e]=n(t)})),r},d=function(e,t,n){l(e,t,(function(e,t){return s.a.warn(n(e))}))},m=function(e){return["".concat(e,"Bottom"),"".concat(e,"Left"),"".concat(e,"Top"),"".concat(e,"Right")]},p=n("./src/framework/style/index.ts"),f=n("./src/styles/breakpoints.ts"),h=n("./src/styles/mediaTypes.ts");function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=m("padding");return t.push("padding"),u(e,t)},E=function(e){return function(t){var n=m("border");n.push("border");var r={ACCENT_LIGHT:t.accentColor.border.light,ACCENT_NORMAL:t.accentColor.border.normal,ACCENT_DARK:t.accentColor.border.dark,BASE_LIGHTER:t.baseColor.border.lighter,BASE_LIGHT:t.baseColor.border.light,BASE_NORMAL:t.baseColor.border.normal,BASE_DARK:t.baseColor.border.dark,BASE_DARKER:t.baseColor.border.darker,BACKGROUND:t.backgroundColor,ERROR:t.errorColor,NONE:"none"};return u(e,n,(function(e){var n=e&&r[e];return n===r.NONE?r.NONE:n&&"".concat(t.borderWidth,"px ").concat(t.borderStyle," ").concat(n)}))}},y=function(e){return u(e,["borderRadius"])},O=function(e){return u(e,["boxShadow"])},x=function(e){var t=m("margin");return t.push("margin"),u(e,t)},_=function(e){return u(e,["height","width","maxHeight","maxWidth","minHeight","minWidth","boxSizing"])},w=function(e){return u(e,["overflow"])},S=function(e){return u(e,["position","top","right","bottom","left"])},j=function(e){return u(e,["zIndex"])},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.allowFlexProps,r=t.noDefault,o=e.display,a=void 0===o?r?void 0:"block":o,i=e.float,c={display:a,float:i},s=["alignItems","flexDirection","justifyContent","flexWrap"];return"flex"===a||"inline-flex"===a||n?c=b({},c,{},u(e,s)):d(e,s,(function(e){return"Cannot set ".concat(e,' without setting `display="flex"`.')})),c},C=function(e){if(void 0===e.alignSelf&&void 0===e.flexGrow&&void 0===e.flexShrink&&void 0===e.flexBasis&&void 0===e.justifySelf&&void 0===e.order)return{};var t=e.alignSelf,n=e.flexGrow,r=void 0===n?0:n,o=e.flexShrink,a=void 0===o?0:o,i=e.flexBasis,c=void 0===i?"auto":i,s=e.justifySelf,l=e.order;return{alignSelf:t,flex:"".concat(r," ").concat(a," ").concat(c),justifySelf:s,order:l}},k=function(e){var t=e.backgroundColor,n=o()(e,["backgroundColor"]);return function(e){return b({},u(n,["background","backgroundImage","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"]),{},function(e){return function(t){var n={ACCENT_LIGHT:t.accentColor.fill.light,ACCENT_NORMAL:t.accentColor.fill.normal,ACCENT_DARK:t.accentColor.fill.dark,BASE_LIGHT:t.baseColor.background.light,BASE_NORMAL:t.baseColor.background.normal,BASE_DARK:t.baseColor.background.dark,SAGE_LIGHT:t.brandColor.sage.light,SAGE_NORMAL:t.brandColor.sage.normal,SAGE_DARK:t.brandColor.sage.dark,ROSE_LIGHT:t.brandColor.rose.light,ROSE_NORMAL:t.brandColor.rose.normal,ROSE_DARK:t.brandColor.rose.dark,BACKGROUND:t.backgroundColor,NONE:void 0};return u(e,["backgroundColor"],(function(e){return e&&n[e]}))}}({backgroundColor:t})(e))}},T=function(e){return u(e,["textAlign"])},I=function(e){return u(e,["whiteSpace"])},R=function(e){var t=e.xs;return t?function(e){return i()({},f.xs(e),b({},v(t),{},E(t)(e),{},x(t),{},_(t),{},w(t),{},P(t,{allowFlexProps:!0,noDefault:!0}),{},C(t),{},S(t),{},j(t),{},T(t),{},k(t)(e),{},I(t)))}:{}},N=function(e){var t=e.sm;return t?function(e){return i()({},f.sm(e),b({},v(t),{},E(t)(e),{},y(t),{},x(t),{},_(t),{},w(t),{},P(t,{allowFlexProps:!0,noDefault:!0}),{},C(t),{},S(t),{},j(t),{},T(t),{},k(t)(e),{},I(t)))}:{}},A=function(e){var t=e.md;return t?function(e){return i()({},f.md(e),b({},v(t),{},E(t)(e),{},y(t),{},x(t),{},_(t),{},w(t),{},P(t,{allowFlexProps:!0,noDefault:!0}),{},C(t),{},S(t),{},j(t),{},T(t),{},k(t)(e),{},I(t)))}:{}},L=function(e){var t=e.lg;return t?function(e){return i()({},f.lg(e),b({},v(t),{},E(t)(e),{},y(t),{},x(t),{},_(t),{},w(t),{},P(t,{allowFlexProps:!0,noDefault:!0}),{},C(t),{},S(t),{},j(t),{},T(t),{},k(t)(e),{},I(t)))}:{}},D=function(e){var t=e.xl;return t?function(e){return i()({},f.xl(e),b({},v(t),{},E(t)(e),{},y(t),{},x(t),{},_(t),{},w(t),{},P(t,{allowFlexProps:!0,noDefault:!0}),{},C(t),{},S(t),{},j(t),{},T(t),{},k(t)(e),{},I(t)))}:{}},U=function(e){var t=e.print;return t?function(e){return i()({},h.c(e),b({},P(t,{allowFlexProps:!0,noDefault:!0})))}:{}};t.a=c.forwardRef((function(e,t){var n=e.children,r=e.tag,a=void 0===r?"div":r,i=o()(e,["children","tag"]),s=Object(p.useCx)(),l=a,u=[v(i),E(i),y(i),O(i),x(i),_(i),w(i),P(i),C(i),S(i),j(i),k(i),T(i),I(i),R(i),N(i),A(i),L(i),D(i),U(i)];return c.createElement(l,{className:s(u),ref:t},n)}))},"./src/framework/design-system/components/Button.tsx":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),s=n.n(c),l=n("./node_modules/react/index.js"),u=n("./src/framework/design-system/components/Clickable.tsx"),d=n("./src/framework/design-system/util/style/responsiveStyles.ts"),m=n("./src/framework/design-system/util/type/toRule.ts"),p=n("./src/framework/style/index.ts"),f=n("./src/styles/colors.ts"),h={COMPACT:"0px 8px",SMALL:"4px 12px",REGULAR:"8px 16px",LARGE:"8px 20px",FULL:"12px",BADGE:"4px 0px"},g={BADGE:"auto"},b=function(e){return{font:e.font.uiRegular,lineHeight:20}},v={COMPACT:Object(m.a)((function(e){return{font:e.font.uiRegular,fontSize:15,lineHeight:18}})),BADGE:Object(m.a)(b),SMALL:Object(m.a)(b),REGULAR:Object(m.a)(b),LARGE:Object(m.a)((function(e){return{font:e.font.uiRegular,lineHeight:24}}))},E=function(e){return{padding:Object(d.c)((function(e){return function(e){return h[e]}(s()(e,1)[0])}),e),margin:Object(d.c)((function(e){return function(e){return g[e]}(s()(e,1)[0])}),e)}},y={borderWidth:"1px",borderStyle:"solid",boxSizing:"border-box",display:"inline-block",textDecoration:"none",":hover":{cursor:"pointer"},":focus":{outline:"none"}},O=function(e){return function(){return e?{width:e}:{}}},x={SUBTLE:function(e){return{color:e.baseColor.text.normal,fill:e.baseColor.fill.normal,background:0,borderColor:e.baseColor.border.dark,":hover":{color:e.baseColor.text.darker,fill:e.baseColor.fill.darker,borderColor:e.baseColor.border.darker},":disabled":{color:e.baseColor.text.lighter,fill:e.baseColor.fill.light,borderColor:e.baseColor.border.light,cursor:"inherit",":hover":{color:e.baseColor.text.lighter,fill:e.baseColor.fill.light,borderColor:e.baseColor.border.light}}}},OBVIOUS:function(e){return{background:0,color:e.accentColor.text.normal,fill:e.accentColor.fill.normal,borderColor:e.accentColor.border.normal,":hover":{color:e.accentColor.text.dark,fill:e.accentColor.fill.dark,borderColor:e.accentColor.border.dark}}},STRONG:function(e){return{color:e.backgroundColor,fill:e.backgroundColor,background:e.accentColor.fill.normal,borderColor:e.accentColor.fill.normal,":hover":{background:e.accentColor.fill.dark,borderColor:e.accentColor.fill.dark},":disabled":{cursor:"inherit",opacity:.3,":hover":{background:e.accentColor.fill.normal,borderColor:e.accentColor.fill.normal}}}},BRAND:function(e){return{color:e.backgroundColor,fill:e.backgroundColor,background:e.baseColor.fill.dark,borderColor:e.baseColor.fill.dark,":disabled":{cursor:"inherit",opacity:.1}}},ERROR:function(e){return{color:e.backgroundColor,fill:e.backgroundColor,background:e.errorColor,borderColor:e.errorColor}},WARN:function(e){return{color:e.baseColor.text.lighter,fill:e.baseColor.fill.lighter,background:0,borderColor:e.baseColor.border.normal,":hover":{borderColor:e.warnColor,color:e.warnColor}}},FACEBOOK:function(e){return{color:e.backgroundColor,fill:e.backgroundColor,background:f.q,borderColor:f.q,":hover":{background:f.r,borderColor:f.r}}},SOCIAL:function(e){return{color:e.baseColor.text.normal,background:e.backgroundColor,textAlign:"left",borderColor:e.baseColor.border.normal,":hover":{color:e.baseColor.text.normal,borderColor:e.baseColor.border.dark}}}},_={RECTANGLE:function(){return{borderRadius:"4px"}},CIRCLE:function(){return{borderRadius:"99em"}}};t.a=function(e){var t,n=Object(p.useCx)(),r=e.buttonStyle,a=void 0===r?"SUBTLE":r,c=e.size,m=void 0===c?"REGULAR":c,f=e.shape,h=void 0===f?"RECTANGLE":f,g=e.width,b=i()(e,["buttonStyle","size","shape","width"]),w=[E(m),x[a],_[h],(t=m,function(e){var n=Object(d.c)((function(t){var n=s()(t,1)[0];return(v.hasOwnProperty(n)?v[n]:function(){return{}})(e)}),t);return Object(d.b)(n)?Object(d.a)(n):n}),O(g),y];return l.createElement(u.a,o()({className:n(w)},b))}},"./src/framework/design-system/components/Clickable.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/react/index.js"),o=n("./src/components/navigation/Anchor.tsx"),a=function(e){return r.createElement("button",e)},i=function(e){return r.createElement(o.a,e,e.children)};function c(e){return"href"in e&&e.href?r.createElement(i,e):e.onClick?r.createElement(a,e):null}},"./src/framework/design-system/components/Hoverable.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),s=n.n(c),l=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),u=n.n(l),d=n("./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(p),h=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),g=n.n(h),b=n("./node_modules/react/index.js"),v=function(e){function t(e){var n;return o()(this,t),n=s()(this,u()(t).call(this,e)),g()(m()(n),"timeout",void 0),g()(m()(n),"mouseEnter",(function(e){n.timeout&&clearTimeout(n.timeout),n.props.onMouseEnter(e)})),g()(m()(n),"mouseLeave",(function(e){n.timeout=setTimeout((function(){return n.props.onMouseLeave(e)}),n.props.mouseLeaveDelay)})),n.mouseEnter=n.mouseEnter.bind(m()(n)),n.mouseLeave=n.mouseLeave.bind(m()(n)),n}return f()(t,e),i()(t,[{key:"render",value:function(){return b.createElement("div",{onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave},this.props.children)}}]),t}(b.Component);g()(v,"defaultProps",{mouseLeaveDelay:0})},"./src/framework/design-system/components/Popover.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./node_modules/react-popper/lib/esm/index.js"),c=n("./src/components/style/BaseThemeProvider.tsx"),s=n("./src/framework/design-system/components/index.ts"),l=n("./src/framework/design-system/components/portal/PopoverPortal.tsx"),u=n("./src/framework/design-system/util/events.ts"),d=n("./src/framework/style/index.ts"),m=n("./src/styles/mediaTypes.ts"),p=n("./src/styles/zIndex.ts"),f=n("./src/util/color.ts"),h=n("./src/util/dom.ts");function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){if(0!==e.indexOf("rgba("))return e;var t=Object(f.e)(e);if(!t)return e;var n=t[3],r=Math.round(255*(1-n));return"rgb(".concat(r,", ").concat(r,", ").concat(r,")")}var v={bottom:"top center",top:"bottom center"},E=function(){return{"0%":{transform:"matrix(0.97, 0, 0, 1, 0, 12)",opacity:0},"20%":{transform:"matrix(0.99, 0, 0, 1, 0, 2)",opacity:.7},"40%":{transform:"matrix(1, 0, 0, 1, 0, -1)",opacity:1},"70%":{transform:"matrix(1, 0, 0, 1, 0, 0)",opacity:1},"100%":{transform:"matrix(1, 0, 0, 1, 0, 0)",opacity:1}}},y=function(e,t,n,r){return function(o){return{boxSizing:"border-box",border:t?void 0:"".concat(o.borderWidth,"px solid ").concat(o.baseColor.border.lighter),borderRadius:"".concat(o.borderRadius.regular,"px"),boxShadow:"0 1px 4px ".concat(o.baseColor.border.lighter),color:t?"#fff":void 0,marginBottom:"top"===e?"".concat(n,"px"):"inherit",marginLeft:"right"===e?"".concat(n,"px"):"inherit",marginRight:"left"===e?"".concat(n,"px"):"inherit",marginTop:"bottom"===e?"".concat(n,"px"):"inherit",zIndex:r||p.a.popover}}},O=function(e,t){return function(n){return o()({},Object(m.b)("no-preference"),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({animation:"".concat(e," 100ms forwards linear"),transformOrigin:v[t],willChange:"transform"},_(n)))}},x=function(e){return function(t){return{background:e?t.baseColor.fill.normal:t.backgroundColor,borderRadius:"".concat(t.borderRadius.regular,"px")}}},_=function(e){return{background:e.backgroundColor,borderRadius:"".concat(e.borderRadius.regular,"px")}},w=function(e,t){return function(n){return{position:"absolute",pointerEvents:"none",top:"bottom"===e?"-14px":"top"===e?void 0:"50%",right:"left"===e?"-14px":void 0,bottom:"top"===e?"-14px":void 0,left:"right"===e?"-14px":"left"===e?void 0:"50%",clip:{top:"rect(0px 18px 18px -4px)",right:"rect(-4px 14px 18px 0px)",bottom:"rect(0px 18px 14px -4px)",left:"rect(-4px 14px 18px 0px)"}[e],":after":{content:"''",display:"block",width:"14px",height:"14px",background:t?b(n.baseColor.fill.normal):n.backgroundColor,transform:{top:"rotate(45deg) translate(-6px, -6px)",right:"rotate(45deg) translate(6px, -6px)",bottom:"rotate(45deg) translate(6px, 6px)",left:"rotate(45deg) translate(-6px, 6px)"}[e],boxShadow:{top:"1px 1px 1px -1px ".concat(n.baseColor.border.dark),right:"-1px 1px 1px -1px ".concat(n.baseColor.border.dark),bottom:"-1px -1px 1px -1px ".concat(n.baseColor.border.dark),left:"1px -1px 1px -1px ".concat(n.baseColor.border.dark)}[e]}}}};function S(e){var t=e.children,n=e.shouldAnimateOpen,r=e.placement,o=Object(d.useCx)();return n?a.createElement(s.K,{keyframes:{scaleUpKeyframes:E}},(function(e){var n=e.scaleUpKeyframes;return a.createElement("div",{className:o(O(n,r))},t)})):a.createElement("div",{className:o(_)},t)}var j=function(e){var t=e.instance.popper;if(t){var n=parseInt(t.style.top);if(0===n)return t.style.top="".concat(n-parseInt(window.getComputedStyle(document.body).getPropertyValue("margin-top")),"px"),e}};function P(e){var t=e.children,n=e.darkTheme,r=void 0!==n&&n,o=e.disablePortalOverlay,s=void 0!==o&&o,m=e.display,p=e.flip,f=void 0===p||p,g=e.hide,b=e.isVisible,v=e.noArrow,E=void 0!==v&&v,O=e.noPortal,_=void 0!==O&&O,P=e.overflowPadding,C=void 0===P?5:P,k=e.placement,T=void 0===k?"bottom":k,I=e.popoverRenderFn,R=e.popoverTheme,N=e.referenceHeight,A=e.referenceWidth,L=e.refTag,D=void 0===L?"div":L,U=e.setMaxHeight,M=void 0!==U&&U,F=e.shouldAnimateOpen,B=void 0!==F&&F,H=e.targetDistance,V=void 0===H?5:H,z=e.customZIndex,G=e.role,W=e.ariaId,q=Object(c.c)().baseTheme,Y=Object(d.useCx)(),K={display:m||"inline-block",height:N,width:A},X=D,Q=Object(d.useTheme)().borderWidth,$=a.useCallback((function(e){var t=e.instance.popper.children[0];if(t&&"bottom"===T&&!f){var n=window.innerHeight-(e.offsets.reference.top+e.offsets.reference.height-Object(h.c)().top)-V-2*Q-C;return t.style.overflowY="auto",t.style.maxHeight="".concat(n,"px"),e}}),[Q,f,h.c,T,C,V]),J=a.createElement(i.b,{modifiers:{flip:{enabled:f},preventOverflow:{enabled:!0,padding:C},setMaxHeight:{enabled:M,fn:$,order:1e3},accountForBodyMargin:{enabled:!0,fn:j,order:1050}},placement:T},(function(e){var t=e.placement,n=e.ref,o=e.style,i=e.arrowProps,c=e.scheduleUpdate;return a.createElement(d.WithCx,null,(function(e){return a.createElement("div",{ref:n,style:o,className:e(y(t,r,V,z))},a.createElement(S,{placement:t,shouldAnimateOpen:B},a.createElement("div",{id:W?"".concat(W):void 0,className:e(x(r))},I(c)),!E&&a.createElement("div",{className:e(w(t,r)),ref:i.ref,style:i.style})))}))}));return J=a.createElement(d.ThemeProvider,{theme:R||q},J),_||(J=a.createElement(l.a,{disableOverlay:s,onClick:function(e){return Object(u.a)(g,e)},onKeyDown:function(e){return Object(u.b)(g,e)},customZIndex:z},J)),a.createElement(i.a,null,a.createElement(i.c,null,(function(e){var n=e.ref;return(a.createElement(X,{ref:n,className:Y(K),role:G,"aria-hidden":!b,"aria-describedby":W,"aria-labelledby":W},t))})),b?J:null)}},"./src/framework/design-system/components/SvgButton.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),i=n.n(a),c=n("./node_modules/react/index.js"),s=n("./src/framework/style/index.ts");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u=function(e){return function(t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({color:"inherit",fill:t.baseColor.fill.lighter,fontSize:"inherit",border:"inherit",fontFamily:"inherit",letterSpacing:"inherit",fontWeight:"inherit",padding:0,margin:0,outline:"none",":hover":{cursor:"pointer"}},e)}};function d(e){var t=e.ariaLabel,n=void 0===t?"":t,r=e.children,a=e.onClick,i=e.onTouchStart,l=e.onTouchEnd,d=e.rules,m=void 0===d?{}:d,p=Object(s.useCx)(),f={onClick:a,onTouchEnd:l,onTouchStart:i};return n&&(f["aria-label"]=n),c.createElement("button",o()({},f,{className:p(u(m))}),r)}},"./src/framework/design-system/components/TooltipPopover.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@reach/auto-id/es/index.js"),i=n("./node_modules/react/index.js"),c=n("./src/framework/design-system/components/Hoverable.tsx"),s=n("./src/framework/design-system/components/Popover.tsx");function l(e){var t=e.onMouseEnter,n=e.onMouseLeave,r=e.isVisible,l=void 0===r||r,u=e.darkTheme,d=e.hide,m=void 0===d?function(){}:d,p=e.noArrow,f=void 0!==p&&p,h=e.placement,g=e.targetDistance,b=e.popoverRenderFn,v=e.mouseLeaveDelay,E=void 0===v?1e3:v,y=e.customZIndex,O=e.referenceWidth,x=e.children,_=i.useState(!1),w=o()(_,2),S=w[0],j=w[1],P=i.useCallback((function(e){t&&t(e),j(!0)}),[t,j]),C=i.useCallback((function(e){n&&n(e),j(!1)}),[n,j]),k=Object(a.a)();return i.createElement(c.a,{onMouseEnter:P,onMouseLeave:C,mouseLeaveDelay:E},i.createElement(s.a,{isVisible:l&&S,darkTheme:u,hide:m,noArrow:f,noPortal:!0,placement:h,popoverRenderFn:b,targetDistance:g,customZIndex:y,role:"tooltip",ariaId:k,referenceWidth:O},x))}},"./src/framework/design-system/components/buttons/CloseButton.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./src/framework/design-system/components/index.ts"),i=n("./src/svg/x-19px.svg"),c=n("./src/svg/x-25px.svg");function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=o.a.createElement("path",{d:"M20.13 8.11l-5.61 5.61-5.6-5.61-.81.8 5.61 5.61-5.61 5.61.8.8 5.61-5.6 5.61 5.6.8-.8-5.6-5.6 5.6-5.62",fillRule:"evenodd"}),u=function(e){return o.a.createElement("svg",s({className:"x-29px_svg__svgIcon-use",width:29,height:29},e),l)},d={SMALL:i.a,REGULAR:c.a,LARGE:u};function m(e){var t=e.onClick,n=e.size,o=void 0===n?"SMALL":n,i=e.isPositionAbsolute,c=void 0===i||i,s=d[o];return r.createElement(a.b,{position:!0===c?"absolute":"relative",right:"0",margin:!0===c?"12px":"0"},r.createElement(a.d,null,r.createElement(a.t,{onClick:t,"data-testid":"close-button"},r.createElement(s,null))))}},"./src/framework/design-system/components/form/Checkbox.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./src/framework/design-system/components/index.ts"),i=n("./src/framework/design-system/type/index.ts"),c=n("./src/framework/style/index.ts");function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=o.a.createElement("path",{d:"M1.64 6.81l-.34.36.34.35 3.8 3.83.36.36.36-.36L14.36 3l.34-.35-.34-.35-.62-.65-.36-.37-.36.37L5.8 9.02 3 6.17l-.36-.36-.36.36-.64.64z",fill:"#fff",stroke:"#fff"}),u=function(e){return o.a.createElement("svg",s({width:19,height:19,fill:"none",viewBox:"0 0 16 13"},e),l)},d=function(e,t){return function(n){var r="OBVIOUS"===t?n.accentColor.fill.normal:n.baseColor.fill.normal;return{background:e?r:n.backgroundColor,border:"1px solid ".concat(e?r:n.baseColor.border.light),borderRadius:"2px",boxSizing:"border-box",color:n.backgroundColor,cursor:"pointer",fill:n.backgroundColor}}},m={"-webkit-appearance":"none","-moz-appearance":"none",appearance:"none",position:"absolute",opacity:0},p=function(e){var t=e.children,n=e.checked,o=e.onChange,s=e.textColor,l=void 0===s?"LIGHTER":s,p=e.textScale,f=void 0===p?"M":p,h=e.checkboxStyle,g=void 0===h?"OBVIOUS":h,b=Object(c.useCx)(),v=r.useCallback((function(e){o&&o(e)}),[o]);return r.createElement(a.b,{tag:"label",display:"flex",alignItems:"center"},r.createElement(a.b,{marginRight:"10px",height:"19px",width:"19px",display:"flex",alignItems:"center",position:"relative"},r.createElement(u,{className:b(d(n,g))}),r.createElement("input",{className:b(m),type:"checkbox",checked:n,onChange:v})),r.createElement(i.a,{color:l,scale:f},t))}},"./src/framework/design-system/components/form/TextField.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return x}));var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./src/framework/design-system/components/index.ts"),i=n("./src/framework/design-system/type/index.ts"),c=n("./src/framework/style/index.ts");function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=o.a.createElement("path",{fill:"#CC5454",d:"M13.3 13.9l.14-7.08h-1.78l.15 7.08h1.48zm-.74 1.43c-.68 0-1.13.44-1.13 1.12 0 .67.45 1.12 1.13 1.12.68 0 1.13-.45 1.13-1.12 0-.68-.44-1.12-1.12-1.12"}),u=o.a.createElement("path",{fill:"red",d:"M12.5 21a8.5 8.5 0 1 0 0-17 8.5 8.5 0 0 0 0 17zm0 1a9.5 9.5 0 1 1 0-19 9.5 9.5 0 0 1 0 19z"}),d=function(e){return o.a.createElement("svg",s({width:25,height:25,viewBox:"0 0 25 25"},e),l,u)},m=function(e){var t=e.value,n=e.uneditablePrefix,o=void 0===n?"":n,a=Object(c.useCx)();return r.createElement("p",{key:t,className:a([h,y])},o,t)},p=function(e){var t=e.value,n=e.onChange,o=e.onBlur,s=e.placeholder,l=e.uneditablePrefix,u=e.addIconPadding,m=e.omitBorder,p=e.autoFocus,f=e.hasError,g=void 0!==f&&f,b=e.errorMessage,y=e.errorMessageScale,x=void 0===y?"S":y,_=Object(c.useCx)();return r.createElement(a.b,{display:"flex",flexDirection:"column",width:"100%"},r.createElement(a.b,{display:"flex",width:"100%"},!!l&&r.createElement("p",{className:_([h,O])},l),r.createElement("input",{className:_([v(u,m),g?E:{}]),type:"text",placeholder:s,value:t,onChange:n,autoFocus:p,onBlur:o}),g&&r.createElement("span",{className:_(E),style:{paddingLeft:"10px"}},r.createElement(d,null))),g&&r.createElement(a.b,{marginTop:"4px"},r.createElement(i.a,{scale:x,color:"ERROR"},b)))},f=function(e){var t=e.value,n=e.onChange,o=e.placeholder,a=e.rows,i=e.resizable,s=Object(c.useCx)(),l=i?{}:{resize:"none"};return r.createElement("textarea",{className:s([h,g,l]),placeholder:o,onChange:n,rows:a,value:t})},h=function(e){return{padding:"4px 0",fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",outline:"0",borderStyle:"solid",borderWidth:"0px 0px 1px 0px",borderColor:"".concat(e.baseColor.border.light),":focus":{borderColor:e.baseColor.border.dark}}},g={borderWidth:"1px",padding:"4px",width:"100%"},b=function(e,t){return{paddingLeft:e?"25px":void 0,borderWidth:"0px 0px ".concat(t?0:1,"px 0px"),flexGrow:"1"}},v=function(e,t){return[h,b(e,t)]},E={borderColor:"#CC5454",borderStyle:"solid",borderWidth:"0px 0px 1px 0px",":focus":{borderColor:"#CC5454"}},y=function(e){return{borderWidth:"0px 0px 1px 0px",background:"linear-gradient(to right, ".concat(e.baseColor.text.normal,", 90%, white 100%)"),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent",color:"transparent",whiteSpace:"nowrap",overflow:"hidden",width:"100%"}},O={opacity:"0.6"};function x(e){var t=e.rows,n=e.isEditable,o=void 0===n||n,a=e.scale,c=void 0===a?"M":a;return r.createElement(i.a,{scale:c},o?t&&t>1?r.createElement(f,e):r.createElement(p,e):r.createElement(m,e))}},"./src/framework/design-system/components/grid-system/MaxWidth.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./src/framework/design-system/util/style/responsiveStyles.ts"),c=n("./src/framework/style/index.ts"),s={display:"flex",justifyContent:"center"},l=function(e){return function(t){return{margin:Object(i.c)((function(e){var n=o()(e,2),r=n[0],a=n[1];return"full"===r?"0":"0 ".concat(a*t.grid.xStep,"px")}),e,t.grid.marginSteps),maxWidth:Object(i.c)((function(e){var n=o()(e,1)[0];return"full"===n?"100%":"".concat(t.maxWidths[n],"px")}),e),minWidth:"0",width:"100%"}}},u=function(e){var t=e.children,n=e.size,r=void 0===n?"outset":n,o=Object(c.useCx)();return a.createElement("div",{className:o(s)},a.createElement("div",{className:o(l(r))},t))}},"./src/framework/design-system/components/grid-system/index.ts":function(e,t,n){"use strict";n.d(t,"c",(function(){return r.a})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p}));var r=n("./src/framework/design-system/components/grid-system/MaxWidth.tsx"),o=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),a=n.n(o),i=n("./node_modules/react/index.js"),c=i.createContext({gutters:!0}),s=n("./src/framework/design-system/util/style/responsiveStyles.ts"),l=n("./src/framework/style/index.ts"),u=function(e){var t=e.alignItems,n=void 0===t?"center":t,r=e.children,o=e.direction,u=void 0===o?"row":o,d=e.gutters,m=void 0===d||d,p=e.tag,f=void 0===p?"div":p,h=Object(l.useCx)(),g=function(e){var t=e.alignItems,n=e.direction,r=e.gutters;return function(e){var o={xs:e.grid.gutterSteps.xs*e.grid.xStep,sm:e.grid.gutterSteps.sm*e.grid.xStep,md:e.grid.gutterSteps.md*e.grid.xStep,lg:e.grid.gutterSteps.lg*e.grid.xStep,xl:e.grid.gutterSteps.xl*e.grid.xStep},i=r?Object(s.c)((function(e){var t=a()(e,1)[0];return"-".concat(t/2,"px")}),o):0;return{alignItems:t,display:"flex",flexDirection:n,flexWrap:"wrap",width:r?Object(s.c)((function(e){var t=a()(e,1)[0];return"calc(100% + ".concat(t,"px)")}),o):"100%",marginLeft:i,marginRight:i}}}({alignItems:n,direction:u,gutters:m});return i.createElement(c.Provider,{value:{gutters:m}},i.createElement(f,{className:h(g)},r))},d=function(e){return"".concat(Math.round(e/12*1e8)/1e6,"%")},m=function(e){return function(t){var n={xs:t.grid.gutterSteps.xs*t.grid.xStep,sm:t.grid.gutterSteps.sm*t.grid.xStep,md:t.grid.gutterSteps.md*t.grid.xStep,lg:t.grid.gutterSteps.lg*t.grid.xStep,xl:t.grid.gutterSteps.xl*t.grid.xStep},r=e?Object(s.c)((function(e){var t=a()(e,1)[0];return"".concat(t/2,"px")}),n):"0px";return{paddingLeft:r,paddingRight:r}}},p=function(e){var t,n=e.children,r=e.size,o=e.tag,u=void 0===o?"div":o,p=i.useContext(c).gutters,f=Object(l.useCx)(),h=[m(p),(t=r,{flexBasis:Object(s.c)((function(e){var t=a()(e,1)[0];return d(t)}),t),flexGrow:0,maxWidth:Object(s.c)((function(e){var t=a()(e,1)[0];return d(t)}),t)})];return i.createElement(u,{className:f(h)},n)}},"./src/framework/design-system/components/heading/HeadingUI.tsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/util/type/headingSizeRule.ts"),a=n("./src/framework/style/index.ts"),i=function(e){return function(t){return e?{color:t.baseColor.text.dark,fill:t.baseColor.fill.dark}:{color:t.baseColor.text.normal,fill:t.baseColor.fill.normal}}};t.a=function(e){var t=e.children,n=e.size,c=e.tag,s=void 0===c?n:c,l=e.textAlign,u=e.clamp,d=e.dark,m=Object(a.useCx)(),p=s,f={textAlign:l||"inherit"};return r.createElement(p,{className:m([i(d),f,Object(o.c)(n,(function(e){return e.font.uiHeavy}),u)])},t)}},"./src/framework/design-system/components/index.ts":function(e,t,n){"use strict";n.d(t,"F",(function(){return r.ThemeProvider})),n.d(t,"J",(function(){return r.WithCx})),n.d(t,"K",(function(){return r.WithKeyframes})),n.d(t,"L",(function(){return r.WithTheme})),n.d(t,"a",(function(){return o.b})),n.d(t,"b",(function(){return a.a})),n.d(t,"c",(function(){return i.a})),n.d(t,"g",(function(){return c.a})),n.d(t,"d",(function(){return C})),n.d(t,"f",(function(){return k.a})),n.d(t,"A",(function(){return U})),n.d(t,"j",(function(){return M.a})),n.d(t,"k",(function(){return M.b})),n.d(t,"v",(function(){return M.c})),n.d(t,"p",(function(){return V})),n.d(t,"q",(function(){return W})),n.d(t,"r",(function(){return Q})),n.d(t,"l",(function(){return J})),n.d(t,"m",(function(){return Z})),n.d(t,"n",(function(){return ee})),n.d(t,"o",(function(){return te})),n.d(t,"s",(function(){return ne.a})),n.d(t,"t",(function(){return ce})),n.d(t,"w",(function(){return se.a})),n.d(t,"H",(function(){return le.a})),n.d(t,"x",(function(){return pe})),n.d(t,"z",(function(){return be})),n.d(t,"B",(function(){return ue.a})),n.d(t,"D",(function(){return ke})),n.d(t,"C",(function(){return Me})),n.d(t,"e",(function(){return Fe.a})),n.d(t,"y",(function(){return ze})),n.d(t,"E",(function(){return Ge.a})),n.d(t,"h",(function(){return We.a})),n.d(t,"i",(function(){return We.b})),n.d(t,"u",(function(){return We.c})),n.d(t,"G",(function(){return We.d})),n.d(t,"I",(function(){return qe.a}));var r=n("./src/framework/style/index.ts"),o=n("./src/framework/design-system/components/Body.tsx"),a=n("./src/framework/design-system/components/Box.tsx"),i=n("./src/framework/design-system/components/Button.tsx"),c=n("./src/framework/design-system/components/buttons/CloseButton.tsx"),s=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),l=n.n(s),u=n("./node_modules/@babel/runtime/helpers/createClass.js"),d=n.n(u),m=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),p=n.n(m),f=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),h=n.n(f),g=n("./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),b=n.n(g),v=n("./node_modules/@babel/runtime/helpers/inherits.js"),E=n.n(v),y=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),O=n.n(y),x=n("./node_modules/react/index.js"),_=n("./src/styles/font.ts"),w=function(){return{padding:"8px 12px",textAlign:"center"}},S=(x.Component,n("./src/framework/design-system/util/type/toRule.ts")),j=function(e){return Object(S.a)((function(t){return{font:t.font.uiRegular,lineHeight:20,display:"block",clamp:e}}))},P=function(e){return function(t){return{color:e?t.baseColor.text.normal:t.baseColor.text.lighter,fill:e?t.baseColor.fill.normal:t.baseColor.fill.lighter}}};function C(e){var t=e.children,n=e.tag,o=void 0===n?"span":n,a=e.strong,i=void 0!==a&&a,c=e.clamp,s=Object(r.useCx)(),l=[j(c),P(i)],u=o;return x.createElement(u,{className:s(l)},t)}var k=n("./src/framework/design-system/components/Clickable.tsx");var T=n("./node_modules/@babel/runtime/helpers/extends.js"),I=n.n(T),R=n("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),N=n.n(R);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D=new Map([[6,"xs"],[8,"sm"],[10,"md"],[12,"lg"]]);function U(e){var t=e.tag,n=void 0===t?"section":t,o=e.columns,i=e.gutter,c=void 0===i||i,s=e.centered,l=void 0===s||s,u=N()(e,["tag","columns","gutter","centered"]),d=function(e){var t,n=e.centered,r=e.columns,o=e.gutter,a=e.theme,i=r?D.get(r):null,c={xs:"".concat(a.breakpoints.sm,"px"),sm:"".concat(a.breakpoints.md,"px"),md:"".concat(a.breakpoints.lg,"px"),lg:"".concat(a.breakpoints.xl,"px"),xl:"".concat(a.grid.xlMaxContentWidth,"px")},s={xs:"".concat(a.grid.marginSteps.xs*a.grid.xStep,"px"),sm:"".concat(a.grid.marginSteps.sm*a.grid.xStep,"px"),md:"".concat(a.grid.marginSteps.md*a.grid.xStep,"px"),lg:"".concat(a.grid.marginSteps.lg*a.grid.xStep,"px"),xl:"".concat(a.grid.marginSteps.xl*a.grid.xStep,"px")};return t=i?L({maxWidth:c[i]},o?{paddingLeft:s[i],paddingRight:s[i]}:{}):{xs:L({maxWidth:c.xs},o?{paddingLeft:s.xs,paddingRight:s.xs}:{}),sm:L({maxWidth:c.sm},o?{paddingLeft:s.sm,paddingRight:s.sm}:{}),md:L({maxWidth:c.md},o?{paddingLeft:s.md,paddingRight:s.md}:{}),lg:L({maxWidth:c.lg},o?{paddingLeft:s.lg,paddingRight:s.lg}:{}),xl:L({maxWidth:c.xl},o?{paddingLeft:s.xl,paddingRight:s.xl}:{})},L({boxSizing:"border-box"},n?{marginLeft:"auto",marginRight:"auto"}:{},{},t,{width:"100%"})}({centered:l,columns:o,gutter:c,theme:Object(r.useTheme)()});return x.createElement(a.a,I()({tag:n},L({},d,{},u)))}var M=n("./src/framework/design-system/components/grid-system/index.ts"),F=function(e,t,n){return Object(S.a)((function(r){return{font:e?r.font.uiHeavy:r.font.uiRegular,lineHeight:18,letterSpacing:n,display:"block",clamp:t}}))},B=function(e,t,n){return function(r){var o="light";return n&&(o="normal"),t&&(o="lighter"),e&&!t&&(o="light"),{color:r.baseColor.text[o],fill:r.baseColor.fill[o]}}},H={textTransform:"uppercase"};function V(e){var t=e.children,n=e.tag,o=void 0===n?"span":n,a=e.strong,i=void 0!==a&&a,c=e.lighter,s=void 0!==c&&c,l=e.darker,u=void 0!==l&&l,d=e.clamp,m=e.letterSpacing,p=Object(r.useCx)(),f=[F(i,d,m),B(i,s,u),H],h=o;return x.createElement(h,{className:p(f)},t)}var z=Object(S.a)((function(e){return{font:e.font.uiHeavy,fontSize:15,lineHeight:16}})),G=function(e){return{color:e.baseColor.text.normal,fill:e.baseColor.fill.normal,borderBottom:"1px solid ".concat(e.baseColor.border.light),paddingBottom:"8px",textTransform:"uppercase"}},W=function(e){var t=e.tag,n=void 0===t?"h1":t,o=e.children,a=Object(r.useCx)(),i=n,c=[z,G];return x.createElement(i,{className:a(c)},o)},q=n("./src/framework/design-system/util/type/headingSizeRule.ts"),Y=n("./src/styles/breakpoints.ts"),K=function(e){return{color:e.baseColor.text.normal,fill:e.baseColor.fill.normal}},X=function(e,t,n){if(!t)return{};var r={};return r[e(n)]=Object(q.a)(t),r},Q=function(e){var t=e.children,n=e.size,o=e.lgSize,a=e.mdSize,i=e.smSize,c=e.tag,s=void 0===c?n:c,l=Object(r.useCx)(),u=s;return x.createElement(r.WithTheme,null,(function(e){return x.createElement(u,{className:l([K,Object(q.a)(n),X(Y.lg,o,e),X(Y.md,a,e),X(Y.sm,i,e)])},t)}))},$=n("./src/framework/design-system/components/heading/HeadingUI.tsx");function J(e){var t=e.tag,n=e.children,r=e.textAlign,o=e.clamp;return x.createElement($.a,{tag:t,size:"h1",textAlign:r,clamp:o},n)}function Z(e){var t=e.tag,n=e.children,r=e.textAlign,o=e.clamp;return x.createElement($.a,{tag:t,size:"h2",textAlign:r,clamp:o},n)}function ee(e){var t=e.tag,n=e.children,r=e.textAlign,o=e.clamp;return x.createElement($.a,{tag:t,size:"h3",textAlign:r,clamp:o},n)}function te(e){var t=e.tag,n=e.children,r=e.textAlign,o=e.clamp,a=e.dark;return x.createElement($.a,{tag:t,size:"h4",textAlign:r,clamp:o,dark:a},n)}var ne=n("./src/framework/design-system/components/Hoverable.tsx");function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var oe=function(e,t){return function(n){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({color:"inherit",fill:"inherit",fontSize:"inherit"},e?{border:"inherit"}:{},{fontFamily:"inherit",letterSpacing:"inherit",fontWeight:"inherit",padding:0,margin:0,":hover":{cursor:t},":focus":{outline:"none"},":disabled":{cursor:"default",color:n.baseColor.text.lighter,fill:n.baseColor.fill.lighter}})}},ae=function(e){return e?{display:e}:{}},ie={INLINE:{SUBTLE:function(e){return{":hover":{textDecoration:"underline"}}},OBVIOUS:function(e){return{textDecoration:"underline"}}},STANDALONE:{SUBTLE:function(e){return{":hover":{color:e.baseColor.text.dark,fill:e.baseColor.fill.dark}}},OBVIOUS:function(e){return{color:e.accentColor.text.normal,fill:e.accentColor.fill.normal,":hover":{color:e.accentColor.text.dark,fill:e.accentColor.fill.dark},":disabled":{color:e.accentColor.fillTransparent.light,fill:e.accentColor.fillTransparent.light}}}}},ce=function(e){var t=Object(r.useCx)(),n=e.display,o=e.inline,a=void 0!==o&&o,i=e.linkStyle,c=void 0===i?"SUBTLE":i,s=e.inheritBorder,l=void 0===s||s,u=e.cursor,d=void 0===u?"pointer":u,m=N()(e,["display","inline","linkStyle","inheritBorder","cursor"]),p=a?"INLINE":"STANDALONE",f=[oe(l,d),ie[p][c],ae(n)];return x.createElement(k.a,I()({className:t(f)},m))},se=n("./src/framework/design-system/components/Popover.tsx"),le=n("./src/framework/design-system/components/TooltipPopover.tsx"),ue=n("./src/framework/design-system/components/SvgButton.tsx"),de=n("./src/framework/design-system/components/portal/ui/Dialog.tsx"),me=n("./src/svg/question-mark-15px.svg"),pe=function(e){function t(e){var n;return l()(this,t),n=p()(this,h()(t).call(this,e)),O()(b()(n),"onTouchStart",(function(e){n.setState({isClicked:!0})})),O()(b()(n),"hideDialog",(function(){n.setState({isClicked:!1})})),n.onTouchStart=n.onTouchStart.bind(b()(n)),n.hideDialog=n.hideDialog.bind(b()(n)),n.state={isClicked:!1},n}return E()(t,e),d()(t,[{key:"render",value:function(){var e=this.props,t=e.mouseLeaveDelay,n=e.placement,r=e.tooltipContents,o=e.customZIndex;return x.createElement(a.a,{display:"inline"},x.createElement(le.a,{mouseLeaveDelay:t,placement:n,popoverRenderFn:function(){return x.createElement(a.a,{maxWidth:"250px",padding:"18px"},r())},customZIndex:o,noArrow:!0},x.createElement(ue.a,{onTouchStart:this.onTouchStart},x.createElement(me.a,null))),x.createElement(de.a,{isVisible:this.state.isClicked,hide:this.hideDialog},x.createElement(a.a,{height:"100vh",padding:"102px 82px",sm:{padding:"64px 0",margin:"0 -32px"}},r())))}}]),t}(x.Component);function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}O()(pe,"defaultProps",{mouseLeaveDelay:250});var ge=function(e,t){return he({},e,{scale:he({},e.scale,{},t)})};function be(e){var t=e.children,n=N()(e,["children"]);return x.createElement(r.WithTheme,null,(function(e){return x.createElement(r.ThemeProvider,{theme:ge(e,n)},t)}))}function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ye=function(e){var t=e.columns,n=e.spacing,o=e.bordered,a=Object(r.useCx)(),i=[Se[n]];return o&&i.push(je),x.createElement("thead",{className:a(_e)},x.createElement("tr",null,t.map((function(e,t){return x.createElement("th",{key:t,className:a(i)},e.name)}))))},Oe=function(e){var t=e.columns,n=e.data,o=e.spacing,a=e.bordered,i=e.striped,c=e.hoverable,s=Object(r.useCx)(),l=[we];c&&l.push(Ce),i&&l.push(Pe);var u=[Se[o]];return a&&u.push(je),x.createElement("tr",{className:s(l)},t&&t.length?t.map((function(e,t){return x.createElement("td",{key:t,className:s(u)},n[e.accessor])})):Object.keys(n).map((function(e,t){return x.createElement("td",{key:t,className:s(u)},n[e])})))},xe=function(e){return Ee({},Object(S.a)((function(e){return{font:e.font.uiRegular,fontSize:20,lineHeight:22}}))(e),{color:e.baseColor.text.lighter,display:"table",width:"100%",borderCollapse:"collapse"})},_e=function(e){return Ee({},Object(S.a)((function(e){return{font:e.font.uiHeavy,fontSize:20,lineHeight:22}}))(e),{color:e.baseColor.text.normal,display:"table-header-group",textAlign:"left",borderBottom:"2px ".concat(e.borderStyle," ").concat(e.baseColor.border.light)})},we=function(e){return{borderBottom:"".concat(e.borderWidth,"px ").concat(e.borderStyle," ").concat(e.baseColor.border.light)}},Se={DEFAULT:function(e){return{padding:"10px"}},COMPACT:function(e){return{padding:"4px"}},COMFORTABLE:function(e){return{padding:"16px"}}},je=function(e){return{border:"".concat(e.borderWidth,"px ").concat(e.borderStyle," ").concat(e.baseColor.border.light)}},Pe=function(e){return{":nth-child(odd)":{backgroundColor:e.baseColor.background.light}}},Ce=function(e){return{":hover":{backgroundColor:e.baseColor.background.normal},":nth-child(odd):hover":{backgroundColor:e.baseColor.background.normal}}},ke=function(e){var t=e.data,n=e.columns,o=e.spacing,a=void 0===o?"DEFAULT":o,i=e.bordered,c=void 0!==i&&i,s=e.striped,l=void 0!==s&&s,u=e.hoverable,d=void 0!==u&&u,m=Object(r.useCx)(),p=[xe];return c&&p.push(je),x.createElement("table",{className:m(p)},n&&n.length&&x.createElement(ye,{spacing:a,columns:n,bordered:c}),x.createElement("tbody",null,t.map((function(e,t){return x.createElement(Oe,{key:t,columns:n,data:e,spacing:a,bordered:c,striped:l,hoverable:d})}))))},Te=n("./node_modules/@reach/tabs/es/index.js"),Ie=n("./src/framework/design-system/type/index.ts"),Re=n("./node_modules/react-redux/es/index.js"),Ne=n("./node_modules/react-router/esm/react-router.js"),Ae=n("./src/util/navigation.ts"),Le=function(e){return{borderBottom:"1px solid ".concat(e.baseColor.border.lighter)}},De={listStyleType:"none",margin:0,whiteSpace:"nowrap",overflowX:"auto",marginBottom:"-1px"},Ue=function(e){return function(t){return{display:"inline-block",lineHeight:"40px",marginRight:"20px",paddingBottom:"8px",borderBottom:e?"1px solid ".concat(t.baseColor.border.dark):"none",outline:"none"}}},Me=function(e){var t,n,o=e.items,a=Object(r.useCx)(),i=(t=Object(Ne.g)(),n=Object(Re.f)((function(e){return e.navigation.hostname})),function(e){return Object(Ae.e)(e,n,t)});return x.createElement(Te.c,{className:a(Le)},x.createElement(Te.b,{as:"ul",className:a(De)},o.map((function(e,t){var n=e.title,r=e.href,o=i(r);return x.createElement(Te.a,{as:"li",className:a(Ue(o)),key:t},x.createElement(Ie.a,{scale:"M",color:o?"DARKER":"LIGHTER"},x.createElement(ce,{href:r},n)))}))))},Fe=n("./src/framework/design-system/components/form/Checkbox.tsx"),Be={"-webkit-appearance":"none","-moz-appearance":"none",appearance:"none",position:"absolute",opacity:0},He=function(e,t){return function(n){var r="OBVIOUS"===t?n.accentColor.fill.normal:n.baseColor.fill.normal;return{border:"solid 1px ".concat(n.baseColor.border.light),borderRadius:"100%",display:"flex",alignItems:"center",justifyContent:"center",width:"17px",height:"17px",boxSizing:"border-box",marginRight:"10px",":after":{content:"''",height:"11px",width:"11px",background:r,borderRadius:"100%",display:e?"block":"none"}}}},Ve=function(e){var t=e.checked,n=e.name,o=e.onChange,i=e.value,c=e.content,s=e.subContent,l=e.radioStyle,u=Object(r.useCx)();return x.createElement(a.a,null,x.createElement(a.a,{tag:"label",display:"flex",paddingBottom:"10px",alignItems:"center",position:"relative"},x.createElement("input",{type:"radio",className:u(Be),checked:t,onChange:o,name:n,value:i}),x.createElement("span",{className:u(He(t,l))}),x.createElement(a.a,{paddingTop:"2px"},c||x.createElement(Ie.a,{scale:"M"},n))),t&&s?x.createElement(a.a,null,s):null)},ze=function(e){var t=e.options,n=e.onChange,r=e.value,o=e.radioStyle,a=void 0===o?"OBVIOUS":o,i=t.find((function(e){return e.value===r})),c=i?t.indexOf(i):0,s=function(e,t){return function(){n(e,t)}};return x.createElement("div",null,t.map((function(e,t){return x.createElement(Ve,{checked:c===t,onChange:s(e.name,e.value),name:e.name,value:e.value,content:e.content,key:t,subContent:e.subContent,radioStyle:a})})))},Ge=n("./src/framework/design-system/components/form/TextField.tsx"),We=n("./src/framework/design-system/components/portal/ui/index.ts"),qe=n("./src/framework/design-system/components/util/VisibilityController.tsx")},"./src/framework/design-system/components/portal/FloatingPortal.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),s=n.n(c),l=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),u=n.n(l),d=n("./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(p),h=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),g=n.n(h),b=n("./node_modules/react/index.js"),v=n("./src/framework/design-system/components/index.ts"),E=n("./src/framework/design-system/components/portal/Portal.tsx"),y=function e(t,n){var r=this;o()(this,e),g()(this,"timeoutId",void 0),g()(this,"resumedAt",void 0),g()(this,"duration",void 0),g()(this,"elapsed",void 0),g()(this,"completed",void 0),g()(this,"onComplete",void 0),g()(this,"complete",(function(){r.pause(),r.completed=!0,r.onComplete()})),g()(this,"resume",(function(){if(!(r.resumedAt||r.timeoutId||r.completed)){var e=r.duration-r.elapsed;e<=0?r.complete():(r.resumedAt=Date.now(),r.timeoutId=setTimeout(r.complete,e))}})),g()(this,"pause",(function(){r.timeoutId&&!r.completed&&(r.elapsed+=Date.now()-r.resumedAt,clearTimeout(r.timeoutId),r.resumedAt=0,delete r.timeoutId)})),g()(this,"setDuration",(function(e){e!==r.duration&&(r.duration=e,r.timeoutId&&(r.pause(),r.resume()))})),this.resumedAt=0,this.elapsed=0,this.duration=t,this.completed=!1,this.onComplete=n},O=function(e){function t(e){var n;return o()(this,t),n=s()(this,u()(t).call(this,e)),g()(m()(n),"timer",void 0),g()(m()(n),"onComplete",(function(){n.props.onComplete()})),n.timer=new y(e.duration,n.onComplete),n}return f()(t,e),i()(t,[{key:"componentDidMount",value:function(){this.timer.resume()}},{key:"componentWillUnmount",value:function(){this.timer.pause()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.duration!==this.props.duration&&this.timer.setDuration(e.duration)}},{key:"render",value:function(){var e=this.timer,t=this.props.children,n=t&&t(e);return n||null}}]),t}(b.Component),x=n("./src/styles/zIndex.ts"),_=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=s()(this,(e=u()(t)).call.apply(e,[this].concat(a))),g()(m()(n),"ref",void 0),g()(m()(n),"timer",void 0),g()(m()(n),"onMouseEnter",(function(){n.timer&&n.timer.pause()})),g()(m()(n),"onMouseLeave",(function(){n.timer&&n.timer.resume()})),n}return f()(t,e),i()(t,[{key:"isChildFunction",value:function(e){return"function"==typeof e}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.container,o=t.duration,a=t.onComplete,i=t.rules,c=t.zIndex,s=b.createElement(E.a,{container:r},b.createElement(v.J,null,(function(t){return b.createElement("div",{className:t([i,{zIndex:c}]),ref:function(t){return e.ref=t},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},e.isChildFunction(n)?n(e.timer):n)})));return o&&a?b.createElement(O,{duration:o,onComplete:a},(function(t){return e.timer=t,s})):s}}]),t}(b.Component);g()(_,"defaultProps",{zIndex:x.a.floating})},"./src/framework/design-system/components/portal/PopoverPortal.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),s=n.n(c),l=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),u=n.n(l),d=n("./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(p),h=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),g=n.n(h),b=n("./node_modules/react/index.js"),v=n("./src/framework/design-system/components/index.ts"),E=n("./src/framework/design-system/components/portal/Portal.tsx"),y=n("./src/styles/zIndex.ts"),O=function(e,t){return function(n){return{position:"absolute",top:"0",bottom:e?"unset":"0",left:"0",right:e?"unset":"0",zIndex:t||y.a.metabar,":focus":{outline:"none"}}}},x=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=s()(this,(e=u()(t)).call.apply(e,[this].concat(a))),g()(m()(n),"ref",void 0),n}return f()(t,e),i()(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.customZIndex,r=e.disableOverlay,o=e.onClick,a=e.onKeyDown;return b.createElement(E.a,null,b.createElement(v.J,null,(function(e){return b.createElement("div",{className:e(O(r,n)),onClick:o,onKeyDown:a,tabIndex:"-1"},t)})))}}]),t}(b.Component);g()(x,"defaultProps",{onClick:function(){return null},onKeyDown:function(){return null}})},"./src/framework/design-system/components/portal/Portal.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),s=n.n(c),l=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),u=n.n(l),d=n("./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(p),h=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),g=n.n(h),b=n("./node_modules/react/index.js"),v=n("./node_modules/@hot-loader/react-dom/index.js"),E=n.n(v),y=(n("./src/log/index.ts"),function(e){function t(e){var n;return o()(this,t),n=s()(this,u()(t).call(this,e)),g()(m()(n),"portalEl",void 0),n.portalEl=document.createElement("div"),n}return f()(t,e),i()(t,[{key:"componentDidMount",value:function(){var e=this.props.container;e&&e.appendChild(this.portalEl)}},{key:"componentWillUnmount",value:function(){var e=this.props.container;e&&e.removeChild(this.portalEl)}},{key:"componentDidUpdate",value:function(e){0}},{key:"render",value:function(){return E.a.createPortal(this.props.children,this.portalEl)}}]),t}(b.Component));g()(y,"defaultProps",{container:"undefined"==typeof document?null:document.body})},"./src/framework/design-system/components/portal/ui/Dialog.tsx":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),i=n.n(a),c=n("./node_modules/react/index.js"),s=n("./src/components/style/BaseThemeProvider.tsx"),l=n("./src/framework/design-system/components/index.ts"),u=n("./src/framework/design-system/components/portal/ui/Modal.tsx"),d=n("./src/framework/design-system/util/events.ts"),m=n("./src/framework/style/index.ts"),p=n("./src/styles/mediaTypes.ts"),f=function(e){return function(t){return i()({display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e?"transparent":t.baseColor.overlay.dark,overflowX:"hidden",overflowY:"auto"},Object(p.b)("no-preference"),{"-webkit-overflow-scrolling":"touch",scrollBehavior:"smooth"})}},h=function(e){return function(t){return{padding:"".concat(void 0!==e?e:t.grid.columnWidth,"px"),marginTop:"auto",marginBottom:"auto"}}},g={"0%":{opacity:0},"25%":{transform:"scale(.9)"},"100%":{opacity:1,transform:"scale(1)"}},b={"0%":{opacity:1,transform:"scale(1)"},"25%":{opacity:0},"100%":{opacity:0,transform:"scale(.9)"}};function v(e){var t,n;"undefined"!=typeof document&&((null===(t=document)||void 0===t||null===(n=t.documentElement)||void 0===n?void 0:n.style)&&(document.documentElement.style.overflowY=e?"hidden":""))}t.a=function(e){var t=e.children,n=e.hide,r=e.isVisible,a=e.padding,E=e.noPortal,y=e.withCloseButton,O=void 0===y||y,x=e.withAnimation,_=void 0!==x&&x,w=e.withPageScroll,S=void 0!==w&&w,j=e.withTransparentOverlay,P=void 0!==j&&j,C=Object(m.useCx)(),k=c.useState(!1),T=o()(k,2),I=T[0],R=T[1];return c.useEffect((function(){r&&_&&R(!0)}),[r,_]),c.useEffect((function(){return v(r&&!S),function(){v(!1)}}),[r]),r||I?c.createElement(s.b,null,c.createElement(u.a,{rules:f(P),isVisible:r,onClick:function(e){return Object(d.a)(n,e)},onKeyDown:function(e){return Object(d.b)(n,e)},withAnimation:_,noPortal:E},_?c.createElement(l.K,{keyframes:{animation:r?g:b}},(function(e){var n,o=e.animation;return c.createElement("div",{className:C([h(a),(n=o,function(){return i()({animation:"".concat(n," 300ms forwards cubic-bezier(.25, .1, .25, 1)"),transformOrigin:"bottom center"},Object(p.b)("reduce"),{animationDuration:"0.1ms"})})]),onAnimationEnd:function(){r||R(!1)}},t)})):c.createElement("div",{className:C(h(a))},t),O&&c.createElement(l.b,{display:"flex",alignSelf:"flex-start"},c.createElement(l.b,{position:"absolute",top:"100px",right:"200px",sm:{top:"0px",right:"0px"},md:{top:"100px",right:"40px"},lg:{right:"100px"}},c.createElement(l.g,{onClick:n,size:"LARGE"}))))):null}},"./src/framework/design-system/components/portal/ui/LoadingIndicator.tsx":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./src/framework/design-system/components/index.ts"),c=n("./src/framework/design-system/components/portal/FloatingPortal.tsx"),s=n("./src/framework/style/index.ts"),l=n("./src/styles/zIndex.ts");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var d=function(){return{"0%":{transform:"translateX(-100%)"},"40%":{transform:"translateX(0%)"},"60%":{transform:"translateX(0%)"},"100%":{transform:"translateX(100%)"}}},m=function(e){return function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({position:"fixed",top:"0",height:"2px",overflow:"hidden"},{left:"0",right:"0"},{},e)}};t.a=function(e){var t=e.horizontalOverride,n=Object(s.useCx)();return a.createElement(i.K,{keyframes:{translateRight:d}},(function(e){var r,o=e.translateRight;return a.createElement(c.a,{rules:m(t),zIndex:l.a.loading},a.createElement("div",{className:n((r=o,function(e){return{position:"absolute",top:"0",height:"2px",backgroundColor:e.accentColor.border.light,transform:"translateX(100%)",animation:"".concat(r," 1s ease-in-out infinite"),animationDelay:".8s",left:"0",right:"0"}}))}))}))}},"./src/framework/design-system/components/portal/ui/Modal.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),s=n.n(c),l=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),u=n.n(l),d=n("./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(p),h=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),g=n.n(h),b=n("./node_modules/react/index.js"),v=n("./src/framework/design-system/components/index.ts"),E=n("./src/framework/design-system/components/portal/Portal.tsx"),y=function(e){return!function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t&&document.activeElement===e||e.contains(document.activeElement)}(e,!0)&&(e.focus(),!0)},O=n("./src/styles/mediaTypes.ts"),x={position:"fixed",top:"0",bottom:"0",left:"0",right:"0",zIndex:n("./src/styles/zIndex.ts").a.modal},_={"0%":{opacity:1},"100%":{opacity:0}},w={"0%":{opacity:0},"100%":{opacity:1}},S=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=s()(this,(e=u()(t)).call.apply(e,[this].concat(a))),g()(m()(n),"ref",void 0),n}return f()(t,e),i()(t,[{key:"componentDidUpdate",value:function(){this.focusRef()}},{key:"componentDidMount",value:function(){this.focusRef()}},{key:"focusRef",value:function(){this.ref&&y(this.ref)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.container,o=t.isVisible,a=t.noPortal,i=t.onClick,c=t.onKeyDown,s=t.rules,l=t.withAnimation,u=b.createElement(v.J,null,(function(t){return b.createElement(v.K,{keyframes:{animation:o?w:_}},(function(r){var o,a=r.animation;return b.createElement("div",{className:t(l?[s,x,(o=a,g()({},Object(O.b)("no-preference"),{animation:"".concat(o," 300ms forwards cubic-bezier(.25, .1, .25, 1)")}))]:[s,x]),onClick:i,onKeyDown:c,tabIndex:-1,ref:function(t){return e.ref=t},"aria-modal":"true"},n)}))}));return a?b.createElement(b.Fragment,null,u):b.createElement(E.a,{container:r},u)}}]),t}(b.Component);g()(S,"defaultProps",{onClick:function(){return null},onKeyDown:function(){return null}})},"./src/framework/design-system/components/portal/ui/Toast.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return ae})),n.d(t,"a",(function(){return ie}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),s=n.n(c),l=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),u=n.n(l),d=n("./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(p),h=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),g=n.n(h),b=n("./node_modules/react/index.js"),v=n("./src/framework/design-system/components/index.ts"),E=n("./src/framework/design-system/components/portal/FloatingPortal.tsx"),y=n("./src/svg/x-25px.svg");function O(e){var t=e.children,n=e.hide;return b.createElement(v.b,{display:"flex",alignItems:"center"},b.createElement(v.b,{flexGrow:"1",flexBasis:"0",paddingLeft:"4px",paddingRight:"4px"},t),b.createElement(v.b,{paddingLeft:"16px"},b.createElement(v.d,null,b.createElement(v.t,{onClick:n,display:"block"},b.createElement(v.b,{tag:y.a})))))}var x=n("./node_modules/react-redux/es/index.js"),_=n("./src/components/privacy/EuPrivacyBannerLoader.tsx"),w=n("./src/framework/reporter/index.ts"),S=n("./src/util/routes.ts"),j=function(e){return{maxWidth:"none",width:{xs:"auto",sm:"auto",md:"640px",lg:"640px",xl:"640px"},left:{xs:"initial",sm:"initial",md:"50%",lg:"50%",xl:"50%"},transform:{xs:"none",sm:"none",md:"translateX(-50%)",lg:"translateX(-50%)",xl:"translateX(-50%)"},margin:{xs:"0 8px",sm:"0 8px",md:"0",lg:"0",xl:"0"},backgroundColor:e.baseColor.overlay.dark,padding:{xs:"8px 0 8px 12px",sm:"8px 0 8px 12px",md:"12px 0 12px 24px",lg:"12px 0 12px 24px",xl:"12px 0 12px 24px"}}},P=Object(x.c)((function(e){return{productName:e.config.productName}}))((function(e){e.children;var t=e.hide,n=e.productName,r=Object(w.c)();return b.useEffect((function(){r.event("privacyBanner.shown",{})}),[]),b.createElement(v.b,{display:"flex",justifyContent:"space-between"},b.createElement(v.z,{ui:"SMALL"},b.createElement(v.a,null,"To make ",n," work, we log user data. By using ",n,", you agree to our"," ",b.createElement(v.t,{href:Object(S.xb)(),inline:!0,linkStyle:"OBVIOUS",target:"_blank"},"Privacy Policy"),", including cookie policy.")),b.createElement(v.b,{padding:"0 12px 12px",sm:{padding:"0 8px 8px"}},b.createElement(v.g,{onClick:function(){t(),_.a.set(_.c,1),r.event("privacyBanner.accepted",{})},isPositionAbsolute:!1,size:"SMALL"})))})),C=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),k=n.n(C),T=n("./node_modules/@apollo/react-components/lib/react-components.esm.js"),I=n("./node_modules/graphql-tag/src/index.js"),R=n.n(I),N=n("./src/components/session/WithViewer.tsx"),A=n("./src/store/actions/navigation.ts");function L(){var e=k()(["\n  mutation SendVerificationEmailMutation {\n    sendVerificationEmail\n  }\n"]);return L=function(){return e},e}var D=R()(L()),U=Object(x.c)()((function(e){var t=e.children,n=e.dispatch;return(b.createElement(N.b,null,(function(e){return b.createElement(T.a,{mutation:D,onCompleted:function(e){n(Object(A.m)({duration:"FOREVER",message:"",toastStyle:"SENT_VERIFICATION_EMAIL"}))}},(function(e){return t({mutate:e})}))})))})),M=n("./src/framework/design-system/type/Detail.tsx"),F={margin:{xs:"0",sm:"0",md:"0",lg:"0",xl:"0"},left:{xs:"50%",sm:"50%",md:"50%",lg:"50%",xl:"50%"},maxWidth:"none",minWidth:"300px",padding:"12px 20px",transform:{xs:"translateX(-50%)",sm:"translateX(-50%)",md:"translateX(-50%)",lg:"translateX(-50%)",xl:"translateX(-50%)"},width:{xs:"auto",sm:"420px",md:"420px",lg:"420px",xl:"420px"}},B=function(){var e=Object(w.c)();return b.useEffect((function(){e.event("user.sendVerificationEmailButterShown",{})}),[]),b.createElement(v.b,{display:"flex",alignItems:"center",xs:{flexDirection:"column"}},b.createElement(v.b,{marginRight:"5px",xs:{marginRight:"0"}},b.createElement(M.a,{scale:"M"},"Complete your account registration.")),b.createElement(M.a,{scale:"M"},b.createElement(U,null,(function(t){var n=t.mutate;return b.createElement(v.t,{onClick:function(){e.event("user.sendVerificationEmailButterClicked",{}),n()},linkStyle:"OBVIOUS"},"Send verification email")}))))},H={whiteSpace:"nowrap",minWidth:"93px"},V={width:{xs:"auto",sm:"auto",md:"auto",lg:"auto",xl:"auto"}},z=function(){return b.createElement(N.b,null,(function(e){return b.createElement(v.b,{textAlign:"center"},b.createElement(v.b,{marginRight:"5px",xs:{marginRight:"0"},display:"inline-block"},b.createElement(M.a,{scale:"M"},"Verification email sent to ",e&&e.unverifiedEmail,".")),b.createElement(v.b,{display:"inline-block"},b.createElement(M.a,{scale:"M"},b.createElement(v.t,{href:Object(S.qc)(),linkStyle:"OBVIOUS",target:"_blank"},b.createElement("span",{style:H},"Change email")))))}))},G=function(e){return{maxWidth:"none",width:{xs:"auto",sm:"auto",md:"640px",lg:"640px",xl:"640px"},left:{xs:"initial",sm:"initial",md:"50%",lg:"50%",xl:"50%"},transform:{xs:"none",sm:"none",md:"translateX(-50%)",lg:"translateX(-50%)",xl:"translateX(-50%)"},margin:{xs:"0 8px",sm:"0 8px",md:"0",lg:"0",xl:"0"},backgroundColor:e.baseColor.overlay.dark,padding:{xs:"8px 0 8px 12px",sm:"8px 0 8px 12px",md:"12px 0 12px 24px",lg:"12px 0 12px 24px",xl:"12px 0 12px 24px"}}},W=Object(x.c)()((function(){return b.createElement(v.b,{display:"flex",justifyContent:"space-between"},b.createElement(v.z,{ui:"SMALL"},b.createElement(v.a,null,"The following content is under review as a potential violation of our"," ",b.createElement(v.t,{href:"https://medium.com/policy/medium-rules-30e5502c4eb4",inline:!0,linkStyle:"OBVIOUS",target:"_blank"},"rules."))))})),q=n("./src/framework/design-system/components/portal/ui/toast-messages/ReadingListNotificationToastMessage.tsx"),Y={minWidth:"340px",padding:"18px 28px 16px 28px",width:"auto"},K={color:"#CC5454"},X=function(){return b.createElement(v.b,{textAlign:"center"},b.createElement(M.a,{scale:"M",color:"DARKER"},b.createElement("b",{style:K},"An error occured.")," Please try again or"," ",b.createElement(v.t,{href:"https://help.medium.com/hc/en-us/requests/new",inline:!0,linkStyle:"OBVIOUS",target:"_blank"},"contact our support team")," ","for help."))},Q={minWidth:"340px",padding:"18px 28px 16px 28px",width:"auto"},$=function(e){var t=e.children;return b.createElement(v.b,{display:"flex",alignItems:"center",textAlign:"center"},t)},J=function(){return b.createElement(v.b,{display:"flex",alignItems:"center",xs:{flexDirection:"column"}},b.createElement(v.b,{marginRight:"5px",xs:{marginRight:"0"}},b.createElement(M.a,{scale:"M"},"Your account is under investigation or was found in violation of the"," ",b.createElement(v.t,{href:Object(S.fb)(),inline:!0,linkStyle:"OBVIOUS",target:"_blank"},"Medium Rules"),".")))},Z=n("./src/framework/design-system/util/style/converters.ts"),ee=n("./src/styles/zIndex.ts"),te=n("./src/util/theme.ts"),ne=function(e){return{position:"fixed",top:"0",left:"50%",transform:"translateX(-50%)",width:"100%",maxWidth:"".concat(Object(Z.a)(e,8),"px"),padding:"12px 24px",borderRadius:"0 0 ".concat(e.borderRadius.regular,"px ").concat(e.borderRadius.regular,"px"),backgroundColor:e.backgroundColor,boxShadow:"0 0 2px ".concat(e.baseColor.border.light)}},re=function(e,t){switch(t){case"ERROR":case"USER_SUSPENDED":return Object(te.n)(e);case"MESSAGE":case"EU_PRIVACY_BANNER":default:return e}},oe=function(e){switch(e){case"EU_PRIVACY_BANNER":return[ne,j];case"VERIFY_EMAIL":return[ne,F];case"SENT_VERIFICATION_EMAIL":return[ne,F,V];case"LIMITED_STATE_BANNER":return[ne,G];case"RETRYABLE_ERROR":return[ne,Y];case"NEWSLETTER_UNSUBSCRIBE":return[ne,Q];case"USER_SUSPENDED":return[ne,Y];default:return[ne]}},ae={READING_LIST_NOTIFICATION:q.b},ie=function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=s()(this,(e=u()(t)).call.apply(e,[this].concat(a))),g()(m()(n),"ref",void 0),n}return f()(t,e),i()(t,[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.duration,o=t.hide,a=t.isVisible,i=t.toastStyle;if(!a)return null;switch(i){case"EU_PRIVACY_BANNER":e=P;break;case"VERIFY_EMAIL":e=B;break;case"SENT_VERIFICATION_EMAIL":e=z;break;case"LIMITED_STATE_BANNER":e=W;break;case"RETRYABLE_ERROR":e=X;break;case"NEWSLETTER_UNSUBSCRIBE":e=$;break;case"USER_SUSPENDED":e=J;break;case"ERROR":case"MESSAGE":default:e=O}return ae[i]&&(e=ae[i]),b.createElement(v.L,null,(function(t){return b.createElement(v.F,{theme:re(t,i)},ae[i]?b.createElement(e,{hide:o,duration:r,zIndex:ee.a.toast,message:n}):b.createElement(E.a,{duration:r,onComplete:o,rules:oe(i),zIndex:ee.a.toast},b.createElement("div",null,b.createElement("div",{className:"branch-journeys-top"},b.createElement(e,{hide:o},n||null)))))}))}}]),t}(b.Component);g()(ie,"defaultProps",{toastStyle:"MESSAGE"})},"./src/framework/design-system/components/portal/ui/index.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c.a})),n.d(t,"c",(function(){return s.a})),n.d(t,"d",(function(){return l.a}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/components/index.ts"),a=n("./src/framework/design-system/type/index.ts"),i=function(e){var t=e.buttonStyle,n=void 0===t?"OBVIOUS":t,i=e.cancelText,c=e.children,s=e.confirmText,l=e.footer,u=void 0===l?null:l,d=e.hide,m=e.isVisible,p=e.noPortal,f=e.onConfirm,h=e.showCancelButton,g=void 0===h||h,b=e.titleText,v=e.withCloseButton,E=void 0===v||v;return r.createElement(o.i,{isVisible:m,hide:d,noPortal:p,withCloseButton:E},r.createElement(o.b,{display:"flex",flexDirection:"column",alignItems:"center"},r.createElement(o.l,null,b),r.createElement(o.b,{paddingTop:"8px",paddingBottom:"24px"},r.createElement(a.f,{scale:"M"},c)),r.createElement(o.b,null,r.createElement(o.c,{buttonStyle:n,onClick:function(){f(),d()}},s),g&&r.createElement(o.b,{paddingLeft:"8px",display:"inline-block"},r.createElement(o.c,{buttonStyle:"SUBTLE",onClick:d},i))),u?r.createElement(o.b,{paddingTop:"48px"},r.createElement(o.d,null,u)):null))},c=n("./src/framework/design-system/components/portal/ui/Dialog.tsx"),s=n("./src/framework/design-system/components/portal/ui/LoadingIndicator.tsx"),l=n("./src/framework/design-system/components/portal/ui/Toast.tsx")},"./src/framework/design-system/components/portal/ui/toast-messages/ReadingListNotificationToastMessage.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return T}));var r,o=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),a=n.n(o),i=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),c=n.n(i),s=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),l=n.n(s),u=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),d=n("./node_modules/graphql-tag/src/index.js"),m=n.n(d),p=n("./node_modules/react/index.js"),f=n("./src/components/reading-list/post-preview/updateReadingList.ts"),h=n("./src/framework/design-system/components/index.ts"),g=n("./src/framework/design-system/components/portal/FloatingPortal.tsx"),b=(n("./src/framework/design-system/components/portal/Portal.tsx"),n("./src/framework/design-system/components/portal/ui/Modal.tsx"),n("./src/framework/design-system/type/index.ts")),v=n("./src/framework/reporter/index.ts"),E=n("./src/framework/source/index.ts"),y=n("./src/framework/style/index.ts");function O(){var e=c()(["\n  mutation undoUnarchivePostMutation($targetPostId: ID!) {\n    archivePost(targetPostId: $targetPostId) {\n      id\n    }\n  }\n"]);return O=function(){return e},e}function x(){var e=c()(["\n  mutation undoUnbookmarkPostMutation($targetPostId: ID!) {\n    bookmarkPost(targetPostId: $targetPostId) {\n      id\n    }\n  }\n"]);return x=function(){return e},e}var _,w,S=900;(w=_||(_={})).shiftUp="SHIFT_UP",w.shiftDown="SHIFT_DOWN";var j=(r={},l()(r,_.shiftDown,(function(){return{"0%":{bottom:"0px",opacity:1},"100%":{bottom:"-50px",opacity:0}}})),l()(r,_.shiftUp,(function(){return{"0%":{bottom:"-200px"},"100%":{bottom:"0px"}}})),r),P=function(e,t){return function(n){var r=n.maxWidths.outset;return{position:"fixed",top:"auto",left:"50%",bottom:"0px",transform:"translateX(-50%)",width:"100%",height:"100px",pointerEvents:"none",padding:{xs:"0 48px",sm:"0 48px",md:"0 48px",lg:"0 64px",xl:"0 64px"},background:"transparent",border:"none",boxShadow:"none",maxWidth:"".concat(r+128,"px"),animation:t?"".concat(e[_.shiftDown]," ").concat(300,"ms ease-in-out"):"".concat(e[_.shiftUp]," ").concat(600,"ms ease-in-out"),"> div":{pointerEvents:"all",borderRadius:"".concat(n.borderRadius.regular,"px"),boxShadow:"0 0 12px 0 ".concat(n.baseColor.border.light),maxWidth:"calc(100% - 96px)",width:"350px",margin:"0",backgroundColor:n.baseColor.overlay.dark,position:{xs:"absolute",sm:"absolute",md:"relative",lg:"relative",xl:"relative"},bottom:{xs:"15px",sm:"15px",md:"auto",lg:"auto",xl:"auto"},left:{xs:"50%",sm:"50%",md:"auto",lg:"auto",xl:"auto"},transform:{xs:"translateX(-50%)",sm:"translateX(-50%)",md:"initial",lg:"initial",xl:"initial"},padding:{xs:"20px",sm:"20px",md:"20px 16px 20px 30px",lg:"20px 16px 20px 30px",xl:"20px 16px 20px 30px"},marginBottom:{xs:"0",sm:"0",md:"35px",lg:"35px",xl:"35px"}}}}},C=m()(x()),k=m()(O());var T=function(e){var t=e.message,n=e.hide,r=e.duration,o=e.zIndex,i=p.useState(!1),c=a()(i,2),s=c[0],l=c[1],d=p.useState(!1),m=a()(d,2),O=m[0],x=m[1],w=p.useRef(null);p.useEffect((function(){w.current=setTimeout((function(){O||l(!0)}),r-300)}));var S,T=Object(v.c)(),I=Object(E.d)(),R=t.split(":"),N=a()(R,3),A=N[0],L=N[1],D=N[2],U=Object(u.d)(C,{variables:{targetPostId:A},awaitRefetchQueries:!0,refetchQueries:function(){return[{query:f.a,variables:{searchQuery:D}}]},onCompleted:function(){T.event("post.undoUnbookmark",{postId:A,source:I}),l(!0),setTimeout((function(){window.location.reload(),n()}),300)}}),M=a()(U,1)[0],F=Object(u.d)(k,{variables:{targetPostId:A},awaitRefetchQueries:!0,refetchQueries:function(){return[{query:f.a,variables:{searchQuery:D}}]},onCompleted:function(){T.event("post.undoUnarchive",{postId:A,source:I}),l(!0),setTimeout((function(){window.location.reload(),n()}),300)}}),B=a()(F,1)[0];return-1===t.indexOf(":")||t.split(":").length>3?null:"archive"!==(S=L)&&"bookmark"!==S?null:p.createElement(y.WithKeyframes,{keyframes:j},(function(e){return(t=e)[_.shiftUp]&&t[_.shiftDown]?p.createElement(g.a,{duration:r,onComplete:n,rules:[P(e,s)],zIndex:o},(function(e){return p.createElement("div",null,p.createElement("div",{className:"branch-journeys-top"},p.createElement(h.b,{display:"flex",alignItems:"center"},p.createElement(h.b,{flexGrow:"1",flexBasis:"0",paddingLeft:"4px",paddingRight:"4px"},p.createElement(b.a,{scale:"M"},"Removed from reading list")),p.createElement(h.b,{paddingRight:"16px"},p.createElement(h.t,{disabled:O,onClick:function(){switch(w.current&&clearTimeout(w.current),e.pause(),x(!0),L){case"bookmark":M();break;case"archive":default:B()}},display:"block"},p.createElement(b.a,{scale:"L",color:"ACCENT"},O?"Undoing...":"Undo"))))))})):null;var t}))}},"./src/framework/design-system/components/util/VisibilityController.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),s=n.n(c),l=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),u=n.n(l),d=n("./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(p),h=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),g=n.n(h),b=n("./node_modules/react/index.js"),v=function(e){function t(e){var n;return o()(this,t),n=s()(this,u()(t).call(this,e)),g()(m()(n),"show",(function(){n.setState({isVisible:!0})})),g()(m()(n),"hide",(function(){n.setState({isVisible:!1})})),g()(m()(n),"toggle",(function(){return n.state.isVisible?n.hide():n.show()})),n.state={isVisible:e.initialVisibility||!1},n}return f()(t,e),i()(t,[{key:"render",value:function(){var e=this.show,t=this.hide,n=this.toggle,r=this.state.isVisible;return this.props.children({isVisible:r,show:e,hide:t,toggle:n})}}]),t}(b.Component)},"./src/framework/design-system/type/Body.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("./node_modules/react/index.js"),n("./src/framework/design-system/type/useTypeRules.ts"),n("./src/framework/style/index.ts");var r=function(e){return{color:e.baseColor.text.normal,letterSpacing:"-0.003em"}}},"./src/framework/design-system/type/Detail.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/type/useTypeRules.ts"),a=n("./src/framework/style/index.ts"),i=function(e){return function(t){return{color:{DARKER:t.baseColor.text.normal,LIGHTER:t.baseColor.text.lighter,ACCENT:t.accentColor.text.normal,ERROR:t.errorColor}[e]}}},c=function(e){var t=e.scale,n=e.color,i=void 0===n?"LIGHTER":n,c=e.children,s=e.tag,l=void 0===s?"h4":s,u=e.clamp,d=e.cropMargins,m=Object(a.useCx)(),p=Object(o.a)({name:"detail",scale:t,clamp:u,cropMargins:d,color:i});return r.createElement(l,{className:m(p)},c)}},"./src/framework/design-system/type/Heading.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/type/useTypeRules.ts"),a=n("./src/framework/style/index.ts"),i=function(e){return{color:e.baseColor.text.normal}},c=function(e){var t=e.children,n=e.clamp,i=e.cropMargins,c=e.scale,s=e.tag,l=void 0===s?"h2":s,u=Object(a.useCx)(),d=Object(o.a)({name:"heading",scale:c,clamp:n,cropMargins:i});return r.createElement(l,{className:u(d)},t)}},"./src/framework/design-system/type/Marketing.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/type/useTypeRules.ts"),a=n("./src/framework/style/index.ts"),i=function(e){return{color:e.baseColor.text.normal}},c=function(e){var t=e.scale,n=e.children,i=e.tag,c=void 0===i?"h2":i,s=e.cropMargins,l=Object(a.useCx)(),u=Object(o.a)({name:"marketing",scale:t,cropMargins:s});return r.createElement(c,{className:l(u)},n)}},"./src/framework/design-system/type/Overline.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/type/useTypeRules.ts"),a=n("./src/framework/style/index.ts"),i=function(e){return function(t){return{color:{LIGHTER:t.baseColor.text.lighter,ACCENT:t.accentColor.text.normal}[e],textTransform:"uppercase",letterSpacing:"0.05em"}}},c=function(e){var t=e.children,n=e.color,i=void 0===n?"LIGHTER":n,c=e.scale,s=void 0===c?"M":c,l=e.tag,u=void 0===l?"p":l,d=e.cropMargins,m=Object(a.useCx)(),p=Object(o.a)({name:"overline",scale:s,cropMargins:d,color:i});return r.createElement(u,{className:m(p)},t)}},"./src/framework/design-system/type/PullQuote.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/type/useTypeRules.ts"),a=n("./src/framework/style/index.ts"),i=function(e){return{color:e.baseColor.text.lighter}},c=function(e){var t=e.scale,n=e.children,i=e.tag,c=void 0===i?"blockquote":i,s=e.cropMargins,l=Object(a.useCx)(),u=Object(o.a)({name:"pullQuote",scale:t,cropMargins:s});return r.createElement(c,{className:l(u)},n)}},"./src/framework/design-system/type/Subtitle.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/type/useTypeRules.ts"),a=n("./src/framework/style/index.ts"),i=function(e){return function(t){return{color:{DARKER:t.baseColor.text.normal,LIGHTER:t.baseColor.text.lighter}[e]}}},c=function(e){var t=e.scale,n=e.children,i=e.color,c=void 0===i?"LIGHTER":i,s=e.tag,l=void 0===s?"h3":s,u=e.clamp,d=e.cropMargins,m=Object(a.useCx)(),p=Object(o.a)({name:"subtitle",scale:t,clamp:u,cropMargins:d,color:c});return r.createElement(l,{className:m(p)},n)}},"./src/framework/design-system/type/Title.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./src/framework/design-system/type/useTypeRules.ts"),c=n("./src/framework/style/index.ts");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var l=function(e){var t=e.newFonts.title.letterSpacing;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({color:e.baseColor.text.normal},t?{letterSpacing:"".concat(t,"px")}:{})},u=function(e){var t=e.scale,n=e.children,r=e.tag,o=void 0===r?"h2":r,s=e.clamp,l=e.cropMargins,u=Object(c.useCx)(),d=Object(i.a)({name:"title",scale:t,clamp:s,cropMargins:l});return a.createElement(o,{className:u(d)},n)}},"./src/framework/design-system/type/createClampRule.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./src/framework/design-system/util/style/responsiveStyles.ts"),i=function(e){var t=e.clamp,n=e.lineHeight;return function(){return{overflow:"hidden",maxHeight:Object(a.c)((function(e){var t=o()(e,2),n=t[0],r=t[1];return"".concat(r*n,"px")}),t,n),textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical"}}}},"./src/framework/design-system/type/createCropRule.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./src/framework/design-system/util/style/responsiveStyles.ts"),i=function(e){var t=e.fontConfig,n=e.scale;return[{":before":Object(a.c)((function(e){var n=o()(e,1)[0];return{marginBottom:"".concat(-Math.round((t.lineHeight[n]-t.fontSize[n])/2+t.fontSize[n]*t.cropTop),"px")}}),n),":after":Object(a.c)((function(e){var n=o()(e,1)[0];return{marginTop:"".concat(-Math.round((t.lineHeight[n]-t.fontSize[n])/2+t.fontSize[n]*t.cropBottom),"px")}}),n)},{":before":{content:'""',display:"table",borderCollapse:"collapse"},":after":{content:'""',display:"table",borderCollapse:"collapse"}}]}},"./src/framework/design-system/type/createSizeRule.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./src/framework/design-system/util/style/responsiveStyles.ts"),i=function(e){var t=e.fontConfig,n=e.scale;return function(){return{fontSize:Object(a.c)((function(e){var n=o()(e,1)[0];return"".concat(t.fontSize[n],"px")}),n),lineHeight:Object(a.c)((function(e){var n=o()(e,1)[0];return"".concat(t.lineHeight[n],"px")}),n)}}}},"./src/framework/design-system/type/index.ts":function(e,t,n){"use strict";n("./src/framework/design-system/type/Body.tsx");var r=n("./src/framework/design-system/type/Detail.tsx");n.d(t,"a",(function(){return r.a}));var o=n("./src/framework/design-system/type/Heading.tsx");n.d(t,"b",(function(){return o.a}));var a=n("./src/framework/design-system/type/Marketing.tsx");n.d(t,"c",(function(){return a.a}));var i=n("./src/framework/design-system/type/Overline.tsx");n.d(t,"d",(function(){return i.a}));var c=n("./src/framework/design-system/type/PullQuote.tsx");n.d(t,"e",(function(){return c.a}));var s=n("./src/framework/design-system/type/Subtitle.tsx");n.d(t,"f",(function(){return s.a}));var l=n("./src/framework/design-system/type/Title.tsx");n.d(t,"g",(function(){return l.a}))},"./src/framework/design-system/type/useTypeRules.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./src/framework/design-system/type/Body.tsx"),i=n("./src/framework/design-system/type/Detail.tsx"),c=n("./src/framework/design-system/type/Heading.tsx"),s=n("./src/framework/design-system/type/Marketing.tsx"),l=n("./src/framework/design-system/type/Overline.tsx"),u=n("./src/framework/design-system/type/PullQuote.tsx"),d=n("./src/framework/design-system/type/Subtitle.tsx"),m=n("./src/framework/design-system/type/Title.tsx"),p=n("./src/framework/design-system/type/createClampRule.ts"),f=n("./src/framework/design-system/type/createCropRule.ts"),h=n("./src/framework/design-system/type/createSizeRule.ts"),g=n("./src/framework/design-system/util/style/responsiveStyles.ts"),b=n("./src/framework/style/index.ts"),v=function(e){var t=e.name,n=e.scale,r=e.clamp,v=e.cropMargins,E=Object(b.useTheme)().newFonts[t],y={fontFamily:E.family,fontWeight:E.weight},O=Object(h.a)({fontConfig:E,scale:n}),x=Object(g.c)((function(e){var t=o()(e,1)[0];return E.lineHeight[t]}),n),_=[y,O,r?Object(p.a)({clamp:r,lineHeight:x}):void 0,v?Object(f.a)({fontConfig:E,scale:n}):void 0];switch(e.name){case"body":_.push(a.a);break;case"detail":_.push(Object(i.b)(e.color));break;case"heading":_.push(c.b);break;case"marketing":_.push(s.b);break;case"overline":_.push(Object(l.b)(e.color));break;case"pullQuote":_.push(u.b);break;case"subtitle":_.push(Object(d.b)(e.color));break;case"title":_.push(m.b)}return _}},"./src/framework/design-system/typedefs/responsiveStyles.ts":function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.xs="xs",e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(r||(r={}))},"./src/framework/design-system/util/events.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(e,t){t.target===t.currentTarget&&e(t)},o=function(e,t){27===t.keyCode&&e(t)}},"./src/framework/design-system/util/fonts.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return h}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(c),l=function(){function e(t){var n=this,r=t.family,a=t.style,i=t.weight,c=t.metrics,l=t.lineHeightToFontSize,u=t.fontSizeToLetterSpacing,d=void 0===u?function(){return 0}:u;o()(this,e),s()(this,"family",void 0),s()(this,"style",void 0),s()(this,"weight",void 0),s()(this,"metrics",void 0),s()(this,"lineHeightToFontSize",void 0),s()(this,"fontSizeToLetterSpacing",void 0),this.family=r,this.style=a,this.weight=i,this.metrics=c,this.lineHeightToFontSize=l||function(e){return e/(n.ascender()-n.descender())},this.fontSizeToLetterSpacing=d}return i()(e,[{key:"xHeight",value:function(){var e=this.metrics,t=e.xHeight;return t/e.unitsPerEm}},{key:"capHeight",value:function(){var e=this.metrics,t=e.capHeight;return t/e.unitsPerEm}},{key:"ascender",value:function(){var e=this.metrics,t=e.ascender;return t/e.unitsPerEm}},{key:"descender",value:function(){var e=this.metrics,t=e.descender;return t/e.unitsPerEm}}]),e}();function u(e){var t=e.initialRatio,n=e.finalRatio,r=e.lowerBound,o=e.upperBound,a=e.easing,i=void 0===a?function(e){return e}:a;return function(e){var a=i(Math.min(1,Math.max(0,e-r)/(o-r)));return e*(t+(n-t)*a)}}var d=n("./src/styles/font.ts"),m=new l({family:d.o,weight:500,style:"normal",metrics:{unitsPerEm:1e3,xHeight:453,capHeight:625,ascender:900,descender:-300}}),p=new l({family:d.e,weight:600,style:"normal",metrics:{unitsPerEm:1e3,xHeight:453,capHeight:625,ascender:900,descender:-300},lineHeightToFontSize:u({initialRatio:.9,finalRatio:1,lowerBound:32,upperBound:128}),fontSizeToLetterSpacing:function(e){return Math.min(-1*(e-14)/24,0)}}),f=new l({family:d.e,weight:400,style:"normal",metrics:{unitsPerEm:1e3,xHeight:453,capHeight:625,ascender:900,descender:-300},lineHeightToFontSize:u({initialRatio:.79,finalRatio:.85,lowerBound:28,upperBound:96})}),h=new l({family:d.p,weight:500,style:"normal",metrics:{unitsPerEm:1e3,xHeight:453,capHeight:625,ascender:900,descender:-300}})},"./src/framework/design-system/util/style/converters.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var r=n("./node_modules/lodash/round.js"),o=n.n(r),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"".concat(o()(e,t),"px")},i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=(e.grid.columnWidth+e.grid.gutterWidth)*t-e.grid.gutterWidth;return n&&(r+=2*e.grid.gutterWidth),r}},"./src/framework/design-system/util/style/responsiveStyles.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return E})),n.d(t,"c",(function(){return O})),n.d(t,"a",(function(){return x}));var r=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),i=n.n(a),c=n("./node_modules/lodash/set.js"),s=n.n(c),l=n("./node_modules/lodash/isPlainObject.js"),u=n.n(l),d=n("./node_modules/lodash/isArray.js"),m=n.n(d),p=n("./src/framework/design-system/typedefs/responsiveStyles.ts"),f=n("./src/styles/newBreakpoints.ts"),h=[p.a.xs,p.a.sm,p.a.md,p.a.lg,p.a.xl],g=function(e){return!!p.a[e]},b=function(e){return u()(e)},v=function(e){if(!b(e))return!1;var t=Object.keys(e);return t.length===h.length&&t.every(g)},E=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return v(n)?Object.entries(n).reduce((function(e,n){var r=i()(n,2),c=r[0],l=r[1];return s()(e,[f[c](t)].concat(o()(a)),l)}),r):Object.entries(n).reduce((function(n,r){var c=i()(r,2),l=c[0],u=c[1];return!b(u)||m()(u)?s()(n,[].concat(o()(a),[l]),u):e(t,u,n,[].concat(o()(a),[l]))}),r)},y=function(e){return e.every((function(e){return!v(e)}))},O=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(y(n)){var o=n;return e(o)}var a={};return h.forEach((function(t){var r=n.map((function(e){return v(e)?e[t]:e}));a[t]=e(r)})),a},x=function(e){return Object.entries(e).reduce((function(e,t){var n=i()(t,2),r=n[0],o=n[1];return Object.entries(o).reduce((function(e,t){var n=i()(t,2),o=n[0],a=n[1];return e[o]||(e[o]={}),e[o][r]=a,e}),e)}),{})}},"./src/framework/design-system/util/type/headingSizeRule.ts":function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n("./node_modules/lodash/assign.js"),o=n.n(r),a=n("./src/framework/design-system/components/Body.tsx"),i=n("./src/framework/design-system/util/fonts.ts"),c=n("./src/framework/design-system/util/type/toRule.ts"),s=function(e,t,n){return Object(c.a)((function(r){return{font:t(r),lineHeight:"h1"===e?Object(a.a)(r)+r.grid.yStep*("LARGE"===r.scale.ui?5:4):"h2"===e?Object(a.a)(r)+2*r.grid.yStep:"h3"===e?Object(a.a)(r)+r.grid.yStep:Object(a.a)(r),clamp:n,display:"block"}}))},l=function(e){var t=i.d,n={fontFamily:t.family,fontWeight:t.weight,fontStyle:t.style};return o()(n,function(e){switch(e){case"h1":return{fontSize:"52px",lineHeight:"60px",letterSpacing:"0em"};case"h2":return{fontSize:"42px",lineHeight:"48px",letterSpacing:"0em"};case"h3":return{fontSize:"32px",lineHeight:"36px",letterSpacing:"0em"};case"h4":default:return{fontSize:"24px",lineHeight:"28px",letterSpacing:"0em"}}}(e))},u=function(e){var t=i.a,n={fontFamily:t.family,fontWeight:t.weight,fontStyle:t.style};return o()(n,function(e){switch(e){case"h1":return{fontSize:"56px",lineHeight:"64px",letterSpacing:"0em"};case"h2":return{fontSize:"44px",lineHeight:"49px",letterSpacing:"0em"};case"h3":return{fontSize:"32px",lineHeight:"36px",letterSpacing:"0em"};case"h4":default:return{fontSize:"24px",lineHeight:"32px",letterSpacing:"0em"}}}(e))}},"./src/framework/design-system/util/type/toRule.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/lodash/round.js"),i=n.n(a),c=n("./src/framework/design-system/type/createClampRule.ts");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){return function(t){var n=e(t),r=n.clamp,a=n.breakWord,l=n.font,u=n.display,d=function(e,t){var n=t.lineHeight,r=t.fontSize,o=t.letterSpacing;return{lineHeight:n,fontSize:r=void 0===r?e.lineHeightToFontSize(n):r,letterSpacing:o=void 0===o?e.fontSizeToLetterSpacing(r):o}}(l,n),m=d.lineHeight,p=d.fontSize,f=d.letterSpacing,h=r?Object(c.a)({clamp:r,lineHeight:m})(t):{},g={};return a&&(g={wordBreak:"break-word",overflowWrap:"break-word"}),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({fontFamily:l.family,fontWeight:l.weight,fontStyle:l.style,lineHeight:"".concat(i()(m,2),"px"),fontSize:"".concat(i()(p,2),"px"),letterSpacing:"".concat(i()(f,2),"px")},u&&{display:u},{},h,{},g)}}},"./src/framework/error/Boundary.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),s=n.n(c),l=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),u=n.n(l),d=n("./node_modules/@babel/runtime/helpers/inherits.js"),m=n.n(d),p=n("./node_modules/@sentry/minimal/esm/index.js"),f=n("./node_modules/react/index.js"),h=function(e){function t(e){var n;return o()(this,t),(n=s()(this,u()(t).call(this,e))).state={caughtError:!1},n}return m()(t,e),i()(t,[{key:"componentDidCatch",value:function(e,t){var n=t.componentStack,r=this.props.reporter;this.setState({caughtError:!0}),r.report(e,{via:"componentDidCatch",componentStack:n}),p.c((function(t){t.setExtra("componentStack",n),t.setLevel("error"),p.a(e)}))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.whenError;return this.state.caughtError?n:t}}]),t}(f.Component)},"./src/framework/error/Reporter.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(c),l=n("./node_modules/isomorphic-fetch/fetch-npm-browserify.js"),u=n.n(l),d=n("./src/util/routes.ts");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=50,h=10,g=function(){function e(t){var n=t.userId,r=t.authDomain;o()(this,e),s()(this,"userId",void 0),s()(this,"authDomain",void 0),s()(this,"_queue",void 0),s()(this,"_reported",void 0),s()(this,"_timeout",void 0),this.userId=n,this.authDomain=r,this._queue=[],this._reported=0}return i()(e,[{key:"report",value:function(e,t){var n=this;this._queue.length>=h||this._reported>=f||(this._queue.push({name:e.name,message:e.message,stack:e.stack,timestamp:Date.now(),fileName:e.fileName,lineNumber:e.lineNumber,extra:p({client:"lite",build:window.__BUILD_ID__,userId:this.userId,userAgent:navigator.userAgent,location:window.location.href},t)}),void 0===this._timeout&&(this._timeout=setTimeout((function(){return n._send()}),5e3)))}},{key:"_send",value:function(){delete this._timeout;var e="".concat(this.authDomain||"").concat(Object(d.O)());u()(e,{credentials:"same-origin",method:"POST",headers:{"content-type":"application/json","x-xsrf-token":"1"},body:JSON.stringify(this._queue)}),this._reported+=this._queue.length,this._queue=[]}}]),e}()},"./src/framework/error/Screen.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n("./node_modules/react/index.js"),o=n("./src/svg/logo-wordmark-138x27px.svg"),a=["medium-content-sans-serif-font",'"Lucida Grande"','"Lucida Sans Unicode"','"Lucida Sans"',"Geneva","Arial","sans-serif"].join(", "),i={layout:{display:"flex",flexDirection:"column",height:"100vh"},header:{paddingTop:"20px"},logo:{display:"block",width:"138px",height:"27px",margin:"auto"},container:{display:"flex",flex:"1",justifyContent:"center",alignItems:"center"},main:{boxSizing:"border-box",paddingBottom:"20px",paddingLeft:"24px",paddingRight:"24px"},heading:{fontFamily:a,fontSize:"44px",lineHeight:1.1,marginBottom:"0.3em"},paragraph:{fontFamily:a,fontSize:"22px",lineHeight:1.25,marginBottom:"0.3em"}},c=function(e){var t=e.children;return r.createElement("div",{style:i.layout},t)},s=function(e){var t=e.children;return r.createElement("header",{style:i.header},t)},l=function(){return r.createElement("a",{href:"/"},r.createElement(o.a,{style:i.logo}))},u=function(e){var t=e.children;return r.createElement("div",{style:i.container},t)},d=function(e){var t=e.children;return r.createElement("main",{style:i.main},t)},m=function(e){var t=e.children;return r.createElement("h1",{style:i.heading},t)},p=function(e){var t=e.children;return r.createElement("p",{style:i.paragraph},t)};function f(){return r.createElement(c,null,r.createElement(s,null,r.createElement(l,null)),r.createElement(u,null,r.createElement(d,null,r.createElement(m,null,"Error"),r.createElement(p,null,"We’re sorry, but there was a problem displaying this page."),r.createElement(p,null,"Please reload and try again."))))}},"./src/framework/error/globalHandler.ts":function(e,t,n){"use strict";function r(e){return function(t,n,r,o,a){if(null!=a)e.report(a,{via:"window.onerror"});else{var i=String(n).split(/[/\\]/).pop();e.report({message:"string"==typeof t?t:t.type,fileName:i,lineNumber:r})}}}n.d(t,"a",(function(){return r}))},"./src/framework/reporter/ReporterContext.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n("./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=function(e,t){var n;if(!e)throw void 0===t?n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(n=new Error(t)).name="Invariant Violation",n.framesToPop=1,n};var c=a.createContext(null),s=function(e){return a.createElement(c.Provider,{value:e.reporter},e.children)},l=function(e){return function(t){return a.createElement(c.Consumer,null,(function(n){return a.createElement(e,o()({},t,{reporter:n}),t.children)}))}},u=function(){var e=a.useContext(c);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.valueName;i(!!e,"Expected ".concat(null!=n?n:"value"," not to be null"))}(e,{valueName:"reporter"}),e}},"./src/framework/reporter/index.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return p.a})),n.d(t,"d",(function(){return p.c})),n.d(t,"c",(function(){return p.b})),n.d(t,"a",(function(){return P}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(c),l=n("./node_modules/isomorphic-fetch/fetch-npm-browserify.js"),u=n.n(l),d=function(){return Date.now().toString(36)+Math.round(1e16*Math.random()).toString(36)},m=n("./src/util/routes.ts");var p=n("./src/framework/reporter/ReporterContext.tsx"),f=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),h=n.n(f),g=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),b=n.n(g),v=n("./node_modules/@babel/runtime/helpers/inherits.js"),E=n.n(v),y=n("./node_modules/@babel/runtime/regenerator/index.js"),O=n.n(y),x=n("./src/util/LocalStorage.ts"),_=n("./src/util/constants.ts");function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=function(){function e(t){var n=this,r=t.authDomain,a=t.options;o()(this,e),s()(this,"options",void 0),s()(this,"fetchPromise",void 0),s()(this,"localStorage",void 0),s()(this,"sending",!1),s()(this,"url",void 0),this.options=a,this.localStorage=new x.a(this.getPrefix()),this.url="".concat(r||"").concat(this.getPathname()),window.addEventListener("beforeunload",(function(){n.flush()}))}return i()(e,[{key:"send",value:function(t){var n,r=this;return O.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:if(t.data=S({},t.data,{},this.getCommonData()),n=d(),this.localStorage.set(n,S({},t,{},this.getCommonStorageData(n))),!this.sending){o.next=6;break}return o.next=6,O.a.awrap(this.fetchPromise);case 6:return this.fetchPromise||(this.fetchPromise=new Promise((function(t){return setTimeout((function(){return r.sendNow().then(t)}),e.sendRate)}))),o.abrupt("return",this.fetchPromise);case 8:case"end":return o.stop()}}),null,this)}},{key:"flush",value:function(){return this.sendNow({beforeUnload:!0})}},{key:"sendNow",value:function(){var e,t,n,r,o=this,a=arguments;return O.a.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(e=a.length>0&&void 0!==a[0]?a[0]:{beforeUnload:!1},t=e.beforeUnload,n=this.localStorage.getItems(),r=Object.values(n)){i.next=5;break}return i.abrupt("return",Promise.resolve());case 5:return this.sending=!0,i.abrupt("return",u()(this.url,S({credentials:"same-origin",method:"POST",headers:{"x-xsrf-token":"1","content-type":"application/json"},body:JSON.stringify(r)},t?{mode:"same-origin",keepalive:!0}:{})).then((function(e){e.ok&&Object.keys(n).forEach((function(e){return o.localStorage.remove(e)})),delete o.fetchPromise,o.sending=!1})));case 7:case"end":return i.stop()}}),null,this)}}]),e}();s()(j,"sendRate",5*_.d);var P=function(e){function t(){return o()(this,t),h()(this,b()(t).apply(this,arguments))}return E()(t,e),i()(t,[{key:"event",value:function(e,t){return this.send({key:e,data:t,type:"e"})}},{key:"getPathname",value:function(){return Object(m.l)()}},{key:"getPrefix",value:function(){return"EventReporter"}},{key:"getCommonData",value:function(){var e,t,n,r=this.options.reduxStore.getState().navigation,o=r.referrer,a=r.referrerSource;return{userId:this.options.userId,service:"lite",location:null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.href,browserWidth:null===(n=window)||void 0===n?void 0:n.innerWidth,referrer:o&&encodeURI(o),referrerSource:a}}},{key:"getCommonStorageData",value:function(e){return{timestamp:Date.now(),eventId:e,userId:this.options.userId}}}]),t}(j);n("./src/framework/reporter/performance.tsx")},"./src/framework/reporter/performance.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return O}));n("./node_modules/@babel/runtime/helpers/extends.js");var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(c),l=n("./node_modules/isomorphic-fetch/fetch-npm-browserify.js"),u=n.n(l),d=n("./node_modules/opentracing/lib/index.js"),m=n("./node_modules/react/index.js"),p=n("./src/log/index.ts"),f=n("./src/util/routes.ts");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=m.createContext(null),v=function(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var o=r[n],a=e[o];null!=a&&(t[o]=a.duration)}return t},E=function(){function e(t){var n=t.host,r=t.version;o()(this,e),s()(this,"baseURL",void 0),s()(this,"version",void 0),s()(this,"parentSpan",void 0),this.baseURL=n?"".concat(window.location.protocol,"//").concat(n):"",this.version=r,this.parentSpan=null}return i()(e,[{key:"reportRender",value:function(e,t){this._send("render",g({},e,{version:this.version,service:"lite",metrics:v(t)}))}},{key:"reportInput",value:function(e,t){this._send("input",g({},e,{version:this.version,service:"lite",metrics:v({first:t})}))}},{key:"reportFirstContentfulPaint",value:function(e,t){this._send("fcp",g({},e,{version:this.version,service:"lite",metrics:v({fcp:t})}))}},{key:"reportLargestContentfulPaint",value:function(e,t){this._send("lcp",g({},e,{version:this.version,service:"lite",metrics:v({lcp:t})}))}},{key:"reportClientNav",value:function(e,t){this._send("client-nav",g({},e,{version:this.version,service:"lite",metrics:v({nav:t})}))}},{key:"reportUnsupportedPerfObserver",value:function(e){this._send("unsupported",g({},e,{version:this.version,service:"lite",metrics:{}}))}},{key:"reportClientReady",value:function(e,t){this._send("client-ready",g({},e,{version:this.version,service:"lite",metrics:v(t)}))}},{key:"setParentSpan",value:function(e){this.parentSpan=e}},{key:"_send",value:function(e,t){var n,r={tags:s()({report:e,"component.version":t.version,"req.route_name":null!==(n=t.route)&&void 0!==n?n:"unknown"},d.Tags.SPAN_KIND,d.Tags.SPAN_KIND_RPC_CLIENT)};null!=this.parentSpan&&(r.childOf=this.parentSpan);var o=Object(d.globalTracer)().startSpan("client.performance.report",r),a="".concat(this.baseURL).concat(Object(f.pb)(e));u()(a,{credentials:"same-origin",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(e){o.setTag(d.Tags.HTTP_STATUS_CODE,e.status),200!==e.status&&o.setTag(d.Tags.ERROR,"true"),o.finish()})).catch((function(e){p.a.warn({err:e},"Error submitting performance report"),o.setTag(d.Tags.ERROR,"true"),o.log({error:String(e)}),o.finish()}))}}]),e}(),y=function(e){return m.createElement(b.Provider,{value:e.reporter},e.children)},O=function(){return m.useContext(b)}},"./src/framework/source/SourceContext.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"f",(function(){return b})),n.d(t,"e",(function(){return v})),n.d(t,"g",(function(){return E})),n.d(t,"h",(function(){return y}));n("./node_modules/@babel/runtime/helpers/extends.js");var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),i=n.n(a),c=n("./node_modules/lodash/forIn.js"),s=n.n(c),l=n("./node_modules/react/index.js");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var d={NONE:1,FEATURED_STORIES:20,FEATURED_WRITER:21,MOST_POPULAR_STORIES_IN_TOPIC:23,READ_NEXT_SIDEBAR:25},m={name:1,userId:2,dimension:4,postId:6,index:10,postFeedReason:11,topicId:21,susiEntry:27,sectionType:28};function p(e){var t=[];return s()(m,(function(n,r){var o=e[r];null!=o&&(o=o.toString().replace(/-/g,"_")),t[n-1]=o})),t.join("-")}function f(e){var t=e.split("-");return Object.entries(m).reduce((function(e,n){var r=i()(n,2),o=r[0],a=r[1],c=t[Number(a)-1];return c&&(e[o]=function(e,t){switch(t){case"index":case"sectionType":return Number(e);default:return e}}(c,o)),e}),{})}var h=l.createContext(null),g=function(e){var t=e.source,n=e.extendSource,r=void 0!==n&&n,a=e.children,i=b();return r&&i&&(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},i,{},t)),l.createElement(h.Provider,{value:t},a)},b=function(){return l.useContext(h)},v=function(){var e=l.useContext(h);return e?p(e):""},E=function(){var e=l.useContext(h);return e&&e.name?e.name:""},y=function(){var e=l.useContext(h);return e&&e.susiEntry}},"./src/framework/source/index.ts":function(e,t,n){"use strict";var r=n("./src/framework/source/SourceContext.tsx");n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b})),n.d(t,"e",(function(){return r.f})),n.d(t,"d",(function(){return r.e})),n.d(t,"f",(function(){return r.g})),n.d(t,"g",(function(){return r.h})),n.d(t,"c",(function(){return r.d}))},"./src/framework/style/components/ThemeContext.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("./node_modules/react/index.js"),o=n("./src/styles/theme.ts"),a=r.createContext(o.a)},"./src/framework/style/components/ThemeProvider.tsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n("./src/framework/style/components/ThemeContext.tsx");t.a=function(e){var t=e.theme,n=e.children;return r.createElement(o.a.Provider,{value:t},n)}},"./src/framework/style/components/WithCx.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./src/framework/style/index.ts");function o(e){return(0,e.children)(Object(r.useCx)())}},"./src/framework/style/components/WithKeyframes.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./src/framework/style/index.ts");function o(e){var t=e.children,n=e.keyframes;return t(Object(r.useKeyframes)(n))}},"./src/framework/style/components/WithTheme.ts":function(e,t,n){"use strict";var r=n("./src/framework/style/components/ThemeContext.tsx").a.Consumer;t.a=r},"./src/framework/style/index.ts":function(e,t,n){"use strict";var r=n("./src/framework/style/useCx.ts");n.d(t,"useCx",(function(){return r.a}));var o=n("./src/framework/style/useKeyframes.ts");n.d(t,"useKeyframes",(function(){return o.a}));var a=n("./src/framework/style/useTheme.tsx");n.d(t,"useTheme",(function(){return a.a}));n("./src/framework/style/components/ThemeContext.tsx");var i=n("./src/framework/style/components/ThemeProvider.tsx");n.d(t,"ThemeProvider",(function(){return i.a}));var c=n("./src/framework/style/components/WithCx.tsx");n.d(t,"WithCx",(function(){return c.a}));var s=n("./src/framework/style/components/WithKeyframes.tsx");n.d(t,"WithKeyframes",(function(){return s.a}));var l=n("./src/framework/style/components/WithTheme.ts");n.d(t,"WithTheme",(function(){return l.a}));n("./src/framework/style/typedefs.ts")},"./src/framework/style/typedefs.ts":function(e,t){},"./src/framework/style/useCx.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("./src/components/style/useRenderer.tsx"),o=n("./src/framework/style/index.ts"),a=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),i=n.n(a),c=n("./node_modules/lodash/flattenDeep.js"),s=n.n(c),l=n("./node_modules/fela/es/index.js"),u=n("./src/framework/design-system/util/style/responsiveStyles.ts"),d=function(){var e=Object(o.useTheme)();return function(e,t){return function(n){var r=s()([n]).filter((function(e){return!!e})).map((function(e){return function(){return Object(u.d)(t,"function"==typeof e?e(t):e)}})),o=l.a.apply(void 0,i()(r));return e.renderRule(o,t)}}(Object(r.a)(),e)}},"./src/framework/style/useKeyframes.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/lodash/mapValues.js"),o=n.n(r),a=n("./src/components/style/useRenderer.tsx"),i=n("./src/framework/style/index.ts");function c(e){var t=Object(i.useTheme)(),n=Object(a.a)();return o()(e,(function(e){var r="function"==typeof e?e:function(){return e};return n.renderKeyframe(r,t)}))}},"./src/framework/style/useTheme.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/style/components/ThemeContext.tsx"),a=function(){return r.useContext(o.a)}},"./src/framework/track/DomMonitor.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return E}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/createClass.js"),s=n.n(c),l=n("./node_modules/lodash/throttle.js"),u=n.n(l),d=n("./node_modules/lodash/debounce.js"),m=n.n(d),p=n("./node_modules/exenv/index.js"),f=n.n(p),h=n("./node_modules/mitt/dist/mitt.es.js"),g=function(){function e(){i()(this,e)}return s()(e,[{key:"on",value:function(){}},{key:"off",value:function(){}}]),e}(),b=function(){function e(t){var n=this;i()(this,e),o()(this,"_emitter",void 0),o()(this,"_onScrollEnd",void 0),o()(this,"_onScrollThrottled",void 0),o()(this,"_onResizeThrottled",void 0),o()(this,"_lastKnownPageYOffset",void 0),o()(this,"singularEventsFired",{load:!1}),o()(this,"ref",void 0),this.ref=t||window,this._emitter=new h.a,this._onScrollEnd=m()((function(){n._emitter.emit("scroll_end")}),100),this._onScrollThrottled=u()((function(){n._emitter.emit("scroll_throttled")}),100),this._onResizeThrottled=u()((function(){n._emitter.emit("resize_throttled")}),100),this.ref.addEventListener("load",this._onLoad.bind(this)),this.ref.addEventListener("scroll",this._onScroll.bind(this)),this.ref.addEventListener("resize",this._onResize.bind(this),{passive:!0})}return s()(e,[{key:"on",value:function(e,t){this.singularEventsFired[e]?t():this._emitter.on(e,t)}},{key:"off",value:function(e,t){this._emitter.off(e,t)}},{key:"_onLoad",value:function(){this.singularEventsFired.load||(this._emitter.emit("load"),this.singularEventsFired.load=!0)}},{key:"_onScroll",value:function(){this._emitter.emit("scroll"),this._onScrollThrottled(),this._onScrollEnd();var e=this.ref instanceof Window?this.ref.pageYOffset:this.ref.scrollTop;"number"==typeof this._lastKnownPageYOffset&&(this._lastKnownPageYOffset>e?this._emitter.emit("scroll_up"):this._emitter.emit("scroll_down")),this._lastKnownPageYOffset=e}},{key:"_onResize",value:function(){this._emitter.emit("resize"),this._onResizeThrottled()}}]),e}(),v=f.a.canUseDOM?function(e){return new b(e)}:function(){return new g},E=v()},"./src/framework/track/IntersectionObserver.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=function(e,t){var n=e.onIntersect,r=e.root,i=e.disconnect,c=e.target,s=e.threshold,l=e.rootMargin;a.useEffect((function(){if((!i||!i())&&c.current){var e={root:r?r.current:null,rootMargin:l,threshold:s},t=new IntersectionObserver((function(e){n(e[0])}),e);return t.observe(c.current),function(){t.disconnect()}}}),[].concat(o()(t),[r,s,l]))}},"./src/framework/track/PostPresentationTracker.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return h}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),i=n.n(a),c=n("./node_modules/react/index.js"),s=n("./src/framework/reporter/ReporterContext.tsx"),l=n("./src/framework/source/index.ts"),u=n("./src/framework/style/index.ts"),d=n("./src/framework/track/PresentationTracker.tsx");function m(){var e=o()(["\n  fragment PostPresentationTracker_post on Post {\n    id\n    visibility\n    previewContent {\n      isFullContent\n    }\n    collection {\n      id\n    }\n  }\n"]);return m=function(){return e},e}var p={width:"100%",height:"100%"};function f(e){var t=e.post,n=e.presentationContext,r=e.suppressEvents,o=e.children,a=e.isDisplayingFullPost,i=Object(u.useCx)(),m=Object(s.b)(),f=Object(l.d)(),h=c.useCallback((function(){if(t&&!r){var e,o=t.visibility,i=t.previewContent,c=t.collection,s=null!==a?a:i&&i.isFullContent;switch(o){case"PUBLIC":e=0;break;case"UNLISTED":e=1;break;case"LOCKED":e=2}m.event("post.clientPresented",{postId:t.id,source:f,collectionId:c?c.id:null,isFullPost:s,postVisibility:e,context:"POST_PREVIEW"!==n?n.toLowerCase():null})}}),[t,r,n]),g=Object(d.a)({onPresentedFn:h});return c.createElement("div",{className:i(p),ref:g},o)}var h=i()(m())},"./src/framework/track/PresentationTracker.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./src/framework/track/IntersectionObserver.tsx"),c=function(e){var t=e.onPresentedFn,n=a.useState(!1),r=o()(n,2),c=r[0],s=r[1],l=a.useRef(null),u=a.useCallback((function(e){!c&&e.isIntersecting&&(s(!0),t())}),[t,c]);return Object(i.a)({onIntersect:u,target:l,disconnect:function(){return c},threshold:.25},[c,u]),l}},"./src/framework/track/UpsellPresentationTracker.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./src/framework/reporter/ReporterContext.tsx"),c=n("./src/framework/source/index.ts"),s=n("./src/framework/track/PresentationTracker.tsx");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){return e&&function(e){if(!e)return!1;if(e.name&&"upgrade_membership"!==e.name&&"gift_membership"!==e.name)throw new Error("Unstandardized upsell source, source_name: ".concat(e.name));if(!e.dimension)throw new Error("Upsell source without source location.");return!0}(e)?{dimension:null==e?void 0:e.dimension,locationId:null==e?void 0:e.dimension}:{}}function d(e){var t=e.children,n=e.eventData,r=void 0===n?{}:n,d=e.tag,m=void 0===d?"div":d,p=Object(i.b)(),f=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{},u(Object(c.e)())),h=Object(s.a)({onPresentedFn:function(){return p.event("upsell.viewed",f)}});return a.createElement(m,{ref:h},t)}},"./src/framework/track/index.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r.a})),n.d(t,"h",(function(){return h})),n.d(t,"e",(function(){return g})),n.d(t,"g",(function(){return w})),n.d(t,"d",(function(){return S})),n.d(t,"f",(function(){return j.a})),n.d(t,"b",(function(){return P.b})),n.d(t,"c",(function(){return P.a}));var r=n("./src/framework/track/DomMonitor.ts"),o=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),a=n.n(o),i=n("./node_modules/lodash/throttle.js"),c=n.n(i),s=n("./node_modules/graphql-tag/src/index.js"),l=n.n(s),u=n("./node_modules/react/index.js"),d=n("./src/framework/reporter/ReporterContext.tsx"),m=n("./src/framework/source/index.ts"),p=n("./src/util/dom.ts");function f(){var e=a()(["\n  fragment PostScrollTracker_post on Post {\n    id\n    collection {\n      id\n    }\n    sequence {\n      sequenceId\n    }\n  }\n"]);return f=function(){return e},e}function h(e,t){var n=Object(d.b)(),o=Object(m.f)(),a=null,i=null,s=u.useCallback(c()((function(){if(e.current){var r=Object(p.a)(e.current);if(Object(p.g)(r)){var c=Date.now(),s=Object(p.d)(r),l=Object(p.c)(),u=Object(p.e)(),d=Math.round(s.top),m=Math.round(s.top+s.height),f=l.top,h=l.top+u.height,g=l.height;n.event("post.streamScrolled",{postIds:[t.id],collectionIds:[t.collection?t.collection.id:""],sequenceIds:[t.sequence?t.sequence.sequenceId:""],sources:[o],tops:[d],bottoms:[m],areFullPosts:[!0],loggedAt:c,timeDiff:null!==i?Math.round(c-i):0,scrollTop:f,scrollBottom:h,scrollableHeight:g,viewStartedAt:a}),i=c}}}),1e3),[t]);u.useEffect((function(){return a=Date.now(),s(),r.a.on("scroll_end",s),function(){r.a.off("scroll_end",s)}}),[s])}var g=l()(f()),b=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),v=n.n(b),E=n("./node_modules/react-redux/es/index.js"),y=n("./src/components/post/helpers/loggedOutHistory.ts"),O=n("./src/framework/reporter/index.ts"),x=n("./src/store/actions/navigation.ts");function _(){var e=a()(["\n  fragment PostReadTracker_post on Post {\n    id\n    collection {\n      slug\n    }\n    sequence {\n      sequenceId\n    }\n  }\n"]);return _=function(){return e},e}function w(e,t,n){var o=Object(O.c)(),a=u.useState(!1),i=v()(a,2),c=i[0],s=i[1],l=Object(E.e)();u.useEffect((function(){if(!c){var a=function(){if(t.current&&!c){var r=Object(p.a)(t.current),a=Object(p.d)(r),i=a.top+a.height,u=Object(p.d)(Object(p.e)());u.top+u.height>=i-100&&(s(!0),l(Object(x.p)(!0)),o.event("post.clientRead",{postId:n.id,collectionSlug:n.collection?n.collection.slug:"",sequenceId:n.sequence?n.sequence.sequenceId:""}),e||Object(y.a)(n.id))}};return r.a.on("scroll_end",a),function(){r.a.off("scroll_end",a)}}}),[c,n]),u.useEffect((function(){return function(){l(Object(x.p)(!1))}}),[])}var S=l()(_()),j=n("./src/framework/track/IntersectionObserver.tsx"),P=n("./src/framework/track/PostPresentationTracker.tsx")},"./src/index.tsx":function(e,t,n){"use strict";n.r(t),function(e){var t=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),r=n.n(t),o=n("./node_modules/@sentry/browser/esm/sdk.js"),a=n("./node_modules/@sentry/minimal/esm/index.js"),i=n("./node_modules/react/index.js"),c=n("./node_modules/react-helmet-async/lib/index.module.js"),s=n("./node_modules/react-loadable/lib/index.js"),l=n.n(s),u=n("./node_modules/react-redux/es/index.js"),d=n("./node_modules/react-router-dom/esm/react-router-dom.js"),m=n("./node_modules/@hot-loader/react-dom/index.js"),p=n.n(m),f=n("./src/App.tsx"),h=n("./src/apollo/CustomApolloProvider.tsx"),g=n("./src/apollo/client.ts"),b=n("./src/apollo/createLightstepLink.ts"),v=n("./src/apollo/createRequestIdentificationLink.ts"),E=n("./src/components/style/FelaRendererProvider.tsx"),y=n("./src/components/style/createRenderer.ts"),O=n("./src/easter-eggs/ascii.ts"),x=n("./src/framework/error/Boundary.tsx"),_=n("./src/framework/error/Reporter.ts"),w=n("./src/framework/error/Screen.tsx"),S=n("./src/framework/error/globalHandler.ts"),j=n("./src/framework/reporter/index.ts"),P=n("./src/framework/reporter/performance.tsx"),C=n("./src/log/datapupLogger.ts"),k=n("./src/routes/RoutingContext.tsx"),T=n("./src/store/index.ts"),I=n("./src/util/performance.ts"),R=n("./src/store/initialClientState.ts");function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var L=function(){Object(O.a)();var t=Object(R.a)(),n=Object(T.a)(t),r=t.config.version,s=t.client.isCustomDomain,l=t.navigation.host,m=t.debug.originalSpanCarrier,I=Object(k.b)({isCustomDomain:s}),N=I.pathMatcher,L=window.__GRAPHQL_URI__;if(!L)throw new Error("Expected window.__GRAPHQL_URI__ to exist.");var D=window.__APOLLO_STATE__;if(!D)throw new Error("Expected window.__APOLLO_STATE__ to exist.");var U=Object(g.a)({uri:L,ssrMode:!1,state:D,transformLink:function(e){return e=Object(v.a)(r,N).concat(e),e=Object(b.a)(m).concat(e)},version:r}).client,M=Object(y.a)(),F=t.session.user.id,B=new j.a({options:{userId:F,reduxStore:n}}),H=new _.a({userId:F}),V=new P.b({host:l,version:r});window.onerror=Object(S.a)(H),o.a({beforeSend:function(e,t){var n=N.getMatch(window.location.pathname);return e.tags&&(e.tags.route=n?n.route.metricName:"unidentified"),e},dsn:t.config.sentry.dsn,environment:"".concat(t.config.sentry.environment,"-client"),release:t.config.version}),a.b((function(e){e.setUser({id:t.session.user.id}).setTag("version",r)})),C.a.init({beforeSend:function(t){var n=N.getMatch(window.location.pathname);return t.route=A({},t.route,{isCustomDomain:s,name:n?n.route.metricName:"unidentified"}),t.req=A({},t.req,{url:e.window.location.pathname+e.window.location.search}),t},config:{clientToken:"pub853ea8d17ad6821d9f8f11861d23dfed",datacenter:"us",forwardErrorsToLogs:!1},context:A({},t.config.datadog.context,{origin:"client",service:"lite",req:{authority:e.window.location.host,id:t.debug.requestId}})});var z;(z=p.a.hydrate,function(e){var t=document.getElementById("root");t&&z(i.createElement(x.a,{reporter:H,whenError:i.createElement(w.a,null)},i.createElement(j.b,{reporter:B},i.createElement(P.a,{reporter:V},i.createElement(E.a,{renderer:M},i.createElement(h.a,{client:U},i.createElement(u.a,{store:n},i.createElement(c.b,null,i.createElement(d.a,null,i.createElement(k.a.Provider,{value:I},i.createElement(e,null)))))))))),t)})(f.a)};window.main=function(){Object(I.e)(),l.a.preloadReady().then(L)}}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./src/log/datapupLogger.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r,o=n("./node_modules/@babel/runtime/regenerator/index.js"),a=n.n(o),i=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),c=n.n(i),s=n("./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(s),u=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),d=n.n(u),m=n("./node_modules/isomorphic-fetch/fetch-npm-browserify.js"),p=n.n(m);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(e){e.debug="debug",e.error="error",e.info="info",e.warn="warn"}(r||(r={}));var g=new(function(){function e(){c()(this,e),d()(this,"config",void 0),d()(this,"context",void 0),d()(this,"beforeSend",void 0),d()(this,"isInitialized",!1)}return l()(e,[{key:"init",value:function(e){var t=e.beforeSend,n=e.config,r=e.context;this.isInitialized=!0,this.config=n,this.context=r,this.beforeSend=t}},{key:"setGlobalContext",value:function(e){this.context=e}},{key:"log",value:function(e,t){var n,o,i,c,s,l=arguments;return a.a.async((function(a){for(;;)switch(a.prev=a.next){case 0:if(n=l.length>2&&void 0!==l[2]?l[2]:r.info,this.isInitialized){a.next=3;break}throw new Error("DatapupLogger has not yet been initialized.");case 3:return o=this.getUrl(),i=Object.assign({},this.context,t),this.beforeSend&&(i=null!==(c=this.beforeSend(i))&&void 0!==c?c:{}),s=JSON.stringify(h({},i,{ddsource:"lite",message:e,service:"lite",status:n})),a.abrupt("return",p()(o,{headers:{"Content-Type":"application/json"},method:"POST",body:s}));case 8:case"end":return a.stop()}}),null,this)}},{key:"getUrl",value:function(){var e,t;if(!(null===(e=this.config)||void 0===e?void 0:e.clientToken))throw new Error("Expected a config with a clientToken");if(!(null===(t=this.config)||void 0===t?void 0:t.datacenter))throw new Error("Expected a config with a datacenter");var n="us"===this.config.datacenter?"com":"eu";return"https://browser-http-intake.logs.datadoghq.".concat(n,"/v1/input/").concat(this.config.clientToken)}}]),e}())},"./src/log/index.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var i=function(e,t){return"string"==typeof e?{msg:e}:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{msg:t})},c={debug:function(e,t){console.debug(i(e,t))},info:function(e,t){console.log(i(e,t))},warn:function(e,t){console.warn(i(e,t))},error:function(e,t){console.error(i(e,t))}}},"./src/metadata/Favicon.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-helmet-async/lib/index.module.js"),a=n("./node_modules/react-redux/es/index.js"),i="https://cdn-static-1.medium.com/_/fp/icons/favicon-rebrand-dev.54LRTCXUTDayvTFg89Y4Jg.ico",c="https://cdn-static-1.medium.com/_/fp/icons/favicon-rebrand-hatch.32p0KZZCd4GflMcncXTXGA.ico",s="https://cdn-static-1.medium.com/_/fp/icons/favicon-rebrand-medium.3Y6xpZ-0FSdWDnPM3hSBIA.ico",l=function(){var e;switch(Object(a.f)((function(e){return e.config.favicon}))){case"development":e=i;break;case"staging":e=c;break;case"production":default:e=s}return r.createElement(o.a,null,r.createElement("link",{rel:"icon",href:e}))},u=n("./src/util/miroImage.ts"),d=function(e){var t=e.faviconImageId;if(!t)return r.createElement(l,null);var n=Object(u.d)({miroId:t,width:128,height:128,strategy:u.a.Crop});return r.createElement(o.a,null,r.createElement("link",{rel:"icon",href:n}))}},"./src/routes/RoutingContext.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return E})),n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return O}));var r=n("./node_modules/react/index.js"),o=n("./src/log/index.ts"),a=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/createClass.js"),s=n.n(c),l=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),u=n.n(l),d=function(){function e(){i()(this,e),u()(this,"_tree",void 0),this._tree={children:{}}}return s()(e,[{key:"add",value:function(e,t){var n=this._getPathParts(e),r=[],o=this._tree;if(n.forEach((function(e){if("@"===e[0]){var t=e.indexOf(":"),n=e.slice(1,t),a=e.slice(t+1);return o.children["@"]||(o.children["@"]={children:{}}),(o=o.children["@"]).children[n]||(o.children[n]={children:{},re:new RegExp(a)}),r.push(n),void(o=o.children[n])}var i=e;":"===e[0]&&(i=":",r.push(e.slice(1))),o.children[i]||(o.children[i]={children:{}}),o=o.children[i]})),o.routeMetadata){var a=o.routeMetadata.pathPattern;throw new Error("Can not register [".concat(e,"], path is ambiguous. [").concat(a,"] previously registered."))}o.routeMetadata={route:t,pathPattern:e,capturedNames:r}}},{key:"getMatch",value:function(e){var t=this._getPathParts(e);return this._getMatchRecursive(t,0,this._tree)}},{key:"_getMatchRecursive",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(t>=e.length){if(!n.routeMetadata)return;var o=n.routeMetadata,a=o.route,i=o.capturedNames;return{route:a,params:i.reduce((function(e,t,n){return e[t]=r[n],e}),{})}}var c=e[t];if(n.children[c]){var s=this._getMatchRecursive(e,t+1,n.children[c],r);if(s)return s}if(n.children["@"]){var l=n.children["@"];for(var u in l.children){var d=l.children[u];if(d.re&&d.re.test(c)){r.push(c);var m=this._getMatchRecursive(e,t+1,d,r);if(m)return m;r.pop()}}}if(n.children[":"]){r.push(c);var p=this._getMatchRecursive(e,t+1,n.children[":"],r);if(p)return p;r.pop()}}},{key:"_getPathParts",value:function(e){return e.replace(/\?.*$/,"").replace(/(^\/|\/$)/g,"").split("/").map((function(e){try{return decodeURIComponent(e)}catch(e){return""}}))}}]),e}();function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onCustomDomain,r=void 0!==n&&n,o=e.name,a=e.pathPattern,i=e.handler,c=e.metricName,s=e.service,l=void 0===s?"":s,u=e.serviceVariantFlag,d=void 0===u?"":u,m=e.customDomainServiceVariantFlag,f=void 0===m?"":m;return{name:o,service:l,handler:i,metricName:c||o,serviceVariantFlag:r?f:d,pathPattern:p(a,r)}}function p(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e;if(t&&e.startsWith("/{collectionSlug}")&&(n=n.replace(/^\/\{collectionSlug\}/,"")),(n=n.replace(/\/@\{([^}]+)\}/g,"/@$1:@.*").replace(/\{([^}]+)\}/g,":$1")).includes("{"))throw new Error("Could not format route: ".concat(e,"."));return n}var f=[{name:"ShowMediumAbout",pathPattern:"/about",handler:"AboutHandler",service:"lite",serviceVariantFlag:"enable_lite_about_page"},{name:"RedirectToTickpocalypse",pathPattern:"/ticks"},{name:"RedirectToTrump45",pathPattern:"/45"},{name:"RedirectToCointalk",pathPattern:"/cointalk"},{name:"RedirectToFutureHuman",pathPattern:"/futurehuman"},{name:"RedirectToGreatEscape",pathPattern:"/greatescape"},{name:"RedirectToGreatEscapePub",pathPattern:"/s/greatescape"},{name:"RedirectToUnrulybodies",pathPattern:"/unrulybodies"},{name:"RedirectToPlayback",pathPattern:"/playback"},{name:"RedirectToTrustIssues",pathPattern:"/trustissues"},{name:"RedirectToYouthNow",pathPattern:"/youthnow"},{name:"RedirectToPowerTrip",pathPattern:"/powertrip"},{name:"RedirectToTheNewNew",pathPattern:"/thenewnew"},{name:"RedirectToLoveHate",pathPattern:"/lovehate"},{name:"RedirectToReasonableDoubt",pathPattern:"/reasonabledoubt"},{name:"RedirectToFreakonomicsRadio",pathPattern:"/freakonomicsradio"},{name:"RedirectToHumanParts",pathPattern:"/s/human-parts"},{name:"RedirectToTimelineOfSounds",pathPattern:"/s/timeline-of-sounds"},{name:"RedirectToTeamHumanRushkoff",pathPattern:"/s/douglas-rushkoff"},{name:"RedirectToTeamHuman",pathPattern:"/s/teamhuman"},{name:"ShowHome",pathPattern:"/",handler:"LOHomepageHandler",service:"lite",serviceVariantFlag:"enable_lo_homepage"},{name:"ShowNewPost",pathPattern:"/new-story"},{name:"LegacyShowNewPost",pathPattern:"/p/new-post"},{name:"FetchResponses",pathPattern:"/p/{postId}/responses"},{name:"ShowStandaloneResponses",pathPattern:"/p/{postId}/responses/show"},{name:"ShowNewResponse",pathPattern:"/p/{inResponseToPostId}/responses/new"},{name:"FetchCollectionPermissions",pathPattern:"/{collectionSlug}/permissions"},{name:"ShowCollectionNewPost",pathPattern:"/{collectionSlug}/new-story"},{name:"ShowEditPost",pathPattern:"/p/{postId}/edit"},{name:"ShowRevertPost",pathPattern:"/p/{postId}/revert/{versionId}/{baseRev}"},{name:"FetchQuote",pathPattern:"/p/{postId}/quotes/{quoteId}"},{name:"FetchQuotes",pathPattern:"/p/{postId}/quotes"},{name:"GetPostDeltas",pathPattern:"/p/{postId}/deltas"},{name:"FetchNotes",pathPattern:"/p/{postId}/notes"},{name:"ShowCollectionEditPost",pathPattern:"/{collectionSlug}/{postId}/edit"},{name:"ShowUserEditPost",pathPattern:"/@{username}/{postId}/edit"},{name:"ShowShortformCollectionPostEditNew",pathPattern:"/{collectionSlug}/new-shortform",handler:"CollectionNewShortformEditorHandler",service:"lite",serviceVariantFlag:"enable_shortform"},{name:"ShowShortformCollectionPostEdit",pathPattern:"/{collectionSlug}/{postId}/edit-shortform",handler:"CollectionPostShortformEditorHandler",service:"lite",serviceVariantFlag:"enable_shortform"},{name:"ShowImportPost",pathPattern:"/p/import"},{name:"ShowCreateImportPost",pathPattern:"/p/import-story"},{name:"ShowPost",pathPattern:"/p/{postId}",handler:"PostHandler",service:"lite",serviceVariantFlag:"enable_lite_post",metricName:"post"},{name:"ShowPostUnderUser",pathPattern:"/@{username}/{postId}",handler:"PostHandler",service:"lite",serviceVariantFlag:"enable_lite_post",metricName:"post"},{name:"ShowPostUnderQuarantine",pathPattern:"/t/@{username}/{postId}"},{name:"ShowPostUnderCollection",pathPattern:"/{collectionSlug}/{postId}",onCustomDomain:!0,handler:"PostHandler",service:"lite",serviceVariantFlag:"enable_lite_post",customDomainServiceVariantFlag:"enable_lite_post_cd",metricName:"post"},{name:"ShowPostInfo",pathPattern:"/p/{postId}/info"},{name:"ShowPostInfoOrdered",pathPattern:"/p/{postId}/info/{order}/{filter}"},{name:"RedirectShowPostShare",pathPattern:"/p/{postId}/share/{channel}"},{name:"ShowProxyPostRedirect",pathPattern:"/posts/proxies/save"},{name:"ShowPostSettings",pathPattern:"/p/{postId}/settings",handler:"PostSettingsHandler",service:"lite",metricName:"post-settings"},{name:"ShowCollectionStyleEditor",pathPattern:"/{collectionSlug}/styles",handler:"CollectionStyleEditorHandler",service:"lite",serviceVariantFlag:"enable_theme_editor",metricName:"collection-style-editor"},{name:"FetchRecommendationsForPost",pathPattern:"/p/{postId}/upvotes"},{name:"ShowSearch",pathPattern:"/search"},{name:"ShowSearchUsers",pathPattern:"/search/users"},{name:"ShowSearchCollections",pathPattern:"/search/publications"},{name:"ShowSearchTags",pathPattern:"/search/tags"},{name:"ShowSearchPosts",pathPattern:"/search/posts"},{name:"ShowCollectionSearch",pathPattern:"/{collectionSlug}/search",onCustomDomain:!0},{name:"ShowNewCatalog",pathPattern:"/new-collection"},{name:"ShowEmailSettings",pathPattern:"/me/email-settings/{userId}/{hash}"},{name:"ShowYourCatalogs",pathPattern:"/me/collections"},{name:"ShowYourStoriesRedirect",pathPattern:"/me/stories",handler:"YourStoriesHandler",service:"lite",serviceVariantFlag:"enable_lite_stories",metricName:"stories"},{name:"ShowYourStories",pathPattern:"/me/stories/{filterBy}",handler:"YourStoriesHandler",service:"lite",serviceVariantFlag:"enable_lite_stories",metricName:"stories"},{name:"ShowUserCatalog",pathPattern:"/@{username}/collections/{catalogSlug}"},{name:"ShowUserCatalogs",pathPattern:"/@{username}/collections"},{name:"ShowEditUserCatalog",pathPattern:"/@{username}/collections/{catalogSlug}/edit"},{name:"ShowCatalog",pathPattern:"/collections/{catalogSlug}"},{name:"ShowCatalogHome",pathPattern:"/browse/{catalogSlug}"},{name:"ShowEditCatalog",pathPattern:"/collections/{catalogSlug}/edit"},{name:"TopStories",pathPattern:"/top-stories"},{name:"TopStoriesDate",pathPattern:"/top-stories/{monthDayYearSlug}"},{name:"ShowTop",pathPattern:"/browse/top"},{name:"ShowTopByDate",pathPattern:"/browse/top/{monthDayYearSlug}"},{name:"ShowFollows",pathPattern:"/me/following/{entityName}"},{name:"RedirectShowFollows",pathPattern:"/me/following"},{name:"ShowSeriesCreate",pathPattern:"/new-series"},{name:"ShowSeriesEdit",pathPattern:"/series/{postId}/edit"},{name:"ShowSeries",pathPattern:"/series/{postId}",handler:"SeriesHandler",service:"lite",metricName:"series"},{name:"RedirectShowYourSeries",pathPattern:"/me/series"},{name:"ShowYourSeries",pathPattern:"/me/series/{filterBy}"},{name:"ShowTagPostsLatest",pathPattern:"/tag/{tagSlug}/latest"},{name:"ShowTagPosts",pathPattern:"/tag/{tagSlug}"},{name:"ShowTopWritersInTag",pathPattern:"/tag/{tagSlug}/top-writers"},{name:"ShowTagArchive",pathPattern:"/tag/{tagSlug}/archive"},{name:"ShowTagYearlyArchive",pathPattern:"/tag/{tagSlug}/archive/{year}"},{name:"ShowTagMonthlyArchive",pathPattern:"/tag/{tagSlug}/archive/{year}/{month}"},{name:"ShowTagDailyArchive",pathPattern:"/tag/{tagSlug}/archive/{year}/{month}/{day}"},{name:"ShowAmpPostUnderCollection",pathPattern:"/{collectionSlug}/amp/p/{postId}",onCustomDomain:!0,handler:"AMPPostHandler",service:"lite"},{name:"ShowAmpPost",pathPattern:"/amp/p/{postId}",handler:"AMPPostHandler",service:"lite",metricName:"amp-post"},{name:"ShowStats",pathPattern:"/me/stats"},{name:"ShowStatsResponses",pathPattern:"/me/stats/responses"},{name:"ShowUserStats",pathPattern:"/@{username}/stats"},{name:"ShowUserStatsResponses",pathPattern:"/@{username}/stats/responses"},{name:"ShowStatsSeries",pathPattern:"/me/stats/series"},{name:"ShowUserStatsSeries",pathPattern:"/@{username}/stats/series"},{name:"ShowStatsPost",pathPattern:"/me/stats/post/{postId}",handler:"StatsPostHandler",service:"lite",metricName:"stats-post"},{name:"ShowOnboarding2",pathPattern:"/get-started"},{name:"ShowVerifyAccount",pathPattern:"/me/send-verify"},{name:"ShowUser",pathPattern:"/@{username}",handler:"UserProfileHandler",service:"lite",serviceVariantFlag:"enable_lite_profile",metricName:"profile"},{name:"ShowEditUserProfile",pathPattern:"/@{username}/edit"},{name:"ShowUserLatest",pathPattern:"/@{username}/latest",handler:"UserProfileHandler",service:"lite",serviceVariantFlag:"enable_lite_profile",metricName:"profile/latest"},{name:"ShowUserHasRecommended",pathPattern:"/@{username}/has-recommended",handler:"UserProfileHandler",service:"lite",serviceVariantFlag:"enable_lite_profile",metricName:"profile/claps"},{name:"ShowUserHighlights",pathPattern:"/@{username}/highlights",handler:"UserProfileHandler",service:"lite",serviceVariantFlag:"enable_lite_profile",metricName:"profile/highlights"},{name:"ShowUserSeries",pathPattern:"/@{username}/series",handler:"UserProfileHandler",service:"lite",serviceVariantFlag:"enable_lite_profile",metricName:"profile/series"},{name:"ShowUserFollowers",pathPattern:"/@{username}/followers"},{name:"ShowUserFollowing",pathPattern:"/@{username}/following"},{name:"ShowUserFilterByCollection",pathPattern:"/{collectionSlug}/@{username}",onCustomDomain:!0},{name:"ShowUserResponses",pathPattern:"/@{username}/responses",handler:"UserProfileHandler",service:"lite",serviceVariantFlag:"enable_lite_profile",metricName:"profile/responses"},{name:"ShowMemberBillingHistory",pathPattern:"/me/billing-history",handler:"BillingHistoryHandler",service:"lite",metricName:"billing-history"},{name:"RedirectToPayoutSetup",pathPattern:"/me/settings/payout/setup"},{name:"FinishPayoutSetup",pathPattern:"/me/settings/payout/stripe/finish"},{name:"RedirectToPayoutDashboard",pathPattern:"/me/settings/payout/dashboard"},{name:"RedirectToPartnerEnrollStep",pathPattern:"/me/partner/enroll"},{name:"ShowPartnerEnroll",pathPattern:"/me/partner/enroll/{step}"},{name:"ShowPartnerDashboard",pathPattern:"/me/partner/dashboard"},{name:"ShowPartnerTaxes",pathPattern:"/me/partner/taxes"},{name:"ShowUserPartnerDashboard",pathPattern:"/@{username}/partner/dashboard"},{name:"ShowPartnerProgramApplication",pathPattern:"/m/partner-program"},{name:"FetchExport",pathPattern:"/me/export/{exportId}"},{name:"ShowDebugCache",pathPattern:"/_/debug/lite/cache",handler:"DebugHandler",service:"lite",serviceVariantFlag:"enable_internal_cache_debug"},{name:"ShowDebugCachedPost",pathPattern:"/_/debug/lite/cache/p/{postId}",handler:"DebugCachedPostHandler",service:"lite",serviceVariantFlag:"enable_debug_cached_post"},{name:"ShowCollectionHome",pathPattern:"/{collectionSlug}",onCustomDomain:!0,handler:"CollectionHomepageHandler",service:"lite",serviceVariantFlag:"enable_lite_pub_homepage_for_selected_domains",customDomainServiceVariantFlag:"enable_lite_pub_homepage_for_selected_domains",metricName:"collection-homepage"},{name:"ShowCollectionMasthead",pathPattern:"/{collectionSlug}/about",onCustomDomain:!0},{name:"ShowEditCollectionMasthead",pathPattern:"/{collectionSlug}/settings/about"},{name:"ShowCollectionCreate",pathPattern:"/new-publication"},{name:"ShowCollectionEdit",pathPattern:"/{collectionSlug}/edit"},{name:"ShowCollectionSettings",pathPattern:"/{collectionSlug}/settings"},{name:"ShowCollectionNavigationSettings",pathPattern:"/{collectionSlug}/settings/navigation"},{name:"ShowCollectionLetters",pathPattern:"/{collectionSlug}/letters"},{name:"ShowCollectionLettersSettings",pathPattern:"/{collectionSlug}/settings/letters"},{name:"ShowCollectionLatest",pathPattern:"/{collectionSlug}/latest",onCustomDomain:!0},{name:"ShowCollectionTrending",pathPattern:"/{collectionSlug}/trending",onCustomDomain:!0},{name:"ShowCollectionTagged",pathPattern:"/{collectionSlug}/tagged/{tagSlug}",onCustomDomain:!0},{name:"ShowCollectionFeatured",pathPattern:"/{collectionSlug}/featured",onCustomDomain:!0},{name:"ShowCollectionArchive",pathPattern:"/{collectionSlug}/archive",onCustomDomain:!0},{name:"ShowCollectionYearlyArchive",pathPattern:"/{collectionSlug}/archive/{year}",onCustomDomain:!0},{name:"ShowCollectionMonthlyArchive",pathPattern:"/{collectionSlug}/archive/{year}/{month}",onCustomDomain:!0},{name:"ShowCollectionDailyArchive",pathPattern:"/{collectionSlug}/archive/{year}/{month}/{day}",onCustomDomain:!0},{name:"ShowCollectionAll",pathPattern:"/{collectionSlug}/all",onCustomDomain:!0},{name:"ShowCollectionAllPaged",pathPattern:"/{collectionSlug}/all/{page}",onCustomDomain:!0},{name:"ShowYourCollections",pathPattern:"/me/publications"},{name:"ShowCancelMembership",pathPattern:"/me/membership/cancel"},{name:"ShowCollectionFollowers",pathPattern:"/{collectionSlug}/settings/followers"},{name:"ShowCollectionSubmittedPosts",pathPattern:"/{collectionSlug}/submitted-stories"},{name:"ShowCollectionInstantArticlesPagePick",pathPattern:"/{collectionSlug}/ia/pick",onCustomDomain:!0},{name:"ShowUserCollectionFollowers",pathPattern:"/{collectionSlug}/@{username}/followers",onCustomDomain:!0},{name:"ShowUserCollectionFollowing",pathPattern:"/{collectionSlug}/@{username}/following",onCustomDomain:!0},{name:"ShowCollectionTopic",pathPattern:"/{collectionSlug}/{topicSlug}/home",onCustomDomain:!0},{name:"ShowCollectionTopicList",pathPattern:"/{collectionSlug}/settings/feature-pages"},{name:"ShowCollectionTopicCreate",pathPattern:"/{collectionSlug}/settings/feature-pages/new"},{name:"ShowCollectionTopicEdit",pathPattern:"/{collectionSlug}/settings/feature-pages/{topicSlug}/edit"},{name:"ShowEditTopic",pathPattern:"/topic/{topicSlug}/edit"},{name:"ShowAddPostsToTopic",pathPattern:"/topic/{topicSlug}/add-posts"},{name:"ShowTopic",pathPattern:"/topic/{topicSlug}",handler:"TopicHandler",service:"lite",serviceVariantFlag:"enable_lite_topics",metricName:"topic"},{name:"RenderTopicFeed",pathPattern:"/feed/topic/{topicSlug}"},{name:"RenderFlipboardFeed",pathPattern:"/feed/flipboard/{topicSlug}"},{name:"ShowTopicExplore",pathPattern:"/topics"},{name:"ShowNewByPeopleYouFollow",pathPattern:"/stream/authors"},{name:"ShowNewByPublicationsYouFollow",pathPattern:"/stream/publications"},{name:"ShowNewByFollowedUsersAndCollections",pathPattern:"/stream/network"},{name:"ShowAcceptedFeatureLockPostRequest",pathPattern:"/p/{postId}/requests/partner/feature/{token}"},{name:"ShowAcctSignIn",pathPattern:"/m/signin"},{name:"FetchGlobalIdentityUrl",pathPattern:"/m/global-identity"},{name:"StartGoogleAuth",pathPattern:"/m/connect/google"},{name:"StartAppleAuth",pathPattern:"/m/start-auth/apple"},{name:"AcctToken",pathPattern:"/m/token"},{name:"FetchAppSiteAssociation",pathPattern:"/apple-app-site-association"},{name:"FetchAppSiteAssociationWellKnown",pathPattern:"/.well-known/apple-app-site-association"},{name:"FetchDeveloperDomainAssociationWellKnown",pathPattern:"/.well-known/apple-developer-domain-association.txt"},{name:"FetchDeveloperMerchantidDomainAssociationWellKnown",pathPattern:"/.well-known/apple-developer-merchantid-domain-association"},{name:"AndroidAssetlinks",pathPattern:"/.well-known/assetlinks.json"},{name:"LoginRedirect",pathPattern:"/m/login-redirect"},{name:"ShowAppsLanding",pathPattern:"/m/app"},{name:"ShowGoodbye",pathPattern:"/m/goodbye"},{name:"ReadersLandingRedirect",pathPattern:"/m/getting-started"},{name:"ShowSuspended",pathPattern:"/suspended"},{name:"ShowSubscriptionsLanding",pathPattern:"/membership",handler:"MembershipHandler",service:"lite",metricName:"membership"},{name:"ShowCreatorsLanding",pathPattern:"/creators"},{name:"ShowPay",pathPattern:"/plans",handler:"PayHandler",service:"lite",metricName:"pay"},{name:"RedirectMediumMembershipUpgrade",pathPattern:"/upgrade"},{name:"ShowMediumMembershipPayment",pathPattern:"/payment"},{name:"RedirectGiftLanding",pathPattern:"/gift"},{name:"ShowGiftCheckout",pathPattern:"/gift-checkout"},{name:"ShowRedeemGift",pathPattern:"/redeem"},{name:"ShowRedirect",pathPattern:"/r"},{name:"ShowReadingList",pathPattern:"/me/list/{activeTab}",handler:"ReadingListHandler",service:"lite",metricName:"list"},{name:"ShowBookmarks",pathPattern:"/browse/bookmarks"},{name:"ShowBookmarksOld",pathPattern:"/me/bookmarks"},{name:"ShowYourActivity",pathPattern:"/me/activity"},{name:"ShowSequence",pathPattern:"/s/{sequenceSlug}"},{name:"ShowSequencePost",pathPattern:"/s/{sequenceSlug}/{postId}",handler:"SequencePostHandler",service:"lite",serviceVariantFlag:"enable_lite_post",metricName:"sequence-post"},{name:"RedirectSequenceShare",pathPattern:"/s/{sequenceSlug}/share/{channel}"},{name:"ShowSequenceLibrary",pathPattern:"/collections",handler:"SequenceLibraryHandler",service:"lite",metricName:"sequence-library"},{name:"ShowEditSequence",pathPattern:"/s/{sequenceSlug}/edit"},{name:"ShowCreateSequence",pathPattern:"/s/new"},{name:"ShowTickLandingPage",pathPattern:"/l/ticks",handler:"TickLandingPageHandler",service:"lite",serviceVariantFlag:"enable_tick_landing_page",metricName:"landing-pages/ticks"},{name:"ShowTrumplandLandingPage",pathPattern:"/l/the-trump-45",handler:"TrumplandLandingPageHandler",service:"lite",serviceVariantFlag:"enable_trumpland_landing_page",metricName:"landing-pages/trumpland"},{name:"ShowTributeLandingPage",pathPattern:"/l/tribute",handler:"TributeLandingPageHandler",service:"lite",serviceVariantFlag:"enable_tribute_landing_page",metricName:"landing-pages/tribute"},{name:"ShowCollectionPackageBuilder",pathPattern:"/l/package-builder/{collectionId}",handler:"PackageBuilderHandler",service:"lite",serviceVariantFlag:"enable_package_builder",metricName:"package-builder"},{name:"ShowCollectionHomepage",pathPattern:"/l/package-preview/{collectionId}",handler:"CollectionHomepagePreviewHandler",service:"lite",metricName:"package-preview"},{name:"ShowNotAvailable",pathPattern:"/not-available",handler:"NotAvailableHandler",service:"lite",metricName:"not-available"},{name:"FetchMediaResourceEmbed",pathPattern:"/media/{mediaResourceId}"},{name:"ShowMediumJobs",pathPattern:"/jobs"},{name:"ShowTermsOfService",pathPattern:"/m/tos"},{name:"AcctTwitterCallback",pathPattern:"/m/callback/twitter"},{name:"AcctFacebookCallback",pathPattern:"/m/callback/facebook"},{name:"AcctGoogleCallback",pathPattern:"/m/callback/google"},{name:"AcctAppleCallback",pathPattern:"/m/callback/apple"},{name:"AcctEmailCallback",pathPattern:"/m/callback/email"},{name:"OnboardingBeginRedirect",pathPattern:"/welcome"},{name:"ProfileCollectionsRedirect",pathPattern:"/@{username}/publications"},{name:"ProfileRecommendedRedirect",pathPattern:"/@{username}/recommended"},{name:"ProfileHomeRedirect",pathPattern:"/u/{userId}"},{name:"ProfileSelfRedirect",pathPattern:"/me"},{name:"ShowExport",pathPattern:"/me/export"},{name:"ShowSettings",pathPattern:"/me/settings"},{name:"ShowOauthApplicationsList",pathPattern:"/me/applications"},{name:"ShowOauthApplicationSettings",pathPattern:"/me/applications/{oauthApplicationId}"},{name:"ShowNewOauthApplication",pathPattern:"/me/applications/new"},{name:"ShowCollectionCreationError",pathPattern:"/publishing-restricted"},{name:"ShowCollectionStatsOverview",pathPattern:"/{collectionSlug}/stats/overview",onCustomDomain:!0},{name:"ShowCollectionStatsStories",pathPattern:"/{collectionSlug}/stats/stories",onCustomDomain:!0},{name:"FetchCollectionStats",pathPattern:"/{collectionSlug}/stats",onCustomDomain:!0},{name:"CollectionSubmissionsRedirect",pathPattern:"/{collectionSlug}/submissions",onCustomDomain:!0},{name:"ShowCollectionStoriesManager",pathPattern:"/{collectionSlug}/stories/{filterBy}",onCustomDomain:!0},{name:"ShowCollectionMigration",pathPattern:"/{collectionSlug}/migration"},{name:"PostReferrersRedirect",pathPattern:"/p/{postId}/referrers"},{name:"AcctBeginConversion",pathPattern:"/m/account/convert/{token}"},{name:"FetchOauthAuthorization",pathPattern:"/m/oauth/authorize"},{name:"CollectionDirect",pathPattern:"/c/{collectionId}"},{name:"ShowStatsNewsletterV2",pathPattern:"/{collectionSlug}/stats/publication-digests",handler:"NewsletterV2StatsHandler",service:"lite",metricName:"newsletterV2-stats"},{name:"ShowCreateCollectionNewsletterV3",pathPattern:"/{collectionSlug}/new-newsletter",handler:"NewsletterV3SettingsHandler",service:"lite"},{name:"ShowUpdateCollectionNewsletterV3",pathPattern:"/{collectionSlug}/newsletters/{newsletterSlug}/settings",handler:"NewsletterV3SettingsHandler",service:"lite"},{name:"ShowAuthorNewsletters",pathPattern:"/me/newsletters"},{name:"ShowCollectionNewsletterLanding",pathPattern:"/{collectionSlug}/newsletters/{newsletterSlug}",handler:"NewsletterV3LandingHandler",service:"lite"},{name:"ShowMutedEntities",pathPattern:"/me/settings/mute/{activeTab}",handler:"MutedEntitiesHandler",service:"lite"},{name:"ShowTrendingPosts",pathPattern:"/trending",handler:"TrendingPostsHandler",service:"lite"},{name:"ShowTrendingPostsForMode",pathPattern:"/trending/mode/{mode}",handler:"TrendingPostsHandler",service:"lite"},{name:"ShowTrendingPostsForModeAndTopic",pathPattern:"/trending/mode/{mode}/topic/{topicSlug}",handler:"TrendingPostsHandler",service:"lite"},{name:"OauthV1Identity",pathPattern:"/v1/me"},{name:"OauthV1UserPublications",pathPattern:"/v1/users/{applicationSpecificUserId}/publications"},{name:"OauthV1PublicationContributors",pathPattern:"/v1/publications/{publicationId}/contributors"},{name:"IftttUserInfo",pathPattern:"/ifttt/v1/user/info"},{name:"IftttStatus",pathPattern:"/ifttt/v1/status"},{name:"StartFacebookAuth",pathPattern:"/m/connect/facebook"},{name:"AcctNamecheapCallback",pathPattern:"/m/callback/namecheap"},{name:"FetchProfileFollowList",pathPattern:"/@{username}/follow-list"},{name:"FetchCollectionStoriesManagerRedirect",pathPattern:"/{collectionSlug}/stories"},{name:"FetchCollectionStoriesManagerLoadMore",pathPattern:"/{collectionSlug}/stories/{filterBy}/loadMore"},{name:"FetchAppLogin",pathPattern:"/m/app/login/{token}"},{name:"RedirectHelpCenter",pathPattern:"/help"},{name:"PloverProxy",pathPattern:"/js/plovr/proxy/*"},{name:"PloverMain",pathPattern:"/js/main-base.bundle.js"},{name:"CreateUpload",pathPattern:"/_/upload"},{name:"FetchMediaResourceHref",pathPattern:"/media/{mediaResourceId}/href",onCustomDomain:!0},{name:"FetchFacebookClose",pathPattern:"/m/facebook/close"},{name:"FetchPostRead",pathPattern:"/p/{postId}/state/read"},{name:"FetchPostState",pathPattern:"/p/{postId}/state"},{name:"FetchPostNote",pathPattern:"/p/{postId}/notes/{noteId}"},{name:"FetchPostNoteReplySingle",pathPattern:"/p/notereplies/{replyId}"},{name:"AcctAuthTwitter",pathPattern:"/m/account/authenticate-twitter"},{name:"AcctConfirm",pathPattern:"/m/account/confirm/{key}"},{name:"AcctSignout",pathPattern:"/m/signout/{xsrf}",onCustomDomain:!0},{name:"FetchStatsAt",pathPattern:"/me/stats/total/{startTimeMs}/{endTimeMs}"},{name:"FetchStatsPostAt",pathPattern:"/me/stats/{postId}/{startTimeMs}/{endTimeMs}"},{name:"FetchUserStatsAt",pathPattern:"/@{username}/stats/total/{startTimeMs}/{endTimeMs}"},{name:"FetchPostStatsAt",pathPattern:"/stats/{postId}/{startTimeMs}/{endTimeMs}"},{name:"FetchFeedLatest",pathPattern:"/feed/latest"},{name:"FetchFeedCollection",pathPattern:"/feed/{collectionSlug}"},{name:"FetchFeedUser",pathPattern:"/feed/@{username}"},{name:"FetchFeedUserRecommends",pathPattern:"/feed/@{username}/has-recommended"},{name:"FetchFeedTag",pathPattern:"/feed/tag/{tagSlug}"},{name:"FetchFeedCatalog",pathPattern:"/feed/collections/{catalogSlug}"},{name:"FetchFeedCollectionNews",pathPattern:"/feed/{collectionSlug}/news"},{name:"FetchFeedCollectionTag",pathPattern:"/feed/{collectionSlug}/tagged/{tagSlug}"},{name:"FetchFeedCollectionTagNews",pathPattern:"/feed/{collectionSlug}/news/tagged/{tagSlug}"},{name:"FetchEmbed",pathPattern:"/embed",onCustomDomain:!0},{name:"FetchCollectionMore",pathPattern:"/{collectionSlug}/load-more"},{name:"FetchCollectionPostFeatured",pathPattern:"/{collectionSlug}/{postId}/featured"},{name:"FetchServiceWorker",pathPattern:"/service-worker.js",onCustomDomain:!0},{name:"FetchOpensearchDescription",pathPattern:"/osd.xml",onCustomDomain:!0},{name:"StaticFetchCss",pathPattern:"/css/*"},{name:"StaticFetchIcons",pathPattern:"/icons/*"},{name:"StaticFetchJs",pathPattern:"/js/*"},{name:"StaticFetchCrossDomain",pathPattern:"/crossdomain.xml"},{name:"StaticFetchEmbedTest",pathPattern:"/embed-test.html"},{name:"StaticFetchFaviconRebrand",pathPattern:"/favicon-rebrand.ico"},{name:"StaticFetchFavicon",pathPattern:"/favicon.ico"},{name:"StaticFetchHumans",pathPattern:"/humans.txt"},{name:"StaticFetchRobots",pathPattern:"/robots.txt"}],h=r.createContext({pathMatcher:new d,routeDefinitionMap:new Map});function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onCustomDomain,r=void 0!==n&&n,a=new d,i=r?e.filter((function(e){return!!e.onCustomDomain})):e;return i.forEach((function(e){var t=m(e,{onCustomDomain:r});try{a.add(t.pathPattern,t)}catch(e){o.a.warn({route:t,error:e},"Cannot add route")}})),a}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.routeDefs,n=void 0===t?f:t,r=e.isCustomDomain,o=void 0!==r&&r;return{pathMatcher:g(n,{onCustomDomain:o}),routeDefinitionMap:new Map(n.map((function(e){return[e.name,e]})))}}function v(){return r.useContext(h)}function E(e){return r.useContext(h).pathMatcher.getMatch(e)}function y(){var e=r.useContext(h).pathMatcher;return e.getMatch.bind(e)}function O(e){return r.useContext(h).routeDefinitionMap.get(e)}},"./src/schema-types/globalTypes.ts":function(e,t,n){"use strict";var r,o,a,i,c,s,l,u,d,m,p,f,h,g,b,v,E,y,O,x,_,w,S,j,P,C,k,T,I,R,N;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return h})),n.d(t,"j",(function(){return g})),n.d(t,"k",(function(){return E})),n.d(t,"l",(function(){return y})),n.d(t,"m",(function(){return x})),n.d(t,"n",(function(){return _})),n.d(t,"o",(function(){return w})),n.d(t,"p",(function(){return k})),n.d(t,"q",(function(){return T})),n.d(t,"r",(function(){return I})),n.d(t,"s",(function(){return R})),n.d(t,"t",(function(){return N})),function(e){e.CENTER="CENTER",e.END="END",e.START="START"}(r||(r={})),function(e){e.AUDIO="AUDIO",e.LINK="LINK",e.USER="USER"}(o||(o={})),function(e){e.APPROVED="APPROVED",e.PENDING="PENDING",e.REMOVED="REMOVED"}(a||(a={})),function(e){e.ACCENT_COLOR="ACCENT_COLOR",e.ACCENT_COLOR_AND_FILL_BACKGROUND="ACCENT_COLOR_AND_FILL_BACKGROUND"}(i||(i={})),function(e){e.CURATION_STATUS_DISABLED="CURATION_STATUS_DISABLED",e.CURATION_STATUS_DISTRIBUTED="CURATION_STATUS_DISTRIBUTED",e.CURATION_STATUS_DISTRIBUTED_AND_DISABLED="CURATION_STATUS_DISTRIBUTED_AND_DISABLED",e.CURATION_STATUS_NOT_DISTRIBUTED="CURATION_STATUS_NOT_DISTRIBUTED",e.CURATION_STATUS_NOT_REVIEWED="CURATION_STATUS_NOT_REVIEWED",e.CURATION_STATUS_PENDING="CURATION_STATUS_PENDING"}(c||(c={})),function(e){e.HEADER_SCALE_LARGE="HEADER_SCALE_LARGE",e.HEADER_SCALE_MEDIUM="HEADER_SCALE_MEDIUM",e.HEADER_SCALE_SMALL="HEADER_SCALE_SMALL"}(s||(s={})),function(e){e.ACTIVITY="ACTIVITY",e.ANDROID="ANDROID",e.COLLECTION="COLLECTION",e.EMAIL="EMAIL",e.HOMEPAGE="HOMEPAGE",e.IOS="IOS",e.OTHERS="OTHERS",e.POST="POST",e.PROFILE="PROFILE",e.RELATED="RELATED",e.SOCIAL="SOCIAL"}(l||(l={})),function(e){e.CONSTRAINED_HEIGHT_PREVIEW="CONSTRAINED_HEIGHT_PREVIEW",e.CROPPED_HEIGHT_PREVIEW="CROPPED_HEIGHT_PREVIEW",e.FULL_WIDTH="FULL_WIDTH",e.FULL_WIDTH_CROPPED_COVER="FULL_WIDTH_CROPPED_COVER",e.INSET_CENTER="INSET_CENTER",e.INSET_CENTER_SMALL="INSET_CENTER_SMALL",e.INSET_LEFT="INSET_LEFT",e.INSET_RIGHT="INSET_RIGHT",e.OUTSET_CENTER="OUTSET_CENTER",e.OUTSET_LEFT="OUTSET_LEFT",e.OUTSET_ROW="OUTSET_ROW",e.OUTSET_ROW_CONTINUE="OUTSET_ROW_CONTINUE"}(u||(u={})),function(e){e.LOCKED_POST_SOURCE_COMMISSIONED="LOCKED_POST_SOURCE_COMMISSIONED",e.LOCKED_POST_SOURCE_FEATURE_LOCK="LOCKED_POST_SOURCE_FEATURE_LOCK",e.LOCKED_POST_SOURCE_NONE="LOCKED_POST_SOURCE_NONE",e.LOCKED_POST_SOURCE_PARTNERSHIPS="LOCKED_POST_SOURCE_PARTNERSHIPS",e.LOCKED_POST_SOURCE_PUBLICATION_MEMBERSHIP="LOCKED_POST_SOURCE_PUBLICATION_MEMBERSHIP",e.LOCKED_POST_SOURCE_SYNDICATED="LOCKED_POST_SOURCE_SYNDICATED",e.LOCKED_POST_SOURCE_UGC="LOCKED_POST_SOURCE_UGC",e.LOCKED_POST_SOURCE_UGC_UNENROLLED="LOCKED_POST_SOURCE_UGC_UNENROLLED"}(d||(d={})),function(e){e.fullFeatureCard="fullFeatureCard",e.halfFeatureCard="halfFeatureCard",e.headerCard="headerCard",e.imageCard="imageCard",e.quoteCard="quoteCard",e.shortStoryCard="shortStoryCard",e.shortformLinkCard="shortformLinkCard",e.shortformNoteCard="shortformNoteCard",e.standardCard="standardCard",e.truncatedPostCard="truncatedPostCard"}(m||(m={})),function(e){e.A="A",e.CODE="CODE",e.COMMENT="COMMENT",e.EM="EM",e.HIGHLIGHT="HIGHLIGHT",e.QUERY="QUERY",e.QUOTE="QUOTE",e.SENTENCE_DEPRECATED="SENTENCE_DEPRECATED",e.STRONG="STRONG",e.UNUSED_DETAIL="UNUSED_DETAIL",e.WARNING="WARNING"}(p||(p={})),function(e){e.ABOUT_PAGE_NAV_ITEM="ABOUT_PAGE_NAV_ITEM",e.ARCHIVE_NAV_ITEM="ARCHIVE_NAV_ITEM",e.EXTERNAL_LINK_NAV_ITEM="EXTERNAL_LINK_NAV_ITEM",e.POST_NAV_ITEM="POST_NAV_ITEM",e.TAG_NAV_ITEM="TAG_NAV_ITEM",e.TOPIC_PAGE="TOPIC_PAGE"}(f||(f={})),function(e){e.BQ="BQ",e.COVER_TITLE="COVER_TITLE",e.H1="H1",e.H2="H2",e.H3="H3",e.H4="H4",e.HR="HR",e.IFRAME="IFRAME",e.IMG="IMG",e.MIXTAPE_EMBED="MIXTAPE_EMBED",e.OLI="OLI",e.P="P",e.PQ="PQ",e.PRE="PRE",e.SECTION_CAPTION="SECTION_CAPTION",e.ULI="ULI"}(h||(h={})),function(e){e.ENROLLED="ENROLLED",e.NOT_ENROLLED="NOT_ENROLLED",e.PERMISSION_DENIED="PERMISSION_DENIED"}(g||(g={})),function(e){e.CAD="CAD",e.CURRENCY_NOT_APPLICABLE="CURRENCY_NOT_APPLICABLE",e.UNKNOWN_CURRENCY="UNKNOWN_CURRENCY",e.USD="USD"}(b||(b={})),function(e){e.AOL_MAIL="AOL_MAIL",e.ASANA="ASANA",e.FACEBOOK="FACEBOOK",e.FLIPBOARD="FLIPBOARD",e.GMAIL="GMAIL",e.GPLUS="GPLUS",e.HACKER_NEWS="HACKER_NEWS",e.INSTAGRAM="INSTAGRAM",e.LINKEDIN="LINKEDIN",e.LIVE_MAIL="LIVE_MAIL",e.POCKET="POCKET",e.REDDIT="REDDIT",e.TWITTER="TWITTER",e.YAHOO="YAHOO",e.YAHOO_MAIL="YAHOO_MAIL"}(v||(v={})),function(e){e.NO_CARD_TYPE="NO_CARD_TYPE",e.SHORT_STORY_CARD="SHORT_STORY_CARD",e.STANDARD_CARD="STANDARD_CARD"}(E||(E={})),function(e){e.AMPLIFIED_NEW_STORY="AMPLIFIED_NEW_STORY",e.BOOKMARKED="BOOKMARKED",e.CF_POST_SIMILAR_TO_POST="CF_POST_SIMILAR_TO_POST",e.COLLABORATIVE_FILTERING="COLLABORATIVE_FILTERING",e.CURATED_IN_POPCHUNK="CURATED_IN_POPCHUNK",e.CURATED_IN_POPULAR_TOPIC="CURATED_IN_POPULAR_TOPIC",e.CURATED_IN_PRMT_CATALOG="CURATED_IN_PRMT_CATALOG",e.CURATED_IN_SUGGESTED_TOPIC="CURATED_IN_SUGGESTED_TOPIC",e.CURATED_IN_TOPIC="CURATED_IN_TOPIC",e.CURATED_NOTEWORTHY_WRITER="CURATED_NOTEWORTHY_WRITER",e.CURATED_POSTS_SHARING_TAGS_DEPRECATED="CURATED_POSTS_SHARING_TAGS_DEPRECATED",e.EVERGREEN="EVERGREEN",e.EXPLORE_POST_UNDER_PRESENTED="EXPLORE_POST_UNDER_PRESENTED",e.FEATURED_IN_TOPIC="FEATURED_IN_TOPIC",e.GENERIC_SQL_POST_LIST="GENERIC_SQL_POST_LIST",e.HOMEPAGE_FEATURED="HOMEPAGE_FEATURED",e.LATEST_IN_PREMIUM_TOPIC="LATEST_IN_PREMIUM_TOPIC",e.PERSONALIZED_IN_PREMIUM_TOPIC="PERSONALIZED_IN_PREMIUM_TOPIC",e.POSTS_SHARING_AUTHOR="POSTS_SHARING_AUTHOR",e.POSTS_SHARING_COLLECTION_AND_TAGS="POSTS_SHARING_COLLECTION_AND_TAGS",e.POSTS_SHARING_TAGS="POSTS_SHARING_TAGS",e.POST_FEED_REASON_UNKNOWN="POST_FEED_REASON_UNKNOWN",e.PROMOTED_POSTS="PROMOTED_POSTS",e.PUBLISHED_BY_AUTHOR="PUBLISHED_BY_AUTHOR",e.PUBLISHED_BY_COLLECTION="PUBLISHED_BY_COLLECTION",e.PUBLISHED_BY_CURRENT_USER="PUBLISHED_BY_CURRENT_USER",e.PUBLISHED_BY_USER="PUBLISHED_BY_USER",e.PUBLISHED_IN_COLLECTION="PUBLISHED_IN_COLLECTION",e.PUBLISHED_IN_TAG="PUBLISHED_IN_TAG",e.RECENT_STAFF_RECOMMENDATION="RECENT_STAFF_RECOMMENDATION",e.RECOMMENDED_BY_AUTHOR="RECOMMENDED_BY_AUTHOR",e.RECOMMENDED_BY_CURRENT_USER="RECOMMENDED_BY_CURRENT_USER",e.RECOMMENDED_BY_EDITOR="RECOMMENDED_BY_EDITOR",e.RECOMMENDED_BY_STAFF="RECOMMENDED_BY_STAFF",e.RECOMMENDED_BY_USER="RECOMMENDED_BY_USER",e.RECOMMENDED_IN_TAG="RECOMMENDED_IN_TAG",e.RECOMMENDED_MEMBER_ONLY_CONTENT="RECOMMENDED_MEMBER_ONLY_CONTENT",e.RESPONSES_MOST_RECOMMENDED="RESPONSES_MOST_RECOMMENDED",e.SIMILAR_TO_RECENTLY_READ_OR_VOTED="SIMILAR_TO_RECENTLY_READ_OR_VOTED",e.SIMILAR_TO_RECENTLY_VOTED_POSTS="SIMILAR_TO_RECENTLY_VOTED_POSTS",e.TAG_IN_INTEREST_GRAPH="TAG_IN_INTEREST_GRAPH",e.TOP_CONVERSATION_STARTER="TOP_CONVERSATION_STARTER",e.TOP_FOR_THE_DAY="TOP_FOR_THE_DAY",e.TOP_FOR_THE_DAY_GLOBALLY="TOP_FOR_THE_DAY_GLOBALLY",e.TOP_IN_COLLECTION="TOP_IN_COLLECTION",e.TOP_IN_TOPIC="TOP_IN_TOPIC",e.TOP_LONG_READ="TOP_LONG_READ",e.TOP_MEDIUM_READ="TOP_MEDIUM_READ",e.TOP_MOMENTUM="TOP_MOMENTUM",e.TOP_NEW_AUTHOR="TOP_NEW_AUTHOR",e.TOP_NEW_PUBLISHED="TOP_NEW_PUBLISHED",e.TOP_POSTS_SHARING_TAGS="TOP_POSTS_SHARING_TAGS",e.TOP_PUBLISHED_BY_COLLECTION="TOP_PUBLISHED_BY_COLLECTION",e.TOP_PUBLISHED_BY_USER="TOP_PUBLISHED_BY_USER",e.TOP_RECOMMENDED_BY_USER="TOP_RECOMMENDED_BY_USER",e.TOP_RECOMMENDED_IN_TAG="TOP_RECOMMENDED_IN_TAG",e.TOP_REFERRED="TOP_REFERRED",e.TOP_RESPONSE="TOP_RESPONSE",e.TOP_SHORT_READ="TOP_SHORT_READ",e.TOP_SIMILAR_TO_POST="TOP_SIMILAR_TO_POST",e.TOP_STORY_ON_MEDIUM="TOP_STORY_ON_MEDIUM",e.TOP_TRENDING="TOP_TRENDING",e.USER_IN_DEEP_SOCIAL_GRAPH="USER_IN_DEEP_SOCIAL_GRAPH",e.USER_PROFILE_FEATURED="USER_PROFILE_FEATURED",e.USER_PROFILE_HAS_RECOMMENDED="USER_PROFILE_HAS_RECOMMENDED",e.USER_PROFILE_MOST_RECOMMENDED="USER_PROFILE_MOST_RECOMMENDED",e.USER_PROFILE_NOT_A_COMMENT="USER_PROFILE_NOT_A_COMMENT",e.USER_PROFILE_ROOT_POSTS="USER_PROFILE_ROOT_POSTS"}(y||(y={})),function(e){e.ALL_RIGHTS_RESERVED="ALL_RIGHTS_RESERVED",e.CC_40_BY="CC_40_BY",e.CC_40_BY_NC="CC_40_BY_NC",e.CC_40_BY_NC_ND="CC_40_BY_NC_ND",e.CC_40_BY_NC_SA="CC_40_BY_NC_SA",e.CC_40_BY_ND="CC_40_BY_ND",e.CC_40_BY_SA="CC_40_BY_SA",e.CC_40_ZERO="CC_40_ZERO",e.PUBLIC_DOMAIN="PUBLIC_DOMAIN"}(O||(O={})),function(e){e.POST_TYPE_DRAFT="POST_TYPE_DRAFT",e.POST_TYPE_PUBLIC="POST_TYPE_PUBLIC",e.POST_TYPE_UNKNOWN="POST_TYPE_UNKNOWN",e.POST_TYPE_UNLISTED="POST_TYPE_UNLISTED"}(x||(x={})),function(e){e.LOCKED="LOCKED",e.PUBLIC="PUBLIC",e.UNLISTED="UNLISTED"}(_||(_={})),function(e){e.READING_LIST_ARCHIVE="READING_LIST_ARCHIVE",e.READING_LIST_NONE="READING_LIST_NONE",e.READING_LIST_QUEUE="READING_LIST_QUEUE"}(w||(w={})),function(e){e.ACCELERATED_MOBILE_PAGES="ACCELERATED_MOBILE_PAGES",e.DIRECT="DIRECT",e.INSTANT_ARTICLES="INSTANT_ARTICLES",e.INTERNAL="INTERNAL",e.OTHER="OTHER",e.PLATFORM="PLATFORM",e.RSS="RSS",e.SEARCH="SEARCH",e.SITE="SITE"}(S||(S={})),function(e){e.ASPECT_RATIO="ASPECT_RATIO",e.ASPECT_RATIO_VIEWPORT="ASPECT_RATIO_VIEWPORT",e.CONTENT="CONTENT",e.COVER_FADE="COVER_FADE",e.FULL_BLEED="FULL_BLEED",e.FULL_SCREEN="FULL_SCREEN",e.NONE="NONE",e.SECTION_FILL_CROP="SECTION_FILL_CROP",e.SECTION_FILL_OVERFLOW_X="SECTION_FILL_OVERFLOW_X",e.UNUSED_LEFT="UNUSED_LEFT",e.UNUSED_RIGHT="UNUSED_RIGHT"}(j||(j={})),function(e){e.BOTTOM_CENTER="BOTTOM_CENTER",e.CAPTION_ONLY="CAPTION_ONLY",e.FLOW="FLOW",e.MIDDLE_CENTER="MIDDLE_CENTER",e.SERIES_COVER="SERIES_COVER",e.SERIES_COVER_TITLELESS="SERIES_COVER_TITLELESS",e.TOP_CENTER="TOP_CENTER"}(P||(P={})),function(e){e.NO_VIDEO="NO_VIDEO",e.SECTION_ASPECT_FIT_VIDEO="SECTION_ASPECT_FIT_VIDEO"}(C||(C={})),function(e){e.SHORTFORM_TYPE_LINK="SHORTFORM_TYPE_LINK",e.SHORTFORM_TYPE_MEDIA="SHORTFORM_TYPE_MEDIA",e.SHORTFORM_TYPE_NOTE="SHORTFORM_TYPE_NOTE",e.SHORTFORM_TYPE_QUOTE="SHORTFORM_TYPE_QUOTE"}(k||(k={})),function(e){e.HIGHLIGHT="HIGHLIGHT",e.RESPONSE="RESPONSE"}(T||(T={})),function(e){e.SANS_SERIF_1="SANS_SERIF_1",e.SANS_SERIF_2="SANS_SERIF_2",e.SERIF_1="SERIF_1",e.SERIF_2="SERIF_2"}(I||(I={})),function(e){e.TOPIC_VISIBILITY_PUBLIC="TOPIC_VISIBILITY_PUBLIC",e.TOPIC_VISIBILITY_SPECIAL="TOPIC_VISIBILITY_SPECIAL",e.TOPIC_VISIBILITY_STAFF="TOPIC_VISIBILITY_STAFF"}(R||(R={})),function(e){e.ARCHIVED="ARCHIVED",e.RECENT="RECENT",e.SAVED="SAVED"}(N||(N={}))},"./src/screens/ErrorScreen.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./node_modules/react-router/esm/react-router.js"),c=n("./src/framework/design-system/components/index.ts"),s=function(e){e.error;return!1},l=n("./src/components/metabar/Metabar.tsx"),u=n("./src/framework/design-system/util/type/toRule.ts"),d=a.createContext(null),m=n("./src/framework/style/index.ts"),p=n("./src/styles/font.ts"),f=n("./src/util/routes.ts");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var g={fontSize:"20px",textTransform:"uppercase"},b=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(u.a)((function(e){return{font:e.font.elevate,fontSize:192,lineHeight:200,display:"block"}}))(e))},v={fontSize:"24px"};function E(e){var t,n,r=Object(m.useCx)();return t=e.error,n=a.useContext(d),t&&n&&n.report(t),a.createElement(i.b,{render:function(t){var n=t.staticContext;return n&&(n.statusCode=500),a.createElement("div",null,a.createElement(l.a,null),a.createElement(c.b,{tag:"section",paddingTop:"60px",paddingBottom:"60px"},a.createElement(c.A,{columns:8},a.createElement(c.b,{display:"flex",alignItems:"flex-start",flexWrap:"wrap"},a.createElement(c.b,{display:"flex",flexDirection:"column"},a.createElement("div",{className:r(g)},"Error"),a.createElement("div",{className:r(b)},"500")),a.createElement("div",{className:r(Object(p.k)())},a.createElement(c.b,{marginBottom:"28px"},a.createElement("div",{className:r(v)},"Our nimblest minds and quickest coders are scrambling to bring Medium back — so hold tight.")),a.createElement("div",{className:r(v)},"What can you do? Try refreshing this page or check"," ",a.createElement(c.t,{href:Object(f.Mb)(),display:"inline-block",inline:!0,target:"_blank",linkStyle:"OBVIOUS"},"Medium's status"),"."))))),s(e))}})}},"./src/screens/LoadingScreen.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("./node_modules/react/index.js"),o=n("./src/components/metabar/Logo.tsx"),a=n("./src/framework/design-system/components/index.ts");function i(){return r.createElement(a.b,{height:"100vh",width:"100vw",display:"flex",justifyContent:"center",alignItems:"center"},r.createElement(o.a,null))}},"./src/screens/NotFoundScreen.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./node_modules/react-router/esm/react-router.js"),c=n("./src/framework/design-system/components/index.ts"),s=n("./src/framework/design-system/util/type/toRule.ts"),l=n("./src/framework/style/index.ts"),u=n("./src/styles/breakpoints.ts");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var m={fontSize:"20px",textTransform:"uppercase"},p=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(s.a)((function(e){return{font:e.font.marketing,lineHeight:200,display:"block"}}))(e),o()({fontSize:"192px"},u.sm(e),{fontSize:"150px"}))},f=function(e){var t=Object(l.useCx)();return a.createElement(c.b,{display:"flex",flexDirection:"column"},a.createElement("div",{className:t(m)},"Error"),a.createElement("div",{className:t(p)},e))},h=n("./src/components/metabar/Metabar.tsx"),g=n("./src/components/post-listing/PostListingItemBylineWithAvatar.tsx"),b=n("./src/components/post-listing/PostListingItemImage.tsx"),v=n("./src/styles/font.ts"),E=n("./src/util/routes.ts");function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(e){return{marginTop:"-20px",fontSize:"48px",color:"#aaa",letterSpacing:"normal",lineHeight:"48px"}},_={display:"flex",flexDirection:"row","@media (max-width: 767px)":{flexDirection:"column"}},w=function(e,t){return function(n){var r={border:"1px solid ".concat(n.baseColor.border.lighter),borderRadius:"5px",boxShadow:"0 1px 4px ".concat(n.baseColor.border.lighter),margin:"8px",width:"calc(calc(100% / 3) - 8px)",overflow:"hidden","@media (max-width: 767px)":{width:"100%",marginLeft:"0",marginRight:"0"}};return 0===e?O({},r,{marginLeft:"0px"}):e===t?O({},r,{marginRight:"0px"}):r}},S=[{id:"52e72e10614",previewImage:{id:"1*6XM15VaWbf7HK1HmiRkv1Q.png",focusPercentX:0,focusPercentY:20},title:"All the Mugs I’ve Loved and Lost",creator:{id:"6a0cce7d484d",imageId:"1*ErUzRtpA1KJr93I-T5kCpQ@2x.jpeg",name:"Danielle Morgan",username:"danielleaamorgan",mediumMemberAt:0},statusForCollection:"APPROVED",collection:{id:"544c7006046e",domain:"humanparts.medium.com",name:"Human Parts",slug:"human-parts"},readingTime:6.69559748427673,isLocked:!0,updatedAt:1556564895449},{id:"596d1a826429",previewImage:{id:"1*WPMRCdxJhe4cvefeJ5FbmQ.jpeg",focusPercentX:45,focusPercentY:50},title:"Lost in Conversation",creator:{id:"f65f67f321fe",imageId:"1*HJS2Dolxg5B0n7u1oJ213w.jpeg",name:"Omar Merza",username:"MerzaOmar",mediumMemberAt:0},statusForCollection:"APPROVED",collection:{id:"d415956deb14",domain:void 0,name:"The Coffeelicious",slug:"the-coffeelicious"},readingTime:5,isLocked:!1,updatedAt:1505826905e3},{id:"3f942a018492",previewImage:{id:"1*tKP4kGZhSa-H0wroJxY3fQ.jpeg",focusPercentX:50,focusPercentY:50},title:"The Lost Photographs of Penang",creator:{id:"f867736dc389",imageId:"1*AuwihOv-G6udHbXes_-rhA.jpeg",name:"Ted Anthony",username:"anthonyted",mediumMemberAt:1490944652e3},statusForCollection:"APPROVED",collection:{id:"2293067a9eb2",domain:"stuff.life",name:"Stuff Dot Life",slug:"stuff-dot-life"},readingTime:10,isLocked:!0,updatedAt:1505826905e3}],j=function(e){return a.createElement(a.Fragment,null,a.createElement(b.b,{post:e,miroWidth:767,miroHeight:271}),a.createElement(c.b,{marginTop:"16px",marginLeft:"16px"},function(e){return a.createElement(c.f,{href:Object(E.ub)(e)},a.createElement(c.o,{clamp:2},e.title))}(e)),a.createElement(c.b,{marginTop:"20px",marginBottom:"20px",paddingLeft:"29px",paddingRight:"20px"},a.createElement(g.b,{post:e})))},P=function(){return a.createElement(c.J,null,(function(e){return a.createElement(a.Fragment,null,a.createElement("div",null,a.createElement(c.l,null,"Feeling lost? You’re not alone."),a.createElement(c.b,{marginTop:"16px",marginBottom:"16px"},a.createElement(c.a,null,"Enjoy these stories about getting lost, losing things, and finding what you never knew you were looking for"))),a.createElement("div",{className:e(_)},a.createElement(c.J,null,(function(e){return S.map((function(t,n){return a.createElement("div",{key:n,className:e(w(n,S.length-1))},j(t))}))}))))}))};function C(e){return a.createElement(i.b,{render:function(t){var n=t.staticContext;return n&&(n.loggingData=e.loggingData,n.statusCode=404),a.createElement(a.Fragment,null,a.createElement(h.a,null),a.createElement(c.A,null,a.createElement(c.J,null,(function(e){return a.createElement(a.Fragment,null,f(404),a.createElement("div",{className:e(Object(v.k)())},a.createElement("h2",{className:e(x)},"We couldn’t find this page.")))}))),a.createElement(c.b,{tag:"section",marginTop:"100px",paddingTop:"20px",paddingLeft:"50px",paddingRight:"50px",paddingBottom:"120px",backgroundColor:"BASE_LIGHT"},a.createElement(c.A,null,a.createElement(c.z,{ui:"REGULAR"},P()))))}})}},"./src/screens/helpers/visits.ts":function(e,t,n){"use strict";n.d(t,"k",(function(){return d})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"l",(function(){return h})),n.d(t,"e",(function(){return g})),n.d(t,"j",(function(){return v})),n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return O})),n.d(t,"i",(function(){return x})),n.d(t,"h",(function(){return _})),n.d(t,"o",(function(){return w})),n.d(t,"g",(function(){return P})),n.d(t,"n",(function(){return C})),n.d(t,"m",(function(){return T}));var r=n("./node_modules/@babel/runtime/regenerator/index.js"),o=n.n(r),a=n("./src/util/LocalStorage.ts"),i=n("./src/util/constants.ts"),c=new a.a("post-article"),s=function(e){return new Date(e).setUTCHours(0,0,0,0)},l=function(e){var t=new Date(e);return Date.UTC(t.getFullYear(),t.getMonth(),1)},u=function(e){var t,n;Number(c.get("first-post-viewed-timestamp","0"))<s(t=e)-new Date(t).getDay()*i.a?(n=1,c.set("first-post-viewed-timestamp",e)):n=c.get("posts-viewed-count","0")+1,c.set("posts-viewed-count",n)};function d(){var e=Date.now();!function(e){var t;Number(c.get("first-post-viewed-today-timestamp","0"))<s(e)?(t=1,c.set("first-post-viewed-today-timestamp",e)):t=c.get("posts-viewed-today-count","0")+1,c.set("posts-viewed-today-count",t)}(e),u(e),function(e){var t;Number(c.get("first-post-viewed-month-timestamp","0"))<l(e)?(t=1,c.set("first-post-viewed-month-timestamp",e)):t=c.get("posts-viewed-month-count","0")+1,c.set("posts-viewed-month-count",t)}(e)}function m(){var e=parseInt(c.get("posts-viewed-today-count","0"),10);return isNaN(e)&&(e=0),e}function p(){var e=parseInt(c.get("posts-viewed-count","0"),10);return isNaN(e)&&(e=0),e}function f(){var e=parseInt(c.get("posts-viewed-month-count","0"),10);return isNaN(e)&&(e=0),e}function h(){var e,t=Date.now();Number(c.get("first-non-moc-post-viewed-month-timestamp","0"))<l(t)?(e=1,c.set("first-non-moc-post-viewed-month-timestamp",t)):e=c.get("non-moc-posts-viewed-month-count","0")+1,c.set("non-moc-posts-viewed-month-count",e)}function g(){var e=parseInt(c.get("non-moc-posts-viewed-month-count","0"),10);return isNaN(e)&&(e=0),e}var b=new a.a("google-one-tap");function v(){b.set("hide-at",Date.now())}function E(){return Number(b.get("hide-at","0"))}var y=new a.a("read-next");function O(){y.set("dismiss",Date.now())}function x(){return Number(y.get("dismiss","0"))+i.a>Date.now()}function _(){y.set("hide-meter",Date.now())}function w(){return!(Number(y.get("hide-meter","0"))+i.a>Date.now())}var S=new a.a("sign-in-confirmation-banner"),j=function(e,t){var n,r,a,i;return o.a.async((function(c){for(;;)switch(c.prev=c.next){case 0:return n=new TextEncoder,r=n.encode("".concat("sign-in-confirmation-banner","-").concat(e,"-").concat(t)),c.next=4,o.a.awrap(crypto.subtle.digest("SHA-256",r));case 4:return a=c.sent,i=Array.from(new Uint8Array(a)),c.abrupt("return",i.map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return c.stop()}}))},P=function(e,t){var n;return o.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.a.awrap(j(e,t));case 2:return n=r.sent,r.abrupt("return",n===S.get(e));case 4:case"end":return r.stop()}}))},C=function(e,t){var n;return o.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.a.awrap(j(e,t));case 2:n=r.sent,S.set(e,n);case 4:case"end":return r.stop()}}))},k=new a.a("authentication-reporting");var T=function(e,t,n,r,o){var a={alternateUserSuggestion:e,sourceUserId:t,targetUserId:n,targetMethod:r,isAfterBlocked:o};k.set("payload",a)}},"./src/store/actions/alternateUserTopBanner.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="HAS_RENDERED_ALTERNATE_USER_BANNER";function o(e){return{type:r,hasRenderedAlternateUserBanner:e}}},"./src/store/actions/branch.ts":function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"i",(function(){return m})),n.d(t,"h",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return h}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var i="SET_BRANCH_DATA",c="SHOW_BRANCH_BANNER",s="BRANCH_BLOCKED_BY_CTA",l="RESET_SHOW_BRANCH_BANNER",u="RENDERED_BRANCH_BANNER";function d(){return{type:c}}function m(e){return{type:u,hasRendered:e}}function p(e){return e.data.loaded=!0,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:i},e)}function f(e){return{type:s,blockedByCTA:e}}function h(){return{type:l}}},"./src/store/actions/config.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="SET_IS_AMP";function o(e){return{type:r,isAmp:e}}},"./src/store/actions/debug.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a}));var r="SET_TRACE_URL",o="SET_ORIGINAL_SPAN_CARRIER";function a(e){return{type:r,performanceTraceUrl:e}}},"./src/store/actions/googleOneTap.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return i}));var r="HIDE_GOOGLE_ONE_TAP",o="HAS_RENDERED_GOOGLE_ONE_TAP";function a(e){return{type:r,hideGoogleOneTap:e}}function i(e){return{type:o,hasRenderedGoogleOneTap:e}}},"./src/store/actions/multiVote.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return i}));var r="SET_CLAP_COUNTS_FOR_POST",o="CLEAR_CLAP_COUNTS_FOR_POST";function a(e){var t=e.postId,n=e.clapCount,o=e.viewerClapCount,a=e.viewerHasClappedSinceFetch;return{type:r,postId:t,clapCount:n,viewerClapCount:o,viewerHasClappedSinceFetch:a}}function i(e){var t=e.postId;return{type:o,postId:t}}},"./src/store/actions/navigation.ts":function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"o",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"n",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"q",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"r",(function(){return m})),n.d(t,"j",(function(){return p})),n.d(t,"t",(function(){return f})),n.d(t,"f",(function(){return h})),n.d(t,"p",(function(){return g})),n.d(t,"i",(function(){return b})),n.d(t,"s",(function(){return v})),n.d(t,"c",(function(){return E})),n.d(t,"m",(function(){return y})),n.d(t,"u",(function(){return O})),n.d(t,"b",(function(){return x})),n.d(t,"l",(function(){return _})),n.d(t,"a",(function(){return w})),n.d(t,"k",(function(){return S}));var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-redux/es/index.js"),a="SET_CURRENT_PATH";function i(e){return{type:a,path:e}}var c="SET_CURRENT_HASH";function s(e){return{type:c,hash:e.length>1?e.substring(1):e}}var l="SET_REFERRER_SOURCE";function u(e){return{type:l,referrerSource:e}}var d="SET_RESPONSES_OPEN";function m(e){return{type:d,responsesOpen:e}}var p="SET_UNSAFE_REDIRECT_URL";function f(e){return{type:p,unsafeRedirectUrl:e}}var h="SET_POST_READ";function g(e){return{type:h,postRead:e}}var b="SET_SUSI_MODAL";function v(e){return{type:b,susiModal:e}}var E="ENQUEUE_TOAST";function y(e){var t=e.duration,n=e.message,r=e.toastStyle,o=t;return t||0===t||(o=5e3),{type:E,duration:o,message:n,toastStyle:void 0===r?"MESSAGE":r}}var O=function(){var e=Object(o.e)();return Object(r.useCallback)((function(t){return e(y(t))}),[e])},x="CLEAR_TOASTS";function _(){return{type:x}}var w="CLEAR_POST_PUBLISHED_TYPE";function S(){return{type:w}}},"./src/store/actions/tracing.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r="SET_TRACING";function o(e,t){return{type:r,tracer:e,originalSpan:t}}},"./src/store/index.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return Y}));var r=n("./node_modules/redux/es/redux.js"),o={isBot:!1,isCustomDomain:!1,isEu:!1,isNativeMedium:!1,isSafariMobile:!1,inAppBrowserName:"",supportsWebp:!1},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return e},i=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),c=n.n(i),s=n("./src/store/actions/config.ts");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={nodeEnv:"production",version:"",productName:"",authDomain:"",authGoogleClientId:"",branchKey:"",favicon:"production",glyphUrl:"",lightStep:{name:"",host:"",token:"",appVersion:""},algolia:{appId:"",apiKeySearch:"",indexPrefix:"",host:""},isAmp:!1,publicUrl:"",googleAnalyticsCode:"",recaptchaKey:"",recaptcha3Key:"",signInWallCustomDomainCollectionIds:[],mediumOwnedAndOperatedCollectionIds:[],tierOneDomains:[],internalLinksPostIds:[],webpMiroImageIds:[],defaultImages:{},performanceTags:[],datadog:{clientToken:"",context:{deployment:{target:"production",tag:void 0,commit:void 0}},datacenter:"us"},sentry:{dsn:"",environment:"production"},collectionStructuredData:{},embeddedPostIds:{},sharedCdcMessaging:{COVID_APPLICABLE_TAG_SLUGS:[],COVID_APPLICABLE_TOPIC_NAMES:[],COVID_APPLICABLE_TOPIC_NAMES_FOR_TOPIC_PAGE:[],COVID_MESSAGES:{tierA:{text:"",markups:[]},tierB:{text:"",markups:[]},paywall:{text:"",markups:[]}},COVID_BANNER_POST_ID_OVERRIDE_WHITELIST:[]},embedPostRules:[],recircOptions:{},braintreeClientKey:""},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.a:return u({},e,{isAmp:t.isAmp});default:return e}},p=n("./src/store/actions/debug.ts");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case p.b:return h({},e,{performanceTraceUrl:t.performanceTraceUrl});case p.a:return h({},e,{originalSpanCarrier:t.originalSpanCarrier});default:return e}}var b=n("./node_modules/@babel/runtime/helpers/typeof.js"),v=n.n(b),E=n("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),y=n.n(E),O=n("./src/store/actions/multiVote.ts");function x(e){var t=function(e,t){if("object"!==v()(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==v()(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===v()(t)?t:String(t)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S={clapsPerPost:{}};function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case O.b:return w({},e,{clapsPerPost:w({},e.clapsPerPost,c()({},t.postId,{clapCount:t.clapCount,viewerClapCount:t.viewerClapCount,viewerHasClappedSinceFetch:t.viewerHasClappedSinceFetch}))});case O.a:var n=e.clapsPerPost,r=t.postId,o=(n[r],y()(n,[r].map(x)));return{clapsPerPost:o};default:return e}}var P=n("./src/store/actions/alternateUserTopBanner.ts"),C=n("./src/store/actions/branch.ts"),k=n("./src/store/actions/googleOneTap.ts"),T=n("./src/store/actions/navigation.ts"),I=n("./src/util/navigation.ts");function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A={host:"",hostname:"",currentLocation:"",susiModal:{step:null,operation:"login"},branch:{show:null,hasRendered:null,blockedByCTA:null},postRead:!1};function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case T.d:return N({},e,{currentHash:t.hash});case T.e:var n=Object(I.b)(e.host,t.path),r=e.currentLocation!==n;return N({},e,{currentLocation:r?n:e.currentLocation,referrer:r?e.currentLocation:e.referrer});case T.g:return N({},e,{referrerSource:t.referrerSource});case T.h:return N({},e,{responsesOpen:t.responsesOpen});case T.j:return N({},e,{unsafeRedirectUrl:t.unsafeRedirectUrl});case T.c:var o=t.duration,a=t.message,i=t.toastStyle;return N({},e,{enqueuedToast:{duration:o,message:a,toastStyle:i}});case T.b:return N({},e,{enqueuedToast:null});case C.d:return N({},e,{branch:N({},e.branch,{data:t.data})});case C.e:return N({},e,{branch:N({},e.branch,{show:!0})});case C.b:return N({},e,{branch:N({},e.branch,{hasRendered:t.hasRendered})});case C.a:return N({},e,{branch:N({},e.branch,{blockedByCTA:t.blockedByCTA})});case C.c:return N({},e,{branch:N({},e.branch,{show:!0})});case k.b:var c=t.hideGoogleOneTap;return N({},e,{hideGoogleOneTap:c});case k.a:var s=t.hasRenderedGoogleOneTap;return N({},e,{hasRenderedGoogleOneTap:s});case P.a:var l=t.hasRenderedAlternateUserBanner;return N({},e,{hasRenderedAlternateUserBanner:l});case T.a:return N({},e,{postPublishedType:null});case T.i:var u=t.susiModal;return N({},e,{susiModal:u});case T.f:var d=t.postRead;return N({},e,{postRead:d});default:return e}}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var M={user:{id:""},xsrf:"",isSpoofed:!1};function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"POPULATE_SESSION":return U({},e,{user:{id:t.userId},xsrf:t.xsrf,isSpoofed:t.isSpoofed});default:return e}}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{itemCount:0,sending:!1,timeout:null,backup:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INC_ITEM_COUNT":return H({},e,{itemCount:e.itemCount+1});case"DEC_ITEM_COUNT":return H({},e,{itemCount:e.itemCount-1});case"SET_ITEM_COUNT":return H({},e,{itemCount:t.itemCount});case"SET_SENDING":return H({},e,{sending:t.sending});case"ADD_TO_BACKUP":var n=H({},e.backup);return n[t.key]=t.value,H({},e,{backup:n});case"CLEAR_BACKUP":return H({},e,{backup:{}});case"SET_TIMEOUT_ID":return H({},e,{timeout:t.timeout});default:return e}}var z=n("./src/store/actions/tracing.ts");function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case z.a:return W({},e,{tracer:t.tracer,originalSpan:t.originalSpan});default:return e}}var Y=function(e){var t=r.b({config:m,debug:g,session:F,stats:V,navigation:L,client:a,multiVote:j,tracing:q}),n=r.c("undefined"!=typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():function(e){return e});return r.d(t,e,n)}},"./src/store/initialClientState.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c=function(){var e=window.__PRELOADED_STATE__;if(!e)throw new Error("Expected window.__PRELOADED_STATE__ to exist.");return i({},e,{config:i({},e.config,{isAmp:!1})})}},"./src/store/selectors/session.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return!e.match(/^lo_/)}},"./src/styles/breakpoints.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"xs",(function(){return r})),n.d(t,"sm",(function(){return o})),n.d(t,"md",(function(){return a})),n.d(t,"lg",(function(){return i})),n.d(t,"xl",(function(){return c}));var r=function(e){return"@media all and (max-width: ".concat(e.breakpoints.sm-.02,"px)")},o=function(e){return"@media all and (max-width: ".concat(e.breakpoints.md-.02,"px)")},a=function(e){return"@media all and (max-width: ".concat(e.breakpoints.lg-.02,"px)")},i=function(e){return"@media all and (max-width: ".concat(e.breakpoints.xl-.02,"px)")},c=function(e){return"@media all and (min-width: ".concat(e.breakpoints.xl,"px)")}},"./src/styles/colors.ts":function(e,t,n){"use strict";n.d(t,"B",(function(){return r})),n.d(t,"C",(function(){return o})),n.d(t,"t",(function(){return a})),n.d(t,"u",(function(){return i})),n.d(t,"v",(function(){return c})),n.d(t,"w",(function(){return s})),n.d(t,"A",(function(){return l})),n.d(t,"D",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"F",(function(){return m})),n.d(t,"y",(function(){return p})),n.d(t,"z",(function(){return f})),n.d(t,"x",(function(){return h})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return b})),n.d(t,"j",(function(){return v})),n.d(t,"l",(function(){return E})),n.d(t,"k",(function(){return y})),n.d(t,"n",(function(){return O})),n.d(t,"o",(function(){return x})),n.d(t,"f",(function(){return _})),n.d(t,"i",(function(){return w})),n.d(t,"g",(function(){return S})),n.d(t,"h",(function(){return j})),n.d(t,"m",(function(){return P})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return k})),n.d(t,"p",(function(){return T})),n.d(t,"E",(function(){return I})),n.d(t,"s",(function(){return R})),n.d(t,"q",(function(){return N})),n.d(t,"r",(function(){return A}));var r=function(e){return"rgba(3, 168, 124, ".concat(e,")")},o=function(e){return"rgba(1, 143, 105, ".concat(e,")")},a="rgba(52, 231, 154, ".concat(1,")"),i=r(1),c=function(e){return"rgba(2, 158, 116, ".concat(e,")")}(1),s=o(1),l=function(e){return"rgba(0, 0, 0, ".concat(e,")")},u=function(e){return"rgba(255, 255, 255, ".concat(e,")")},d=l(1),m=u(1),p="rgba(12, 242, 143, .2)",f="rgba(12, 242, 150, .5)",h="rgba(12, 235, 160, .9)",g="rgba(158, 213, 237, 0.5)",b="#54AFCC",v="#D3E9DA",E="#E8F3EC",y="#01B595",O="#218799",x="#E2Eff8",_="#DFD8E3",w="#FEF2ED",S="#FCE7DD",j="#EE6F70",P="#F6F1E4",C="#B2B2B2",k="#757575",T="rgb(204, 84, 84)",I="rgb(204, 84, 84)",R="#006AF5",N="rgb(59, 89, 152)",A="rgb(29, 49, 91)"},"./src/styles/flex.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return{display:"flex",flexDirection:e.flexDirection,justifyContent:e.justifyContent,alignItems:e.alignItems}}},"./src/styles/font.ts":function(e,t,n){"use strict";n.d(t,"l",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"i",(function(){return l})),n.d(t,"o",(function(){return d})),n.d(t,"p",(function(){return m})),n.d(t,"n",(function(){return g})),n.d(t,"f",(function(){return b})),n.d(t,"d",(function(){return v})),n.d(t,"g",(function(){return E})),n.d(t,"k",(function(){return y})),n.d(t,"c",(function(){return O})),n.d(t,"b",(function(){return x})),n.d(t,"r",(function(){return _})),n.d(t,"s",(function(){return w})),n.d(t,"h",(function(){return S})),n.d(t,"j",(function(){return j})),n.d(t,"a",(function(){return P})),n.d(t,"q",(function(){return C})),n.d(t,"m",(function(){return k}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./src/framework/design-system/util/style/responsiveStyles.ts"),i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return-1===e.indexOf(" ")?e:'"'.concat(e,'"')})).join(", ")},c=i("medium-content-title-font","Georgia","Cambria","Times New Roman","Times","serif"),s=i("medium-content-sans-serif-font","Lucida Grande","Lucida Sans Unicode","Lucida Sans","Geneva","Arial","sans-serif"),l=i("medium-content-serif-font","Georgia","Cambria","Times New Roman","Times","serif"),u=i("medium-content-slab-serif-font","Georgia","Cambria","Times New Roman","Times","serif"),d=i("medium-content-title-font","Georgia","Cambria","Times New Roman","Times","serif"),m=i("medium-marketing-display-font","Georgia","Cambria","Times New Roman","Times","serif"),p=i("Menlo","Monaco","Courier New","Courier","monospace"),f=i("medium-content-sans-serif-font","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Open Sans","Helvetica Neue","sans-serif"),h=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var i=(n||{}).fontSize,c={fontFamily:e,fontWeight:t};if(i&&r){var s={fontSize:Object(a.c)((function(e){var t=o()(e,1)[0];return"".concat(t,"px")}),i)};Object.assign(c,s)}return c}}},g=h(c,400),b=h(s,600),v=h(s,700),E=h(s,300),y=h(l,400),O=(h(l,700),h(p,700)),x=h(u,300),_=h(p,400),w=h(f,400),S=(h(d,500),h(m,500),{xHeight:.342,baseline:.22}),j={xHeight:.375,baseline:.17},P={xHeight:.342,baseline:.22},C={xHeight:0,baseline:0},k={xHeight:.5,baseline:.16}},"./src/styles/mediaTypes.ts":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=function(e){return"@media print"},o=function(e){return"@media (prefers-reduced-motion: ".concat(e,")")},a=function(e,t,n,r){var o=r?window.innerWidth-r.offsetWidth:0,a=2*(t+n+e.grid.xStep*e.grid.marginSteps.lg)+e.maxWidths.inset+o;return"@media all and (max-width: ".concat(a,"px)")}},"./src/styles/newBreakpoints.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"xs",(function(){return r})),n.d(t,"sm",(function(){return o})),n.d(t,"md",(function(){return a})),n.d(t,"lg",(function(){return i})),n.d(t,"xl",(function(){return c}));var r=function(e){return"@media all and (max-width: ".concat(e.breakpoints.sm-.02,"px)")},o=function(e){return"@media all and "+"(min-width: ".concat(e.breakpoints.sm,"px) and ")+"(max-width: ".concat(e.breakpoints.md-.02,"px)")},a=function(e){return"@media all and "+"(min-width: ".concat(e.breakpoints.md,"px) and ")+"(max-width: ".concat(e.breakpoints.lg-.02,"px)")},i=function(e){return"@media all and "+"(min-width: ".concat(e.breakpoints.lg,"px) and ")+"(max-width: ".concat(e.breakpoints.xl-.02,"px)")},c=function(e){return"@media all and (min-width: ".concat(e.breakpoints.xl,"px)")}},"./src/styles/position.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return{position:"absolute",top:0,left:0,height:"100%",width:"100%"}}},"./src/styles/theme.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("./src/framework/design-system/util/fonts.ts"),o=n("./src/styles/colors.ts"),a=n("./src/styles/font.ts"),i={newFonts:{body:{family:a.i,weight:400,boldWeight:700,fontSize:{S:18,M:21},lineHeight:{S:28,M:32},cropTop:.375,cropBottom:.17},detail:{family:a.e,weight:300,boldWeight:600,fontSize:{XS:13,S:15,M:16,L:18},lineHeight:{XS:16,S:20,M:20,L:24},cropTop:.342,cropBottom:.22},heading:{family:a.e,weight:600,fontSize:{XXS:15,XS:18,S:22,M:28,L:36,XL:48},lineHeight:{XXS:18,XS:20,S:28,M:36,L:40,XL:56},cropTop:.342,cropBottom:.22},marketing:{family:a.p,weight:500,fontSize:{XS:18,S:24,M:28,L:32,XL:48,XXL:70,XXXL:85},lineHeight:{XS:24,S:28,M:32,L:36,XL:58,XXL:80,XXXL:85},cropTop:.26,cropBottom:.25},overline:{family:a.e,weight:300,fontSize:{S:12,M:15,L:18},lineHeight:{S:15,M:20,L:24},cropTop:.342,cropBottom:.22},pullQuote:{family:a.l,weight:400,fontSize:{S:24,M:30},lineHeight:{S:32,M:44},cropTop:.38,cropBottom:.17},subtitle:{family:a.e,weight:300,fontSize:{S:16,M:18,L:24},lineHeight:{S:20,M:24,L:32},cropTop:.342,cropBottom:.22},title:{family:a.l,weight:400,fontSize:{XXS:20,XS:24,S:30,M:40,L:48,XL:66},lineHeight:{XXS:28,XS:32,S:40,M:48,L:60,XL:72},cropTop:.38,cropBottom:.17}},scale:{ui:"REGULAR"},breakpoints:{xs:0,sm:552,md:728,lg:904,xl:1080},maxWidths:{inset:680,outset:1192},grid:{xStep:4,yStep:4,gutterSteps:{xs:6,sm:6,md:7,lg:8,xl:8},marginSteps:{xs:6,sm:6,md:12,lg:16,xl:16},xlMaxContentWidth:1320,columnWidth:64,gutterWidth:24},font:{elevate:r.a,marketing:r.d,uiHeavy:r.b,uiRegular:r.c},borderRadius:{regular:4},borderWidth:1,borderWidthThick:2,borderStyle:"solid",backgroundColor:o.F,accentColor:{border:{light:o.t,normal:o.u,dark:o.v,darker:o.w},fill:{light:o.t,normal:o.u,dark:o.v},fillTransparent:{light:o.B(.5),normal:o.B(.75),dark:o.C(.75)},text:{light:o.u,normal:o.v,dark:o.w}},baseColor:{background:{light:o.A(.02),normal:o.A(.05),dark:o.A(.07)},border:{lighter:o.A(.1),light:o.A(.2),normal:o.A(.34),dark:o.A(.54),darker:o.A(.84)},text:{lighter:o.A(.54),light:o.A(.76),normal:o.A(.84),dark:o.A(.9),darker:o.A(.97)},fill:{lighter:o.A(.54),light:o.A(.76),normal:o.A(.84),dark:o.A(.9),darker:o.A(.97)},overlay:{lighter:o.D(.2),light:o.D(.4),normal:o.D(.5),dark:o.D(.95)}},brandColor:{sage:{light:o.l,normal:o.j,dark:o.k},rose:{light:o.i,normal:o.g,dark:o.h}},errorColor:o.p,warnColor:o.E,highlightColor:{light:o.y,normal:o.z,dark:o.x}}},"./src/styles/zIndex.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));var r={cardTop1:11,cardTop2:8,cardTop3:7,cardCur:10,cardBottom1:9,cardBottom2:8,cardBottom3:7,foreground:1,cardContainer:2,authorLockup:3,cursor:1e3};t.a={metabar:500,metabarProgress:510,responseSidebarPopover:530,metabarCenter:600,popover:700,modal:800,floating:900,toast:900,loading:1e3,debug:1100,selectionMenu:400}},"./src/svg/arrow-left-19px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o.a.createElement("path",{d:"M11.47 13.97L6.99 9.48 11.47 5l.55.5-3.99 3.98 4 4z",fillRule:"evenodd"});t.a=function(e){return o.a.createElement("svg",a({className:"arrow-left-19px_svg__svgIcon-use",width:19,height:19,viewBox:"0 0 19 19"},e),i)}},"./src/svg/checkmark-19px-filled.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o.a.createElement("path",{d:"M1.64 6.81l-.34.36.34.35 3.8 3.83.36.36.36-.36L14.36 3l.34-.35-.34-.35-.62-.65-.36-.37-.36.37L5.8 9.02 3 6.17l-.36-.36-.36.36-.64.64z",stroke:"#fff"});t.a=function(e){return o.a.createElement("svg",a({width:19,height:19,fill:"none",viewBox:"0 0 16 13"},e),i)}},"./src/svg/exclamation-25px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o.a.createElement("path",{d:"M13.3 13.9l.14-7.08h-1.78l.15 7.08h1.48zm-.74 1.43c-.68 0-1.13.44-1.13 1.12 0 .67.45 1.12 1.13 1.12.68 0 1.13-.45 1.13-1.12 0-.68-.44-1.12-1.12-1.12"}),c=o.a.createElement("path",{d:"M12.5 21a8.5 8.5 0 1 0 0-17 8.5 8.5 0 0 0 0 17zm0 1a9.5 9.5 0 1 1 0-19 9.5 9.5 0 0 1 0 19z"});t.a=function(e){return o.a.createElement("svg",a({width:25,height:25,viewBox:"0 0 25 25"},e),i,c)}},"./src/svg/facebook-square-25px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o.a.createElement("path",{d:"M20.3 4H4.7a.7.7 0 0 0-.7.7v15.6c0 .38.32.7.7.7h8.33v-6.38h-2.12v-2.65h2.12V9.84c0-2.2 1.4-3.27 3.35-3.27.94 0 1.75.07 1.98.1v2.3H17c-1.06 0-1.31.5-1.31 1.24v1.76h2.65l-.53 2.65H15.7l.04 6.38h4.56a.7.7 0 0 0 .71-.7V4.7a.7.7 0 0 0-.7-.7",fillRule:"evenodd"});t.a=function(e){return o.a.createElement("svg",a({width:25,height:25,fill:"#3B5998"},e),i)}},"./src/svg/logo-wordmark-138x27px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o.a.createElement("path",{d:"M130 27V16.96c0-3.26-.15-5.47-2.44-5.47-1.16 0-2.13.57-2.86 1.51.22.9.3 1.97.3 3.13 0 2.24.04 5.1 0 7.97 0 .47-.05.58.24.87L127 27h-8V16.96c0-3.3-.46-5.47-2.7-5.47-1.17 0-1.65.65-2.3 1.6V24.1c0 .47-.03.58.3.87L116 27h-8V11.56c0-.47-.07-.58-.36-.9L106 9h8v3.61c.9-2.53 2.44-4.11 5.37-4.11 2.68 0 4.5 1.47 5.26 4.26.83-2.4 3-4.26 6.05-4.26 3.59 0 5.32 2.63 5.32 7.63 0 2.39.04 5.1 0 7.97 0 .47 0 .65.25.87L138 27h-8zm-27-3.04c0 .47-.15.61.18.9L105 27h-8v-4c-.9 2.46-2.96 4-5.64 4-3.58 0-5.36-2.61-5.36-7.54 0-2.39-.04-5 0-7.94 0-.47-.11-.58-.4-.87L84 9h8v9.63c0 3.22.27 5.4 2.3 5.4 1.16 0 2.08-.73 2.7-1.63V11.56c0-.47-.13-.58-.42-.9L95 9h8v14.96zM78 .24a3.25 3.25 0 0 1 3.25 3.25A3.25 3.25 0 1 1 78 .25zM75 27V11.56c0-.47.17-.58-.12-.9L73 9h8v15.1c0 .47-.01.68.24.9L83 27h-8zM64 11.7a3.1 3.1 0 0 0-2.4-1.12c-1.95 0-3.84 1.78-3.84 7.03 0 4.93 1.63 6.67 3.66 6.67.9 0 1.85-.43 2.58-1.38V11.7zM70 24c0 .46-.03.57.3.86L72 27h-8v-3.7c-1.09 2.5-3.05 3.7-5.37 3.7-4.13 0-7.13-3.26-7.13-9.2 0-5.59 3.25-9.32 7.78-9.32 2.36 0 3.92 1.12 4.72 2.9v-7.5c0-.47-.08-.62-.4-.9L62 1.3 70 .3v23.7zm-26.1-8c.04-.47.04-.67.04-.81 0-4.75-.94-5.44-2.44-5.44s-2.85 1-2.93 6.25h5.33zm-5.33 1c0 4.71 2.4 6.63 5.19 6.63 2.17 0 4.3-.94 5.5-3.33h.08c-.95 4.56-3.77 6.7-8.01 6.7-4.57 0-8.88-2.75-8.88-9.13 0-6.7 4.28-9.39 9.1-9.39 3.84 0 7.93 1.81 7.93 7.65 0 .1 0 .44-.03.87H38.57zM31.5 27h-12l2.39-2.65c.08-.08.11-.4.11-.87V7l-7.87 20L5.58 8.37c-.22-.47-.4-1.08-.58-1.6v13.85c0 .58-.04.65.36 1.2L9 27H0l3.64-5.18c.4-.55.36-.62.36-1.2V6.27c0-.62.1-.69-.2-1.05L1 1h8.5l7.35 16.3L23.24 1h8.26l-2.2 2.75c-.33.33-.3.6-.3 1.1V23.5c0 .47 0 .75.14.87L31.5 27z"});t.a=function(e){return o.a.createElement("svg",a({width:138,height:27,viewBox:"0 0 138 27"},e),i)}},"./src/svg/overflow-dots-filled-25px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o.a.createElement("path",{d:"M5 12.5c0 .55.2 1.02.59 1.41.39.4.86.59 1.41.59.55 0 1.02-.2 1.41-.59.4-.39.59-.86.59-1.41 0-.55-.2-1.02-.59-1.41A1.93 1.93 0 0 0 7 10.5c-.55 0-1.02.2-1.41.59-.4.39-.59.86-.59 1.41zm5.62 0c0 .55.2 1.02.58 1.41.4.4.87.59 1.42.59.55 0 1.02-.2 1.41-.59.4-.39.59-.86.59-1.41 0-.55-.2-1.02-.59-1.41a1.93 1.93 0 0 0-1.41-.59c-.55 0-1.03.2-1.42.59-.39.39-.58.86-.58 1.41zm5.6 0c0 .55.2 1.02.58 1.41.4.4.87.59 1.43.59.56 0 1.03-.2 1.42-.59.39-.39.58-.86.58-1.41 0-.55-.2-1.02-.58-1.41a1.93 1.93 0 0 0-1.42-.59c-.56 0-1.04.2-1.43.59-.39.39-.58.86-.58 1.41z",fillRule:"evenodd"});t.a=function(e){return o.a.createElement("svg",a({className:"overflow-dots-filled-25px_svg__svgIcon-use",width:25,height:25},e),i)}},"./src/svg/question-mark-15px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o.a.createElement("g",{fillRule:"evenodd"},o.a.createElement("path",{d:"M13 7.5a5.5 5.5 0 1 0-11 0 5.5 5.5 0 0 0 11 0zm-12 0a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0z"}),o.a.createElement("path",{d:"M4.81 5.74h1.6c.03-.65.47-1.07 1.15-1.07.66 0 1.11.4 1.11.94s-.23.82-.98 1.27c-.81.48-1.14 1-1.06 1.94l.01.33H8.2v-.31c0-.57.22-.85 1-1.3.83-.5 1.26-1.1 1.26-1.99 0-1.35-1.11-2.28-2.79-2.28-1.8 0-2.82 1-2.85 2.47zm2.67 6.24c.66 0 1.06-.39 1.06-1 0-.62-.4-1-1.06-1s-1.07.38-1.07 1c0 .61.41 1 1.07 1z"}));t.a=function(e){return o.a.createElement("svg",a({width:15,height:15,viewBox:"0 0 15 15"},e),i)}},"./src/svg/search-25px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o.a.createElement("path",{d:"M20.07 18.93l-4.16-4.15a6 6 0 1 0-.88.88l4.15 4.16a.62.62 0 1 0 .89-.89zM6.5 11a4.75 4.75 0 1 1 9.5 0 4.75 4.75 0 0 1-9.5 0z"});t.a=function(e){return o.a.createElement("svg",a({width:25,height:25,viewBox:"0 0 25 25"},e),i)}},"./src/svg/star-15px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o.a.createElement("path",{d:"M7.44 2.32c.03-.1.09-.1.12 0l1.2 3.53a.29.29 0 0 0 .26.2h3.88c.11 0 .13.04.04.1L9.8 8.33a.27.27 0 0 0-.1.29l1.2 3.53c.03.1-.01.13-.1.07l-3.14-2.18a.3.3 0 0 0-.32 0L4.2 12.22c-.1.06-.14.03-.1-.07l1.2-3.53a.27.27 0 0 0-.1-.3L2.06 6.16c-.1-.06-.07-.12.03-.12h3.89a.29.29 0 0 0 .26-.19l1.2-3.52z"});t.a=function(e){return o.a.createElement("svg",a({className:"star-15px_svg__svgIcon-use",width:15,height:15,viewBox:"0 0 15 15"},e),i)}},"./src/svg/twitter-filled-25px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o.a.createElement("path",{d:"M22.3 4.3c-.82.51-1.72.88-2.67 1.08a4.25 4.25 0 0 0-6.18-.12 4.3 4.3 0 0 0-1.26 3.03c0 .34.04.67.08 1a12.2 12.2 0 0 1-8.81-4.52 4.8 4.8 0 0 0-.62 2.14 4.44 4.44 0 0 0 1.92 3.6 4.13 4.13 0 0 1-1.91-.55v.07c0 2.06 1.47 3.8 3.44 4.21-.37.08-.74.13-1.15.15l-.76-.07a4.32 4.32 0 0 0 3.98 2.99A9.03 9.03 0 0 1 3 19.14l-1-.06A12.26 12.26 0 0 0 8.6 21c7.88 0 12.2-6.55 12.17-12.18.02-.23.02-.41 0-.62a8.06 8.06 0 0 0 2.15-2.23c-.77.37-1.6.6-2.45.7a4.1 4.1 0 0 0 1.84-2.38"});t.a=function(e){return o.a.createElement("svg",a({width:25,height:25,viewBox:"0 0 25 25"},e),i)}},"./src/svg/x-19px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o.a.createElement("path",{d:"M13.8 4.6L9.5 8.89 5.21 4.6l-.61.61 4.29 4.3-4.29 4.28.61.62 4.3-4.3 4.28 4.3.62-.62-4.3-4.29 4.3-4.29",fillRule:"evenodd"});t.a=function(e){return o.a.createElement("svg",a({width:19,height:19,viewBox:"0 0 19 19"},e),i)}},"./src/svg/x-25px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=o.a.createElement("path",{d:"M18.13 6.11l-5.61 5.61-5.6-5.61-.81.8 5.61 5.61-5.61 5.61.8.8 5.61-5.6 5.61 5.6.8-.8-5.6-5.6 5.6-5.62"});t.a=function(e){return o.a.createElement("svg",a({width:25,height:25,viewBox:"0 0 25 25"},e),i)}},"./src/util/CopyUrl.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./src/framework/design-system/components/index.ts"),c=function(e){var t=e.url,n=e.onCopy,r=e.children,c=e.flexGrow,s=a.useState(!1),l=o()(s,2),u=l[0],d=l[1],m=a.useState(null),p=o()(m,2),f=p[0],h=p[1],g=a.useRef(null);a.useEffect((function(){return function(){f&&clearTimeout(f)}}),[]);var b=a.useCallback((function(){n&&n();var e=g.current;if(e){if(e.disabled=!1,e.select(),e){var t=document.createRange();t.selectNode(e);var r=window.getSelection();r&&r.addRange(t),e.setSelectionRange(0,e.value.length),document.execCommand("copy"),(r=window.getSelection())&&r.removeAllRanges()}e.disabled=!0,d(!0),f&&clearTimeout(f),h(setTimeout((function(){return d(!1)}),2e3))}}),[]);return a.createElement(i.b,{display:"flex",alignItems:"flex-start",flexGrow:c},a.createElement("form",null,a.createElement("input",{disabled:!0,readOnly:!0,type:"text",ref:g,value:t,style:{position:"fixed",top:"-100vh"}}),a.createElement(i.t,{onClick:function(e){e.preventDefault(),b()},linkStyle:"OBVIOUS"},r(u))))}},"./src/util/LocalStorage.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(c),l=n("./src/log/index.ts"),u=function(){var e=!1;try{window.localStorage||(e=!1),window.localStorage.setItem("storage-test","1"),e=!!window.localStorage.getItem("storage-test")}catch(t){e=!1}finally{return e&&window.localStorage.removeItem("storage-test"),e}}(),d=function(){function e(){o()(this,e),s()(this,"data",void 0),this.data={}}return i()(e,[{key:"setItem",value:function(e,t){this.data[e]=t}},{key:"getItem",value:function(e){return this.data[e]}},{key:"removeItem",value:function(e){delete this.data[e]}}]),e}(),m=function(){function e(t){o()(this,e),s()(this,"prefix",void 0),s()(this,"storage",void 0),this.prefix=t,this.storage=u?window.localStorage:e.fallbackStorage}return i()(e,[{key:"withPrefix",value:function(e){return"".concat(this.prefix,"|").concat(e)}},{key:"set",value:function(e,t){this.storage.setItem(this.withPrefix(e),JSON.stringify(t))}},{key:"get",value:function(e,t){var n=this.storage.getItem(this.withPrefix(e));if(n)try{return JSON.parse(n)}catch(t){l.a.warn({msg:"Error parsing JSON from LocalStorage",err:t,key:e})}return t}},{key:"getItems",value:function(e){var t=this,n=this.storage instanceof d?this.storage.data:this.storage,r=Object.keys(n);return r.sort(),r.reduce((function(n,r){return void 0!==e&&Object.keys(n).length>=e?n:r.startsWith(t.prefix)&&(r=r.split("|")[1])?(n[r]=t.get(r),n):n}),{})}},{key:"remove",value:function(e){this.storage.removeItem(this.withPrefix(e))}},{key:"getKeys",value:function(){var e=[],t=this.withPrefix(""),n=this.storage;for(var r in n)0===r.indexOf(t)&&e.push(r.slice(t.length));return e.sort(),e}},{key:"getCount",value:function(){return this.getKeys().length}},{key:"clean",value:function(){var e=this;this.getKeys().forEach((function(t){return e.remove(t)}))}}]),e}();s()(m,"fallbackStorage",new d)},"./src/util/color.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return g}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/lodash/round.js"),i=n.n(a),c=n("./node_modules/lodash/clamp.js"),s=n.n(c),l=/^#([a-fA-F0-9]{2})([a-fA-F0-9]{6})$/,u=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*([0-9.]+)\)$/,d=function(e){if(!function(e){return l.test(e)}(e))throw new Error("Invalid color string");return[parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),parseInt(e.slice(7,9),16),parseInt(e.slice(1,3),16)/255]},m=function(e){return"rgba(".concat(function(e){var t=o()(e,4),n=t[0],r=t[1],a=t[2],c=t[3];return[i()(n),i()(r),i()(a),i()(c,3)]}(e).join(", "),")")},p=function(e){var t=u.exec(e);if(!t)throw new Error("Invalid rgba string");return[+t[1],+t[2],+t[3],+t[4]]},f=function(e){return m(d(e))},h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;return e*(n=s()(n,0,1))+t*(1-n)},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,r=o()(e,4),a=r[0],i=r[1],c=r[2],s=r[3],l=o()(t,4),u=l[0],d=l[1],m=l[2],p=l[3];return[h(a,u,n),h(i,d,n),h(c,m,n),h(s,p,n)]}},"./src/util/constants.ts":function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return c}));var r=1e3,o=60*r,a=60*o,i=24*a,c=7*i},"./src/util/dom.ts":function(e,t,n){"use strict";function r(e){return e.getBoundingClientRect()}function o(e){var t=c();return{left:e.left+t.left,top:e.top+t.top,width:e.width,height:e.height}}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.left||0,r=t.top||0,o=t.right||0,a=t.bottom||0;return{left:e.left+n,top:e.top+r,width:e.width-n+o,height:e.height-r+a}}function i(){return{left:0,top:0,width:window.innerWidth,height:window.innerHeight}}function c(){var e=document.documentElement||{},t=document.body||{};return{left:e.scrollLeft||t.scrollLeft||0,top:e.scrollTop||t.scrollTop||0,width:e.scrollWidth||t.scrollWidth||0,height:e.scrollHeight||t.scrollHeight||0}}function s(e){return l(i(),e)}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.max(e.left,t.left),o=Math.max(e.top,t.top),a=Math.min(e.left+e.width,t.left+t.width),i=Math.min(e.top+e.height,t.top+t.height);return i-o>=-n&&a-r>=-n}function u(){return"undefined"!=typeof window&&window.devicePixelRatio||2}n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"h",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"b",(function(){return u}))},"./src/util/glyph.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){var t=e.fontFamilyPath,n=e.glyphFontSet,r=e.glyphUrl,o=e.isAmp,a="".concat(r,"/css");return"".concat(a).concat(o?"":t,"/").concat(n,".css")}},"./src/util/hooks/useScript.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=new Set,c=function(e,t){var n=a.useState({loaded:!1,error:!1}),r=o()(n,2),c=r[0],s=r[1];return a.useEffect((function(){if(!i.has(e)){i.add(e);var n=document.createElement("script");n.src=e,n.async=!0,t&&(n=Object.assign(n,t));var r=function(){s({loaded:!0,error:!1})},o=function(){i.has(e)&&i.delete(e),n.remove(),s({loaded:!0,error:!0})};return n.addEventListener("load",r),n.addEventListener("error",o),document.body.appendChild(n),function(){n.removeEventListener("load",r),n.removeEventListener("error",o)}}s({loaded:!0,error:!1})}),[e]),[c.loaded,c.error]}},"./src/util/hooks/useUserAgentMobileOrTablet.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/react/index.js"),i=n("./src/util/useragent.ts"),c=function(){var e=a.useState(!1),t=o()(e,2),n=t[0],r=t[1];return a.useEffect((function(){r(Object(i.d)(navigator.userAgent))}),[]),n}},"./src/util/miroImage.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return u}));var r,o=n("./src/util/dom.ts");!function(e){e.Resample="RESAMPLE",e.Crop="CROP",e.Letterbox="LETTERBOX",e.Proxy="PROXY"}(r||(r={}));var a=/@2x\.\w+$/,i=/\.(jpg|jpeg|png)$/,c=function(e){var t=e.miroId,n=e.width,a=e.height,c=e.strategy,s=e.cropType,l=void 0===s?"c":s,u=e.blur,d=e.verticalGradient,m=e.darken,p=e.lighten,f=e.freezeGifs,h=void 0===f||f,g=e.focusPercentX,b=e.focusPercentY,v=e.ignorePixelRatio,E=void 0!==v&&v,y=e.leftPosition,O=void 0===y?0:y,x=e.topPosition,_=void 0===x?0:x,w=e.quality,S=e.webp,j=void 0!==S&&S,P=[r.Resample,r.Proxy];if(void 0===a&&c&&!P.includes(c))throw new Error("MiroUrl: Expected a height param when using ".concat(c," but none given."));a=Math.round(a||0),n=Math.round(n);var C=[],k=[];C.push("https://miro.medium.com");var T=g&&g>=0&&b&&b>=0;/\.gif$/.test(t)&&h&&C.push("freeze");var I=E?1:Object(o.b)(),R=Math.round(n*I),N=Math.round(a*I);switch(c){case"CROP":T?(g=Math.round(g||0),b=Math.round(b||0),C.push("focal",R,N,g,b)):C.push("fit",l,R,N);break;case"LETTERBOX":C.push("letterbox",R,N,O,_);break;case"RESAMPLE":C.push("max",R);break;case"PROXY":default:C.push("proxy")}if(d){var A=d.start,L=d.end,D=d.opacity;C.push("gradv",A,L,D)}m&&C.push("darken",m),p&&C.push("lighten",p),u&&C.push("blur",u),w&&k.push("q=".concat(w));var U=j&&i.test(t);C.push(U?t.replace(i,".webp"):t);var M=k.join("&");return C.join("/")+(M?"?".concat(M):"")},s=function(e){var t=e.miroId,n=e.aspectRatio,o=e.croppedWidth,a=e.originalWidth,i=e.originalHeight,s=e.focusPercentX,l=e.focusPercentY;return c(s&&l&&(a&&i&&i*n>o)?{focusPercentX:s,focusPercentY:l,height:Math.round(o/n),ignorePixelRatio:!0,miroId:t,strategy:r.Crop,width:o}:{miroId:t,strategy:r.Resample,width:o,ignorePixelRatio:!0})},l=function(e){var t=e.miroId,n=e.width,o=e.height;return c({miroId:t,width:n*(n/o>1?30/n:30/o),freezeGifs:!0,strategy:r.Resample,quality:20})},u=function(e){return a.test(e)}},"./src/util/navigation.ts":function(e,t,n){"use strict";n.d(t,"h",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return m})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"g",(function(){return h})),n.d(t,"f",(function(){return g}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/querystring-es3/index.js"),i=n("./node_modules/url/url.js"),c=n.n(i);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t){var n=c.a.parse(e,!1,!0);return!!n&&(!n.hostname||n.hostname===t)}function u(e){var t=c.a.parse(e,!1,!0);return t&&t.hostname||""}function d(e){var t=c.a.parse(e,!1,!0);return t&&t.path?t.path:""}function m(e,t,n){var r=c.a.parse(e,!1,!0);return n.pathname+(n.search||"")===r.path&&(!r.hostname||r.hostname===t)}function p(e,t){var n=Object(i.parse)(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(a.parse)(n.query||""),{},t);return n.search=Object(a.stringify)(r),Object(i.format)(n)}function f(e,t){return"https://".concat(e).concat(t)}var h=function(e,t){var n="http[s]?://[^/]*"+t;return null!=e.match(n)},g=function(e){var t=u(e);return/^(.*\.)?medium\.com/i.test(t)}},"./src/util/numbers.ts":function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"g",(function(){return m})),n.d(t,"e",(function(){return p}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),i=n.n(a);function c(e){if(isNaN(e))return String(e);for(var t=["","K","M"],n=e=e?Math.round(e):0,r=e%1e3/1e3,o=0;e>999&&o<t.length;o++)r=e%1e3,n=e,e=Math.floor(e/1e3);if(o>=t.length)return n+t[t.length-1];for(var a=e+1,i=0;a%10==0&&i<9;i++)a/=10;var c=-1!==[1,2,5,null].indexOf(a),s=e<100&&c,l=e<20||c&&!s;return e+(s&&r>=990?".99":s&&r>=980?".98":s&&r>=970?".97":s&&r>=960?".96":s&&r>=950?".95":s&&r>=940?".94":s&&r>=930?".93":s&&r>=920?".92":s&&r>=910?".91":(s||l)&&r>=900?".9":l&&r>=800?".8":l&&r>=700?".7":l&&r>=600?".6":l&&r>=500?".5":l&&r>=400?".4":l&&r>=300?".3":l&&r>=200?".2":l&&r>=100?".1":"")+t[o]}function s(e){return Math.max(1,Math.ceil(e))}function l(e){return null===e?"N/A":e<60?"".concat(e%60," sec"):e%60!=0?"".concat(Math.round(e/60)," min ").concat(e%60," sec"):"".concat(Math.round(e/60)," min")}function u(e){var t=Math.floor(e/60),n=Math.floor(e%60),r=t<1?Math.round(60*(e-n)):0;return e<1?"".concat(Math.round(r)," sec"):(t>0?"".concat(t," hr "):"")+"".concat(n," min")+(t<1?" ".concat(r," sec"):"")}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";if("USD"===t)return"$".concat(e.toFixed(2).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"));throw new Error("Unsupported currency: ".concat(t))}function m(e){return e.toLocaleString()}function p(e){var t,n=function(e){return Number(e)||0},r=function(e){return 0===e.length},a=function(e){return function(t){return t.slice(0,e)}},c=function(e){return function(t){return function(n){return e(t(n))}}},s=["","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],l=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"],u=["","thousand","million","billion","trillion","quadrillion","quintillion","sextillion","septillion","octillion","nonillion"],d=String(e);return"0"===d?"zero":c(function e(t){return function(n){return r(n)?[]:[a(t)(n)].concat(i()(e(t)(function(e){return function(t){return t.slice(e)}}(t)(n))))}}(3))((function(e){return e.slice(0).reverse()}))((t=d,t.split(""))).map((function(e){var t=o()(e,3),r=t[0],a=t[1],i=t[2];return[0===n(i)?"":s[i]+" hundred ",0===n(r)?l[a]:l[a]&&l[a]+"-"||"",s[a+r]||s[r]].join("")})).map((function(e,t){return""===e?e:"".concat(e," ").concat(u[t])})).filter(c((function(e){return!e}))(r)).reverse().join(" ").trim()}},"./src/util/observable/index.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(c),l=function(){function e(){o()(this,e),s()(this,"result",null),s()(this,"observers",[]),s()(this,"closed",!1)}return i()(e,[{key:"observe",value:function(e){null!=this.result&&e(this.result),this.observers.push(e)}},{key:"map",value:function(t){var n=new e;return this.observe((function(e){n.set(t(e))})),n}},{key:"set",value:function(e){if(!this.closed){this.result=e;var t=!0,n=!1,r=void 0;try{for(var o,a=this.observers[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){(0,o.value)(e)}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}}}},{key:"complete",value:function(){this.closed=!0}}]),e}()},"./src/util/performance.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"f",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return g})),n.d(t,"h",(function(){return b})),n.d(t,"g",(function(){return v})),n.d(t,"e",(function(){return E}));var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(c),l=n("./src/util/observable/index.ts");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=function(){function e(t,n){o()(this,e),s()(this,"start",void 0),s()(this,"end",void 0),this.start=t,this.end=n}return i()(e,null,[{key:"fromTiming",value:function(t,n){var r=window.performance.timing;return new e(r[t],r[n])}},{key:"fromEntry",value:function(t,n){var r=window.performance.timing,o=r.navigationStart+n.startTime+n.duration;return new e(r[t],o)}}]),i()(e,[{key:"duration",get:function(){return this.end-this.start}}]),e}(),p=new l.a,f=new l.a,h=new l.a,g=new l.a,b=new l.a,v=new l.a;var E=function(){window.perfMetrics&&window.perfMetrics.onFirstInputDelay((function(e,t){var n=window.performance.timing,r=t.timeStamp>1e12?t.timeStamp:n.navigationStart+t.timeStamp,o=r+e;g.set(new m(r,o))})),function(){var e,t,n,r,o,a;try{(a=new PerformanceObserver((function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=e.getEntriesByName("first-contentful-paint")[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var c=o.value;f.set(m.fromEntry("navigationStart",c)),a.disconnect()}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}))).observe({type:"paint",buffered:!0}),(o=new PerformanceObserver((function(e){var t=e.getEntries().pop();t&&(h.set(m.fromEntry("navigationStart",t)),o.disconnect())}))).observe({type:"largest-contentful-paint",buffered:!0}),t={sizes:d({},e={beacon:0,css:0,fetch:0,img:0,other:0,script:0,total:0,link:0,xmlhttprequest:0}),transferSizes:d({},e)},n=function(e,n,r){if(n[r]&&n.initiatorType){var o=n[r];t[e][n.initiatorType]+=o,t[e].total+=o}},r=new PerformanceObserver((function(e){var t=e.getEntries(),r=!0,o=!1,a=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done);r=!0){var s=i.value;n("sizes",s,"decodedBodySize"),n("transferSizes",s,"transferSize")}}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}})),setTimeout((function(){r.disconnect(),v.set(t),v.complete()}),2500),r.observe({type:"resource",buffered:!0}),b.set(!1)}catch(e){b.set(!0)}}(),new Promise((function(e){document&&"complete"!==document.readyState?document.addEventListener("readystatechange",(function t(){"complete"===document.readyState&&(document.removeEventListener("readystatechange",t),e())})):e()})).then((function(){setTimeout((function(){return function(){if(window.performance&&window.performance.timing){var e=null;if(window.performance.getEntriesByName){var t=window.performance.getEntriesByName("first-contentful-paint","paint");t.length>0&&(e=t[0])}var n={beforeDomainLookup:m.fromTiming("navigationStart","domainLookupStart"),domainLookup:m.fromTiming("domainLookupStart","domainLookupEnd"),connect:m.fromTiming("connectStart","connectEnd"),request:m.fromTiming("requestStart","responseStart"),response:m.fromTiming("responseStart","responseEnd"),load:m.fromTiming("navigationStart","loadEventStart"),processing:m.fromTiming("domLoading","loadEventStart")};null!=e&&Object.assign(n,{overallFCP:m.fromEntry("navigationStart",e),client:m.fromEntry("responseStart",e),render:m.fromEntry("responseEnd",e)}),p.set(n)}}()}),0)}))}},"./src/util/post/image.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r=n("./src/styles/theme.ts"),o=n("./src/util/miroImage.ts"),a=2400,i=function(e){var t=e.layout,n=e.originalWidth,i=e.originalHeight,c=e.sequenceAspectRatio,s=o.a.Resample,l=i&&n?i/n:null,u=n;switch(t){case"CROPPED_HEIGHT_PREVIEW":u=700,l=.3,s=o.a.Crop;break;case"CONSTRAINED_HEIGHT_PREVIEW":u=700,l&&240/l<u&&(u=240/l);break;case"INSET_LEFT":case"INSET_CENTER_SMALL":case"INSET_RIGHT":u=350;break;case"OUTSET_LEFT":u=500;break;case"OUTSET_ROW":case"OUTSET_ROW_CONTINUE":if(u=1e3,c&&l)u*=1/l/c;break;case"OUTSET_CENTER":u=1e3;break;case"FULL_WIDTH":case"FULL_WIDTH_CROPPED_COVER":u=a;break;default:u=700}n&&(u=Math.min(u,n));var d=[r.a.breakpoints.sm,r.a.breakpoints.md,r.a.breakpoints.lg,r.a.breakpoints.xl].reduce((function(e,t,n,r){var o=n===r.length-1;if(0===n&&e.push(.5*t),e.push(t),o&&(e.push(1.25*t),e.push(1.5*t),e.push(1.75*t),e.push(2*t)),!o){var a=(t+r[n+1])/2;e.push(a)}return e}),[]).reduce((function(e,t){return u>t&&e.push(Math.ceil(t)),e}),[]);return u>d[d.length-1]&&d.push(u),{width:u,height:l?l*u:void 0,strategy:s,otherWidths:d}}},"./src/util/referrers.ts":function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f}));var r=n("./node_modules/url/url.js"),o=n.n(r),a=/(https?|android-app):\/\/(m\.|www\.|l\.|lm\.|search\.|)(bing|duckduckgo|yahoo|yandex)(\.com|\.ru|\.co\.jp)/,i=/(https?|android-app):\/\/(www\.|)google(\.co[m]?|)(\.[a-z]*|)/,c=/android-app:\/\/com\.google\.android\.(googlequicksearchbox|gm)/,s=["twitter.com","t.co","twitterrific.com"],l=["www.facebook.com","facebook.com"],u=["news.google.com","news.url.google.com"],d=function(e){return o.a.parse(e).hostname},m=function(e){return!!e&&s.includes(d(e)||"")},p=function(e){return!!e&&l.includes(d(e)||"")},f=function(e,t){if(!e)return!1;var n=d(e)||"";return!!(u.includes(n)||a.test(e)||t&&t.includes("acceleratedMobilePages")||i.test(e)||c.test(e))}},"./src/util/routes.ts":function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return m})),n.d(t,"n",(function(){return p})),n.d(t,"O",(function(){return f})),n.d(t,"P",(function(){return h})),n.d(t,"R",(function(){return g})),n.d(t,"p",(function(){return b})),n.d(t,"X",(function(){return v})),n.d(t,"db",(function(){return E})),n.d(t,"eb",(function(){return y})),n.d(t,"a",(function(){return O})),n.d(t,"jb",(function(){return x})),n.d(t,"Y",(function(){return _})),n.d(t,"ib",(function(){return w})),n.d(t,"U",(function(){return S})),n.d(t,"ob",(function(){return j})),n.d(t,"nb",(function(){return P})),n.d(t,"lb",(function(){return C})),n.d(t,"qb",(function(){return k})),n.d(t,"ub",(function(){return T})),n.d(t,"rb",(function(){return I})),n.d(t,"vb",(function(){return R})),n.d(t,"wb",(function(){return N})),n.d(t,"sb",(function(){return A})),n.d(t,"zb",(function(){return L})),n.d(t,"Ab",(function(){return D})),n.d(t,"Bb",(function(){return U})),n.d(t,"Cb",(function(){return M})),n.d(t,"Db",(function(){return F})),n.d(t,"Fb",(function(){return B})),n.d(t,"Eb",(function(){return H})),n.d(t,"Gb",(function(){return V})),n.d(t,"Hb",(function(){return z})),n.d(t,"Nb",(function(){return G})),n.d(t,"Ob",(function(){return W})),n.d(t,"Qb",(function(){return q})),n.d(t,"Rb",(function(){return Y})),n.d(t,"Pb",(function(){return K})),n.d(t,"Sb",(function(){return X})),n.d(t,"Vb",(function(){return Q})),n.d(t,"Ub",(function(){return $})),n.d(t,"Xb",(function(){return J})),n.d(t,"Wb",(function(){return Z})),n.d(t,"Yb",(function(){return ee})),n.d(t,"bc",(function(){return te})),n.d(t,"cc",(function(){return ne})),n.d(t,"ic",(function(){return re})),n.d(t,"ec",(function(){return oe})),n.d(t,"kc",(function(){return ae})),n.d(t,"dc",(function(){return ie})),n.d(t,"hc",(function(){return ce})),n.d(t,"jc",(function(){return se})),n.d(t,"gc",(function(){return le})),n.d(t,"fc",(function(){return ue})),n.d(t,"ac",(function(){return de})),n.d(t,"hb",(function(){return me})),n.d(t,"gb",(function(){return pe})),n.d(t,"uc",(function(){return fe})),n.d(t,"vc",(function(){return he})),n.d(t,"wc",(function(){return ge})),n.d(t,"qc",(function(){return be})),n.d(t,"lc",(function(){return ve})),n.d(t,"oc",(function(){return Ee})),n.d(t,"mc",(function(){return ye})),n.d(t,"nc",(function(){return Oe})),n.d(t,"pc",(function(){return xe})),n.d(t,"rc",(function(){return _e})),n.d(t,"tc",(function(){return we})),n.d(t,"sc",(function(){return Se})),n.d(t,"xc",(function(){return je})),n.d(t,"v",(function(){return Ce})),n.d(t,"F",(function(){return ke})),n.d(t,"r",(function(){return Te})),n.d(t,"s",(function(){return Ie})),n.d(t,"D",(function(){return Re})),n.d(t,"C",(function(){return Ne})),n.d(t,"w",(function(){return Ae})),n.d(t,"z",(function(){return Le})),n.d(t,"y",(function(){return De})),n.d(t,"A",(function(){return Ue})),n.d(t,"x",(function(){return Me})),n.d(t,"B",(function(){return Fe})),n.d(t,"E",(function(){return Be})),n.d(t,"q",(function(){return He})),n.d(t,"t",(function(){return Ve})),n.d(t,"u",(function(){return ze})),n.d(t,"G",(function(){return Ge})),n.d(t,"W",(function(){return We})),n.d(t,"cb",(function(){return qe})),n.d(t,"S",(function(){return Ye})),n.d(t,"T",(function(){return Ke})),n.d(t,"I",(function(){return Xe})),n.d(t,"J",(function(){return Qe})),n.d(t,"K",(function(){return $e})),n.d(t,"L",(function(){return Je})),n.d(t,"yb",(function(){return Ze})),n.d(t,"M",(function(){return et})),n.d(t,"Tb",(function(){return tt})),n.d(t,"xb",(function(){return nt})),n.d(t,"fb",(function(){return rt})),n.d(t,"b",(function(){return ot})),n.d(t,"bb",(function(){return at})),n.d(t,"m",(function(){return it})),n.d(t,"Zb",(function(){return ct})),n.d(t,"Q",(function(){return st})),n.d(t,"Z",(function(){return lt})),n.d(t,"Mb",(function(){return ut})),n.d(t,"k",(function(){return dt})),n.d(t,"ab",(function(){return mt})),n.d(t,"h",(function(){return pt})),n.d(t,"o",(function(){return ft})),n.d(t,"Jb",(function(){return ht})),n.d(t,"Kb",(function(){return gt})),n.d(t,"Ib",(function(){return bt})),n.d(t,"Lb",(function(){return vt})),n.d(t,"N",(function(){return Et})),n.d(t,"l",(function(){return yt})),n.d(t,"pb",(function(){return Ot})),n.d(t,"j",(function(){return xt})),n.d(t,"i",(function(){return _t})),n.d(t,"g",(function(){return wt})),n.d(t,"V",(function(){return St})),n.d(t,"mb",(function(){return jt})),n.d(t,"kb",(function(){return Pt})),n.d(t,"H",(function(){return Ct})),n.d(t,"tb",(function(){return kt}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/url/url.js"),i=n.n(a),c=n("./node_modules/graphql-tag/src/index.js");function s(){var e=o()(["\n  fragment collectionUrl_collection on Collection {\n    id\n    domain\n    slug\n  }\n"]);return s=function(){return e},e}var l=function(e,t){return"https://".concat(e,"/amp/p/").concat(t)},u=function(e){return"//".concat(e,"/_/stat?referrerSource=acceleratedMobilePages")},d=function(e){return"${base}&postId=${postId}&event=post.clientViewed&collectionId=${collectionId}&pageViewId=${pageViewId}&requestCount=${requestCount}&timestamp=${timestamp}"},m=function(e){return"${base}&postId=${postId}&event=amp.scrollPing&collectionId=${collectionId}&scrollTop=${scrollTop}&scrollableHeight=${scrollableHeight}&totalEngagedTime=${totalEngagedTime}&verticalScrollBoundary=${verticalScrollBoundary}&location=${canonicalUrl}&scrollWidth=${scrollWidth}&pageViewId=${pageViewId}&requestCount=${requestCount}&timestamp=${timestamp}"},p=function(e){return"/_/bookmark/p/".concat(e)},f=function(){return"/_/oh-noes"},h=function(e,t){return"//".concat(e,"/p/").concat(t,"/share/facebook")},g=function(e){return"/_/subscriptions/topic/".concat(e,"/")},b=function(){return"/_/subscriptions/bulk"},v=function(){return"/"},E=function(e,t){return"//".concat(e,"/p/").concat(t,"/share/linkedIn")},y=function(e,t){return"https://".concat(e,"/media/").concat(t)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.authDomain,n=e.autoplay,r=void 0===n||n;return"https://".concat(t,"/about").concat(r?"?autoplay=1":"")},x=function(e,t){return"https://".concat(e,"/new-story")+(t&&t.inResponseToQuoteId?"?inResponseToQuoteId=".concat(t.inResponseToQuoteId):"")},_=function(){return"/p/import"},w=function(e){return"https://".concat(e,"/membership")},S=function(e){return"https://".concat(e,"/gift-checkout")},j=function(e){return"https://".concat(e,"/payment")},P=function(e){return"https://".concat(e,"/plans")},C=function(e){return"https://".concat(e,"/creators")},k=function(e){return e?"/p/".concat(e.id,"/edit"):""},T=function(e,t){return e?e.mediumUrl||(t?"/".concat(e.id):"/p/".concat(e.id)):""},I=function(e,t){return"https://".concat(e,"/p/").concat(t,"/edit")},R=function(e,t){return"https://".concat(e,"/p/").concat(t,"/settings")},N=function(e,t){return"https://".concat(e,"/p/").concat(t)},A=function(e){var t=e.params.postIdOrSlug||e.params.postSlug||e.params.postId;if(!t)return null;var n=/^(?:[^/]*-)?([0-9a-f]+)$/.exec(t||""),r=n&&n[1];return r||null},L=function(e){return"/_/p/".concat(e,"/quotes/create")},D=function(){return"/search"},U=function(e,t,n){var r=n?"".concat(D(),"/").concat(n):"".concat(D());return t?"/".concat(t).concat(r,"?q=").concat(e):"".concat(r,"?q=").concat(e)},M=function(e){return"/s/".concat(e)},F=function(e){return"/series/".concat(e)},B=function(e){return"/m/signout/".concat(e)},H=function(e,t){return"https://".concat(e,"/m/signin?operation=login").concat(t?"&redirect=".concat(encodeURIComponent(t)):"")},V=function(e,t){return"https://".concat(e,"/m/signin?operation=register").concat(t?"&redirect=".concat(encodeURIComponent(t)):"")},z=function(e,t){return"https://".concat(e,"/p/").concat(t,"/responses/show")},G=function(e){return"/_/subscribe/collection/".concat(e)},W=function(e,t){return"/_/subscribe/collection/".concat(e,"/").concat(t)},q=function(e){return"/_/subscribe/user/".concat(e)},Y=function(e,t){return"/_/subscribe/user/".concat(e,"/").concat(t)},K=function(e){return"/_/api/subscriptions/newsletters/".concat(e)},X=function(e,t){return"/".concat(t?"tagged":"tag","/").concat(e)},Q=function(e){return"https://".concat(e,"/topics")},$=function(e,t){return"https://".concat(e,"/topic/").concat(t)},J=function(e,t){return"https://".concat(e,"/trending/mode/").concat(t)},Z=function(e,t,n){return"https://".concat(e,"/trending/mode/").concat(t,"/topic/").concat(n)},ee=function(e,t){return"//".concat(e,"/p/").concat(t,"/share/twitter")},te=function(e){return"/_/vote/p/".concat(e)},ne=function(e,t){return"/_/vote/".concat(e,"/").concat(t)},re=function(e){return"/@".concat(e)},oe=function(e){return"/@".concat(e,"/edit")},ae=function(e){return"/@".concat(e,"/series")},ie=function(e){return"/@".concat(e,"/has-recommended")},ce=function(e){return"/@".concat(e,"/highlights")},se=function(e){return"/@".concat(e,"/responses")},le=function(e){return"/@".concat(e,"/following")},ue=function(e){return"/@".concat(e,"/followers")},de=function(e){return"https://".concat(e,"/upgrade")},me=function(e,t){return"https://".concat(e).concat(re(t))},pe=function(e,t){return"https://".concat(e).concat(function(e){return"/u/".concat(e)}(t))},fe=function(){return"/me/stories/drafts"},he=function(){return"/me/stories/public"},ge=function(){return"/me/stories/unlisted"},be=function(){return"/me/settings#account"},ve=function(e){return"https://".concat(e,"/me/following/suggestions")},Ee=function(e){return"https://".concat(e,"/me/list/queue")},ye=function(e){return"https://".concat(e,"/me/partner/dashboard")},Oe=function(e){return"https://".concat(e,"/me/publications")},xe=function(e){return"https://".concat(e,"/me/series/drafts")},_e=function(e){return"https://".concat(e,"/me/settings")},we=function(e){return"https://".concat(e,"/me/stats")},Se=function(e,t){return"https://".concat(e,"/me/stats/post/").concat(t)},je=function(e){return"https://".concat(e,"/me/stories/drafts")},Pe=function(e){return e.slug?"/".concat(e.slug):"/c/".concat(e.id)},Ce=function(e){return"/c/".concat(e)},ke=function(e,t){var n=i.a.parse(t).port;return e.domain?"https://".concat(e.domain).concat(n?":".concat(n):""):Pe(e)},Te=function(e,t){var n=ke(e,t);return e.domain?"".concat(n,"/feed"):"/feed".concat(n)},Ie=function(e,t){return"https://".concat(t).concat(Pe(e),"/new-story")},Re=function(e,t){return"https://".concat(t).concat(Pe(e),"/stories/submissions")},Ne=function(e,t){return"".concat(ke(e,t),"/stats/overview")},Ae=function(e,t){return"https://".concat(t).concat(Pe(e),"/settings/dashboard")},Le=function(e,t){return"https://".concat(t).concat(Pe(e),"/settings/letters")},De=function(e,t){return"https://".concat(t).concat(Pe(e),"/settings/followers")},Ue=function(e,t){return"https://".concat(t).concat(Pe(e),"/settings/navigation")},Me=function(e,t){return"https://".concat(t).concat(Pe(e),"/settings/feature-pages")},Fe=function(e,t){return"https://".concat(t).concat(Pe(e),"/settings")},Be=function(e,t){return"https://".concat(t).concat(Pe(e),"/styles")},He=function(e,t){return"https://".concat(t).concat(Pe(e),"/new-newsletter")},Ve=function(e,t,n){return"https://".concat(n).concat(Pe(e),"/newsletters/").concat(t)},ze=function(e,t,n){return"https://".concat(n).concat(Pe(e),"/newsletters/").concat(t,"/settings")},Ge=n.n(c)()(s()),We=function(){return"https://help.medium.com"},qe=function(){return"https://medium.com/policy/9db0094a1e0f"},Ye=function(){return"https://help.medium.com/hc/en-us/articles/360006543813"},Ke=function(){return"https://help.medium.com/hc/en-us/articles/360006543813-Friend-Links"},Xe=function(){return"https://help.medium.com/hc/en-us/articles/360006362473"},Qe=function(){return"https://help.medium.com/hc/en-us/articles/360009297694-Frequently-asked-questions-about-distribution-on-Medium"},$e=function(){return"https://help.medium.com/hc/en-us/articles/360018834314"},Je=function(){return"https://help.medium.com/hc/en-us/articles/360018834334"},Ze=function(){return"https://help.medium.com/hc/en-us/articles/214035868-Leave-a-note"},et=function(){return"https://help.medium.com/hc/en-us/articles/360036691193"},tt=function(){return"https://medium.com/policy/9db0094a1e0f"},nt=function(){return"https://medium.com/policy/f03bf92035c9"},rt=function(){return"https://policy.medium.com/medium-rules-30e5502c4eb4"},ot=function(e){return"https://".concat(e,"/about")},at=function(){return"https://medium.com/jobs-at-medium/work-at-medium-959d1a85284e"},it=function(e){return"https://blog.".concat(e)},ct=function(e){return"https://twitter.com/".concat(e)},st=function(e){return"https://www.facebook.com/".concat(e)},lt=function(e){return"https://www.instagram.com/".concat(e)},ut=function(){return"https://medium.statuspage.io"},dt=function(){return"/m/app"},mt=function(){return"https://itunes.apple.com/app/medium-everyones-stories/id828256236?pt=698524&mt=8"},pt=function(){return"https://play.google.com/store/apps/details?id=com.medium.reader"},ft=function(e,t){return"https://cdn-videos-1.medium.com/".concat(e[0],"/").concat(e[1],"/").concat(e[2],"/").concat(e,"/")+(t?"hls/playlist.m3u8":"dash/manifest.mpd")},ht=function(e){return"//".concat(e,"/m/connect/facebook")},gt=function(e){return"//".concat(e,"/m/connect/google")},bt=function(e){return"//".concat(e,"/m/start-auth/apple")},vt=function(e){return"//".concat(e,"/m/account/authenticate-twitter")},Et=function(e){return"//".concat(e,"/m/callback/email")},yt=function(){return"/_/batch"},Ot=function(e){return"/_/lite/performance/".concat(e)},xt=function(e){return"medium://p/".concat(e)},_t=function(e){return"medium://".concat(e.slug)},wt=function(e){return"android-app://com.medium.reader/".concat(e.replace("https://","https/"))},St=function(e){return"//".concat(e,"/m/callback/google")},jt=function(){return"/me/partner/taxes"},Pt=function(){return"/me/partner/enroll"},Ct=function(){return"https://medium.com/@Medium/licensing-your-work-on-medium-517fa7096e62"},kt=function(e,t){return"https://".concat(e,"/p/").concat(t,"/info")}},"./src/util/theme.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return I})),n.d(t,"b",(function(){return R})),n.d(t,"q",(function(){return N})),n.d(t,"o",(function(){return L})),n.d(t,"p",(function(){return F})),n.d(t,"n",(function(){return B})),n.d(t,"r",(function(){return H})),n.d(t,"m",(function(){return V})),n.d(t,"c",(function(){return z})),n.d(t,"e",(function(){return W})),n.d(t,"d",(function(){return q})),n.d(t,"f",(function(){return Y})),n.d(t,"h",(function(){return X})),n.d(t,"g",(function(){return Q})),n.d(t,"l",(function(){return $})),n.d(t,"k",(function(){return J})),n.d(t,"j",(function(){return Z})),n.d(t,"i",(function(){return ee}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),i=n.n(a),c=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(c),l=n("./node_modules/graphql-tag/src/index.js"),u=n.n(l),d=n("./src/schema-types/globalTypes.ts"),m=n("./src/styles/colors.ts"),p=n("./src/util/color.ts");function f(){var e=s()(["\n  fragment customStyleSheetFontTheme_customStyleSheet on CustomStyleSheet {\n    global {\n      fonts {\n        font1 {\n          name\n        }\n        font2 {\n          name\n        }\n        font3 {\n          name\n        }\n      }\n    }\n  }\n"]);return f=function(){return e},e}function h(){var e=s()(["\n  fragment collectionTintBackgroundTheme_collection on Collection {\n    colorPalette {\n      ...collectionTintBackgroundTheme_colorPalette\n    }\n    customStyleSheet {\n      id\n      ...collectionTintBackgroundTheme_customStyleSheet\n    }\n  }\n  ","\n  ","\n"]);return h=function(){return e},e}function g(){var e=s()(["\n  fragment collectionTintBackgroundTheme_customStyleSheet on CustomStyleSheet {\n    global {\n      colorPalette {\n        primary {\n          colorPalette {\n            ...collectionTintBackgroundTheme_colorPalette\n          }\n        }\n      }\n    }\n  }\n  ","\n"]);return g=function(){return e},e}function b(){var e=s()(["\n  fragment collectionTintBackgroundTheme_colorPalette on ColorPalette {\n    tintBackgroundSpectrum {\n      ...ThemeUtil_colorSpectrum\n    }\n  }\n  ","\n"]);return b=function(){return e},e}function v(){var e=s()(["\n  fragment collectionDefaultBackgroundTheme_collection on Collection {\n    colorPalette {\n      ...collectionDefaultBackgroundTheme_colorPalette\n    }\n    customStyleSheet {\n      id\n      ...collectionDefaultBackgroundTheme_customStyleSheet\n    }\n  }\n  ","\n  ","\n"]);return v=function(){return e},e}function E(){var e=s()(["\n  fragment collectionDefaultBackgroundTheme_customStyleSheet on CustomStyleSheet {\n    global {\n      colorPalette {\n        primary {\n          colorPalette {\n            ...collectionDefaultBackgroundTheme_colorPalette\n          }\n        }\n        background {\n          colorPalette {\n            ...collectionDefaultBackgroundTheme_colorPalette\n          }\n        }\n      }\n    }\n  }\n  ","\n"]);return E=function(){return e},e}function y(){var e=s()(["\n  fragment collectionDefaultBackgroundTheme_colorPalette on ColorPalette {\n    highlightSpectrum {\n      ...ThemeUtil_colorSpectrum\n    }\n    defaultBackgroundSpectrum {\n      ...ThemeUtil_colorSpectrum\n    }\n    tintBackgroundSpectrum {\n      ...ThemeUtil_colorSpectrum\n    }\n  }\n  ","\n"]);return y=function(){return e},e}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(){var e=s()(["\n  fragment ThemeUtilTintBackground_collection on Collection {\n    colorPalette {\n      tintBackgroundSpectrum {\n        ...ThemeUtil_colorSpectrum\n      }\n    }\n  }\n  ","\n"]);return _=function(){return e},e}function w(){var e=s()(["\n  fragment ThemeUtilAccent_collection on Collection {\n    colorPalette {\n      defaultBackgroundSpectrum {\n        ...ThemeUtil_colorSpectrum\n      }\n      highlightSpectrum {\n        ...ThemeUtil_colorSpectrum\n      }\n    }\n  }\n  ","\n"]);return w=function(){return e},e}function S(){var e=s()(["\n  fragment ThemeUtil_colorSpectrum on ColorSpectrum {\n    backgroundColor\n    ...ThemeUtilInterpolateHelpers_colorSpectrum\n  }\n  ","\n"]);return S=function(){return e},e}function j(){var e=s()(["\n  fragment ThemeUtilInterpolateHelpers_colorSpectrum on ColorSpectrum {\n    colorPoints {\n      ...ThemeUtil_colorPoint\n    }\n  }\n  ","\n"]);return j=function(){return e},e}function P(){var e=s()(["\n  fragment ThemeUtil_colorPoint on ColorPoint {\n    color\n    point\n  }\n"]);return P=function(){return e},e}var C=u()(P()),k=u()(j(),C),T=u()(S(),k),I=u()(w(),T),R=u()(_(),T),N=function(e,t){var n=e.colorPoints;if(!n.length)return[255,255,255,0];for(var r=n.slice().sort((function(e,t){return e.point===t.point?0:e.point<t.point?-1:1})),o=0;r[o+1]&&Math.abs(t-r[o+1].point)<Math.abs(t-r[o].point);)o+=1;var a=r[o];if(t===a.point)return Object(p.a)(a.color);var c=t>a.point?[r[o],r[o+1]]:[r[o-1],r[o]],s=i()(c,2),l=s[0],u=s[1];if(null==l||null==u||l.point===u.point)return Object(p.a)(a.color);var d=(t-l.point)/(u.point-l.point);return Object(p.c)(Object(p.a)(l.color),Object(p.a)(u.color),d)},A=function(e,t){return Object(p.d)(N(e,t))},L=function(e){return{text:{light:A(e,.2),normal:A(e,.2),dark:A(e,.3)},border:{light:A(e,0),normal:A(e,0),dark:A(e,.2),darker:A(e,.2)},fill:{light:A(e,0),normal:A(e,0),dark:A(e,.2)}}},D=function(e){var t=A(e,0);return{text:{light:t,normal:t,dark:t},border:{light:t,normal:t,dark:t,darker:t},fill:{light:t,normal:t,dark:t}}},U=function(e,t){return e?x({},t,{backgroundColor:Object(p.b)(e.backgroundColor),accentColor:x({},t.accentColor,{text:{light:A(e,.5),normal:A(e,.7),dark:A(e,1)},border:{light:A(e,.5),normal:A(e,.7),dark:A(e,.9),darker:A(e,1)},fill:{light:A(e,.5),normal:A(e,.7),dark:A(e,.9)}}),baseColor:x({},t.baseColor,{background:{light:A(e,.5),normal:A(e,.7),dark:A(e,.9)},border:{lighter:A(e,.5),light:A(e,.5),normal:A(e,.7),dark:A(e,.9),darker:A(e,1)},text:{lighter:A(e,.45),light:A(e,.6),normal:A(e,.7),dark:A(e,1),darker:A(e,.9)},fill:{lighter:A(e,.45),light:A(e,.6),normal:A(e,.7),dark:A(e,.9),darker:A(e,1)}})}):t},M=function(e,t){if(!e)return t;var n=A(e,.7),r=A(e,.9);return x({},t,{backgroundColor:Object(p.b)(e.backgroundColor),accentColor:x({},t.accentColor,{text:{light:n,normal:r,dark:r},border:{light:n,normal:r,dark:r,darker:r},fill:{light:n,normal:r,dark:r}}),baseColor:x({},t.baseColor,{background:{light:n,normal:r,dark:r},border:{lighter:n,light:r,normal:r,dark:r,darker:r},text:{lighter:n,light:r,normal:r,dark:r,darker:r},fill:{lighter:n,light:r,normal:r,dark:r,darker:r}}),highlightColor:{light:A(e,.1),normal:A(e,.2),dark:A(e,.3)}})},F=function(e){return x({},e,{backgroundColor:Object(m.D)(1),accentColor:x({},e.accentColor,{text:{light:Object(m.D)(.8),normal:Object(m.D)(.95),dark:Object(m.D)(1)},border:{light:Object(m.D)(.65),normal:Object(m.D)(.8),dark:Object(m.D)(.9),darker:Object(m.D)(1)},fill:{light:Object(m.D)(.6),normal:Object(m.D)(.7),dark:Object(m.D)(.9)}}),baseColor:x({},e.baseColor,{background:{light:Object(m.D)(.9),normal:Object(m.D)(.95),dark:Object(m.D)(1)},border:{lighter:Object(m.D)(.4),light:Object(m.D)(.65),normal:Object(m.D)(.8),dark:Object(m.D)(.9),darker:Object(m.D)(1)},text:{lighter:Object(m.D)(.6),light:Object(m.D)(.8),normal:Object(m.D)(.95),dark:Object(m.D)(1),darker:Object(m.D)(1)},fill:{lighter:Object(m.D)(.45),light:Object(m.D)(.6),normal:Object(m.D)(.7),dark:Object(m.D)(.9),darker:Object(m.D)(1)}})})},B=function(e){return x({},F(e),{backgroundColor:e.errorColor})},H=function(e){return x({},e,{backgroundColor:Object(m.D)(.2),accentColor:x({},e.accentColor,{text:{light:Object(m.D)(.8),normal:Object(m.D)(.95),dark:Object(m.D)(1)},border:{light:Object(m.D)(.65),normal:Object(m.D)(.8),dark:Object(m.D)(.9),darker:Object(m.D)(1)},fill:{light:Object(m.D)(.6),normal:Object(m.D)(.7),dark:Object(m.D)(.9)}}),baseColor:x({},e.baseColor,{background:{light:Object(m.D)(.9),normal:Object(m.D)(.95),dark:Object(m.D)(1)},border:{lighter:Object(m.D)(.2),light:Object(m.D)(.65),normal:Object(m.D)(.8),dark:Object(m.D)(.9),darker:Object(m.D)(1)},text:{lighter:Object(m.D)(.8),light:Object(m.D)(.9),normal:Object(m.D)(.95),dark:Object(m.D)(1),darker:Object(m.D)(1)},fill:{lighter:Object(m.D)(.45),light:Object(m.D)(.6),normal:Object(m.D)(.7),dark:Object(m.D)(.9),darker:Object(m.D)(1)}})})},V=function(e){return x({},e,{backgroundColor:Object(m.A)(1),baseColor:x({},e.baseColor,{background:{light:Object(m.D)(.9),normal:Object(m.D)(.95),dark:Object(m.D)(1)},border:{lighter:Object(m.D)(.4),light:Object(m.D)(.65),normal:Object(m.D)(.8),dark:Object(m.D)(.9),darker:Object(m.D)(1)},text:{lighter:Object(m.D)(.6),light:Object(m.D)(.8),normal:Object(m.D)(.95),dark:Object(m.D)(1),darker:Object(m.D)(1)},fill:{lighter:Object(m.D)(.45),light:Object(m.D)(.6),normal:Object(m.D)(.7),dark:Object(m.D)(.9),darker:Object(m.D)(1)}})})},z=function(e,t,n){var r;if(!e)return t;var o,a,i=e.colorPalette,c=e.customStyleSheet,s=(null==c||null===(r=c.global)||void 0===r?void 0:r.colorPalette)||{},l=s.primary,u=s.background,d=null==l?void 0:l.colorPalette,m=null==u?void 0:u.colorPalette;if(m){var p=m.tintBackgroundSpectrum;return n?M(p,t):U(p,t)}return i||d?(c?(o=null==d?void 0:d.defaultBackgroundSpectrum,a=null==d?void 0:d.highlightSpectrum):(o=null==i?void 0:i.defaultBackgroundSpectrum,a=null==i?void 0:i.highlightSpectrum),n?function(e,t,n){return e&&t?x({},n,{accentColor:x({},n.accentColor,{},D(e)),highlightColor:{light:A(t,.1),normal:A(t,.6),dark:A(t,1)}}):n}(o,a,t):function(e,t,n){return e&&t?x({},n,{accentColor:x({},n.accentColor,{},L(e)),highlightColor:{light:A(t,.1),normal:A(t,.6),dark:A(t,1)}}):n}(o,a,t)):t},G=u()(y(),T),W=u()(E(),G),q=u()(v(),G,W),Y=function(e,t,n){var r,o,a;if(!e)return t;var i=e.customStyleSheet,c=e.colorPalette,s=null==i||null===(r=i.global)||void 0===r||null===(o=r.colorPalette)||void 0===o||null===(a=o.primary)||void 0===a?void 0:a.colorPalette,l=i?null==s?void 0:s.tintBackgroundSpectrum:null==c?void 0:c.tintBackgroundSpectrum;return n?M(l,t):U(l,t)},K=u()(b(),T),X=u()(g(),K),Q=u()(h(),K,X),$=function(e){switch(e){case d.r.SERIF_1:return"medium-content-title-font";case d.r.SERIF_2:return"medium-content-serif-font";case d.r.SANS_SERIF_1:return"medium-content-sans-serif-font"}},J=function(e){switch(e){case d.r.SERIF_1:return 500;case d.r.SERIF_2:return 700;case d.r.SANS_SERIF_1:return 600}},Z=u()(f()),ee=function(e,t){var n,r=x({},t.newFonts),o=null==e||null===(n=e.global)||void 0===n?void 0:n.fonts;if(null==o?void 0:o.font1)for(var a=$(o.font1.name),i=J(o.font1.name),c=0,s=["title","pullQuote"];c<s.length;c++){var l=s[c];r[l]=x({},r[l],{family:a,boldWeight:i||r[l].boldWeight})}if(null==o?void 0:o.font2)for(var u=$(o.font2.name),d=J(o.font2.name),m=0,p=["heading","subtitle","detail","overline"];m<p.length;m++){var f=p[m];r[f]=x({},r[f],{family:u,boldWeight:d||r[f].boldWeight})}if(null==o?void 0:o.font3){var h=$(o.font3.name),g=J(o.font3.name);if(h)for(var b=0,v=["body"];b<v.length;b++){var E=v[b];r[E]=x({},r[E],{family:h,boldWeight:g||r[E].boldWeight})}}return x({},t,{newFonts:r})}},"./src/util/useragent.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return c}));var r="LinkedIn";function o(e,t){return t.some((function(t){return-1!==e.indexOf(t)}))}function a(e){if(!e)return!1;if(function(e){return!!e&&(function(e){return!!e&&-1!==e.indexOf("donkey")}(e)||function(e){return!!e&&-1!==e.indexOf("hangtag")}(e))}(e))return!0;var t=o(e,["iPad","Nexus 10"]),n=!t&&o(e,["iPhone","iphone","Android","BlackBerry"]);return t||n}function i(e){return!!e&&-1!==e.indexOf("Macintosh")}function c(e){return!!e&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])/i.test(e)}},0:function(e,t,n){n("./config/polyfills.js"),e.exports=n("./src/index.tsx")}},[[0,48,56]]]);
  //# sourceMappingURL=main.fb398f46.chunk.js.map