{"version":3,"sources":["webpack:///./src/templates/blog-post.js","webpack:///./node_modules/gatsby-plugin-disqus/utils.js","webpack:///./node_modules/gatsby-plugin-disqus/index.js","webpack:///./node_modules/gatsby-plugin-disqus/components/Disqus.js","webpack:///./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack:///./node_modules/gatsby-plugin-disqus/components/CommentCount.js","webpack:///./node_modules/gatsby-plugin-disqus/components/CommentEmbed.js","webpack:///./node_modules/core-js/modules/es6.number.constructor.js"],"names":["BlogPostTemplate","render","post","this","props","data","markdownRemark","site","siteMetadata","title","siteUrl","pageContext","previous","next","disqusConfig","url","location","pathname","identifier","id","frontmatter","description","excerpt","style","marginTop","rhythm","marginBottom","color","scale","display","date","dangerouslySetInnerHTML","__html","html","flexWrap","justifyContent","listStyle","padding","to","fields","slug","rel","config","React","Component","pageQuery","_interopRequireDefault","require","exports","__esModule","insertScript","src","parent","script","window","document","createElement","async","appendChild","removeScript","getElementById","removeChild","debounce","func","wait","runOnFirstCall","timeout","context","args","arguments","deferredExecution","apply","callNow","clearTimeout","setTimeout","isReactElement","shallowComparison","currentProps","nextProps","_ref","propNames","Set","Object","keys","concat","changes","_toConsumableArray2","default","filter","name","length","_react","element","isValidElement","Array","isArray","some","value","_Disqus","Disqus","_CommentCount","CommentCount","_CommentEmbed","CommentEmbed","_default","_extends2","_objectWithoutPropertiesLoose2","_inheritsLoose2","_propTypes","_utils","_React$Component","_this","call","shortname","GATSBY_DISQUS_SHORTNAME","embedUrl","_proto","prototype","componentDidMount","loadInstance","shouldComponentUpdate","componentDidUpdate","componentWillUnmount","cleanInstance","getDisqusConfig","page","remote_auth_s3","remoteAuthS3","api_key","apiKey","language","disqus_config","reloadInstance","body","DISQUS","reset","reload","error","undefined","thread","hasChildNodes","firstChild","querySelector","iframe","parentNode","_this$props","__self","__source","fileName","lineNumber","columnNumber","propTypes","shape","string","arrayWithoutHoles","iterableToArray","nonIterableSpread","module","arr","i","arr2","iter","Symbol","iterator","toString","from","TypeError","queueResetCount","DISQUSWIDGETS","getCount","placeholder","className","defaultProps","getSrc","Number","commentId","showParentComment","showMedia","width","height","seamless","scrolling","frameBorder","isRequired","number","bool","global","has","cof","inheritIfRequired","toPrimitive","fails","gOPN","f","gOPD","dP","$trim","trim","$Number","Base","proto","BROKEN_COF","TRIM","String","toNumber","argument","it","third","radix","maxCode","first","charCodeAt","NaN","code","digits","slice","l","parseInt","that","valueOf","key","split","j","constructor"],"mappings":"mNAQMA,E,gLACJC,OAAA,WACE,IAAMC,EAAOC,KAAKC,MAAMC,KAAKC,eADtB,EAEoBH,KAAKC,MAAMC,KAAKE,KAAKC,aAAxCC,EAFD,EAECA,MAAOC,EAFR,EAEQA,QAFR,EAGoBP,KAAKC,MAAMO,YAA9BC,EAHD,EAGCA,SAAUC,EAHX,EAGWA,KAEZC,EAAe,CACnBC,IAAI,IAAIL,EAAUP,KAAKC,MAAMY,SAASC,UACtCC,WAAYhB,EAAKiB,GACjBV,MAAOP,EAAKkB,YAAYX,OAG1B,OACE,kBAAC,IAAD,CAAQO,SAAUb,KAAKC,MAAMY,SAAUP,MAAOA,GAC5C,kBAAC,IAAD,CACEA,MAAOP,EAAKkB,YAAYX,MACxBY,YAAanB,EAAKkB,YAAYC,aAAenB,EAAKoB,UAEpD,iCACE,gCACE,wBACEC,MAAO,CACLC,UAAWC,YAAO,GAClBC,aAAc,EACdC,MAAM,YAGPzB,EAAKkB,YAAYX,OAEpB,uBACEc,MAAK,iBACAK,aAAM,IADN,CAEHC,QAAQ,QACRH,aAAcD,YAAO,MAGtBvB,EAAKkB,YAAYU,OAGtB,6BAASC,wBAAyB,CAAEC,OAAQ9B,EAAK+B,QACjD,wBACEV,MAAO,CACLG,aAAcD,YAAO,OAK3B,6BACE,wBACEF,MAAO,CACLM,QAAQ,OACR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GAAI,KAAK,GAAIH,EAAQ,EAAGC,EAAU,GAAI,MAC3C,KAAK,GAAI,KAAK,IAAKD,EAAQ,EAAGC,EAAU,GAAI,MAC5C,QAAS,OAAQH,EAEnB,IAAK,IAAoDO,EAAhDC,EAASR,EAAGS,MAAM,GAAIxD,EAAI,EAAGyD,EAAIF,EAAO5H,OAAcqE,EAAIyD,EAAGzD,IAIpE,IAHAsD,EAAOC,EAAOH,WAAWpD,IAGd,IAAMsD,EAAOJ,EAAS,OAAOG,IACxC,OAAOK,SAASH,EAAQN,IAE5B,OAAQF,GAGZ,IAAKR,EAAQ,UAAYA,EAAQ,QAAUA,EAAQ,QAAS,CAC1DA,EAAU,SAAgBrG,GACxB,IAAI6G,EAAKzI,UAAUqB,OAAS,EAAI,EAAIO,EAChCyH,EAAOvN,KACX,OAAOuN,aAAgBpB,IAEjBG,EAAaV,EAAM,WAAcS,EAAMmB,QAAQ3G,KAAK0G,KAxCjD,UAwC6D9B,EAAI8B,IACpE7B,EAAkB,IAAIU,EAAKK,EAASE,IAAMY,EAAMpB,GAAWM,EAASE,IAE5E,IAAK,IAMgBc,EANZzI,EAAO,EAAQ,IAAoB6G,EAAKO,GAAQ,6KAMvDsB,MAAM,KAAMC,EAAI,EAAQ3I,EAAKO,OAASoI,EAAGA,IACrCnC,EAAIY,EAAMqB,EAAMzI,EAAK2I,MAAQnC,EAAIW,EAASsB,IAC5CzB,EAAGG,EAASsB,EAAK1B,EAAKK,EAAMqB,IAGhCtB,EAAQjF,UAAYmF,EACpBA,EAAMuB,YAAczB,EACpB,EAAQ,GAAR,CAAuBZ,EAxDZ,SAwD4BY","file":"component---src-templates-blog-post-js-788c454dbed28c00f3b8.js","sourcesContent":["import React from \"react\"\nimport { Link, graphql } from \"gatsby\"\nimport { Disqus } from 'gatsby-plugin-disqus'\n\nimport Layout from \"../components/layout\"\nimport SEO from \"../components/seo\"\nimport { rhythm, scale } from \"../utils/typography\"\n\nclass BlogPostTemplate extends React.Component {\n render() {\n const post = this.props.data.markdownRemark\n const { title, siteUrl } = this.props.data.site.siteMetadata\n const { previous, next } = this.props.pageContext\n\n const disqusConfig = {\n url: `${siteUrl + this.props.location.pathname}`,\n identifier: post.id,\n title: post.frontmatter.title,\n }\n\n return (\n \n \n
\n
\n \n {post.frontmatter.title}\n \n \n {post.frontmatter.date}\n

\n
\n
\n \n
\n\n \n \n
\n )\n }\n}\n\nexport default BlogPostTemplate\n\nexport const pageQuery = graphql`\n query BlogPostBySlug($slug: String!) {\n site {\n siteMetadata {\n title\n author\n siteUrl\n }\n }\n markdownRemark(fields: { slug: { eq: $slug } }) {\n id\n excerpt(pruneLength: 160)\n html\n frontmatter {\n title\n date(formatString: \"YYYY-MM-DD\")\n description\n }\n }\n }\n`\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.insertScript = insertScript;\nexports.removeScript = removeScript;\nexports.debounce = debounce;\nexports.isReactElement = isReactElement;\nexports.shallowComparison = shallowComparison;\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nfunction insertScript(src, id, parent) {\n var script = window.document.createElement('script');\n script.async = true;\n script.src = src;\n script.id = id;\n parent.appendChild(script);\n return script;\n}\n\nfunction removeScript(id, parent) {\n var script = window.document.getElementById(id);\n\n if (script) {\n parent.removeChild(script);\n }\n}\n\nfunction debounce(func, wait, runOnFirstCall) {\n var timeout;\n return function () {\n var context = this;\n var args = arguments;\n\n var deferredExecution = function deferredExecution() {\n timeout = null;\n\n if (!runOnFirstCall) {\n func.apply(context, args);\n }\n };\n\n var callNow = runOnFirstCall && !timeout;\n window.clearTimeout(timeout);\n timeout = setTimeout(deferredExecution, wait);\n\n if (callNow) {\n func.apply(context, args);\n }\n };\n}\n\nfunction isReactElement(element) {\n if (_react.default.isValidElement(element)) {\n return true;\n } else if (Array.isArray(element)) {\n return element.some(function (value) {\n return _react.default.isValidElement(value);\n });\n }\n\n return false;\n}\n\nfunction shallowComparison(currentProps, nextProps) {\n var _ref;\n\n // Perform a comparison of all props, excluding React Elements, to prevent\n // unnecessary updates\n var propNames = new Set(Object.keys(currentProps).concat(Object.keys(nextProps)));\n\n var changes = (_ref = []).concat.apply(_ref, (0, _toConsumableArray2.default)(propNames)).filter(function (name) {\n if (typeof currentProps[name] === 'object') {\n if (shallowComparison(currentProps[name], nextProps[name])) {\n return true;\n }\n } else if (currentProps[name] !== nextProps[name] && !isReactElement(currentProps[name])) {\n return true;\n }\n });\n\n return changes.length !== 0;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _Disqus = _interopRequireDefault(require(\"./components/Disqus\"));\n\nexports.Disqus = _Disqus.default;\n\nvar _CommentCount = _interopRequireDefault(require(\"./components/CommentCount\"));\n\nexports.CommentCount = _CommentCount.default;\n\nvar _CommentEmbed = _interopRequireDefault(require(\"./components/CommentEmbed\"));\n\nexports.CommentEmbed = _CommentEmbed.default;\nvar _default = _Disqus.default;\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _utils = require(\"../utils\");\n\nvar _jsxFileName = \"/Users/brettstevenson/Desktop/Folder/gatsby-plugin-workspace/gatsby-plugin-disqus/src/components/Disqus.jsx\";\n\nvar Disqus = /*#__PURE__*/function (_React$Component) {\n (0, _inheritsLoose2.default)(Disqus, _React$Component);\n\n function Disqus(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.shortname = typeof GATSBY_DISQUS_SHORTNAME !== \"undefined\" && GATSBY_DISQUS_SHORTNAME !== '' ? GATSBY_DISQUS_SHORTNAME : '';\n _this.embedUrl = \"https://\" + _this.shortname + \".disqus.com/embed.js\";\n return _this;\n }\n\n var _proto = Disqus.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.loadInstance();\n };\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n if (this.props === nextProps) {\n return false;\n }\n\n return (0, _utils.shallowComparison)(this.props, nextProps);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n this.loadInstance();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cleanInstance();\n };\n\n _proto.getDisqusConfig = function getDisqusConfig(config) {\n return function () {\n this.page.identifier = config.identifier;\n this.page.url = config.url;\n this.page.title = config.title;\n this.page.remote_auth_s3 = config.remoteAuthS3;\n this.page.api_key = config.apiKey;\n this.language = config.language;\n };\n };\n\n _proto.loadInstance = function loadInstance() {\n if (typeof window !== 'undefined' && window.document) {\n window.disqus_config = this.getDisqusConfig(this.props.config);\n\n if (window.document.getElementById('dsq-embed-scr')) {\n this.reloadInstance();\n } else {\n (0, _utils.insertScript)(this.embedUrl, 'dsq-embed-scr', window.document.body);\n }\n }\n };\n\n _proto.reloadInstance = function reloadInstance() {\n if (window && window.DISQUS) {\n window.DISQUS.reset({\n reload: true\n });\n }\n };\n\n _proto.cleanInstance = function cleanInstance() {\n (0, _utils.removeScript)('dsq-embed-scr', window.document.body);\n\n try {\n delete window.DISQUS;\n } catch (error) {\n window.DISQUS = undefined;\n }\n\n var thread = window.document.getElementById('disqus_thread');\n\n if (thread) {\n while (thread.hasChildNodes()) {\n thread.removeChild(thread.firstChild);\n }\n } // Retrieve and remove the sidebar iframe\n\n\n var iframeQuery = window.document.querySelector('[id^=\"dsq-app\"]');\n\n if (iframeQuery) {\n var iframe = window.document.getElementById(window.document.querySelector('[id^=\"dsq-app\"]').id);\n iframe.parentNode.removeChild(iframe);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n config = _this$props.config,\n props = (0, _objectWithoutPropertiesLoose2.default)(_this$props, [\"config\"]);\n return /*#__PURE__*/_react.default.createElement(\"div\", (0, _extends2.default)({\n id: \"disqus_thread\"\n }, props, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 86,\n columnNumber: 7\n }\n }));\n };\n\n return Disqus;\n}(_react.default.Component);\n\nexports.default = Disqus;\nDisqus.propTypes = {\n config: _propTypes.default.shape({\n /*\n * Tells the Disqus service how to identify the current page. \n * When the Disqus embed is loaded, the identifier is used to look up \n * the correct thread. \n */\n identifier: _propTypes.default.string,\n\n /*\n * Tells the Disqus service the title of the current page.\n * This is used when creating the thread on Disqus.\n */\n title: _propTypes.default.string,\n\n /*\n * Tells the Disqus service the URL of the current page.\n * This URL is used when a thread is created so that Disqus knows which\n * page a thread belongs to.\n * (If undefined, Disqus will use the global.location.href)\n */\n url: _propTypes.default.string,\n\n /*\n * Tells the Disqus service to override the default site language for the\n * current page.\n * This allows for dynamically loading the Disqus embed in different \n * languages on a per-page basis.\n * (If undefined, Disqus will use the default site language)\n */\n language: _propTypes.default.string,\n\n /*\n The generated payload used to pass Single Sign-On (SSO) user data\n */\n remoteAuthS3: _propTypes.default.string,\n\n /*\n * This is the public API key for your Single Sign-On (SSO) integration\n */\n apiKey: _propTypes.default.string\n })\n};","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n }\n}\n\nmodule.exports = _arrayWithoutHoles;","function _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nmodule.exports = _nonIterableSpread;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutPropertiesLoose\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _utils = require(\"../utils\");\n\nvar _jsxFileName = \"/Users/brettstevenson/Desktop/Folder/gatsby-plugin-workspace/gatsby-plugin-disqus/src/components/CommentCount.jsx\";\nvar queueResetCount = (0, _utils.debounce)(function () {\n if (window.DISQUSWIDGETS) {\n window.DISQUSWIDGETS.getCount({\n reset: true\n });\n }\n}, 300, false);\n\nvar CommentCount = /*#__PURE__*/function (_React$Component) {\n (0, _inheritsLoose2.default)(CommentCount, _React$Component);\n\n function CommentCount(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.shortname = typeof GATSBY_DISQUS_SHORTNAME !== \"undefined\" && GATSBY_DISQUS_SHORTNAME !== '' ? GATSBY_DISQUS_SHORTNAME : '';\n return _this;\n }\n\n var _proto = CommentCount.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.loadInstance();\n };\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n if (this.props === nextProps) return false;\n return (0, _utils.shallowComparison)(this.props, nextProps);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n this.loadInstance();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cleanInstance();\n };\n\n _proto.loadInstance = function loadInstance() {\n if (window.document.getElementById('dsq-count-scr')) {\n queueResetCount();\n } else {\n (0, _utils.insertScript)(\"https://\" + this.shortname + \".disqus.com/count.js\", 'dsq-count-scr', window.document.body);\n }\n };\n\n _proto.cleanInstance = function cleanInstance() {\n (0, _utils.removeScript)('dsq-count-scr', window.document.body);\n window.DISQUSWIDGETS = undefined;\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n config = _this$props.config,\n placeholder = _this$props.placeholder,\n props = (0, _objectWithoutPropertiesLoose2.default)(_this$props, [\"config\", \"placeholder\"]);\n return /*#__PURE__*/_react.default.createElement(\"span\", (0, _extends2.default)({\n className: \"disqus-comment-count\",\n \"data-disqus-identifier\": config.identifier,\n \"data-disqus-url\": config.url\n }, props, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 53,\n columnNumber: 7\n }\n }), placeholder);\n };\n\n return CommentCount;\n}(_react.default.Component);\n\nexports.default = CommentCount;\nCommentCount.defaultProps = {\n placeholder: '...'\n};\nCommentCount.propTypes = {\n config: _propTypes.default.shape({\n /*\n * Tells the Disqus service how to identify the current page. \n * When the Disqus embed is loaded, the identifier is used to look up \n * the correct thread. \n */\n identifier: _propTypes.default.string,\n\n /*\n * Tells the Disqus service the title of the current page.\n * This is used when creating the thread on Disqus.\n */\n title: _propTypes.default.string,\n\n /*\n * Tells the Disqus service the URL of the current page.\n * This URL is used when a thread is created so that Disqus knows which\n * page a thread belongs to.\n * (If undefined, Disqus will use the global.location.href)\n */\n url: _propTypes.default.string\n }),\n\n /*\n * This is the text that will be used as a placeholder prior to \n * loading the response.\n */\n placeholder: _propTypes.default.string\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _jsxFileName = \"/Users/brettstevenson/Desktop/Folder/gatsby-plugin-workspace/gatsby-plugin-disqus/src/components/CommentEmbed.jsx\";\n\nvar CommentEmbed = /*#__PURE__*/function (_React$Component) {\n (0, _inheritsLoose2.default)(CommentEmbed, _React$Component);\n\n function CommentEmbed() {\n return _React$Component.apply(this, arguments) || this;\n }\n\n var _proto = CommentEmbed.prototype;\n\n _proto.getSrc = function getSrc() {\n var RADIX_BASE = 36;\n var post = Number(this.props.commentId).toString(RADIX_BASE);\n var parentParam = this.props.showParentComment ? '1' : '0';\n var mediaParam = this.props.showMedia ? '1' : '0';\n return \"https://embed.disqus.com/p/\" + post + \"?p=\" + parentParam + \"&m=\" + mediaParam;\n };\n\n _proto.render = function render() {\n return /*#__PURE__*/_react.default.createElement(\"iframe\", {\n src: this.getSrc(),\n width: this.props.width,\n height: this.props.height,\n seamless: \"seamless\",\n scrolling: \"no\",\n frameBorder: \"0\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 13\n }\n });\n };\n\n return CommentEmbed;\n}(_react.default.Component);\n\nexports.default = CommentEmbed;\nCommentEmbed.defaultProps = {\n width: 420,\n height: 320,\n showMedia: true,\n showParentComment: true\n};\nCommentEmbed.propTypes = {\n /*\n * This is used to determine the comment that gets embeded.\n * The ID can be found in the Disqus moderation panel or as a `data-post-id`\n * attribute on the HTML element.\n */\n commentId: _propTypes.default.string.isRequired,\n\n /*\n * Determines the width of the embedded comment container.\n */\n width: _propTypes.default.number,\n\n /*\n * Determines the height of the embedded comment container.\n */\n height: _propTypes.default.number,\n\n /*\n * Determines whether the embedded comment should include or omit media from \n * within the original comment.\n */\n showMedia: _propTypes.default.bool,\n\n /*\n * Determines whether the parent comment should be displayed for nested comments.\n */\n showParentComment: _propTypes.default.bool\n};","'use strict';\nvar global = require('./_global');\nvar has = require('./_has');\nvar cof = require('./_cof');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar toPrimitive = require('./_to-primitive');\nvar fails = require('./_fails');\nvar gOPN = require('./_object-gopn').f;\nvar gOPD = require('./_object-gopd').f;\nvar dP = require('./_object-dp').f;\nvar $trim = require('./_string-trim').trim;\nvar NUMBER = 'Number';\nvar $Number = global[NUMBER];\nvar Base = $Number;\nvar proto = $Number.prototype;\n// Opera ~12 has broken Object#toString\nvar BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER;\nvar TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n if (typeof it == 'string' && it.length > 2) {\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0);\n var third, radix, maxCode;\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default: return +it;\n }\n for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {\n $Number = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for (var keys = require('./_descriptors') ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(Base, key = keys[j]) && !has($Number, key)) {\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n require('./_redefine')(global, NUMBER, $Number);\n}\n"],"sourceRoot":""}