2 lines
14 KiB
JavaScript
2 lines
14 KiB
JavaScript
(self.webpackChunklite=self.webpackChunklite||[]).push([[2332],{69100:(e,t,n)=>{var r=n(99489),o=n(57067);function i(t,n,a){return o()?e.exports=i=Reflect.construct:e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},i.apply(null,arguments)}e.exports=i},70430:e=>{e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},57067:e=>{e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},65957:(e,t,n)=>{var r=n(29754),o=n(99489),i=n(70430),a=n(69100);function u(t){var n="function"==typeof Map?new Map:void 0;return e.exports=u=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},u(t)}e.exports=u},6672:(e,t,n)=>{"use strict";n.d(t,{Ij:()=>M,iT:()=>j,rK:()=>D});var r=n(28655),o=n.n(r),i=n(71439),a=n(67294),u=n(49768),c=n(34575),s=n.n(c),l=n(2205),f=n.n(l),p=n(78585),d=n.n(p),m=n(29754),h=n.n(m),v=n(65957);var y=function(e){f()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h()(t);if(n){var o=h()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return d()(this,e)});function o(){return s()(this,o),r.call(this,"Expected postResult to exist.\n For more detail, try checking for GraphQL server errors with the same x-request-id.")}return o}(n.n(v)()(Error)),g=n(41254),E=n(79853),b=n(80177),P=n(47266);function O(){var e=o()(["\n fragment UnavailableForLegalReasonsScreen_unavailableForLegalReasons on UnavailableForLegalReasons {\n lumenId\n }\n"]);return O=function(){return e},e}function x(e){var t=e.errorData;return a.createElement(g.Z,{code:451,title:"451 Not available — Medium",lumenId:t.lumenId},"This story is subject to a DMCA copyright or other legal or government claim.")}var _=(0,i.Ps)(O());function S(){var e=o()(["\n fragment WithheldInCountryScreen_withheldInCountry on WithheldInCountry {\n lumenId\n }\n"]);return S=function(){return e},e}function R(e){var t=e.errorData;return a.createElement(g.Z,{code:451,title:"451 Not available in your country — Medium",lumenId:t.lumenId},"This page is not available in your country.")}var w=(0,i.Ps)(S());function I(){var e=o()(["\n fragment PostResultError_postResult on PostResult {\n __typename\n ... on Post {\n id\n }\n ... on UnavailableForLegalReasons {\n ...UnavailableForLegalReasonsScreen_unavailableForLegalReasons\n }\n ... on WithheldInCountry {\n ...WithheldInCountryScreen_withheldInCountry\n }\n }\n ","\n ","\n"]);return I=function(){return e},e}var D=function(e){return!e||"Post"!==e.__typename},M=function(e){var t=e.postResult;if(!t)return a.createElement(E.Z,{error:new y});switch(t.__typename){case"Unauthorized":return a.createElement(u.N,{opt_isDraft:!0});case"NotFound":return a.createElement(b.Z,null);case"AccountDeleted":return a.createElement(g.Z,{code:410,title:"410 Deleted by author — Medium"},"User deactivated or deleted their account.");case"AccountSuspended":return a.createElement(P.y,{suspension:"account"});case"PostSuspended":return a.createElement(P.y,{suspension:"post"});case"Blocked":return a.createElement(g.Z,{code:403,title:"403 Blocked — Medium"},"This user had blocked you from following them or viewing their stories.");case"RemovedByUser":return a.createElement(g.Z,{code:410,title:"410 Deleted by author — Medium"},"The author deleted this Medium story.");case"UnavailableForLegalReasons":return a.createElement(x,{errorData:t});case"WithheldInCountry":return a.createElement(R,{errorData:t});default:return a.createElement(E.Z,{error:new Error("Unsupported postResult: ".concat(t.__typename))})}},j=(0,i.Ps)(I(),_,w)},49768:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(67294),o=n(12291),i=n(42963),a=n(14414),u=n(27572),c=n(96879),s=n(27952),l=function(e){var t=e.opt_isDraft,n=(0,o.v9)((function(e){return{authDomain:e.config.authDomain,currentLocation:e.navigation.currentLocation}}),o.wU),l=n.authDomain,f=n.currentLocation,p=(0,u.pK)(),d=(0,u.hp)(),m=(0,c.Rk)((0,s.Kk)(l),{operation:"login",redirect:(0,a.hQ)(f,p,d),isDraft:t?"1":"0"});return r.createElement(i.Z,{to:m,temporary:!0})}},37620:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PostHandler:()=>$});var r=n(59713),o=n.n(r),i=n(28655),a=n.n(i),u=n(46829),c=n(71439),s=n(80439),l=n(67294),f=n(12291),p=n(6672),d=n(8575),m=n(5977),h=n(42963),v=n(77455),y=n(96879);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 E(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}function b(){var e=a()(["\n fragment PostCanonicalizer_post on Post {\n mediumUrl\n }\n"]);return b=function(){return e},e}var P=(0,c.Ps)(b()),O=function(e){var t=e.post,n=e.matchedPath,r=e.children,o=(0,v.K)(),i=(0,m.TH)().hash,a=o.get("showDomainSetup"),u=(0,f.v9)((function(e){var t=e.navigation,n=t.host,r=t.referrerSource;return{currentHost:n,shareKey:t.shareKey,source:r,postPublishedType:t.postPublishedType}}),f.wU),c=u.currentHost,s=u.shareKey,p=u.source,g=u.postPublishedType,b=t.mediumUrl;if(!b)return r;var P=d.Qc(decodeURIComponent(b)),O=E(E(E(E({},p?{source:p}:{}),s?{sk:s}:{}),g?{postPublishedType:g}:{}),a?{showDomainSetup:a}:{});return c!==P.host?l.createElement(h.Z,{to:(0,y.Rk)(b,O,i)}):P.path&&n!==P.path?l.createElement(h.Z,{to:(0,y.Rk)(P.path,O,i)}):r},x=n(24087),_=n(85740),S=n(95760),R=n(31235),w=n(27572),I=n(96890),D=n(79853),M=n(90320),j=n(80177),k=n(65025),T=n(19307),C=n(27952);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 L(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}function Z(){var e=a()(["\n query PostMeter($postId: ID!, $postMeteringOptions: PostMeteringOptions) {\n meterPost(postId: $postId, postMeteringOptions: $postMeteringOptions) {\n __typename\n ... on MeteringInfo {\n ...PostScreen_meteringInfo\n }\n }\n }\n ","\n"]);return Z=function(){return e},e}function F(){var e=a()(["\n query PostHandler(\n $postId: ID!\n $postMeteringOptions: PostMeteringOptions\n $includePostInternalLinks: Boolean!\n $includePostRecirc: Boolean = false\n $includeSequenceRecirc: Boolean = false\n $postRecircPaging: PaginationLimit\n ) {\n postResult(id: $postId) {\n __typename\n ...PostResultError_postResult\n ... on Post {\n ...PostScreen_post\n ...PostCanonicalizer_post\n }\n }\n }\n ","\n ","\n ","\n"]);return F=function(){return e},e}var N=(0,c.Ps)(F(),p.iT,P,k.m6),A=(0,c.Ps)(Z(),k.De),$=function(e){var t,n,r=e.match,o=(0,f.v9)((function(e){return e.config.recircOptions})),i=(0,f.v9)((function(e){return e.navigation.referrer})),a=(0,f.v9)((function(e){return e.navigation.shareKey})),c=(0,f.v9)((function(e){return e.navigation.referrerSource})),d=(0,T.o)(),m=(0,R.xg)();!function(){var e=(0,_.Vb)(),t=(0,R.xg)(),n=(0,R.Wj)(),r=(0,S.Av)(),o=JSON.stringify(e);l.useEffect((function(){var o,i;e&&Object.keys(e).length&&t&&(o=e,i=(new TextEncoder).encode(JSON.stringify(o)),crypto.subtle.digest("SHA-256",i).then((function(e){return Array.prototype.map.call(new Uint8Array(e),(function(e){return("00"+e.toString(16)).slice(-2)})).join("")}))).then((function(e){e!==n&&r.event("client.edgeCacheVariantMismatch",{})}))}),[o])}();var h=(0,C.mr)(r)||"",v=(0,u.useQuery)(A,{variables:{postId:h,postMeteringOptions:{referrer:i,source:c,sk:a}},ssr:!m}).data,y=(v=void 0===v?{}:v).meterPost,g={postId:h,includePostInternalLinks:d,postRecircPaging:(d?null==o||null===(t=o.v2)||void 0===t?void 0:t.limit:null==o||null===(n=o.v1)||void 0===n?void 0:n.limit)||3},E=(0,u.useQuery)(N,{variables:g,ssr:!1,skip:!h||!m,fetchPolicy:"cache-and-network"}).data;return h?l.createElement(s.AE,{query:N,variables:g},(function(e){var t=e.loading,n=e.error,o=e.data,i=(o=void 0===o?{}:o).postResult,a=e.refetch,u=e.fetchMore;if(t)return l.createElement(M.Z,null);if(n)return l.createElement(D.Z,{error:n});if((0,p.rK)(i))return l.createElement(p.Ij,{postResult:i});var c=null==E?void 0:E.postResult;if(c&&(0,p.rK)(c))return l.createElement(p.Ij,{postResult:c});var s=L(L({},i),c);return l.createElement(I.x.Provider,{value:{refetch:a,fetchMore:u,postId:h}},l.createElement(O,{post:i,matchedPath:r.url,key:h},l.createElement(x.Z,null,(function(e){return l.createElement(w.cW,{source:{name:"post_page",postId:h}},l.createElement(k.gc,{viewer:e,meteringInfo:y,post:s}))}))))})):l.createElement(j.Z,null)}},41254:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(67294),o=n(70405),i=n(5977),a=n(59713),u=n.n(a),c=n(7530),s=n(67995),l=n(28309),f=n(80637),p={fontSize:"20px",textTransform:"uppercase"},d=function(e){return u()({display:"block",fontSize:"192px",lineHeight:"200px"},f.sm(e),{fontSize:"150px"})};const m=function(e){var t=e.errorCode,n=(0,l.Iq)(),o=(0,s.n)({name:"marketing",scale:"XXXL"});return r.createElement(c.xu,{display:"flex",flexDirection:"column"},r.createElement("div",{className:n(p)},"Error"),r.createElement("div",{className:n([o,d])},t))};var h=n(26463),v=n(5955),y={fontSize:"24px"};function g(e){var t=e.code,n=e.title,a=e.children,u=e.lumenId,s=(0,l.Iq)();return r.createElement(i.AW,{render:function(e){var i=e.staticContext;return i&&(i.statusCode=t),r.createElement("div",null,r.createElement(o.q,null,r.createElement("title",null,n)),r.createElement(h.kw,null),r.createElement(c.xu,{tag:"section",paddingTop:"60px",paddingBottom:"60px"},r.createElement(c.Pm,{size:"inset"},r.createElement(c.xu,{display:"flex",alignItems:"flex-start",flexWrap:"wrap"},r.createElement(m,{errorCode:t}),r.createElement("div",{className:s((0,v.rJ)())},r.createElement(c.xu,{marginBottom:"28px"},r.createElement("div",{className:s(y)},a)),u?r.createElement("div",{className:s(y)},"A report is available on"," ",r.createElement(c.rU,{href:"https://lumendatabase.org/notices/".concat(u),display:"inline-block",inline:!0,target:"_blank",linkStyle:"OBVIOUS"},"Lumen"),"."):null)))))}})}},47266:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var r=n(67294),o=n(7530),i=n(64504),a=n(62630),u=n(41254),c=n(27952),s=function(e){var t=e.suspension,n=(0,a.Av)();return r.createElement(u.Z,{code:410,title:"410 ".concat(t," suspended — Medium")},r.createElement(o.xu,{display:"flex",marginTop:"-30px"},r.createElement(i.QE,{scale:"S"},"This ",t," is under investigation or was found in violation of the Medium Rules."," ")),r.createElement(o.xu,{display:"flex",marginTop:"80px"},r.createElement(i.QE,{color:"DARKER",scale:"M"},"There are thousands of stories to read on Medium. Visit our homepage ",r.createElement("br",null)," to find one that’s right for you.")),r.createElement(o.xu,{display:"flex",marginTop:"15px"},r.createElement(o.zx,{buttonStyle:"SUBTLE",href:(0,c.$x)(),onClick:function(){n.event("suspendedPage.backToHomeClicked",{})}},"Take me to Medium")))}},68254:e=>{"use strict";var t=Math.floor(1099511627776*Math.random()).toString(16),n=new RegExp('"@__(F|R|D|M|S|U)-'+t+'-(\\d+)__@"',"g"),r=/\{\s*\[native code\]\s*\}/g,o=/function.*?\(/,i=/.*?=>.*?/,a=/[<>\/\u2028\u2029]/g,u=["*","async"],c={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function s(e){return c[e]}e.exports=function e(c,l){l||(l={}),"number"!=typeof l&&"string"!=typeof l||(l={space:l});var f,p=[],d=[],m=[],h=[],v=[],y=[];return l.ignoreFunction&&"function"==typeof c&&(c=void 0),void 0===c?String(c):"string"!=typeof(f=l.isJSON&&!l.space?JSON.stringify(c):JSON.stringify(c,l.isJSON?null:function(e,n){if(l.ignoreFunction&&function(e){var t=[];for(var n in e)"function"==typeof e[n]&&t.push(n);for(var r=0;r<t.length;r++)delete e[t[r]]}(n),!n&&void 0!==n)return n;var r=this[e],o=typeof r;if("object"===o){if(r instanceof RegExp)return"@__R-"+t+"-"+(d.push(r)-1)+"__@";if(r instanceof Date)return"@__D-"+t+"-"+(m.push(r)-1)+"__@";if(r instanceof Map)return"@__M-"+t+"-"+(h.push(r)-1)+"__@";if(r instanceof Set)return"@__S-"+t+"-"+(v.push(r)-1)+"__@"}return"function"===o?"@__F-"+t+"-"+(p.push(r)-1)+"__@":"undefined"===o?"@__U-"+t+"-"+(y.push(r)-1)+"__@":n},l.space))?String(f):(!0!==l.unsafe&&(f=f.replace(a,s)),0===p.length&&0===d.length&&0===m.length&&0===h.length&&0===v.length&&0===y.length?f:f.replace(n,(function(t,n,a){return"D"===n?'new Date("'+m[a].toISOString()+'")':"R"===n?"new RegExp("+e(d[a].source)+', "'+d[a].flags+'")':"M"===n?"new Map("+e(Array.from(h[a].entries()),l)+")":"S"===n?"new Set("+e(Array.from(v[a].values()),l)+")":"U"===n?"undefined":function(e){var t=e.toString();if(r.test(t))throw new TypeError("Serializing native function: "+e.name);if(o.test(t))return t;if(i.test(t))return t;var n=t.indexOf("("),a=t.substr(0,n).trim().split(" ").filter((function(e){return e.length>0}));return a.filter((function(e){return-1===u.indexOf(e)})).length>0?(a.indexOf("async")>-1?"async ":"")+"function"+(a.join("").indexOf("*")>-1?"*":"")+t.substr(n):t}(p[a])})))}}}]);
|
||
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/Post.4a47de6d.chunk.js.map
|