├── .cache ├── .eslintrc.json ├── _this_is_virtual_fs_path_ │ └── $virtual │ │ ├── async-requires.js │ │ ├── loading-indicator.js │ │ ├── match-paths.json │ │ └── sync-requires.js ├── api-runner-browser-plugins.js ├── api-runner-browser.js ├── api-runner-ssr.js ├── api-ssr-docs.js ├── app.js ├── async-requires.js ├── babelState.json ├── blank.css ├── commonjs │ ├── api-runner-browser-plugins.js │ ├── api-runner-browser.js │ ├── api-runner-ssr.js │ ├── api-ssr-docs.js │ ├── app.js │ ├── debug-log.js │ ├── default-html.js │ ├── dev-loader.js │ ├── develop-static-entry.js │ ├── dummy.js │ ├── emitter.js │ ├── ensure-resources.js │ ├── error-overlay-handler.js │ ├── fast-refresh-overlay │ │ ├── components │ │ │ ├── accordion.js │ │ │ ├── build-error.js │ │ │ ├── code-frame.js │ │ │ ├── error-boundary.js │ │ │ ├── graphql-errors.js │ │ │ ├── hooks.js │ │ │ ├── overlay.js │ │ │ ├── portal.js │ │ │ ├── runtime-errors.js │ │ │ └── use-id.js │ │ ├── helpers │ │ │ ├── focus-trap.js │ │ │ ├── keys.js │ │ │ ├── lock-body.js │ │ │ └── match.js │ │ ├── index.js │ │ ├── style.js │ │ └── utils.js │ ├── find-path.js │ ├── gatsby-browser-entry.js │ ├── loader.js │ ├── loading-indicator │ │ ├── index.js │ │ ├── indicator.js │ │ ├── portal.js │ │ └── style.js │ ├── navigation.js │ ├── normalize-page-path.js │ ├── page-renderer.js │ ├── polyfill-entry.js │ ├── prefetch.js │ ├── production-app.js │ ├── public-page-renderer-dev.js │ ├── public-page-renderer-prod.js │ ├── public-page-renderer.js │ ├── query-result-store.js │ ├── react-lifecycles-compat.js │ ├── register-service-worker.js │ ├── root.js │ ├── route-announcer-props.js │ ├── socketIo.js │ ├── ssr-builtin-trackers │ │ ├── child_process.js │ │ ├── fs.js │ │ ├── http.js │ │ ├── http2.js │ │ ├── https.js │ │ └── tracking-unsafe-module-wrapper.js │ ├── ssr-develop-static-entry.js │ ├── static-entry.js │ └── strip-prefix.js ├── debug-log.js ├── default-html.js ├── dev-404-page.js ├── dev-loader.js ├── develop-html │ └── index.html ├── develop-static-entry.js ├── dummy.js ├── emitter.js ├── ensure-resources.js ├── error-overlay-handler.js ├── fast-refresh-overlay │ ├── components │ │ ├── accordion.js │ │ ├── build-error.js │ │ ├── code-frame.js │ │ ├── error-boundary.js │ │ ├── graphql-errors.js │ │ ├── hooks.js │ │ ├── overlay.js │ │ ├── portal.js │ │ ├── runtime-errors.js │ │ └── use-id.js │ ├── helpers │ │ ├── focus-trap.js │ │ ├── keys.js │ │ ├── lock-body.js │ │ └── match.js │ ├── index.js │ ├── style.js │ └── utils.js ├── find-path.js ├── gatsby-browser-entry.js ├── json │ └── _dev-404-page_.json ├── loader.js ├── loading-indicator │ ├── index.js │ ├── indicator.js │ ├── portal.js │ └── style.js ├── match-paths.json ├── navigation.js ├── normalize-page-path.js ├── page-renderer.js ├── pages.json ├── polyfill-entry.js ├── prefetch.js ├── production-app.js ├── public-page-renderer-dev.js ├── public-page-renderer-prod.js ├── public-page-renderer.js ├── query-result-store.js ├── react-lifecycles-compat.js ├── redirects.json ├── register-service-worker.js ├── root.js ├── route-announcer-props.js ├── socketIo.js ├── ssr-builtin-trackers │ ├── child_process.js │ ├── fs.js │ ├── http.js │ ├── http2.js │ ├── https.js │ └── tracking-unsafe-module-wrapper.js ├── ssr-develop-static-entry.js ├── static-entry.js ├── strip-prefix.js ├── sync-requires.js ├── test-require-error.js └── webpack │ └── babel │ ├── 55581cba31dc76c52b22ba0ee777c9d6.json.gz │ ├── 98364ec2d0b052c004e2ae28d3d7174a.json.gz │ ├── baf07441a087a6d9f8963adc9d245a18.json.gz │ └── ce4a969851c378e50157fe8da6b897a7.json.gz ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ ├── build-deploy.yml │ └── build.yml ├── .gitignore ├── CODEOWNERS ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── PULL_REQUEST_TEMPLATE.md ├── README.md ├── gdsc-logo.gif ├── gdsc.png ├── package-lock.json ├── package.json ├── public ├── CNAME ├── index.html ├── logo.png ├── logo192.png ├── logo512.png ├── manifest.json ├── render-page.js ├── render-page.js.map └── robots.txt ├── src ├── App.js ├── App.test.js ├── components │ ├── json │ │ └── worldData.js │ ├── jumbotron.js │ ├── map.js │ └── searchedLeads.js ├── index.js ├── photos │ ├── Abhinavtb.jpg │ ├── AdithyaAnilkumar.jpg │ ├── AdityaBirangal.jpg │ ├── Aineshphanithi.jpg │ ├── AkashM.jpg │ ├── AkshaySharma008.jpg │ ├── AnmolKaur.jpg │ ├── AnubhavMadhav.jpg │ ├── AravindVNair99.jpg │ ├── Aravindh020.jpg │ ├── AsishRaju.jpg │ ├── Aswin.jpg │ ├── FireQueen-3010.jpg │ ├── Jacob.jpg │ ├── James7881.jpg │ ├── JuliusKanneh.jpg │ ├── Karan.jpg │ ├── LoopGlitch26.jpg │ ├── Manjunath.jpg │ ├── MuhammadHassanRazaa.jpg │ ├── MuhideenMujeeb.jpg │ ├── NaveenK.jpg │ ├── PragatiVerma.jpg │ ├── RyuuKenshi.jpg │ ├── SangeetaJha.jpg │ ├── SanjayDevTech.jpg │ ├── TamunokoriteBriggs.jpg │ ├── Vasundharashukla.jpg │ ├── Vedant.jpg │ ├── abhinavsri360.jpg │ ├── abhishek2x.jpg │ ├── adi10hero.jpg │ ├── advaithunnikrishnan.jpg │ ├── aemiej.jpg │ ├── aitik.jpg │ ├── akashshrivastava.jpg │ ├── akshita2k.jpg │ ├── ankitaugale23.jpg │ ├── arrayappy.jpg │ ├── ashwinraj.jpg │ ├── chrisft25.jpg │ ├── dewanshrawat15.jpg │ ├── eswar2001.jpg │ ├── ghpranav.jpg │ ├── ghulamrasuldev.jpg │ ├── gohil-jay.jpg │ ├── harshKumarKhatri.jpg │ ├── helios027.jpg │ ├── ikoala21.jpg │ ├── ishubham21.jpg │ ├── jemikp.jpg │ ├── jestinroy3.jpg │ ├── karthik.jpg │ ├── kartikbhushan.jpg │ ├── kartikderasari.jpg │ ├── kunalgehlot.jpg │ ├── mriceflame.jpg │ ├── pal-16.jpg │ ├── praddy2009.jpg │ ├── pvsharshith.jpg │ ├── ralphcoder.jpg │ ├── rohitdalvi18.jpg │ ├── sakshigrover.jpg │ ├── sanjeev.jpg │ ├── sharjeel.jpg │ ├── shawavisek35.jpg │ ├── shreyasmalewar.jpg │ ├── srilaasya.jpg │ ├── subratkishoredutta.jpg │ ├── sunanda.jpg │ ├── suyashsonawane.jpg │ ├── taharh.jpg │ ├── venkyjayasurya.jpg │ ├── yashrajkakkad.jpg │ └── zainul.jpg ├── reportWebVitals.js └── setupTests.js └── yarn.lock /.cache/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true 4 | }, 5 | "globals": { 6 | "__PATH_PREFIX__": false, 7 | "___emitter": false 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /.cache/_this_is_virtual_fs_path_/$virtual/async-requires.js: -------------------------------------------------------------------------------- 1 | // prefer default export if available 2 | const preferDefault = m => (m && m.default) || m 3 | 4 | exports.components = { 5 | "component---cache-dev-404-page-js": () => import("./../../dev-404-page.js" /* webpackChunkName: "component---cache-dev-404-page-js" */) 6 | } 7 | 8 | -------------------------------------------------------------------------------- /.cache/_this_is_virtual_fs_path_/$virtual/loading-indicator.js: -------------------------------------------------------------------------------- 1 | 2 | export function isLoadingIndicatorEnabled() { 3 | return false 4 | } -------------------------------------------------------------------------------- /.cache/_this_is_virtual_fs_path_/$virtual/match-paths.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /.cache/_this_is_virtual_fs_path_/$virtual/sync-requires.js: -------------------------------------------------------------------------------- 1 | 2 | // prefer default export if available 3 | const preferDefault = m => (m && m.default) || m 4 | 5 | 6 | exports.components = { 7 | "component---cache-dev-404-page-js": preferDefault(require("/home/abhinavsri360/My place/Projectzzz/l_map/.cache/dev-404-page.js")) 8 | } 9 | 10 | -------------------------------------------------------------------------------- /.cache/api-runner-browser-plugins.js: -------------------------------------------------------------------------------- 1 | module.exports = [] 2 | -------------------------------------------------------------------------------- /.cache/api-runner-browser.js: -------------------------------------------------------------------------------- 1 | const plugins = require(`./api-runner-browser-plugins`) 2 | const { 3 | getResourceURLsForPathname, 4 | loadPage, 5 | loadPageSync, 6 | } = require(`./loader`).publicLoader 7 | 8 | exports.apiRunner = (api, args = {}, defaultReturn, argTransform) => { 9 | // Hooks for gatsby-cypress's API handler 10 | if (process.env.CYPRESS_SUPPORT) { 11 | if (window.___apiHandler) { 12 | window.___apiHandler(api) 13 | } else if (window.___resolvedAPIs) { 14 | window.___resolvedAPIs.push(api) 15 | } else { 16 | window.___resolvedAPIs = [api] 17 | } 18 | } 19 | 20 | let results = plugins.map(plugin => { 21 | if (!plugin.plugin[api]) { 22 | return undefined 23 | } 24 | 25 | args.getResourceURLsForPathname = getResourceURLsForPathname 26 | args.loadPage = loadPage 27 | args.loadPageSync = loadPageSync 28 | 29 | const result = plugin.plugin[api](args, plugin.options) 30 | if (result && argTransform) { 31 | args = argTransform({ args, result, plugin }) 32 | } 33 | return result 34 | }) 35 | 36 | // Filter out undefined results. 37 | results = results.filter(result => typeof result !== `undefined`) 38 | 39 | if (results.length > 0) { 40 | return results 41 | } else if (defaultReturn) { 42 | return [defaultReturn] 43 | } else { 44 | return [] 45 | } 46 | } 47 | 48 | exports.apiRunnerAsync = (api, args, defaultReturn) => 49 | plugins.reduce( 50 | (previous, next) => 51 | next.plugin[api] 52 | ? previous.then(() => next.plugin[api](args, next.options)) 53 | : previous, 54 | Promise.resolve() 55 | ) 56 | -------------------------------------------------------------------------------- /.cache/api-runner-ssr.js: -------------------------------------------------------------------------------- 1 | var plugins = [] 2 | // During bootstrap, we write requires at top of this file which looks like: 3 | // var plugins = [ 4 | // { 5 | // plugin: require("/path/to/plugin1/gatsby-ssr.js"), 6 | // options: { ... }, 7 | // }, 8 | // { 9 | // plugin: require("/path/to/plugin2/gatsby-ssr.js"), 10 | // options: { ... }, 11 | // }, 12 | // ] 13 | 14 | const apis = require(`./api-ssr-docs`) 15 | 16 | // Run the specified API in any plugins that have implemented it 17 | module.exports = (api, args, defaultReturn, argTransform) => { 18 | if (!apis[api]) { 19 | console.log(`This API doesn't exist`, api) 20 | } 21 | 22 | // Run each plugin in series. 23 | // eslint-disable-next-line no-undef 24 | let results = plugins.map(plugin => { 25 | if (!plugin.plugin[api]) { 26 | return undefined 27 | } 28 | try { 29 | const result = plugin.plugin[api](args, plugin.options) 30 | if (result && argTransform) { 31 | args = argTransform({ args, result }) 32 | } 33 | return result 34 | } catch (e) { 35 | if (plugin.name !== `default-site-plugin`) { 36 | // default-site-plugin is user code and will print proper stack trace, 37 | // so no point in annotating error message pointing out which plugin is root of the problem 38 | e.message += ` (from plugin: ${plugin.name})` 39 | } 40 | 41 | throw e 42 | } 43 | }) 44 | 45 | // Filter out undefined results. 46 | results = results.filter(result => typeof result !== `undefined`) 47 | 48 | if (results.length > 0) { 49 | return results 50 | } else { 51 | return [defaultReturn] 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /.cache/async-requires.js: -------------------------------------------------------------------------------- 1 | // prefer default export if available 2 | const preferDefault = m => (m && m.default) || m 3 | 4 | exports.components = { 5 | "component---cache-dev-404-page-js": () => import("./../../dev-404-page.js" /* webpackChunkName: "component---cache-dev-404-page-js" */) 6 | } 7 | 8 | -------------------------------------------------------------------------------- /.cache/blank.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/.cache/blank.css -------------------------------------------------------------------------------- /.cache/commonjs/api-runner-browser-plugins.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // During bootstrap, we write requires at top of this file which looks 4 | // basically like: 5 | // module.exports = [ 6 | // { 7 | // plugin: require("/path/to/plugin1/gatsby-browser.js"), 8 | // options: { ... }, 9 | // }, 10 | // { 11 | // plugin: require("/path/to/plugin2/gatsby-browser.js"), 12 | // options: { ... }, 13 | // }, 14 | // ] 15 | module.exports = []; -------------------------------------------------------------------------------- /.cache/commonjs/api-runner-browser.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const plugins = require(`./api-runner-browser-plugins`); 4 | 5 | const { 6 | getResourceURLsForPathname, 7 | loadPage, 8 | loadPageSync 9 | } = require(`./loader`).publicLoader; 10 | 11 | exports.apiRunner = (api, args = {}, defaultReturn, argTransform) => { 12 | // Hooks for gatsby-cypress's API handler 13 | if (process.env.CYPRESS_SUPPORT) { 14 | if (window.___apiHandler) { 15 | window.___apiHandler(api); 16 | } else if (window.___resolvedAPIs) { 17 | window.___resolvedAPIs.push(api); 18 | } else { 19 | window.___resolvedAPIs = [api]; 20 | } 21 | } 22 | 23 | let results = plugins.map(plugin => { 24 | if (!plugin.plugin[api]) { 25 | return undefined; 26 | } 27 | 28 | args.getResourceURLsForPathname = getResourceURLsForPathname; 29 | args.loadPage = loadPage; 30 | args.loadPageSync = loadPageSync; 31 | const result = plugin.plugin[api](args, plugin.options); 32 | 33 | if (result && argTransform) { 34 | args = argTransform({ 35 | args, 36 | result, 37 | plugin 38 | }); 39 | } 40 | 41 | return result; 42 | }); // Filter out undefined results. 43 | 44 | results = results.filter(result => typeof result !== `undefined`); 45 | 46 | if (results.length > 0) { 47 | return results; 48 | } else if (defaultReturn) { 49 | return [defaultReturn]; 50 | } else { 51 | return []; 52 | } 53 | }; 54 | 55 | exports.apiRunnerAsync = (api, args, defaultReturn) => plugins.reduce((previous, next) => next.plugin[api] ? previous.then(() => next.plugin[api](args, next.options)) : previous, Promise.resolve()); -------------------------------------------------------------------------------- /.cache/commonjs/api-runner-ssr.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // During bootstrap, we write requires at top of this file which looks like: 4 | // var plugins = [ 5 | // { 6 | // plugin: require("/path/to/plugin1/gatsby-ssr.js"), 7 | // options: { ... }, 8 | // }, 9 | // { 10 | // plugin: require("/path/to/plugin2/gatsby-ssr.js"), 11 | // options: { ... }, 12 | // }, 13 | // ] 14 | const apis = require(`./api-ssr-docs`); // Run the specified API in any plugins that have implemented it 15 | 16 | 17 | module.exports = (api, args, defaultReturn, argTransform) => { 18 | if (!apis[api]) { 19 | console.log(`This API doesn't exist`, api); 20 | } // Run each plugin in series. 21 | // eslint-disable-next-line no-undef 22 | 23 | 24 | let results = plugins.map(plugin => { 25 | if (!plugin.plugin[api]) { 26 | return undefined; 27 | } 28 | 29 | try { 30 | const result = plugin.plugin[api](args, plugin.options); 31 | 32 | if (result && argTransform) { 33 | args = argTransform({ 34 | args, 35 | result 36 | }); 37 | } 38 | 39 | return result; 40 | } catch (e) { 41 | if (plugin.name !== `default-site-plugin`) { 42 | // default-site-plugin is user code and will print proper stack trace, 43 | // so no point in annotating error message pointing out which plugin is root of the problem 44 | e.message += ` (from plugin: ${plugin.name})`; 45 | } 46 | 47 | throw e; 48 | } 49 | }); // Filter out undefined results. 50 | 51 | results = results.filter(result => typeof result !== `undefined`); 52 | 53 | if (results.length > 0) { 54 | return results; 55 | } else { 56 | return [defaultReturn]; 57 | } 58 | }; -------------------------------------------------------------------------------- /.cache/commonjs/debug-log.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.__esModule = true; 4 | exports.debugLog = debugLog; 5 | // inspired by https://github.com/GoogleChrome/workbox/blob/3d02230f0e977eb1dc86c48f16ea4bcefdae12af/packages/workbox-core/src/_private/logger.ts 6 | const styles = [`background: rebeccapurple`, `border-radius: 0.5em`, `color: white`, `font-weight: bold`, `padding: 2px 0.5em`].join(`;`); 7 | 8 | function debugLog(...args) { 9 | console.debug(`%cgatsby`, styles, ...args); 10 | } -------------------------------------------------------------------------------- /.cache/commonjs/default-html.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 4 | 5 | exports.__esModule = true; 6 | exports.default = HTML; 7 | 8 | var _react = _interopRequireDefault(require("react")); 9 | 10 | var _propTypes = _interopRequireDefault(require("prop-types")); 11 | 12 | function HTML(props) { 13 | return /*#__PURE__*/_react.default.createElement("html", props.htmlAttributes, /*#__PURE__*/_react.default.createElement("head", null, /*#__PURE__*/_react.default.createElement("meta", { 14 | charSet: "utf-8" 15 | }), /*#__PURE__*/_react.default.createElement("meta", { 16 | httpEquiv: "x-ua-compatible", 17 | content: "ie=edge" 18 | }), /*#__PURE__*/_react.default.createElement("meta", { 19 | name: "viewport", 20 | content: "width=device-width, initial-scale=1, shrink-to-fit=no" 21 | }), props.headComponents), /*#__PURE__*/_react.default.createElement("body", props.bodyAttributes, props.preBodyComponents, /*#__PURE__*/_react.default.createElement("div", { 22 | key: `body`, 23 | id: "___gatsby", 24 | dangerouslySetInnerHTML: { 25 | __html: props.body 26 | } 27 | }), props.postBodyComponents)); 28 | } 29 | 30 | HTML.propTypes = { 31 | htmlAttributes: _propTypes.default.object, 32 | headComponents: _propTypes.default.array, 33 | bodyAttributes: _propTypes.default.object, 34 | preBodyComponents: _propTypes.default.array, 35 | body: _propTypes.default.string, 36 | postBodyComponents: _propTypes.default.array 37 | }; -------------------------------------------------------------------------------- /.cache/commonjs/dummy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.__esModule = true; 4 | exports.a = void 0; 5 | // Dummy file to work around a webpack hot reloading bug. 6 | const a = 1; 7 | exports.a = a; -------------------------------------------------------------------------------- /.cache/commonjs/emitter.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 4 | 5 | exports.__esModule = true; 6 | exports.default = void 0; 7 | 8 | var _mitt = _interopRequireDefault(require("mitt")); 9 | 10 | const emitter = (0, _mitt.default)(); 11 | var _default = emitter; 12 | exports.default = _default; -------------------------------------------------------------------------------- /.cache/commonjs/ensure-resources.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 4 | 5 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 6 | 7 | exports.__esModule = true; 8 | exports.default = void 0; 9 | 10 | var _react = _interopRequireDefault(require("react")); 11 | 12 | var _loader = _interopRequireWildcard(require("./loader")); 13 | 14 | var _shallowCompare = _interopRequireDefault(require("shallow-compare")); 15 | 16 | class EnsureResources extends _react.default.Component { 17 | constructor(props) { 18 | super(); 19 | const { 20 | location, 21 | pageResources 22 | } = props; 23 | this.state = { 24 | location: { ...location 25 | }, 26 | pageResources: pageResources || _loader.default.loadPageSync(location.pathname, { 27 | withErrorDetails: true 28 | }) 29 | }; 30 | } 31 | 32 | static getDerivedStateFromProps({ 33 | location 34 | }, prevState) { 35 | if (prevState.location.href !== location.href) { 36 | const pageResources = _loader.default.loadPageSync(location.pathname, { 37 | withErrorDetails: true 38 | }); 39 | 40 | return { 41 | pageResources, 42 | location: { ...location 43 | } 44 | }; 45 | } 46 | 47 | return { 48 | location: { ...location 49 | } 50 | }; 51 | } 52 | 53 | loadResources(rawPath) { 54 | _loader.default.loadPage(rawPath).then(pageResources => { 55 | if (pageResources && pageResources.status !== _loader.PageResourceStatus.Error) { 56 | this.setState({ 57 | location: { ...window.location 58 | }, 59 | pageResources 60 | }); 61 | } else { 62 | window.history.replaceState({}, ``, location.href); 63 | window.location = rawPath; 64 | } 65 | }); 66 | } 67 | 68 | shouldComponentUpdate(nextProps, nextState) { 69 | // Always return false if we're missing resources. 70 | if (!nextState.pageResources) { 71 | this.loadResources(nextProps.location.pathname); 72 | return false; 73 | } 74 | 75 | if (process.env.BUILD_STAGE === `develop` && nextState.pageResources.stale) { 76 | this.loadResources(nextProps.location.pathname); 77 | return false; 78 | } // Check if the component or json have changed. 79 | 80 | 81 | if (this.state.pageResources !== nextState.pageResources) { 82 | return true; 83 | } 84 | 85 | if (this.state.pageResources.component !== nextState.pageResources.component) { 86 | return true; 87 | } 88 | 89 | if (this.state.pageResources.json !== nextState.pageResources.json) { 90 | return true; 91 | } // Check if location has changed on a page using internal routing 92 | // via matchPath configuration. 93 | 94 | 95 | if (this.state.location.key !== nextState.location.key && nextState.pageResources.page && (nextState.pageResources.page.matchPath || nextState.pageResources.page.path)) { 96 | return true; 97 | } 98 | 99 | return (0, _shallowCompare.default)(this, nextProps, nextState); 100 | } 101 | 102 | render() { 103 | if (process.env.NODE_ENV !== `production` && (!this.state.pageResources || this.state.pageResources.status === _loader.PageResourceStatus.Error)) { 104 | var _this$state$pageResou; 105 | 106 | const message = `EnsureResources was not able to find resources for path: "${this.props.location.pathname}" 107 | This typically means that an issue occurred building components for that path. 108 | Run \`gatsby clean\` to remove any cached elements.`; 109 | 110 | if ((_this$state$pageResou = this.state.pageResources) !== null && _this$state$pageResou !== void 0 && _this$state$pageResou.error) { 111 | console.error(message); 112 | throw this.state.pageResources.error; 113 | } 114 | 115 | throw new Error(message); 116 | } 117 | 118 | return this.props.children(this.state); 119 | } 120 | 121 | } 122 | 123 | var _default = EnsureResources; 124 | exports.default = _default; -------------------------------------------------------------------------------- /.cache/commonjs/error-overlay-handler.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.__esModule = true; 4 | exports.reportError = exports.clearError = void 0; 5 | const errorMap = {}; 6 | 7 | const handleErrorOverlay = () => { 8 | const errors = Object.values(errorMap); 9 | let errorsToDisplay = []; 10 | 11 | if (errors.length > 0) { 12 | errorsToDisplay = errors.flatMap(e => e).filter(Boolean); 13 | } 14 | 15 | if (errorsToDisplay.length > 0) { 16 | window._gatsbyEvents.push([`FAST_REFRESH`, { 17 | action: `SHOW_GRAPHQL_ERRORS`, 18 | payload: errorsToDisplay 19 | }]); 20 | } else { 21 | window._gatsbyEvents.push([`FAST_REFRESH`, { 22 | action: `CLEAR_GRAPHQL_ERRORS` 23 | }]); 24 | } 25 | }; 26 | 27 | const clearError = errorID => { 28 | delete errorMap[errorID]; 29 | handleErrorOverlay(); 30 | }; 31 | 32 | exports.clearError = clearError; 33 | 34 | const reportError = (errorID, error) => { 35 | if (error) { 36 | errorMap[errorID] = error; 37 | } 38 | 39 | handleErrorOverlay(); 40 | }; 41 | 42 | exports.reportError = reportError; -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/components/accordion.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 4 | 5 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 6 | 7 | exports.__esModule = true; 8 | exports.Accordion = Accordion; 9 | exports.AccordionItem = AccordionItem; 10 | 11 | var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); 12 | 13 | var React = _interopRequireWildcard(require("react")); 14 | 15 | var _useId = require("./use-id"); 16 | 17 | var keys = _interopRequireWildcard(require("../helpers/keys")); 18 | 19 | var _match = require("../helpers/match"); 20 | 21 | function ChevronIcon() { 22 | return /*#__PURE__*/React.createElement("svg", { 23 | focusable: "false", 24 | preserveAspectRatio: "xMidYMid meet", 25 | xmlns: "https://www.w3.org/2000/svg", 26 | fill: "currentColor", 27 | width: "16", 28 | height: "16", 29 | viewBox: "0 0 16 16", 30 | "aria-hidden": "true", 31 | "data-gatsby-overlay": "chevron-icon" 32 | }, /*#__PURE__*/React.createElement("path", { 33 | d: "M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z" 34 | })); 35 | } 36 | 37 | function Accordion({ 38 | children, 39 | ...rest 40 | }) { 41 | return /*#__PURE__*/React.createElement("ul", (0, _extends2.default)({ 42 | "data-gatsby-overlay": "accordion" 43 | }, rest), children); 44 | } 45 | 46 | function AccordionItem({ 47 | children, 48 | disabled = false, 49 | open = false, 50 | title = `title`, 51 | ...rest 52 | }) { 53 | const [isOpen, setIsOpen] = React.useState(open); 54 | const [prevIsOpen, setPrevIsOpen] = React.useState(open); 55 | const id = (0, _useId.useId)(`accordion-item`); 56 | 57 | if (open !== prevIsOpen) { 58 | setIsOpen(open); 59 | setPrevIsOpen(open); 60 | } 61 | 62 | const toggleOpen = () => { 63 | const nextValue = !isOpen; 64 | setIsOpen(nextValue); 65 | }; // If the AccordionItem is open, and the user hits the ESC key, then close it 66 | 67 | 68 | const onKeyDown = event => { 69 | if (isOpen && (0, _match.match)(event, keys.Escape)) { 70 | setIsOpen(false); 71 | } 72 | }; 73 | 74 | return /*#__PURE__*/React.createElement("li", (0, _extends2.default)({ 75 | "data-gatsby-overlay": "accordion__item", 76 | "data-accordion-active": isOpen ? `true` : `false` 77 | }, rest), /*#__PURE__*/React.createElement("button", { 78 | "data-gatsby-overlay": "accordion__item__heading", 79 | type: "button", 80 | disabled: disabled, 81 | "aria-controls": id, 82 | "aria-expanded": isOpen, 83 | onClick: toggleOpen, 84 | onKeyDown: onKeyDown 85 | }, /*#__PURE__*/React.createElement(ChevronIcon, null), /*#__PURE__*/React.createElement("div", { 86 | "data-gatsby-overlay": "accordion__item__title" 87 | }, title)), /*#__PURE__*/React.createElement("div", { 88 | id: id, 89 | "data-gatsby-overlay": "accordion__item__content" 90 | }, children)); 91 | } 92 | -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/components/build-error.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 4 | 5 | exports.__esModule = true; 6 | exports.BuildError = BuildError; 7 | 8 | var React = _interopRequireWildcard(require("react")); 9 | 10 | var _overlay = require("./overlay"); 11 | 12 | var _codeFrame = require("./code-frame"); 13 | 14 | var _utils = require("../utils"); 15 | 16 | // Error that is thrown on e.g. webpack errors and thus can't be dismissed and must be fixed 17 | function BuildError({ 18 | error 19 | }) { 20 | // Incoming build error shape is like this: 21 | // Sometimes "Enter" 22 | // ./relative-path-to-file 23 | // Additional information (sometimes empty line => handled in "prettifyStack" function) 24 | // /absolute-path-to-file 25 | // Errors/Warnings 26 | const decoded = (0, _utils.prettifyStack)(error); 27 | const [filePath] = decoded; 28 | const file = filePath.content.split(`\n`)[0]; 29 | return /*#__PURE__*/React.createElement(_overlay.Overlay, null, /*#__PURE__*/React.createElement(_overlay.Header, { 30 | "data-gatsby-error-type": "build-error" 31 | }, /*#__PURE__*/React.createElement("div", { 32 | "data-gatsby-overlay": "header__cause-file" 33 | }, /*#__PURE__*/React.createElement("h1", { 34 | id: "gatsby-overlay-labelledby" 35 | }, "Failed to compile"), /*#__PURE__*/React.createElement("span", null, file)), /*#__PURE__*/React.createElement(_overlay.HeaderOpenClose, { 36 | open: () => (0, _utils.openInEditor)(file, 1), 37 | dismiss: false 38 | })), /*#__PURE__*/React.createElement(_overlay.Body, null, /*#__PURE__*/React.createElement("h2", null, "Source"), /*#__PURE__*/React.createElement(_codeFrame.CodeFrame, { 39 | decoded: decoded 40 | }), /*#__PURE__*/React.createElement(_overlay.Footer, { 41 | id: "gatsby-overlay-describedby" 42 | }, "This error occurred during the build process and can only be dismissed by fixing the error."))); 43 | } -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/components/code-frame.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 4 | 5 | exports.__esModule = true; 6 | exports.CodeFrame = CodeFrame; 7 | 8 | var React = _interopRequireWildcard(require("react")); 9 | 10 | function CodeFrame({ 11 | decoded 12 | }) { 13 | if (!decoded) { 14 | return /*#__PURE__*/React.createElement("pre", { 15 | "data-gatsby-overlay": "pre" 16 | }, /*#__PURE__*/React.createElement("code", { 17 | "data-gatsby-overlay": "pre__code" 18 | })); 19 | } 20 | 21 | return /*#__PURE__*/React.createElement("pre", { 22 | "data-gatsby-overlay": "pre" 23 | }, /*#__PURE__*/React.createElement("code", { 24 | "data-gatsby-overlay": "pre__code" 25 | }, decoded.map((entry, index) => { 26 | const style = { 27 | color: entry.fg ? `var(--color-${entry.fg})` : undefined, 28 | ...(entry.decoration === `bold` ? { 29 | fontWeight: 800 30 | } : entry.decoration === `italic` ? { 31 | fontStyle: `italic` 32 | } : undefined) 33 | }; 34 | return /*#__PURE__*/React.createElement("span", { 35 | key: `frame-${index}`, 36 | "data-gatsby-overlay": "pre__code__span", 37 | style: style 38 | }, entry.content); 39 | }))); 40 | } -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/components/error-boundary.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 4 | 5 | exports.__esModule = true; 6 | exports.ErrorBoundary = void 0; 7 | 8 | var React = _interopRequireWildcard(require("react")); 9 | 10 | class ErrorBoundary extends React.Component { 11 | constructor(...args) { 12 | super(...args); 13 | this.state = { 14 | error: null 15 | }; 16 | } 17 | 18 | componentDidCatch(error) { 19 | this.setState({ 20 | error 21 | }); 22 | } 23 | 24 | render() { 25 | // Without this check => possible infinite loop 26 | return this.state.error && this.props.hasErrors ? null : this.props.children; 27 | } 28 | 29 | } 30 | 31 | exports.ErrorBoundary = ErrorBoundary; -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/components/graphql-errors.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 4 | 5 | exports.__esModule = true; 6 | exports.GraphqlErrors = GraphqlErrors; 7 | 8 | var React = _interopRequireWildcard(require("react")); 9 | 10 | var _overlay = require("./overlay"); 11 | 12 | var _accordion = require("./accordion"); 13 | 14 | var _utils = require("../utils"); 15 | 16 | var _codeFrame = require("./code-frame"); 17 | 18 | function WrappedAccordionItem({ 19 | error, 20 | open 21 | }) { 22 | var _error$error, _error$location, _error$location$start, _error$location2, _error$location2$star; 23 | 24 | const title = (error === null || error === void 0 ? void 0 : (_error$error = error.error) === null || _error$error === void 0 ? void 0 : _error$error.message) || error.context.sourceMessage || `Unknown GraphQL error`; 25 | const docsUrl = error === null || error === void 0 ? void 0 : error.docsUrl; 26 | const filePath = error === null || error === void 0 ? void 0 : error.filePath; 27 | const lineNumber = error === null || error === void 0 ? void 0 : (_error$location = error.location) === null || _error$location === void 0 ? void 0 : (_error$location$start = _error$location.start) === null || _error$location$start === void 0 ? void 0 : _error$location$start.line; 28 | const columnNumber = error === null || error === void 0 ? void 0 : (_error$location2 = error.location) === null || _error$location2 === void 0 ? void 0 : (_error$location2$star = _error$location2.start) === null || _error$location2$star === void 0 ? void 0 : _error$location2$star.column; 29 | let locString = ``; 30 | 31 | if (typeof lineNumber !== `undefined`) { 32 | locString += `:${lineNumber}`; 33 | 34 | if (typeof columnNumber !== `undefined`) { 35 | locString += `:${columnNumber}`; 36 | } 37 | } // Sometimes the GraphQL error text has ANSI in it. If it's only text, it'll be passed through 38 | 39 | 40 | const decoded = (0, _utils.prettifyStack)(error.text); 41 | return /*#__PURE__*/React.createElement(_accordion.AccordionItem, { 42 | open: open, 43 | title: title 44 | }, /*#__PURE__*/React.createElement("div", { 45 | "data-gatsby-overlay": "body__graphql-error-message" 46 | }, /*#__PURE__*/React.createElement("div", { 47 | "data-gatsby-overlay": "codeframe__top" 48 | }, /*#__PURE__*/React.createElement("div", { 49 | "data-gatsby-overlay": "tag" 50 | }, error.level, ` `, "#", error.code), /*#__PURE__*/React.createElement("button", { 51 | "data-gatsby-overlay": "body__open-in-editor", 52 | onClick: () => (0, _utils.openInEditor)(filePath, lineNumber) 53 | }, "Open in Editor")), filePath && /*#__PURE__*/React.createElement("div", { 54 | "data-gatsby-overlay": "codeframe__top" 55 | }, filePath, locString), /*#__PURE__*/React.createElement(_codeFrame.CodeFrame, { 56 | decoded: decoded 57 | }), docsUrl && /*#__PURE__*/React.createElement("div", { 58 | "data-gatsby-overlay": "codeframe__bottom" 59 | }, "See our docs page for more info on this error:", ` `, /*#__PURE__*/React.createElement("a", { 60 | href: docsUrl 61 | }, docsUrl)))); 62 | } 63 | 64 | function GraphqlErrors({ 65 | errors, 66 | dismiss 67 | }) { 68 | const deduplicatedErrors = React.useMemo(() => Array.from(new Set(errors)), [errors]); 69 | const hasMultipleErrors = deduplicatedErrors.length > 1; 70 | return /*#__PURE__*/React.createElement(_overlay.Overlay, null, /*#__PURE__*/React.createElement(_overlay.Header, { 71 | "data-gatsby-error-type": "graphql-error" 72 | }, /*#__PURE__*/React.createElement("div", { 73 | "data-gatsby-overlay": "header__cause-file" 74 | }, /*#__PURE__*/React.createElement("h1", { 75 | id: "gatsby-overlay-labelledby" 76 | }, hasMultipleErrors ? `${errors.length} Unhandled GraphQL Errors` : `Unhandled GraphQL Error`)), /*#__PURE__*/React.createElement(_overlay.HeaderOpenClose, { 77 | dismiss: dismiss 78 | })), /*#__PURE__*/React.createElement(_overlay.Body, null, /*#__PURE__*/React.createElement("p", { 79 | "data-gatsby-overlay": "body__describedby", 80 | id: "gatsby-overlay-describedby" 81 | }, hasMultipleErrors ? `Multiple` : `One`, " unhandled GraphQL", ` `, hasMultipleErrors ? `errors` : `error`, " found in your files. See the list below to fix ", hasMultipleErrors ? `them` : `it`, ":"), /*#__PURE__*/React.createElement(_accordion.Accordion, null, deduplicatedErrors.map((error, index) => /*#__PURE__*/React.createElement(WrappedAccordionItem, { 82 | open: index === 0, 83 | error: error, 84 | key: `${error.sourceMessage}-${index}` 85 | }))))); 86 | } -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/components/hooks.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 4 | 5 | exports.__esModule = true; 6 | exports.useStackFrame = useStackFrame; 7 | 8 | var React = _interopRequireWildcard(require("react")); 9 | 10 | var _utils = require("../utils"); 11 | 12 | function useStackFrame({ 13 | moduleId, 14 | lineNumber, 15 | columnNumber 16 | }) { 17 | const url = `/__original-stack-frame?moduleId=` + window.encodeURIComponent(moduleId) + `&lineNumber=` + window.encodeURIComponent(lineNumber) + `&columnNumber=` + window.encodeURIComponent(columnNumber); 18 | const [response, setResponse] = React.useState({ 19 | decoded: null, 20 | sourcePosition: { 21 | line: null, 22 | number: null 23 | }, 24 | sourceContent: null 25 | }); 26 | React.useEffect(() => { 27 | async function fetchData() { 28 | const res = await fetch(url); 29 | const json = await res.json(); 30 | const decoded = (0, _utils.prettifyStack)(json.codeFrame); 31 | const { 32 | sourcePosition, 33 | sourceContent 34 | } = json; 35 | setResponse({ 36 | decoded, 37 | sourceContent, 38 | sourcePosition 39 | }); 40 | } 41 | 42 | fetchData(); 43 | }, []); 44 | return response; 45 | } -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/components/portal.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 4 | 5 | exports.__esModule = true; 6 | exports.ShadowPortal = void 0; 7 | 8 | var React = _interopRequireWildcard(require("react")); 9 | 10 | var _reactDom = require("react-dom"); 11 | 12 | const ShadowPortal = function Portal({ 13 | children 14 | }) { 15 | const mountNode = React.useRef(null); 16 | const portalNode = React.useRef(null); 17 | const shadowNode = React.useRef(null); 18 | const [, forceUpdate] = React.useState(); 19 | React.useLayoutEffect(() => { 20 | const ownerDocument = mountNode.current.ownerDocument; 21 | portalNode.current = ownerDocument.createElement(`gatsby-fast-refresh`); 22 | shadowNode.current = portalNode.current.attachShadow({ 23 | mode: `open` 24 | }); 25 | ownerDocument.body.appendChild(portalNode.current); 26 | forceUpdate({}); 27 | return () => { 28 | if (portalNode.current && portalNode.current.ownerDocument) { 29 | portalNode.current.ownerDocument.body.removeChild(portalNode.current); 30 | } 31 | }; 32 | }, []); 33 | return shadowNode.current ? /*#__PURE__*/(0, _reactDom.createPortal)(children, shadowNode.current) : /*#__PURE__*/React.createElement("span", { 34 | ref: mountNode 35 | }); 36 | }; 37 | 38 | exports.ShadowPortal = ShadowPortal; -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/components/runtime-errors.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 4 | 5 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 6 | 7 | exports.__esModule = true; 8 | exports.RuntimeErrors = RuntimeErrors; 9 | 10 | var React = _interopRequireWildcard(require("react")); 11 | 12 | var _stackTrace = _interopRequireDefault(require("stack-trace")); 13 | 14 | var _overlay = require("./overlay"); 15 | 16 | var _hooks = require("./hooks"); 17 | 18 | var _codeFrame = require("./code-frame"); 19 | 20 | var _utils = require("../utils"); 21 | 22 | var _accordion = require("./accordion"); 23 | 24 | function WrappedAccordionItem({ 25 | error, 26 | open 27 | }) { 28 | var _res$sourcePosition; 29 | 30 | const stacktrace = _stackTrace.default.parse(error); 31 | 32 | const codeFrameInformation = (0, _utils.getCodeFrameInformation)(stacktrace); 33 | const filePath = codeFrameInformation === null || codeFrameInformation === void 0 ? void 0 : codeFrameInformation.moduleId; 34 | const lineNumber = codeFrameInformation === null || codeFrameInformation === void 0 ? void 0 : codeFrameInformation.lineNumber; 35 | const columnNumber = codeFrameInformation === null || codeFrameInformation === void 0 ? void 0 : codeFrameInformation.columnNumber; 36 | const name = codeFrameInformation === null || codeFrameInformation === void 0 ? void 0 : codeFrameInformation.functionName; 37 | const res = (0, _hooks.useStackFrame)({ 38 | moduleId: filePath, 39 | lineNumber, 40 | columnNumber 41 | }); 42 | const line = (_res$sourcePosition = res.sourcePosition) === null || _res$sourcePosition === void 0 ? void 0 : _res$sourcePosition.line; 43 | 44 | const Title = () => { 45 | if (!name) { 46 | return /*#__PURE__*/React.createElement(React.Fragment, null, "Unknown Runtime Error"); 47 | } 48 | 49 | return /*#__PURE__*/React.createElement(React.Fragment, null, "Error in function", ` `, /*#__PURE__*/React.createElement("span", { 50 | "data-font-weight": "bold" 51 | }, name), " in", ` `, /*#__PURE__*/React.createElement("span", { 52 | "data-font-weight": "bold" 53 | }, filePath, ":", line)); 54 | }; 55 | 56 | return /*#__PURE__*/React.createElement(_accordion.AccordionItem, { 57 | open: open, 58 | title: /*#__PURE__*/React.createElement(Title, null) 59 | }, /*#__PURE__*/React.createElement("p", { 60 | "data-gatsby-overlay": "body__error-message" 61 | }, error.message), /*#__PURE__*/React.createElement("div", { 62 | "data-gatsby-overlay": "codeframe__top" 63 | }, /*#__PURE__*/React.createElement("div", null, filePath, ":", line), /*#__PURE__*/React.createElement("button", { 64 | "data-gatsby-overlay": "body__open-in-editor", 65 | onClick: () => (0, _utils.openInEditor)(filePath, line) 66 | }, "Open in Editor")), /*#__PURE__*/React.createElement(_codeFrame.CodeFrame, { 67 | decoded: res.decoded 68 | })); 69 | } 70 | 71 | function RuntimeErrors({ 72 | errors, 73 | dismiss 74 | }) { 75 | const deduplicatedErrors = React.useMemo(() => Array.from(new Set(errors)), [errors]); 76 | const hasMultipleErrors = deduplicatedErrors.length > 1; 77 | return /*#__PURE__*/React.createElement(_overlay.Overlay, null, /*#__PURE__*/React.createElement(_overlay.Header, { 78 | "data-gatsby-error-type": "runtime-error" 79 | }, /*#__PURE__*/React.createElement("div", { 80 | "data-gatsby-overlay": "header__cause-file" 81 | }, /*#__PURE__*/React.createElement("h1", { 82 | id: "gatsby-overlay-labelledby" 83 | }, hasMultipleErrors ? `${errors.length} Unhandled Runtime Errors` : `Unhandled Runtime Error`)), /*#__PURE__*/React.createElement(_overlay.HeaderOpenClose, { 84 | dismiss: dismiss 85 | })), /*#__PURE__*/React.createElement(_overlay.Body, null, /*#__PURE__*/React.createElement("p", { 86 | "data-gatsby-overlay": "body__describedby", 87 | id: "gatsby-overlay-describedby" 88 | }, hasMultipleErrors ? `Multiple` : `One`, " unhandled runtime", ` `, hasMultipleErrors ? `errors` : `error`, " found in your files. See the list below to fix ", hasMultipleErrors ? `them` : `it`, ":"), /*#__PURE__*/React.createElement(_accordion.Accordion, null, deduplicatedErrors.map((error, index) => /*#__PURE__*/React.createElement(WrappedAccordionItem, { 89 | open: index === 0, 90 | key: `${error.message}-${index}`, 91 | error: error 92 | }))))); 93 | } -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/components/use-id.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 4 | 5 | exports.__esModule = true; 6 | exports.useId = useId; 7 | 8 | var React = _interopRequireWildcard(require("react")); 9 | 10 | // Copied from https://github.com/carbon-design-system/carbon 11 | // License: Apache-2.0 12 | // Copyright IBM Corp. 2016, 2018 13 | // Entrypoint: packages/react/src/internal/useId.js 14 | function setupGetInstanceId() { 15 | let instanceId = 0; 16 | return function getInstanceId() { 17 | return ++instanceId; 18 | }; 19 | } 20 | 21 | const getId = setupGetInstanceId(); 22 | const useIsomorphicLayoutEffect = canUseDOM() ? React.useLayoutEffect : React.useEffect; 23 | 24 | function canUseDOM() { 25 | return !!(typeof window !== `undefined` && window.document && window.document.createElement); 26 | } 27 | 28 | let serverHandoffCompleted = false; 29 | /** 30 | * Generate a unique ID with an optional prefix prepended to it 31 | * @param {string} [prefix] 32 | * @returns {string} 33 | */ 34 | 35 | function useId(prefix = `id`) { 36 | const [id, setId] = React.useState(() => { 37 | if (serverHandoffCompleted) { 38 | return `${prefix}-${getId()}`; 39 | } 40 | 41 | return null; 42 | }); 43 | useIsomorphicLayoutEffect(() => { 44 | if (id === null) { 45 | setId(`${prefix}-${getId()}`); 46 | } 47 | }, [getId]); 48 | React.useEffect(() => { 49 | if (serverHandoffCompleted === false) { 50 | serverHandoffCompleted = true; 51 | } 52 | }, []); 53 | return id; 54 | } -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/helpers/keys.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.__esModule = true; 4 | exports.ArrowDown = exports.ArrowRight = exports.ArrowUp = exports.ArrowLeft = exports.Home = exports.End = exports.PageDown = exports.PageUp = exports.Space = exports.Escape = exports.Enter = exports.Tab = void 0; 5 | // Copied from https://github.com/carbon-design-system/carbon 6 | // License: Apache-2.0 7 | // Copyright IBM Corp. 2016, 2018 8 | // Entrypoint: packages/react/src/internal/keyboard/keys.js 9 | const Tab = { 10 | key: `Tab`, 11 | which: 9, 12 | keyCode: 9 13 | }; 14 | exports.Tab = Tab; 15 | const Enter = { 16 | key: `Enter`, 17 | which: 13, 18 | keyCode: 13 19 | }; 20 | exports.Enter = Enter; 21 | const Escape = { 22 | key: [`Escape`, // IE11 Escape 23 | `Esc`], 24 | which: 27, 25 | keyCode: 27 26 | }; 27 | exports.Escape = Escape; 28 | const Space = { 29 | key: ` `, 30 | which: 32, 31 | keyCode: 32 32 | }; 33 | exports.Space = Space; 34 | const PageUp = { 35 | key: `PageUp`, 36 | which: 33, 37 | keyCode: 33 38 | }; 39 | exports.PageUp = PageUp; 40 | const PageDown = { 41 | key: `PageDown`, 42 | which: 34, 43 | keyCode: 34 44 | }; 45 | exports.PageDown = PageDown; 46 | const End = { 47 | key: `End`, 48 | which: 35, 49 | keyCode: 35 50 | }; 51 | exports.End = End; 52 | const Home = { 53 | key: `Home`, 54 | which: 36, 55 | keyCode: 36 56 | }; 57 | exports.Home = Home; 58 | const ArrowLeft = { 59 | key: `ArrowLeft`, 60 | which: 37, 61 | keyCode: 37 62 | }; 63 | exports.ArrowLeft = ArrowLeft; 64 | const ArrowUp = { 65 | key: `ArrowUp`, 66 | which: 38, 67 | keyCode: 38 68 | }; 69 | exports.ArrowUp = ArrowUp; 70 | const ArrowRight = { 71 | key: `ArrowRight`, 72 | which: 39, 73 | keyCode: 39 74 | }; 75 | exports.ArrowRight = ArrowRight; 76 | const ArrowDown = { 77 | key: `ArrowDown`, 78 | which: 40, 79 | keyCode: 40 80 | }; 81 | exports.ArrowDown = ArrowDown; -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/helpers/lock-body.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.__esModule = true; 4 | exports.lock = lock; 5 | exports.unlock = unlock; 6 | // Adapted from https://github.com/vercel/next.js 7 | // License: MIT 8 | // Copyright (c) 2021 Vercel, Inc. 9 | // 10 | // Entrypoint: react-dev-overlay/src/internal/components/Overlay/body-locker.ts 11 | let previousBodyPaddingRight; 12 | let previousBodyOverflowSetting; 13 | let activeLocks = 0; 14 | 15 | function lock() { 16 | setTimeout(() => { 17 | if (activeLocks++ > 0) { 18 | return; 19 | } 20 | 21 | const scrollBarGap = window.innerWidth - document.documentElement.clientWidth; 22 | const rootElement = document.getElementById(`___gatsby`); 23 | 24 | if (scrollBarGap > 0) { 25 | previousBodyPaddingRight = document.body.style.paddingRight; 26 | document.body.style.paddingRight = `${scrollBarGap}px`; 27 | } 28 | 29 | previousBodyOverflowSetting = document.body.style.overflow; 30 | document.body.style.overflow = `hidden`; 31 | rootElement.setAttribute(`aria-hidden`, `true`); 32 | }); 33 | } 34 | 35 | function unlock() { 36 | setTimeout(() => { 37 | if (activeLocks === 0 || --activeLocks !== 0) { 38 | return; 39 | } 40 | 41 | const rootElement = document.getElementById(`___gatsby`); 42 | rootElement.removeAttribute(`aria-hidden`); 43 | 44 | if (previousBodyPaddingRight !== undefined) { 45 | document.body.style.paddingRight = previousBodyPaddingRight; 46 | previousBodyPaddingRight = undefined; 47 | } 48 | 49 | if (previousBodyOverflowSetting !== undefined) { 50 | document.body.style.overflow = previousBodyOverflowSetting; 51 | previousBodyOverflowSetting = undefined; 52 | } 53 | }); 54 | } -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/helpers/match.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.__esModule = true; 4 | exports.match = match; 5 | 6 | // Copied from https://github.com/carbon-design-system/carbon 7 | // License: Apache-2.0 8 | // Copyright IBM Corp. 2016, 2018 9 | // Entrypoint: packages/react/src/internal/keyboard/match.js 10 | 11 | /** 12 | * Check to see if the given key matches the corresponding keyboard event. Also 13 | * supports passing in the value directly if you can't used the given event. 14 | * 15 | * @example 16 | * import * as keys from '../keys'; 17 | * import { matches } from '../match'; 18 | * 19 | * function handleOnKeyDown(event) { 20 | * if (match(event, keys.Enter) { 21 | * // ... 22 | * } 23 | * } 24 | * 25 | * @param {Event|number|string} eventOrCode 26 | * @param {Key} key 27 | * @returns {boolean} 28 | */ 29 | function match(eventOrCode, { 30 | key, 31 | which, 32 | keyCode 33 | } = {}) { 34 | if (typeof eventOrCode === `string`) { 35 | return eventOrCode === key; 36 | } 37 | 38 | if (typeof eventOrCode === `number`) { 39 | return eventOrCode === which || eventOrCode === keyCode; 40 | } 41 | 42 | if (eventOrCode.key && Array.isArray(key)) { 43 | return key.indexOf(eventOrCode.key) !== -1; 44 | } 45 | 46 | return eventOrCode.key === key || eventOrCode.which === which || eventOrCode.keyCode === keyCode; 47 | } -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 4 | 5 | exports.__esModule = true; 6 | exports.default = void 0; 7 | 8 | var React = _interopRequireWildcard(require("react")); 9 | 10 | var _errorBoundary = require("./components/error-boundary"); 11 | 12 | var _portal = require("./components/portal"); 13 | 14 | var _style = require("./style"); 15 | 16 | var _buildError = require("./components/build-error"); 17 | 18 | var _runtimeErrors = require("./components/runtime-errors"); 19 | 20 | var _graphqlErrors = require("./components/graphql-errors"); 21 | 22 | const reducer = (state, event) => { 23 | switch (event.action) { 24 | case `CLEAR_COMPILE_ERROR`: 25 | { 26 | return { ...state, 27 | buildError: null 28 | }; 29 | } 30 | 31 | case `CLEAR_RUNTIME_ERRORS`: 32 | { 33 | return { ...state, 34 | errors: [] 35 | }; 36 | } 37 | 38 | case `SHOW_COMPILE_ERROR`: 39 | { 40 | return { ...state, 41 | buildError: event.payload 42 | }; 43 | } 44 | 45 | case `HANDLE_RUNTIME_ERROR`: 46 | case `SHOW_RUNTIME_ERRORS`: 47 | { 48 | return { ...state, 49 | errors: state.errors.concat(event.payload) 50 | }; 51 | } 52 | 53 | case `SHOW_GRAPHQL_ERRORS`: 54 | { 55 | return { ...state, 56 | graphqlErrors: event.payload 57 | }; 58 | } 59 | 60 | case `CLEAR_GRAPHQL_ERRORS`: 61 | { 62 | return { ...state, 63 | graphqlErrors: [] 64 | }; 65 | } 66 | 67 | case `DISMISS`: 68 | { 69 | return { ...state, 70 | buildError: null, 71 | errors: [], 72 | graphqlErrors: [] 73 | }; 74 | } 75 | 76 | default: 77 | { 78 | return state; 79 | } 80 | } 81 | }; 82 | 83 | const initialState = { 84 | errors: [], 85 | buildError: null, 86 | graphqlErrors: [] 87 | }; 88 | 89 | function DevOverlay({ 90 | children 91 | }) { 92 | const [state, dispatch] = React.useReducer(reducer, initialState); 93 | React.useEffect(() => { 94 | const gatsbyEvents = window._gatsbyEvents || []; 95 | window._gatsbyEvents = { 96 | push: ([channel, event]) => { 97 | if (channel === `FAST_REFRESH`) { 98 | dispatch(event); 99 | } 100 | } 101 | }; 102 | gatsbyEvents.forEach(([channel, event]) => { 103 | if (channel === `FAST_REFRESH`) { 104 | dispatch(event); 105 | } 106 | }); 107 | return () => { 108 | window._gatsbyEvents = []; 109 | }; 110 | }, [dispatch]); 111 | 112 | const dismiss = () => { 113 | dispatch({ 114 | action: `DISMISS` 115 | }); 116 | window._gatsbyEvents = []; 117 | }; 118 | 119 | const hasBuildError = state.buildError !== null; 120 | const hasRuntimeErrors = Boolean(state.errors.length); 121 | const hasGraphqlErrors = Boolean(state.graphqlErrors.length); 122 | const hasErrors = hasBuildError || hasRuntimeErrors || hasGraphqlErrors; // This component has a deliberate order (priority) 123 | 124 | const ErrorComponent = () => { 125 | if (hasBuildError) { 126 | return /*#__PURE__*/React.createElement(_buildError.BuildError, { 127 | error: state.buildError 128 | }); 129 | } 130 | 131 | if (hasRuntimeErrors) { 132 | return /*#__PURE__*/React.createElement(_runtimeErrors.RuntimeErrors, { 133 | errors: state.errors, 134 | dismiss: dismiss 135 | }); 136 | } 137 | 138 | if (hasGraphqlErrors) { 139 | return /*#__PURE__*/React.createElement(_graphqlErrors.GraphqlErrors, { 140 | errors: state.graphqlErrors, 141 | dismiss: dismiss 142 | }); 143 | } 144 | 145 | return null; 146 | }; 147 | 148 | return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_errorBoundary.ErrorBoundary, { 149 | hasErrors: hasErrors 150 | }, children !== null && children !== void 0 ? children : null), hasErrors ? /*#__PURE__*/React.createElement(_portal.ShadowPortal, null, /*#__PURE__*/React.createElement(_style.Style, null), /*#__PURE__*/React.createElement(ErrorComponent, null)) : undefined); 151 | } 152 | 153 | var _default = DevOverlay; 154 | exports.default = _default; -------------------------------------------------------------------------------- /.cache/commonjs/fast-refresh-overlay/utils.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 4 | 5 | exports.__esModule = true; 6 | exports.prettifyStack = prettifyStack; 7 | exports.openInEditor = openInEditor; 8 | exports.getCodeFrameInformation = getCodeFrameInformation; 9 | exports.getLineNumber = getLineNumber; 10 | exports.formatFilename = formatFilename; 11 | 12 | var _anser = _interopRequireDefault(require("anser")); 13 | 14 | const enterRegex = /^\s$/; 15 | 16 | function prettifyStack(errorInformation) { 17 | let txt; 18 | 19 | if (Array.isArray(errorInformation)) { 20 | txt = errorInformation.join(`\n`); 21 | } else { 22 | txt = errorInformation; 23 | } 24 | 25 | const generated = _anser.default.ansiToJson(txt, { 26 | remove_empty: true, 27 | use_classes: true, 28 | json: true 29 | }); // Sometimes the first line/entry is an "Enter", so we need to filter this out 30 | 31 | 32 | const [firstLine, ...rest] = generated; 33 | 34 | if (enterRegex.test(firstLine.content)) { 35 | return rest; 36 | } 37 | 38 | return generated; 39 | } 40 | 41 | function openInEditor(file, lineNumber = 1) { 42 | window.fetch(`/__open-stack-frame-in-editor?fileName=` + window.encodeURIComponent(file) + `&lineNumber=` + window.encodeURIComponent(lineNumber)); 43 | } 44 | 45 | function getCodeFrameInformation(stackTrace) { 46 | const callSite = stackTrace.find(CallSite => CallSite.getFileName()); 47 | 48 | if (!callSite) { 49 | return null; 50 | } 51 | 52 | const moduleId = formatFilename(callSite.getFileName()); 53 | const lineNumber = callSite.getLineNumber(); 54 | const columnNumber = callSite.getColumnNumber(); 55 | const functionName = callSite.getFunctionName(); 56 | return { 57 | moduleId, 58 | lineNumber, 59 | columnNumber, 60 | functionName 61 | }; 62 | } 63 | 64 | const lineNumberRegex = /^[0-9]*:[0-9]*$/g; 65 | 66 | function getLineNumber(error) { 67 | const match = error.match(lineNumberRegex); 68 | return match === null || match === void 0 ? void 0 : match[1]; 69 | } 70 | 71 | function formatFilename(filename) { 72 | const htmlMatch = /^https?:\/\/(.*)\/(.*)/.exec(filename); 73 | 74 | if (htmlMatch && htmlMatch[1] && htmlMatch[2]) { 75 | return htmlMatch[2]; 76 | } 77 | 78 | const sourceMatch = /^webpack-internal:\/\/\/(.*)$/.exec(filename); 79 | 80 | if (sourceMatch && sourceMatch[1]) { 81 | return sourceMatch[1]; 82 | } 83 | 84 | return filename; 85 | } -------------------------------------------------------------------------------- /.cache/commonjs/find-path.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 4 | 5 | exports.__esModule = true; 6 | exports.cleanPath = exports.findPath = exports.grabMatchParams = exports.findMatchPath = exports.setMatchPaths = void 0; 7 | 8 | var _utils = require("@gatsbyjs/reach-router/lib/utils"); 9 | 10 | var _stripPrefix = _interopRequireDefault(require("./strip-prefix")); 11 | 12 | var _normalizePagePath = _interopRequireDefault(require("./normalize-page-path")); 13 | 14 | const pathCache = new Map(); 15 | let matchPaths = []; 16 | 17 | const trimPathname = rawPathname => { 18 | const pathname = decodeURIComponent(rawPathname); // Remove the pathPrefix from the pathname. 19 | 20 | const trimmedPathname = (0, _stripPrefix.default)(pathname, __BASE_PATH__) // Remove any hashfragment 21 | .split(`#`)[0] // Remove search query 22 | .split(`?`)[0]; 23 | return trimmedPathname; 24 | }; 25 | 26 | function absolutify(path) { 27 | // If it's already absolute, return as-is 28 | if (path.startsWith(`/`) || path.startsWith(`https://`) || path.startsWith(`http://`)) { 29 | return path; 30 | } // Calculate path relative to current location, adding a trailing slash to 31 | // match behavior of @reach/router 32 | 33 | 34 | return new URL(path, window.location.href + (window.location.href.endsWith(`/`) ? `` : `/`)).pathname; 35 | } 36 | /** 37 | * Set list of matchPaths 38 | * 39 | * @param {Array<{path: string, matchPath: string}>} value collection of matchPaths 40 | */ 41 | 42 | 43 | const setMatchPaths = value => { 44 | matchPaths = value; 45 | }; 46 | /** 47 | * Return a matchpath url 48 | * if `match-paths.json` contains `{ "/foo*": "/page1", ...}`, then 49 | * `/foo?bar=far` => `/page1` 50 | * 51 | * @param {string} rawPathname A raw pathname 52 | * @return {string|null} 53 | */ 54 | 55 | 56 | exports.setMatchPaths = setMatchPaths; 57 | 58 | const findMatchPath = rawPathname => { 59 | const trimmedPathname = cleanPath(rawPathname); 60 | const pickPaths = matchPaths.map(({ 61 | path, 62 | matchPath 63 | }) => { 64 | return { 65 | path: matchPath, 66 | originalPath: path 67 | }; 68 | }); 69 | const path = (0, _utils.pick)(pickPaths, trimmedPathname); 70 | 71 | if (path) { 72 | return (0, _normalizePagePath.default)(path.route.originalPath); 73 | } 74 | 75 | return null; 76 | }; 77 | /** 78 | * Return a matchpath params from reach/router rules 79 | * if `match-paths.json` contains `{ ":bar/*foo" }`, and the path is /baz/zaz/zoo 80 | * then it returns 81 | * { bar: baz, foo: zaz/zoo } 82 | * 83 | * @param {string} rawPathname A raw pathname 84 | * @return {object} 85 | */ 86 | 87 | 88 | exports.findMatchPath = findMatchPath; 89 | 90 | const grabMatchParams = rawPathname => { 91 | const trimmedPathname = cleanPath(rawPathname); 92 | const pickPaths = matchPaths.map(({ 93 | path, 94 | matchPath 95 | }) => { 96 | return { 97 | path: matchPath, 98 | originalPath: path 99 | }; 100 | }); 101 | const path = (0, _utils.pick)(pickPaths, trimmedPathname); 102 | 103 | if (path) { 104 | return path.params; 105 | } 106 | 107 | return {}; 108 | }; // Given a raw URL path, returns the cleaned version of it (trim off 109 | // `#` and query params), or if it matches an entry in 110 | // `match-paths.json`, its matched path is returned 111 | // 112 | // E.g. `/foo?bar=far` => `/foo` 113 | // 114 | // Or if `match-paths.json` contains `{ "/foo*": "/page1", ...}`, then 115 | // `/foo?bar=far` => `/page1` 116 | 117 | 118 | exports.grabMatchParams = grabMatchParams; 119 | 120 | const findPath = rawPathname => { 121 | const trimmedPathname = trimPathname(absolutify(rawPathname)); 122 | 123 | if (pathCache.has(trimmedPathname)) { 124 | return pathCache.get(trimmedPathname); 125 | } 126 | 127 | let foundPath = findMatchPath(trimmedPathname); 128 | 129 | if (!foundPath) { 130 | foundPath = cleanPath(rawPathname); 131 | } 132 | 133 | pathCache.set(trimmedPathname, foundPath); 134 | return foundPath; 135 | }; 136 | /** 137 | * Clean a url and converts /index.html => / 138 | * E.g. `/foo?bar=far` => `/foo` 139 | * 140 | * @param {string} rawPathname A raw pathname 141 | * @return {string} 142 | */ 143 | 144 | 145 | exports.findPath = findPath; 146 | 147 | const cleanPath = rawPathname => { 148 | const trimmedPathname = trimPathname(absolutify(rawPathname)); 149 | let foundPath = trimmedPathname; 150 | 151 | if (foundPath === `/index.html`) { 152 | foundPath = `/`; 153 | } 154 | 155 | foundPath = (0, _normalizePagePath.default)(foundPath); 156 | return foundPath; 157 | }; 158 | 159 | exports.cleanPath = cleanPath; -------------------------------------------------------------------------------- /.cache/commonjs/gatsby-browser-entry.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 4 | 5 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 6 | 7 | exports.__esModule = true; 8 | exports.graphql = graphql; 9 | exports.prefetchPathname = exports.useStaticQuery = exports.StaticQuery = exports.StaticQueryContext = void 0; 10 | 11 | var _react = _interopRequireDefault(require("react")); 12 | 13 | var _propTypes = _interopRequireDefault(require("prop-types")); 14 | 15 | var _gatsbyLink = _interopRequireWildcard(require("gatsby-link")); 16 | 17 | exports.Link = _gatsbyLink.default; 18 | exports.withPrefix = _gatsbyLink.withPrefix; 19 | exports.withAssetPrefix = _gatsbyLink.withAssetPrefix; 20 | exports.navigate = _gatsbyLink.navigate; 21 | exports.parsePath = _gatsbyLink.parsePath; 22 | 23 | var _gatsbyReactRouterScroll = require("gatsby-react-router-scroll"); 24 | 25 | exports.useScrollRestoration = _gatsbyReactRouterScroll.useScrollRestoration; 26 | 27 | var _publicPageRenderer = _interopRequireDefault(require("./public-page-renderer")); 28 | 29 | exports.PageRenderer = _publicPageRenderer.default; 30 | 31 | var _loader = _interopRequireDefault(require("./loader")); 32 | 33 | const prefetchPathname = _loader.default.enqueue; 34 | exports.prefetchPathname = prefetchPathname; 35 | 36 | const StaticQueryContext = /*#__PURE__*/_react.default.createContext({}); 37 | 38 | exports.StaticQueryContext = StaticQueryContext; 39 | 40 | function StaticQueryDataRenderer({ 41 | staticQueryData, 42 | data, 43 | query, 44 | render 45 | }) { 46 | const finalData = data ? data.data : staticQueryData[query] && staticQueryData[query].data; 47 | return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, finalData && render(finalData), !finalData && /*#__PURE__*/_react.default.createElement("div", null, "Loading (StaticQuery)")); 48 | } 49 | 50 | const StaticQuery = props => { 51 | const { 52 | data, 53 | query, 54 | render, 55 | children 56 | } = props; 57 | return /*#__PURE__*/_react.default.createElement(StaticQueryContext.Consumer, null, staticQueryData => /*#__PURE__*/_react.default.createElement(StaticQueryDataRenderer, { 58 | data: data, 59 | query: query, 60 | render: render || children, 61 | staticQueryData: staticQueryData 62 | })); 63 | }; 64 | 65 | exports.StaticQuery = StaticQuery; 66 | 67 | const useStaticQuery = query => { 68 | var _context$query; 69 | 70 | if (typeof _react.default.useContext !== `function` && process.env.NODE_ENV === `development`) { 71 | throw new Error(`You're likely using a version of React that doesn't support Hooks\n` + `Please update React and ReactDOM to 16.8.0 or later to use the useStaticQuery hook.`); 72 | } 73 | 74 | const context = _react.default.useContext(StaticQueryContext); // query is a stringified number like `3303882` when wrapped with graphql, If a user forgets 75 | // to wrap the query in a grqphql, then casting it to a Number results in `NaN` allowing us to 76 | // catch the misuse of the API and give proper direction 77 | 78 | 79 | if (isNaN(Number(query))) { 80 | throw new Error(`useStaticQuery was called with a string but expects to be called using \`graphql\`. Try this: 81 | 82 | import { useStaticQuery, graphql } from 'gatsby'; 83 | 84 | useStaticQuery(graphql\`${query}\`); 85 | `); 86 | } 87 | 88 | if ((_context$query = context[query]) !== null && _context$query !== void 0 && _context$query.data) { 89 | return context[query].data; 90 | } else { 91 | throw new Error(`The result of this StaticQuery could not be fetched.\n\n` + `This is likely a bug in Gatsby and if refreshing the page does not fix it, ` + `please open an issue in https://github.com/gatsbyjs/gatsby/issues`); 92 | } 93 | }; 94 | 95 | exports.useStaticQuery = useStaticQuery; 96 | StaticQuery.propTypes = { 97 | data: _propTypes.default.object, 98 | query: _propTypes.default.string.isRequired, 99 | render: _propTypes.default.func, 100 | children: _propTypes.default.func 101 | }; 102 | 103 | function graphql() { 104 | throw new Error(`It appears like Gatsby is misconfigured. Gatsby related \`graphql\` calls ` + `are supposed to only be evaluated at compile time, and then compiled away. ` + `Unfortunately, something went wrong and the query was left in the compiled code.\n\n` + `Unless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.`); 105 | } -------------------------------------------------------------------------------- /.cache/commonjs/loading-indicator/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 4 | 5 | exports.__esModule = true; 6 | exports.LoadingIndicatorEventHandler = void 0; 7 | 8 | var _react = _interopRequireDefault(require("react")); 9 | 10 | var _emitter = _interopRequireDefault(require("../emitter")); 11 | 12 | var _indicator = require("./indicator"); 13 | 14 | // no hooks because we support react versions without hooks support 15 | class LoadingIndicatorEventHandler extends _react.default.Component { 16 | constructor(...args) { 17 | super(...args); 18 | this.state = { 19 | visible: false 20 | }; 21 | 22 | this.show = () => { 23 | this.setState({ 24 | visible: true 25 | }); 26 | }; 27 | 28 | this.hide = () => { 29 | this.setState({ 30 | visible: false 31 | }); 32 | }; 33 | } 34 | 35 | componentDidMount() { 36 | _emitter.default.on(`onDelayedLoadPageResources`, this.show); 37 | 38 | _emitter.default.on(`onRouteUpdate`, this.hide); 39 | } 40 | 41 | componentWillUnmount() { 42 | _emitter.default.off(`onDelayedLoadPageResources`, this.show); 43 | 44 | _emitter.default.off(`onRouteUpdate`, this.hide); 45 | } 46 | 47 | render() { 48 | return /*#__PURE__*/_react.default.createElement(_indicator.Indicator, { 49 | visible: this.state.visible 50 | }); 51 | } 52 | 53 | } 54 | 55 | exports.LoadingIndicatorEventHandler = LoadingIndicatorEventHandler; -------------------------------------------------------------------------------- /.cache/commonjs/loading-indicator/indicator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 4 | 5 | exports.__esModule = true; 6 | exports.Indicator = Indicator; 7 | 8 | var _react = _interopRequireDefault(require("react")); 9 | 10 | var _portal = _interopRequireDefault(require("./portal")); 11 | 12 | var _style = _interopRequireDefault(require("./style")); 13 | 14 | var _loadingIndicator = require("$virtual/loading-indicator"); 15 | 16 | var _debugLog = require("../debug-log"); 17 | 18 | if (typeof window === `undefined`) { 19 | throw new Error(`Loading indicator should never be imported in code that doesn't target only browsers`); 20 | } 21 | 22 | if (module.hot) { 23 | module.hot.accept(`$virtual/loading-indicator`, () => {// isLoadingIndicatorEnabled is imported with ES import so no need 24 | // for dedicated handling as HMR just replace it in that case 25 | }); 26 | } // HMR can rerun this, so check if it was set before 27 | // we also set it on window and not just in module scope because of HMR resetting 28 | // module scope 29 | 30 | 31 | if (typeof window.___gatsbyDidShowLoadingIndicatorBefore === `undefined`) { 32 | window.___gatsbyDidShowLoadingIndicatorBefore = false; 33 | } 34 | 35 | function Indicator({ 36 | visible = true 37 | }) { 38 | if (!(0, _loadingIndicator.isLoadingIndicatorEnabled)()) { 39 | return null; 40 | } 41 | 42 | if (!window.___gatsbyDidShowLoadingIndicatorBefore) { 43 | // not ideal to this in render function, but that's just console info 44 | (0, _debugLog.debugLog)(`A loading indicator is displayed in-browser whenever content is being requested upon navigation (Query On Demand).\n\nYou can disable the loading indicator for your current session by visiting ${window.location.origin}/___loading-indicator/disable`); 45 | window.___gatsbyDidShowLoadingIndicatorBefore = true; 46 | } 47 | 48 | return /*#__PURE__*/_react.default.createElement(_portal.default, null, /*#__PURE__*/_react.default.createElement(_style.default, null), /*#__PURE__*/_react.default.createElement("div", { 49 | "data-gatsby-loading-indicator": "root" // preact doesn't render data attributes with a literal bool false value to dom 50 | , 51 | "data-gatsby-loading-indicator-visible": visible.toString(), 52 | "aria-live": "assertive" 53 | }, /*#__PURE__*/_react.default.createElement("div", { 54 | "data-gatsby-loading-indicator": "spinner", 55 | "aria-hidden": "true" 56 | }, /*#__PURE__*/_react.default.createElement("svg", { 57 | xmlns: "https://www.w3.org/2000/svg", 58 | viewBox: "0 0 24 24", 59 | fill: "currentColor" 60 | }, /*#__PURE__*/_react.default.createElement("path", { 61 | d: "M0 0h24v24H0z", 62 | fill: "none" 63 | }), /*#__PURE__*/_react.default.createElement("path", { 64 | d: "M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z" 65 | }))), /*#__PURE__*/_react.default.createElement("div", { 66 | "data-gatsby-loading-indicator": "text" 67 | }, visible ? `Preparing requested page` : ``))); 68 | } 69 | -------------------------------------------------------------------------------- /.cache/commonjs/loading-indicator/portal.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 4 | 5 | exports.__esModule = true; 6 | exports.default = void 0; 7 | 8 | var React = _interopRequireWildcard(require("react")); 9 | 10 | var _reactDom = require("react-dom"); 11 | 12 | // this is `fast-refresh-overlay/portal` ported to class component 13 | // because we don't have guarantee that query on demand users will use 14 | // react version that supports hooks 15 | // TO-DO: consolidate both portals into single shared component (need testing) 16 | class ShadowPortal extends React.Component { 17 | constructor(...args) { 18 | super(...args); 19 | this.mountNode = /*#__PURE__*/React.createRef(null); 20 | this.portalNode = /*#__PURE__*/React.createRef(null); 21 | this.shadowNode = /*#__PURE__*/React.createRef(null); 22 | this.state = { 23 | createdElement: false 24 | }; 25 | } 26 | 27 | componentDidMount() { 28 | const ownerDocument = this.mountNode.current.ownerDocument; 29 | this.portalNode.current = ownerDocument.createElement(`gatsby-portal`); 30 | this.shadowNode.current = this.portalNode.current.attachShadow({ 31 | mode: `open` 32 | }); 33 | ownerDocument.body.appendChild(this.portalNode.current); 34 | this.setState({ 35 | createdElement: true 36 | }); 37 | } 38 | 39 | componentWillUnmount() { 40 | if (this.portalNode.current && this.portalNode.current.ownerDocument) { 41 | this.portalNode.current.ownerDocument.body.removeChild(this.portalNode.current); 42 | } 43 | } 44 | 45 | render() { 46 | return this.shadowNode.current ? /*#__PURE__*/(0, _reactDom.createPortal)(this.props.children, this.shadowNode.current) : /*#__PURE__*/React.createElement("span", { 47 | ref: this.mountNode 48 | }); 49 | } 50 | 51 | } 52 | 53 | var _default = ShadowPortal; 54 | exports.default = _default; -------------------------------------------------------------------------------- /.cache/commonjs/loading-indicator/style.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 4 | 5 | exports.__esModule = true; 6 | exports.default = void 0; 7 | 8 | var _react = _interopRequireDefault(require("react")); 9 | 10 | function css(strings, ...keys) { 11 | const lastIndex = strings.length - 1; 12 | return strings.slice(0, lastIndex).reduce((p, s, i) => p + s + keys[i], ``) + strings[lastIndex]; 13 | } 14 | 15 | const Style = () => /*#__PURE__*/_react.default.createElement("style", { 16 | dangerouslySetInnerHTML: { 17 | __html: css` 18 | :host { 19 | --purple-60: #663399; 20 | --gatsby: var(--purple-60); 21 | --purple-40: #b17acc; 22 | --purple-20: #f1defa; 23 | --dimmedWhite: rgba(255, 255, 255, 0.8); 24 | --white: #ffffff; 25 | --black: #000000; 26 | --grey-90: #232129; 27 | --radii: 4px; 28 | --z-index-normal: 5; 29 | --z-index-elevated: 10; 30 | --shadow: 0px 2px 4px rgba(46, 41, 51, 0.08), 31 | 0px 4px 8px rgba(71, 63, 79, 0.16); 32 | } 33 | 34 | [data-gatsby-loading-indicator="root"] { 35 | font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 36 | Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", 37 | "Segoe UI Symbol" !important; 38 | background: var(--white); 39 | color: var(--grey-90); 40 | position: fixed; 41 | bottom: 1.5em; 42 | left: 1.5em; 43 | box-shadow: var(--shadow); 44 | border-radius: var(--radii); 45 | z-index: var(--z-index-elevated); 46 | border-left: 0.25em solid var(--purple-40); 47 | display: flex; 48 | align-items: center; 49 | justify-content: space-between; 50 | flex-wrap: nowrap; 51 | padding: 0.75em 1.15em; 52 | min-width: 196px; 53 | } 54 | 55 | [data-gatsby-loading-indicator-visible="false"] { 56 | opacity: 0; 57 | visibility: hidden; 58 | will-change: opacity, transform; 59 | transform: translateY(45px); 60 | transition: all 0.3s ease-in-out; 61 | } 62 | 63 | [data-gatsby-loading-indicator-visible="true"] { 64 | opacity: 1; 65 | visibility: visible; 66 | transform: translateY(0px); 67 | transition: all 0.3s ease-in-out; 68 | } 69 | 70 | [data-gatsby-loading-indicator="spinner"] { 71 | animation: spin 1s linear infinite; 72 | height: 18px; 73 | width: 18px; 74 | color: var(--gatsby); 75 | } 76 | 77 | [data-gatsby-loading-indicator="text"] { 78 | margin-left: 0.75em; 79 | line-height: 18px; 80 | } 81 | 82 | @keyframes spin { 83 | 0% { 84 | transform: rotate(0); 85 | } 86 | 100% { 87 | transform: rotate(360deg); 88 | } 89 | } 90 | 91 | @media (prefers-reduced-motion: reduce) { 92 | [data-gatsby-loading-indicator="spinner"] { 93 | animation: none; 94 | } 95 | [data-gatsby-loading-indicator-visible="false"] { 96 | transition: none; 97 | } 98 | 99 | [data-gatsby-loading-indicator-visible="true"] { 100 | transition: none; 101 | } 102 | } 103 | 104 | @media (prefers-color-scheme: dark) { 105 | [data-gatsby-loading-indicator="root"] { 106 | background: var(--grey-90); 107 | color: var(--white); 108 | } 109 | [data-gatsby-loading-indicator="spinner"] { 110 | color: var(--purple-20); 111 | } 112 | } 113 | ` 114 | } 115 | }); 116 | 117 | var _default = Style; 118 | exports.default = _default; -------------------------------------------------------------------------------- /.cache/commonjs/normalize-page-path.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.__esModule = true; 4 | exports.default = void 0; 5 | 6 | var _default = path => { 7 | if (path === undefined) { 8 | return path; 9 | } 10 | 11 | if (path === `/`) { 12 | return `/`; 13 | } 14 | 15 | if (path.charAt(path.length - 1) === `/`) { 16 | return path.slice(0, -1); 17 | } 18 | 19 | return path; 20 | }; 21 | 22 | exports.default = _default; -------------------------------------------------------------------------------- /.cache/commonjs/page-renderer.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 4 | 5 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); 6 | 7 | exports.__esModule = true; 8 | exports.default = void 0; 9 | 10 | var _react = _interopRequireWildcard(require("react")); 11 | 12 | var _propTypes = _interopRequireDefault(require("prop-types")); 13 | 14 | var _apiRunnerBrowser = require("./api-runner-browser"); 15 | 16 | var _findPath = require("./find-path"); 17 | 18 | // Renders page 19 | class PageRenderer extends _react.default.Component { 20 | render() { 21 | const props = { ...this.props, 22 | params: { ...(0, _findPath.grabMatchParams)(this.props.location.pathname), 23 | ...this.props.pageResources.json.pageContext.__params 24 | } 25 | }; 26 | const pageElement = /*#__PURE__*/(0, _react.createElement)(this.props.pageResources.component, { ...props, 27 | key: this.props.path || this.props.pageResources.page.path 28 | }); 29 | const wrappedPage = (0, _apiRunnerBrowser.apiRunner)(`wrapPageElement`, { 30 | element: pageElement, 31 | props 32 | }, pageElement, ({ 33 | result 34 | }) => { 35 | return { 36 | element: result, 37 | props 38 | }; 39 | }).pop(); 40 | return wrappedPage; 41 | } 42 | 43 | } 44 | 45 | PageRenderer.propTypes = { 46 | location: _propTypes.default.object.isRequired, 47 | pageResources: _propTypes.default.object.isRequired, 48 | data: _propTypes.default.object, 49 | pageContext: _propTypes.default.object.isRequired 50 | }; 51 | var _default = PageRenderer; 52 | exports.default = _default; -------------------------------------------------------------------------------- /.cache/commonjs/polyfill-entry.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | require("gatsby-legacy-polyfills"); 4 | 5 | if (process.env.NODE_ENV === `development`) { 6 | require(`event-source-polyfill`); 7 | } -------------------------------------------------------------------------------- /.cache/commonjs/prefetch.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.__esModule = true; 4 | exports.default = void 0; 5 | 6 | const support = function (feature) { 7 | if (typeof document === `undefined`) { 8 | return false; 9 | } 10 | 11 | const fakeLink = document.createElement(`link`); 12 | 13 | try { 14 | if (fakeLink.relList && typeof fakeLink.relList.supports === `function`) { 15 | return fakeLink.relList.supports(feature); 16 | } 17 | } catch (err) { 18 | return false; 19 | } 20 | 21 | return false; 22 | }; 23 | 24 | const linkPrefetchStrategy = function (url, options) { 25 | return new Promise((resolve, reject) => { 26 | if (typeof document === `undefined`) { 27 | reject(); 28 | return; 29 | } 30 | 31 | const link = document.createElement(`link`); 32 | link.setAttribute(`rel`, `prefetch`); 33 | link.setAttribute(`href`, url); 34 | Object.keys(options).forEach(key => { 35 | link.setAttribute(key, options[key]); 36 | }); 37 | link.onload = resolve; 38 | link.onerror = reject; 39 | const parentElement = document.getElementsByTagName(`head`)[0] || document.getElementsByName(`script`)[0].parentNode; 40 | parentElement.appendChild(link); 41 | }); 42 | }; 43 | 44 | const xhrPrefetchStrategy = function (url) { 45 | return new Promise((resolve, reject) => { 46 | const req = new XMLHttpRequest(); 47 | req.open(`GET`, url, true); 48 | 49 | req.onload = () => { 50 | if (req.status === 200) { 51 | resolve(); 52 | } else { 53 | reject(); 54 | } 55 | }; 56 | 57 | req.send(null); 58 | }); 59 | }; 60 | 61 | const supportedPrefetchStrategy = support(`prefetch`) ? linkPrefetchStrategy : xhrPrefetchStrategy; 62 | const preFetched = {}; 63 | 64 | const prefetch = function (url, options) { 65 | return new Promise(resolve => { 66 | if (preFetched[url]) { 67 | resolve(); 68 | return; 69 | } 70 | 71 | supportedPrefetchStrategy(url, options).then(() => { 72 | resolve(); 73 | preFetched[url] = true; 74 | }).catch(() => {}); // 404s are logged to the console anyway 75 | }); 76 | }; 77 | 78 | var _default = prefetch; 79 | exports.default = _default; -------------------------------------------------------------------------------- /.cache/commonjs/public-page-renderer-dev.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 4 | 5 | exports.__esModule = true; 6 | exports.default = void 0; 7 | 8 | var _react = _interopRequireDefault(require("react")); 9 | 10 | var _propTypes = _interopRequireDefault(require("prop-types")); 11 | 12 | var _loader = _interopRequireDefault(require("./loader")); 13 | 14 | var _queryResultStore = require("./query-result-store"); 15 | 16 | const DevPageRenderer = ({ 17 | location 18 | }) => { 19 | const pageResources = _loader.default.loadPageSync(location.pathname); 20 | 21 | return /*#__PURE__*/_react.default.createElement(_queryResultStore.PageQueryStore, { 22 | location, 23 | pageResources 24 | }); 25 | }; 26 | 27 | DevPageRenderer.propTypes = { 28 | location: _propTypes.default.shape({ 29 | pathname: _propTypes.default.string.isRequired 30 | }).isRequired 31 | }; 32 | var _default = DevPageRenderer; 33 | exports.default = _default; -------------------------------------------------------------------------------- /.cache/commonjs/public-page-renderer-prod.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 4 | 5 | exports.__esModule = true; 6 | exports.default = void 0; 7 | 8 | var _react = _interopRequireDefault(require("react")); 9 | 10 | var _propTypes = _interopRequireDefault(require("prop-types")); 11 | 12 | var _loader = _interopRequireDefault(require("./loader")); 13 | 14 | var _pageRenderer = _interopRequireDefault(require("./page-renderer")); 15 | 16 | const ProdPageRenderer = ({ 17 | location 18 | }) => { 19 | const pageResources = _loader.default.loadPageSync(location.pathname); 20 | 21 | if (!pageResources) { 22 | return null; 23 | } 24 | 25 | return /*#__PURE__*/_react.default.createElement(_pageRenderer.default, { 26 | location, 27 | pageResources, 28 | ...pageResources.json 29 | }); 30 | }; 31 | 32 | ProdPageRenderer.propTypes = { 33 | location: _propTypes.default.shape({ 34 | pathname: _propTypes.default.string.isRequired 35 | }).isRequired 36 | }; 37 | var _default = ProdPageRenderer; 38 | exports.default = _default; -------------------------------------------------------------------------------- /.cache/commonjs/public-page-renderer.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const preferDefault = m => m && m.default || m; 4 | 5 | if (process.env.BUILD_STAGE === `develop`) { 6 | module.exports = preferDefault(require(`./public-page-renderer-dev`)); 7 | } else if (process.env.BUILD_STAGE === `build-javascript`) { 8 | module.exports = preferDefault(require(`./public-page-renderer-prod`)); 9 | } else { 10 | module.exports = () => null; 11 | } -------------------------------------------------------------------------------- /.cache/commonjs/react-lifecycles-compat.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.polyfill = Component => Component; -------------------------------------------------------------------------------- /.cache/commonjs/register-service-worker.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _apiRunnerBrowser = require("./api-runner-browser"); 4 | 5 | if (window.location.protocol !== `https:` && window.location.hostname !== `localhost`) { 6 | console.error(`Service workers can only be used over HTTPS, or on localhost for development`); 7 | } else if (`serviceWorker` in navigator) { 8 | navigator.serviceWorker.register(`${__BASE_PATH__}/sw.js`).then(function (reg) { 9 | reg.addEventListener(`updatefound`, () => { 10 | (0, _apiRunnerBrowser.apiRunner)(`onServiceWorkerUpdateFound`, { 11 | serviceWorker: reg 12 | }); // The updatefound event implies that reg.installing is set; see 13 | // https://w3c.github.io/ServiceWorker/#service-worker-registration-updatefound-event 14 | 15 | const installingWorker = reg.installing; 16 | console.log(`installingWorker`, installingWorker); 17 | installingWorker.addEventListener(`statechange`, () => { 18 | switch (installingWorker.state) { 19 | case `installed`: 20 | if (navigator.serviceWorker.controller) { 21 | // At this point, the old content will have been purged and the fresh content will 22 | // have been added to the cache. 23 | // We set a flag so Gatsby Link knows to refresh the page on next navigation attempt 24 | window.___swUpdated = true; // We call the onServiceWorkerUpdateReady API so users can show update prompts. 25 | 26 | (0, _apiRunnerBrowser.apiRunner)(`onServiceWorkerUpdateReady`, { 27 | serviceWorker: reg 28 | }); // If resources failed for the current page, reload. 29 | 30 | if (window.___failedResources) { 31 | console.log(`resources failed, SW updated - reloading`); 32 | window.location.reload(); 33 | } 34 | } else { 35 | // At this point, everything has been precached. 36 | // It's the perfect time to display a "Content is cached for offline use." message. 37 | console.log(`Content is now available offline!`); // Post to service worker that install is complete. 38 | // Delay to allow time for the event listener to be added -- 39 | // otherwise fetch is called too soon and resources aren't cached. 40 | 41 | (0, _apiRunnerBrowser.apiRunner)(`onServiceWorkerInstalled`, { 42 | serviceWorker: reg 43 | }); 44 | } 45 | 46 | break; 47 | 48 | case `redundant`: 49 | console.error(`The installing service worker became redundant.`); 50 | (0, _apiRunnerBrowser.apiRunner)(`onServiceWorkerRedundant`, { 51 | serviceWorker: reg 52 | }); 53 | break; 54 | 55 | case `activated`: 56 | (0, _apiRunnerBrowser.apiRunner)(`onServiceWorkerActive`, { 57 | serviceWorker: reg 58 | }); 59 | break; 60 | } 61 | }); 62 | }); 63 | }).catch(function (e) { 64 | console.error(`Error during service worker registration:`, e); 65 | }); 66 | } -------------------------------------------------------------------------------- /.cache/commonjs/root.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 4 | 5 | exports.__esModule = true; 6 | exports.default = void 0; 7 | 8 | var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); 9 | 10 | var _react = _interopRequireDefault(require("react")); 11 | 12 | var _reachRouter = require("@gatsbyjs/reach-router"); 13 | 14 | var _gatsbyReactRouterScroll = require("gatsby-react-router-scroll"); 15 | 16 | var _navigation = require("./navigation"); 17 | 18 | var _apiRunnerBrowser = require("./api-runner-browser"); 19 | 20 | var _loader = _interopRequireDefault(require("./loader")); 21 | 22 | var _queryResultStore = require("./query-result-store"); 23 | 24 | var _ensureResources = _interopRequireDefault(require("./ensure-resources")); 25 | 26 | var _fastRefreshOverlay = _interopRequireDefault(require("./fast-refresh-overlay")); 27 | 28 | // In gatsby v2 if Router is used in page using matchPaths 29 | // paths need to contain full path. 30 | // For example: 31 | // - page have `/app/*` matchPath 32 | // - inside template user needs to use `/app/xyz` as path 33 | // Resetting `basepath`/`baseuri` keeps current behaviour 34 | // to not introduce breaking change. 35 | // Remove this in v3 36 | const RouteHandler = props => /*#__PURE__*/_react.default.createElement(_reachRouter.BaseContext.Provider, { 37 | value: { 38 | baseuri: `/`, 39 | basepath: `/` 40 | } 41 | }, /*#__PURE__*/_react.default.createElement(_queryResultStore.PageQueryStore, props)); 42 | 43 | class LocationHandler extends _react.default.Component { 44 | render() { 45 | const { 46 | location 47 | } = this.props; 48 | 49 | if (!_loader.default.isPageNotFound(location.pathname)) { 50 | return /*#__PURE__*/_react.default.createElement(_ensureResources.default, { 51 | location: location 52 | }, locationAndPageResources => /*#__PURE__*/_react.default.createElement(_navigation.RouteUpdates, { 53 | location: location 54 | }, /*#__PURE__*/_react.default.createElement(_gatsbyReactRouterScroll.ScrollContext, { 55 | location: location, 56 | shouldUpdateScroll: _navigation.shouldUpdateScroll 57 | }, /*#__PURE__*/_react.default.createElement(_reachRouter.Router, { 58 | basepath: __BASE_PATH__, 59 | location: location, 60 | id: "gatsby-focus-wrapper" 61 | }, /*#__PURE__*/_react.default.createElement(RouteHandler, (0, _extends2.default)({ 62 | path: encodeURI(locationAndPageResources.pageResources.page.matchPath || locationAndPageResources.pageResources.page.path) 63 | }, this.props, locationAndPageResources)))))); 64 | } 65 | 66 | const dev404PageResources = _loader.default.loadPageSync(`/dev-404-page`); 67 | 68 | const real404PageResources = _loader.default.loadPageSync(`/404.html`); 69 | 70 | let custom404; 71 | 72 | if (real404PageResources) { 73 | custom404 = /*#__PURE__*/_react.default.createElement(_queryResultStore.PageQueryStore, (0, _extends2.default)({}, this.props, { 74 | pageResources: real404PageResources 75 | })); 76 | } 77 | 78 | return /*#__PURE__*/_react.default.createElement(_navigation.RouteUpdates, { 79 | location: location 80 | }, /*#__PURE__*/_react.default.createElement(_reachRouter.Router, { 81 | basepath: __BASE_PATH__, 82 | location: location, 83 | id: "gatsby-focus-wrapper" 84 | }, /*#__PURE__*/_react.default.createElement(RouteHandler, { 85 | path: location.pathname, 86 | location: location, 87 | pageResources: dev404PageResources, 88 | custom404: custom404 89 | }))); 90 | } 91 | 92 | } 93 | 94 | const Root = () => /*#__PURE__*/_react.default.createElement(_reachRouter.Location, null, locationContext => /*#__PURE__*/_react.default.createElement(LocationHandler, locationContext)); // Let site, plugins wrap the site e.g. for Redux. 95 | 96 | 97 | const rootWrappedWithWrapRootElement = (0, _apiRunnerBrowser.apiRunner)(`wrapRootElement`, { 98 | element: /*#__PURE__*/_react.default.createElement(Root, null) 99 | }, /*#__PURE__*/_react.default.createElement(Root, null), ({ 100 | result, 101 | plugin 102 | }) => { 103 | return { 104 | element: result 105 | }; 106 | }).pop(); 107 | 108 | function RootWrappedWithOverlayAndProvider() { 109 | return /*#__PURE__*/_react.default.createElement(_fastRefreshOverlay.default, null, /*#__PURE__*/_react.default.createElement(_queryResultStore.StaticQueryStore, null, rootWrappedWithWrapRootElement)); 110 | } 111 | 112 | var _default = RootWrappedWithOverlayAndProvider; 113 | exports.default = _default; -------------------------------------------------------------------------------- /.cache/commonjs/route-announcer-props.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.__esModule = true; 4 | exports.RouteAnnouncerProps = void 0; 5 | // This is extracted to separate module because it's shared 6 | // between browser and SSR code 7 | const RouteAnnouncerProps = { 8 | id: `gatsby-announcer`, 9 | style: { 10 | position: `absolute`, 11 | top: 0, 12 | width: 1, 13 | height: 1, 14 | padding: 0, 15 | overflow: `hidden`, 16 | clip: `rect(0, 0, 0, 0)`, 17 | whiteSpace: `nowrap`, 18 | border: 0 19 | }, 20 | "aria-live": `assertive`, 21 | "aria-atomic": `true` 22 | }; 23 | exports.RouteAnnouncerProps = RouteAnnouncerProps; -------------------------------------------------------------------------------- /.cache/commonjs/socketIo.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); 4 | 5 | exports.__esModule = true; 6 | exports.default = socketIo; 7 | exports.registerPath = registerPath; 8 | exports.unregisterPath = unregisterPath; 9 | 10 | var _socket = _interopRequireDefault(require("socket.io-client")); 11 | 12 | var _errorOverlayHandler = require("./error-overlay-handler"); 13 | 14 | let socket = null; 15 | 16 | function socketIo() { 17 | if (process.env.NODE_ENV !== `production`) { 18 | if (!socket) { 19 | // Try to initialize web socket if we didn't do it already 20 | try { 21 | // force websocket as transport 22 | socket = (0, _socket.default)({ 23 | transports: [process.env.GATSBY_SOCKET_IO_DEFAULT_TRANSPORT] 24 | }); // when websocket fails, we'll try polling 25 | 26 | socket.on(`reconnect_attempt`, () => { 27 | socket.io.opts.transports = [`polling`, `websocket`]; 28 | }); 29 | socket.on(`message`, msg => { 30 | if (msg.type === `overlayError`) { 31 | if (msg.payload.message) { 32 | (0, _errorOverlayHandler.reportError)(msg.payload.id, msg.payload.message); 33 | } else { 34 | (0, _errorOverlayHandler.clearError)(msg.payload.id); 35 | } 36 | 37 | ___emitter.emit(msg.type, msg.payload); 38 | } 39 | }); // Prevents certain browsers spamming XHR 'ERR_CONNECTION_REFUSED' 40 | // errors within the console, such as when exiting the develop process. 41 | 42 | socket.on(`disconnect`, () => { 43 | console.warn(`[socket.io] Disconnected from dev server.`); 44 | }); 45 | } catch (err) { 46 | console.error(`Could not connect to socket.io on dev server.`); 47 | } 48 | } 49 | 50 | return socket; 51 | } else { 52 | return null; 53 | } 54 | } // Tell websocket-manager.js the new path we're on. 55 | // This will help the backend prioritize queries for this 56 | // path. 57 | 58 | 59 | function registerPath(path) { 60 | socket.emit(`registerPath`, path); 61 | } // Unregister the former path 62 | 63 | 64 | function unregisterPath(path) { 65 | socket.emit(`unregisterPath`, path); 66 | } -------------------------------------------------------------------------------- /.cache/commonjs/ssr-builtin-trackers/child_process.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | /* eslint-disable filenames/match-regex */ 4 | const { 5 | wrapModuleWithTracking 6 | } = require(`./tracking-unsafe-module-wrapper`); 7 | 8 | module.exports = wrapModuleWithTracking(`child_process`); -------------------------------------------------------------------------------- /.cache/commonjs/ssr-builtin-trackers/fs.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const { 4 | wrapModuleWithTracking 5 | } = require(`./tracking-unsafe-module-wrapper`); 6 | 7 | module.exports = wrapModuleWithTracking(`fs`); -------------------------------------------------------------------------------- /.cache/commonjs/ssr-builtin-trackers/http.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const { 4 | wrapModuleWithTracking 5 | } = require(`./tracking-unsafe-module-wrapper`); 6 | 7 | module.exports = wrapModuleWithTracking(`http`, { 8 | ignore: [`http.Agent`] 9 | }); -------------------------------------------------------------------------------- /.cache/commonjs/ssr-builtin-trackers/http2.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const { 4 | wrapModuleWithTracking 5 | } = require(`./tracking-unsafe-module-wrapper`); 6 | 7 | module.exports = wrapModuleWithTracking(`http2`); -------------------------------------------------------------------------------- /.cache/commonjs/ssr-builtin-trackers/https.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const { 4 | wrapModuleWithTracking 5 | } = require(`./tracking-unsafe-module-wrapper`); 6 | 7 | module.exports = wrapModuleWithTracking(`https`, { 8 | ignore: [`https.Agent`] 9 | }); -------------------------------------------------------------------------------- /.cache/commonjs/ssr-builtin-trackers/tracking-unsafe-module-wrapper.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // initializing global here for unsafe builtin usage at import time 4 | global.unsafeBuiltinUsage = []; 5 | 6 | function createProxyHandler(prefix, options) { 7 | return { 8 | get: function (target, key) { 9 | const value = target[key]; 10 | const path = key && key.toString ? `${prefix}.${key.toString()}` : prefix; 11 | 12 | if (options.ignore.includes(path)) { 13 | return value; 14 | } 15 | 16 | if (typeof value === `function`) { 17 | return function wrapper(...args) { 18 | const myErrorHolder = { 19 | name: `Unsafe builtin usage ${path}` 20 | }; 21 | Error.captureStackTrace(myErrorHolder, wrapper); // - loadPageDataSync already is tracked with dedicated warning messages, 22 | // so skipping marking it to avoid multiple messages for same usage 23 | // - node-gyp-build will use fs.readDirSync in attempt to load binaries 24 | // this should be ok to ignore. 25 | 26 | if (!myErrorHolder.stack.includes(`loadPageDataSync`) && !myErrorHolder.stack.includes(`node-gyp-build`)) { 27 | global.unsafeBuiltinUsage.push(myErrorHolder.stack); 28 | } 29 | 30 | return value.apply(target, args); 31 | }; 32 | } else if (typeof value === `object` && value !== null) { 33 | return new Proxy(value, createProxyHandler(path, options)); 34 | } 35 | 36 | return value; 37 | } 38 | }; 39 | } 40 | 41 | function wrapModuleWithTracking(moduleName, options = {}) { 42 | if (!options.ignore) { 43 | options.ignore = []; 44 | } 45 | 46 | const mod = require(moduleName); 47 | 48 | return new Proxy(mod, createProxyHandler(moduleName, options)); 49 | } 50 | 51 | exports.wrapModuleWithTracking = wrapModuleWithTracking; -------------------------------------------------------------------------------- /.cache/commonjs/strip-prefix.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.__esModule = true; 4 | exports.default = stripPrefix; 5 | 6 | /** 7 | * Remove a prefix from a string. Return the input string if the given prefix 8 | * isn't found. 9 | */ 10 | function stripPrefix(str, prefix = ``) { 11 | if (!prefix) { 12 | return str; 13 | } 14 | 15 | if (str === prefix) { 16 | return `/`; 17 | } 18 | 19 | if (str.startsWith(`${prefix}/`)) { 20 | return str.slice(prefix.length); 21 | } 22 | 23 | return str; 24 | } -------------------------------------------------------------------------------- /.cache/debug-log.js: -------------------------------------------------------------------------------- 1 | // inspired by https://github.com/GoogleChrome/workbox/blob/3d02230f0e977eb1dc86c48f16ea4bcefdae12af/packages/workbox-core/src/_private/logger.ts 2 | 3 | const styles = [ 4 | `background: rebeccapurple`, 5 | `border-radius: 0.5em`, 6 | `color: white`, 7 | `font-weight: bold`, 8 | `padding: 2px 0.5em`, 9 | ].join(`;`) 10 | 11 | export function debugLog(...args) { 12 | console.debug(`%cgatsby`, styles, ...args) 13 | } 14 | -------------------------------------------------------------------------------- /.cache/default-html.js: -------------------------------------------------------------------------------- 1 | import React from "react" 2 | import PropTypes from "prop-types" 3 | 4 | export default function HTML(props) { 5 | return ( 6 | 7 | 8 | 9 | 10 | 14 | {props.headComponents} 15 | 16 | 17 | {props.preBodyComponents} 18 |
23 | {props.postBodyComponents} 24 | 25 | 26 | ) 27 | } 28 | 29 | HTML.propTypes = { 30 | htmlAttributes: PropTypes.object, 31 | headComponents: PropTypes.array, 32 | bodyAttributes: PropTypes.object, 33 | preBodyComponents: PropTypes.array, 34 | body: PropTypes.string, 35 | postBodyComponents: PropTypes.array, 36 | } 37 | -------------------------------------------------------------------------------- /.cache/develop-html/index.html: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /.cache/develop-static-entry.js: -------------------------------------------------------------------------------- 1 | import React from "react" 2 | import { renderToStaticMarkup } from "react-dom/server" 3 | import { merge } from "lodash" 4 | import apiRunner from "./api-runner-ssr" 5 | // import testRequireError from "./test-require-error" 6 | // For some extremely mysterious reason, webpack adds the above module *after* 7 | // this module so that when this code runs, testRequireError is undefined. 8 | // So in the meantime, we'll just inline it. 9 | const testRequireError = (moduleName, err) => { 10 | const regex = new RegExp(`Error: Cannot find module\\s.${moduleName}`) 11 | const firstLine = err.toString().split(`\n`)[0] 12 | return regex.test(firstLine) 13 | } 14 | 15 | let Html 16 | try { 17 | Html = require(`../src/html`) 18 | } catch (err) { 19 | if (testRequireError(`../src/html`, err)) { 20 | Html = require(`./default-html`) 21 | } else { 22 | console.log(`There was an error requiring "src/html.js"\n\n`, err, `\n\n`) 23 | process.exit() 24 | } 25 | } 26 | 27 | Html = Html && Html.__esModule ? Html.default : Html 28 | 29 | export default ({ pagePath }) => { 30 | let headComponents = [ 31 | , 32 | ] 33 | let htmlAttributes = {} 34 | let bodyAttributes = {} 35 | let preBodyComponents = [] 36 | let postBodyComponents = [] 37 | let bodyProps = {} 38 | let htmlStr 39 | 40 | const setHeadComponents = components => { 41 | headComponents = headComponents.concat(components) 42 | } 43 | 44 | const setHtmlAttributes = attributes => { 45 | htmlAttributes = merge(htmlAttributes, attributes) 46 | } 47 | 48 | const setBodyAttributes = attributes => { 49 | bodyAttributes = merge(bodyAttributes, attributes) 50 | } 51 | 52 | const setPreBodyComponents = components => { 53 | preBodyComponents = preBodyComponents.concat(components) 54 | } 55 | 56 | const setPostBodyComponents = components => { 57 | postBodyComponents = postBodyComponents.concat(components) 58 | } 59 | 60 | const setBodyProps = props => { 61 | bodyProps = merge({}, bodyProps, props) 62 | } 63 | 64 | const getHeadComponents = () => headComponents 65 | 66 | const replaceHeadComponents = components => { 67 | headComponents = components 68 | } 69 | 70 | const getPreBodyComponents = () => preBodyComponents 71 | 72 | const replacePreBodyComponents = components => { 73 | preBodyComponents = components 74 | } 75 | 76 | const getPostBodyComponents = () => postBodyComponents 77 | 78 | const replacePostBodyComponents = components => { 79 | postBodyComponents = components 80 | } 81 | 82 | apiRunner(`onRenderBody`, { 83 | setHeadComponents, 84 | setHtmlAttributes, 85 | setBodyAttributes, 86 | setPreBodyComponents, 87 | setPostBodyComponents, 88 | setBodyProps, 89 | pathname: pagePath, 90 | }) 91 | 92 | apiRunner(`onPreRenderHTML`, { 93 | getHeadComponents, 94 | replaceHeadComponents, 95 | getPreBodyComponents, 96 | replacePreBodyComponents, 97 | getPostBodyComponents, 98 | replacePostBodyComponents, 99 | pathname: pagePath, 100 | }) 101 | 102 | const htmlElement = React.createElement(Html, { 103 | ...bodyProps, 104 | body: ``, 105 | headComponents: headComponents.concat([ 106 | 19 | 20 | 24 | 25 | 34 | GDSC Lead Map 35 | 36 | 37 | 38 |
39 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/public/logo.png -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | import Grid from "@material-ui/core/Grid"; 3 | import GithubCorner from "react-github-corner"; 4 | 5 | //Components 6 | import Map from "./components/map"; 7 | import Jumbotron from "./components/jumbotron"; 8 | import Button from 'react-bootstrap/Button' 9 | 10 | class App extends Component { 11 | clickMe(e) { 12 | e.preventDefault() 13 | //console.log(document.getElementsByTagName('jumbotron').style) 14 | if(document.getElementsByTagName('body')[0].style.backgroundColor === 'rgb(18, 18, 18)'){ 15 | document.getElementsByTagName('body')[0].style.backgroundColor = 'white' 16 | document.getElementsByClassName('jumbotron')[0].style.backgroundColor = '' 17 | document.getElementsByClassName('jumbotron')[0].style.color = 'black' 18 | document.getElementsByClassName('darkNav')[0].style.backgroundColor = '#1769aa' 19 | document.getElementsByClassName('btn btn-primary')[0].style.backgroundColor = '#007bff' 20 | document.getElementsByClassName('btn btn-primary')[0].style.borderColor = '#007bff' 21 | document.getElementsByClassName('d-none d-md-block')[0].style.backgroundColor = 'black' 22 | var els = document.getElementsByClassName('dark-mode') 23 | Array.prototype.forEach.call(els, function(element) { 24 | element.style.borderColor = '#e3e3e3' 25 | element.style.color = 'black' 26 | element.style.backgroundColor = 'white' 27 | }); 28 | return; 29 | } 30 | document.getElementsByTagName('body')[0].style.backgroundColor = '#121212' 31 | document.getElementsByClassName('jumbotron')[0].style.backgroundColor = '#303030' 32 | document.getElementsByClassName('jumbotron')[0].style.color = 'white' 33 | document.getElementsByClassName('darkNav')[0].style.backgroundColor = '#262626' 34 | document.getElementsByClassName('darkNav')[0].style.color = '#262626' 35 | document.getElementsByClassName('btn btn-primary')[0].style.backgroundColor = '#262626' 36 | document.getElementsByClassName('btn btn-primary')[0].style.borderColor = '#262626' 37 | document.getElementsByClassName('d-none d-md-block')[0].style.backgroundColor = 'white' 38 | var els1 = document.getElementsByClassName('dark-mode') 39 | Array.prototype.forEach.call(els1, function(element) { 40 | element.style.borderColor = '#e3e3e3' 41 | element.style.color = 'white' 42 | element.style.backgroundColor = '#232323' 43 | }); 44 | } 45 | render() { 46 | return ( 47 |
48 | 49 | 54 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 |
69 | ) 70 | } 71 | } 72 | 73 | export default App 74 | -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- 1 | import {render, screen} from "@testing-library/react"; 2 | import App from "./App"; 3 | 4 | test("renders learn react link", () => { 5 | render(); 6 | const linkElement = screen.getByText(/learn react/i); 7 | expect(linkElement).toBeInTheDocument(); 8 | }); 9 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | import App from "./App"; 4 | import reportWebVitals from "./reportWebVitals"; 5 | //import "bootstrap/scss/" 6 | import "bootstrap/dist/css/bootstrap.min.css"; 7 | 8 | ReactDOM.render( 9 | 10 | 11 | , 12 | document.getElementById("root") 13 | ); 14 | 15 | // If you want to start measuring performance in your app, pass a function 16 | // to log results (for example: reportWebVitals(console.log)) 17 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 18 | reportWebVitals(); 19 | -------------------------------------------------------------------------------- /src/photos/Abhinavtb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/Abhinavtb.jpg -------------------------------------------------------------------------------- /src/photos/AdithyaAnilkumar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/AdithyaAnilkumar.jpg -------------------------------------------------------------------------------- /src/photos/AdityaBirangal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/AdityaBirangal.jpg -------------------------------------------------------------------------------- /src/photos/Aineshphanithi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/Aineshphanithi.jpg -------------------------------------------------------------------------------- /src/photos/AkashM.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/AkashM.jpg -------------------------------------------------------------------------------- /src/photos/AkshaySharma008.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/AkshaySharma008.jpg -------------------------------------------------------------------------------- /src/photos/AnmolKaur.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/AnmolKaur.jpg -------------------------------------------------------------------------------- /src/photos/AnubhavMadhav.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/AnubhavMadhav.jpg -------------------------------------------------------------------------------- /src/photos/AravindVNair99.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/AravindVNair99.jpg -------------------------------------------------------------------------------- /src/photos/Aravindh020.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/Aravindh020.jpg -------------------------------------------------------------------------------- /src/photos/AsishRaju.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/AsishRaju.jpg -------------------------------------------------------------------------------- /src/photos/Aswin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/Aswin.jpg -------------------------------------------------------------------------------- /src/photos/FireQueen-3010.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/FireQueen-3010.jpg -------------------------------------------------------------------------------- /src/photos/Jacob.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/Jacob.jpg -------------------------------------------------------------------------------- /src/photos/James7881.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/James7881.jpg -------------------------------------------------------------------------------- /src/photos/JuliusKanneh.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/JuliusKanneh.jpg -------------------------------------------------------------------------------- /src/photos/Karan.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/Karan.jpg -------------------------------------------------------------------------------- /src/photos/LoopGlitch26.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/LoopGlitch26.jpg -------------------------------------------------------------------------------- /src/photos/Manjunath.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/Manjunath.jpg -------------------------------------------------------------------------------- /src/photos/MuhammadHassanRazaa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/MuhammadHassanRazaa.jpg -------------------------------------------------------------------------------- /src/photos/MuhideenMujeeb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/MuhideenMujeeb.jpg -------------------------------------------------------------------------------- /src/photos/NaveenK.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/NaveenK.jpg -------------------------------------------------------------------------------- /src/photos/PragatiVerma.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/PragatiVerma.jpg -------------------------------------------------------------------------------- /src/photos/RyuuKenshi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/RyuuKenshi.jpg -------------------------------------------------------------------------------- /src/photos/SangeetaJha.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/SangeetaJha.jpg -------------------------------------------------------------------------------- /src/photos/SanjayDevTech.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/SanjayDevTech.jpg -------------------------------------------------------------------------------- /src/photos/TamunokoriteBriggs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/TamunokoriteBriggs.jpg -------------------------------------------------------------------------------- /src/photos/Vasundharashukla.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/Vasundharashukla.jpg -------------------------------------------------------------------------------- /src/photos/Vedant.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/Vedant.jpg -------------------------------------------------------------------------------- /src/photos/abhinavsri360.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/abhinavsri360.jpg -------------------------------------------------------------------------------- /src/photos/abhishek2x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/abhishek2x.jpg -------------------------------------------------------------------------------- /src/photos/adi10hero.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/adi10hero.jpg -------------------------------------------------------------------------------- /src/photos/advaithunnikrishnan.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/advaithunnikrishnan.jpg -------------------------------------------------------------------------------- /src/photos/aemiej.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/aemiej.jpg -------------------------------------------------------------------------------- /src/photos/aitik.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/aitik.jpg -------------------------------------------------------------------------------- /src/photos/akashshrivastava.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/akashshrivastava.jpg -------------------------------------------------------------------------------- /src/photos/akshita2k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/akshita2k.jpg -------------------------------------------------------------------------------- /src/photos/ankitaugale23.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/ankitaugale23.jpg -------------------------------------------------------------------------------- /src/photos/arrayappy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/arrayappy.jpg -------------------------------------------------------------------------------- /src/photos/ashwinraj.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/ashwinraj.jpg -------------------------------------------------------------------------------- /src/photos/chrisft25.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/chrisft25.jpg -------------------------------------------------------------------------------- /src/photos/dewanshrawat15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/dewanshrawat15.jpg -------------------------------------------------------------------------------- /src/photos/eswar2001.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/eswar2001.jpg -------------------------------------------------------------------------------- /src/photos/ghpranav.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/ghpranav.jpg -------------------------------------------------------------------------------- /src/photos/ghulamrasuldev.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/ghulamrasuldev.jpg -------------------------------------------------------------------------------- /src/photos/gohil-jay.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/gohil-jay.jpg -------------------------------------------------------------------------------- /src/photos/harshKumarKhatri.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/harshKumarKhatri.jpg -------------------------------------------------------------------------------- /src/photos/helios027.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/helios027.jpg -------------------------------------------------------------------------------- /src/photos/ikoala21.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/ikoala21.jpg -------------------------------------------------------------------------------- /src/photos/ishubham21.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/ishubham21.jpg -------------------------------------------------------------------------------- /src/photos/jemikp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/jemikp.jpg -------------------------------------------------------------------------------- /src/photos/jestinroy3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/jestinroy3.jpg -------------------------------------------------------------------------------- /src/photos/karthik.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/karthik.jpg -------------------------------------------------------------------------------- /src/photos/kartikbhushan.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/kartikbhushan.jpg -------------------------------------------------------------------------------- /src/photos/kartikderasari.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/kartikderasari.jpg -------------------------------------------------------------------------------- /src/photos/kunalgehlot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/kunalgehlot.jpg -------------------------------------------------------------------------------- /src/photos/mriceflame.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/mriceflame.jpg -------------------------------------------------------------------------------- /src/photos/pal-16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/pal-16.jpg -------------------------------------------------------------------------------- /src/photos/praddy2009.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/praddy2009.jpg -------------------------------------------------------------------------------- /src/photos/pvsharshith.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/pvsharshith.jpg -------------------------------------------------------------------------------- /src/photos/ralphcoder.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/ralphcoder.jpg -------------------------------------------------------------------------------- /src/photos/rohitdalvi18.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/rohitdalvi18.jpg -------------------------------------------------------------------------------- /src/photos/sakshigrover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/sakshigrover.jpg -------------------------------------------------------------------------------- /src/photos/sanjeev.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/sanjeev.jpg -------------------------------------------------------------------------------- /src/photos/sharjeel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/sharjeel.jpg -------------------------------------------------------------------------------- /src/photos/shawavisek35.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/shawavisek35.jpg -------------------------------------------------------------------------------- /src/photos/shreyasmalewar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/shreyasmalewar.jpg -------------------------------------------------------------------------------- /src/photos/srilaasya.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/srilaasya.jpg -------------------------------------------------------------------------------- /src/photos/subratkishoredutta.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/subratkishoredutta.jpg -------------------------------------------------------------------------------- /src/photos/sunanda.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/sunanda.jpg -------------------------------------------------------------------------------- /src/photos/suyashsonawane.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/suyashsonawane.jpg -------------------------------------------------------------------------------- /src/photos/taharh.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/taharh.jpg -------------------------------------------------------------------------------- /src/photos/venkyjayasurya.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/venkyjayasurya.jpg -------------------------------------------------------------------------------- /src/photos/yashrajkakkad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/yashrajkakkad.jpg -------------------------------------------------------------------------------- /src/photos/zainul.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhinavsri360/GDSC-Lead-Map/e7b0670a35ea41100c2bbcf209fa509ac0f905ef/src/photos/zainul.jpg -------------------------------------------------------------------------------- /src/reportWebVitals.js: -------------------------------------------------------------------------------- 1 | const reportWebVitals = (onPerfEntry) => { 2 | if (onPerfEntry && onPerfEntry instanceof Function) { 3 | import("web-vitals").then( 4 | ({getCLS, getFID, getFCP, getLCP, getTTFB}) => { 5 | getCLS(onPerfEntry); 6 | getFID(onPerfEntry); 7 | getFCP(onPerfEntry); 8 | getLCP(onPerfEntry); 9 | getTTFB(onPerfEntry); 10 | } 11 | ); 12 | } 13 | }; 14 | 15 | export default reportWebVitals; 16 | -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import "@testing-library/jest-dom"; 6 | --------------------------------------------------------------------------------