You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mu...@apache.org on 2015/08/12 03:51:52 UTC
[1/3] cordova-registry-web git commit: Perf improvements and other
updates
Repository: cordova-registry-web
Updated Branches:
refs/heads/master 48600a053 -> a820ef4ed
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/npm-search/src/authors.html
----------------------------------------------------------------------
diff --git a/npm-search/src/authors.html b/npm-search/src/authors.html
new file mode 100644
index 0000000..5cfb73d
--- /dev/null
+++ b/npm-search/src/authors.html
@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv='Content-type' content='text/html; charset=utf-8'>
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+ <title>Cordova Search Website</title>
+ <link rel="stylesheet" href="css/styles.css" />
+ </head>
+
+ <body>
+ <div id="header">
+ <div class="wrap">
+ <a class="logo" href="//cordova.apache.org/"></a>
+ <div class="menu">
+ <a href="index.html">Home</a>
+ <a href="authors.html">Authors</a>
+ <a href="faq.html">FAQ</a>
+ </div>
+ <form class="menu-dropdown">
+ <select onchange="location = this.options[this.selectedIndex].value;">
+ <option value="index.html">Home</option>
+ <option value="authors.html">Authors</option>
+ <option value="faq.html">FAQ</option>
+ </select>
+ </form>
+ </div>
+ <div class="shadow"></div>
+ </div>
+ <div class="header-placeholder"></div>
+ <div class="wrap">
+ <h2 class="icon icon-about">npm Plugin Search for Plugin Authors</h2>
+ <h4>How do I add a new plugin to Plugin Search?</h4>
+ <p>If you want your Cordova Plugin to show up in search, simply add <code>ecosystem:cordova</code> keyword to the <code>package.json</code> file of your plugin and publish it to npm registry.</p>
+ <h4>How can I tag supported platforms for my plugin?</h4>
+ <p>Similar to <code>ecosystem:cordova</code>, platform support too uses keywords. Just add the platform name prefixed with "<strong>cordova-</strong>" to plugins list of keywords. E.g.</p>
+ <pre><code> "keywords": [
+ "ecosystem:cordova",
+ "cordova-android",
+ "cordova-ios",
+ "cordova-windows"
+ ]</code></pre>
+ <h4>My plugin is in plugins.cordova.io but I want to publish to npm. How do I do that?</h4>
+ <ol>
+ <li>
+ <strong>Optional</strong> Decide if you want to change your plugin’s id. If you decide to change it,
+ <ol>
+ <li>Update the id in plugin.xml and update your readme with the new id.</li>
+ <li>Send a pull request adding your new id and old id to Cordova Registry Mapper.</li>
+ <li>We integrate that module into the Cordova CLI to warn users to use the new id when adding plugins to their projects.</li>
+ </ol>
+ </li>
+ <li>Add a <code>package.json</code> to your plugins,
+ <ul>
+ <li>
+ <strong>Note</strong>: To keep things simple, please make sure your <code>id</code> in <code>plugin.xml</code> is the same as your <code>package-name</code> in <code>package.json</code>.</li>
+ <li>Use <code>plugman createpackagejson [PLUGIN DIRECTORY]</code> to create <code>package.json</code>.
+ <ul>
+ <li>This will create defaults based on existing values in your <code>plugin.xml</code>.</li>
+ <li>It will also automatically add the keyword <code>ecosystem:cordova</code> to your newly generated package.json file.</li>
+ <li>In addition, a cordova key will be added to your <code>package.json</code> which we plan to use in future updates of the tooling.</li>
+ </ul>
+ </li>
+ <li>View the <code>package.json</code> of <a href="https://github.com/apache/cordova-plugin-device/blob/master/package.json" target="_blank">cordova-plugin-device</a> to see an example of what your <code>package.json</code> should look like after running <code>plugman createpackagejson [PLUGIN DIRECTORY]</code> command.</li>
+ <li>Plugins still require a <code>plugin.xml</code> to be installed into <strong>Cordova</strong> projects.</li>
+ </ul>
+ </li>
+ <li>Publish your plugin to npm using the <code>npm publish [PLUGIN DIRECTORY]</code>.</li>
+ </ol>
+ <h4>Are there any additional documents to assist me with plugins?</h4>
+ <p>Yes there are. Please take a look at <a href="http://cordova.apache.org/docs/en/edge/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide" target="_blank">Plugin Development Guide</a> for a more detailed guide.</p>
+ <h4>I don't like X. How can I help improve the website?</h4>
+ <p>You can help improving this site by opening bugs on <a href="https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20status%20%3D%20Open%20AND%20component%20%3D%20%22Registry%20Web%22" target="_blank">JIRA</a> or by sending PRs on <a href="https://github.com/apache/cordova-registry-web" target="_blank">GitHub</a>.</p>
+ </div>
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-64283057-2', 'auto');
+ ga('send', 'pageview');
+ </script>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/npm-search/src/css/base.css
----------------------------------------------------------------------
diff --git a/npm-search/src/css/base.css b/npm-search/src/css/base.css
index 63a2bd8..9e7fa50 100644
--- a/npm-search/src/css/base.css
+++ b/npm-search/src/css/base.css
@@ -4,7 +4,7 @@ html {
body {
font-family: 'Segoe UI', tahoma, arial, helvetica, sans-serif;
- font-size: 1.6rem;
+ font-size: 1.6em;
margin: 0;
}
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/npm-search/src/developers.html
----------------------------------------------------------------------
diff --git a/npm-search/src/developers.html b/npm-search/src/developers.html
deleted file mode 100644
index 54feab8..0000000
--- a/npm-search/src/developers.html
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta http-equiv='Content-type' content='text/html; charset=utf-8'>
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
- <title>Cordova Search Website</title>
- <link rel="stylesheet" href="css/styles.css" />
- </head>
-
- <body>
- <div id="header">
- <div class="wrap">
- <a class="logo" href="//cordova.apache.org/"></a>
- <div class="menu">
- <a href="index.html">Home</a>
- <a href="developers.html">Developers</a>
- <a href="faq.html">FAQ</a>
- </div>
- <form class="menu-dropdown">
- <select onchange="location = this.options[this.selectedIndex].value;">
- <option value="index.html">Home</option>
- <option value="developers.html">Developers</option>
- <option value="faq.html">FAQ</option>
- </select>
- </form>
- </div>
- <div class="shadow"></div>
- </div>
- <div class="header-placeholder"></div>
- <div class="wrap">
- <h2 class="icon icon-about">npm Plugin Search for Plugin Authors</h2>
- <h4>How do I add a new plugin to Plugin Search?</h4>
- <p>If you want your Cordova Plugin to show up in search, simply add <code>ecosystem:cordova</code> keyword to the <code>package.json</code> file of your plugin and publish it to npm registry.</p>
- <h4>How can I tag supported platforms for my plugin?</h4>
- <p>Similar to <code>ecosystem:cordova</code>, platform support too uses keywords. Just add the platform name prefixed with "<strong>cordova-</strong>" to plugins list of keywords. E.g.</p>
- <pre><code> "keywords": [
- "ecosystem:cordova",
- "cordova-android",
- "cordova-ios",
- "cordova-windows"
- ]</code></pre>
- <h4>My plugin is in plugins.cordova.io but I want to publish to npm. How do I do that?</h4>
- <ol>
- <li>
- <strong>Optional</strong> Decide if you want to change your plugin’s id. If you decide to change it,
- <ol>
- <li>Update the id in plugin.xml and update your readme with the new id.</li>
- <li>Send a pull request adding your new id and old id to Cordova Registry Mapper.</li>
- <li>We integrate that module into the Cordova CLI to warn users to use the new id when adding plugins to their projects.</li>
- </ol>
- </li>
- <li>Add a <code>package.json</code> to your plugins,
- <ul>
- <li>
- <strong>Note</strong>: To keep things simple, please make sure your <code>id</code> in <code>plugin.xml</code> is the same as your <code>package-name</code> in <code>package.json</code>.</li>
- <li>Use <code>plugman createpackagejson [PLUGIN DIRECTORY]</code> to create <code>package.json</code>.
- <ul>
- <li>This will create defaults based on existing values in your <code>plugin.xml</code>.</li>
- <li>It will also automatically add the keyword <code>ecosystem:cordova</code> to your newly generated package.json file.</li>
- <li>In addition, a cordova key will be added to your <code>package.json</code> which we plan to use in future updates of the tooling.</li>
- </ul>
- </li>
- <li>View the <code>package.json</code> of <a href="https://github.com/apache/cordova-plugin-device/blob/master/package.json" target="_blank">cordova-plugin-device</a> to see an example of what your <code>package.json</code> should look like after running <code>plugman createpackagejson [PLUGIN DIRECTORY]</code> command.</li>
- <li>Plugins still require a <code>plugin.xml</code> to be installed into <strong>Cordova</strong> projects.</li>
- </ul>
- </li>
- <li>Publish your plugin to npm using the <code>npm publish [PLUGIN DIRECTORY]</code>.</li>
- </ol>
- <h4>Are there any additional documents to assist me with plugins?</h4>
- <p>Yes there are. Please take a look at <a href="http://cordova.apache.org/docs/en/edge/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide" target="_blank">Plugin Development Guide</a> for a more detailed guide.</p>
- <h4>I don't like X. How can I help improve the website?</h4>
- <p>You can help improving this site by opening bugs on <a href="https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20status%20%3D%20Open%20AND%20component%20%3D%20%22Registry%20Web%22" target="_blank">JIRA</a> or by sending PRs on <a href="https://github.com/apache/cordova-registry-web" target="_blank">GitHub</a>.</p>
- </div>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/npm-search/src/faq.html
----------------------------------------------------------------------
diff --git a/npm-search/src/faq.html b/npm-search/src/faq.html
index a3b7d03..c945922 100644
--- a/npm-search/src/faq.html
+++ b/npm-search/src/faq.html
@@ -13,13 +13,13 @@
<a class="logo" href="//cordova.apache.org/"></a>
<div class="menu">
<a href="index.html">Home</a>
- <a href="developers.html">Developers</a>
+ <a href="authors.html">Authors</a>
<a href="faq.html">FAQ</a>
</div>
<form class="menu-dropdown">
<select onchange="location = this.options[this.selectedIndex].value;">
<option value="index.html">Home</option>
- <option value="developers.html">Developers</option>
+ <option value="authors.html">Authors</option>
<option value="faq.html">FAQ</option>
</select>
</form>
@@ -52,5 +52,14 @@
<h4>I don't like X. How can I help improve the website?</h4>
<p>You can help improving this site by opening bugs on <a href="https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20status%20%3D%20Open%20AND%20component%20%3D%20%22Registry%20Web%22" target="_blank">JIRA</a> or by sending PRs on <a href="https://github.com/apache/cordova-registry-web" target="_blank">GitHub</a>.</p>
</div>
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-64283057-2', 'auto');
+ ga('send', 'pageview');
+ </script>
</body>
</html>
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/npm-search/src/img/loading.gif
----------------------------------------------------------------------
diff --git a/npm-search/src/img/loading.gif b/npm-search/src/img/loading.gif
new file mode 100644
index 0000000..5afa5e2
Binary files /dev/null and b/npm-search/src/img/loading.gif differ
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/npm-search/src/index.html
----------------------------------------------------------------------
diff --git a/npm-search/src/index.html b/npm-search/src/index.html
index e7b8453..e8ffd7d 100644
--- a/npm-search/src/index.html
+++ b/npm-search/src/index.html
@@ -33,13 +33,13 @@
<a class="logo" href="//cordova.apache.org/"></a>
<div class="menu">
<a href="index.html">Home</a>
- <a href="developers.html">Developers</a>
+ <a href="authors.html">Authors</a>
<a href="faq.html">FAQ</a>
</div>
<form class="menu-dropdown">
<select onchange="location = this.options[this.selectedIndex].value;">
<option value="index.html">Home</option>
- <option value="developers.html">Developers</option>
+ <option value="authors.html">Authors</option>
<option value="faq.html">FAQ</option>
</select>
</form>
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/npm-search/src/js/app.js
----------------------------------------------------------------------
diff --git a/npm-search/src/js/app.js b/npm-search/src/js/app.js
index ffafc44..9c11ef2 100644
--- a/npm-search/src/js/app.js
+++ b/npm-search/src/js/app.js
@@ -3,6 +3,7 @@ var React = window.React = require('react'), // assign it to window fo
PluginList = require('./pluginlist.jsx'),
App = {};
+var timer = null;
var Constants = {
DownloadCountBatch: 100,
NpmSearchInitialSize: 500
@@ -22,19 +23,29 @@ var App = React.createClass({
return {
plugins: [],
filterText: q,
- placeHolderText: 'Loading...'
+ placeHolderText: 'Loading...',
+ searchResults: []
}
} else {
return {
plugins: [],
filterText: '',
- placeHolderText: 'Loading...'
+ placeHolderText: 'Loading...',
+ searchResults: []
};
}
},
handleUserInput: function(filterText) {
+ /* Routing logic */
+ var filterTextLowerCase = filterText.toLowerCase();
+ delay(function(){
+ window.history.pushState({"filterText":filterTextLowerCase}, "", "?q=" + filterTextLowerCase);
+ ga('send', 'pageview', '/index.html?q=' + filterTextLowerCase);
+ }, 2000 );
+
this.setState({
- filterText: filterText
+ filterText: filterText,
+ searchResults: App.filterPlugins(this.state.plugins, filterText)
});
},
addCondition: function(condition) {
@@ -74,6 +85,83 @@ var App = React.createClass({
}
}
return dst;
+ },
+ tagOfficialPlugins: function() {
+
+ },
+ filterPlugins: function(plugins, filter) {
+ var contains = function(values, pluginInfo) {
+ var allValuesPresent = true;
+ if(values.length == 0) {
+ return allValuesPresent;
+ }
+ if(!pluginInfo) {
+ return false;
+ }
+ values.forEach(function(value) {
+ var valuePresent = false;
+ for(var index=0; index < pluginInfo.length; index++) {
+ if(pluginInfo[index] && pluginInfo[index].toLowerCase().indexOf(value) > -1) {
+ valuePresent = true;
+ }
+ }
+ if(!valuePresent) {
+ allValuesPresent = false;
+ }
+ });
+ return allValuesPresent;
+ }
+ var populateFilters = function(filterText) {
+ var searchStrings = filterText.split(" ");
+ var filters = [];
+ filters['platforms'] = [];
+ filters['authors'] = [];
+ filters['licenses'] = [];
+ filters['searchWords'] = [];
+
+ searchStrings.forEach(function(searchString) {
+ var keywords = searchString.split(":");
+ if(keywords.length == 1) {
+ var param = keywords[0].trim();
+ if(param) {
+ filters['searchWords'].push(param);
+ }
+ }
+ else if(keywords[1].trim()) {
+ var param = keywords[1].trim();
+ switch(keywords[0]) {
+ case 'platform':
+ filters['platforms'].push(param);
+ break;
+ case 'author':
+ filters['authors'].push(param);
+ break;
+ case 'license':
+ filters['licenses'].push(param);
+ break;
+ default:
+ filters['searchWords'].push(searchString);
+ }
+ }
+ else {
+ filters['searchWords'].push(searchString);
+ }
+ });
+ return filters;
+ }
+ var results = [];
+ var filters = populateFilters(filter);
+ for (var i = 0; i < plugins.length; i++) {
+ var plugin = plugins[i];
+ var fullPluginText = plugin.name.concat(plugin.author, plugin.keywords, plugin.license, plugin.description);
+ if(contains(filters['platforms'], plugin.keywords)
+ && contains(filters['authors'], plugin.author)
+ && contains(filters['licenses'], plugin.license)
+ && contains(filters['searchWords'], fullPluginText)) {
+ results.push(plugin);
+ }
+ };
+ return results;
}
},
componentDidMount: function() {
@@ -113,7 +201,8 @@ var App = React.createClass({
}
}
that.setState({
- plugins: plugins
+ plugins: plugins,
+ searchResults: App.filterPlugins(plugins, this.state.filterText)
});
}.bind(self), function() { console.log('xhr err'); });
packageNames = "";
@@ -159,13 +248,15 @@ var App = React.createClass({
this.setState({
plugins: plugins,
filterText: q,
- placeHolderText: 'Search ' + pluginCount + ' plugins...'
+ placeHolderText: 'Search ' + pluginCount + ' plugins...',
+ searchResults: App.filterPlugins(plugins, q)
});
}
else {
this.setState({
plugins: plugins,
- placeHolderText: 'Search ' + pluginCount + ' plugins...'
+ placeHolderText: 'Search ' + pluginCount + ' plugins...',
+ searchResults: plugins
});
}
getDownloadCount(plugins,this);
@@ -176,20 +267,17 @@ var App = React.createClass({
return (
<div>
<div id="headblock">
- <div id="topcontent">
- <div id="pluggy"></div>
- <div id="discovermessage"><h1>Search Cordova Plugins</h1></div>
- </div>
+ <div id="topcontent">
+ <div id="pluggy"></div>
+ <div id="discovermessage"><h1>Search Cordova Plugins</h1></div>
+ </div>
<SearchBar
initialValue={this.state.filterText}
placeHolderText={this.state.placeHolderText}
onUserInput={this.handleUserInput}
/>
</div>
- <PluginList
- plugins={this.state.plugins}
- filterText={this.state.filterText}
- />
+ <PluginList plugins={this.state.searchResults} />
</div>
);
}
@@ -199,6 +287,11 @@ App.start = function() {
React.render(<App />, document.getElementById('container'));
};
+function delay(callback, ms){
+ clearTimeout (timer);
+ timer = setTimeout(callback, ms);
+}
+
function xhrRequest(url, success, fail) {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/npm-search/src/js/empty-plugin.jsx
----------------------------------------------------------------------
diff --git a/npm-search/src/js/empty-plugin.jsx b/npm-search/src/js/empty-plugin.jsx
new file mode 100644
index 0000000..e88aade
--- /dev/null
+++ b/npm-search/src/js/empty-plugin.jsx
@@ -0,0 +1,18 @@
+var React = require('react');
+
+var Plugin = React.createClass({
+ render: function() {
+ return (
+ <li>
+ <div className="pluginCard">
+ <div style={{ textAlign: 'center', height: 10 + "rem"}}>
+ <span style={{ display: 'inline-block', height: 100 + "%", verticalAlign: 'middle'}} />
+ <img style={{verticalAlign: 'middle'}} src="img/loading.gif" />
+ </div>
+ </div>
+ </li>
+ )
+ }
+});
+
+module.exports = Plugin;
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/npm-search/src/js/plugin.jsx
----------------------------------------------------------------------
diff --git a/npm-search/src/js/plugin.jsx b/npm-search/src/js/plugin.jsx
index 8df03c3..d3eaf11 100644
--- a/npm-search/src/js/plugin.jsx
+++ b/npm-search/src/js/plugin.jsx
@@ -12,6 +12,7 @@ var Plugin = React.createClass({
license = license[0];
}
var downloadField;
+ var npmLink = 'https://www.npmjs.com/package/' + this.props.plugin.name;
var classes = classNames({
'pluginCard': true,
@@ -22,12 +23,13 @@ var Plugin = React.createClass({
var downloadCount = this.props.plugin.downloadCount.toLocaleString();
downloadField = <p><small> {downloadCount} downloads last month</small></p>;
}
+
return (
<li>
<div className={classes}>
<div className="primaryContent">
<div className="header">
- <h3><a href={'https://www.npmjs.com/package/' + this.props.plugin.name} target="_blank">{this.props.plugin.name}</a></h3>
+ <h3><a href={npmLink} onClick={trackOutboundLink.bind(this, npmLink)} target="_blank">{this.props.plugin.name}</a></h3>
<small className="pluginVersion">v{this.props.plugin.version}</small>
<small> by </small>
<small className="pluginAuthor">{this.props.plugin.author}</small>
@@ -48,4 +50,8 @@ var Plugin = React.createClass({
}
});
+function trackOutboundLink(url) {
+ ga('send', 'event', 'outbound', 'click', url);
+}
+
module.exports = Plugin;
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/npm-search/src/js/pluginlist.jsx
----------------------------------------------------------------------
diff --git a/npm-search/src/js/pluginlist.jsx b/npm-search/src/js/pluginlist.jsx
index b9fb87c..cddc7e2 100644
--- a/npm-search/src/js/pluginlist.jsx
+++ b/npm-search/src/js/pluginlist.jsx
@@ -1,105 +1,71 @@
var React = require('react'),
Plugin = require('./plugin.jsx');
+ EmptyPlugin = require('./empty-plugin.jsx');
-var timer=null;
+var InitialPageLength = 10;
+var PageExtensionLength = 20;
+/*
+ States site loaded
+ */
var PluginList = React.createClass({
- statics: {
- contains: function(values, pluginInfo) {
- var allValuesPresent = true;
- if(values.length == 0) {
- return allValuesPresent;
- }
- if(!pluginInfo) {
- return false;
- }
- values.forEach(function(value) {
- var valuePresent = false;
- for(var index=0; index < pluginInfo.length; index++) {
- if(pluginInfo[index] && pluginInfo[index].toLowerCase().indexOf(value) > -1) {
- valuePresent = true;
- }
- }
- if(!valuePresent) {
- allValuesPresent = false;
- }
- });
- return allValuesPresent;
- },
- populateFilters: function(filterText)
- {
- var searchStrings = filterText.split(" ");
- var filters = [];
- filters['platforms'] = [];
- filters['authors'] = [];
- filters['licenses'] = [];
- filters['searchWords'] = [];
-
- searchStrings.forEach(function(searchString) {
- var keywords = searchString.split(":");
- if(keywords.length == 1) {
- var param = keywords[0].trim();
- if(param) {
- filters['searchWords'].push(param);
- }
- }
- else if(keywords[1].trim()) {
- var param = keywords[1].trim();
- switch(keywords[0]) {
- case 'platform':
- filters['platforms'].push(param);
- break;
- case 'author':
- filters['authors'].push(param);
- break;
- case 'license':
- filters['licenses'].push(param);
- break;
- default:
- filters['searchWords'].push(searchString);
- }
- }
- else {
- filters['searchWords'].push(searchString);
- }
- });
- return filters;
- }
+ getInitialState: function() {
+ return { bootstrapped: false }
+ },
+ componentWillReceiveProps: function() {
+ // Recieving a set of plugins
+ this.setState({
+ bootstrapped: true,
+ searchPage: 0
+ });
+ },
+ increaseSearchResults: function() {
+ this.setState({ searchPage: this.state.searchPage + 1 });
},
render: function() {
- var plugins = [],
- filterText = this.props.filterText.toLowerCase();
-
- var delay = (function(){
- return function(callback, ms){
- clearTimeout (timer);
- timer = setTimeout(callback, ms);
- };
- })();
+ if (!this.state.bootstrapped) {
+ var emptyPluginList = [];
- delay(function(){
- window.history.pushState({"filterText":filterText}, "", "?q=" + filterText);
- ga('send', 'pageview', '/index.html?q=' + filterText);
- }, 2000 );
+ for (var i = 0; i < InitialPageLength; i++) {
+ emptyPluginList.push(<EmptyPlugin key={"emptyPlugin" + i}/>)
+ };
- var filters = PluginList.populateFilters(filterText);
-
- this.props.plugins.forEach(function(plugin) {
- var fullPluginText = plugin.name.concat(plugin.author, plugin.keywords, plugin.license, plugin.description);
- if(PluginList.contains(filters['platforms'], plugin.keywords)
- && PluginList.contains(filters['authors'], plugin.author)
- && PluginList.contains(filters['licenses'], plugin.license)
- && PluginList.contains(filters['searchWords'], fullPluginText)) {
- plugins.push(<Plugin plugin={plugin} key={plugin.author + plugin.name}/>);
+ return (
+ <div className="contentwrap">
+ <ul className="pluginList">
+ {emptyPluginList}
+ </ul>
+ </div>
+ )
+ } else {
+ var plugins = this.props.plugins;
+ var showMore = null, visiblePlugins = [];
+ if (plugins.length - this.state.searchPage * PageExtensionLength > InitialPageLength) {
+ showMore =
+ <div className="pluginCard" onClick={this.increaseSearchResults} style={{cursor: 'pointer'}}>
+ <div style={{ display: 'table', width:100 + '%', minHeight: 5 + 'rem'}}>
+ <div style={{ display: 'table-cell', verticalAlign: 'middle'}}>
+ <div style={{textAlign: 'center'}}>Show More</div>
+ </div>
+ </div>
+ </div>;
}
- }.bind(this));
- return (
- <div className="contentwrap">
- <ul className="pluginList">
- {plugins}
- </ul>
- </div>
- );
+ for (var i = 0; i < InitialPageLength + this.state.searchPage * PageExtensionLength; i++) {
+ if (plugins[i]) {
+ visiblePlugins.push(<Plugin plugin={plugins[i]} key={i}/>);
+ } else {
+ break;
+ }
+ };
+ return (
+ <div className="contentwrap">
+ <ul className="pluginList">
+ {visiblePlugins}
+ </ul>
+ {showMore}
+ </div>
+ );
+ }
}
});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[2/3] cordova-registry-web git commit: Perf improvements and other
updates
Posted by mu...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/attachments/npm/js/app.js
----------------------------------------------------------------------
diff --git a/attachments/npm/js/app.js b/attachments/npm/js/app.js
index af40f50..aca202f 100644
--- a/attachments/npm/js/app.js
+++ b/attachments/npm/js/app.js
@@ -1,8 +1,9 @@
-!function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){(function(e){(function(){var n,r,o,i,a,u,s,c,l,p,f,d,h,m,v,g,y,E,b,C,R,w,M,x,D,O,_,I,P,T,S,N,k,A,L,U,F,B,j,V,H,W,q,K,z,Q,Y,G,X,$,Z,J,ee,te,ne,re,oe,ie,ae,ue,se,ce,le,pe,fe,de,he,me,ve,ge,ye,Ee={}.hasOwnProperty,be=function(e,t){function n(){this.constructor=e}for(var r in t)Ee.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Ce=[].slice,Re=function(e,t){return function(){return e.apply(t,arguments)}};n={toString:function(){return"Bacon"}},n.version="0.7.70",d=("undefined"!=typeof e&&n
ull!==e?e:this).Error,oe=function(){},X=function(e,t){return t},q=function(e,t){return e},N=function(e){return e.slice(0)},x=function(e,t){if(!t)throw new d(e)},T=function(e){if(e instanceof g&&!(e instanceof y))throw new d("Observable is not a Property : "+e)},O=function(e){if(!(e instanceof f))throw new d("not an EventStream : "+e)},P=function(e){if(!(e instanceof g))throw new d("not an Observable : "+e)},_=function(e){return x("not a function : "+e,w.isFunction(e))},Q=function(e){return e instanceof Array},G=function(e){return e instanceof g},D=function(e){if(!Q(e))throw new d("not an array : "+e)},I=function(e){return x("no arguments supported",0===e.length)},S=function(e){if("string"!=typeof e)throw new d("not a string : "+e)},w={indexOf:Array.prototype.indexOf?function(e,t){return e.indexOf(t)}:function(e,t){var n,r,o,i;for(n=r=0,o=e.length;o>r;n=++r)if(i=e[n],t===i)return n;return-1},indexWhere:function(e,t){var n,r,o,i;for(n=r=0,o=e.length;o>r;n=++r)if(i=e[n],t(i))return n;r
eturn-1},head:function(e){return e[0]},always:function(e){return function(){return e}},negate:function(e){return function(t){return!e(t)}},empty:function(e){return 0===e.length},tail:function(e){return e.slice(1,e.length)},filter:function(e,t){var n,r,o,i;for(n=[],r=0,o=t.length;o>r;r++)i=t[r],e(i)&&n.push(i);return n},map:function(e,t){var n,r,o,i;for(o=[],n=0,r=t.length;r>n;n++)i=t[n],o.push(e(i));return o},each:function(e,t){var n,r;for(n in e)Ee.call(e,n)&&(r=e[n],t(n,r));return void 0},toArray:function(e){return Q(e)?e:[e]},contains:function(e,t){return-1!==w.indexOf(e,t)},id:function(e){return e},last:function(e){return e[e.length-1]},all:function(e,t){var n,r,o;for(null==t&&(t=w.id),n=0,r=e.length;r>n;n++)if(o=e[n],!t(o))return!1;return!0},any:function(e,t){var n,r,o;for(null==t&&(t=w.id),n=0,r=e.length;r>n;n++)if(o=e[n],t(o))return!0;return!1},without:function(e,t){return w.filter(function(t){return t!==e},t)},remove:function(e,t){var n;return n=w.indexOf(t,e),n>=0?t.splice(
n,1):void 0},fold:function(e,t,n){var r,o,i;for(r=0,o=e.length;o>r;r++)i=e[r],t=n(t,i);return t},flatMap:function(e,t){return w.fold(t,[],function(t,n){return t.concat(e(n))})},cached:function(e){var t;return t=v,function(){return t===v&&(t=e(),e=void 0),t}},isFunction:function(e){return"function"==typeof e},toString:function(e){var t,n,r,o;try{return ae++,null==e?"undefined":w.isFunction(e)?"function":Q(e)?ae>5?"[..]":"["+w.map(w.toString,e).toString()+"]":null!=(null!=e?e.toString:void 0)&&e.toString!==Object.prototype.toString?e.toString():"object"==typeof e?ae>5?"{..}":(n=function(){var n;n=[];for(r in e)Ee.call(e,r)&&(o=function(){try{return e[r]}catch(n){return t=n}}(),n.push(w.toString(r)+":"+w.toString(o)));return n}(),"{"+n+"}"):e}finally{ae--}}},ae=0,n._=w,R=n.UpdateBarrier=function(){var e,t,r,o,i,a,u,s,c,l,p,f,d,h;return l=void 0,p=[],f={},t=[],r=0,e=function(e){return l?t.push(e):e()},d=function(e,t){var n;return l?(n=f[e.id],null==n?(n=f[e.id]=[t],p.push(e)):n.push(t))
:t()},i=function(){for(;p.length>0;)u(0);return void 0},u=function(e){var t,n,r,o,i,u;for(o=p[e],i=o.id,u=f[i],p.splice(e,1),delete f[i],a(o),n=0,r=u.length;r>n;n++)(t=u[n])();return void 0},a=function(e){var t,n,r,o,i;for(n=e.internalDeps(),o=0,i=n.length;i>o;o++)t=n[o],a(t),f[t.id]&&(r=w.indexOf(p,t),u(r));return void 0},c=function(e,n,o,a){var u,s;if(l)return o.apply(n,a);l=e;try{s=o.apply(n,a),i()}finally{for(l=void 0;r<t.length;)u=t[r],r++,u();r=0,t=[]}return s},o=function(){return l?l.id:void 0},h=function(t,r){var o,i,a,u;return u=!1,i=!1,o=function(){return i=!0},a=function(){return u=!0,o()},o=t.dispatcher.subscribe(function(t){return e(function(){var e;return u||(e=r(t),e!==n.noMore)?void 0:a()})}),i&&o(),a},s=function(){return p.length>0},{whenDoneWith:d,hasWaiters:s,inTransaction:c,currentEventId:o,wrappedSubscribe:h,afterTransaction:e}}(),C=function(){function e(e,t,n){this.obs=e,this.sync=t,this.lazy=null!=n?n:!1,this.queue=[]}return e.prototype.subscribe=function(e){r
eturn this.obs.dispatcher.subscribe(e)},e.prototype.toString=function(){return this.obs.toString()},e.prototype.markEnded=function(){return this.ended=!0},e.prototype.consume=function(){return this.lazy?{value:w.always(this.queue[0])}:this.queue[0]},e.prototype.push=function(e){return this.queue=[e]},e.prototype.mayHave=function(){return!0},e.prototype.hasAtLeast=function(){return this.queue.length},e.prototype.flatten=!0,e}(),a=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return be(t,e),t.prototype.consume=function(){return this.queue.shift()},t.prototype.push=function(e){return this.queue.push(e)},t.prototype.mayHave=function(e){return!this.ended||this.queue.length>=e},t.prototype.hasAtLeast=function(e){return this.queue.length>=e},t.prototype.flatten=!1,t}(C),r=function(e){function t(e){t.__super__.constructor.call(this,e,!0)}return be(t,e),t.prototype.consume=function(){var e;return e=this.queue,this.queue=[],{value:function(){return e}}},t.proto
type.push=function(e){return this.queue.push(e.value())},t.prototype.hasAtLeast=function(){return!0},t}(C),C.isTrigger=function(e){return e instanceof C?e.sync:e instanceof f},C.fromObservable=function(e){return e instanceof C?e:e instanceof y?new C(e,!1):new a(e,!0)},u=function(){function e(e,t,n){this.context=e,this.method=t,this.args=n}return e.prototype.deps=function(){return this.cached||(this.cached=V([this.context].concat(this.args)))},e.prototype.toString=function(){return w.toString(this.context)+"."+w.toString(this.method)+"("+w.map(w.toString,this.args)+")"},e}(),U=function(){var e,t,n;return t=arguments[0],n=arguments[1],e=3<=arguments.length?Ce.call(arguments,2):[],(t||n)instanceof u?t||n:new u(t,n,e)},ge=function(e,t){return t.desc=e,t},V=function(e){return Q(e)?w.flatMap(V,e):G(e)?[e]:e instanceof C?[e.obs]:[]},n.Desc=u,n.Desc.empty=new n.Desc("","",[]),ye=function(e){return function(){var t,n,r,o;return r=arguments[0],t=2<=arguments.length?Ce.call(arguments,1):[],"ob
ject"==typeof r&&t.length&&(n=r,o=t[0],r=function(){return n[o].apply(n,arguments)},t=t.slice(1)),e.apply(null,[r].concat(Ce.call(t)))}},J=function(e){return e=Array.prototype.slice.call(e),ee.apply(null,e)},ie=function(e,t){return function(){var n;return n=1<=arguments.length?Ce.call(arguments,0):[],e.apply(null,t.concat(n))}},me=function(e){return function(t){return function(n){var r;return null==n?void 0:(r=n[t],w.isFunction(r)?r.apply(n,e):r)}}},fe=function(e,t){var n,r;return r=e.slice(1).split("."),n=w.map(me(t),r),function(t){var r,o;for(r=0,o=n.length;o>r;r++)e=n[r],t=e(t);return t}},Y=function(e){return"string"==typeof e&&e.length>1&&"."===e.charAt(0)},ee=ye(function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],w.isFunction(t)?e.length?ie(t,e):t:Y(t)?fe(t,e):w.always(t)}),Z=function(e,t){return ee.apply(null,[e].concat(Ce.call(t)))},L=function(e,t,n,r){var o;return t instanceof y?(o=t.sampledBy(e,function(e,t){return[e,t]}),r.call(o,function
(e){var t,n;return t=e[0],n=e[1],t}).map(function(e){var t,n;return t=e[0],n=e[1]})):(t=Z(t,n),r.call(e,t))},le=function(e){var t;if(w.isFunction(e))return e;if(Y(e))return t=de(e),function(e,n){return e[t](n)};throw new d("not a function or a field key: "+e)},de=function(e){return e.slice(1)},b=function(){function e(e){this.value=e}return e.prototype.getOrElse=function(){return this.value},e.prototype.get=function(){return this.value},e.prototype.filter=function(t){return t(this.value)?new e(this.value):v},e.prototype.map=function(t){return new e(t(this.value))},e.prototype.forEach=function(e){return e(this.value)},e.prototype.isDefined=!0,e.prototype.toArray=function(){return[this.value]},e.prototype.inspect=function(){return"Some("+this.value+")"},e.prototype.toString=function(){return this.inspect()},e}(),v={getOrElse:function(e){return e},filter:function(){return v},map:function(){return v},forEach:function(){},isDefined:!1,toArray:function(){return[]},inspect:function(){return
"None"},toString:function(){return this.inspect()}},he=function(e){return e instanceof b||e===v?e:new b(e)},n.noMore=["<no-more>"],n.more=["<more>"],B=0,p=function(){function e(){this.id=++B}return e.prototype.isEvent=function(){return!0},e.prototype.isEnd=function(){return!1},e.prototype.isInitial=function(){return!1},e.prototype.isNext=function(){return!1},e.prototype.isError=function(){return!1},e.prototype.hasValue=function(){return!1},e.prototype.filter=function(){return!0},e.prototype.inspect=function(){return this.toString()},e.prototype.log=function(){return this.toString()},e}(),m=function(e){function t(e,n){t.__super__.constructor.call(this),!n&&w.isFunction(e)||e instanceof t?(this.valueF=e,this.valueInternal=void 0):(this.valueF=void 0,this.valueInternal=e)}return be(t,e),t.prototype.isNext=function(){return!0},t.prototype.hasValue=function(){return!0},t.prototype.value=function(){return this.valueF instanceof t?(this.valueInternal=this.valueF.value(),this.valueF=void 0)
:this.valueF&&(this.valueInternal=this.valueF(),this.valueF=void 0),this.valueInternal},t.prototype.fmap=function(e){var t,n;return this.valueInternal?(n=this.valueInternal,this.apply(function(){return e(n)})):(t=this,this.apply(function(){return e(t.value())}))},t.prototype.apply=function(e){return new t(e)},t.prototype.filter=function(e){return e(this.value())},t.prototype.toString=function(){return w.toString(this.value())},t.prototype.log=function(){return this.value()},t}(p),h=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return be(t,e),t.prototype.isInitial=function(){return!0},t.prototype.isNext=function(){return!1},t.prototype.apply=function(e){return new t(e)},t.prototype.toNext=function(){return new m(this)},t}(m),c=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return be(t,e),t.prototype.isEnd=function(){return!0},t.prototype.fmap=function(){return this},t.prototype.apply=function(){return this},t.prototype.to
String=function(){return"<end>"},t}(p),l=function(e){function t(e){this.error=e}return be(t,e),t.prototype.isError=function(){return!0},t.prototype.fmap=function(){return this},t.prototype.apply=function(){return this},t.prototype.toString=function(){return"<error> "+w.toString(this.error)},t}(p),n.Event=p,n.Initial=h,n.Next=m,n.End=c,n.Error=l,z=function(e){return new h(e,!0)},re=function(e){return new m(e,!0)},F=function(){return new c},pe=function(e){return e instanceof p?e:re(e)},K=0,se=function(){},g=function(){function e(e){this.desc=e,this.id=++K,this.initialDesc=this.desc}return e.prototype.subscribe=function(e){return R.wrappedSubscribe(this,e)},e.prototype.subscribeInternal=function(e){return this.dispatcher.subscribe(e)},e.prototype.onValue=function(){var e;return e=J(arguments),this.subscribe(function(t){return t.hasValue()?e(t.value()):void 0})},e.prototype.onValues=function(e){return this.onValue(function(t){return e.apply(null,t)})},e.prototype.onError=function(){var
e;return e=J(arguments),this.subscribe(function(t){return t.isError()?e(t.error):void 0})},e.prototype.onEnd=function(){var e;return e=J(arguments),this.subscribe(function(t){return t.isEnd()?e():void 0})},e.prototype.name=function(e){return this._name=e,this},e.prototype.withDescription=function(){return this.desc=U.apply(null,arguments),this},e.prototype.toString=function(){return this._name?this._name:this.desc.toString()},e.prototype.internalDeps=function(){return this.initialDesc.deps()},e}(),g.prototype.assign=g.prototype.onValue,g.prototype.forEach=g.prototype.onValue,g.prototype.inspect=g.prototype.toString,n.Observable=g,i=function(){function e(e){var t,n,r;for(null==e&&(e=[]),this.unsubscribe=Re(this.unsubscribe,this),this.unsubscribed=!1,this.subscriptions=[],this.starting=[],t=0,n=e.length;n>t;t++)r=e[t],this.add(r)}return e.prototype.add=function(e){var t,n,r;if(!this.unsubscribed)return t=!1,n=oe,this.starting.push(e),r=function(r){return function(){return r.unsubscrib
ed?void 0:(t=!0,r.remove(n),w.remove(e,r.starting))}}(this),n=e(this.unsubscribe,r),this.unsubscribed||t?n():this.subscriptions.push(n),w.remove(e,this.starting),n},e.prototype.remove=function(e){return this.unsubscribed?void 0:void 0!==w.remove(e,this.subscriptions)?e():void 0},e.prototype.unsubscribe=function(){var e,t,n,r;if(!this.unsubscribed){for(this.unsubscribed=!0,n=this.subscriptions,e=0,t=n.length;t>e;e++)(r=n[e])();return this.subscriptions=[],this.starting=[]}},e.prototype.count=function(){return this.unsubscribed?0:this.subscriptions.length+this.starting.length},e.prototype.empty=function(){return 0===this.count()},e}(),n.CompositeUnsubscribe=i,s=function(){function e(e,t){this._subscribe=e,this._handleEvent=t,this.subscribe=Re(this.subscribe,this),this.handleEvent=Re(this.handleEvent,this),this.subscriptions=[],this.queue=[]}return e.prototype.pushing=!1,e.prototype.ended=!1,e.prototype.prevError=void 0,e.prototype.unsubSrc=void 0,e.prototype.hasSubscribers=function(){
return this.subscriptions.length>0},e.prototype.removeSub=function(e){return this.subscriptions=w.without(e,this.subscriptions)},e.prototype.push=function(e){return e.isEnd()&&(this.ended=!0),R.inTransaction(e,this,this.pushIt,[e])},e.prototype.pushToSubscriptions=function(e){var t,r,o,i,a,u;try{for(u=this.subscriptions,r=0,o=u.length;o>r;r++)a=u[r],i=a.sink(e),(i===n.noMore||e.isEnd())&&this.removeSub(a);return!0}catch(s){throw t=s,this.pushing=!1,this.queue=[],t}},e.prototype.pushIt=function(e){if(this.pushing)return this.queue.push(e),n.more;if(e!==this.prevError){for(e.isError()&&(this.prevError=e),this.pushing=!0,this.pushToSubscriptions(e),this.pushing=!1;this.queue.length;)e=this.queue.shift(),this.push(e);return this.hasSubscribers()?n.more:(this.unsubscribeFromSource(),n.noMore)}},e.prototype.handleEvent=function(e){return this._handleEvent?this._handleEvent(e):this.push(e)},e.prototype.unsubscribeFromSource=function(){return this.unsubSrc&&this.unsubSrc(),this.unsubSrc=voi
d 0},e.prototype.subscribe=function(e){var t;return this.ended?(e(F()),oe):(_(e),t={sink:e},this.subscriptions.push(t),1===this.subscriptions.length&&(this.unsubSrc=this._subscribe(this.handleEvent),_(this.unsubSrc)),function(e){return function(){return e.removeSub(t),e.hasSubscribers()?void 0:e.unsubscribeFromSource()}}(this))},e}(),n.Dispatcher=s,f=function(e){function t(e,n,r){w.isFunction(e)&&(r=n,n=e,e=u.empty),t.__super__.constructor.call(this,e),_(n),this.dispatcher=new s(n,r),se(this)}return be(t,e),t.prototype.toProperty=function(e){var t,r;return r=0===arguments.length?v:he(function(){return e}),t=this.dispatcher,new y(new n.Desc(this,"toProperty",[e]),function(e){var o,i,a,u;return o=!1,u=oe,i=n.more,a=function(){return o?void 0:r.forEach(function(t){return o=!0,i=e(new h(t)),i===n.noMore?(u(),u=oe):void 0})},u=t.subscribe(function(t){return t.hasValue()?o&&t.isInitial()?n.more:(t.isInitial()||a(),o=!0,r=new b(t),e(t)):(t.isEnd()&&(i=a()),i!==n.noMore?e(t):void 0)}),a(),u
})},t.prototype.toEventStream=function(){return this},t.prototype.withHandler=function(e){return new t(new n.Desc(this,"withHandler",[e]),this.dispatcher.subscribe,e)},t}(g),n.EventStream=f,n.never=function(){return new f(U(n,"never"),function(e){return e(F()),oe})},n.when=function(){var e,t,r,o,i,a,u,s,c,l,p,d,h,m,v,g,y,E,b,M;if(0===arguments.length)return n.never();for(u=arguments.length,M="when: expecting arguments in the form (Observable+,function)+",x(M,u%2===0),E=[],h=[],t=0,m=[];u>t;){for(m[t]=arguments[t],m[t+1]=arguments[t+1],d=w.toArray(arguments[t]),e=k(arguments[t+1]),p={f:e,ixs:[]},b=!1,i=0,s=d.length;s>i;i++){for(y=d[i],r=w.indexOf(E,y),b||(b=C.isTrigger(y)),0>r&&(E.push(y),r=E.length-1),v=p.ixs,a=0,c=v.length;c>a;a++)o=v[a],o.index===r&&o.count++;p.ixs.push({index:r,count:1})}x("At least one EventStream required",b||!d.length),d.length>0&&h.push(p),t+=2}return E.length?(E=w.map(C.fromObservable,E),l=w.any(E,function(e){return e.flatten})&&A(w.map(function(e){return e.
obs},E)),g=new f(new n.Desc(n,"when",m),function(e){var r,o,i,a,u,s,c;return c=[],i=!1,a=function(e){var n,r,o;for(o=e.ixs,n=0,r=o.length;r>n;n++)if(t=o[n],!E[t.index].hasAtLeast(t.count))return!1;return!0},o=function(e){return!e.sync||e.ended},r=function(e){var n,r,o;for(o=e.ixs,n=0,r=o.length;r>n;n++)if(t=o[n],!E[t.index].mayHave(t.count))return!0},u=function(e){return!e.source.flatten},s=function(s){return function(p){var f,d,m;return d=function(){return R.whenDoneWith(g,f)},m=function(){var r,o,i,s,l,p;if(!(c.length>0))return n.more;for(l=n.more,p=c.pop(),o=0,i=h.length;i>o;o++)if(s=h[o],a(s))return r=function(){var e,n,r,o;for(r=s.ixs,o=[],n=0,e=r.length;e>n;n++)t=r[n],o.push(E[t.index].consume());return o}(),l=e(p.e.apply(function(){var e,t;return t=function(){var t,n,o;for(o=[],n=0,t=r.length;t>n;n++)e=r[n],o.push(e.value());return o}(),s.f.apply(s,t)})),c.length&&(c=w.filter(u,c)),l===n.noMore?l:m()},f=function(){var t;return t=m(),i&&(w.all(E,o)||w.all(h,r))&&(t=n.noMore,e(
F())),t===n.noMore&&p(),t},s.subscribe(function(t){var r;return t.isEnd()?(i=!0,s.markEnded(),d()):t.isError()?r=e(t):(s.push(t),s.sync&&(c.push({source:s,e:t}),l||R.hasWaiters()?d():f())),r===n.noMore&&p(),r||n.more})}},new n.CompositeUnsubscribe(function(){var e,t,n;for(n=[],e=0,t=E.length;t>e;e++)y=E[e],n.push(s(y));return n}()).unsubscribe})):n.never()},A=function(e,t){var n;return null==t&&(t=[]),n=function(e){var r;return w.contains(t,e)?!0:(r=e.internalDeps(),r.length?(t.push(e),w.any(r,n)):(t.push(e),!1))},w.any(e,n)},k=function(e){return w.isFunction(e)?e:w.always(e)},n.groupSimultaneous=function(){var e,t,o;return o=1<=arguments.length?Ce.call(arguments,0):[],1===o.length&&Q(o[0])&&(o=o[0]),t=function(){var t,n,i;for(i=[],t=0,n=o.length;n>t;t++)e=o[t],i.push(new r(e));return i}(),ge(new n.Desc(n,"groupSimultaneous",o),n.when(t,function(){var e;return e=1<=arguments.length?Ce.call(arguments,0):[]}))},E=function(e){function t(e,n,r){this.property=e,this.subscribe=Re(this.sub
scribe,this),t.__super__.constructor.call(this,n,r),this.current=v,this.currentValueRootId=void 0,this.propertyEnded=!1}return be(t,e),t.prototype.push=function(e){return e.isEnd()&&(this.propertyEnded=!0),e.hasValue()&&(this.current=new b(e),this.currentValueRootId=R.currentEventId()),t.__super__.push.call(this,e)},t.prototype.maybeSubSource=function(e,t){return t===n.noMore?oe:this.propertyEnded?(e(F()),oe):s.prototype.subscribe.call(this,e)},t.prototype.subscribe=function(e){var t,r,o,i;return r=!1,o=n.more,this.current.isDefined&&(this.hasSubscribers()||this.propertyEnded)?(t=R.currentEventId(),i=this.currentValueRootId,!this.propertyEnded&&i&&t&&t!==i?(R.whenDoneWith(this.property,function(t){return function(){return t.currentValueRootId===i?e(z(t.current.get().value())):void 0}}(this)),this.maybeSubSource(e,o)):(R.inTransaction(void 0,this,function(){return o=e(z(this.current.get().value()))},[]),this.maybeSubSource(e,o))):this.maybeSubSource(e,o)},t}(s),y=function(e){function
t(e,n,r){t.__super__.constructor.call(this,e),_(n),this.dispatcher=new E(this,n,r),se(this)}return be(t,e),t.prototype.changes=function(){return new f(new n.Desc(this,"changes",[]),function(e){return function(t){return e.dispatcher.subscribe(function(e){return e.isInitial()?void 0:t(e)})}}(this))},t.prototype.withHandler=function(e){return new t(new n.Desc(this,"withHandler",[e]),this.dispatcher.subscribe,e)},t.prototype.toProperty=function(){return I(arguments),this},t.prototype.toEventStream=function(){return new f(new n.Desc(this,"toEventStream",[]),function(e){return function(t){return e.dispatcher.subscribe(function(e){return e.isInitial()&&(e=e.toNext()),t(e)})}}(this))},t}(g),n.Property=y,n.constant=function(e){return new y(new n.Desc(n,"constant",[e]),function(t){return t(z(e)),t(F()),oe})},n.fromBinder=function(e,t){return null==t&&(t=w.id),new f(new n.Desc(n,"fromBinder",[e,t]),function(r){var o,i,a,u;return u=!1,o=!1,i=function(){return u?void 0:"undefined"!=typeof a&&nu
ll!==a?(a(),u=!0):o=!0},a=e(function(){var e,o,a,u,s,c;for(e=1<=arguments.length?Ce.call(arguments,0):[],c=t.apply(this,e),Q(c)&&w.last(c)instanceof p||(c=[c]),s=n.more,a=0,u=c.length;u>a;a++)if(o=c[a],s=r(o=pe(o)),s===n.noMore||o.isEnd())return i(),s;return s}),o&&i(),i})},j=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"],["bind","unbind"]],H=function(e){var t,n,r,o;for(t=0,n=j.length;n>t;t++)if(o=j[t],r=[e[o[0]],e[o[1]]],r[0]&&r[1])return r;throw new l("No suitable event methods in "+e)},n.fromEventTarget=function(e,t,r){var o,i,a;return o=H(e),i=o[0],a=o[1],ge(new n.Desc(n,"fromEvent",[e,t]),n.fromBinder(function(n){return i.call(e,t,n),function(){return a.call(e,t,n)}},r))},n.fromEvent=n.fromEventTarget,n.Observable.prototype.map=function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],L(this,t,e,function(e){return ge(new n.Desc(this,"map",[e]),this.withHandler(function(t){return this.push(t.fmap(e))}))})},n
.combineAsArray=function(){var e,t,r,o,i,a,u;for(u=1<=arguments.length?Ce.call(arguments,0):[],1===u.length&&Q(u[0])&&(u=u[0]),e=t=0,r=u.length;r>t;e=++t)a=u[e],G(a)||(u[e]=n.constant(a));return u.length?(i=function(){var e,t,n;for(n=[],e=0,t=u.length;t>e;e++)o=u[e],n.push(new C(o,!0));return n}(),ge(new n.Desc(n,"combineAsArray",u),n.when(i,function(){var e;return e=1<=arguments.length?Ce.call(arguments,0):[]}).toProperty())):n.constant([])},n.onValues=function(){var e,t,r;return r=2<=arguments.length?Ce.call(arguments,0,t=arguments.length-1):(t=0,[]),e=arguments[t++],n.combineAsArray(r).onValues(e)},n.combineWith=function(){var e,t;return e=arguments[0],t=2<=arguments.length?Ce.call(arguments,1):[],ge(new n.Desc(n,"combineWith",[e].concat(Ce.call(t))),n.combineAsArray(t).map(function(t){return e.apply(null,t)}))},n.Observable.prototype.combine=function(e,t){var r;return r=le(t),ge(new n.Desc(this,"combine",[e,t]),n.combineAsArray(this,e).map(function(e){return r(e[0],e[1])}))},n.O
bservable.prototype.withStateMachine=function(e,t){var r;return r=e,ge(new n.Desc(this,"withStateMachine",[e,t]),this.withHandler(function(e){var o,i,a,u,s,c,l;for(o=t(r,e),u=o[0],c=o[1],r=u,l=n.more,i=0,a=c.length;a>i;i++)if(s=c[i],l=this.push(s),l===n.noMore)return l;return l}))},n.Observable.prototype.skipDuplicates=function(e){return null==e&&(e=function(e,t){return e===t}),ge(new n.Desc(this,"skipDuplicates",[]),this.withStateMachine(v,function(t,n){return n.hasValue()?n.isInitial()||t===v||!e(t.get(),n.value())?[new b(n.value()),[n]]:[t,[]]:[t,[n]]}))},n.Observable.prototype.awaiting=function(e){return ge(new n.Desc(this,"awaiting",[e]),n.groupSimultaneous(this,e).map(function(e){var t,n;return t=e[0],n=e[1],0===n.length}).toProperty(!1).skipDuplicates())},n.Observable.prototype.not=function(){return ge(new n.Desc(this,"not",[]),this.map(function(e){return!e}))},n.Property.prototype.and=function(e){return ge(new n.Desc(this,"and",[e]),this.combine(e,function(e,t){return e&&t})
)},n.Property.prototype.or=function(e){return ge(new n.Desc(this,"or",[e]),this.combine(e,function(e,t){return e||t}))},n.scheduler={setTimeout:function(e,t){return setTimeout(e,t)},setInterval:function(e,t){return setInterval(e,t)},clearInterval:function(e){return clearInterval(e)},clearTimeout:function(e){return clearTimeout(e)},now:function(){return(new Date).getTime()}},n.EventStream.prototype.bufferWithTime=function(e){return ge(new n.Desc(this,"bufferWithTime",[e]),this.bufferWithTimeOrCount(e,Number.MAX_VALUE))},n.EventStream.prototype.bufferWithCount=function(e){return ge(new n.Desc(this,"bufferWithCount",[e]),this.bufferWithTimeOrCount(void 0,e))},n.EventStream.prototype.bufferWithTimeOrCount=function(e,t){var r;return r=function(n){return n.values.length===t?n.flush():void 0!==e?n.schedule():void 0},ge(new n.Desc(this,"bufferWithTimeOrCount",[e,t]),this.buffer(e,r,r))},n.EventStream.prototype.buffer=function(e,t,r){var o,i,a;return null==t&&(t=oe),null==r&&(r=oe),o={schedu
led:null,end:void 0,values:[],flush:function(){var e,t;if(this.scheduled&&(n.scheduler.clearTimeout(this.scheduled),this.scheduled=null),this.values.length>0){if(t=this.values,this.values=[],e=this.push(re(t)),null!=this.end)return this.push(this.end);if(e!==n.noMore)return r(this)}else if(null!=this.end)return this.push(this.end)},schedule:function(){return this.scheduled?void 0:this.scheduled=e(function(e){return function(){return e.flush()}}(this))}},a=n.more,w.isFunction(e)||(i=e,e=function(e){return n.scheduler.setTimeout(e,i)}),ge(new n.Desc(this,"buffer",[]),this.withHandler(function(e){return o.push=function(e){return function(t){return e.push(t)}}(this),e.isError()?a=this.push(e):e.isEnd()?(o.end=e,o.scheduled||o.flush()):(o.values.push(e.value()),t(o)),a}))},n.Observable.prototype.filter=function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],T(t),L(this,t,e,function(e){return ge(new n.Desc(this,"filter",[e]),this.withHandler(function(t){retu
rn t.filter(e)?this.push(t):n.more}))})},n.once=function(e){return new f(new u(n,"once",[e]),function(t){return t(pe(e)),t(F()),oe})},n.EventStream.prototype.concat=function(e){var t;return t=this,new f(new n.Desc(t,"concat",[e]),function(n){var r,o;return o=oe,r=t.dispatcher.subscribe(function(t){return t.isEnd()?o=e.dispatcher.subscribe(n):n(t)}),function(){return r(),o()}})},n.Observable.prototype.flatMap=function(){return W(this,ne(arguments))},n.Observable.prototype.flatMapFirst=function(){return W(this,ne(arguments),!0)},W=function(e,t,r,o){var a,u,s;return s=[e],a=[],u=new f(new n.Desc(e,"flatMap"+(r?"First":""),[t]),function(u){var s,c,l,p,f;return l=new i,p=[],f=function(e){var r;return r=te(t(e.value())),a.push(r),l.add(function(e,t){return r.dispatcher.subscribe(function(o){var i;return o.isEnd()?(w.remove(r,a),c(),s(t),n.noMore):(o instanceof h&&(o=o.toNext()),i=u(o),i===n.noMore&&e(),i)})})},c=function(){var e;return e=p.shift(),e?f(e):void 0},s=function(e){return e(),l
.empty()?u(F()):void 0},l.add(function(t,i){return e.dispatcher.subscribe(function(e){return e.isEnd()?s(i):e.isError()?u(e):r&&l.count()>1?n.more:l.unsubscribed?n.noMore:o&&l.count()>o?p.push(e):f(e)})}),l.unsubscribe}),u.internalDeps=function(){return a.length?s.concat(a):s},u},ne=function(e){return 1===e.length&&G(e[0])?w.always(e[0]):J(e)},te=function(e){return G(e)?e:n.once(e)},n.Observable.prototype.flatMapWithConcurrencyLimit=function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],ge(new n.Desc(this,"flatMapWithConcurrencyLimit",[t].concat(Ce.call(e))),W(this,ne(e),!1,t))},n.Observable.prototype.flatMapConcat=function(){return ge(new n.Desc(this,"flatMapConcat",Array.prototype.slice.call(arguments,0)),this.flatMapWithConcurrencyLimit.apply(this,[1].concat(Ce.call(arguments))))},n.later=function(e,t){return ge(new n.Desc(n,"later",[e,t]),n.fromBinder(function(r){var o,i;return i=function(){return r([t,F()])},o=n.scheduler.setTimeout(i,e),function
(){return n.scheduler.clearTimeout(o)}}))},n.Observable.prototype.bufferingThrottle=function(e){return ge(new n.Desc(this,"bufferingThrottle",[e]),this.flatMapConcat(function(t){return n.once(t).concat(n.later(e).filter(!1))}))},n.Property.prototype.bufferingThrottle=function(){return n.Observable.prototype.bufferingThrottle.apply(this,arguments).toProperty()},o=function(e){function t(){this.guardedSink=Re(this.guardedSink,this),this.subscribeAll=Re(this.subscribeAll,this),this.unsubAll=Re(this.unsubAll,this),this.sink=void 0,this.subscriptions=[],this.ended=!1,t.__super__.constructor.call(this,new n.Desc(n,"Bus",[]),this.subscribeAll)}return be(t,e),t.prototype.unsubAll=function(){var e,t,n,r;for(n=this.subscriptions,e=0,t=n.length;t>e;e++)r=n[e],"function"==typeof r.unsub&&r.unsub();return void 0},t.prototype.subscribeAll=function(e){var t,n,r,o;if(this.ended)e(F());else for(this.sink=e,r=N(this.subscriptions),t=0,n=r.length;n>t;t++)o=r[t],this.subscribeInput(o);return this.unsubA
ll},t.prototype.guardedSink=function(e){return function(t){return function(r){return r.isEnd()?(t.unsubscribeInput(e),n.noMore):t.sink(r)}}(this)},t.prototype.subscribeInput=function(e){return e.unsub=e.input.dispatcher.subscribe(this.guardedSink(e.input))},t.prototype.unsubscribeInput=function(e){var t,n,r,o,i;for(o=this.subscriptions,t=n=0,r=o.length;r>n;t=++n)if(i=o[t],i.input===e)return"function"==typeof i.unsub&&i.unsub(),void this.subscriptions.splice(t,1)},t.prototype.plug=function(e){var t;return P(e),this.ended?void 0:(t={input:e},this.subscriptions.push(t),null!=this.sink&&this.subscribeInput(t),function(t){return function(){return t.unsubscribeInput(e)}}(this))},t.prototype.end=function(){return this.ended=!0,this.unsubAll(),"function"==typeof this.sink?this.sink(F()):void 0},t.prototype.push=function(e){return this.ended?void 0:"function"==typeof this.sink?this.sink(re(e)):void 0},t.prototype.error=function(e){return"function"==typeof this.sink?this.sink(new l(e)):void 0
},t}(f),n.Bus=o,$=function(e,t){return ye(function(){var r,o,i;return o=arguments[0],r=2<=arguments.length?Ce.call(arguments,1):[],i=ie(t,[function(e,t){return o.apply(null,Ce.call(e).concat([t]))}]),ge(new n.Desc(n,e,[o].concat(Ce.call(r))),n.combineAsArray(r).flatMap(i))})},n.fromCallback=$("fromCallback",function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],n.fromBinder(function(n){return Z(t,e)(n),oe},function(e){return[e,F()]})}),n.fromNodeCallback=$("fromNodeCallback",function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],n.fromBinder(function(n){return Z(t,e)(n),oe},function(e,t){return e?[new l(e),F()]:[t,F()]})}),n.combineTemplate=function(e){var t,r,o,i,a,u,s,c,l,p,f;return s=[],f=[],u=function(e){return e[e.length-1]},p=function(e,t,n){return u(e)[t]=n},t=function(e,t){return function(n,r){return p(n,e,r[t])}},a=function(e,t){return function(n){return p(n,e,t)}},c=function(e){return Q(e)?[]:{}},l=function(e,
t){return function(n){var r;return r=c(t),p(n,e,r),n.push(r)}},o=function(e,n){var r;return G(n)?(f.push(n),s.push(t(e,f.length-1))):n!==Object(n)||"function"==typeof n||n instanceof RegExp||n instanceof Date?s.push(a(e,n)):(r=function(e){return e.pop()},s.push(l(e,n)),i(n),s.push(r))},i=function(e){return w.each(e,o)},i(e),r=function(t){var n,r,o,i,a;for(a=c(e),n=[a],o=0,i=s.length;i>o;o++)(r=s[o])(n,t);return a},ge(new n.Desc(n,"combineTemplate",[e]),n.combineAsArray(f).map(r))},M=function(e,t){var r;return r=new f(U(e,"justInitValue"),function(t){var o,i;return i=void 0,o=e.dispatcher.subscribe(function(e){return e.isEnd()||(i=e),n.noMore}),R.whenDoneWith(r,function(){return null!=i&&t(i),t(F())}),o}),r.concat(t).toProperty()},n.Observable.prototype.mapEnd=function(){var e;return e=J(arguments),ge(new n.Desc(this,"mapEnd",[e]),this.withHandler(function(t){return t.isEnd()?(this.push(re(e(t))),this.push(F()),n.noMore):this.push(t)}))},n.Observable.prototype.skipErrors=function(){r
eturn ge(new n.Desc(this,"skipErrors",[]),this.withHandler(function(e){return e.isError()?n.more:this.push(e);
+!function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){(function(e){(function(){var n,r,o,i,a,u,s,c,l,p,f,d,h,m,v,g,y,E,b,C,R,w,M,x,D,O,_,P,I,T,S,N,k,A,L,U,F,B,j,V,H,W,q,K,z,Q,Y,G,X,$,Z,J,ee,te,ne,re,oe,ie,ae,ue,se,ce,le,pe,fe,de,he,me,ve,ge,ye,Ee={}.hasOwnProperty,be=function(e,t){function n(){this.constructor=e}for(var r in t)Ee.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Ce=[].slice,Re=function(e,t){return function(){return e.apply(t,arguments)}};n={toString:function(){return"Bacon"}},n.version="0.7.70",d=("undefined"!=typeof e&&n
ull!==e?e:this).Error,oe=function(){},X=function(e,t){return t},q=function(e,t){return e},N=function(e){return e.slice(0)},x=function(e,t){if(!t)throw new d(e)},T=function(e){if(e instanceof g&&!(e instanceof y))throw new d("Observable is not a Property : "+e)},O=function(e){if(!(e instanceof f))throw new d("not an EventStream : "+e)},I=function(e){if(!(e instanceof g))throw new d("not an Observable : "+e)},_=function(e){return x("not a function : "+e,w.isFunction(e))},Q=function(e){return e instanceof Array},G=function(e){return e instanceof g},D=function(e){if(!Q(e))throw new d("not an array : "+e)},P=function(e){return x("no arguments supported",0===e.length)},S=function(e){if("string"!=typeof e)throw new d("not a string : "+e)},w={indexOf:Array.prototype.indexOf?function(e,t){return e.indexOf(t)}:function(e,t){var n,r,o,i;for(n=r=0,o=e.length;o>r;n=++r)if(i=e[n],t===i)return n;return-1},indexWhere:function(e,t){var n,r,o,i;for(n=r=0,o=e.length;o>r;n=++r)if(i=e[n],t(i))return n;r
eturn-1},head:function(e){return e[0]},always:function(e){return function(){return e}},negate:function(e){return function(t){return!e(t)}},empty:function(e){return 0===e.length},tail:function(e){return e.slice(1,e.length)},filter:function(e,t){var n,r,o,i;for(n=[],r=0,o=t.length;o>r;r++)i=t[r],e(i)&&n.push(i);return n},map:function(e,t){var n,r,o,i;for(o=[],n=0,r=t.length;r>n;n++)i=t[n],o.push(e(i));return o},each:function(e,t){var n,r;for(n in e)Ee.call(e,n)&&(r=e[n],t(n,r));return void 0},toArray:function(e){return Q(e)?e:[e]},contains:function(e,t){return-1!==w.indexOf(e,t)},id:function(e){return e},last:function(e){return e[e.length-1]},all:function(e,t){var n,r,o;for(null==t&&(t=w.id),n=0,r=e.length;r>n;n++)if(o=e[n],!t(o))return!1;return!0},any:function(e,t){var n,r,o;for(null==t&&(t=w.id),n=0,r=e.length;r>n;n++)if(o=e[n],t(o))return!0;return!1},without:function(e,t){return w.filter(function(t){return t!==e},t)},remove:function(e,t){var n;return n=w.indexOf(t,e),n>=0?t.splice(
n,1):void 0},fold:function(e,t,n){var r,o,i;for(r=0,o=e.length;o>r;r++)i=e[r],t=n(t,i);return t},flatMap:function(e,t){return w.fold(t,[],function(t,n){return t.concat(e(n))})},cached:function(e){var t;return t=v,function(){return t===v&&(t=e(),e=void 0),t}},isFunction:function(e){return"function"==typeof e},toString:function(e){var t,n,r,o;try{return ae++,null==e?"undefined":w.isFunction(e)?"function":Q(e)?ae>5?"[..]":"["+w.map(w.toString,e).toString()+"]":null!=(null!=e?e.toString:void 0)&&e.toString!==Object.prototype.toString?e.toString():"object"==typeof e?ae>5?"{..}":(n=function(){var n;n=[];for(r in e)Ee.call(e,r)&&(o=function(){try{return e[r]}catch(n){return t=n}}(),n.push(w.toString(r)+":"+w.toString(o)));return n}(),"{"+n+"}"):e}finally{ae--}}},ae=0,n._=w,R=n.UpdateBarrier=function(){var e,t,r,o,i,a,u,s,c,l,p,f,d,h;return l=void 0,p=[],f={},t=[],r=0,e=function(e){return l?t.push(e):e()},d=function(e,t){var n;return l?(n=f[e.id],null==n?(n=f[e.id]=[t],p.push(e)):n.push(t))
:t()},i=function(){for(;p.length>0;)u(0);return void 0},u=function(e){var t,n,r,o,i,u;for(o=p[e],i=o.id,u=f[i],p.splice(e,1),delete f[i],a(o),n=0,r=u.length;r>n;n++)(t=u[n])();return void 0},a=function(e){var t,n,r,o,i;for(n=e.internalDeps(),o=0,i=n.length;i>o;o++)t=n[o],a(t),f[t.id]&&(r=w.indexOf(p,t),u(r));return void 0},c=function(e,n,o,a){var u,s;if(l)return o.apply(n,a);l=e;try{s=o.apply(n,a),i()}finally{for(l=void 0;r<t.length;)u=t[r],r++,u();r=0,t=[]}return s},o=function(){return l?l.id:void 0},h=function(t,r){var o,i,a,u;return u=!1,i=!1,o=function(){return i=!0},a=function(){return u=!0,o()},o=t.dispatcher.subscribe(function(t){return e(function(){var e;return u||(e=r(t),e!==n.noMore)?void 0:a()})}),i&&o(),a},s=function(){return p.length>0},{whenDoneWith:d,hasWaiters:s,inTransaction:c,currentEventId:o,wrappedSubscribe:h,afterTransaction:e}}(),C=function(){function e(e,t,n){this.obs=e,this.sync=t,this.lazy=null!=n?n:!1,this.queue=[]}return e.prototype.subscribe=function(e){r
eturn this.obs.dispatcher.subscribe(e)},e.prototype.toString=function(){return this.obs.toString()},e.prototype.markEnded=function(){return this.ended=!0},e.prototype.consume=function(){return this.lazy?{value:w.always(this.queue[0])}:this.queue[0]},e.prototype.push=function(e){return this.queue=[e]},e.prototype.mayHave=function(){return!0},e.prototype.hasAtLeast=function(){return this.queue.length},e.prototype.flatten=!0,e}(),a=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return be(t,e),t.prototype.consume=function(){return this.queue.shift()},t.prototype.push=function(e){return this.queue.push(e)},t.prototype.mayHave=function(e){return!this.ended||this.queue.length>=e},t.prototype.hasAtLeast=function(e){return this.queue.length>=e},t.prototype.flatten=!1,t}(C),r=function(e){function t(e){t.__super__.constructor.call(this,e,!0)}return be(t,e),t.prototype.consume=function(){var e;return e=this.queue,this.queue=[],{value:function(){return e}}},t.proto
type.push=function(e){return this.queue.push(e.value())},t.prototype.hasAtLeast=function(){return!0},t}(C),C.isTrigger=function(e){return e instanceof C?e.sync:e instanceof f},C.fromObservable=function(e){return e instanceof C?e:e instanceof y?new C(e,!1):new a(e,!0)},u=function(){function e(e,t,n){this.context=e,this.method=t,this.args=n}return e.prototype.deps=function(){return this.cached||(this.cached=V([this.context].concat(this.args)))},e.prototype.toString=function(){return w.toString(this.context)+"."+w.toString(this.method)+"("+w.map(w.toString,this.args)+")"},e}(),U=function(){var e,t,n;return t=arguments[0],n=arguments[1],e=3<=arguments.length?Ce.call(arguments,2):[],(t||n)instanceof u?t||n:new u(t,n,e)},ge=function(e,t){return t.desc=e,t},V=function(e){return Q(e)?w.flatMap(V,e):G(e)?[e]:e instanceof C?[e.obs]:[]},n.Desc=u,n.Desc.empty=new n.Desc("","",[]),ye=function(e){return function(){var t,n,r,o;return r=arguments[0],t=2<=arguments.length?Ce.call(arguments,1):[],"ob
ject"==typeof r&&t.length&&(n=r,o=t[0],r=function(){return n[o].apply(n,arguments)},t=t.slice(1)),e.apply(null,[r].concat(Ce.call(t)))}},J=function(e){return e=Array.prototype.slice.call(e),ee.apply(null,e)},ie=function(e,t){return function(){var n;return n=1<=arguments.length?Ce.call(arguments,0):[],e.apply(null,t.concat(n))}},me=function(e){return function(t){return function(n){var r;return null==n?void 0:(r=n[t],w.isFunction(r)?r.apply(n,e):r)}}},fe=function(e,t){var n,r;return r=e.slice(1).split("."),n=w.map(me(t),r),function(t){var r,o;for(r=0,o=n.length;o>r;r++)e=n[r],t=e(t);return t}},Y=function(e){return"string"==typeof e&&e.length>1&&"."===e.charAt(0)},ee=ye(function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],w.isFunction(t)?e.length?ie(t,e):t:Y(t)?fe(t,e):w.always(t)}),Z=function(e,t){return ee.apply(null,[e].concat(Ce.call(t)))},L=function(e,t,n,r){var o;return t instanceof y?(o=t.sampledBy(e,function(e,t){return[e,t]}),r.call(o,function
(e){var t,n;return t=e[0],n=e[1],t}).map(function(e){var t,n;return t=e[0],n=e[1]})):(t=Z(t,n),r.call(e,t))},le=function(e){var t;if(w.isFunction(e))return e;if(Y(e))return t=de(e),function(e,n){return e[t](n)};throw new d("not a function or a field key: "+e)},de=function(e){return e.slice(1)},b=function(){function e(e){this.value=e}return e.prototype.getOrElse=function(){return this.value},e.prototype.get=function(){return this.value},e.prototype.filter=function(t){return t(this.value)?new e(this.value):v},e.prototype.map=function(t){return new e(t(this.value))},e.prototype.forEach=function(e){return e(this.value)},e.prototype.isDefined=!0,e.prototype.toArray=function(){return[this.value]},e.prototype.inspect=function(){return"Some("+this.value+")"},e.prototype.toString=function(){return this.inspect()},e}(),v={getOrElse:function(e){return e},filter:function(){return v},map:function(){return v},forEach:function(){},isDefined:!1,toArray:function(){return[]},inspect:function(){return
"None"},toString:function(){return this.inspect()}},he=function(e){return e instanceof b||e===v?e:new b(e)},n.noMore=["<no-more>"],n.more=["<more>"],B=0,p=function(){function e(){this.id=++B}return e.prototype.isEvent=function(){return!0},e.prototype.isEnd=function(){return!1},e.prototype.isInitial=function(){return!1},e.prototype.isNext=function(){return!1},e.prototype.isError=function(){return!1},e.prototype.hasValue=function(){return!1},e.prototype.filter=function(){return!0},e.prototype.inspect=function(){return this.toString()},e.prototype.log=function(){return this.toString()},e}(),m=function(e){function t(e,n){t.__super__.constructor.call(this),!n&&w.isFunction(e)||e instanceof t?(this.valueF=e,this.valueInternal=void 0):(this.valueF=void 0,this.valueInternal=e)}return be(t,e),t.prototype.isNext=function(){return!0},t.prototype.hasValue=function(){return!0},t.prototype.value=function(){return this.valueF instanceof t?(this.valueInternal=this.valueF.value(),this.valueF=void 0)
:this.valueF&&(this.valueInternal=this.valueF(),this.valueF=void 0),this.valueInternal},t.prototype.fmap=function(e){var t,n;return this.valueInternal?(n=this.valueInternal,this.apply(function(){return e(n)})):(t=this,this.apply(function(){return e(t.value())}))},t.prototype.apply=function(e){return new t(e)},t.prototype.filter=function(e){return e(this.value())},t.prototype.toString=function(){return w.toString(this.value())},t.prototype.log=function(){return this.value()},t}(p),h=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return be(t,e),t.prototype.isInitial=function(){return!0},t.prototype.isNext=function(){return!1},t.prototype.apply=function(e){return new t(e)},t.prototype.toNext=function(){return new m(this)},t}(m),c=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return be(t,e),t.prototype.isEnd=function(){return!0},t.prototype.fmap=function(){return this},t.prototype.apply=function(){return this},t.prototype.to
String=function(){return"<end>"},t}(p),l=function(e){function t(e){this.error=e}return be(t,e),t.prototype.isError=function(){return!0},t.prototype.fmap=function(){return this},t.prototype.apply=function(){return this},t.prototype.toString=function(){return"<error> "+w.toString(this.error)},t}(p),n.Event=p,n.Initial=h,n.Next=m,n.End=c,n.Error=l,z=function(e){return new h(e,!0)},re=function(e){return new m(e,!0)},F=function(){return new c},pe=function(e){return e instanceof p?e:re(e)},K=0,se=function(){},g=function(){function e(e){this.desc=e,this.id=++K,this.initialDesc=this.desc}return e.prototype.subscribe=function(e){return R.wrappedSubscribe(this,e)},e.prototype.subscribeInternal=function(e){return this.dispatcher.subscribe(e)},e.prototype.onValue=function(){var e;return e=J(arguments),this.subscribe(function(t){return t.hasValue()?e(t.value()):void 0})},e.prototype.onValues=function(e){return this.onValue(function(t){return e.apply(null,t)})},e.prototype.onError=function(){var
e;return e=J(arguments),this.subscribe(function(t){return t.isError()?e(t.error):void 0})},e.prototype.onEnd=function(){var e;return e=J(arguments),this.subscribe(function(t){return t.isEnd()?e():void 0})},e.prototype.name=function(e){return this._name=e,this},e.prototype.withDescription=function(){return this.desc=U.apply(null,arguments),this},e.prototype.toString=function(){return this._name?this._name:this.desc.toString()},e.prototype.internalDeps=function(){return this.initialDesc.deps()},e}(),g.prototype.assign=g.prototype.onValue,g.prototype.forEach=g.prototype.onValue,g.prototype.inspect=g.prototype.toString,n.Observable=g,i=function(){function e(e){var t,n,r;for(null==e&&(e=[]),this.unsubscribe=Re(this.unsubscribe,this),this.unsubscribed=!1,this.subscriptions=[],this.starting=[],t=0,n=e.length;n>t;t++)r=e[t],this.add(r)}return e.prototype.add=function(e){var t,n,r;if(!this.unsubscribed)return t=!1,n=oe,this.starting.push(e),r=function(r){return function(){return r.unsubscrib
ed?void 0:(t=!0,r.remove(n),w.remove(e,r.starting))}}(this),n=e(this.unsubscribe,r),this.unsubscribed||t?n():this.subscriptions.push(n),w.remove(e,this.starting),n},e.prototype.remove=function(e){return this.unsubscribed?void 0:void 0!==w.remove(e,this.subscriptions)?e():void 0},e.prototype.unsubscribe=function(){var e,t,n,r;if(!this.unsubscribed){for(this.unsubscribed=!0,n=this.subscriptions,e=0,t=n.length;t>e;e++)(r=n[e])();return this.subscriptions=[],this.starting=[]}},e.prototype.count=function(){return this.unsubscribed?0:this.subscriptions.length+this.starting.length},e.prototype.empty=function(){return 0===this.count()},e}(),n.CompositeUnsubscribe=i,s=function(){function e(e,t){this._subscribe=e,this._handleEvent=t,this.subscribe=Re(this.subscribe,this),this.handleEvent=Re(this.handleEvent,this),this.subscriptions=[],this.queue=[]}return e.prototype.pushing=!1,e.prototype.ended=!1,e.prototype.prevError=void 0,e.prototype.unsubSrc=void 0,e.prototype.hasSubscribers=function(){
return this.subscriptions.length>0},e.prototype.removeSub=function(e){return this.subscriptions=w.without(e,this.subscriptions)},e.prototype.push=function(e){return e.isEnd()&&(this.ended=!0),R.inTransaction(e,this,this.pushIt,[e])},e.prototype.pushToSubscriptions=function(e){var t,r,o,i,a,u;try{for(u=this.subscriptions,r=0,o=u.length;o>r;r++)a=u[r],i=a.sink(e),(i===n.noMore||e.isEnd())&&this.removeSub(a);return!0}catch(s){throw t=s,this.pushing=!1,this.queue=[],t}},e.prototype.pushIt=function(e){if(this.pushing)return this.queue.push(e),n.more;if(e!==this.prevError){for(e.isError()&&(this.prevError=e),this.pushing=!0,this.pushToSubscriptions(e),this.pushing=!1;this.queue.length;)e=this.queue.shift(),this.push(e);return this.hasSubscribers()?n.more:(this.unsubscribeFromSource(),n.noMore)}},e.prototype.handleEvent=function(e){return this._handleEvent?this._handleEvent(e):this.push(e)},e.prototype.unsubscribeFromSource=function(){return this.unsubSrc&&this.unsubSrc(),this.unsubSrc=voi
d 0},e.prototype.subscribe=function(e){var t;return this.ended?(e(F()),oe):(_(e),t={sink:e},this.subscriptions.push(t),1===this.subscriptions.length&&(this.unsubSrc=this._subscribe(this.handleEvent),_(this.unsubSrc)),function(e){return function(){return e.removeSub(t),e.hasSubscribers()?void 0:e.unsubscribeFromSource()}}(this))},e}(),n.Dispatcher=s,f=function(e){function t(e,n,r){w.isFunction(e)&&(r=n,n=e,e=u.empty),t.__super__.constructor.call(this,e),_(n),this.dispatcher=new s(n,r),se(this)}return be(t,e),t.prototype.toProperty=function(e){var t,r;return r=0===arguments.length?v:he(function(){return e}),t=this.dispatcher,new y(new n.Desc(this,"toProperty",[e]),function(e){var o,i,a,u;return o=!1,u=oe,i=n.more,a=function(){return o?void 0:r.forEach(function(t){return o=!0,i=e(new h(t)),i===n.noMore?(u(),u=oe):void 0})},u=t.subscribe(function(t){return t.hasValue()?o&&t.isInitial()?n.more:(t.isInitial()||a(),o=!0,r=new b(t),e(t)):(t.isEnd()&&(i=a()),i!==n.noMore?e(t):void 0)}),a(),u
})},t.prototype.toEventStream=function(){return this},t.prototype.withHandler=function(e){return new t(new n.Desc(this,"withHandler",[e]),this.dispatcher.subscribe,e)},t}(g),n.EventStream=f,n.never=function(){return new f(U(n,"never"),function(e){return e(F()),oe})},n.when=function(){var e,t,r,o,i,a,u,s,c,l,p,d,h,m,v,g,y,E,b,M;if(0===arguments.length)return n.never();for(u=arguments.length,M="when: expecting arguments in the form (Observable+,function)+",x(M,u%2===0),E=[],h=[],t=0,m=[];u>t;){for(m[t]=arguments[t],m[t+1]=arguments[t+1],d=w.toArray(arguments[t]),e=k(arguments[t+1]),p={f:e,ixs:[]},b=!1,i=0,s=d.length;s>i;i++){for(y=d[i],r=w.indexOf(E,y),b||(b=C.isTrigger(y)),0>r&&(E.push(y),r=E.length-1),v=p.ixs,a=0,c=v.length;c>a;a++)o=v[a],o.index===r&&o.count++;p.ixs.push({index:r,count:1})}x("At least one EventStream required",b||!d.length),d.length>0&&h.push(p),t+=2}return E.length?(E=w.map(C.fromObservable,E),l=w.any(E,function(e){return e.flatten})&&A(w.map(function(e){return e.
obs},E)),g=new f(new n.Desc(n,"when",m),function(e){var r,o,i,a,u,s,c;return c=[],i=!1,a=function(e){var n,r,o;for(o=e.ixs,n=0,r=o.length;r>n;n++)if(t=o[n],!E[t.index].hasAtLeast(t.count))return!1;return!0},o=function(e){return!e.sync||e.ended},r=function(e){var n,r,o;for(o=e.ixs,n=0,r=o.length;r>n;n++)if(t=o[n],!E[t.index].mayHave(t.count))return!0},u=function(e){return!e.source.flatten},s=function(s){return function(p){var f,d,m;return d=function(){return R.whenDoneWith(g,f)},m=function(){var r,o,i,s,l,p;if(!(c.length>0))return n.more;for(l=n.more,p=c.pop(),o=0,i=h.length;i>o;o++)if(s=h[o],a(s))return r=function(){var e,n,r,o;for(r=s.ixs,o=[],n=0,e=r.length;e>n;n++)t=r[n],o.push(E[t.index].consume());return o}(),l=e(p.e.apply(function(){var e,t;return t=function(){var t,n,o;for(o=[],n=0,t=r.length;t>n;n++)e=r[n],o.push(e.value());return o}(),s.f.apply(s,t)})),c.length&&(c=w.filter(u,c)),l===n.noMore?l:m()},f=function(){var t;return t=m(),i&&(w.all(E,o)||w.all(h,r))&&(t=n.noMore,e(
F())),t===n.noMore&&p(),t},s.subscribe(function(t){var r;return t.isEnd()?(i=!0,s.markEnded(),d()):t.isError()?r=e(t):(s.push(t),s.sync&&(c.push({source:s,e:t}),l||R.hasWaiters()?d():f())),r===n.noMore&&p(),r||n.more})}},new n.CompositeUnsubscribe(function(){var e,t,n;for(n=[],e=0,t=E.length;t>e;e++)y=E[e],n.push(s(y));return n}()).unsubscribe})):n.never()},A=function(e,t){var n;return null==t&&(t=[]),n=function(e){var r;return w.contains(t,e)?!0:(r=e.internalDeps(),r.length?(t.push(e),w.any(r,n)):(t.push(e),!1))},w.any(e,n)},k=function(e){return w.isFunction(e)?e:w.always(e)},n.groupSimultaneous=function(){var e,t,o;return o=1<=arguments.length?Ce.call(arguments,0):[],1===o.length&&Q(o[0])&&(o=o[0]),t=function(){var t,n,i;for(i=[],t=0,n=o.length;n>t;t++)e=o[t],i.push(new r(e));return i}(),ge(new n.Desc(n,"groupSimultaneous",o),n.when(t,function(){var e;return e=1<=arguments.length?Ce.call(arguments,0):[]}))},E=function(e){function t(e,n,r){this.property=e,this.subscribe=Re(this.sub
scribe,this),t.__super__.constructor.call(this,n,r),this.current=v,this.currentValueRootId=void 0,this.propertyEnded=!1}return be(t,e),t.prototype.push=function(e){return e.isEnd()&&(this.propertyEnded=!0),e.hasValue()&&(this.current=new b(e),this.currentValueRootId=R.currentEventId()),t.__super__.push.call(this,e)},t.prototype.maybeSubSource=function(e,t){return t===n.noMore?oe:this.propertyEnded?(e(F()),oe):s.prototype.subscribe.call(this,e)},t.prototype.subscribe=function(e){var t,r,o,i;return r=!1,o=n.more,this.current.isDefined&&(this.hasSubscribers()||this.propertyEnded)?(t=R.currentEventId(),i=this.currentValueRootId,!this.propertyEnded&&i&&t&&t!==i?(R.whenDoneWith(this.property,function(t){return function(){return t.currentValueRootId===i?e(z(t.current.get().value())):void 0}}(this)),this.maybeSubSource(e,o)):(R.inTransaction(void 0,this,function(){return o=e(z(this.current.get().value()))},[]),this.maybeSubSource(e,o))):this.maybeSubSource(e,o)},t}(s),y=function(e){function
t(e,n,r){t.__super__.constructor.call(this,e),_(n),this.dispatcher=new E(this,n,r),se(this)}return be(t,e),t.prototype.changes=function(){return new f(new n.Desc(this,"changes",[]),function(e){return function(t){return e.dispatcher.subscribe(function(e){return e.isInitial()?void 0:t(e)})}}(this))},t.prototype.withHandler=function(e){return new t(new n.Desc(this,"withHandler",[e]),this.dispatcher.subscribe,e)},t.prototype.toProperty=function(){return P(arguments),this},t.prototype.toEventStream=function(){return new f(new n.Desc(this,"toEventStream",[]),function(e){return function(t){return e.dispatcher.subscribe(function(e){return e.isInitial()&&(e=e.toNext()),t(e)})}}(this))},t}(g),n.Property=y,n.constant=function(e){return new y(new n.Desc(n,"constant",[e]),function(t){return t(z(e)),t(F()),oe})},n.fromBinder=function(e,t){return null==t&&(t=w.id),new f(new n.Desc(n,"fromBinder",[e,t]),function(r){var o,i,a,u;return u=!1,o=!1,i=function(){return u?void 0:"undefined"!=typeof a&&nu
ll!==a?(a(),u=!0):o=!0},a=e(function(){var e,o,a,u,s,c;for(e=1<=arguments.length?Ce.call(arguments,0):[],c=t.apply(this,e),Q(c)&&w.last(c)instanceof p||(c=[c]),s=n.more,a=0,u=c.length;u>a;a++)if(o=c[a],s=r(o=pe(o)),s===n.noMore||o.isEnd())return i(),s;return s}),o&&i(),i})},j=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"],["bind","unbind"]],H=function(e){var t,n,r,o;for(t=0,n=j.length;n>t;t++)if(o=j[t],r=[e[o[0]],e[o[1]]],r[0]&&r[1])return r;throw new l("No suitable event methods in "+e)},n.fromEventTarget=function(e,t,r){var o,i,a;return o=H(e),i=o[0],a=o[1],ge(new n.Desc(n,"fromEvent",[e,t]),n.fromBinder(function(n){return i.call(e,t,n),function(){return a.call(e,t,n)}},r))},n.fromEvent=n.fromEventTarget,n.Observable.prototype.map=function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],L(this,t,e,function(e){return ge(new n.Desc(this,"map",[e]),this.withHandler(function(t){return this.push(t.fmap(e))}))})},n
.combineAsArray=function(){var e,t,r,o,i,a,u;for(u=1<=arguments.length?Ce.call(arguments,0):[],1===u.length&&Q(u[0])&&(u=u[0]),e=t=0,r=u.length;r>t;e=++t)a=u[e],G(a)||(u[e]=n.constant(a));return u.length?(i=function(){var e,t,n;for(n=[],e=0,t=u.length;t>e;e++)o=u[e],n.push(new C(o,!0));return n}(),ge(new n.Desc(n,"combineAsArray",u),n.when(i,function(){var e;return e=1<=arguments.length?Ce.call(arguments,0):[]}).toProperty())):n.constant([])},n.onValues=function(){var e,t,r;return r=2<=arguments.length?Ce.call(arguments,0,t=arguments.length-1):(t=0,[]),e=arguments[t++],n.combineAsArray(r).onValues(e)},n.combineWith=function(){var e,t;return e=arguments[0],t=2<=arguments.length?Ce.call(arguments,1):[],ge(new n.Desc(n,"combineWith",[e].concat(Ce.call(t))),n.combineAsArray(t).map(function(t){return e.apply(null,t)}))},n.Observable.prototype.combine=function(e,t){var r;return r=le(t),ge(new n.Desc(this,"combine",[e,t]),n.combineAsArray(this,e).map(function(e){return r(e[0],e[1])}))},n.O
bservable.prototype.withStateMachine=function(e,t){var r;return r=e,ge(new n.Desc(this,"withStateMachine",[e,t]),this.withHandler(function(e){var o,i,a,u,s,c,l;for(o=t(r,e),u=o[0],c=o[1],r=u,l=n.more,i=0,a=c.length;a>i;i++)if(s=c[i],l=this.push(s),l===n.noMore)return l;return l}))},n.Observable.prototype.skipDuplicates=function(e){return null==e&&(e=function(e,t){return e===t}),ge(new n.Desc(this,"skipDuplicates",[]),this.withStateMachine(v,function(t,n){return n.hasValue()?n.isInitial()||t===v||!e(t.get(),n.value())?[new b(n.value()),[n]]:[t,[]]:[t,[n]]}))},n.Observable.prototype.awaiting=function(e){return ge(new n.Desc(this,"awaiting",[e]),n.groupSimultaneous(this,e).map(function(e){var t,n;return t=e[0],n=e[1],0===n.length}).toProperty(!1).skipDuplicates())},n.Observable.prototype.not=function(){return ge(new n.Desc(this,"not",[]),this.map(function(e){return!e}))},n.Property.prototype.and=function(e){return ge(new n.Desc(this,"and",[e]),this.combine(e,function(e,t){return e&&t})
)},n.Property.prototype.or=function(e){return ge(new n.Desc(this,"or",[e]),this.combine(e,function(e,t){return e||t}))},n.scheduler={setTimeout:function(e,t){return setTimeout(e,t)},setInterval:function(e,t){return setInterval(e,t)},clearInterval:function(e){return clearInterval(e)},clearTimeout:function(e){return clearTimeout(e)},now:function(){return(new Date).getTime()}},n.EventStream.prototype.bufferWithTime=function(e){return ge(new n.Desc(this,"bufferWithTime",[e]),this.bufferWithTimeOrCount(e,Number.MAX_VALUE))},n.EventStream.prototype.bufferWithCount=function(e){return ge(new n.Desc(this,"bufferWithCount",[e]),this.bufferWithTimeOrCount(void 0,e))},n.EventStream.prototype.bufferWithTimeOrCount=function(e,t){var r;return r=function(n){return n.values.length===t?n.flush():void 0!==e?n.schedule():void 0},ge(new n.Desc(this,"bufferWithTimeOrCount",[e,t]),this.buffer(e,r,r))},n.EventStream.prototype.buffer=function(e,t,r){var o,i,a;return null==t&&(t=oe),null==r&&(r=oe),o={schedu
led:null,end:void 0,values:[],flush:function(){var e,t;if(this.scheduled&&(n.scheduler.clearTimeout(this.scheduled),this.scheduled=null),this.values.length>0){if(t=this.values,this.values=[],e=this.push(re(t)),null!=this.end)return this.push(this.end);if(e!==n.noMore)return r(this)}else if(null!=this.end)return this.push(this.end)},schedule:function(){return this.scheduled?void 0:this.scheduled=e(function(e){return function(){return e.flush()}}(this))}},a=n.more,w.isFunction(e)||(i=e,e=function(e){return n.scheduler.setTimeout(e,i)}),ge(new n.Desc(this,"buffer",[]),this.withHandler(function(e){return o.push=function(e){return function(t){return e.push(t)}}(this),e.isError()?a=this.push(e):e.isEnd()?(o.end=e,o.scheduled||o.flush()):(o.values.push(e.value()),t(o)),a}))},n.Observable.prototype.filter=function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],T(t),L(this,t,e,function(e){return ge(new n.Desc(this,"filter",[e]),this.withHandler(function(t){retu
rn t.filter(e)?this.push(t):n.more}))})},n.once=function(e){return new f(new u(n,"once",[e]),function(t){return t(pe(e)),t(F()),oe})},n.EventStream.prototype.concat=function(e){var t;return t=this,new f(new n.Desc(t,"concat",[e]),function(n){var r,o;return o=oe,r=t.dispatcher.subscribe(function(t){return t.isEnd()?o=e.dispatcher.subscribe(n):n(t)}),function(){return r(),o()}})},n.Observable.prototype.flatMap=function(){return W(this,ne(arguments))},n.Observable.prototype.flatMapFirst=function(){return W(this,ne(arguments),!0)},W=function(e,t,r,o){var a,u,s;return s=[e],a=[],u=new f(new n.Desc(e,"flatMap"+(r?"First":""),[t]),function(u){var s,c,l,p,f;return l=new i,p=[],f=function(e){var r;return r=te(t(e.value())),a.push(r),l.add(function(e,t){return r.dispatcher.subscribe(function(o){var i;return o.isEnd()?(w.remove(r,a),c(),s(t),n.noMore):(o instanceof h&&(o=o.toNext()),i=u(o),i===n.noMore&&e(),i)})})},c=function(){var e;return e=p.shift(),e?f(e):void 0},s=function(e){return e(),l
.empty()?u(F()):void 0},l.add(function(t,i){return e.dispatcher.subscribe(function(e){return e.isEnd()?s(i):e.isError()?u(e):r&&l.count()>1?n.more:l.unsubscribed?n.noMore:o&&l.count()>o?p.push(e):f(e)})}),l.unsubscribe}),u.internalDeps=function(){return a.length?s.concat(a):s},u},ne=function(e){return 1===e.length&&G(e[0])?w.always(e[0]):J(e)},te=function(e){return G(e)?e:n.once(e)},n.Observable.prototype.flatMapWithConcurrencyLimit=function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],ge(new n.Desc(this,"flatMapWithConcurrencyLimit",[t].concat(Ce.call(e))),W(this,ne(e),!1,t))},n.Observable.prototype.flatMapConcat=function(){return ge(new n.Desc(this,"flatMapConcat",Array.prototype.slice.call(arguments,0)),this.flatMapWithConcurrencyLimit.apply(this,[1].concat(Ce.call(arguments))))},n.later=function(e,t){return ge(new n.Desc(n,"later",[e,t]),n.fromBinder(function(r){var o,i;return i=function(){return r([t,F()])},o=n.scheduler.setTimeout(i,e),function
(){return n.scheduler.clearTimeout(o)}}))},n.Observable.prototype.bufferingThrottle=function(e){return ge(new n.Desc(this,"bufferingThrottle",[e]),this.flatMapConcat(function(t){return n.once(t).concat(n.later(e).filter(!1))}))},n.Property.prototype.bufferingThrottle=function(){return n.Observable.prototype.bufferingThrottle.apply(this,arguments).toProperty()},o=function(e){function t(){this.guardedSink=Re(this.guardedSink,this),this.subscribeAll=Re(this.subscribeAll,this),this.unsubAll=Re(this.unsubAll,this),this.sink=void 0,this.subscriptions=[],this.ended=!1,t.__super__.constructor.call(this,new n.Desc(n,"Bus",[]),this.subscribeAll)}return be(t,e),t.prototype.unsubAll=function(){var e,t,n,r;for(n=this.subscriptions,e=0,t=n.length;t>e;e++)r=n[e],"function"==typeof r.unsub&&r.unsub();return void 0},t.prototype.subscribeAll=function(e){var t,n,r,o;if(this.ended)e(F());else for(this.sink=e,r=N(this.subscriptions),t=0,n=r.length;n>t;t++)o=r[t],this.subscribeInput(o);return this.unsubA
ll},t.prototype.guardedSink=function(e){return function(t){return function(r){return r.isEnd()?(t.unsubscribeInput(e),n.noMore):t.sink(r)}}(this)},t.prototype.subscribeInput=function(e){return e.unsub=e.input.dispatcher.subscribe(this.guardedSink(e.input))},t.prototype.unsubscribeInput=function(e){var t,n,r,o,i;for(o=this.subscriptions,t=n=0,r=o.length;r>n;t=++n)if(i=o[t],i.input===e)return"function"==typeof i.unsub&&i.unsub(),void this.subscriptions.splice(t,1)},t.prototype.plug=function(e){var t;return I(e),this.ended?void 0:(t={input:e},this.subscriptions.push(t),null!=this.sink&&this.subscribeInput(t),function(t){return function(){return t.unsubscribeInput(e)}}(this))},t.prototype.end=function(){return this.ended=!0,this.unsubAll(),"function"==typeof this.sink?this.sink(F()):void 0},t.prototype.push=function(e){return this.ended?void 0:"function"==typeof this.sink?this.sink(re(e)):void 0},t.prototype.error=function(e){return"function"==typeof this.sink?this.sink(new l(e)):void 0
},t}(f),n.Bus=o,$=function(e,t){return ye(function(){var r,o,i;return o=arguments[0],r=2<=arguments.length?Ce.call(arguments,1):[],i=ie(t,[function(e,t){return o.apply(null,Ce.call(e).concat([t]))}]),ge(new n.Desc(n,e,[o].concat(Ce.call(r))),n.combineAsArray(r).flatMap(i))})},n.fromCallback=$("fromCallback",function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],n.fromBinder(function(n){return Z(t,e)(n),oe},function(e){return[e,F()]})}),n.fromNodeCallback=$("fromNodeCallback",function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],n.fromBinder(function(n){return Z(t,e)(n),oe},function(e,t){return e?[new l(e),F()]:[t,F()]})}),n.combineTemplate=function(e){var t,r,o,i,a,u,s,c,l,p,f;return s=[],f=[],u=function(e){return e[e.length-1]},p=function(e,t,n){return u(e)[t]=n},t=function(e,t){return function(n,r){return p(n,e,r[t])}},a=function(e,t){return function(n){return p(n,e,t)}},c=function(e){return Q(e)?[]:{}},l=function(e,
t){return function(n){var r;return r=c(t),p(n,e,r),n.push(r)}},o=function(e,n){var r;return G(n)?(f.push(n),s.push(t(e,f.length-1))):n!==Object(n)||"function"==typeof n||n instanceof RegExp||n instanceof Date?s.push(a(e,n)):(r=function(e){return e.pop()},s.push(l(e,n)),i(n),s.push(r))},i=function(e){return w.each(e,o)},i(e),r=function(t){var n,r,o,i,a;for(a=c(e),n=[a],o=0,i=s.length;i>o;o++)(r=s[o])(n,t);return a},ge(new n.Desc(n,"combineTemplate",[e]),n.combineAsArray(f).map(r))},M=function(e,t){var r;return r=new f(U(e,"justInitValue"),function(t){var o,i;return i=void 0,o=e.dispatcher.subscribe(function(e){return e.isEnd()||(i=e),n.noMore}),R.whenDoneWith(r,function(){return null!=i&&t(i),t(F())}),o}),r.concat(t).toProperty()},n.Observable.prototype.mapEnd=function(){var e;return e=J(arguments),ge(new n.Desc(this,"mapEnd",[e]),this.withHandler(function(t){return t.isEnd()?(this.push(re(e(t))),this.push(F()),n.noMore):this.push(t)}))},n.Observable.prototype.skipErrors=function(){r
eturn ge(new n.Desc(this,"skipErrors",[]),this.withHandler(function(e){return e.isError()?n.more:this.push(e);
-}))},n.EventStream.prototype.takeUntil=function(e){var t;return t={},ge(new n.Desc(this,"takeUntil",[e]),n.groupSimultaneous(this.mapEnd(t),e.skipErrors()).withHandler(function(r){var o,i,a,u,s,c;if(r.hasValue()){if(u=r.value(),o=u[0],e=u[1],e.length)return this.push(F());for(s=n.more,i=0,a=o.length;a>i;i++)c=o[i],s=this.push(c===t?F():re(c));return s}return this.push(r)}))},n.Property.prototype.takeUntil=function(e){var t;return t=this.changes().takeUntil(e),ge(new n.Desc(this,"takeUntil",[e]),M(this,t))},n.Observable.prototype.flatMapLatest=function(){var e,t;return e=ne(arguments),t=this.toEventStream(),ge(new n.Desc(this,"flatMapLatest",[e]),t.flatMap(function(n){return te(e(n)).takeUntil(t)}))},n.Property.prototype.delayChanges=function(e,t){return ge(e,M(this,t(this.changes())))},n.EventStream.prototype.delay=function(e){return ge(new n.Desc(this,"delay",[e]),this.flatMap(function(t){return n.later(e,t)}))},n.Property.prototype.delay=function(e){return this.delayChanges(new n.
Desc(this,"delay",[e]),function(t){return t.delay(e)})},n.EventStream.prototype.debounce=function(e){return ge(new n.Desc(this,"debounce",[e]),this.flatMapLatest(function(t){return n.later(e,t)}))},n.Property.prototype.debounce=function(e){return this.delayChanges(new n.Desc(this,"debounce",[e]),function(t){return t.debounce(e)})},n.EventStream.prototype.debounceImmediate=function(e){return ge(new n.Desc(this,"debounceImmediate",[e]),this.flatMapFirst(function(t){return n.once(t).concat(n.later(e).filter(!1))}))},n.Observable.prototype.decode=function(e){return ge(new n.Desc(this,"decode",[e]),this.combine(n.combineTemplate(e),function(e,t){return t[e]}))},n.Observable.prototype.scan=function(e,t){var r,o,i,a;return t=le(t),r=he(e),o=!1,a=function(e){return function(a){var u,s,c,l;return u=!1,l=oe,s=n.more,c=function(){return u?void 0:r.forEach(function(e){return u=o=!0,s=a(new h(function(){return e})),s===n.noMore?(l(),l=oe):void 0})},l=e.dispatcher.subscribe(function(e){var i,l;re
turn e.hasValue()?o&&e.isInitial()?n.more:(e.isInitial()||c(),u=o=!0,l=r.getOrElse(void 0),i=t(l,e.value()),r=new b(i),a(e.apply(function(){return i}))):(e.isEnd()&&(s=c()),s!==n.noMore?a(e):void 0)}),R.whenDoneWith(i,c),l}}(this),i=new y(new n.Desc(this,"scan",[e,t]),a)},n.Observable.prototype.diff=function(e,t){return t=le(t),ge(new n.Desc(this,"diff",[e,t]),this.scan([e],function(e,n){return[n,t(e[0],n)]}).filter(function(e){return 2===e.length}).map(function(e){return e[1]}))},n.Observable.prototype.doAction=function(){var e;return e=J(arguments),ge(new n.Desc(this,"doAction",[e]),this.withHandler(function(t){return t.hasValue()&&e(t.value()),this.push(t)}))},n.Observable.prototype.doError=function(){var e;return e=J(arguments),ge(new n.Desc(this,"doError",[e]),this.withHandler(function(t){return t.isError()&&e(t.error),this.push(t)}))},n.Observable.prototype.doLog=function(){var e;return e=1<=arguments.length?Ce.call(arguments,0):[],ge(new n.Desc(this,"doLog",e),this.withHandle
r(function(t){return"undefined"!=typeof console&&null!==console&&"function"==typeof console.log&&console.log.apply(console,Ce.call(e).concat([t.log()])),this.push(t)}))},n.Observable.prototype.endOnError=function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],null==t&&(t=!0),L(this,t,e,function(e){return ge(new n.Desc(this,"endOnError",[]),this.withHandler(function(t){return t.isError()&&e(t.error)?(this.push(t),this.push(F())):this.push(t)}))})},g.prototype.errors=function(){return ge(new n.Desc(this,"errors",[]),this.filter(function(){return!1}))},ve=function(e){return[e,F()]},n.fromPromise=function(e,t,r){return null==r&&(r=ve),ge(new n.Desc(n,"fromPromise",[e]),n.fromBinder(function(n){var r;return null!=(r=e.then(n,function(e){return n(new l(e))}))&&"function"==typeof r.done&&r.done(),function(){return t&&"function"==typeof e.abort?e.abort():void 0}},r))},n.Observable.prototype.mapError=function(){var e;return e=J(arguments),ge(new n.Desc(this,"ma
pError",[e]),this.withHandler(function(t){return this.push(t.isError()?re(e(t.error)):t)}))},n.Observable.prototype.flatMapError=function(e){return ge(new n.Desc(this,"flatMapError",[e]),this.mapError(function(e){return new l(e)}).flatMap(function(t){return t instanceof l?e(t.error):n.once(t)}))},n.EventStream.prototype.sampledBy=function(e,t){return ge(new n.Desc(this,"sampledBy",[e,t]),this.toProperty().sampledBy(e,t))},n.Property.prototype.sampledBy=function(e,t){var r,o,i,a,u;return null!=t?t=le(t):(r=!0,t=function(e){return e.value()}),u=new C(this,!1,r),i=new C(e,!0,r),a=n.when([u,i],t),o=e instanceof y?a.toProperty():a,ge(new n.Desc(this,"sampledBy",[e,t]),o)},n.Property.prototype.sample=function(e){return ge(new n.Desc(this,"sample",[e]),this.sampledBy(n.interval(e,{})))},n.Observable.prototype.map=function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],t instanceof y?t.sampledBy(this,q):L(this,t,e,function(e){return ge(new n.Desc(this,"map",[e
]),this.withHandler(function(t){return this.push(t.fmap(e))}))})},n.Observable.prototype.fold=function(e,t){return ge(new n.Desc(this,"fold",[e,t]),this.scan(e,t).sampledBy(this.filter(!1).mapEnd().toProperty()))},g.prototype.reduce=g.prototype.fold,n.fromPoll=function(e,t){return ge(new n.Desc(n,"fromPoll",[e,t]),n.fromBinder(function(t){var r;return r=n.scheduler.setInterval(t,e),function(){return n.scheduler.clearInterval(r)}},t))},n.Observable.prototype.groupBy=function(e,t){var r,o;return null==t&&(t=n._.id),o={},r=this,r.filter(function(t){return!o[e(t)]}).map(function(i){var a,u,s,c;return u=e(i),c=r.filter(function(t){return e(t)===u}),a=n.once(i).concat(c),s=t(a,i).withHandler(function(e){return this.push(e),e.isEnd()?delete o[u]:void 0}),o[u]=s})},n.fromArray=function(e){var t;return D(e),e.length?(t=0,new f(new n.Desc(n,"fromArray",[e]),function(r){var o,i,a,u,s;return s=!1,u=n.more,a=!1,i=!1,o=function(){var c;if(i=!0,!a){for(a=!0;i;)i=!1,u===n.noMore||s||(c=e[t++],u=r(p
e(c)),u!==n.noMore&&(t===e.length?r(F()):R.afterTransaction(o)));return a=!1}},o(),function(){return s=!0}})):ge(new n.Desc(n,"fromArray",e),n.never())},n.EventStream.prototype.holdWhen=function(e){var t,r,o;return r=!1,t=[],o=this,new f(new n.Desc(this,"holdWhen",[e]),function(n){var a,u,s;return a=new i,s=!1,u=function(e){return"function"==typeof e&&e(),a.empty()&&s?n(F()):void 0},a.add(function(o,i){return e.subscribeInternal(function(e){var o,a,s,c,l;if(!e.hasValue())return e.isEnd()?u(i):n(e);if(r=e.value(),!r){for(c=t,t=[],s=[],o=0,a=c.length;a>o;o++)l=c[o],s.push(n(re(l)));return s}})}),a.add(function(e,i){return o.subscribeInternal(function(e){return r&&e.hasValue()?t.push(e.value()):e.isEnd()&&t.length?u(i):n(e)})}),s=!0,u(),a.unsubscribe})},n.interval=function(e,t){return null==t&&(t={}),ge(new n.Desc(n,"interval",[e,t]),n.fromPoll(e,function(){return re(t)}))},n.$={},n.$.asEventStream=function(e,t,r){var o;return w.isFunction(t)&&(o=[t,void 0],r=o[0],t=o[1]),ge(new n.Desc
(this.selector||this,"asEventStream",[e]),n.fromBinder(function(n){return function(r){return n.on(e,t,r),function(){return n.off(e,t,r)}}}(this),r))},null!=(ue="undefined"!=typeof jQuery&&null!==jQuery?jQuery:"undefined"!=typeof Zepto&&null!==Zepto?Zepto:void 0)&&(ue.fn.asEventStream=n.$.asEventStream),n.Observable.prototype.log=function(){var e;return e=1<=arguments.length?Ce.call(arguments,0):[],this.subscribe(function(t){return"undefined"!=typeof console&&null!==console&&"function"==typeof console.log?console.log.apply(console,Ce.call(e).concat([t.log()])):void 0}),this},n.EventStream.prototype.merge=function(e){var t;return O(e),t=this,ge(new n.Desc(t,"merge",[e]),n.mergeAll(this,e))},n.mergeAll=function(){var e;return e=1<=arguments.length?Ce.call(arguments,0):[],Q(e[0])&&(e=e[0]),e.length?new f(new n.Desc(n,"mergeAll",e),function(t){var r,o,i;return r=0,i=function(o){return function(i){return o.dispatcher.subscribe(function(o){var a;return o.isEnd()?(r++,r===e.length?t(F()):n.
more):(a=t(o),a===n.noMore&&i(),a)})}},o=w.map(i,e),new n.CompositeUnsubscribe(o).unsubscribe}):n.never()},n.repeatedly=function(e,t){var r;return r=0,ge(new n.Desc(n,"repeatedly",[e,t]),n.fromPoll(e,function(){return t[r++%t.length]}))},n.repeat=function(e){var t;return t=0,n.fromBinder(function(r){var o,i,a,u,s;return o=!1,a=n.more,s=function(){},i=function(e){return e.isEnd()?o?u():o=!0:a=r(e)},u=function(){var u;for(o=!0;o&&a!==n.noMore;)u=e(t++),o=!1,u?s=u.subscribeInternal(i):r(F());return o=!0},u(),function(){return s()}})},n.retry=function(e){var t,r,o,i,a,u,s;if(!w.isFunction(e.source))throw new d("'source' option has to be a function");return s=e.source,u=e.retries||0,a=e.maxRetries||u,t=e.delay||function(){return 0},i=e.isRetryable||function(){return!0},o=!1,r=null,ge(new n.Desc(n,"retry",[e]),n.repeat(function(){var e,c,l;return o?null:(l=function(){return s().endOnError().withHandler(function(e){return e.isError()?(r=e,i(r.error)&&u>0?void 0:(o=!0,this.push(e))):(e.hasV
alue()&&(r=null,o=!0),this.push(e))})},r?(e={error:r.error,retriesDone:a-u},c=n.later(t(e)).filter(!1),u-=1,c.concat(n.once().flatMap(l))):l())}))},n.sequentially=function(e,t){var r;return r=0,ge(new n.Desc(n,"sequentially",[e,t]),n.fromPoll(e,function(){var e;return e=t[r++],r<t.length?e:r===t.length?[e,F()]:F()}))},n.Observable.prototype.skip=function(e){return ge(new n.Desc(this,"skip",[e]),this.withHandler(function(t){return t.hasValue()&&e>0?(e--,n.more):this.push(t)}))},n.Observable.prototype.take=function(e){return 0>=e?n.never():ge(new n.Desc(this,"take",[e]),this.withHandler(function(t){return t.hasValue()?(e--,e>0?this.push(t):(0===e&&this.push(t),this.push(F()),n.noMore)):this.push(t)}))},n.EventStream.prototype.skipUntil=function(e){var t;return t=e.take(1).map(!0).toProperty(!1),ge(new n.Desc(this,"skipUntil",[e]),this.filter(t))},n.EventStream.prototype.skipWhile=function(){var e,t,r;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],T(t),r=!1,L(this,
t,e,function(e){return ge(new n.Desc(this,"skipWhile",[e]),this.withHandler(function(t){return!r&&t.hasValue()&&e(t.value())?n.more:(t.hasValue()&&(r=!0),this.push(t))}))})},n.Observable.prototype.slidingWindow=function(e,t){return null==t&&(t=0),ge(new n.Desc(this,"slidingWindow",[e,t]),this.scan([],function(t,n){return t.concat([n]).slice(-e)}).filter(function(e){return e.length>=t}))},n.spy=function(e){return ce.push(e)},ce=[],se=function(e){var t,n,r;if(ce.length&&!se.running)try{for(se.running=!0,t=0,n=ce.length;n>t;t++)(r=ce[t])(e)}finally{delete se.running}return void 0},n.Property.prototype.startWith=function(e){return ge(new n.Desc(this,"startWith",[e]),this.scan(e,function(e,t){return t}))},n.EventStream.prototype.startWith=function(e){return ge(new n.Desc(this,"startWith",[e]),n.once(e).concat(this))},n.Observable.prototype.takeWhile=function(){var e,t;return t=arguments[0],e=2<=arguments.length?Ce.call(arguments,1):[],T(t),L(this,t,e,function(e){return ge(new n.Desc(this
,"takeWhile",[e]),this.withHandler(function(t){return t.filter(e)?this.push(t):(this.push(F()),n.noMore)}))})},n.update=function(){var e,t,r,o;for(t=arguments[0],o=2<=arguments.length?Ce.call(arguments,1):[],r=function(e){return function(){var t;return t=1<=arguments.length?Ce.call(arguments,0):[],function(n){return e.apply(null,[n].concat(t))}}},e=o.length-1;e>0;)o[e]instanceof Function||(o[e]=function(e){return function(){return e}}(o[e])),o[e]=r(o[e]),e-=2;return ge(new n.Desc(n,"update",[t].concat(Ce.call(o))),n.when.apply(n,o).scan(t,function(e,t){return t(e)}))},n.zipAsArray=function(){var e;return e=1<=arguments.length?Ce.call(arguments,0):[],Q(e[0])&&(e=e[0]),ge(new n.Desc(n,"zipAsArray",e),n.zipWith(e,function(){var e;return e=1<=arguments.length?Ce.call(arguments,0):[]}))},n.zipWith=function(){var e,t,r;return e=arguments[0],r=2<=arguments.length?Ce.call(arguments,1):[],w.isFunction(e)||(t=[e,r[0]],r=t[0],e=t[1]),r=w.map(function(e){return e.toEventStream()},r),ge(new n.De
sc(n,"zipWith",[e].concat(Ce.call(r))),n.when(r,e))},n.Observable.prototype.zip=function(e,t){return null==t&&(t=Array),ge(new n.Desc(this,"zip",[e]),n.zipWith([this,e],t))},n.Observable.prototype.first=function(){return ge(new n.Desc(this,"first",[]),this.take(1))},n.Observable.prototype.last=function(){var e;return ge(new n.Desc(this,"last",[]),this.withHandler(function(t){return t.isEnd()?(e&&this.push(e),this.push(F()),n.noMore):void(e=t)}))},n.EventStream.prototype.throttle=function(e){return ge(new n.Desc(this,"throttle",[e]),this.bufferWithTime(e).map(function(e){return e[e.length-1]}))},n.Property.prototype.throttle=function(e){return this.delayChanges(new n.Desc(this,"throttle",[e]),function(t){return t.throttle(e)})},g.prototype.firstToPromise=function(e){var t=this;if("function"!=typeof e){if("function"!=typeof Promise)throw new d("There isn't default Promise, use shim or parameter");e=Promise}return new e(function(e,r){return t.subscribe(function(t){return t.hasValue()&&
e(t.value()),t.isError()&&r(t.error),n.noMore})})},g.prototype.toPromise=function(e){return this.last().firstToPromise(e)},"undefined"!=typeof define&&null!==define&&null!=define.amd?(define([],function(){return n}),this.Bacon=n):"undefined"!=typeof t&&null!==t&&null!=t.exports?(t.exports=n,n.Bacon=n):this.Bacon=n}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){!function(){"use strict";function e(){for(var t="",n=0;n<arguments.length;n++){var r=arguments[n];if(r){var o=typeof r;if("string"===o||"number"===o)t+=" "+r;else if(Array.isArray(r))t+=" "+e.apply(null,r);else if("object"===o)for(var i in r)r.hasOwnProperty(i)&&r[i]&&(t+=" "+i)}}return t.substr(1)}"undefined"!=typeof t&&t.exports?t.exports=e:"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return e}):window.classNames=e}()},{}],3:[function(e,t,n){"use strict";var r=e("./focusNode"),o={com
ponentDidMount:function(){this.props.autoFocus&&r(this.getDOMNode())}};t.exports=o},{"./focusNode":121}],4:[function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case _.topCompositionStart:return I.compositionStart;case _.topCompositionEnd:return I.compositionEnd;case _.topCompositionUpdate:return I.compositionUpdate}}function a(e,t){return e===_.topKeyDown&&t.keyCode===C}function u(e,t){switch(e){case _.topKeyUp:return-1!==b.indexOf(t.keyCode);case _.topKeyDown:return t.keyCode!==C;case _.topKeyPress:case _.topMouseDown:case _.topBlur:return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function c(e,t,n,r){var o,c;if(R?o=i(e):T?u(e,r)&&(o=I.compositionEnd):a(e,r)&&(o=I.compositionStart),!o)return null;x&&(T||o!==I.compositionStart?o===I.comp
ositionEnd&&T&&(c=T.getData()):T=v.getPooled(t));var l=g.getPooled(o,n,r);if(c)l.data=c;else{var p=s(r);null!==p&&(l.data=p)}return h.accumulateTwoPhaseDispatches(l),l}function l(e,t){switch(e){case _.topCompositionEnd:return s(t);case _.topKeyPress:var n=t.which;return n!==D?null:(P=!0,O);case _.topTextInput:var r=t.data;return r===O&&P?null:r;default:return null}}function p(e,t){if(T){if(e===_.topCompositionEnd||u(e,t)){var n=T.getData();return v.release(T),T=null,n}return null}switch(e){case _.topPaste:return null;case _.topKeyPress:return t.which&&!o(t)?String.fromCharCode(t.which):null;case _.topCompositionEnd:return x?null:t.data;default:return null}}function f(e,t,n,r){var o;if(o=M?l(e,r):p(e,r),!o)return null;var i=y.getPooled(I.beforeInput,n,r);return i.data=o,h.accumulateTwoPhaseDispatches(i),i}var d=e("./EventConstants"),h=e("./EventPropagators"),m=e("./ExecutionEnvironment"),v=e("./FallbackCompositionState"),g=e("./SyntheticCompositionEvent"),y=e("./SyntheticInputEvent")
,E=e("./keyOf"),b=[9,13,27,32],C=229,R=m.canUseDOM&&"CompositionEvent"in window,w=null;m.canUseDOM&&"documentMode"in document&&(w=document.documentMode);var M=m.canUseDOM&&"TextEvent"in window&&!w&&!r(),x=m.canUseDOM&&(!R||w&&w>8&&11>=w),D=32,O=String.fromCharCode(D),_=d.topLevelTypes,I={beforeInput:{phasedRegistrationNames:{bubbled:E({onBeforeInput:null}),captured:E({onBeforeInputCapture:null})},dependencies:[_.topCompositionEnd,_.topKeyPress,_.topTextInput,_.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:E({onCompositionEnd:null}),captured:E({onCompositionEndCapture:null})},dependencies:[_.topBlur,_.topCompositionEnd,_.topKeyDown,_.topKeyPress,_.topKeyUp,_.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:E({onCompositionStart:null}),captured:E({onCompositionStartCapture:null})},dependencies:[_.topBlur,_.topCompositionStart,_.topKeyDown,_.topKeyPress,_.topKeyUp,_.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:E({onCompositionUpdate:
null}),captured:E({onCompositionUpdateCapture:null})},dependencies:[_.topBlur,_.topCompositionUpdate,_.topKeyDown,_.topKeyPress,_.topKeyUp,_.topMouseDown]}},P=!1,T=null,S={eventTypes:I,extractEvents:function(e,t,n,r){return[c(e,t,n,r),f(e,t,n,r)]}};t.exports=S},{"./EventConstants":16,"./EventPropagators":21,"./ExecutionEnvironment":22,"./FallbackCompositionState":23,"./SyntheticCompositionEvent":95,"./SyntheticInputEvent":99,"./keyOf":143}],5:[function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){i.forEach(function(t){o[r(t,e)]=o[e]})});var a={background:{backgroundImage:!0,backgroundPosition:!0,backgro
undRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}},u={isUnitlessNumber:o,shorthandPropertyExpansions:a};t.exports=u},{}],6:[function(e,t,n){"use strict";var r=e("./CSSProperty"),o=e("./ExecutionEnvironment"),i=(e("./camelizeStyleName"),e("./dangerousStyleValue")),a=e("./hyphenateStyleName"),u=e("./memoizeStringOnly"),s=(e("./warning"),u(function(e){return a(e)})),c="cssFloat";o.canUseDOM&&void 0===document.documentElement.style.cssFloat&&(c="styleFloat");var l={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t+=s(n)+":",t+
=i(n,r)+";")}return t||null},setValueForStyles:function(e,t){var n=e.style;for(var o in t)if(t.hasOwnProperty(o)){var a=i(o,t[o]);if("float"===o&&(o=c),a)n[o]=a;else{var u=r.shorthandPropertyExpansions[o];if(u)for(var s in u)n[s]="";else n[o]=""}}}};t.exports=l},{"./CSSProperty":5,"./ExecutionEnvironment":22,"./camelizeStyleName":110,"./dangerousStyleValue":115,"./hyphenateStyleName":135,"./memoizeStringOnly":145,"./warning":156}],7:[function(e,t,n){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=e("./PooledClass"),i=e("./Object.assign"),a=e("./invariant");i(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){a(e.length===t.length),this._callbacks=null,this._contexts=null;for(var n=0,r=e.length;r>n;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=
null},destructor:function(){this.reset()}}),o.addPoolingTo(r),t.exports=r},{"./Object.assign":28,"./PooledClass":29,"./invariant":137}],8:[function(e,t,n){"use strict";function r(e){return"SELECT"===e.nodeName||"INPUT"===e.nodeName&&"file"===e.type}function o(e){var t=w.getPooled(_.change,P,e);b.accumulateTwoPhaseDispatches(t),R.batchedUpdates(i,t)}function i(e){E.enqueueEvents(e),E.processEventQueue()}function a(e,t){I=e,P=t,I.attachEvent("onchange",o)}function u(){I&&(I.detachEvent("onchange",o),I=null,P=null)}function s(e,t,n){return e===O.topChange?n:void 0}function c(e,t,n){e===O.topFocus?(u(),a(t,n)):e===O.topBlur&&u()}function l(e,t){I=e,P=t,T=e.value,S=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(I,"value",A),I.attachEvent("onpropertychange",f)}function p(){I&&(delete I.value,I.detachEvent("onpropertychange",f),I=null,P=null,T=null,S=null)}function f(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==T&&(T=t,o(e))}}function
d(e,t,n){return e===O.topInput?n:void 0}function h(e,t,n){e===O.topFocus?(p(),l(t,n)):e===O.topBlur&&p()}function m(e,t,n){return e!==O.topSelectionChange&&e!==O.topKeyUp&&e!==O.topKeyDown||!I||I.value===T?void 0:(T=I.value,P)}function v(e){return"INPUT"===e.nodeName&&("checkbox"===e.type||"radio"===e.type)}function g(e,t,n){return e===O.topClick?n:void 0}var y=e("./EventConstants"),E=e("./EventPluginHub"),b=e("./EventPropagators"),C=e("./ExecutionEnvironment"),R=e("./ReactUpdates"),w=e("./SyntheticEvent"),M=e("./isEventSupported"),x=e("./isTextInputElement"),D=e("./keyOf"),O=y.topLevelTypes,_={change:{phasedRegistrationNames:{bubbled:D({onChange:null}),captured:D({onChangeCapture:null})},dependencies:[O.topBlur,O.topChange,O.topClick,O.topFocus,O.topInput,O.topKeyDown,O.topKeyUp,O.topSelectionChange]}},I=null,P=null,T=null,S=null,N=!1;C.canUseDOM&&(N=M("change")&&(!("documentMode"in document)||document.documentMode>8));var k=!1;C.canUseDOM&&(k=M("input")&&(!("documentMode"in docum
ent)||document.documentMode>9));var A={get:function(){return S.get.call(this)},set:function(e){T=""+e,S.set.call(this,e)}},L={eventTypes:_,extractEvents:function(e,t,n,o){var i,a;if(r(t)?N?i=s:a=c:x(t)?k?i=d:(i=m,a=h):v(t)&&(i=g),i){var u=i(e,t,n);if(u){var l=w.getPooled(_.change,u,o);return b.accumulateTwoPhaseDispatches(l),l}}a&&a(e,t,n)}};t.exports=L},{"./EventConstants":16,"./EventPluginHub":18,"./EventPropagators":21,"./ExecutionEnvironment":22,"./ReactUpdates":89,"./SyntheticEvent":97,"./isEventSupported":138,"./isTextInputElement":140,"./keyOf":143}],9:[function(e,t,n){"use strict";var r=0,o={createReactRootIndex:function(){return r++}};t.exports=o},{}],10:[function(e,t,n){"use strict";function r(e,t,n){e.insertBefore(t,e.childNodes[n]||null)}var o=e("./Danger"),i=e("./ReactMultiChildUpdateTypes"),a=e("./setTextContent"),u=e("./invariant"),s={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:a,processUpdates:function(e,t){for(var n,s=null,c
=null,l=0;l<e.length;l++)if(n=e[l],n.type===i.MOVE_EXISTING||n.type===i.REMOVE_NODE){var p=n.fromIndex,f=n.parentNode.childNodes[p],d=n.parentID;u(f),s=s||{},s[d]=s[d]||[],s[d][p]=f,c=c||[],c.push(f)}var h=o.dangerouslyRenderMarkup(t);if(c)for(var m=0;m<c.length;m++)c[m].parentNode.removeChild(c[m]);for(var v=0;v<e.length;v++)switch(n=e[v],n.type){case i.INSERT_MARKUP:r(n.parentNode,h[n.markupIndex],n.toIndex);break;case i.MOVE_EXISTING:r(n.parentNode,s[n.parentID][n.fromIndex],n.toIndex);break;case i.TEXT_CONTENT:a(n.parentNode,n.textContent);break;case i.REMOVE_NODE:}}};t.exports=s},{"./Danger":13,"./ReactMultiChildUpdateTypes":74,"./invariant":137,"./setTextContent":151}],11:[function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=e("./invariant"),i={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=e.Properties||{},
n=e.DOMAttributeNames||{},a=e.DOMPropertyNames||{},s=e.DOMMutationMethods||{};e.isCustomAttribute&&u._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var c in t){o(!u.isStandardName.hasOwnProperty(c)),u.isStandardName[c]=!0;var l=c.toLowerCase();if(u.getPossibleStandardName[l]=c,n.hasOwnProperty(c)){var p=n[c];u.getPossibleStandardName[p]=c,u.getAttributeName[c]=p}else u.getAttributeName[c]=l;u.getPropertyName[c]=a.hasOwnProperty(c)?a[c]:c,u.getMutationMethod[c]=s.hasOwnProperty(c)?s[c]:null;var f=t[c];u.mustUseAttribute[c]=r(f,i.MUST_USE_ATTRIBUTE),u.mustUseProperty[c]=r(f,i.MUST_USE_PROPERTY),u.hasSideEffects[c]=r(f,i.HAS_SIDE_EFFECTS),u.hasBooleanValue[c]=r(f,i.HAS_BOOLEAN_VALUE),u.hasNumericValue[c]=r(f,i.HAS_NUMERIC_VALUE),u.hasPositiveNumericValue[c]=r(f,i.HAS_POSITIVE_NUMERIC_VALUE),u.hasOverloadedBooleanValue[c]=r(f,i.HAS_OVERLOADED_BOOLEAN_VALUE),o(!u.mustUseAttribute[c]||!u.mustUseProperty[c]),o(u.mustUseProperty[c]||!u.hasSideEffects[c]),o(!!u.hasBooleanValue[c]+
!!u.hasNumericValue[c]+!!u.hasOverloadedBooleanValue[c]<=1)}}},a={},u={ID_ATTRIBUTE_NAME:"data-reactid",isStandardName:{},getPossibleStandardName:{},getAttributeName:{},getProperty
<TRUNCATED>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[3/3] cordova-registry-web git commit: Perf improvements and other
updates
Posted by mu...@apache.org.
Perf improvements and other updates
Project: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/commit/a820ef4e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/a820ef4e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/a820ef4e
Branch: refs/heads/master
Commit: a820ef4ed94e3c2aa2557ac8df1698a2c7e8a75e
Parents: 48600a0
Author: Murat Sutunc <su...@gmail.com>
Authored: Thu Aug 6 17:05:14 2015 -0700
Committer: Murat Sutunc <su...@gmail.com>
Committed: Tue Aug 11 18:50:20 2015 -0700
----------------------------------------------------------------------
attachments/npm/authors.html | 84 ++++++++++++++++++
attachments/npm/css/styles.css | 2 +-
attachments/npm/faq.html | 13 ++-
attachments/npm/img/loading.gif | Bin 0 -> 7573 bytes
attachments/npm/index.html | 4 +-
attachments/npm/js/app.js | 13 +--
npm-search/src/authors.html | 84 ++++++++++++++++++
npm-search/src/css/base.css | 2 +-
npm-search/src/developers.html | 75 ----------------
npm-search/src/faq.html | 13 ++-
npm-search/src/img/loading.gif | Bin 0 -> 25213 bytes
npm-search/src/index.html | 4 +-
npm-search/src/js/app.js | 121 +++++++++++++++++++++++---
npm-search/src/js/empty-plugin.jsx | 18 ++++
npm-search/src/js/plugin.jsx | 8 +-
npm-search/src/js/pluginlist.jsx | 150 ++++++++++++--------------------
16 files changed, 393 insertions(+), 198 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/attachments/npm/authors.html
----------------------------------------------------------------------
diff --git a/attachments/npm/authors.html b/attachments/npm/authors.html
new file mode 100644
index 0000000..5cfb73d
--- /dev/null
+++ b/attachments/npm/authors.html
@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv='Content-type' content='text/html; charset=utf-8'>
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+ <title>Cordova Search Website</title>
+ <link rel="stylesheet" href="css/styles.css" />
+ </head>
+
+ <body>
+ <div id="header">
+ <div class="wrap">
+ <a class="logo" href="//cordova.apache.org/"></a>
+ <div class="menu">
+ <a href="index.html">Home</a>
+ <a href="authors.html">Authors</a>
+ <a href="faq.html">FAQ</a>
+ </div>
+ <form class="menu-dropdown">
+ <select onchange="location = this.options[this.selectedIndex].value;">
+ <option value="index.html">Home</option>
+ <option value="authors.html">Authors</option>
+ <option value="faq.html">FAQ</option>
+ </select>
+ </form>
+ </div>
+ <div class="shadow"></div>
+ </div>
+ <div class="header-placeholder"></div>
+ <div class="wrap">
+ <h2 class="icon icon-about">npm Plugin Search for Plugin Authors</h2>
+ <h4>How do I add a new plugin to Plugin Search?</h4>
+ <p>If you want your Cordova Plugin to show up in search, simply add <code>ecosystem:cordova</code> keyword to the <code>package.json</code> file of your plugin and publish it to npm registry.</p>
+ <h4>How can I tag supported platforms for my plugin?</h4>
+ <p>Similar to <code>ecosystem:cordova</code>, platform support too uses keywords. Just add the platform name prefixed with "<strong>cordova-</strong>" to plugins list of keywords. E.g.</p>
+ <pre><code> "keywords": [
+ "ecosystem:cordova",
+ "cordova-android",
+ "cordova-ios",
+ "cordova-windows"
+ ]</code></pre>
+ <h4>My plugin is in plugins.cordova.io but I want to publish to npm. How do I do that?</h4>
+ <ol>
+ <li>
+ <strong>Optional</strong> Decide if you want to change your plugin’s id. If you decide to change it,
+ <ol>
+ <li>Update the id in plugin.xml and update your readme with the new id.</li>
+ <li>Send a pull request adding your new id and old id to Cordova Registry Mapper.</li>
+ <li>We integrate that module into the Cordova CLI to warn users to use the new id when adding plugins to their projects.</li>
+ </ol>
+ </li>
+ <li>Add a <code>package.json</code> to your plugins,
+ <ul>
+ <li>
+ <strong>Note</strong>: To keep things simple, please make sure your <code>id</code> in <code>plugin.xml</code> is the same as your <code>package-name</code> in <code>package.json</code>.</li>
+ <li>Use <code>plugman createpackagejson [PLUGIN DIRECTORY]</code> to create <code>package.json</code>.
+ <ul>
+ <li>This will create defaults based on existing values in your <code>plugin.xml</code>.</li>
+ <li>It will also automatically add the keyword <code>ecosystem:cordova</code> to your newly generated package.json file.</li>
+ <li>In addition, a cordova key will be added to your <code>package.json</code> which we plan to use in future updates of the tooling.</li>
+ </ul>
+ </li>
+ <li>View the <code>package.json</code> of <a href="https://github.com/apache/cordova-plugin-device/blob/master/package.json" target="_blank">cordova-plugin-device</a> to see an example of what your <code>package.json</code> should look like after running <code>plugman createpackagejson [PLUGIN DIRECTORY]</code> command.</li>
+ <li>Plugins still require a <code>plugin.xml</code> to be installed into <strong>Cordova</strong> projects.</li>
+ </ul>
+ </li>
+ <li>Publish your plugin to npm using the <code>npm publish [PLUGIN DIRECTORY]</code>.</li>
+ </ol>
+ <h4>Are there any additional documents to assist me with plugins?</h4>
+ <p>Yes there are. Please take a look at <a href="http://cordova.apache.org/docs/en/edge/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide" target="_blank">Plugin Development Guide</a> for a more detailed guide.</p>
+ <h4>I don't like X. How can I help improve the website?</h4>
+ <p>You can help improving this site by opening bugs on <a href="https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20status%20%3D%20Open%20AND%20component%20%3D%20%22Registry%20Web%22" target="_blank">JIRA</a> or by sending PRs on <a href="https://github.com/apache/cordova-registry-web" target="_blank">GitHub</a>.</p>
+ </div>
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-64283057-2', 'auto');
+ ga('send', 'pageview');
+ </script>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/attachments/npm/css/styles.css
----------------------------------------------------------------------
diff --git a/attachments/npm/css/styles.css b/attachments/npm/css/styles.css
index 2d0181b..1dd7612 100644
--- a/attachments/npm/css/styles.css
+++ b/attachments/npm/css/styles.css
@@ -431,7 +431,7 @@ html {
body {
font-family: 'Segoe UI', tahoma, arial, helvetica, sans-serif;
- font-size: 1.6rem;
+ font-size: 1.6em;
margin: 0;
}
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/attachments/npm/faq.html
----------------------------------------------------------------------
diff --git a/attachments/npm/faq.html b/attachments/npm/faq.html
index a3b7d03..c945922 100644
--- a/attachments/npm/faq.html
+++ b/attachments/npm/faq.html
@@ -13,13 +13,13 @@
<a class="logo" href="//cordova.apache.org/"></a>
<div class="menu">
<a href="index.html">Home</a>
- <a href="developers.html">Developers</a>
+ <a href="authors.html">Authors</a>
<a href="faq.html">FAQ</a>
</div>
<form class="menu-dropdown">
<select onchange="location = this.options[this.selectedIndex].value;">
<option value="index.html">Home</option>
- <option value="developers.html">Developers</option>
+ <option value="authors.html">Authors</option>
<option value="faq.html">FAQ</option>
</select>
</form>
@@ -52,5 +52,14 @@
<h4>I don't like X. How can I help improve the website?</h4>
<p>You can help improving this site by opening bugs on <a href="https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20status%20%3D%20Open%20AND%20component%20%3D%20%22Registry%20Web%22" target="_blank">JIRA</a> or by sending PRs on <a href="https://github.com/apache/cordova-registry-web" target="_blank">GitHub</a>.</p>
</div>
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-64283057-2', 'auto');
+ ga('send', 'pageview');
+ </script>
</body>
</html>
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/attachments/npm/img/loading.gif
----------------------------------------------------------------------
diff --git a/attachments/npm/img/loading.gif b/attachments/npm/img/loading.gif
new file mode 100644
index 0000000..c7ca402
Binary files /dev/null and b/attachments/npm/img/loading.gif differ
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/attachments/npm/index.html
----------------------------------------------------------------------
diff --git a/attachments/npm/index.html b/attachments/npm/index.html
index e7b8453..e8ffd7d 100644
--- a/attachments/npm/index.html
+++ b/attachments/npm/index.html
@@ -33,13 +33,13 @@
<a class="logo" href="//cordova.apache.org/"></a>
<div class="menu">
<a href="index.html">Home</a>
- <a href="developers.html">Developers</a>
+ <a href="authors.html">Authors</a>
<a href="faq.html">FAQ</a>
</div>
<form class="menu-dropdown">
<select onchange="location = this.options[this.selectedIndex].value;">
<option value="index.html">Home</option>
- <option value="developers.html">Developers</option>
+ <option value="authors.html">Authors</option>
<option value="faq.html">FAQ</option>
</select>
</form>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org