text: (window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"1DpD":function(e){e.exports=JSON.parse('{"data":{"markdownRemark":{"id":"5fcf6c25-2e8f-5cc4-9649-797d43a0ba3f","excerpt":"About me I’m a software engineer based in Seattle, WA who enjoys studying algorithims. I am currently a junior at the University of Washington studying Applied…","html":"<h1>About me</h1>\\n<p>I’m a software engineer based in <strong>Seattle, WA</strong> who enjoys studying algorithims. I am currently a junior at the <strong>University of Washington</strong> studying Applied Physics and have had industry experience working as a Python/Javascript engineer. Most recently I was a full stack JS engineer at <strong>Heali.ai</strong>. I currently work on a blog posting about algorithim/AI concepts.</p>\\n<p><span\\n      class=\\"gatsby-resp-image-wrapper\\"\\n      style=\\"position: relative; display: block; margin-left: auto; margin-right: auto;  max-width: 300px;\\"\\n    >\\n      <a\\n    class=\\"gatsby-resp-image-link\\"\\n    href=\\"/static/6f44f83c0448680ed17d143c7a4e5830/56b05/Artur.jpg\\"\\n    style=\\"display: block\\"\\n    target=\\"_blank\\"\\n    rel=\\"noopener\\"\\n  >\\n    <span\\n    class=\\"gatsby-resp-image-background-image\\"\\n    style=\\"padding-bottom: 67.33333333333333%; position: relative; bottom: 0; left: 0; background-image: url(\'data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAANABQDASIAAhEBAxEB/8QAGQAAAgMBAAAAAAAAAAAAAAAAAAQCAwUG/8QAFQEBAQAAAAAAAAAAAAAAAAAAAQL/2gAMAwEAAhADEAAAAXsvoKCWiQ1//8QAGRABAAMBAQAAAAAAAAAAAAAAAgEDEgAE/9oACAEBAAEFAvZYgY3VBnRdZfRQM9//xAAVEQEBAAAAAAAAAAAAAAAAAAAhEP/aAAgBAwEBPwFZ/8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAgEBPwE//8QAHRAAAgEEAwAAAAAAAAAAAAAAAAECEBEhMSJRYf/aAAgBAQAGPwJKG2Rmpv0T7OS0Weaf/8QAGhABAAIDAQAAAAAAAAAAAAAAAQARITFBYf/aAAgBAQABPyF6qtyS8eujpniq5U5OIxFTnkAADRP/2gAMAwEAAgADAAAAEHsP/8QAFxEBAAMAAAAAAAAAAAAAAAAAARARof/aAAgBAwEBPxBKYj//xAAWEQEBAQAAAAAAAAAAAAAAAAABERD/2gAIAQIBAT8QbTP/xAAbEAEBAAEFAAAAAAAAAAAAAAABEQAhMUFRcf/aAAgBAQABPxBBlh3gOD25Z40VqHerckRAZ6pcKYNLWIGqtb+HCagQDgz/2Q==\'); background-size: cover; display: block;\\"\\n  ></span>\\n  <img\\n        class=\\"gatsby-resp-image-image\\"\\n        alt=\\"Artur\\"\\n        title=\\"Artur\\"\\n        src=\\"/static/6f44f83c0448680ed17d143c7a4e5830/56b05/Artur.jpg\\"\\n        srcset=\\"/static/6f44f83c0448680ed17d143c7a4e5830/7237a/Artur.jpg 148w,\\n/static/6f44f83c0448680ed17d143c7a4e5830/0cfdf/Artur.jpg 295w,\\n/static/6f44f83c0448680ed17d143c7a4e5830/56b05/Artur.jpg 300w\\"\\n        sizes=\\"(max-width: 300px) 100vw, 300px\\"\\n        loading=\\"lazy\\"\\n      />\\n  </a>\\n    </span></p>\\n<h2>Technologies i’ve been working with</h2>\\n<ul>\\n<li>typescript/react/redux</li>\\n<li>serverless (AWS Lambda)</li>\\n<li>redis</li>\\n<li>mongoDB</li>\\n<li>tensorflow</li>\\n</ul>"}}}')},"44u6":function(e){e.exports=JSON.parse('{"data":{"allMarkdownRemark":{"edges":[{"node":{"excerpt":"About me I’m a software engineer based in Seattle, WA who enjoys studying algorithims. I am currently a junior at the University of…","fields":{"slug":"landing/about/about/"},"frontmatter":{"date":null,"title":"","description":null}}},{"node":{"excerpt":"Experience Full Stack Engineer Intern @ Heali.ai Quant. Finance Research Intern @ Nipun Capital Software Engineer Intern @ Minted","fields":{"slug":"landing/experience/experience/"},"frontmatter":{"date":null,"title":"","description":null}}},{"node":{"excerpt":"Introduction A well-defined problem is the first step when coming up with a model.\\nThen, a problem is modeled with mathematics and then…","fields":{"slug":"blogs/genetic-blog/"},"frontmatter":{"date":"January 04, 2020","title":"Machine Playing Pong Unsupervised with Genetic Algorithims (WIP) 🧬","description":"Building an unsupervised genetic learning algorithim that learns to play pong in 15 minutes in Python."}}}]}}}')},NBEx:function(e,t,n){n("Z2Ku"),n("L9s1");var r=n("ydnR");t.filterPosts=function(e){return e.filter((function(e){return e.node.fields.slug.includes(r.blogBasePath)}))}},RDLf:function(e){e.exports=JSON.parse('{"data":{"markdownRemark":{"id":"24821485-91ba-5dba-8b0e-2ee5549e4522","excerpt":"Experience Full Stack Engineer Intern @ Heali.ai Quant. Finance Research Intern @ Nipun Capital Software Engineer Intern @ Minted","html":"<h1>Experience</h1>\\n<ul>\\n<li>Full Stack Engineer Intern @ <strong>Heali.ai</strong></li>\\n<li>Quant. Finance Research Intern @ <strong>Nipun Capital</strong></li>\\n<li>Software Engineer Intern @ <strong>Minted</strong></li>\\n</ul>"}}}')},RXBc:function(e,t,n){"use strict";n.r(t);n("VRzm"),n("Btvt");var r=n("q1tI"),a=n.n(r),o=n("Wbzz"),i=(n("0l/t"),n("V+eJ"),n("hHhE"),n("/SS/"),n("91GP"),n("LK8F"),n("XfO3"),n("HEwt"),n("a1Th"),n("h7Nl"),n("rGqo"),n("HAE/"),n("rE2o"),n("ioFf"),n("TSYQ")),l=n.n(i),s=n("foW8"),c=n.n(s),u=n("H84U");function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(){return(f=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)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&A(e.prototype,t),n&&A(e,n),e}function g(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},E=c()({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function j(e){var t=e.suffixCls,n=e.tagName;return function(e){return function(a){function o(){var a;return m(this,o),(a=g(this,b(o).apply(this,arguments))).renderComponent=function(o){var i=o.getPrefixCls,l=a.props.prefixCls,s=i(t,l);return r.createElement(e,f({prefixCls:s,tagName:n},a.props))},a}return y(o,a),h(o,[{key:"render",value:function(){return r.createElement(u.a,null,this.renderComponent)}}]),o}(r.Component)}}var k=function(e){var t=e.prefixCls,n=e.className,a=e.children,o=e.tagName,i=v(e,["prefixCls","className","children","tagName"]),s=l()(n,t);return r.createElement(o,f({className:s},i),a)},x=function(e){function t(){var e;return m(this,t),(e=g(this,b(t).apply(this,arguments))).state={siders:[]},e}return y(t,e),h(t,[{key:"getSiderHook",value:function(){var e=this;return{addSider:function(t){e.setState((function(e){return{siders:[].concat(d(e.siders),[t])}}))},removeSider:function(t){e.setState((function(e){return{siders:e.siders.filter((function(e){return e!==t}))}}))}}}},{key:"render",value:function(){var e,t,n,a=this.props,o=a.prefixCls,i=a.className,s=a.children,c=a.hasSider,u=a.tagName,p=v(a,["prefixCls","className","children","hasSider","tagName"]),d=l()(i,o,(e={},t="".concat(o,"-has-sider"),n="boolean"==typeof c?c:this.state.siders.length>0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e));return r.createElement(E.Provider,{value:{siderHook:this.getSiderHook()}},r.createElement(u,f({className:d},p),s))}}]),t}(r.Component),C=j({suffixCls:"layout",tagName:"section"})(x),O=j({suffixCls:"layout-header",tagName:"header"})(k),S=j({suffixCls:"layout-footer",tagName:"footer"})(k),P=j({suffixCls:"layout-content",tagName:"main"})(k);C.Header=O,C.Footer=S,C.Content=P;var R=C,B=n("94VI"),N=n("BGR+"),I=n("CtXQ"),M=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(){return(_=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)}function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function D(e,t,n){return t&&H(e.prototype,t),n&&H(e,n),e}function W(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function L(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z(e,t)}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};if("undefined"!=typeof window){window.matchMedia||(window.matchMedia=function(e){return{media:e,matches:!1,addListener:function(){},removeListener:function(){}}})}var q,J={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},K=c()({}),U=(q=0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return q+=1,"".concat(e).concat(q)}),Z=function(e){function t(e){var n,a,o;return F(this,t),(n=W(this,Y(t).call(this,e))).responsiveHandler=function(e){n.setState({below:e.matches});var t=n.props.onBreakpoint;t&&t(e.matches),n.state.collapsed!==e.matches&&n.setCollapsed(e.matches,"responsive")},n.setCollapsed=function(e,t){"collapsed"in n.props||n.setState({collapsed:e});var r=n.props.onCollapse;r&&r(e,t)},n.toggle=function(){var e=!n.state.collapsed;n.setCollapsed(e,"clickTrigger")},n.belowShowChange=function(){n.setState((function(e){return{belowShow:!e.belowShow}}))},n.renderSider=function(e){var t,a=e.getPrefixCls,o=n.props,i=o.prefixCls,s=o.className,c=o.theme,u=o.collapsible,p=o.reverseArrow,d=o.trigger,f=o.style,m=o.width,A=o.collapsedWidth,h=o.zeroWidthTriggerStyle,g=G(o,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle"]),b=a("layout-sider",i),y=Object(N.a)(g,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),w=n.state.collapsed?A:m,v=M(w)?"".concat(w,"px"):String(w),E=0===parseFloat(String(A||0))?r.createElement("span",{onClick:n.toggle,className:"".concat(b,"-zero-width-trigger ").concat(b,"-zero-width-trigger-").concat(p?"right":"left"),style:h},r.createElement(I.a,{type:"bars"})):null,j={expanded:p?r.createElement(I.a,{type:"right"}):r.createElement(I.a,{type:"left"}),collapsed:p?r.createElement(I.a,{type:"left"}):r.createElement(I.a,{type:"right"})}[n.state.collapsed?"collapsed":"expanded"],k=null!==d?E||r.createElement("div",{className:"".concat(b,"-trigger"),onClick:n.toggle,style:{width:v}},d||j):null,x=_(_({},f),{flex:"0 0 ".concat(v),maxWidth:v,minWidth:v,width:v}),C=l()(s,b,"".concat(b,"-").concat(c),(Q(t={},"".concat(b,"-collapsed"),!!n.state.collapsed),Q(t,"".concat(b,"-has-trigger"),u&&null!==d&&!E),Q(t,"".concat(b,"-below"),!!n.state.below),Q(t,"".concat(b,"-zero-width"),0===parseFloat(v)),t));return r.createElement("aside",_({className:C},y,{style:x}),r.createElement("div",{className:"".concat(b,"-children")},n.props.children),u||n.state.below&&E?k:null)},n.uniqueId=U("ant-sider-"),"undefined"!=typeof window&&(a=window.matchMedia),a&&e.breakpoint&&e.breakpoint in J&&(n.mql=a("(max-width: ".concat(J[e.breakpoint],")"))),o="collapsed"in e?e.collapsed:e.defaultCollapsed,n.state={collapsed:o,below:!1},n}return L(t,e),D(t,[{key:"componentDidMount",value:function(){this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),this.props.siderHook&&this.props.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){this.mql&&this.mql.removeListener(this.responsiveHandler),this.props.siderHook&&this.props.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var e=this.state.collapsed,t=this.props.collapsedWidth;return r.createElement(K.Provider,{value:{siderCollapsed:e,collapsedWidth:t}},r.createElement(u.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(e){return"collapsed"in e?{collapsed:e.collapsed}:null}}]),t}(r.Component);Z.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"},Object(B.polyfill)(Z);var V=function(e){function t(){return F(this,t),W(this,Y(t).apply(this,arguments))}return L(t,e),D(t,[{key:"render",value:function(){var e=this;return r.createElement(E.Consumer,null,(function(t){return r.createElement(Z,_({},t,e.props))}))}}]),t}(r.Component);R.Sider=V;var X=R,$=n("MxaW"),ee=n("BMrR"),te=n("2/Rp"),ne=n("kPKH"),re=n("u1gX"),ae=n.n(re),oe=n("p3AD"),ie=n("+CVY"),le=n("1iFT"),se=n("ydnR"),ce=n.n(se);function ue(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var pe=ce.a.jumbotron.lines,de=function(e){var t=e.topMessage,n=e.bottomMessage,r=e.bottomMessagePrefix;return a.a.createElement("div",{style:{paddingTop:Object(oe.a)(2),width:"100%"},className:le.a?ae.a.jumbotronMobile:ae.a.jumbotron},a.a.createElement(ee.a,null,a.a.createElement("h1",{style:Object.assign({},Object(oe.b)(2.1))},t)),a.a.createElement(ee.a,null,a.a.createElement("h1",{id:"element",style:Object.assign({},Object(oe.b)(2.1))},r,a.a.createElement("span",{style:{color:ce.a.theme.jumbotronTypingColor}},n),a.a.createElement("span",{className:ae.a.blinker}))),a.a.createElement(ee.a,{type:"flex",justify:"end"},a.a.createElement(te.a,{href:"mailto:"+ce.a.contactEmail,type:"primary"},ce.a.jumbotron.buttonText)))},fe=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,t,n)||this).state={message:pe[0],deleted:!1},r.deleteChar=r.deleteChar.bind(ue(r)),r.addChar=r.addChar.bind(ue(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){for(var e=this,t=Promise.resolve(),n=function(n){t=(t=(t=(t=t.then((function(){return Object(ie.b)(1e3)}))).then((function(){return e.deleteString(pe[n])}))).then((function(){return Object(ie.b)(1e3)}))).then((function(){return e.typeString(pe[n+1])}))},r=0;r<pe.length-1;r++)n(r)},o.deleteString=function(e){var t=this;return new Promise((function(n){Object(ie.a)(t.deleteChar,e.length).then(n)}))},o.typeString=function(e){var t=this;return new Promise((function(n){for(var r=Promise.resolve(),a=function(n){r=r.then((function(){return t.addChar(e.substring(n,n+1))}))},o=0;o<e.length;o++)a(o);r=r.then(n)}))},o.deleteChar=function(){var e=this;return new Promise((function(t){Object(ie.b)(100).then((function(){e.setState({message:e.state.message.substring(0,e.state.message.length-1)}),t()}))}))},o.addChar=function(e){var t=this;return new Promise((function(n){Object(ie.b)(100).then((function(){t.setState({message:t.state.message+e}),n()}))}))},o.render=function(){return a.a.createElement(de,{topMessage:ce.a.jumbotron.topMessage,bottomMessagePrefix:ce.a.jumbotron.bottomMessagePrefix,bottomMessage:this.state.message})},r}(a.a.Component),me=function(){return a.a.createElement(ee.a,{type:"flex",justify:"start"},a.a.createElement(ne.a,{style:{width:"100%"}},a.a.createElement(fe,null)))},Ae=n("1DpD"),he=function(e){var t=e.number;return a.a.createElement("h1",{style:{color:se.theme.numberColor,marginRight:Object(oe.a)(1)}},"0"+t+".")},ge=function(e){var t=e.refCallback,n=Ae.data;return a.a.createElement("div",{ref:t,style:{marginTop:Object(oe.a)(7)},className:le.a?ae.a.jumbotronMobile:ae.a.jumbotron},a.a.createElement(ee.a,null,a.a.createElement(he,{number:2})),a.a.createElement(ee.a,null,a.a.createElement("section",{dangerouslySetInnerHTML:{__html:n.markdownRemark.html}})))},be=n("44u6"),ye=n("NBEx"),we=function(e){var t=e.refCallback,n=be.data,r=Object(ye.filterPosts)(n.allMarkdownRemark.edges);return a.a.createElement("div",{ref:t,style:{marginTop:Object(oe.a)(7)},className:le.a?ae.a.jumbotronMobile:ae.a.jumbotron},a.a.createElement(ee.a,null,a.a.createElement(he,{number:1})),a.a.createElement(ee.a,null,a.a.createElement("h1",null,"Blogs"),r.map((function(e){var t=e.node,n=t.frontmatter.title||t.fields.slug;return a.a.createElement("article",{key:t.fields.slug},a.a.createElement("header",null,a.a.createElement("h3",{style:{marginBottom:Object(oe.a)(.25)}},a.a.createElement(o.Link,{style:{boxShadow:"none"},to:t.fields.slug},n)),a.a.createElement("small",null,t.frontmatter.date)),a.a.createElement("section",null,a.a.createElement("p",{dangerouslySetInnerHTML:{__html:t.frontmatter.description||t.excerpt}})))}))))},ve=n("RDLf"),Ee=function(e){var t=e.refCallback,n=ve.data;return a.a.createElement("div",{ref:t,style:{marginTop:Object(oe.a)(7)},className:le.a?ae.a.jumbotronMobile:ae.a.jumbotron},a.a.createElement(ee.a,null,a.a.createElement(he,{number:3})),a.a.createElement(ee.a,null,a.a.createElement("section",{dangerouslySetInnerHTML:{__html:n.markdownRemark.html}})))},je=n("TJpk"),ke=n.n(je);function xe(e){var t=e.description,n=e.lang,r=e.meta,o=e.title;return a.a.createElement(ke.a,{htmlAttributes:{lang:n},title:o,titleTemplate:"%s",meta:[{name:"description",content:t},{property:"og:title",content:o},{property:"og:description",content:t},{property:"og:type",content:"website"}].concat(r)})}xe.defaultProps={lang:"en",meta:[],description:""};var Ce=xe,Oe=n("Mz5C"),Se=n.n(Oe);function Pe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"pageQuery",(function(){return Te}));var Re=X.Header,Be=X.Footer,Ne=X.Content,Ie=se.theme.shiftingColors,Me=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,t,n)||this).state={width:null,currentIndex:0,backgroundColor:Ie[0]},r.aboutRef=null,r.experienceRef=null,r.blogsRef=null,r.rotateBackgroundColor=r.rotateBackgroundColor.bind(Pe(r)),r.oneRotation=r.oneRotation.bind(Pe(r)),r.startRotations=r.startRotations.bind(Pe(r)),r.initKeyPressLogic=r.initKeyPressLogic.bind(Pe(r)),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){var e=this;window.addEventListener("resize",(function(){return e.setState({width:window.innerWidth})})),Object(ie.a)(this.startRotations,500).then((function(){return console.log("no more repeating")})),this.initKeyPressLogic()},o.componentWillUnmount=function(){var e=this;window.removeEventListener("resize",(function(){return e.setState({width:window.innerWidth})})),document.removeEventListener("keypress",this.func)},o.rotateBackgroundColor=function(){var e=this;return new Promise((function(t){var n=e.state.currentIndex+1>=Ie.length?0:e.state.currentIndex+1;e.setState({currentIndex:n,backgroundColor:Ie[n]}),Object(ie.b)(6e3).then(t)}))},o.oneRotation=function(){var e=this,t=Promise.resolve();return t=(t=t.then((function(){return Object(ie.b)(1e3)}))).then((function(){return e.rotateBackgroundColor()}))},o.startRotations=function(){for(var e=this,t=Promise.resolve(),n=0;n<Ie.length;n++)t=t.then((function(){return e.oneRotation()}));return t},o.initKeyPressLogic=function(){var e=this;this.func=function(t){t.keyCode=="1".charCodeAt(0)?window.scrollTo(0,e.blogsRef.offsetTop+$.b):t.keyCode=="2".charCodeAt(0)?window.scrollTo(0,e.aboutRef.offsetTop+$.b):t.keyCode=="3".charCodeAt(0)&&window.scrollTo(0,e.experienceRef.offsetTop+$.b)},document.addEventListener("keypress",this.func)},o.render=function(){var e=this,t=this.props.data;t.site.siteMetadata.title,t.allMarkdownRemark.edges;return a.a.createElement(X,{style:{background:this.state.backgroundColor},className:Se.a.container},a.a.createElement(Ce,{title:se.author,description:se.description,meta:[{name:"google-site-verification",content:"SkuXj_g_uDvvxdLmSZ32ZSEFYFwZ0Yqv5t7pcPak8hg"}]}),a.a.createElement(Re,{style:{position:"fixed",zIndex:1,width:"99vw",paddingLeft:Object(oe.a)(.5),paddingRight:Object(oe.a)(.5),background:"inherit"}},a.a.createElement($.c,{refs:[this.aboutRef,this.experienceRef,this.blogsRef]})),a.a.createElement(X,{style:{background:"inherit"}},a.a.createElement(Ne,{style:{marginTop:Object(oe.a)(3),marginLeft:"auto",marginRight:"auto",maxWidth:Object(oe.a)(32)}},a.a.createElement(me,null),a.a.createElement(we,{refCallback:function(t){return e.blogsRef=t}}),a.a.createElement(ge,{refCallback:function(t){return e.aboutRef=t}}),a.a.createElement(Ee,{refCallback:function(t){return e.experienceRef=t}}),a.a.createElement(Be,{style:{background:"inherit"}},a.a.createElement("footer",null,"© ",(new Date).getFullYear(),", Built with"," ",a.a.createElement("a",{href:"https://www.gatsbyjs.org"},"Gatsby")," and ❤️")))))},r}(a.a.Component),Te=(t.default=Me,"2785444898")}}]);
  //# sourceMappingURL=component---src-pages-index-js-49a90e1808a6d9d6b1d9.js.map