├── .gitignore ├── LICENSE ├── README.md ├── app ├── images │ ├── logo.jpg │ ├── screenshot.png │ ├── spinner.gif │ └── up_arrow.png ├── index.html ├── js │ ├── app.jsx │ ├── components │ │ ├── errorPage.jsx │ │ ├── feeds │ │ │ ├── aboutContent.jsx │ │ │ ├── jobsContent.jsx │ │ │ ├── newContent.jsx │ │ │ └── showContent.jsx │ │ ├── menu.jsx │ │ ├── spinner.jsx │ │ └── user │ │ │ └── profile.jsx │ ├── lib │ │ ├── 1. react.js │ │ ├── 2. JSXTransformer.js │ │ ├── 3. browser.min.js │ │ ├── 4. browser-polyfill.min.js │ │ └── 6. jquery.min.js │ └── routes.jsx └── scss │ ├── layout.scss │ ├── master.scss │ ├── mixins.scss │ ├── pages │ └── page-landing.scss │ └── reset.scss ├── gulpfile.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | .DS_Store 6 | build 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | 13 | # Directory for instrumented libs generated by jscoverage/JSCover 14 | lib-cov 15 | 16 | # Coverage directory used by tools like istanbul 17 | coverage 18 | 19 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 20 | .grunt 21 | 22 | # node-waf configuration 23 | .lock-wscript 24 | 25 | # Compiled binary addons (http://nodejs.org/api/addons.html) 26 | build/Release 27 | 28 | # Dependency directory 29 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git 30 | node_modules 31 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Gokulakrishnan Kalaikovan 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React hacker news 2 | 3 | Hacker News site using React.js with minimalistic material design. 4 | 5 | *Framework and Libraries* 6 | 7 | - React.js with ES6 8 | - React-Router for routing 9 | - jQuery for ajax 10 | 11 | *Build tools* 12 | 13 | - Gulp with babel transpiler to convert ES6 to ES5 Javascript 14 | - Browserify to use node module in the browser (check my gulpFile) 15 | 16 | ### Work in progress (reply threads) 17 | 18 | ## [Demo](http://gokulkrishh.github.io/demo/hacker-news/) 19 | 20 | ![React-hacker-news](https://github.com/gokulkrishh/React-hacker-news/raw/master/app/images/screenshot.png "React hacker news") 21 | 22 | ## Installation 23 | 24 | ``` 25 | cd into 26 | ``` 27 | 28 | ``` 29 | npm install 30 | ``` 31 | 32 | ### Finally 33 | 34 | ``` 35 | gulp 36 | ``` 37 | 38 | 39 | -------------------------------------------------------------------------------- /app/images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gokulkrishh/React-hacker-news/e7ba99b8612e5a36dc146e218024333d6b3c21c9/app/images/logo.jpg -------------------------------------------------------------------------------- /app/images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gokulkrishh/React-hacker-news/e7ba99b8612e5a36dc146e218024333d6b3c21c9/app/images/screenshot.png -------------------------------------------------------------------------------- /app/images/spinner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gokulkrishh/React-hacker-news/e7ba99b8612e5a36dc146e218024333d6b3c21c9/app/images/spinner.gif -------------------------------------------------------------------------------- /app/images/up_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gokulkrishh/React-hacker-news/e7ba99b8612e5a36dc146e218024333d6b3c21c9/app/images/up_arrow.png -------------------------------------------------------------------------------- /app/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Hacker News | ReactJS 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/js/app.jsx: -------------------------------------------------------------------------------- 1 | 2 | 'use strict'; 3 | 4 | import React from 'react' 5 | import Menu from './components/menu.jsx' 6 | import NewContent from './components/feeds/newContent.jsx' 7 | import ShowContent from './components/feeds/showContent.jsx' 8 | import JobsContent from './components/feeds/jobsContent.jsx' 9 | import AboutContent from './components/feeds/aboutContent.jsx' 10 | import Profile from './components/user/profile.jsx' 11 | import PageNotFound from './components/errorPage.jsx' 12 | import { Router, Route, Link, IndexRoute, Redirect } from 'react-router' 13 | 14 | //Target element to render the components 15 | let target = document.getElementById('main-container'); 16 | 17 | let Header = React.createClass({ 18 | render() { 19 | return ( 20 |
21 | ); 22 | } 23 | }); 24 | 25 | let App = React.createClass({ 26 | goToTop() { 27 | $(document).scrollTop(0); 28 | }, 29 | 30 | render() { 31 | return ( 32 |
33 |
34 | 35 |
36 | 37 | {this.props.children} 38 |
39 |
40 | ) 41 | } 42 | }); 43 | 44 | // Make a new component to render inside of Inbox 45 | const Message = React.createClass({ 46 | render() { 47 | return

Message

48 | } 49 | }); 50 | 51 | let redirectToChild = (location, replaceState) => { 52 | replaceState(null, '/new'); 53 | } 54 | 55 | //Render the components 56 | React.render( 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | , target); -------------------------------------------------------------------------------- /app/js/components/errorPage.jsx: -------------------------------------------------------------------------------- 1 | 2 | 'use strict'; 3 | 4 | import React from 'react'; 5 | 6 | let PageNotFound = React.createClass({ 7 | render() { 8 | return ( 9 |
Page not found
10 | ) 11 | } 12 | }); 13 | 14 | module.exports = PageNotFound; -------------------------------------------------------------------------------- /app/js/components/feeds/aboutContent.jsx: -------------------------------------------------------------------------------- 1 | 2 | 'use strict'; 3 | 4 | const AboutContent = React.createClass({ 5 | render() { 6 | return ( 7 |
8 |
9 |

About

10 |

The HackerNews site is created using API provided by HackerNews. 11 |

12 | 13 |

Contributor

14 |

Gokul

15 | 16 |

Source

17 |

Github

18 | 19 |

20 | 21 | 22 |

23 |
24 |
25 | ); 26 | } 27 | }); 28 | 29 | module.exports = AboutContent; -------------------------------------------------------------------------------- /app/js/components/feeds/jobsContent.jsx: -------------------------------------------------------------------------------- 1 | 2 | 'use strict'; 3 | 4 | import React from 'react'; 5 | import Spinner from '../spinner.jsx'; 6 | import { Link } from 'react-router' 7 | 8 | const pagination = 10; 9 | 10 | const JobsContent = React.createClass({ 11 | getInitialState() { 12 | return { 13 | newStories: [], 14 | isLoading: true, 15 | isLoadingMore: false 16 | } 17 | }, 18 | 19 | showLoader() { 20 | this.setState({ 21 | isLoading: true 22 | }); 23 | }, 24 | 25 | hideLoader() { 26 | this.setState({ 27 | isLoading: false 28 | }); 29 | }, 30 | 31 | componentDidMount() { 32 | this.getContentJson(0, pagination, false); 33 | }, 34 | 35 | getContentJson(startIndex, pagination, isLoadingMore) { 36 | 37 | let sourceUrl = 'https://hacker-news.firebaseio.com/v0/jobstories.json'; 38 | 39 | $.get(sourceUrl, function (response) { 40 | 41 | if (response && response.length == 0) { 42 | this.hideLoader(); 43 | return; 44 | } 45 | 46 | for(let i = startIndex; i <= pagination; i++) { 47 | if (i == pagination) { 48 | 49 | if(this.isMounted()) this.hideLoader(); 50 | 51 | if (this.isMounted() && isLoadingMore) this.setState({ isLoadingMore: false }); 52 | 53 | this.loadMore(pagination); 54 | return false; 55 | } 56 | 57 | this.getContentData(response[i], pagination); 58 | } 59 | 60 | }.bind(this)); 61 | }, 62 | 63 | getContentData(id) { 64 | 65 | let contentUrl = 'https://hacker-news.firebaseio.com/v0/item/' + id + '.json'; 66 | 67 | $.get(contentUrl, function (response) { 68 | 69 | if (response == null) { 70 | if (this.isMounted()) { 71 | this.hideLoader(); 72 | } 73 | return; 74 | } 75 | 76 | let domain = response.url ? response.url.split(':')[1].split('//')[1].split('/')[0] : ''; 77 | 78 | response.domain = domain; 79 | 80 | this.setState({newStories : this.state.newStories.concat(response)}); 81 | 82 | }.bind(this)); 83 | }, 84 | 85 | convertTime(time) { 86 | let d = new Date(); 87 | let currentTime = Math.floor(d.getTime() / 1000); 88 | let seconds = currentTime - time; 89 | 90 | // more that two days 91 | if (seconds > 2*24*3600) { 92 | return 'a few days ago'; 93 | } 94 | 95 | // a day 96 | if (seconds > 24*3600) { 97 | return 'yesterday'; 98 | } 99 | 100 | if (seconds > 3600) { 101 | return 'a few hours ago'; 102 | } 103 | 104 | if (seconds > 1800) { 105 | return 'Half an hour ago'; 106 | } 107 | 108 | if (seconds > 60) { 109 | return Math.floor(seconds/60) + ' minutes ago'; 110 | } 111 | }, 112 | 113 | loadMore(pagination) { 114 | 115 | $(window).unbind('scroll'); 116 | 117 | $(window).bind('scroll', function () { 118 | 119 | if ($(window).scrollTop() == $(document).height() - $(window).height()) { 120 | let previousCount = pagination + 1; 121 | pagination = pagination + 11; 122 | 123 | this.setState({isLoadingMore : true}); //To show loader at the bottom 124 | 125 | this.getContentJson(previousCount, pagination, true); 126 | } 127 | }.bind(this)); 128 | }, 129 | 130 | changeMenu() { 131 | $('.menu li').removeClass('selected'); 132 | }, 133 | 134 | render() { 135 | var newStories = this.state.newStories.map((response, index) => { 136 | 137 | let searchQuery = 'https://www.google.co.in/search?q=' + response.title; 138 | 139 | return ( 140 |
141 |
142 | {response.title} 143 | 144 |
({response.domain})
145 | 146 |
147 | {response.score} {(response.score > 1) ? ' points' : ' point'} 148 | by 149 | {response.by} 150 | 151 | | {this.convertTime(response.time)} 152 |
153 |
154 |
155 | ) 156 | }, this); 157 | 158 | return ( 159 |
160 |
161 | 162 |
163 | 164 | {newStories} 165 | {this.props.children} 166 |
167 | 168 |
169 |
170 | ) 171 | } 172 | }); 173 | 174 | module.exports = JobsContent; -------------------------------------------------------------------------------- /app/js/components/feeds/newContent.jsx: -------------------------------------------------------------------------------- 1 | 2 | 'use strict'; 3 | 4 | import React from 'react'; 5 | import Spinner from '../spinner.jsx'; 6 | import { Link } from 'react-router' 7 | 8 | const pagination = 10; 9 | 10 | const NewContent = React.createClass({ 11 | 12 | getInitialState() { 13 | return { 14 | newStories: [], 15 | isLoading: true, 16 | isLoadingMore: false 17 | } 18 | }, 19 | 20 | showLoader() { 21 | this.setState({ 22 | isLoading: true 23 | }); 24 | }, 25 | 26 | hideLoader() { 27 | this.setState({ 28 | isLoading: false 29 | }); 30 | }, 31 | 32 | componentDidMount() { 33 | this.getContentJson(0, pagination, false); 34 | }, 35 | 36 | getContentJson(startIndex, pagination, isLoadingMore) { 37 | 38 | let sourceUrl = 'https://hacker-news.firebaseio.com/v0/newstories.json'; 39 | 40 | $.get(sourceUrl, function (response) { 41 | 42 | if (response && response.length == 0) { 43 | this.hideLoader(); 44 | return; 45 | } 46 | 47 | for(let i = startIndex; i <= pagination; i++) { 48 | if (i == pagination) { 49 | 50 | if(this.isMounted()) this.hideLoader(); 51 | 52 | if (this.isMounted() && isLoadingMore) this.setState({ isLoadingMore: false }); 53 | 54 | this.loadMore(pagination); 55 | return false; 56 | } 57 | 58 | this.getContentData(response[i], pagination); 59 | } 60 | 61 | }.bind(this)); 62 | }, 63 | 64 | getContentData(id) { 65 | 66 | let contentUrl = 'https://hacker-news.firebaseio.com/v0/item/' + id + '.json'; 67 | 68 | $.get(contentUrl, function (response) { 69 | 70 | if (response.length == 0) { 71 | if (this.isMounted()) { 72 | this.hideLoader(); 73 | } 74 | return; 75 | } 76 | 77 | let domain = response.url ? response.url.split(':')[1].split('//')[1].split('/')[0] : ''; 78 | 79 | response.domain = domain; 80 | 81 | this.setState({newStories : this.state.newStories.concat(response)}); 82 | 83 | }.bind(this)); 84 | }, 85 | 86 | convertTime(time) { 87 | let d = new Date(); 88 | let currentTime = Math.floor(d.getTime() / 1000); 89 | let seconds = currentTime - time; 90 | 91 | // more that two days 92 | if (seconds > 2*24*3600) { 93 | return 'a few days ago'; 94 | } 95 | 96 | // a day 97 | if (seconds > 24*3600) { 98 | return 'yesterday'; 99 | } 100 | 101 | if (seconds > 3600) { 102 | return 'a few hours ago'; 103 | } 104 | 105 | if (seconds > 1800) { 106 | return 'Half an hour ago'; 107 | } 108 | 109 | if (seconds > 60) { 110 | return Math.floor(seconds/60) + ' minutes ago'; 111 | } 112 | }, 113 | 114 | loadMore(pagination) { 115 | 116 | $(window).unbind('scroll'); 117 | 118 | $(window).bind('scroll', function () { 119 | 120 | if ($(window).scrollTop() == $(document).height() - $(window).height()) { 121 | let previousCount = pagination + 1; 122 | pagination = pagination + 11; 123 | 124 | this.setState({isLoadingMore : true}); //To show loader at the bottom 125 | 126 | this.getContentJson(previousCount, pagination, true); 127 | } 128 | }.bind(this)); 129 | }, 130 | 131 | changeMenu() { 132 | $('.menu li').removeClass('selected'); 133 | }, 134 | 135 | render() { 136 | var newStories = this.state.newStories.map((response, index) => { 137 | 138 | let searchQuery = 'https://www.google.co.in/search?q=' + response.title; 139 | 140 | return ( 141 |
142 |
143 | {response.title} 144 | 145 |
({response.domain})
146 | 147 |
148 | {response.score} {(response.score > 1) ? ' points' : ' point'} 149 | by 150 | {response.by} 151 | 152 | | {this.convertTime(response.time)} 153 | | web 154 |
155 |
156 |
157 | ) 158 | }, this); 159 | 160 | return ( 161 |
162 |
163 | 164 |
165 | 166 | {newStories} 167 | {this.props.children} 168 |
169 | 170 |
171 |
172 | ) 173 | } 174 | }); 175 | 176 | module.exports = NewContent; 177 | 178 | -------------------------------------------------------------------------------- /app/js/components/feeds/showContent.jsx: -------------------------------------------------------------------------------- 1 | 2 | 'use strict'; 3 | 4 | import React from 'react'; 5 | import Spinner from '../spinner.jsx'; 6 | import { Link } from 'react-router' 7 | 8 | const pagination = 10; 9 | 10 | const ShowContent = React.createClass({ 11 | getInitialState() { 12 | return { 13 | newStories: [], 14 | isLoading: true, 15 | isLoadingMore: false 16 | } 17 | }, 18 | 19 | showLoader() { 20 | this.setState({ 21 | isLoading: true 22 | }); 23 | }, 24 | 25 | hideLoader() { 26 | this.setState({ 27 | isLoading: false 28 | }); 29 | }, 30 | 31 | componentDidMount() { 32 | this.getContentJson(0, pagination, false); 33 | }, 34 | 35 | getContentJson(startIndex, pagination, isLoadingMore) { 36 | 37 | let sourceUrl = 'https://hacker-news.firebaseio.com/v0/showstories.json'; 38 | 39 | $.get(sourceUrl, function (response) { 40 | 41 | if (response && response.length == 0) { 42 | this.hideLoader(); 43 | return; 44 | } 45 | 46 | for(let i = startIndex; i <= pagination; i++) { 47 | if (i == pagination) { 48 | 49 | if(this.isMounted()) this.hideLoader(); 50 | 51 | if (this.isMounted() && isLoadingMore) this.setState({ isLoadingMore: false }); 52 | 53 | this.loadMore(pagination); 54 | return false; 55 | } 56 | 57 | this.getContentData(response[i], pagination); 58 | } 59 | 60 | }.bind(this)); 61 | }, 62 | 63 | getContentData(id) { 64 | 65 | let contentUrl = 'https://hacker-news.firebaseio.com/v0/item/' + id + '.json'; 66 | 67 | $.get(contentUrl, function (response) { 68 | 69 | if (response.length == 0) { 70 | if (this.isMounted()) { 71 | this.hideLoader(); 72 | } 73 | return; 74 | } 75 | 76 | let domain = response.url ? response.url.split(':')[1].split('//')[1].split('/')[0] : ''; 77 | 78 | response.domain = domain; 79 | 80 | this.setState({newStories : this.state.newStories.concat(response)}); 81 | 82 | }.bind(this)); 83 | }, 84 | 85 | convertTime(time) { 86 | let d = new Date(); 87 | let currentTime = Math.floor(d.getTime() / 1000); 88 | let seconds = currentTime - time; 89 | 90 | // more that two days 91 | if (seconds > 2*24*3600) { 92 | return 'a few days ago'; 93 | } 94 | 95 | // a day 96 | if (seconds > 24*3600) { 97 | return 'yesterday'; 98 | } 99 | 100 | if (seconds > 3600) { 101 | return 'a few hours ago'; 102 | } 103 | 104 | if (seconds > 1800) { 105 | return 'Half an hour ago'; 106 | } 107 | 108 | if (seconds > 60) { 109 | return Math.floor(seconds/60) + ' minutes ago'; 110 | } 111 | }, 112 | 113 | loadMore(pagination) { 114 | 115 | $(window).unbind('scroll'); 116 | 117 | $(window).bind('scroll', function () { 118 | 119 | if ($(window).scrollTop() == $(document).height() - $(window).height()) { 120 | let previousCount = pagination + 1; 121 | pagination = pagination + 11; 122 | 123 | this.setState({isLoadingMore : true}); //To show loader at the bottom 124 | 125 | this.getContentJson(previousCount, pagination, true); 126 | } 127 | }.bind(this)); 128 | }, 129 | 130 | changeMenu() { 131 | $('.menu li').removeClass('selected'); 132 | }, 133 | 134 | render() { 135 | var newStories = this.state.newStories.map((response, index) => { 136 | 137 | let searchQuery = 'https://www.google.co.in/search?q=' + response.title; 138 | 139 | return ( 140 |
141 |
142 | {response.title} 143 | 144 |
({response.domain})
145 | 146 |
147 | {response.score} {(response.score > 1) ? ' points' : ' point'} 148 | by 149 | {response.by} 150 | 151 | | {this.convertTime(response.time)} 152 |
153 |
154 |
155 | ) 156 | }, this); 157 | 158 | return ( 159 |
160 |
161 | 162 |
163 | 164 | {newStories} 165 | {this.props.children} 166 |
167 | 168 |
169 |
170 | ) 171 | } 172 | }); 173 | 174 | module.exports = ShowContent; -------------------------------------------------------------------------------- /app/js/components/menu.jsx: -------------------------------------------------------------------------------- 1 | 2 | 'use strict'; 3 | 4 | import React from 'react' 5 | import NewContent from './feeds/newContent.jsx' 6 | import ShowContent from './feeds/showContent.jsx' 7 | import JobsContent from './feeds/jobsContent.jsx' 8 | import { Link } from 'react-router' 9 | 10 | let Menu = React.createClass({ 11 | getInitialState() { 12 | return { 13 | items: [{ 14 | name: 'new', 15 | id: 1 16 | }, 17 | { 18 | name: 'show', 19 | id: 2 20 | }, 21 | { 22 | name: 'jobs', 23 | id: 3 24 | }, 25 | { 26 | name: 'about', 27 | id: 4 28 | }] 29 | } 30 | }, 31 | 32 | changeMenu(index) { 33 | let items = this.state.items; 34 | 35 | items.map(function (item) { 36 | item.selected = false; 37 | }); 38 | 39 | items[index].selected = true; 40 | 41 | this.setState({ 42 | items : items 43 | }); 44 | }, 45 | 46 | menuChange() { 47 | console.log('cem') 48 | }, 49 | 50 | render() { 51 | return ( 52 |
53 | 64 |
65 | ); 66 | } 67 | }); 68 | 69 | module.exports = Menu; -------------------------------------------------------------------------------- /app/js/components/spinner.jsx: -------------------------------------------------------------------------------- 1 | 2 | 'use strict'; 3 | 4 | import React from 'react'; 5 | 6 | const Spinner = React.createClass({ 7 | render() { 8 | return ( 9 | 10 | 11 | 12 | ); 13 | } 14 | }); 15 | 16 | module.exports = Spinner; -------------------------------------------------------------------------------- /app/js/components/user/profile.jsx: -------------------------------------------------------------------------------- 1 | 2 | 'use strict'; 3 | 4 | import React from 'react'; 5 | import Spinner from '../spinner.jsx'; 6 | 7 | let Profile = React.createClass({ 8 | getInitialState() { 9 | return { 10 | user: "", 11 | about: "", 12 | created: "", 13 | karma: "", 14 | isLoading: true 15 | } 16 | }, 17 | 18 | hideLoading() { 19 | this.setState({ isLoading: false }); 20 | }, 21 | 22 | showLoading() { 23 | this.setState({ isLoading: true }); 24 | }, 25 | 26 | componentDidMount() { 27 | let id = this.props.params.id; 28 | 29 | let source = 'https://hacker-news.firebaseio.com/v0/user/' + id + '.json'; 30 | 31 | $.get(source, function (response) { 32 | 33 | this.hideLoading(); 34 | 35 | if (response) { 36 | this.setState({ 37 | user: response.id, 38 | about: response.about, 39 | created: response.created, 40 | karma: response.karma 41 | }); 42 | } 43 | 44 | }.bind(this)); 45 | }, 46 | 47 | render() { 48 | return ( 49 |
50 |
51 | 52 |
53 | 54 |
55 |

User : { this.state.user }

56 |

About : { this.state.about }

57 |

Created : { this.state.created }

58 |

Karma : { this.state.karma ? this.state.karma : 0 }

59 | {/*

Submitted :

*/} 60 |
61 |
62 | ) 63 | } 64 | }); 65 | 66 | 67 | module.exports = Profile; -------------------------------------------------------------------------------- /app/js/lib/4. browser-polyfill.min.js: -------------------------------------------------------------------------------- 1 | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o1){for(var i=1;iindex){value=O[index++];if(value!=value)return true}else for(;length>index;index++)if(IS_INCLUDES||index in O){if(O[index]===el)return IS_INCLUDES||index}return!IS_INCLUDES&&-1}}},{"./$.to-index":69,"./$.to-iobject":71,"./$.to-length":72}],6:[function(require,module,exports){var ctx=require("./$.ctx"),IObject=require("./$.iobject"),toObject=require("./$.to-object"),toLength=require("./$.to-length");module.exports=function(TYPE){var IS_MAP=TYPE==1,IS_FILTER=TYPE==2,IS_SOME=TYPE==3,IS_EVERY=TYPE==4,IS_FIND_INDEX=TYPE==6,NO_HOLES=TYPE==5||IS_FIND_INDEX;return function($this,callbackfn,that){var O=toObject($this),self=IObject(O),f=ctx(callbackfn,that,3),length=toLength(self.length),index=0,result=IS_MAP?Array(length):IS_FILTER?[]:undefined,val,res;for(;length>index;index++)if(NO_HOLES||index in self){val=self[index];res=f(val,index,O);if(TYPE){if(IS_MAP)result[index]=res;else if(res)switch(TYPE){case 3:return true;case 5:return val;case 6:return index;case 2:result.push(val)}else if(IS_EVERY)return false}}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:result}}},{"./$.ctx":15,"./$.iobject":31,"./$.to-length":72,"./$.to-object":73}],7:[function(require,module,exports){var toObject=require("./$.to-object"),IObject=require("./$.iobject"),enumKeys=require("./$.enum-keys");module.exports=require("./$.fails")(function(){return Symbol()in Object.assign({})})?function assign(target,source){var T=toObject(target),l=arguments.length,i=1;while(l>i){var S=IObject(arguments[i++]),keys=enumKeys(S),length=keys.length,j=0,key;while(length>j)T[key=keys[j++]]=S[key]}return T}:Object.assign},{"./$.enum-keys":19,"./$.fails":21,"./$.iobject":31,"./$.to-object":73}],8:[function(require,module,exports){var cof=require("./$.cof"),TAG=require("./$.wks")("toStringTag"),ARG=cof(function(){return arguments}())=="Arguments";module.exports=function(it){var O,T,B;return it===undefined?"Undefined":it===null?"Null":typeof(T=(O=Object(it))[TAG])=="string"?T:ARG?cof(O):(B=cof(O))=="Object"&&typeof O.callee=="function"?"Arguments":B}},{"./$.cof":9,"./$.wks":76}],9:[function(require,module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},{}],10:[function(require,module,exports){"use strict";var $=require("./$"),hide=require("./$.hide"),ctx=require("./$.ctx"),species=require("./$.species"),strictNew=require("./$.strict-new"),defined=require("./$.defined"),forOf=require("./$.for-of"),step=require("./$.iter-step"),ID=require("./$.uid")("id"),$has=require("./$.has"),isObject=require("./$.is-object"),isExtensible=Object.isExtensible||isObject,SUPPORT_DESC=require("./$.support-desc"),SIZE=SUPPORT_DESC?"_s":"size",id=0;var fastKey=function(it,create){if(!isObject(it))return typeof it=="symbol"?it:(typeof it=="string"?"S":"P")+it;if(!$has(it,ID)){if(!isExtensible(it))return"F";if(!create)return"E";hide(it,ID,++id)}return"O"+it[ID]};var getEntry=function(that,key){var index=fastKey(key),entry;if(index!=="F")return that._i[index];for(entry=that._f;entry;entry=entry.n){if(entry.k==key)return entry}};module.exports={getConstructor:function(wrapper,NAME,IS_MAP,ADDER){var C=wrapper(function(that,iterable){strictNew(that,C,NAME);that._i=$.create(null);that._f=undefined;that._l=undefined;that[SIZE]=0;if(iterable!=undefined)forOf(iterable,IS_MAP,that[ADDER],that)});require("./$.mix")(C.prototype,{clear:function clear(){for(var that=this,data=that._i,entry=that._f;entry;entry=entry.n){entry.r=true;if(entry.p)entry.p=entry.p.n=undefined;delete data[entry.i]}that._f=that._l=undefined;that[SIZE]=0},"delete":function(key){var that=this,entry=getEntry(that,key);if(entry){var next=entry.n,prev=entry.p;delete that._i[entry.i];entry.r=true;if(prev)prev.n=next;if(next)next.p=prev;if(that._f==entry)that._f=next;if(that._l==entry)that._l=prev;that[SIZE]--}return!!entry},forEach:function forEach(callbackfn){var f=ctx(callbackfn,arguments[1],3),entry;while(entry=entry?entry.n:this._f){f(entry.v,entry.k,this);while(entry&&entry.r)entry=entry.p}},has:function has(key){return!!getEntry(this,key)}});if(SUPPORT_DESC)$.setDesc(C.prototype,"size",{get:function(){return defined(this[SIZE])}});return C},def:function(that,key,value){var entry=getEntry(that,key),prev,index;if(entry){entry.v=value}else{that._l=entry={i:index=fastKey(key,true),k:key,v:value,p:prev=that._l,n:undefined,r:false};if(!that._f)that._f=entry;if(prev)prev.n=entry;that[SIZE]++;if(index!=="F")that._i[index]=entry}return that},getEntry:getEntry,setStrong:function(C,NAME,IS_MAP){require("./$.iter-define")(C,NAME,function(iterated,kind){this._t=iterated;this._k=kind;this._l=undefined},function(){var that=this,kind=that._k,entry=that._l;while(entry&&entry.r)entry=entry.p;if(!that._t||!(that._l=entry=entry?entry.n:that._t._f)){that._t=undefined;return step(1)}if(kind=="keys")return step(0,entry.k);if(kind=="values")return step(0,entry.v);return step(0,[entry.k,entry.v])},IS_MAP?"entries":"values",!IS_MAP,true);species(C);species(require("./$.core")[NAME])}}},{"./$":41,"./$.core":14,"./$.ctx":15,"./$.defined":17,"./$.for-of":24,"./$.has":27,"./$.hide":28,"./$.is-object":34,"./$.iter-define":37,"./$.iter-step":39,"./$.mix":46,"./$.species":59,"./$.strict-new":60,"./$.support-desc":66,"./$.uid":74}],11:[function(require,module,exports){var forOf=require("./$.for-of"),classof=require("./$.classof");module.exports=function(NAME){return function toJSON(){if(classof(this)!=NAME)throw TypeError(NAME+"#toJSON isn't generic");var arr=[];forOf(this,false,arr.push,arr);return arr}}},{"./$.classof":8,"./$.for-of":24}],12:[function(require,module,exports){"use strict";var hide=require("./$.hide"),anObject=require("./$.an-object"),strictNew=require("./$.strict-new"),forOf=require("./$.for-of"),method=require("./$.array-methods"),WEAK=require("./$.uid")("weak"),isObject=require("./$.is-object"),$has=require("./$.has"),isExtensible=Object.isExtensible||isObject,find=method(5),findIndex=method(6),id=0;var frozenStore=function(that){return that._l||(that._l=new FrozenStore)};var FrozenStore=function(){this.a=[]};var findFrozen=function(store,key){return find(store.a,function(it){return it[0]===key})};FrozenStore.prototype={get:function(key){var entry=findFrozen(this,key);if(entry)return entry[1]},has:function(key){return!!findFrozen(this,key)},set:function(key,value){var entry=findFrozen(this,key);if(entry)entry[1]=value;else this.a.push([key,value])},"delete":function(key){var index=findIndex(this.a,function(it){return it[0]===key});if(~index)this.a.splice(index,1);return!!~index}};module.exports={getConstructor:function(wrapper,NAME,IS_MAP,ADDER){var C=wrapper(function(that,iterable){strictNew(that,C,NAME);that._i=id++;that._l=undefined;if(iterable!=undefined)forOf(iterable,IS_MAP,that[ADDER],that)});require("./$.mix")(C.prototype,{"delete":function(key){if(!isObject(key))return false;if(!isExtensible(key))return frozenStore(this)["delete"](key);return $has(key,WEAK)&&$has(key[WEAK],this._i)&&delete key[WEAK][this._i]},has:function has(key){if(!isObject(key))return false;if(!isExtensible(key))return frozenStore(this).has(key);return $has(key,WEAK)&&$has(key[WEAK],this._i)}});return C},def:function(that,key,value){if(!isExtensible(anObject(key))){frozenStore(that).set(key,value)}else{$has(key,WEAK)||hide(key,WEAK,{});key[WEAK][that._i]=value}return that},frozenStore:frozenStore,WEAK:WEAK}},{"./$.an-object":4,"./$.array-methods":6,"./$.for-of":24,"./$.has":27,"./$.hide":28,"./$.is-object":34,"./$.mix":46,"./$.strict-new":60,"./$.uid":74}],13:[function(require,module,exports){"use strict";var global=require("./$.global"),$def=require("./$.def"),forOf=require("./$.for-of"),strictNew=require("./$.strict-new");module.exports=function(NAME,wrapper,methods,common,IS_MAP,IS_WEAK){var Base=global[NAME],C=Base,ADDER=IS_MAP?"set":"add",proto=C&&C.prototype,O={};var fixMethod=function(KEY){var fn=proto[KEY];require("./$.redef")(proto,KEY,KEY=="delete"?function(a){return fn.call(this,a===0?0:a)}:KEY=="has"?function has(a){return fn.call(this,a===0?0:a)}:KEY=="get"?function get(a){return fn.call(this,a===0?0:a)}:KEY=="add"?function add(a){fn.call(this,a===0?0:a);return this}:function set(a,b){fn.call(this,a===0?0:a,b);return this})};if(typeof C!="function"||!(IS_WEAK||proto.forEach&&!require("./$.fails")(function(){(new C).entries().next()}))){C=common.getConstructor(wrapper,NAME,IS_MAP,ADDER);require("./$.mix")(C.prototype,methods)}else{var inst=new C,chain=inst[ADDER](IS_WEAK?{}:-0,1),buggyZero;if(!require("./$.iter-detect")(function(iter){new C(iter)})){C=wrapper(function(target,iterable){strictNew(target,C,NAME);var that=new Base;if(iterable!=undefined)forOf(iterable,IS_MAP,that[ADDER],that);return that});C.prototype=proto;proto.constructor=C}IS_WEAK||inst.forEach(function(val,key){buggyZero=1/key===-Infinity});if(buggyZero){fixMethod("delete");fixMethod("has");IS_MAP&&fixMethod("get")}if(buggyZero||chain!==inst)fixMethod(ADDER);if(IS_WEAK&&proto.clear)delete proto.clear}require("./$.tag")(C,NAME);O[NAME]=C;$def($def.G+$def.W+$def.F*(C!=Base),O);if(!IS_WEAK)common.setStrong(C,NAME,IS_MAP);return C}},{"./$.def":16,"./$.fails":21,"./$.for-of":24,"./$.global":26,"./$.iter-detect":38,"./$.mix":46,"./$.redef":53,"./$.strict-new":60,"./$.tag":67}],14:[function(require,module,exports){var core=module.exports={};if(typeof __e=="number")__e=core},{}],15:[function(require,module,exports){var aFunction=require("./$.a-function");module.exports=function(fn,that,length){aFunction(fn);if(that===undefined)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},{"./$.a-function":3}],16:[function(require,module,exports){var global=require("./$.global"),core=require("./$.core"),hide=require("./$.hide"),$redef=require("./$.redef"),PROTOTYPE="prototype";var ctx=function(fn,that){return function(){return fn.apply(that,arguments)}};var $def=function(type,name,source){var key,own,out,exp,isGlobal=type&$def.G,isProto=type&$def.P,target=isGlobal?global:type&$def.S?global[name]||(global[name]={}):(global[name]||{})[PROTOTYPE],exports=isGlobal?core:core[name]||(core[name]={});if(isGlobal)source=name;for(key in source){own=!(type&$def.F)&&target&&key in target;out=(own?target:source)[key];if(type&$def.B&&own)exp=ctx(out,global);else exp=isProto&&typeof out=="function"?ctx(Function.call,out):out;if(target&&!own)$redef(target,key,out);if(exports[key]!=out)hide(exports,key,exp);if(isProto)(exports[PROTOTYPE]||(exports[PROTOTYPE]={}))[key]=out}};global.core=core;$def.F=1;$def.G=2;$def.S=4;$def.P=8;$def.B=16;$def.W=32;module.exports=$def},{"./$.core":14,"./$.global":26,"./$.hide":28,"./$.redef":53}],17:[function(require,module,exports){module.exports=function(it){if(it==undefined)throw TypeError("Can't call method on "+it);return it}},{}],18:[function(require,module,exports){var isObject=require("./$.is-object"),document=require("./$.global").document,is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},{"./$.global":26,"./$.is-object":34}],19:[function(require,module,exports){var $=require("./$");module.exports=function(it){var keys=$.getKeys(it),getSymbols=$.getSymbols;if(getSymbols){var symbols=getSymbols(it),isEnum=$.isEnum,i=0,key;while(symbols.length>i)if(isEnum.call(it,key=symbols[i++]))keys.push(key)}return keys}},{"./$":41}],20:[function(require,module,exports){module.exports=Math.expm1||function expm1(x){return(x=+x)==0?x:x>-1e-6&&x<1e-6?x+x*x/2:Math.exp(x)-1}},{}],21:[function(require,module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return true}}},{}],22:[function(require,module,exports){"use strict";module.exports=function(KEY,length,exec){var defined=require("./$.defined"),SYMBOL=require("./$.wks")(KEY),original=""[KEY];if(require("./$.fails")(function(){var O={};O[SYMBOL]=function(){return 7};return""[KEY](O)!=7})){require("./$.redef")(String.prototype,KEY,exec(defined,SYMBOL,original));require("./$.hide")(RegExp.prototype,SYMBOL,length==2?function(string,arg){return original.call(string,this,arg)}:function(string){return original.call(string,this)})}}},{"./$.defined":17,"./$.fails":21,"./$.hide":28,"./$.redef":53,"./$.wks":76}],23:[function(require,module,exports){"use strict";var anObject=require("./$.an-object");module.exports=function(){var that=anObject(this),result="";if(that.global)result+="g";if(that.ignoreCase)result+="i";if(that.multiline)result+="m";if(that.unicode)result+="u";if(that.sticky)result+="y";return result}},{"./$.an-object":4}],24:[function(require,module,exports){var ctx=require("./$.ctx"),call=require("./$.iter-call"),isArrayIter=require("./$.is-array-iter"),anObject=require("./$.an-object"),toLength=require("./$.to-length"),getIterFn=require("./core.get-iterator-method");module.exports=function(iterable,entries,fn,that){var iterFn=getIterFn(iterable),f=ctx(fn,that,entries?2:1),index=0,length,step,iterator;if(typeof iterFn!="function")throw TypeError(iterable+" is not iterable!");if(isArrayIter(iterFn))for(length=toLength(iterable.length);length>index;index++){entries?f(anObject(step=iterable[index])[0],step[1]):f(iterable[index])}else for(iterator=iterFn.call(iterable);!(step=iterator.next()).done;){call(iterator,f,step.value,entries)}}},{"./$.an-object":4,"./$.ctx":15,"./$.is-array-iter":32,"./$.iter-call":35,"./$.to-length":72,"./core.get-iterator-method":77}],25:[function(require,module,exports){var toString={}.toString,toIObject=require("./$.to-iobject"),getNames=require("./$").getNames;var windowNames=typeof window=="object"&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var getWindowNames=function(it){try{return getNames(it)}catch(e){return windowNames.slice()}};module.exports.get=function getOwnPropertyNames(it){if(windowNames&&toString.call(it)=="[object Window]")return getWindowNames(it);return getNames(toIObject(it))}},{"./$":41,"./$.to-iobject":71}],26:[function(require,module,exports){var UNDEFINED="undefined";var global=module.exports=typeof window!=UNDEFINED&&window.Math==Math?window:typeof self!=UNDEFINED&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=global},{}],27:[function(require,module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},{}],28:[function(require,module,exports){var $=require("./$"),createDesc=require("./$.property-desc");module.exports=require("./$.support-desc")?function(object,key,value){return $.setDesc(object,key,createDesc(1,value))}:function(object,key,value){object[key]=value;return object}},{"./$":41,"./$.property-desc":52,"./$.support-desc":66}],29:[function(require,module,exports){module.exports=require("./$.global").document&&document.documentElement},{"./$.global":26}],30:[function(require,module,exports){module.exports=function(fn,args,that){var un=that===undefined;switch(args.length){case 0:return un?fn():fn.call(that);case 1:return un?fn(args[0]):fn.call(that,args[0]);case 2:return un?fn(args[0],args[1]):fn.call(that,args[0],args[1]);case 3:return un?fn(args[0],args[1],args[2]):fn.call(that,args[0],args[1],args[2]);case 4:return un?fn(args[0],args[1],args[2],args[3]):fn.call(that,args[0],args[1],args[2],args[3])}return fn.apply(that,args)}},{}],31:[function(require,module,exports){var cof=require("./$.cof");module.exports=0 in Object("z")?Object:function(it){return cof(it)=="String"?it.split(""):Object(it)}},{"./$.cof":9}],32:[function(require,module,exports){var Iterators=require("./$.iterators"),ITERATOR=require("./$.wks")("iterator");module.exports=function(it){return(Iterators.Array||Array.prototype[ITERATOR])===it}},{"./$.iterators":40,"./$.wks":76}],33:[function(require,module,exports){var isObject=require("./$.is-object"),floor=Math.floor;module.exports=function isInteger(it){return!isObject(it)&&isFinite(it)&&floor(it)===it}},{"./$.is-object":34}],34:[function(require,module,exports){module.exports=function(it){return it!==null&&(typeof it=="object"||typeof it=="function")}},{}],35:[function(require,module,exports){var anObject=require("./$.an-object");module.exports=function(iterator,fn,value,entries){try{return entries?fn(anObject(value)[0],value[1]):fn(value)}catch(e){var ret=iterator["return"];if(ret!==undefined)anObject(ret.call(iterator));throw e}}},{"./$.an-object":4}],36:[function(require,module,exports){"use strict";var $=require("./$"),IteratorPrototype={};require("./$.hide")(IteratorPrototype,require("./$.wks")("iterator"),function(){return this});module.exports=function(Constructor,NAME,next){Constructor.prototype=$.create(IteratorPrototype,{next:require("./$.property-desc")(1,next)});require("./$.tag")(Constructor,NAME+" Iterator")}},{"./$":41,"./$.hide":28,"./$.property-desc":52,"./$.tag":67,"./$.wks":76}],37:[function(require,module,exports){"use strict";var LIBRARY=require("./$.library"),$def=require("./$.def"),$redef=require("./$.redef"),hide=require("./$.hide"),has=require("./$.has"),SYMBOL_ITERATOR=require("./$.wks")("iterator"),Iterators=require("./$.iterators"),BUGGY=!([].keys&&"next"in[].keys()),FF_ITERATOR="@@iterator",KEYS="keys",VALUES="values";var returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCE){require("./$.iter-create")(Constructor,NAME,next);var createMethod=function(kind){switch(kind){case KEYS:return function keys(){return new Constructor(this,kind)};case VALUES:return function values(){return new Constructor(this,kind)}}return function entries(){return new Constructor(this,kind)}};var TAG=NAME+" Iterator",proto=Base.prototype,_native=proto[SYMBOL_ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&proto[DEFAULT],_default=_native||createMethod(DEFAULT),methods,key;if(_native){var IteratorPrototype=require("./$").getProto(_default.call(new Base));require("./$.tag")(IteratorPrototype,TAG,true);if(!LIBRARY&&has(proto,FF_ITERATOR))hide(IteratorPrototype,SYMBOL_ITERATOR,returnThis)}if(!LIBRARY||FORCE)hide(proto,SYMBOL_ITERATOR,_default);Iterators[NAME]=_default;Iterators[TAG]=returnThis;if(DEFAULT){methods={keys:IS_SET?_default:createMethod(KEYS),values:DEFAULT==VALUES?_default:createMethod(VALUES),entries:DEFAULT!=VALUES?_default:createMethod("entries")};if(FORCE)for(key in methods){if(!(key in proto))$redef(proto,key,methods[key])}else $def($def.P+$def.F*BUGGY,NAME,methods)}}},{"./$":41,"./$.def":16,"./$.has":27,"./$.hide":28,"./$.iter-create":36,"./$.iterators":40,"./$.library":43,"./$.redef":53,"./$.tag":67,"./$.wks":76}],38:[function(require,module,exports){var SYMBOL_ITERATOR=require("./$.wks")("iterator"),SAFE_CLOSING=false;try{var riter=[7][SYMBOL_ITERATOR]();riter["return"]=function(){SAFE_CLOSING=true};Array.from(riter,function(){throw 2})}catch(e){}module.exports=function(exec){if(!SAFE_CLOSING)return false;var safe=false;try{var arr=[7],iter=arr[SYMBOL_ITERATOR]();iter.next=function(){safe=true};arr[SYMBOL_ITERATOR]=function(){return iter};exec(arr)}catch(e){}return safe}},{"./$.wks":76}],39:[function(require,module,exports){module.exports=function(done,value){return{value:value,done:!!done}}},{}],40:[function(require,module,exports){module.exports={}},{}],41:[function(require,module,exports){var $Object=Object;module.exports={create:$Object.create,getProto:$Object.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:$Object.getOwnPropertyDescriptor,setDesc:$Object.defineProperty,setDescs:$Object.defineProperties,getKeys:$Object.keys,getNames:$Object.getOwnPropertyNames,getSymbols:$Object.getOwnPropertySymbols,each:[].forEach}},{}],42:[function(require,module,exports){var $=require("./$"),toIObject=require("./$.to-iobject");module.exports=function(object,el){var O=toIObject(object),keys=$.getKeys(O),length=keys.length,index=0,key;while(length>index)if(O[key=keys[index++]]===el)return key}},{"./$":41,"./$.to-iobject":71}],43:[function(require,module,exports){module.exports=false},{}],44:[function(require,module,exports){module.exports=Math.log1p||function log1p(x){return(x=+x)>-1e-8&&x<1e-8?x-x*x/2:Math.log(1+x)}},{}],45:[function(require,module,exports){var global=require("./$.global"),macrotask=require("./$.task").set,Observer=global.MutationObserver||global.WebKitMutationObserver,process=global.process,isNode=require("./$.cof")(process)=="process",head,last,notify;var flush=function(){var parent,domain;if(isNode&&(parent=process.domain)){process.domain=null;parent.exit()}while(head){domain=head.domain;if(domain)domain.enter();head.fn.call();if(domain)domain.exit();head=head.next}last=undefined;if(parent)parent.enter()};if(isNode){notify=function(){process.nextTick(flush)}}else if(Observer){var toggle=1,node=document.createTextNode("");new Observer(flush).observe(node,{characterData:true});notify=function(){node.data=toggle=-toggle}}else{notify=function(){macrotask.call(global,flush)}}module.exports=function asap(fn){var task={fn:fn,next:undefined,domain:isNode&&process.domain};if(last)last.next=task;if(!head){head=task;notify()}last=task}},{"./$.cof":9,"./$.global":26,"./$.task":68}],46:[function(require,module,exports){var $redef=require("./$.redef");module.exports=function(target,src){for(var key in src)$redef(target,key,src[key]);return target}},{"./$.redef":53}],47:[function(require,module,exports){module.exports=function(KEY,exec){var $def=require("./$.def"),fn=(require("./$.core").Object||{})[KEY]||Object[KEY],exp={};exp[KEY]=exec(fn);$def($def.S+$def.F*require("./$.fails")(function(){fn(1)}),"Object",exp)}},{"./$.core":14,"./$.def":16,"./$.fails":21}],48:[function(require,module,exports){var $=require("./$"),toIObject=require("./$.to-iobject");module.exports=function(isEntries){return function(it){var O=toIObject(it),keys=$.getKeys(O),length=keys.length,i=0,result=Array(length),key;if(isEntries)while(length>i)result[i]=[key=keys[i++],O[key]];else while(length>i)result[i]=O[keys[i++]];return result}}},{"./$":41,"./$.to-iobject":71}],49:[function(require,module,exports){var $=require("./$"),anObject=require("./$.an-object"),Reflect=require("./$.global").Reflect;module.exports=Reflect&&Reflect.ownKeys||function ownKeys(it){var keys=$.getNames(anObject(it)),getSymbols=$.getSymbols;return getSymbols?keys.concat(getSymbols(it)):keys}},{"./$":41,"./$.an-object":4,"./$.global":26}],50:[function(require,module,exports){"use strict";var path=require("./$.path"),invoke=require("./$.invoke"),aFunction=require("./$.a-function");module.exports=function(){var fn=aFunction(this),length=arguments.length,pargs=Array(length),i=0,_=path._,holder=false;while(length>i)if((pargs[i]=arguments[i++])===_)holder=true;return function(){var that=this,_length=arguments.length,j=0,k=0,args;if(!holder&&!_length)return invoke(fn,pargs,that);args=pargs.slice();if(holder)for(;length>j;j++)if(args[j]===_)args[j]=arguments[k++];while(_length>k)args.push(arguments[k++]);return invoke(fn,args,that)}}},{"./$.a-function":3,"./$.invoke":30,"./$.path":51}],51:[function(require,module,exports){module.exports=require("./$.global")},{"./$.global":26}],52:[function(require,module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}},{}],53:[function(require,module,exports){var global=require("./$.global"),hide=require("./$.hide"),SRC=require("./$.uid")("src"),TO_STRING="toString",$toString=Function[TO_STRING],TPL=(""+$toString).split(TO_STRING);require("./$.core").inspectSource=function(it){return $toString.call(it)};(module.exports=function(O,key,val,safe){if(typeof val=="function"){hide(val,SRC,O[key]?""+O[key]:TPL.join(String(key)));if(!("name"in val))val.name=key}if(O===global){O[key]=val}else{if(!safe)delete O[key];hide(O,key,val)}})(Function.prototype,TO_STRING,function toString(){return typeof this=="function"&&this[SRC]||$toString.call(this)})},{"./$.core":14,"./$.global":26,"./$.hide":28,"./$.uid":74}],54:[function(require,module,exports){module.exports=function(regExp,replace){var replacer=replace===Object(replace)?function(part){return replace[part]}:replace;return function(it){return String(it).replace(regExp,replacer)}}},{}],55:[function(require,module,exports){module.exports=Object.is||function is(x,y){return x===y?x!==0||1/x===1/y:x!=x&&y!=y}},{}],56:[function(require,module,exports){var getDesc=require("./$").getDesc,isObject=require("./$.is-object"),anObject=require("./$.an-object");var check=function(O,proto){anObject(O);if(!isObject(proto)&&proto!==null)throw TypeError(proto+": can't set as prototype!")};module.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(buggy,set){try{set=require("./$.ctx")(Function.call,getDesc(Object.prototype,"__proto__").set,2);set({},[])}catch(e){buggy=true}return function setPrototypeOf(O,proto){check(O,proto);if(buggy)O.__proto__=proto;else set(O,proto);return O}}():undefined),check:check}},{"./$":41,"./$.an-object":4,"./$.ctx":15,"./$.is-object":34}],57:[function(require,module,exports){var global=require("./$.global"),SHARED="__core-js_shared__",store=global[SHARED]||(global[SHARED]={});module.exports=function(key){return store[key]||(store[key]={})}},{"./$.global":26}],58:[function(require,module,exports){module.exports=Math.sign||function sign(x){return(x=+x)==0||x!=x?x:x<0?-1:1}},{}],59:[function(require,module,exports){"use strict";var $=require("./$"),SPECIES=require("./$.wks")("species");module.exports=function(C){if(require("./$.support-desc")&&!(SPECIES in C))$.setDesc(C,SPECIES,{configurable:true,get:function(){return this}})}},{"./$":41,"./$.support-desc":66,"./$.wks":76}],60:[function(require,module,exports){module.exports=function(it,Constructor,name){if(!(it instanceof Constructor))throw TypeError(name+": use the 'new' operator!");return it}},{}],61:[function(require,module,exports){var toInteger=require("./$.to-integer"),defined=require("./$.defined");module.exports=function(TO_STRING){return function(that,pos){var s=String(defined(that)),i=toInteger(pos),l=s.length,a,b;if(i<0||i>=l)return TO_STRING?"":undefined;a=s.charCodeAt(i);return a<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536}}},{"./$.defined":17,"./$.to-integer":70}],62:[function(require,module,exports){var defined=require("./$.defined"),cof=require("./$.cof");module.exports=function(that,searchString,NAME){if(cof(searchString)=="RegExp")throw TypeError("String#"+NAME+" doesn't accept regex!");return String(defined(that))}},{"./$.cof":9,"./$.defined":17}],63:[function(require,module,exports){var toLength=require("./$.to-length"),repeat=require("./$.string-repeat"),defined=require("./$.defined");module.exports=function(that,maxLength,fillString,left){var S=String(defined(that)),stringLength=S.length,fillStr=fillString===undefined?" ":String(fillString),intMaxLength=toLength(maxLength);if(intMaxLength<=stringLength)return S;if(fillStr=="")fillStr=" ";var fillLen=intMaxLength-stringLength,stringFiller=repeat.call(fillStr,Math.ceil(fillLen/fillStr.length));if(stringFiller.length>fillLen)stringFiller=left?stringFiller.slice(stringFiller.length-fillLen):stringFiller.slice(0,fillLen);return left?stringFiller+S:S+stringFiller}},{"./$.defined":17,"./$.string-repeat":64,"./$.to-length":72}],64:[function(require,module,exports){"use strict";var toInteger=require("./$.to-integer"),defined=require("./$.defined");module.exports=function repeat(count){var str=String(defined(this)),res="",n=toInteger(count);if(n<0||n==Infinity)throw RangeError("Count can't be negative");for(;n>0;(n>>>=1)&&(str+=str))if(n&1)res+=str;return res}},{"./$.defined":17,"./$.to-integer":70}],65:[function(require,module,exports){var trim=function(string,TYPE){string=String(defined(string));if(TYPE&1)string=string.replace(ltrim,"");if(TYPE&2)string=string.replace(rtrim,"");return string};var $def=require("./$.def"),defined=require("./$.defined"),spaces=" \n \f\r Â áš€á Žâ€€â€â€‚â€ƒ"+"          \u2028\u2029\ufeff",space="["+spaces+"]",non="​…",ltrim=RegExp("^"+space+space+"*"),rtrim=RegExp(space+space+"*$");module.exports=function(KEY,exec){var exp={};exp[KEY]=exec(trim);$def($def.P+$def.F*require("./$.fails")(function(){return!!spaces[KEY]()||non[KEY]()!=non}),"String",exp)}},{"./$.def":16,"./$.defined":17,"./$.fails":21}],66:[function(require,module,exports){module.exports=!require("./$.fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./$.fails":21}],67:[function(require,module,exports){var has=require("./$.has"),hide=require("./$.hide"),TAG=require("./$.wks")("toStringTag");module.exports=function(it,tag,stat){if(it&&!has(it=stat?it:it.prototype,TAG))hide(it,TAG,tag)}},{"./$.has":27,"./$.hide":28,"./$.wks":76}],68:[function(require,module,exports){"use strict";var ctx=require("./$.ctx"),invoke=require("./$.invoke"),html=require("./$.html"),cel=require("./$.dom-create"),global=require("./$.global"),process=global.process,setTask=global.setImmediate,clearTask=global.clearImmediate,MessageChannel=global.MessageChannel,counter=0,queue={},ONREADYSTATECHANGE="onreadystatechange",defer,channel,port; 2 | var run=function(){var id=+this;if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id];fn()}};var listner=function(event){run.call(event.data)};if(!setTask||!clearTask){setTask=function setImmediate(fn){var args=[],i=1;while(arguments.length>i)args.push(arguments[i++]);queue[++counter]=function(){invoke(typeof fn=="function"?fn:Function(fn),args)};defer(counter);return counter};clearTask=function clearImmediate(id){delete queue[id]};if(require("./$.cof")(process)=="process"){defer=function(id){process.nextTick(ctx(run,id,1))}}else if(MessageChannel){channel=new MessageChannel;port=channel.port2;channel.port1.onmessage=listner;defer=ctx(port.postMessage,port,1)}else if(global.addEventListener&&typeof postMessage=="function"&&!global.importScript){defer=function(id){global.postMessage(id+"","*")};global.addEventListener("message",listner,false)}else if(ONREADYSTATECHANGE in cel("script")){defer=function(id){html.appendChild(cel("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this);run.call(id)}}}else{defer=function(id){setTimeout(ctx(run,id,1),0)}}}module.exports={set:setTask,clear:clearTask}},{"./$.cof":9,"./$.ctx":15,"./$.dom-create":18,"./$.global":26,"./$.html":29,"./$.invoke":30}],69:[function(require,module,exports){var toInteger=require("./$.to-integer"),max=Math.max,min=Math.min;module.exports=function(index,length){index=toInteger(index);return index<0?max(index+length,0):min(index,length)}},{"./$.to-integer":70}],70:[function(require,module,exports){var ceil=Math.ceil,floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},{}],71:[function(require,module,exports){var IObject=require("./$.iobject"),defined=require("./$.defined");module.exports=function(it){return IObject(defined(it))}},{"./$.defined":17,"./$.iobject":31}],72:[function(require,module,exports){var toInteger=require("./$.to-integer"),min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},{"./$.to-integer":70}],73:[function(require,module,exports){var defined=require("./$.defined");module.exports=function(it){return Object(defined(it))}},{"./$.defined":17}],74:[function(require,module,exports){var id=0,px=Math.random();module.exports=function(key){return"Symbol(".concat(key===undefined?"":key,")_",(++id+px).toString(36))}},{}],75:[function(require,module,exports){var UNSCOPABLES=require("./$.wks")("unscopables");if(!(UNSCOPABLES in[]))require("./$.hide")(Array.prototype,UNSCOPABLES,{});module.exports=function(key){[][UNSCOPABLES][key]=true}},{"./$.hide":28,"./$.wks":76}],76:[function(require,module,exports){var store=require("./$.shared")("wks"),Symbol=require("./$.global").Symbol;module.exports=function(name){return store[name]||(store[name]=Symbol&&Symbol[name]||(Symbol||require("./$.uid"))("Symbol."+name))}},{"./$.global":26,"./$.shared":57,"./$.uid":74}],77:[function(require,module,exports){var classof=require("./$.classof"),ITERATOR=require("./$.wks")("iterator"),Iterators=require("./$.iterators");module.exports=require("./$.core").getIteratorMethod=function(it){if(it!=undefined)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},{"./$.classof":8,"./$.core":14,"./$.iterators":40,"./$.wks":76}],78:[function(require,module,exports){"use strict";var $=require("./$"),SUPPORT_DESC=require("./$.support-desc"),createDesc=require("./$.property-desc"),html=require("./$.html"),cel=require("./$.dom-create"),has=require("./$.has"),cof=require("./$.cof"),$def=require("./$.def"),invoke=require("./$.invoke"),arrayMethod=require("./$.array-methods"),IE_PROTO=require("./$.uid")("__proto__"),isObject=require("./$.is-object"),anObject=require("./$.an-object"),aFunction=require("./$.a-function"),toObject=require("./$.to-object"),toIObject=require("./$.to-iobject"),toInteger=require("./$.to-integer"),toIndex=require("./$.to-index"),toLength=require("./$.to-length"),IObject=require("./$.iobject"),fails=require("./$.fails"),ObjectProto=Object.prototype,A=[],_slice=A.slice,_join=A.join,defineProperty=$.setDesc,getOwnDescriptor=$.getDesc,defineProperties=$.setDescs,$indexOf=require("./$.array-includes")(false),factories={},IE8_DOM_DEFINE;if(!SUPPORT_DESC){IE8_DOM_DEFINE=!fails(function(){return defineProperty(cel("div"),"a",{get:function(){return 7}}).a!=7});$.setDesc=function(O,P,Attributes){if(IE8_DOM_DEFINE)try{return defineProperty(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");if("value"in Attributes)anObject(O)[P]=Attributes.value;return O};$.getDesc=function(O,P){if(IE8_DOM_DEFINE)try{return getOwnDescriptor(O,P)}catch(e){}if(has(O,P))return createDesc(!ObjectProto.propertyIsEnumerable.call(O,P),O[P])};$.setDescs=defineProperties=function(O,Properties){anObject(O);var keys=$.getKeys(Properties),length=keys.length,i=0,P;while(length>i)$.setDesc(O,P=keys[i++],Properties[P]);return O}}$def($def.S+$def.F*!SUPPORT_DESC,"Object",{getOwnPropertyDescriptor:$.getDesc,defineProperty:$.setDesc,defineProperties:defineProperties});var keys1=("constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,"+"toLocaleString,toString,valueOf").split(","),keys2=keys1.concat("length","prototype"),keysLen1=keys1.length;var createDict=function(){var iframe=cel("iframe"),i=keysLen1,gt=">",iframeDocument;iframe.style.display="none";html.appendChild(iframe);iframe.src="javascript:";iframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write("