This repository was archived by the owner on May 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path6473cb07ebb846b4c448bce424ed6d40e5e6747e-b7e887fe8e5c510e91e9.js
More file actions
2 lines (2 loc) · 9.74 KB
/
Copy path6473cb07ebb846b4c448bce424ed6d40e5e6747e-b7e887fe8e5c510e91e9.js
File metadata and controls
2 lines (2 loc) · 9.74 KB
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{CZVI:function(t,e,n){"use strict";n.d(e,"a",(function(){return I}));n("f3/d"),n("tUrg");var r=n("q1tI"),o=n.n(r),i=n("Wbzz"),c=n("qKvR"),a=(n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("V+eJ"),n("ioFf"),n("91GP"),n("17x9")),s=n.n(a);function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function u(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var f=function(t){var e=t.color,n=t.size,r=u(t,["color","size"]);return o.a.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},r),o.a.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),o.a.createElement("circle",{cx:"12",cy:"7",r:"4"}))};f.propTypes={color:s.a.string,size:s.a.oneOfType([s.a.string,s.a.number])},f.defaultProps={color:"currentColor",size:"24"};var d=f,p=n("iYmT"),g=(n("hEkN"),n("wLTh")),h={name:"1uk1gs8",styles:"margin:0;"},b=function(t){var e=t.anchor,n=t.isFocused,r=void 0!==n&&n,o=Object(g.b)(),i=e.id,a=e.label;return Object(c.d)("li",{css:h},Object(c.d)("a",{href:"#"+i,css:Object(p.a)([Object(c.c)("color:",o.colors.midgrey.bolder,";font-size:0.75em;:hover{text-decoration:none;}"),r&&Object(c.c)("color:",o.colors.purple.base,";font-weight:600;")])},a))},m={name:"d89xj6",styles:"width:100%;height:100vh;position:sticky;top:0;display:flex;flex-direction:column;"},v={name:"ghgjqu",styles:"flex:1;overflow:auto;padding-top:36px;"},y={name:"1uk1gs8",styles:"margin:0;"},O={name:"gv7jnd",styles:"margin:0;margin-top:0.25em;padding-left:0.5em;list-style:none;"},j=function(t){var e=t.top,n=t.anchors,r=void 0===n?[]:n,o=t.focus;return Object(c.d)("section",{css:function(t){return Object(c.c)("flex:0 0 240px;@media (max-width:",t.breakpoints.lg,"){display:none;}")}},Object(c.d)("aside",{css:m},Object(c.d)("div",{css:v},Object(c.d)("ul",{css:function(t){return Object(c.c)("margin:0;list-style:none;padding-top:2px;padding-bottom:2px;border-left:1px solid ",t.colors.lightgrey.base,";")}},Object(c.d)("li",{css:y},Object(c.d)("a",{href:"#",css:function(t){return Object(c.c)("color:",t.colors.midgrey.bolder,";font-weight:600;font-size:0.9em;:hover{text-decoration:none;}")}},e),r.length>0&&Object(c.d)("ul",{css:O},r.map((function(t){return Object(c.d)(b,{key:t.id,anchor:t,isFocused:o===t.id})}))))))))},w=(n("l32n"),{name:"8atqhb",styles:"width:100%;"}),x={name:"1u9jl65",styles:"flex-grow:1;display:flex;align-items:flex-start;"},T={name:"1iwpjbg",styles:"display:flex;flex-wrap:wrap;margin:0 0 0 4px;padding:0 12px 0 0;list-style:none;justify-content:flex-start;"},S={name:"5otgxg",styles:"position:relative;flex-shrink:0;margin:0;padding:0;"},k={name:"s2uf1z",styles:"text-align:right;"},I=function(t){var e=t.title,n=t.author,r=t.publishedAt,a=t.updatedAt,s=t.anchors,l=void 0===s?[]:s,u=t.focus,f=t.children;return Object(c.d)(o.a.Fragment,null,Object(c.d)("section",{css:function(t){return Object(c.c)("flex-grow:1;flex-shrink:5;margin:3rem 6rem;max-width:720px;display:flex;flex-direction:column;justify-content:space-between;@media (max-width:",t.breakpoints.md,"){margin:3rem 3rem;}")}},Object(c.d)("div",{css:w},Object(c.d)("header",null,Object(c.d)("h1",null,e),Object(c.d)("hr",null),n&&Object(c.d)("section",{css:x},Object(c.d)("ul",{css:T},Object(c.d)("li",{css:S},Object(c.d)(i.Link,{to:"/"+n.slug,css:function(t){return Object(c.c)("display:block;overflow:hidden;margin:0 -4px 0 -6px;width:40px;height:40px;border:#fff 2px solid;border-radius:100%;background:",t.colors.lightgrey.base,";object-fit:cover;@media (max-width:",t.breakpoints.xs,"){width:36px;height:36px;}")}},Object(c.d)(d,{color:"#fff",fill:"#fff",css:function(t){return Object(c.c)("margin-top:2px;width:36px;height:36px;@media (max-width:",t.breakpoints.xs,"){width:32px;height:32px;}")}})))),Object(c.d)("section",{css:function(t){return Object(c.c)("margin:2px 0 0;color:",t.colors.midgrey.bolder,";font-size:1.2rem;line-height:1.2em;letter-spacing:0.2px;text-transform:uppercase;& h4{margin:0 0 3px;font-size:1.3rem;line-height:1.4em;font-weight:500;}& h4 a{color:",t.colors.darkgrey.lighter,";}& h4 a:hover{color:",t.colors.darkgrey.bolder,";text-decoration:none;}")}},Object(c.d)("h4",null,Object(c.d)("a",{href:""+n.link},n.name)),Object(c.d)("div",null,Object(c.d)("time",{dateTime:r.toISOString()},r.toDateString()," "))))),f),a&&Object(c.d)("p",{css:k},Object(c.d)("small",null,Object(c.d)("i",null,"Last updated on ",a.toLocaleDateString("en")," ",a.toLocaleTimeString("en")," EST")))),Object(c.d)(j,{top:e,anchors:l,focus:u}))}},gGy4:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return f}));n("f3/d"),n("a1Th"),n("XfO3"),n("HEwt"),n("rE2o"),n("ioFf"),n("rGqo"),n("yt8O"),n("Btvt");var r=n("q1tI"),o=n.n(r),i=n("hKI/"),c=n.n(i);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t){var e=Math.ceil(t.length/2);return[t.slice(0,e),t.slice(e,t.length)]}var u=function(){var t=o.a.useState([]),e=t[0],n=t[1],r=o.a.useState([]),i=r[0],c=r[1];return o.a.useEffect((function(){var t=new Date,e=new Date(JSON.parse(window.localStorage.getItem("CONTRIBUTORS:TTL"))),r=JSON.parse(window.localStorage.getItem("CONTRIBUTORS:DATA"));if(!r||!e||e<t)fetch("https://sheets.googleapis.com/v4/spreadsheets/18s1tHFbnzrweiFvds2xIWdqtjoAHaCCiCOls2It7JL0/values/A2:A?key=AIzaSyADMD4DdpEg7fY4qp6mHDvYCJWxLSf8Ohg").then((function(t){return t.json()})).then((function(e){if(e.error)throw new Error("["+e.error.code+"] "+e.error.message);var r=e.values.map((function(t){return t[0]}));window.localStorage.setItem("CONTRIBUTORS:DATA",JSON.stringify(r));var o=new Date(t.getTime()+9e5);window.localStorage.setItem("CONTRIBUTORS:TTL",JSON.stringify(o));var i=l(r),a=i[0],s=i[1];n(a),c(s)})).catch((function(t){console.error(t)}));else if(r&&e&&e>=t){var o=l(r),i=o[0],a=o[1];n(i),c(a)}}),[]),[e,i]},f=function(t,e){void 0===e&&(e=[]);var n=o.a.useState(""),r=n[0],i=n[1],s=o.a.useRef(t.map((function(){return o.a.createRef()})));return o.a.useLayoutEffect((function(){var e=c()((function(){for(var e=0;e<s.current.length;){var n=t[e].id,r=s.current[e];if(r.current){var o=s.current[e+1]||{current:{offsetTop:document.body.scrollHeight}};if(window.scrollY<r.current.offsetTop-4){i("");break}if(window.scrollY>=r.current.offsetTop-4&&window.scrollY<o.current.offsetTop-4){i(n);break}e+=1}else e+=1}}),250,{leading:!0});return window.addEventListener("scroll",e,{passive:!0}),function(){window.removeEventListener("scroll",e)}}),[t].concat(a(e))),[s.current,r]}},hEkN:function(t,e,n){"use strict";n("OGtf")("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},"hKI/":function(t,e,n){(function(e){n("pIFo"),n("a1Th"),n("h7Nl"),n("Btvt");var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,c=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof e&&e&&e.Object===Object&&e,l="object"==typeof self&&self&&self.Object===Object&&self,u=s||l||Function("return this")(),f=Object.prototype.toString,d=Math.max,p=Math.min,g=function(){return u.Date.now()};function h(t,e,n){var r,o,i,c,a,s,l=0,u=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function v(e){var n=r,i=o;return r=o=void 0,l=e,c=t.apply(i,n)}function y(t){return l=t,a=setTimeout(j,e),u?v(t):c}function O(t){var n=t-s;return void 0===s||n>=e||n<0||f&&t-l>=i}function j(){var t=g();if(O(t))return w(t);a=setTimeout(j,function(t){var n=e-(t-s);return f?p(n,i-(t-l)):n}(t))}function w(t){return a=void 0,h&&r?v(t):(r=o=void 0,c)}function x(){var t=g(),n=O(t);if(r=arguments,o=this,s=t,n){if(void 0===a)return y(s);if(f)return a=setTimeout(j,e),v(s)}return void 0===a&&(a=setTimeout(j,e)),c}return e=m(e)||0,b(n)&&(u=!!n.leading,i=(f="maxWait"in n)?d(m(n.maxWait)||0,e):i,h="trailing"in n?!!n.trailing:h),x.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=s=o=a=void 0},x.flush=function(){return void 0===a?c:w(g())},x}function b(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==f.call(t)}(t))return NaN;if(b(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=b(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var n=i.test(t);return n||c.test(t)?a(t.slice(2),n?2:8):o.test(t)?NaN:+t}t.exports=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return b(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),h(t,e,{leading:r,maxWait:e,trailing:o})}}).call(this,n("yLpj"))},tUrg:function(t,e,n){"use strict";n("OGtf")("link",(function(t){return function(e){return t(this,"a","href",e)}}))}}]);
//# sourceMappingURL=6473cb07ebb846b4c448bce424ed6d40e5e6747e-b7e887fe8e5c510e91e9.js.map