Version Description
- 2016-11-17 =
Added
- Added ability to automatically purge cache when a post is published, edited or deleted. (Thanks to brandomeniconi and mike503)
- Added ability to work with Wordpress MU Domain Mapping plugin. (Thanks to brandomeniconi)
Changed
- Changed the UI to look more like cloudflare.com dashboard.
- Changed plugin description.
- Disabled showing WordPress Admin Bar and Edit Post Link to avoid caching problems for users using HTML Caching.
Fixed
- Fixed bug where require vendor folders was not working.
- Fixed bug where static files were cached which caused issues updating the plugin.
- Fixed dependencies which caused issues with PHP Compatibility Checker plugin.
Download this release
Release Info
Developer | furkan811 |
Plugin | Cloudflare |
Version | 3.1.0 |
Comparing to | |
See all releases |
Code changes from version 3.0.6 to 3.1.0
- .gitignore +1 -0
- LICENSE.md +1 -1
- cloudflare.loader.php +27 -7
- cloudflare.php +2 -2
- compiled.js +0 -33
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
*.DS_Store
|
LICENSE.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
Copyright (c) 2016,
|
2 |
|
3 |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
4 |
|
1 |
+
Copyright (c) 2016, Cloudflare. All rights reserved.
|
2 |
|
3 |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
4 |
|
cloudflare.loader.php
CHANGED
@@ -1,9 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
require_once 'vendor/autoload.php';
|
4 |
|
5 |
use CloudFlare\IpRewrite;
|
6 |
|
|
|
|
|
|
|
|
|
|
|
7 |
// Rewrites Cloudflare IP
|
8 |
$ipRewrite = new IpRewrite();
|
9 |
|
@@ -18,10 +23,14 @@ if ($is_cf) {
|
|
18 |
// Enable HTTP2 Server Push
|
19 |
// add_action('init', array('\CF\Hooks\HTTP2ServerPush', 'init'));
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
24 |
|
|
|
25 |
//Register proxy AJAX endpoint
|
26 |
add_action('wp_ajax_cloudflare_proxy', array($cloudflareHooks, 'initProxy'));
|
27 |
|
@@ -36,8 +45,19 @@ if (is_admin()) {
|
|
36 |
|
37 |
// Load Deactivation Script
|
38 |
register_deactivation_hook(CLOUDFLARE_PLUGIN_DIR.'cloudflare.php', array($cloudflareHooks, 'deactivate'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
-
|
41 |
-
add_action(
|
42 |
-
add_action('customize_save_after', array($cloudflareHooks, 'purgeCache'));
|
43 |
}
|
1 |
<?php
|
2 |
|
3 |
+
require_once __DIR__.'/vendor/autoload.php';
|
4 |
|
5 |
use CloudFlare\IpRewrite;
|
6 |
|
7 |
+
// Exit if accessed directly
|
8 |
+
if (!defined('ABSPATH')) {
|
9 |
+
exit;
|
10 |
+
}
|
11 |
+
|
12 |
// Rewrites Cloudflare IP
|
13 |
$ipRewrite = new IpRewrite();
|
14 |
|
23 |
// Enable HTTP2 Server Push
|
24 |
// add_action('init', array('\CF\Hooks\HTTP2ServerPush', 'init'));
|
25 |
|
26 |
+
// Don't allow "logged in" options to display to anonymous users
|
27 |
+
add_filter('show_admin_bar', '__return_false');
|
28 |
+
add_filter('edit_post_link', '__return_null');
|
29 |
+
|
30 |
+
// Initiliaze Hooks class which contains WordPress hook functions
|
31 |
+
$cloudflareHooks = new \CF\WordPress\Hooks();
|
32 |
|
33 |
+
if (is_admin()) {
|
34 |
//Register proxy AJAX endpoint
|
35 |
add_action('wp_ajax_cloudflare_proxy', array($cloudflareHooks, 'initProxy'));
|
36 |
|
45 |
|
46 |
// Load Deactivation Script
|
47 |
register_deactivation_hook(CLOUDFLARE_PLUGIN_DIR.'cloudflare.php', array($cloudflareHooks, 'deactivate'));
|
48 |
+
}
|
49 |
+
|
50 |
+
// Load Automatic Cache Purge
|
51 |
+
add_action('switch_theme', array($cloudflareHooks, 'purgeCacheEverything'));
|
52 |
+
add_action('customize_save_after', array($cloudflareHooks, 'purgeCacheEverything'));
|
53 |
+
|
54 |
+
$cloudflarePurgeActions = array(
|
55 |
+
'autoptimize_action_cachepurged', // Compat with https://wordpress.org/plugins/autoptimize
|
56 |
+
'deleted_post', // Delete a post
|
57 |
+
'edit_post', // Edit a post - includes leaving comments
|
58 |
+
'delete_attachment', // Delete an attachment - includes re-uploading
|
59 |
+
);
|
60 |
|
61 |
+
foreach ($cloudflarePurgeActions as $action) {
|
62 |
+
add_action($action, array($cloudflareHooks, 'purgeCacheByRevelantURLs'), 10, 2);
|
|
|
63 |
}
|
cloudflare.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/*
|
3 |
Plugin Name: Cloudflare
|
4 |
Plugin URI: https://blog.cloudflare.com/new-wordpress-plugin/
|
5 |
-
Description: Cloudflare
|
6 |
-
Version: 3.0
|
7 |
Author: John Wineman, Furkan Yilmaz, Junade Ali (Cloudflare Team)
|
8 |
License: BSD-3-Clause
|
9 |
*/
|
2 |
/*
|
3 |
Plugin Name: Cloudflare
|
4 |
Plugin URI: https://blog.cloudflare.com/new-wordpress-plugin/
|
5 |
+
Description: Cloudflare speeds up and protects your WordPress site.
|
6 |
+
Version: 3.1.0
|
7 |
Author: John Wineman, Furkan Yilmaz, Junade Ali (Cloudflare Team)
|
8 |
License: BSD-3-Clause
|
9 |
*/
|
compiled.js
CHANGED
@@ -1,36 +1,34 @@
|
|
1 |
-
!function(){var e=void 0;!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(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){},{}],2:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(p===setTimeout)return setTimeout(e,0);if((p===r||!p)&&setTimeout)return p=setTimeout,setTimeout(e,0);try{return p(e,0)}catch(t){try{return p.call(null,e,0)}catch(t){return p.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===o||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function s(){m&&h&&(m=!1,h.length?g=h.concat(g):y=-1,g.length&&u())}function u(){if(!m){var e=i(s);m=!0;for(var t=g.length;t;){for(h=g,g=[];++y<t;)h&&h[y].run();y=-1,t=g.length}h=null,m=!1,a(e)}}function c(e,t){this.fun=e,this.array=t}function l(){}var p,f,d=t.exports={};!function(){try{p="function"==typeof setTimeout?setTimeout:r}catch(e){p=r}try{f="function"==typeof clearTimeout?clearTimeout:o}catch(e){f=o}}();var h,g=[],m=!1,y=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];g.push(new c(e,t)),1!==g.length||m||i(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],3:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.loading,r=this.props.submit?"submit":"button",o="cf-btn cf-btn--"+this.props.type;n&&(o+=" cf-btn--loading");var i=(void 0!==t?t:n)||!1;return a.createElement("button",{type:r,className:o,disabled:i,onClick:this.props.onClick},this.props.children)},t}(a.Component);u.propTypes={onClick:s.func.isRequired,submit:s.bool,type:s.oneOf(["default","primary","success","warning","danger"]).isRequired,disabled:s.bool,loading:s.bool},u.defaultProps={type:"default",submit:!1},t.exports=u},{react:509}],4:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-btn__group"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],5:[function(e,t,n){"use strict";n.Button=e("./Button"),n.ButtonGroup=e("./ButtonGroup")},{"./Button":3,"./ButtonGroup":4}],6:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("section",{className:"cf-card"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],7:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__content"},a.createElement("h3",{className:"cf-card__title"},this.props.title),this.props.children,this.props.footerMessage?a.createElement("div",{className:"cf-card__footer_message"},this.props.footerMessage):null)},t}(a.Component);u.propTypes={title:s.any.isRequired,footerMessage:s.string},t.exports=u},{react:509}],8:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__control"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],9:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("./CardSection"),c=e("./CardToolbar"),l=e("./CardToolbarLink"),p=e("./CardPropTypes"),f=0,d=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i._cardId=f++,a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e=this,t=[],n=[];this.props.drawers.forEach(function(r){var o=r.id===e.props.active,i="card-"+e._cardId+"-drawer-"+r.id;t.push(a.createElement(l,{key:r.id,id:i,isActive:o,onClick:e.props.onClick.bind(null,r.id)},r.name));var s="cf-card__drawer";o&&(s+=" cf-card__drawer--active"),n.push(a.createElement("div",{key:r.id,role:"tabpanel","aria-labelledby":i,"aria-hidden":o?"false":"true",className:s},o&&r.content))});var r="cf-card__drawers_container";return this.props.active&&(r+=" cf-card__drawers_container--open"),a.createElement(u,null,a.createElement(c,{controls:this.props.controls,links:t}),a.createElement("div",{className:r},n))},t}(a.Component);d.propTypes={onClick:s.func.isRequired,active:s.string,drawers:p.cardDrawers.isRequired,controls:s.any},t.exports=d},{"./CardPropTypes":12,"./CardSection":13,"./CardToolbar":14,"./CardToolbarLink":15,react:509}],10:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__loading_text"})},t}(a.Component);t.exports=s},{react:509}],11:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__messages"},this.props.messages.map(function(e,t){return a.createElement("div",{key:t,role:"alert",className:"cf-card__message cf-card__message--"+e.type},e.content)}))},t}(a.Component);u.propTypes={messages:s.arrayOf(s.shape({type:s.oneOf(["info","success","error","warning"]),content:s.any.isRequired})).isRequired},t.exports=u},{react:509}],12:[function(e,t,n){"use strict";var r=e("react"),o=r.PropTypes,i=o.shape({id:o.string.isRequired,name:o.string.isRequired,content:o.any.isRequired}),a=o.arrayOf(i);t.exports={cardDrawer:i,cardDrawers:a}},{react:509}],13:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__section cf-card__section--"+this.props.status},this.props.children)},t}(a.Component);u.propTypes={status:s.oneOf(["default","error"])},u.defaultProps={status:"default"},t.exports=u},{react:509}],14:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__toolbar"},a.createElement("div",{className:"cf-card__toolbar_controls"},this.props.controls),a.createElement("div",{className:"cf-card__toolbar_links",role:"tablist"},this.props.links))},t}(a.Component);u.propTypes={controls:s.any,links:s.any},t.exports=u},{react:509}],15:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=e("cf-component-link"),u=a.PropTypes,c=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleClick=function(e){e.preventDefault(),i.props.onClick()},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-card__toolbar_link";return this.props.isActive&&(e+=" cf-card__toolbar_link--open"),a.createElement(s,{role:"tab",id:this.props.id,className:e,onClick:this.handleClick},this.props.children)},t}(a.Component);c.propTypes={onClick:u.func.isRequired,isActive:u.bool.isRequired,id:u.string},t.exports=c},{"cf-component-link":18,react:509}],16:[function(e,t,n){"use strict";n.Card=e("./Card"),n.CardContent=e("./CardContent"),n.CardControl=e("./CardControl"),n.CardDrawers=e("./CardDrawers"),n.CardLoadingText=e("./CardLoadingText"),n.CardMessages=e("./CardMessages"),n.CardPropTypes=e("./CardPropTypes"),n.CardSection=e("./CardSection")},{"./Card":6,"./CardContent":7,"./CardControl":8,"./CardDrawers":9,"./CardLoadingText":10,"./CardMessages":11,"./CardPropTypes":12,"./CardSection":13}],17:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=e("react"),u=s.PropTypes,c=e("cf-util-route-handler"),l=c.routeTo,p=function(e){function t(n,r){if(o(this,t),!n.to&&!n.onClick)throw new Error("<Link/> requires either a `to` or `onClick` prop");var a=i(this,e.call(this,n,r));return a.handleClick=function(e){e.preventDefault(),a.props.disabled||(a.props.to?l(a.props.to):a.props.onClick(e))},a}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.tagName,n=e.to,o=e.children,i=e.className,a=e.disabled,u=r(e,["tagName","to","children","className","disabled"]);return u.href||"a"!==t||(u.href=n||"#!"),u.role||(n&&"a"!==t?u.role="link":n||(u.role="button")),u.className="cf-link",a&&(u.className+=" cf-link--disabled",u.disabled=!0),i&&(u.className+=" "+i),u.onClick=this.handleClick,s.createElement(t,u,o)},t}(s.Component);p.propTypes={to:u.string,onClick:u.func,tagName:u.string,disabled:u.bool},p.defaultProps={tagName:"a"},t.exports=p},{"cf-util-route-handler":19,react:509}],18:[function(e,t,n){"use strict";t.exports=e("./Link")},{"./Link":17}],19:[function(e,t,n){"use strict";t.exports=e("./routeHandler")},{"./routeHandler":20}],20:[function(e,t,n){"use strict";function r(e){return a?void console.error("Warning: Route Handler: Only one handler is allowed at a time"):void(a=e)}function o(e){return a?void a(e):void console.error("Warning: Route Handler: A handler needs to be setup before you can route")}function i(){a=null}var a=void 0;t.exports={handleRoutes:r,routeTo:o,__resetRouteHandler:i}},{}],21:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange(e.target.checked)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-checkbox";return this.props.checked&&(e+=" cf-checkbox--checked"),a.createElement("label",{htmlFor:this.props.name,className:e},a.createElement("input",{type:"checkbox",className:"cf-checkbox__input",id:this.props.name,name:this.props.name,value:this.props.value,checked:this.props.checked,onChange:this.handleChange}),this.props.label&&a.createElement("span",{className:"cf-checkbox__label"},this.props.label))},t}(a.Component);u.propTypes={label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string.isRequired,value:s.string.isRequired,checked:s.bool.isRequired,onChange:s.func.isRequired},t.exports=u},{react:509}],22:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("./Checkbox"),c=e("lodash/includes"),l=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e,t){var n=i.props.options.filter(function(n){return n.value===e?t:c(i.props.values,n.value)}).map(function(e){return e.value});i.props.onChange(n)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{className:"cf-checkbox__group"},this.props.options.map(function(t){return a.createElement(u,{key:t.name,label:t.label,name:t.name,value:t.value,checked:c(e.props.values,t.value),onChange:function(n){return e.handleChange(t.value,n)}})}))},t}(a.Component);l.propTypes={values:s.arrayOf(s.string).isRequired,onChange:s.func.isRequired,options:s.arrayOf(s.shape({label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string.isRequired,value:s.string.isRequired})).isRequired},t.exports=l},{"./Checkbox":21,"lodash/includes":36,react:509}],23:[function(e,t,n){"use strict";n.Checkbox=e("./Checkbox"),n.CheckboxGroup=e("./CheckboxGroup")},{"./Checkbox":21,"./CheckboxGroup":22}],24:[function(e,t,n){function r(e,t){var n=a(e)||i(e)?o(e.length,String):[],r=n.length,u=!!r;for(var l in e)!t&&!c.call(e,l)||u&&("length"==l||s(l,r))||n.push(l);return n}var o=e("./_baseTimes"),i=e("./isArguments"),a=e("./isArray"),s=e("./_isIndex"),u=Object.prototype,c=u.hasOwnProperty;t.exports=r},{"./_baseTimes":30,"./_isIndex":32,"./isArguments":37,"./isArray":38}],25:[function(e,t,n){function r(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}t.exports=r},{}],26:[function(e,t,n){function r(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}t.exports=r},{}],27:[function(e,t,n){function r(e,t,n){if(t!==t)return o(e,i,n);for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var o=e("./_baseFindIndex"),i=e("./_baseIsNaN");t.exports=r},{"./_baseFindIndex":26,"./_baseIsNaN":28}],28:[function(e,t,n){function r(e){return e!==e}t.exports=r},{}],29:[function(e,t,n){function r(e){if(!o(e))return i(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var o=e("./_isPrototype"),i=e("./_nativeKeys"),a=Object.prototype,s=a.hasOwnProperty;t.exports=r},{"./_isPrototype":33,"./_nativeKeys":34}],30:[function(e,t,n){function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=r},{}],31:[function(e,t,n){function r(e,t){return o(t,function(t){return e[t]})}var o=e("./_arrayMap");t.exports=r},{"./_arrayMap":25}],32:[function(e,t,n){function r(e,t){return t=null==t?o:t,!!t&&("number"==typeof e||i.test(e))&&e>-1&&e%1==0&&e<t}var o=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=r},{}],33:[function(e,t,n){function r(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||o;return e===n}var o=Object.prototype;t.exports=r},{}],34:[function(e,t,n){var r=e("./_overArg"),o=r(Object.keys,Object);t.exports=o},{"./_overArg":35}],35:[function(e,t,n){function r(e,t){return function(n){return e(t(n))}}t.exports=r},{}],36:[function(e,t,n){function r(e,t,n,r){e=i(e)?e:u(e),n=n&&!r?s(n):0;var l=e.length;return n<0&&(n=c(l+n,0)),a(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&o(e,t,n)>-1}var o=e("./_baseIndexOf"),i=e("./isArrayLike"),a=e("./isString"),s=e("./toInteger"),u=e("./values"),c=Math.max;t.exports=r},{"./_baseIndexOf":27,"./isArrayLike":39,"./isString":45,"./toInteger":49,"./values":51}],37:[function(e,t,n){function r(e){return o(e)&&s.call(e,"callee")&&(!c.call(e,"callee")||u.call(e)==i)}var o=e("./isArrayLikeObject"),i="[object Arguments]",a=Object.prototype,s=a.hasOwnProperty,u=a.toString,c=a.propertyIsEnumerable;t.exports=r},{"./isArrayLikeObject":40}],38:[function(e,t,n){var r=Array.isArray;t.exports=r},{}],39:[function(e,t,n){function r(e){return null!=e&&i(e.length)&&!o(e)}var o=e("./isFunction"),i=e("./isLength");t.exports=r},{"./isFunction":41,"./isLength":42}],40:[function(e,t,n){function r(e){return i(e)&&o(e)}var o=e("./isArrayLike"),i=e("./isObjectLike");t.exports=r},{"./isArrayLike":39,"./isObjectLike":44}],41:[function(e,t,n){function r(e){var t=o(e)?u.call(e):"";return t==i||t==a}var o=e("./isObject"),i="[object Function]",a="[object GeneratorFunction]",s=Object.prototype,u=s.toString;t.exports=r},{"./isObject":43}],42:[function(e,t,n){function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}var o=9007199254740991;t.exports=r},{}],43:[function(e,t,n){function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=r},{}],44:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}t.exports=r},{}],45:[function(e,t,n){function r(e){return"string"==typeof e||!o(e)&&i(e)&&u.call(e)==a}var o=e("./isArray"),i=e("./isObjectLike"),a="[object String]",s=Object.prototype,u=s.toString;t.exports=r},{"./isArray":38,"./isObjectLike":44}],46:[function(e,t,n){function r(e){return"symbol"==typeof e||o(e)&&s.call(e)==i}var o=e("./isObjectLike"),i="[object Symbol]",a=Object.prototype,s=a.toString;t.exports=r},{"./isObjectLike":44}],47:[function(e,t,n){function r(e){return a(e)?o(e):i(e)}var o=e("./_arrayLikeKeys"),i=e("./_baseKeys"),a=e("./isArrayLike");t.exports=r},{"./_arrayLikeKeys":24,"./_baseKeys":29,"./isArrayLike":39}],48:[function(e,t,n){function r(e){if(!e)return 0===e?e:0;if(e=o(e),e===i||e===-i){var t=e<0?-1:1;return t*a}return e===e?e:0}var o=e("./toNumber"),i=1/0,a=1.7976931348623157e308;t.exports=r},{"./toNumber":50}],49:[function(e,t,n){function r(e){var t=o(e),n=t%1;return t===t?n?t-n:t:0}var o=e("./toFinite");t.exports=r},{"./toFinite":48}],50:[function(e,t,n){function r(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=c.test(e);return n||l.test(e)?p(e.slice(2),n?2:8):u.test(e)?a:+e}var o=e("./isObject"),i=e("./isSymbol"),a=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,p=parseInt;t.exports=r},{"./isObject":43,"./isSymbol":46}],51:[function(e,t,n){function r(e){return e?o(e,i(e)):[]}var o=e("./_baseValues"),i=e("./keys");t.exports=r},{"./_baseValues":31,"./keys":47}],52:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("./DropdownRegistry"),c=e("exenv"),l=c.canUseDOM,p=function(e){function t(n,i){r(this,t);var a=o(this,e.call(this,n,i));return a.handleDocumentKeydown=function(e){var t=e.keyCode;40===t?(e.preventDefault(),a.dropdownRegistry.focusNext()):38===t?(e.preventDefault(),a.dropdownRegistry.focusPrev()):27===t&&a.props.onClose()},a.handleDocumentClick=function(e){a.props.onClose()},a.dropdownRegistry=new u,a}return i(t,e),t.prototype.getChildContext=function(){return{dropdownRegistry:this.dropdownRegistry}},t.prototype.componentDidMount=function(){l&&(n.document.addEventListener("keydown",this.handleDocumentKeydown),n.document.addEventListener("click",this.handleDocumentClick))},t.prototype.componentWillUnmount=function(){l&&(n.document.removeEventListener("keydown",this.handleDocumentKeydown),n.document.removeEventListener("click",this.handleDocumentClick))},t.prototype.render=function(){return a.createElement("ul",{role:"menu",className:"cf-dropdown cf-dropdown--"+this.props.align},this.props.children)},t}(a.Component);p.propTypes={onClose:s.func.isRequired,align:s.oneOf(["left","right"])},p.defaultProps={align:"left"},p.childContextTypes={dropdownRegistry:s.instanceOf(u).isRequired},t.exports=p}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./DropdownRegistry":54,exenv:61,react:509}],53:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("react-dom"),c=u.findDOMNode,l=e("cf-component-link"),p=e("./DropdownRegistry"),f=function(e){function t(n,i){if(r(this,t),!n.to&&!n.onClick)throw new Error("<DropdownLink/> requires either a `to` or `onClick` prop");var a=o(this,e.call(this,n,i));return a.handleLinkFocus=function(e){a.dropdownRegistry.setFocusedChild(a)},a.handleLinkBlur=function(e){a.dropdownRegistry.removeFocusedChild()},a.dropdownRegistry=i.dropdownRegistry,a}return i(t,e),t.prototype.componentWillMount=function(){this.dropdownRegistry.addChild(this)},t.prototype.componentWillUnmount=function(){this.dropdownRegistry.removeChild(this)},t.prototype.focus=function(){c(this.refs.link).focus()},t.prototype.render=function(){return a.createElement("li",{className:"cf-dropdown__link",role:"menuitem"},a.createElement(l,{ref:"link",to:this.props.to,onClick:this.props.onClick,onFocus:this.handleLinkFocus,onBlur:this.handleLinkBlur},this.props.children))},t}(a.Component);f.propTypes={to:s.string,onClick:s.func},f.contextTypes={dropdownRegistry:s.instanceOf(p).isRequired},t.exports=f},{"./DropdownRegistry":54,"cf-component-link":58,react:509,"react-dom":274}],54:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){r(this,e),this._links=[],this._currentFocusIndex=-1}return e.prototype.addChild=function(e){this._links.push(e)},e.prototype.removeChild=function(e){this._links.splice(this._links.indexOf(e),1)},e.prototype._focusChildAt=function(e){this._links[e]&&this._links[e].focus()},e.prototype.focusNext=function(){this._focusChildAt(this._currentFocusIndex+1)},e.prototype.focusPrev=function(){this._focusChildAt(this._currentFocusIndex-1)},e.prototype.setFocusedChild=function(e){this._currentFocusIndex=this._links.indexOf(e)},e.prototype.removeFocusedChild=function(e){this._currentFocusIndex=-1},e}();t.exports=o},{}],55:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-dropdown__separator",role:"separator"})},t}(a.Component);t.exports=s},{react:509}],56:[function(e,t,n){"use strict";n.Dropdown=e("./Dropdown"),n.DropdownLink=e("./DropdownLink"),n.DropdownSeparator=e("./DropdownSeparator")},{"./Dropdown":52,"./DropdownLink":53,"./DropdownSeparator":55}],57:[function(e,t,n){arguments[4][17][0].apply(n,arguments)},{"cf-util-route-handler":59,dup:17,react:509}],58:[function(e,t,n){arguments[4][18][0].apply(n,arguments)},{"./Link":57,dup:18}],59:[function(e,t,n){arguments[4][19][0].apply(n,arguments)},{"./routeHandler":60,dup:19}],60:[function(e,t,n){arguments[4][20][0].apply(n,arguments)},{dup:20}],61:[function(t,n,r){!function(){"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen};"function"==typeof e&&"object"==typeof e.amd&&e.amd?e(function(){
|
2 |
-
return r}):"undefined"!=typeof n&&n.exports?n.exports=r:window.ExecutionEnvironment=r}()},{}],62:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-form cf-form--"+this.props.layout;return a.createElement("form",{className:e,onSubmit:this.props.onSubmit},this.props.children)},t}(a.Component);u.propTypes={layout:s.oneOf(["horizontal","vertical"]).isRequired,onSubmit:s.func.isRequired},t.exports=u},{react:509}],63:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this;return this.props.field.invalid?a.createElement("div",{className:"cf-form__field-error"},Object.keys(this.props.validations).map(function(t){return a.createElement("p",{key:t},e.props.validations[t])})):a.createElement("noscript",null)},t}(a.Component);u.propTypes={field:s.object.isRequired,validations:s.object.isRequired},t.exports=u},{react:509}],64:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("fieldset",{className:"cf-form__fieldset"},a.createElement("legend",{className:"cf-form__fieldset_legend"},this.props.legend),a.createElement("div",{className:"cf-form__fieldset_content"},this.props.children))},t}(a.Component);u.propTypes={legend:s.string.isRequired},t.exports=u},{react:509}],65:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=(a.PropTypes,function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-form__footer"},this.props.children)},t}(a.Component));t.exports=s},{react:509}],66:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-form__header"},a.createElement("h3",{className:"cf-form__title"},this.props.title))},t}(a.Component);u.propTypes={title:s.string.isRequired},t.exports=u},{react:509}],67:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-form__label";return this.props.hidden&&(e+=" cf-form__label--hidden"),a.createElement("label",{className:e},this.props.children)},t}(a.Component);u.propTypes={hidden:s.bool},t.exports=u},{react:509}],68:[function(e,t,n){"use strict";n.Form=e("./Form"),n.FormHeader=e("./FormHeader"),n.FormFooter=e("./FormFooter"),n.FormFieldset=e("./FormFieldset"),n.FormLabel=e("./FormLabel"),n.FormFieldError=e("./FormFieldError")},{"./Form":62,"./FormFieldError":63,"./FormFieldset":64,"./FormFooter":65,"./FormHeader":66,"./FormLabel":67}],69:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="h"+this.props.size,t="cf-heading cf-heading--"+this.props.size;return a.createElement(e,{className:t},this.props.children)},t}(a.Component);u.propTypes={size:s.oneOf([1,2,3,4,5,6]).isRequired},t.exports=u},{react:509}],70:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("small",{className:"cf-heading__caption"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],71:[function(e,t,n){"use strict";n.Heading=e("./Heading"),n.HeadingCaption=e("./HeadingCaption")},{"./Heading":69,"./HeadingCaption":70}],72:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange(e.target.value)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-input cf-input--"+this.props.type;return this.props.invalid&&(e+=" cf-input--invalid"),a.createElement("input",{type:this.props.type,className:e,name:this.props.name,value:this.props.value,onChange:this.handleChange,placeholder:this.props.placeholder})},t}(a.Component);u.propTypes={type:s.oneOf(["text","email","number","password","search"]),name:s.string.isRequired,value:s.string.isRequired,onChange:s.func.isRequired,placeholder:s.string,invalid:s.bool},u.defaultProps={type:"text"},t.exports=u},{react:509}],73:[function(e,t,n){"use strict";t.exports=e("./Input")},{"./Input":72}],74:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=(100*this.props.width).toPrecision(5)+"%";return a.createElement("div",{className:"cf-layout__column",style:{width:e}},this.props.children)},t}(a.Component);u.propTypes={width:s.number.isRequired},t.exports=u},{react:509}],75:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-layout__container"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],76:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-layout__row"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],77:[function(e,t,n){"use strict";n.LayoutContainer=e("./LayoutContainer"),n.LayoutRow=e("./LayoutRow"),n.LayoutColumn=e("./LayoutColumn")},{"./LayoutColumn":74,"./LayoutContainer":75,"./LayoutRow":76}],78:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=e("react"),u=s.PropTypes,c=e("cf-util-route-handler"),l=c.routeTo,p=function(e){function t(n,r){if(o(this,t),!n.to&&!n.onClick)throw new Error("<Link/> requires either a `to` or `onClick` prop");var a=i(this,e.call(this,n,r));return a.handleClick=function(e){e.preventDefault(),a.props.disabled||(a.props.to?l(a.props.to):a.props.onClick(e))},a}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.tagName,n=e.to,o=e.children,i=e.className,a=e.disabled,u=r(e,["tagName","to","children","className","disabled"]);return u.href||"a"!==t||(u.href=n||"#!"),u.role||(n&&"a"!==t?u.role="link":n||(u.role="button")),u.className="cf-link",a&&(u.className+=" cf-link--disabled",u.disabled=!0),i&&(u.className+=" "+i),u.onClick=this.handleClick,s.createElement(t,u,o)},t}(s.Component);p.propTypes={to:u.string,onClick:u.func,tagName:u.string,disabled:u.bool},p.defaultProps={tagName:"a"},t.exports=p},{"cf-util-route-handler":80,react:509}],79:[function(e,t,n){arguments[4][18][0].apply(n,arguments)},{"./Link":78,dup:18}],80:[function(e,t,n){"use strict";function r(e){if(i)throw new Error("Only one handler is allowed at a time");i=e}function o(e){if(!i)throw new Error("A handler needs to be setup before you can route");i(e)}n.__esModule=!0,n.handleRoutes=r,n.routeTo=o;var i=void 0},{}],81:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="ul",t="cf-list";return this.props.ordered&&(e="ol",t+=" cf-list--ordered"),this.props.unstyled&&(t+=" cf-list--unstyled"),a.createElement(e,{className:t},this.props.children)},t}(a.Component);u.propTypes={ordered:s.bool,unstyled:s.bool},u.defaultProps={ordered:!1,unstyled:!1},t.exports=u},{react:509}],82:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("li",{className:"cf-list__item"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],83:[function(e,t,n){"use strict";n.List=e("./List"),n.ListItem=e("./ListItem")},{"./List":81,"./ListItem":82}],84:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=e("cf-component-icon"),u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement(s,{type:"loading",label:"Loading"})},t}(a.Component);t.exports=u},{"cf-component-icon":87,react:509}],85:[function(e,t,n){"use strict";t.exports=e("./Loading")},{"./Loading":84}],86:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("./options"),c=u.TYPES,l=u.SIZES,p=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-icon cf-icon--"+this.props.type;return this.props.size&&(e+=" cf-icon--"+this.props.size),this.props.border&&(e+=" cf-icon--border"),this.props.spin&&(e+=" cf-icon--spin"),this.props.muted&&(e+=" cf-icon--muted"),this.props.white&&(e+=" cf-icon--white"),a.createElement("i",{className:e},this.props.label&&a.createElement("span",{className:"cf-icon__label"},this.props.label))},t}(a.Component);p.propTypes={label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,type:s.oneOf(c).isRequired,size:s.oneOf(l),border:s.bool,spin:s.bool,muted:s.bool,white:s.bool},t.exports=p},{"./options":88,react:509}],87:[function(e,t,n){"use strict";t.exports=e("./Icon")},{"./Icon":86}],88:[function(e,t,n){"use strict";n.TYPES="caret-up chevron-up caret-down chevron-down caret-left chevron-left caret-right chevron-right ok-sign exclamation-sign info-sign pause time ok clipboard bolt chart drive filter flowchart hamburger lock list file shield plus happy sad search wrench remove remove-sign speech gear help widen calendar facebook twitter googleplus linkedin resize-horizontal upload loading close".split(" "),n.SIZES="2x 3x 4x large xlarge".split(" ")},{}],89:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("react-modal2").default,c=e("react-gateway"),l=c.Gateway,p=e("react-addons-css-transition-group"),f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-modal";return"confirm"===this.props.type&&(e+=" cf-modal--confirm"),a.createElement(l,{into:"modal"},a.createElement(p,{transitionName:"cf-transition-modal",transitionAppear:!0,transitionAppearTimeout:200,transitionEnterTimeout:200,transitionLeaveTimeout:200},this.props.isOpen&&a.createElement("div",{className:"cf-modal__backdrop-scroller"},a.createElement("div",{className:"cf-modal__backdrop-outer"},a.createElement(u,{ref:"modal",key:"modal",backdropClassName:"cf-modal__backdrop",modalClassName:e,closeOnEsc:this.props.closeOnEsc,closeOnBackdropClick:this.props.closeOnBackdropClick,onClose:this.props.onRequestClose},this.props.children)))))},t}(a.Component);f.propTypes={type:s.oneOf(["confirm"]),isOpen:s.bool.isRequired,onRequestClose:s.func.isRequired,closeOnEsc:s.bool,closeOnBackdropClick:s.bool},f.defaultProps={closeOnEsc:!0,closeOnBackdropClick:!0},t.exports=f},{react:509,"react-addons-css-transition-group":270,"react-gateway":279,"react-modal2":98}],90:[function(e,t,n){"use strict";function r(e){return o.createElement("div",{className:"cf-modal__actions"},e.children)}var o=e("react");t.exports=r},{react:509}],91:[function(e,t,n){"use strict";function r(e){return o.createElement("div",{className:"cf-modal__body"},e.children)}var o=e("react");t.exports=r},{react:509}],92:[function(e,t,n){"use strict";function r(e){return o.createElement("span",{className:"cf-modal__close",onClick:e.onClick})}var o=e("react"),i=o.PropTypes;r.propTypes={onClick:i.func.isRequired},t.exports=r},{react:509}],93:[function(e,t,n){"use strict";function r(e){var t="cf-modal__footer";return e.simple&&(t+=" cf-modal__footer--simple"),o.createElement("div",{className:t},e.children)}var o=e("react"),i=o.PropTypes;r.propTypes={simple:i.bool},r.defaultProps={simple:!1},t.exports=r},{react:509}],94:[function(e,t,n){"use strict";function r(e){return o.createElement("header",{className:"cf-modal__header"},e.children)}var o=e("react");t.exports=r},{react:509}],95:[function(e,t,n){"use strict";function r(e){return o.createElement("h4",{className:"cf-modal__title"},e.children)}var o=e("react");t.exports=r},{react:509}],96:[function(e,t,n){"use strict";n.Modal=e("./Modal"),n.ModalActions=e("./ModalActions"),n.ModalBody=e("./ModalBody"),n.ModalClose=e("./ModalClose"),n.ModalFooter=e("./ModalFooter"),n.ModalHeader=e("./ModalHeader"),n.ModalTitle=e("./ModalTitle")},{"./Modal":89,"./ModalActions":90,"./ModalBody":91,"./ModalClose":92,"./ModalFooter":93,"./ModalHeader":94,"./ModalTitle":95}],97:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){h.default.storeFocus(),e&&e.setAttribute("aria-hidden","true"),f.default.scopeFocus(t)}function u(e){f.default.unscopeFocus(),e&&e.removeAttribute("aria-hidden"),h.default.restoreFocus()}n.__esModule=!0;var c=e("react"),l=r(c),p=e("a11y-focus-scope"),f=r(p),d=e("a11y-focus-store"),h=r(d),g=e("exenv"),m=r(g),y=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=i(this,e.call.apply(e,[this].concat(u))),r.handleDocumentKeydown=function(e){r.props.closeOnEsc&&27===e.keyCode&&r.props.onClose()},r.handleBackdropClick=function(){r.props.closeOnBackdropClick&&r.props.onClose()},r.handleModalClick=function(e){e.stopPropagation()},a=n,i(r,a)}return a(t,e),t.getApplicationElement=function(){console.warn("`ReactModal2.getApplicationElement` needs to be set for accessibility reasons")},t.prototype.componentDidMount=function(){m.default.canUseDOM&&(s(t.getApplicationElement(),this.refs.modal),document.addEventListener("keydown",this.handleDocumentKeydown))},t.prototype.componentWillUnmount=function(){m.default.canUseDOM&&(u(t.getApplicationElement()),document.removeEventListener("keydown",this.handleDocumentKeydown))},t.prototype.render=function(){return l.default.createElement("div",{ref:"backdrop",className:this.props.backdropClassName,style:this.props.backdropStyles,onClick:this.handleBackdropClick},l.default.createElement("div",{ref:"modal",className:this.props.modalClassName,style:this.props.modalStyles,onClick:this.handleModalClick,tabIndex:"-1"},this.props.children))},t}(l.default.Component);y.propTypes={onClose:l.default.PropTypes.func.isRequired,closeOnEsc:l.default.PropTypes.bool,closeOnBackdropClick:l.default.PropTypes.bool,backdropClassName:l.default.PropTypes.string,backdropStyles:l.default.PropTypes.object,modalClassName:l.default.PropTypes.string,modalStyles:l.default.PropTypes.object},y.defaultProps={closeOnEsc:!0,closeOnBackdropClick:!0},n.default=y},{"a11y-focus-scope":99,"a11y-focus-store":102,exenv:103,react:509}],98:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.default=void 0;var o=e("./Modal"),i=r(o);n.default=i.default},{"./Modal":97}],99:[function(e,t,n){"use strict";function r(e){function t(){(i(e)[0]||e).focus()}function n(n){e===n.target||e.contains(n.target)||t()}return s||(a.polyfill(),s=!0),t(),document.addEventListener("focusin",n),function(){document.removeEventListener("focusin",n)}}var o,i=e("tabbable"),a=e("focusin"),s=!1;n.scopeFocus=function(e){o&&o(),o=r(e)},n.unscopeFocus=function(){o&&o(),o=null}},{focusin:100,tabbable:101}],100:[function(e,t,n){function r(){function e(e){var t="focus"===e.type?"focusin":"focusout",n=new window.CustomEvent(t,{bubbles:!0,cancelable:!1});n.c1Generated=!0,e.target.dispatchEvent(n)}function t(n){n.c1Generated||(r.removeEventListener("focus",e,!0),r.removeEventListener("blur",e,!0),r.removeEventListener("focusin",t,!0),r.removeEventListener("focusout",t,!0)),setTimeout(function(){r.removeEventListener("focusin",t,!0),r.removeEventListener("focusout",t,!0)})}var n=window,r=n.document;void 0===n.onfocusin&&(r.addEventListener("focus",e,!0),r.addEventListener("blur",e,!0),r.addEventListener("focusin",t,!0),r.addEventListener("focusout",t,!0))}t.exports={polyfill:r}},{}],101:[function(e,t,n){function r(){var e=[];return function t(n){if(n===document.documentElement)return!1;for(var r=0,o=e.length;r<o;r++)if(e[r][0]===n)return e[r][1];var i=!1,a=window.getComputedStyle(n);return"hidden"===a.visibility||"none"===a.display?i=!0:n.parentNode&&(i=t(n.parentNode)),e.push([n,i]),i}}t.exports=function(e){for(var t,n,o=[],i=[],a=r(),s=e.querySelectorAll("input, select, a[href], textarea, button, [tabindex]"),u=0,c=s.length;u<c;u++)t=s[u],n=t.tabIndex,n<0||"INPUT"===t.tagName&&"hidden"===t.type||t.disabled||a(t)||(0===n?o.push(t):i.push({tabIndex:n,node:t}));var l=i.sort(function(e,t){return e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(l,o),l}},{}],102:[function(e,t,n){"use strict";var r;n.storeFocus=function(){r=document.activeElement},n.clearStoredFocus=function(){r=null},n.restoreFocus=function(){if(r){try{r.focus()}catch(e){}r=null}}},{}],103:[function(e,t,n){arguments[4][61][0].apply(n,arguments)},{dup:61}],104:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("raf"),c=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.state={persist:i.props.persist,timeoutId:null},a=n,o(i,a)}return i(t,e),t.prototype.componentDidMount=function(){var e=this;this._raf=u(function(){e._raf=u(function(){e._raf=null,e.startTimeout()})})},t.prototype.componentWillUnmount=function(){this.stopTimeout()},t.prototype.startTimeout=function(){var e=this;if(!this.state.persist){this.stopTimeout();var t=setTimeout(function(){return e.props.onClose()},this.props.delay);this.setState({timeoutId:t})}},t.prototype.stopTimeout=function(){this._raf&&(u.cancel(this._raf),this._raf=null),this.state.timeoutId&&(clearTimeout(this.state.timeoutId),this.setState({timeoutId:null}))},t.prototype.handleMouseEnter=function(){this.stopTimeout()},t.prototype.handleMouseLeave=function(){this.startTimeout()},t.prototype.handleClickClose=function(){this.props.onClose()},t.prototype.handleClick=function(){this.stopTimeout(),this.setState({persist:!0})},t.prototype.render=function(){var e="cf-notifications__item",t=void 0;if(e+=" cf-notifications__item--"+this.props.type,this.state.persist)e+=" cf-notifications__item--persist";else{var n="cf-notifications__item_progress",r={};this.state.timeoutId&&(n+=" cf-notifications__item_progress--active",r.transitionDuration=this.props.delay+"ms"),t=a.createElement("span",{className:n,style:r})}var o=void 0;return this.props.closable&&(o=a.createElement("span",{className:"cf-notifications__item_close",onClick:this.handleClickClose.bind(this)})),a.createElement("div",{role:"alert",className:e,onClick:this.handleClick.bind(this),onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this)},t,o,a.createElement("span",{className:"cf-notifications__item_message"},this.props.message))},t}(a.Component);c.propTypes={type:s.oneOf(["success","error","info","warning"]),message:s.string.isRequired,closable:s.bool,delay:s.number,persist:s.bool,onClose:s.func.isRequired},c.defaultProps={closable:!0,delay:4e3,persist:!1},t.exports=c},{raf:108,react:509}],105:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-notifications__global_container"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],106:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");
|
3 |
-
}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-notifications"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],107:[function(e,t,n){"use strict";n.NotificationList=e("./NotificationList"),n.Notification=e("./Notification"),n.NotificationGlobalContainer=e("./NotificationGlobalContainer")},{"./Notification":104,"./NotificationGlobalContainer":105,"./NotificationList":106}],108:[function(e,t,n){(function(n){for(var r=e("performance-now"),o="undefined"==typeof window?n:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],c=0;!s&&c<i.length;c++)s=o[i[c]+"Request"+a],u=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!s||!u){var l=0,p=0,f=[],d=1e3/60;s=function(e){if(0===f.length){var t=r(),n=Math.max(0,d-(t-l));l=n+t,setTimeout(function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return f.push({handle:++p,callback:e,cancelled:!1}),p},u=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}t.exports=function(e){return s.call(o,e)},t.exports.cancel=function(){u.apply(o,arguments)},t.exports.polyfill=function(){o.requestAnimationFrame=s,o.cancelAnimationFrame=u}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":109}],109:[function(e,t,n){(function(e){(function(){var n,r,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof e&&null!==e&&e.hrtime?(t.exports=function(){return(n()-o)/1e6},r=e.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},o=n()):Date.now?(t.exports=function(){return Date.now()-o},o=Date.now()):(t.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,e("_process"))},{_process:2}],110:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange(e.target.value)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-radio";return this.props.checked&&(e+=" cf-radio--checked"),a.createElement("label",{htmlFor:this.props.name,className:e},a.createElement("input",{type:"radio",className:"cf-radio__input",id:this.props.name,name:this.props.name,value:this.props.value,checked:this.props.checked,onChange:this.handleChange}),this.props.label&&a.createElement("span",{className:"cf-radio__label"},this.props.label))},t}(a.Component);u.propTypes={label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string.isRequired,value:s.string.isRequired,checked:s.bool.isRequired,onChange:s.func.isRequired},t.exports=u},{react:509}],111:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("./Radio"),c=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{className:"cf-radio__group"},this.props.options.map(function(t){return a.createElement(u,{key:t.name,label:t.label,name:t.name,value:t.value,checked:e.props.value===t.value,onChange:e.props.onChange})}))},t}(a.Component);c.propTypes={value:s.string.isRequired,onChange:s.func.isRequired,options:s.arrayOf(s.shape({label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string.isRequired,value:s.string.isRequired})).isRequired},t.exports=c},{"./Radio":110,react:509}],112:[function(e,t,n){"use strict";n.Radio=e("./Radio"),n.RadioGroup=e("./RadioGroup")},{"./Radio":110,"./RadioGroup":111}],113:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("react-select"),c=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-select"},this.props.label&&a.createElement("label",null,this.props.label),a.createElement(u,{searchable:this.props.searchable,clearable:this.props.searchable,backspaceRemoves:this.props.searchable,onChange:this.props.onChange,onBlur:this.props.onBlur,onFocus:this.props.onFocus,multi:this.props.multi,value:this.props.value,options:this.props.options,placeholder:this.props.placeholder}))},t}(a.Component);c.propTypes={label:s.string,onChange:s.func.isRequired,onBlur:s.func,onFocus:s.func,multi:s.bool,searchable:s.bool,value:s.any,options:s.arrayOf(s.shape({label:s.string.isRequired,value:s.any.isRequired})),placeholder:s.string},c.defaultProps={multi:!1,searchable:!1},t.exports=c},{react:509,"react-select":116}],114:[function(e,t,n){"use strict";t.exports=e("./Select")},{"./Select":113}],115:[function(e,t,n){"use strict";var r=e("react"),o=e("classnames"),i=r.createClass({displayName:"Option",propTypes:{addLabelText:r.PropTypes.string,className:r.PropTypes.string,mouseDown:r.PropTypes.func,mouseEnter:r.PropTypes.func,mouseLeave:r.PropTypes.func,option:r.PropTypes.object.isRequired,renderFunc:r.PropTypes.func},blockEvent:function(e){e.preventDefault(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href):window.location.href=e.target.href)},handleMouseDown:function(e){this.props.mouseDown(this.props.option,e)},handleMouseEnter:function(e){this.props.mouseEnter(this.props.option,e)},handleMouseLeave:function(e){this.props.mouseLeave(this.props.option,e)},render:function(){var e=this.props.option,t=e.create?this.props.addLabelText.replace("{label}",e.label):this.props.renderFunc(e),n=o(this.props.className,e.className);return e.disabled?r.createElement("div",{className:n,onMouseDown:this.blockEvent,onClick:this.blockEvent},t):r.createElement("div",{className:n,style:e.style,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleMouseDown,title:e.title},t)}});t.exports=i},{classnames:119,react:509}],116:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=e("react"),a=e("react-dom"),s=e("react-input-autosize"),u=e("classnames"),c=e("./Value"),l=e("./SingleValue"),p=e("./Option"),f=0,d=i.createClass({displayName:"Select",propTypes:{addLabelText:i.PropTypes.string,allowCreate:i.PropTypes.bool,asyncOptions:i.PropTypes.func,autoload:i.PropTypes.bool,backspaceRemoves:i.PropTypes.bool,cacheAsyncResults:i.PropTypes.bool,className:i.PropTypes.string,clearAllText:i.PropTypes.string,clearValueText:i.PropTypes.string,clearable:i.PropTypes.bool,delimiter:i.PropTypes.string,disabled:i.PropTypes.bool,filterOption:i.PropTypes.func,filterOptions:i.PropTypes.func,ignoreCase:i.PropTypes.bool,inputProps:i.PropTypes.object,isLoading:i.PropTypes.bool,labelKey:i.PropTypes.string,matchPos:i.PropTypes.string,matchProp:i.PropTypes.string,multi:i.PropTypes.bool,name:i.PropTypes.string,newOptionCreator:i.PropTypes.func,noResultsText:i.PropTypes.string,onBlur:i.PropTypes.func,onChange:i.PropTypes.func,onFocus:i.PropTypes.func,onInputChange:i.PropTypes.func,onOptionLabelClick:i.PropTypes.func,optionComponent:i.PropTypes.func,optionRenderer:i.PropTypes.func,options:i.PropTypes.array,placeholder:i.PropTypes.string,searchable:i.PropTypes.bool,searchingText:i.PropTypes.string,searchPromptText:i.PropTypes.string,singleValueComponent:i.PropTypes.func,value:i.PropTypes.any,valueComponent:i.PropTypes.func,valueKey:i.PropTypes.string,valueRenderer:i.PropTypes.func},getDefaultProps:function(){return{addLabelText:'Add "{label}"?',allowCreate:!1,asyncOptions:void 0,autoload:!0,backspaceRemoves:!0,cacheAsyncResults:!0,className:void 0,clearAllText:"Clear all",clearValueText:"Clear value",clearable:!0,delimiter:",",disabled:!1,ignoreCase:!0,inputProps:{},isLoading:!1,labelKey:"label",matchPos:"any",matchProp:"any",name:void 0,newOptionCreator:void 0,noResultsText:"No results found",onChange:void 0,onInputChange:void 0,onOptionLabelClick:void 0,optionComponent:p,options:void 0,placeholder:"Select...",searchable:!0,searchingText:"Searching...",searchPromptText:"Type to search",singleValueComponent:l,value:void 0,valueComponent:c,valueKey:"value"}},getInitialState:function(){return{isFocused:!1,isLoading:!1,isOpen:!1,options:this.props.options}},componentWillMount:function(){var e=this;this._optionsCache={},this._optionsFilterString="",this._closeMenuIfClickedOutside=function(t){if(e.state.isOpen){var n=a.findDOMNode(e.refs.selectMenuContainer),r=a.findDOMNode(e.refs.control),o=e.clickedOutsideElement(n,t),i=e.clickedOutsideElement(r,t);o&&i&&e.setState({isOpen:!1},e._unbindCloseMenuIfClickedOutside)}},this._bindCloseMenuIfClickedOutside=function(){!document.addEventListener&&document.attachEvent?document.attachEvent("onclick",e._closeMenuIfClickedOutside):document.addEventListener("click",e._closeMenuIfClickedOutside)},this._unbindCloseMenuIfClickedOutside=function(){!document.removeEventListener&&document.detachEvent?document.detachEvent("onclick",e._closeMenuIfClickedOutside):document.removeEventListener("click",e._closeMenuIfClickedOutside)},this.setState(this.getStateFromValue(this.props.value))},componentDidMount:function(){this.props.asyncOptions&&this.props.autoload&&this.autoloadAsyncOptions()},componentWillUnmount:function(){clearTimeout(this._blurTimeout),clearTimeout(this._focusTimeout),this.state.isOpen&&this._unbindCloseMenuIfClickedOutside()},componentWillReceiveProps:function(e){var t=this,n=!1;if(JSON.stringify(e.options)!==JSON.stringify(this.props.options)&&(n=!0,this.setState({options:e.options,filteredOptions:this.filterOptions(e.options)})),e.value!==this.state.value||e.placeholder!==this.props.placeholder||n){var r=function(n){t.setState(t.getStateFromValue(e.value,n&&n.options||e.options,e.placeholder))};this.props.asyncOptions?this.loadAsyncOptions(e.value,{},r):r()}},componentDidUpdate:function(){var e=this;if(!this.props.disabled&&this._focusAfterUpdate&&(clearTimeout(this._blurTimeout),clearTimeout(this._focusTimeout),this._focusTimeout=setTimeout(function(){e.isMounted()&&(e.getInputNode().focus(),e._focusAfterUpdate=!1)},50)),this._focusedOptionReveal){if(this.refs.focused&&this.refs.menu){var t=a.findDOMNode(this.refs.focused),n=a.findDOMNode(this.refs.menu),r=t.getBoundingClientRect(),o=n.getBoundingClientRect();(r.bottom>o.bottom||r.top<o.top)&&(n.scrollTop=t.offsetTop+t.clientHeight-n.offsetHeight)}this._focusedOptionReveal=!1}},focus:function(){this.getInputNode().focus()},clickedOutsideElement:function(e,t){for(var n=t.target?t.target:t.srcElement;null!=n;){if(n===e)return!1;n=n.offsetParent}return!0},getStateFromValue:function(e,t,n){var r=this;t||(t=this.state.options),n||(n=this.props.placeholder),this._optionsFilterString="";var o,i=this.initValuesArray(e,t),a=this.filterOptions(t,i),s=null;return!this.props.multi&&i.length?(o=i[0],s=i[0][this.props.valueKey]):(o=this.getFirstFocusableOption(a),s=i.map(function(e){return e[r.props.valueKey]}).join(this.props.delimiter)),{value:s,values:i,inputValue:"",filteredOptions:a,placeholder:!this.props.multi&&i.length?i[0][this.props.labelKey]:n,focusedOption:o}},getFirstFocusableOption:function(e){for(var t=0;t<e.length;++t)if(!e[t].disabled)return e[t]},initValuesArray:function(e,t){var n=this;return Array.isArray(e)||(e="string"==typeof e?""===e?[]:this.props.multi?e.split(this.props.delimiter):[e]:void 0!==e&&null!==e?[e]:[]),e.map(function(e){if("string"==typeof e||"number"==typeof e){var o;for(var i in t)if(t.hasOwnProperty(i)&&t[i]&&(t[i][n.props.valueKey]===e||"number"==typeof t[i][n.props.valueKey]&&t[i][n.props.valueKey].toString()===e))return t[i];return o={},r(o,n.props.valueKey,e),r(o,n.props.labelKey,e),o}return e})},setValue:function(e,t){(t||void 0===t)&&(this._focusAfterUpdate=!0);var n=this.getStateFromValue(e);n.isOpen=!1,this.fireChangeEvent(n),this.setState(n)},selectValue:function(e){this.props.multi?e&&this.addValue(e):this.setValue(e),this._unbindCloseMenuIfClickedOutside()},addValue:function(e){this.setValue(this.state.values.concat(e))},popValue:function(){this.setValue(this.state.values.slice(0,this.state.values.length-1))},removeValue:function(e){this.setValue(this.state.values.filter(function(t){return t!==e}))},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(null))},resetValue:function(){this.setValue(""===this.state.value?null:this.state.value)},getInputNode:function(){var e=this.refs.input;return this.props.searchable?e:a.findDOMNode(e)},fireChangeEvent:function(e){e.value!==this.state.value&&this.props.onChange&&this.props.onChange(e.value,e.values)},handleMouseDown:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button))return e.stopPropagation(),e.preventDefault(),this.state.isOpen&&!this.props.searchable?void this.setState({isOpen:!1},this._unbindCloseMenuIfClickedOutside):void(this.state.isFocused?this.setState({isOpen:!0},this._bindCloseMenuIfClickedOutside):(this._openAfterFocus=!0,this.getInputNode().focus()))},handleMouseDownOnMenu:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault())},handleMouseDownOnArrow:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||this.state.isOpen&&(e.stopPropagation(),e.preventDefault(),this.setState({isOpen:!1},this._unbindCloseMenuIfClickedOutside))},handleInputFocus:function(e){var t=this,n=this.state.isOpen||this._openAfterFocus;this.setState({isFocused:!0,isOpen:n},function(){n?t._bindCloseMenuIfClickedOutside():t._unbindCloseMenuIfClickedOutside()}),this._openAfterFocus=!1,this.props.onFocus&&this.props.onFocus(e)},handleInputBlur:function(e){var t=this,n=a.findDOMNode(this.refs.menu);document.activeElement.isEqualNode(n)||(this._blurTimeout=setTimeout(function(){!t._focusAfterUpdate&&t.isMounted()&&t.setState({inputValue:"",isFocused:!1,isOpen:!1})},50),this.props.onBlur&&this.props.onBlur(e))},handleKeyDown:function(e){if(!this.props.disabled){switch(e.keyCode){case 8:return void(!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue()));case 9:if(e.shiftKey||!this.state.isOpen||!this.state.focusedOption)return;this.selectFocusedOption();break;case 13:if(!this.state.isOpen)return;this.selectFocusedOption();break;case 27:this.state.isOpen?this.resetValue():this.props.clearable&&this.clearValue(e);break;case 38:this.focusPreviousOption();break;case 40:this.focusNextOption();break;case 188:if(!this.props.allowCreate||!this.props.multi)return;e.preventDefault(),e.stopPropagation(),this.selectFocusedOption();break;default:return}e.preventDefault()}},_getNewFocusedOption:function(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===this.state.focusedOption)return e[t];return this.getFirstFocusableOption(e)},handleInputChange:function(e){if(this._optionsFilterString=e.target.value,this.props.onInputChange&&this.props.onInputChange(e.target.value),this.props.asyncOptions)this.setState({isLoading:!0,inputValue:e.target.value}),this.loadAsyncOptions(e.target.value,{isLoading:!1,isOpen:!0},this._bindCloseMenuIfClickedOutside);else{var t=this.filterOptions(this.state.options);this.setState({isOpen:!0,inputValue:e.target.value,filteredOptions:t,focusedOption:this._getNewFocusedOption(t)},this._bindCloseMenuIfClickedOutside)}},autoloadAsyncOptions:function(){var e=this;this.setState({isLoading:!0}),this.loadAsyncOptions("",{isLoading:!1},function(){e.setValue(e.props.value,!1)})},loadAsyncOptions:function(e,t,n){void 0===e&&(e="");var r=this,o=this._currentRequestId=f++;if(this.props.cacheAsyncResults)for(var i=0;i<=e.length;i++){var a=e.slice(0,i);if(this._optionsCache[a]&&(e===a||this._optionsCache[a].complete)){var s=this._optionsCache[a].options,u=this.filterOptions(s),c={options:s,filteredOptions:u,focusedOption:this._getNewFocusedOption(u)};for(var l in t)t.hasOwnProperty(l)&&(c[l]=t[l]);return this.setState(c),void(n&&n.call(this,c))}}var p=function(i,a){if(i)throw i;if(r.props.cacheAsyncResults&&(r._optionsCache[e]=a),o===r._currentRequestId){var s=r.filterOptions(a.options),u={options:a.options,filteredOptions:s,focusedOption:r._getNewFocusedOption(s)};for(var c in t)t.hasOwnProperty(c)&&(u[c]=t[c]);r.setState(u),n&&n.call(r,u)}},d=this.props.asyncOptions(e,p);d&&"function"==typeof d.then&&d.then(function(e){p(null,e)},function(e){p(e)})},filterOptions:function(e,t){var n=this,r=this._optionsFilterString,o=(t||this.state.values).map(function(e){return e[n.props.valueKey]});if(this.props.filterOptions)return this.props.filterOptions.call(this,e,r,o);var i=function(e){if(this.props.multi&&o.indexOf(e[this.props.valueKey])>-1)return!1;if(this.props.filterOption)return this.props.filterOption.call(this,e,r);var t=String(e[this.props.valueKey]),n=String(e[this.props.labelKey]);return this.props.ignoreCase&&(t=t.toLowerCase(),n=n.toLowerCase(),r=r.toLowerCase()),r&&"start"!==this.props.matchPos?"label"!==this.props.matchProp&&t.indexOf(r)>=0||"value"!==this.props.matchProp&&n.indexOf(r)>=0:"label"!==this.props.matchProp&&t.substr(0,r.length)===r||"value"!==this.props.matchProp&&n.substr(0,r.length)===r};return(e||[]).filter(i,this)},selectFocusedOption:function(){return this.props.allowCreate&&!this.state.focusedOption?this.selectValue(this.state.inputValue):this.state.focusedOption?this.selectValue(this.state.focusedOption):void 0},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusAdjacentOption:function(e){this._focusedOptionReveal=!0;var t=this.state.filteredOptions.filter(function(e){return!e.disabled});if(!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this.state.focusedOption||t["next"===e?0:t.length-1]},this._bindCloseMenuIfClickedOutside);if(t.length){for(var n=-1,r=0;r<t.length;r++)if(this.state.focusedOption===t[r]){n=r;break}var o=t[0];"next"===e&&n>-1&&n<t.length-1?o=t[n+1]:"previous"===e&&(o=n>0?t[n-1]:t[t.length-1]),this.setState({focusedOption:o})}},unfocusOption:function(e){this.state.focusedOption===e&&this.setState({focusedOption:null})},renderOptionLabel:function(e){return e[this.props.labelKey]},buildMenu:function(){var e=this.state.focusedOption?this.state.focusedOption[this.props.valueKey]:null,t=this.props.optionRenderer||this.renderOptionLabel;this.state.filteredOptions.length>0&&(e=null==e?this.state.filteredOptions[0]:e);var n=this.state.filteredOptions;if(this.props.allowCreate&&this.state.inputValue.trim()){var r=this.state.inputValue;n=n.slice();var o=this.props.newOptionCreator?this.props.newOptionCreator(r):{value:r,label:r,create:!0};n.unshift(o)}var a=Object.keys(n).map(function(r){var o=n[r],a=this.state.value===o[this.props.valueKey],s=e===o[this.props.valueKey],c=u({"Select-option":!0,"is-selected":a,"is-focused":s,"is-disabled":o.disabled}),l=s?"focused":null,p=i.createElement(this.props.optionComponent,{key:"option-"+o[this.props.valueKey],className:c,renderFunc:t,mouseDown:this.selectValue,mouseEnter:this.focusOption,mouseLeave:this.unfocusOption,addLabelText:this.props.addLabelText,option:o,ref:l});return p},this);if(a.length)return a;var s,c;return this.isLoading()?(c="Select-searching",s=this.props.searchingText):this.state.inputValue||!this.props.asyncOptions?(c="Select-noresults",s=this.props.noResultsText):(c="Select-search-prompt",s=this.props.searchPromptText),i.createElement("div",{className:c},s)},handleOptionLabelClick:function(e,t){this.props.onOptionLabelClick&&this.props.onOptionLabelClick(e,t)},isLoading:function(){return this.props.isLoading||this.state.isLoading},render:function(){var e=u("Select",this.props.className,{"Select--multi":this.props.multi,"is-searchable":this.props.searchable,"is-open":this.state.isOpen,"is-focused":this.state.isFocused,"is-loading":this.isLoading(),"is-disabled":this.props.disabled,"has-value":this.state.value}),t=[];if(this.props.multi&&this.state.values.forEach(function(e){var n=this.props.valueRenderer||this.renderOptionLabel,r=this.handleOptionLabelClick.bind(this,e),o=this.removeValue.bind(this,e),a=i.createElement(this.props.valueComponent,{key:e[this.props.valueKey],option:e,renderer:n,optionLabelClick:!!this.props.onOptionLabelClick,onOptionLabelClick:r,onRemove:o,disabled:this.props.disabled});t.push(a)},this),!(this.state.inputValue||this.props.multi&&t.length)){var n=this.state.values[0]||null;if(this.props.valueRenderer&&this.state.values.length)t.push(i.createElement(c,{key:0,option:n,renderer:this.props.valueRenderer,disabled:this.props.disabled}));else{var r=i.createElement(this.props.singleValueComponent,{key:"placeholder",value:n,placeholder:this.state.placeholder});t.push(r)}}var a,l,p=this.isLoading()?i.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},i.createElement("span",{className:"Select-loading"})):null,f=this.props.clearable&&this.state.value&&!this.props.disabled&&!this.isLoading()?i.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchEnd:this.clearValue,onClick:this.clearValue},i.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}})):null,d=i.createElement("span",{className:"Select-arrow-zone",onMouseDown:this.handleMouseDownOnArrow},i.createElement("span",{className:"Select-arrow",onMouseDown:this.handleMouseDownOnArrow}));this.state.isOpen&&(l={ref:"menu",className:"Select-menu",onMouseDown:this.handleMouseDownOnMenu},a=i.createElement("div",{ref:"selectMenuContainer",className:"Select-menu-outer"},i.createElement("div",l,this.buildMenu())));var h,g={ref:"input",className:"Select-input "+(this.props.inputProps.className||""),tabIndex:this.props.tabIndex||0,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};for(var m in this.props.inputProps)this.props.inputProps.hasOwnProperty(m)&&"className"!==m&&(g[m]=this.props.inputProps[m]);return this.props.disabled?this.props.multi&&this.state.values.length||(h=i.createElement("div",{className:"Select-input"}," ")):h=this.props.searchable?i.createElement(s,o({value:this.state.inputValue,onChange:this.handleInputChange,minWidth:"5"},g)):i.createElement("div",g," "),i.createElement("div",{ref:"wrapper",className:e},i.createElement("input",{type:"hidden",ref:"value",name:this.props.name,value:this.state.value,disabled:this.props.disabled}),i.createElement("div",{className:"Select-control",ref:"control",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},t,h,p,f,d),a)}});t.exports=d},{"./Option":115,"./SingleValue":117,"./Value":118,classnames:119,react:509,"react-dom":274,"react-input-autosize":120}],117:[function(e,t,n){"use strict";var r=e("react"),o=e("classnames"),i=r.createClass({displayName:"SingleValue",propTypes:{placeholder:r.PropTypes.string,value:r.PropTypes.object},render:function(){var e=o("Select-placeholder",this.props.value&&this.props.value.className);return r.createElement("div",{className:e,style:this.props.value&&this.props.value.style,title:this.props.value&&this.props.value.title},this.props.placeholder)}});t.exports=i},{classnames:119,react:509}],118:[function(e,t,n){"use strict";var r=e("react"),o=e("classnames"),i=r.createClass({displayName:"Value",propTypes:{disabled:r.PropTypes.bool,onOptionLabelClick:r.PropTypes.func,onRemove:r.PropTypes.func,option:r.PropTypes.object.isRequired,optionLabelClick:r.PropTypes.bool,renderer:r.PropTypes.func},blockEvent:function(e){e.stopPropagation()},handleOnRemove:function(e){this.props.disabled||this.props.onRemove(e)},render:function(){var e=this.props.option.label;return this.props.renderer&&(e=this.props.renderer(this.props.option)),this.props.onRemove||this.props.optionLabelClick?(this.props.optionLabelClick&&(e=r.createElement("a",{className:o("Select-item-label__a",this.props.option.className),onMouseDown:this.blockEvent,onTouchEnd:this.props.onOptionLabelClick,onClick:this.props.onOptionLabelClick,style:this.props.option.style,title:this.props.option.title},e)),r.createElement("div",{className:o("Select-item",this.props.option.className),style:this.props.option.style,title:this.props.option.title},r.createElement("span",{className:"Select-item-icon",onMouseDown:this.blockEvent,onClick:this.handleOnRemove,onTouchEnd:this.handleOnRemove},"×"),r.createElement("span",{className:"Select-item-label"},e))):r.createElement("div",{className:o("Select-value",this.props.option.className),style:this.props.option.style,title:this.props.option.title},e)}});t.exports=i},{classnames:119,react:509}],119:[function(t,n,r){!function(){"use strict";function t(){for(var e=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o))e.push(t.apply(null,o));else if("object"===i)for(var a in o)r.call(o,a)&&o[a]&&e.push(a)}}return e.join(" ")}var r={}.hasOwnProperty;"undefined"!=typeof n&&n.exports?n.exports=t:"function"==typeof e&&"object"==typeof e.amd&&e.amd?e("classnames",[],function(){return t}):window.classNames=t}()},{}],120:[function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=e("react"),i={position:"absolute",visibility:"hidden",height:0,width:0,overflow:"scroll",whiteSpace:"pre"},a=("undefined"!=typeof window?function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}().bind(window):void 0,o.createClass({displayName:"AutosizeInput",propTypes:{value:o.PropTypes.any,defaultValue:o.PropTypes.any,onChange:o.PropTypes.func,style:o.PropTypes.object,className:o.PropTypes.string,minWidth:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string]),inputStyle:o.PropTypes.object,inputClassName:o.PropTypes.string},getDefaultProps:function(){return{minWidth:1}},getInitialState:function(){return{inputWidth:this.props.minWidth}},componentDidMount:function(){this.copyInputStyles(),this.updateInputWidth()},componentDidUpdate:function(){this.updateInputWidth()},copyInputStyles:function(){if(this.isMounted()&&window.getComputedStyle){var e=window.getComputedStyle(this.refs.input);if(e){var t=this.refs.sizer;if(t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,this.props.placeholder){var n=this.refs.placeholderSizer;n.style.fontSize=e.fontSize,n.style.fontFamily=e.fontFamily,n.style.fontWeight=e.fontWeight,n.style.fontStyle=e.fontStyle,n.style.letterSpacing=e.letterSpacing}}}},updateInputWidth:function(){if(this.isMounted()&&"undefined"!=typeof this.refs.sizer.scrollWidth){var e=void 0;e=this.props.placeholder?Math.max(this.refs.sizer.scrollWidth,this.refs.placeholderSizer.scrollWidth)+2:this.refs.sizer.scrollWidth+2,e<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}},getInput:function(){return this.refs.input},focus:function(){this.refs.input.focus()},blur:function(){this.refs.input.blur()},select:function(){this.refs.input.select()},render:function(){var e=this.props.defaultValue||this.props.value||"",t=this.props.style||{};t.display||(t.display="inline-block");var n=r({},this.props.inputStyle);n.width=this.state.inputWidth+"px",n.boxSizing="content-box";var a=this.props.placeholder?o.createElement("div",{ref:"placeholderSizer",style:i},this.props.placeholder):null;return o.createElement("div",{className:this.props.className,style:t},o.createElement("input",r({},this.props,{ref:"input",className:this.props.inputClassName,style:n})),o.createElement("div",{ref:"sizer",style:i},e),a)}}));t.exports=a},{react:509}],121:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e="cf-table";return this.props.striped&&(e+=" cf-table--striped"),this.props.hover&&(e+=" cf-table--hover"),this.props.bordered&&(e+=" cf-table--bordered"),this.props.condensed&&(e+=" cf-table--condensed"),u.default.createElement("table",{className:e},this.props.children)},t}(u.default.Component);c.propTypes={striped:s.PropTypes.bool,hover:s.PropTypes.bool,bordered:s.PropTypes.bool,condensed:s.PropTypes.bool},c.defaultProps={striped:!1,hover:!1,bordered:!0,condensed:!1},n.default=c},{react:509}],122:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");
|
4 |
-
}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return u.default.createElement("tbody",{className:"cf-table__body"},this.props.children)},t}(u.default.Component);n.default=c},{react:509}],123:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e="cf-table__cell";return this.props.sortable&&(e+=" cf-table__cell--sortable"),u.default.createElement("td",{className:e},this.props.children)},t}(u.default.Component);c.propTypes={sortable:s.PropTypes.bool,editable:s.PropTypes.bool},n.default=c},{react:509}],124:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return u.default.createElement("tfoot",{className:"cf-table__foot"},this.props.children)},t}(u.default.Component);n.default=c},{react:509}],125:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return u.default.createElement("thead",{className:"cf-table__head"},this.props.children)},t}(u.default.Component);n.default=c},{react:509}],126:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e="cf-table__cell cf-table__cell--head";return this.props.sortable&&(e+=" cf-table__cell--sortable"),u.default.createElement("th",{className:e},this.props.children)},t}(u.default.Component);c.propTypes={sortable:s.PropTypes.bool,editable:s.PropTypes.bool},n.default=c},{react:509}],127:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e="cf-table__row cf-table__row--"+this.props.type;return this.props.accent&&(e+=" cf-table__row--accent-"+this.props.accent),u.default.createElement("tr",{className:e},this.props.children)},t}(u.default.Component);c.propTypes={type:s.PropTypes.oneOf(["default","info","success","warning","error"]),accent:s.PropTypes.oneOf([!1,"gray","orange","pink","red","green","purple"])},c.defaultProps={type:"default",accent:!1},n.default=c},{react:509}],128:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.TableRow=n.TableHeadCell=n.TableHead=n.TableFoot=n.TableCell=n.TableBody=n.Table=void 0;var o=e("./Table"),i=r(o),a=e("./TableBody"),s=r(a),u=e("./TableCell"),c=r(u),l=e("./TableFoot"),p=r(l),f=e("./TableHead"),d=r(f),h=e("./TableHeadCell"),g=r(h),m=e("./TableRow"),y=r(m);n.Table=i.default,n.TableBody=s.default,n.TableCell=c.default,n.TableFoot=p.default,n.TableHead=d.default,n.TableHeadCell=g.default,n.TableRow=y.default},{"./Table":121,"./TableBody":122,"./TableCell":123,"./TableFoot":124,"./TableHead":125,"./TableHeadCell":126,"./TableRow":127}],129:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("cf-component-viewport"),c=e("cf-component-select"),l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.getChildContext=function(){return{activeTab:this.props.activeTab}},t.prototype.handleChange=function(e){e!==this.props.active&&this.props.onChange(e)},t.prototype.handleKeyDown=function(e,t){13===t.which&&this.handleChange(e)},t.prototype.render=function(){var e=this;return a.createElement("section",{className:"cf-tabs"},a.createElement(u,{size:"mobile"},a.createElement(c,{onChange:this.handleChange,value:this.props.activeTab,options:this.props.tabs.map(function(e){return{value:e.id,label:e.label}})})),a.createElement(u,{not:!0,size:"mobile"},a.createElement("ul",{className:"cf-tabs__group",role:"tablist"},this.props.tabs.map(function(t){var n=t.id===e.props.activeTab,r="cf-tabs__item";return n&&(r+=" cf-tabs__item--active"),a.createElement("li",{key:t.id,role:"tab",tabIndex:0,"aria-controls":t.id,"aria-selected":n,className:r,onKeyDown:e.handleKeyDown.bind(e,t.id),onClick:e.handleChange.bind(e,t.id)},t.label)}))),this.props.children)},t}(a.Component);l.propTypes={onChange:s.func.isRequired,activeTab:s.string.isRequired,tabs:s.arrayOf(s.shape({id:s.string.isRequired,label:s.string.isRequired})).isRequired},l.childContextTypes={activeTab:s.string.isRequired},t.exports=l},{"cf-component-select":114,"cf-component-viewport":134,react:509}],130:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.context.activeTab===this.props.id;return a.createElement("div",{className:"cf-tabs__panel",role:"tabpanel","aria-labelledby":this.props.id,"aria-hidden":!e,style:{display:e?"block":"none"}},this.props.children)},t}(a.Component);u.propTypes={id:s.string.isRequired},u.contextTypes={activeTab:s.string.isRequired},t.exports=u},{react:509}],131:[function(e,t,n){"use strict";n.Tabs=e("./Tabs"),n.TabsPanel=e("./TabsPanel")},{"./Tabs":129,"./TabsPanel":130}],132:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("react-responsive"),c=e("./buildMediaQuery"),l={mobile:{minWidth:null,maxWidth:"15.6em"},mobileWide:{minWidth:"15.6em",maxWidth:"32.4em"},tablet:{minWidth:"32.4em",maxWidth:"49.2em"},desktop:{minWidth:"49.2em",maxWidth:"66em"},desktopLarge:{minWidth:"66em",maxWidth:null}},p=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.size,n=e.not,r=c(l[t],n);return a.createElement(u,{query:r},this.props.children)},t}(a.Component);p.propTypes={not:s.bool,size:s.oneOf(["mobile","mobileWide","tablet","desktop","desktopLarge"]).isRequired},p.defaultProps={not:!1},t.exports=p},{"./buildMediaQuery":133,react:509,"react-responsive":139}],133:[function(e,t,n){"use strict";function r(e,t){var n=e.minWidth,r=e.maxWidth,o="";return n&&(o+="(min-width: "+n+")"),n&&r&&(o+=" and "),r&&(o+="(max-width: "+r+")"),t&&(o="not all and "+o),o}t.exports=r},{}],134:[function(e,t,n){"use strict";t.exports=e("./Viewport")},{"./Viewport":132}],135:[function(e,t,n){"use strict";function r(e){return e.replace(o,"-$&").toLowerCase().replace(i,"-ms-")}var o=/[A-Z]/g,i=/^ms-/;t.exports=r},{}],136:[function(e,t,n){"use strict";function r(e,t){function n(e){u&&u.addListener(e)}function r(e){u&&u.removeListener(e)}function o(e){s.matches=e.matches,s.media=e.media}var s=this;if(a){var u=a.call(window,e);this.matches=u.matches,this.media=u.media,u.addListener(o)}else this.matches=i(e,t),this.media=e;this.addListener=n,this.removeListener=r}function o(e,t){return new r(e,t)}var i=e("css-mediaquery").match,a="undefined"!=typeof window?window.matchMedia:null;t.exports=o},{"css-mediaquery":137}],137:[function(e,t,n){"use strict";function r(e,t){return o(e).some(function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every(function(e){var n=e.feature,r=e.modifier,o=e.value,u=t[n];if(!u)return!1;switch(n){case"orientation":case"scan":return u.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=s(o),u=s(u);break;case"resolution":o=a(o),u=a(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=i(o),u=i(u);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,u=parseInt(u,10)||0}switch(r){case"min":return u>=o;case"max":return u<=o;default:return u===o}});return o&&!n||!o&&n})}function o(e){return e.split(",").map(function(e){e=e.trim();var t=e.match(u),n=t[1],r=t[2],o=t[3]||"",i={};return i.inverse=!!n&&"not"===n.toLowerCase(),i.type=r?r.toLowerCase():"all",o=o.match(/\([^\)]+\)/g)||[],i.expressions=o.map(function(e){var t=e.match(c),n=t[1].toLowerCase().match(l);return{modifier:n[1],feature:n[2],value:t[2]}}),i})}function i(e){var t,n=Number(e);return n||(t=e.match(/^(\d+)\s*\/\s*(\d+)$/),n=t[1]/t[2]),n}function a(e){var t=parseFloat(e),n=String(e).match(f)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function s(e){var t=parseFloat(e),n=String(e).match(p)[1];switch(n){case"em":return 16*t;case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}n.match=r,n.parse=o;var u=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,c=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,l=/^(?:(min|max)-)?(.+)/,p=/(em|rem|px|cm|mm|in|pt|pc)?$/,f=/(dpi|dpcm|dppx)?$/},{}],138:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(e,t){for(var n,o,s=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)i.call(n,c)&&(s[c]=n[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(n);for(var l=0;l<o.length;l++)a.call(n,o[l])&&(s[o[l]]=n[o[l]])}}return s}},{}],139:[function(e,t,n){"use strict";function r(e,t){var n=c({},e);return t.forEach(function(e){delete n[e]}),n}var o=e("react"),i=e("matchmedia"),a=e("hyphenate-style-name"),s=e("./mediaQuery"),u=e("./toQuery"),c=e("object-assign"),l={component:o.PropTypes.node,query:o.PropTypes.string,values:o.PropTypes.shape(s.matchers),children:o.PropTypes.array},p=Object.keys(s.all),f=Object.keys(l),d=f.concat(p),h=o.createClass({displayName:"MediaQuery",getDefaultProps:function(){return{values:{}}},getInitialState:function(){return{matches:!1}},componentWillMount:function(){this.updateQuery(this.props)},componentWillReceiveProps:function(e){this.updateQuery(e)},updateQuery:function(e){var t;if(e.query?this.query=e.query:this.query=u(r(e,f)),!this.query)throw new Error("Invalid or missing MediaQuery!");e.values&&(t=Object.keys(e.values).reduce(function(t,n){return t[a(n)]=e.values[n],t},{})),this._mql&&this._mql.removeListener(this.updateMatches),this._mql=i(this.query,t),this._mql.addListener(this.updateMatches),this.updateMatches()},componentWillUnmount:function(){this._mql.removeListener(this.updateMatches)},updateMatches:function(){this._mql.matches!==this.state.matches&&this.setState({matches:this._mql.matches})},render:function(){if(this.state.matches===!1)return null;var e=r(this.props,d),t=Object.keys(e).length>0,n=o.Children.count(this.props.children),i=this.props.component||n>1||"string"==typeof this.props.children||void 0===this.props.children;return i?o.createElement(this.props.component||"div",e,this.props.children):t?o.cloneElement(this.props.children,e):n?this.props.children:null}});t.exports=h},{"./mediaQuery":140,"./toQuery":141,"hyphenate-style-name":135,matchmedia:136,"object-assign":138,react:509}],140:[function(e,t,n){var r=e("react").PropTypes,o=e("object-assign"),i=r.oneOfType([r.string,r.number]),a={orientation:r.oneOf(["portrait","landscape"]),scan:r.oneOf(["progressive","interlace"]),aspectRatio:r.string,deviceAspectRatio:r.string,height:i,deviceHeight:i,width:i,deviceWidth:i,color:r.bool,colorIndex:r.bool,monochrome:r.bool,resolution:i},s={minAspectRatio:r.string,maxAspectRatio:r.string,minDeviceAspectRatio:r.string,maxDeviceAspectRatio:r.string,minHeight:i,maxHeight:i,minDeviceHeight:i,maxDeviceHeight:i,minWidth:i,maxWidth:i,minDeviceWidth:i,maxDeviceWidth:i,minColor:r.number,maxColor:r.number,minColorIndex:r.number,maxColorIndex:r.number,minMonochrome:r.number,maxMonochrome:r.number,minResolution:i,maxResolution:i};o(s,a);var u={all:r.bool,grid:r.bool,aural:r.bool,braille:r.bool,handheld:r.bool,print:r.bool,projection:r.bool,screen:r.bool,tty:r.bool,tv:r.bool,embossed:r.bool},c={};o(c,u),o(c,s),o(a,{type:Object.keys(u)}),t.exports={all:c,types:u,matchers:a,features:s}},{"object-assign":138,react:509}],141:[function(e,t,n){"use strict";function r(e){return"not "+e}function o(e,t){var n=a(e);return"number"==typeof t&&(t+="px"),t===!0?e:t===!1?r(e):"("+n+": "+t+")"}function i(e){return e.join(" and ")}var a=e("hyphenate-style-name"),s=e("./mediaQuery");t.exports=function(e){var t=[];return Object.keys(s.all).forEach(function(n){var r=e[n];null!=r&&t.push(o(n,r))}),i(t)}},{"./mediaQuery":140,"hyphenate-style-name":135}],142:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("react-required-if"),c=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange&&i.props.onChange(e.target.value)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-textarea";return this.props.disabled&&(e+=" cf-textarea--disabled"),this.props.readOnly&&(e+=" cf-textarea--readonly"),a.createElement("textarea",{className:e,name:this.props.name,value:this.props.value,disabled:this.props.disabled,readOnly:this.props.readOnly,onChange:this.handleChange,onFocus:this.props.onFocus,onBlur:this.props.onBlur})},t}(a.Component);c.propTypes={name:s.string.isRequired,value:s.string.isRequired,disabled:s.bool,readOnly:s.bool,onChange:u(s.func,function(e){return!e.disabled&&!e.readOnly}),onFocus:s.func,onBlur:s.func},t.exports=c},{react:509,"react-required-if":144}],143:[function(e,t,n){"use strict";t.exports=e("./Textarea")},{"./Textarea":142}],144:[function(e,t,n){t.exports=function(e,t){return function(n){const r=t(n)?e.isRequired:e;return r.apply(this,arguments)}}},{}],145:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange(e.target.checked)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-toggle";return this.props.value&&(e+=" cf-toggle--active"),a.createElement("label",{htmlFor:this.props.name,className:e},a.createElement("input",{className:"cf-toggle__checkbox",type:"checkbox",id:this.props.name,name:this.props.name,checked:this.props.value,onChange:this.handleChange,onFocus:this.props.onFocus,onBlur:this.props.onBlur}),a.createElement("span",{className:"cf-toggle__label"},this.props.label),a.createElement("span",{className:"cf-toggle__handle"}))},t}(a.Component);u.propTypes={label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string,value:s.bool,onChange:s.func,onFocus:s.func,onBlur:s.func},t.exports=u},{react:509}],146:[function(e,t,n){"use strict";t.exports=e("./Toggle")},{"./Toggle":145}],147:[function(e,t,n){"use strict";function r(e){m.push(e)}function o(e,t,n,r){n=n||{},n.method=e,n.url=t,n.callback=r,m.forEach(function(e){return e(n)});var o=l[g[n.method]](n.url);n.parameters&&o.query(n.parameters),n.headers&&o.set(n.headers),n.body&&o.send(n.body);var i=n.method+" "+n.url;return f(i),o.end(function(e,t){i=i+" ("+t.status+" "+t.statusText+")";var r={headers:t.headers,status:t.status,body:t.body,text:t.text};e?(d(i),n.callback(r)):(h(i),n.callback(null,r))}),function(){o.abort()}}function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["GET"].concat(t))}function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["POST"].concat(t))}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["PUT"].concat(t))}function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["PATCH"].concat(t))}function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["DELETE"].concat(t))}var l=e("superagent"),p=e("cf-util-logger"),f=p("http:request"),d=p("http:error"),h=p("http:success"),g={GET:"get",POST:"post",PUT:"put",PATCH:"patch",DELETE:"del"},m=[];t.exports={beforeSend:r,request:o,get:i,post:a,put:s,patch:u,del:c}},{"cf-util-logger":150,superagent:154}],148:[function(e,t,n){"use strict";t.exports=e("./http")},{"./http":147}],149:[function(e,t,n){"use strict";function r(e){var t=o(e);return function(e){t(e)}}var o=e("debug");t.exports=r},{debug:151}],150:[function(e,t,n){"use strict";t.exports=e("./createLogger")},{"./createLogger":149}],151:[function(e,t,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function o(){var e=arguments,t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff),!t)return e;var r="color: "+this.color;e=[e[0],r,"color: inherit"].concat(Array.prototype.slice.call(e,1));var o=0,i=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r),e}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(e){}}function s(){var e;try{e=n.storage.debug}catch(e){}return e}function u(){try{return window.localStorage}catch(e){}}n=t.exports=e("./debug"),n.log=i,n.formatArgs=o,n.save=a,n.load=s,n.useColors=r,n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){return JSON.stringify(e)},n.enable(s())},{"./debug":152}],152:[function(e,t,n){function r(){return n.colors[l++%n.colors.length]}function o(e){function t(){}function o(){var e=o,t=+new Date,i=t-(c||t);e.diff=i,e.prev=c,e.curr=t,c=t,null==e.useColors&&(e.useColors=n.useColors()),null==e.color&&e.useColors&&(e.color=r());var a=Array.prototype.slice.call(arguments);a[0]=n.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var s=0;a[0]=a[0].replace(/%([a-z%])/g,function(t,r){if("%%"===t)return t;s++;var o=n.formatters[r];if("function"==typeof o){var i=a[s];t=o.call(e,i),a.splice(s,1),s--}return t}),"function"==typeof n.formatArgs&&(a=n.formatArgs.apply(e,a));var u=o.log||n.log||console.log.bind(console);u.apply(e,a)}t.enabled=!1,o.enabled=!0;var i=n.enabled(e)?o:t;return i.namespace=e,i}function i(e){n.save(e);for(var t=(e||"").split(/[\s,]+/),r=t.length,o=0;o<r;o++)t[o]&&(e=t[o].replace(/\*/g,".*?"),"-"===e[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))}function a(){n.enable("")}function s(e){var t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}n=t.exports=o,n.coerce=u,n.disable=a,n.enable=i,n.enabled=s,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};var c,l=0},{ms:153}],153:[function(e,t,n){function r(e){if(e=""+e,!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*p;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*u;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function o(e){return e>=l?Math.round(e/l)+"d":e>=c?Math.round(e/c)+"h":e>=u?Math.round(e/u)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function i(e){return a(e,l,"day")||a(e,c,"hour")||a(e,u,"minute")||a(e,s,"second")||e+" ms"}function a(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var s=1e3,u=60*s,c=60*u,l=24*c,p=365.25*l;t.exports=function(e,t){return t=t||{},"string"==typeof e?r(e):t.long?i(e):o(e)}},{}],154:[function(e,t,n){function r(){}function o(e){var t={}.toString.call(e);switch(t){case"[object File]":case"[object Blob]":case"[object FormData]":return!0;default:return!1}}function i(e){if(!_(e))return e;var t=[];for(var n in e)null!=e[n]&&a(t,n,e[n]);return t.join("&")}function a(e,t,n){return Array.isArray(n)?n.forEach(function(n){a(e,t,n)}):void e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}function s(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i<a;++i)n=o[i],t=n.split("="),r[decodeURIComponent(t[0])]=decodeURIComponent(t[1]);return r}function u(e){var t,n,r,o,i=e.split(/\r?\n/),a={};i.pop();for(var s=0,u=i.length;s<u;++s)n=i[s],t=n.indexOf(":"),r=n.slice(0,t).toLowerCase(),o=E(n.slice(t+1)),a[r]=o;return a}function c(e){return/[\/+]json\b/.test(e)}function l(e){return e.split(/ *; */).shift()}function p(e){return y(e.split(/ *; */),function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e},{})}function f(e,t){t=t||{},this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||"undefined"==typeof this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText,this.setStatusProperties(this.xhr.status),this.header=this.headers=u(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this.setHeaderProperties(this.header),this.body="HEAD"!=this.req.method?this.parseBody(this.text?this.text:this.xhr.response):null}function d(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e=null,t=null;try{t=new f(n)}catch(t){return e=new Error("Parser is unable to parse the response"),e.parse=!0,e.original=t,e.rawResponse=n.xhr&&n.xhr.responseText?n.xhr.responseText:null,e.statusCode=n.xhr&&n.xhr.status?n.xhr.status:null,n.callback(e)}if(n.emit("response",t),e)return n.callback(e,t);if(t.status>=200&&t.status<300)return n.callback(e,t);var r=new Error(t.statusText||"Unsuccessful HTTP response");r.original=e,r.response=t,r.status=t.status,n.callback(r,t)})}function h(e,t){var n=b("DELETE",e);return t&&n.end(t),n}var g,m=e("emitter"),y=e("reduce"),v=e("./request-base"),_=e("./is-object");g="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var b=t.exports=e("./request").bind(null,d);b.getXHR=function(){if(!(!g.XMLHttpRequest||g.location&&"file:"==g.location.protocol&&g.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return!1};var E="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};b.serializeObject=i,b.parseString=s,b.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},b.serialize={"application/x-www-form-urlencoded":i,"application/json":JSON.stringify},b.parse={"application/x-www-form-urlencoded":s,"application/json":JSON.parse},f.prototype.get=function(e){return this.header[e.toLowerCase()]},f.prototype.setHeaderProperties=function(e){var t=this.header["content-type"]||"";this.type=l(t);var n=p(t);for(var r in n)this[r]=n[r]},f.prototype.parseBody=function(e){var t=b.parse[this.type];return!t&&c(this.type)&&(t=b.parse["application/json"]),t&&e&&(e.length||e instanceof Object)?t(e):null},f.prototype.setStatusProperties=function(e){1223===e&&(e=204);var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.notFound=404==e,this.forbidden=403==e},f.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot "+t+" "+n+" ("+this.status+")",o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},b.Response=f,m(d.prototype);for(var x in v)d.prototype[x]=v[x];d.prototype.abort=function(){if(!this.aborted)return this.aborted=!0,this.xhr&&this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this},d.prototype.type=function(e){return this.set("Content-Type",b.types[e]||e),this},d.prototype.responseType=function(e){return this._responseType=e,this},d.prototype.accept=function(e){return this.set("Accept",b.types[e]||e),this},d.prototype.auth=function(e,t,n){switch(n||(n={type:"basic"}),n.type){case"basic":var r=btoa(e+":"+t);this.set("Authorization","Basic "+r);break;case"auto":this.username=e,this.password=t}return this},d.prototype.query=function(e){
|
5 |
-
return"string"!=typeof e&&(e=i(e)),e&&this._query.push(e),this},d.prototype.attach=function(e,t,n){return this._getFormData().append(e,t,n||t.name),this},d.prototype._getFormData=function(){return this._formData||(this._formData=new g.FormData),this._formData},d.prototype.send=function(e){var t=_(e),n=this._header["content-type"];if(t&&_(this._data))for(var r in e)this._data[r]=e[r];else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],"application/x-www-form-urlencoded"==n?this._data=this._data?this._data+"&"+e:e:this._data=(this._data||"")+e):this._data=e;return!t||o(e)?this:(n||this.type("json"),this)},f.prototype.parse=function(e){return g.console&&console.warn("Client-side parse() method has been renamed to serialize(). This method is not compatible with superagent v2.0"),this.serialize(e),this},f.prototype.serialize=function(e){return this._parser=e,this},d.prototype.callback=function(e,t){var n=this._callback;this.clearTimeout(),n(e,t)},d.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},d.prototype.timeoutError=function(){var e=this._timeout,t=new Error("timeout of "+e+"ms exceeded");t.timeout=e,this.callback(t)},d.prototype.withCredentials=function(){return this._withCredentials=!0,this},d.prototype.end=function(e){var t=this,n=this.xhr=b.getXHR(),i=this._query.join("&"),a=this._timeout,s=this._formData||this._data;this._callback=e||r,n.onreadystatechange=function(){if(4==n.readyState){var e;try{e=n.status}catch(t){e=0}if(0==e){if(t.timedout)return t.timeoutError();if(t.aborted)return;return t.crossDomainError()}t.emit("end")}};var u=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),e.direction="download",t.emit("progress",e)};this.hasListeners("progress")&&(n.onprogress=u);try{n.upload&&this.hasListeners("progress")&&(n.upload.onprogress=u)}catch(e){}if(a&&!this._timer&&(this._timer=setTimeout(function(){t.timedout=!0,t.abort()},a)),i&&(i=b.serializeObject(i),this.url+=~this.url.indexOf("?")?"&"+i:"?"+i),this.username&&this.password?n.open(this.method,this.url,!0,this.username,this.password):n.open(this.method,this.url,!0),this._withCredentials&&(n.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof s&&!o(s)){var l=this._header["content-type"],p=this._parser||b.serialize[l?l.split(";")[0]:""];!p&&c(l)&&(p=b.serialize["application/json"]),p&&(s=p(s))}for(var f in this.header)null!=this.header[f]&&n.setRequestHeader(f,this.header[f]);return this._responseType&&(n.responseType=this._responseType),this.emit("request",this),n.send("undefined"!=typeof s?s:null),this},b.Request=d,b.get=function(e,t,n){var r=b("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},b.head=function(e,t,n){var r=b("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.del=h,b.delete=h,b.patch=function(e,t,n){var r=b("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.post=function(e,t,n){var r=b("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.put=function(e,t,n){var r=b("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},{"./is-object":155,"./request":157,"./request-base":156,emitter:158,reduce:159}],155:[function(e,t,n){function r(e){return null!=e&&"object"==typeof e}t.exports=r},{}],156:[function(e,t,n){var r=e("./is-object");n.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},n.parse=function(e){return this._parser=e,this},n.timeout=function(e){return this._timeout=e,this},n.then=function(e,t){return this.end(function(n,r){n?t(n):e(r)})},n.use=function(e){return e(this),this},n.get=function(e){return this._header[e.toLowerCase()]},n.getHeader=n.get,n.set=function(e,t){if(r(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},n.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},n.field=function(e,t){return this._getFormData().append(e,t),this}},{"./is-object":155}],157:[function(e,t,n){function r(e,t,n){return"function"==typeof n?new e("GET",t).end(n):2==arguments.length?new e("GET",t):new e(t,n)}t.exports=r},{}],158:[function(e,t,n){function r(e){if(e)return o(e)}function o(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}"undefined"!=typeof t&&(t.exports=r),r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},{}],159:[function(e,t,n){t.exports=function(e,t,n){for(var r=0,o=e.length,i=3==arguments.length?n:e[r++];r<o;)i=t.call(null,i,e[r],++r,e);return i}},{}],160:[function(t,n,r){!function(t,o){"object"==typeof r&&"undefined"!=typeof n?o(r):"function"==typeof e&&e.amd?e(["exports"],o):o(t.d3=t.d3||{})}(this,function(e){"use strict";function t(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function n(e){return e=t(Math.abs(e)),e?e[1]:NaN}function r(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(n.substring(o-=s,o+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function o(e,t){e=e.toPrecision(t);e:for(var n,r=e.length,o=1,i=-1;o<r;++o)switch(e[o]){case".":i=n=o;break;case"0":0===i&&(i=o),n=o;break;case"e":break e;default:i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(n+1):e}function i(e,n){var r=t(e,n);if(!r)return e+"";var o=r[0],i=r[1],a=i-(g=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=o.length;return a===s?o:a>s?o+new Array(a-s+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+new Array(1-a).join("0")+t(e,Math.max(0,n+a-1))[0]}function a(e,n){var r=t(e,n);if(!r)return e+"";var o=r[0],i=r[1];return i<0?"0."+new Array((-i)).join("0")+o:o.length>i+1?o.slice(0,i+1)+"."+o.slice(i+1):o+new Array(i-o.length+2).join("0")}function s(e){return new u(e)}function u(e){if(!(t=y.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",o=t[3]||"-",i=t[4]||"",a=!!t[5],s=t[6]&&+t[6],u=!!t[7],c=t[8]&&+t[8].slice(1),l=t[9]||"";"n"===l?(u=!0,l="g"):m[l]||(l=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=o,this.symbol=i,this.zero=a,this.width=s,this.comma=u,this.precision=c,this.type=l}function c(e){return e}function l(e){function t(e){function t(e){var t,a,s,c=y,m=v;if("c"===h)m=b(e)+m,e="";else{e=+e;var x=(e<0||1/e<0)&&(e*=-1,!0);if(e=b(e,d),x)for(t=-1,a=e.length,x=!1;++t<a;)if(s=e.charCodeAt(t),48<s&&s<58||"x"===h&&96<s&&s<103||"X"===h&&64<s&&s<71){x=!0;break}if(c=(x?"("===o?o:"-":"-"===o||"("===o?"":o)+c,m=m+("s"===h?_[8+g/3]:"")+(x&&"("===o?")":""),E)for(t=-1,a=e.length;++t<a;)if(s=e.charCodeAt(t),48>s||s>57){m=(46===s?u+e.slice(t+1):e.slice(t))+m,e=e.slice(0,t);break}}f&&!l&&(e=i(e,1/0));var C=c.length+e.length+m.length,w=C<p?new Array(p-C+1).join(n):"";switch(f&&l&&(e=i(w+e,w.length?p-m.length:1/0),w=""),r){case"<":return c+e+m+w;case"=":return c+w+e+m;case"^":return w.slice(0,C=w.length>>1)+c+e+m+w.slice(C)}return w+c+e+m}e=s(e);var n=e.fill,r=e.align,o=e.sign,c=e.symbol,l=e.zero,p=e.width,f=e.comma,d=e.precision,h=e.type,y="$"===c?a[0]:"#"===c&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",v="$"===c?a[1]:/[%p]/.test(h)?"%":"",b=m[h],E=!h||/[defgprs%]/.test(h);return d=null==d?h?6:12:/[gprs]/.test(h)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),t.toString=function(){return e+""},t}function o(e,r){var o=t((e=s(e),e.type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(n(r)/3))),a=Math.pow(10,-i),u=_[8+i/3];return function(e){return o(a*e)+u}}var i=e.grouping&&e.thousands?r(e.grouping,e.thousands):c,a=e.currency,u=e.decimal;return{format:t,formatPrefix:o}}function p(t){return v=l(t),e.format=v.format,e.formatPrefix=v.formatPrefix,v}function f(e){return Math.max(0,-n(Math.abs(e)))}function d(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(n(t)/3)))-n(Math.abs(e)))}function h(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,n(t)-n(e))+1}var g,m={"":o,"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return a(100*e,t)},r:a,s:i,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},y=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var v,_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];p({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),e.formatDefaultLocale=p,e.formatLocale=l,e.formatSpecifier=s,e.precisionFixed=f,e.precisionPrefix=d,e.precisionRound=h,Object.defineProperty(e,"__esModule",{value:!0})})},{}],161:[function(e,t,n){"use strict";n.__esModule=!0;var r="PUSH";n.PUSH=r;var o="REPLACE";n.REPLACE=o;var i="POP";n.POP=i,n.default={PUSH:r,REPLACE:o,POP:i}},{}],162:[function(e,t,n){"use strict";function r(e,t,n){function r(){a=!0,n.apply(this,arguments)}function o(){a||(i<e?t.call(this,i++,o,r):r.apply(this,arguments))}var i=0,a=!1;o()}n.__esModule=!0,n.loopAsync=r},{}],163:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return c+e}function i(e,n){try{window.sessionStorage.setItem(o(e),JSON.stringify(n))}catch(e){if(e.name===p)return void("production"!==t.env.NODE_ENV?u.default(!1,"[history] Unable to save state; sessionStorage is not available due to security settings"):void 0);if(e.name===l&&0===window.sessionStorage.length)return void("production"!==t.env.NODE_ENV?u.default(!1,"[history] Unable to save state; sessionStorage is not available in Safari private mode"):void 0);throw e}}function a(e){var n=void 0;try{n=window.sessionStorage.getItem(o(e))}catch(e){if(e.name===p)return"production"!==t.env.NODE_ENV?u.default(!1,"[history] Unable to read state; sessionStorage is not available due to security settings"):void 0,null}if(n)try{return JSON.parse(n)}catch(e){}return null}n.__esModule=!0,n.saveState=i,n.readState=a;var s=e("warning"),u=r(s),c="@@History/",l="QuotaExceededError",p="SecurityError"}).call(this,e("_process"))},{_process:2,warning:183}],164:[function(e,t,n){"use strict";function r(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function o(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function i(){return window.location.href.split("#")[1]||""}function a(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function s(){return window.location.pathname+window.location.search+window.location.hash}function u(e){e&&window.history.go(e)}function c(e,t){t(window.confirm(e))}function l(){var e=navigator.userAgent;return(e.indexOf("Android 2.")===-1&&e.indexOf("Android 4.0")===-1||e.indexOf("Mobile Safari")===-1||e.indexOf("Chrome")!==-1||e.indexOf("Windows Phone")!==-1)&&(e.indexOf("CriOS")===-1&&(window.history&&"pushState"in window.history))}function p(){var e=navigator.userAgent;return e.indexOf("Firefox")===-1}n.__esModule=!0,n.addEventListener=r,n.removeEventListener=o,n.getHashPath=i,n.replaceHashPath=a,n.getWindowPath=s,n.go=u,n.getUserConfirmation=c,n.supportsHistory=l,n.supportsGoWithoutReloadUsingHash=p},{}],165:[function(e,t,n){"use strict";n.__esModule=!0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);n.canUseDOM=r},{}],166:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){function t(e){return c.canUseDOM?void 0:"production"!==r.env.NODE_ENV?u.default(!1,"DOM history needs a DOM"):u.default(!1),n.listen(e)}var n=f.default(a({getUserConfirmation:l.getUserConfirmation},e,{go:l.go}));return a({},n,{listen:t})}n.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=e("invariant"),u=o(s),c=e("./ExecutionEnvironment"),l=e("./DOMUtils"),p=e("./createHistory"),f=o(p);n.default=i,t.exports=n.default}).call(this,e("_process"))},{"./DOMUtils":164,"./ExecutionEnvironment":165,"./createHistory":168,_process:2,invariant:180}],167:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return"string"==typeof e&&"/"===e.charAt(0)}function a(){var e=v.getHashPath();return!!i(e)||(v.replaceHashPath("/"+e),!1)}function s(e,t,n){return e+(e.indexOf("?")===-1?"?":"&")+(t+"="+n)}function u(e,t){return e.replace(new RegExp("[?&]?"+t+"=[a-zA-Z0-9]+"),"")}function c(e,t){var n=e.match(new RegExp("\\?.*?\\b"+t+"=(.+?)\\b"));return n&&n[1]}function l(){function e(){var e=v.getHashPath(),t=void 0,n=void 0;R?(t=c(e,R),e=u(e,R),t?n=_.readState(t):(n=null,t=N.createKey(),v.replaceHashPath(s(e,R,t)))):t=n=null;var r=C.default(e);return N.createLocation(p({},r,{state:n}),void 0,t)}function t(t){function n(){a()&&r(e())}var r=t.transitionTo;return a(),v.addEventListener(window,"hashchange",n),function(){v.removeEventListener(window,"hashchange",n)}}function n(e){var t=e.basename,n=e.pathname,o=e.search,i=e.state,a=e.action,u=e.key;if(a!==m.POP){var c=(t||"")+n+o;R?(c=s(c,R,u),_.saveState(u,i)):e.key=e.state=null;var l=v.getHashPath();a===m.PUSH?l!==c?window.location.hash=c:"production"!==r.env.NODE_ENV?d.default(!1,"You cannot PUSH the same path using hash history"):void 0:l!==c&&v.replaceHashPath(c)}}function o(e){1===++A&&(M=t(N));var n=N.listenBefore(e);return function(){n(),0===--A&&M()}}function i(e){1===++A&&(M=t(N));var n=N.listen(e);return function(){n(),0===--A&&M()}}function l(e){"production"!==r.env.NODE_ENV?d.default(R||null==e.state,"You cannot use state without a queryKey it will be dropped"):void 0,N.push(e)}function f(e){"production"!==r.env.NODE_ENV?d.default(R||null==e.state,"You cannot use state without a queryKey it will be dropped"):void 0,N.replace(e)}function h(e){"production"!==r.env.NODE_ENV?d.default(D,"Hash history go(n) causes a full page reload in this browser"):void 0,N.go(e)}function b(e){return"#"+N.createHref(e)}function x(e){1===++A&&(M=t(N)),N.registerTransitionHook(e)}function S(e){N.unregisterTransitionHook(e),0===--A&&M()}function O(e,t){"production"!==r.env.NODE_ENV?d.default(R||null==e,"You cannot use state without a queryKey it will be dropped"):void 0,N.pushState(e,t)}function T(e,t){"production"!==r.env.NODE_ENV?d.default(R||null==e,"You cannot use state without a queryKey it will be dropped"):void 0,N.replaceState(e,t)}var P=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];y.canUseDOM?void 0:"production"!==r.env.NODE_ENV?g.default(!1,"Hash history needs a DOM"):g.default(!1);var R=P.queryKey;(void 0===R||R)&&(R="string"==typeof R?R:w);var N=E.default(p({},P,{getCurrentLocation:e,finishTransition:n,saveState:_.saveState})),A=0,M=void 0,D=v.supportsGoWithoutReloadUsingHash();return p({},N,{listenBefore:o,listen:i,push:l,replace:f,go:h,createHref:b,registerTransitionHook:x,unregisterTransitionHook:S,pushState:O,replaceState:T})}n.__esModule=!0;var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=e("warning"),d=o(f),h=e("invariant"),g=o(h),m=e("./Actions"),y=e("./ExecutionEnvironment"),v=e("./DOMUtils"),_=e("./DOMStateStorage"),b=e("./createDOMHistory"),E=o(b),x=e("./parsePath"),C=o(x),w="_k";n.default=l,t.exports=n.default}).call(this,e("_process"))},{"./Actions":161,"./DOMStateStorage":163,"./DOMUtils":164,"./ExecutionEnvironment":165,"./createDOMHistory":166,"./parsePath":173,_process:2,invariant:180,warning:183}],168:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return Math.random().toString(36).substr(2,e)}function i(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.key===t.key&&c.default(e.state,t.state)}function a(){function e(e){return j.push(e),function(){j=j.filter(function(t){return t!==e})}}function t(){return z&&z.action===p.POP?F.indexOf(z.key):U?F.indexOf(U.key):-1}function n(e){var n=t();U=e,U.action===p.PUSH?F=[].concat(F.slice(0,n+1),[U.key]):U.action===p.REPLACE&&(F[n]=U.key),V.forEach(function(e){e(U)})}function r(e){if(V.push(e),U)e(U);else{var t=A();F=[t.key],n(t)}return function(){V=V.filter(function(t){return t!==e})}}function a(e,t){l.loopAsync(j.length,function(t,n,r){g.default(j[t],e,function(e){null!=e?r(e):n()})},function(e){k&&"string"==typeof e?k(e,function(e){t(e!==!1)}):t(e!==!1)})}function u(e){U&&i(U,e)||(z=e,a(e,function(t){if(z===e)if(t){if(e.action===p.PUSH){var r=E(U),o=E(e);o===r&&(e.action=p.REPLACE)}M(e)!==!1&&n(e)}else if(U&&e.action===p.POP){var i=F.indexOf(U.key),a=F.indexOf(e.key);i!==-1&&a!==-1&&I(i-a)}}))}function c(e){u(C(e,p.PUSH,v()))}function f(e){u(C(e,p.REPLACE,v()))}function h(){I(-1)}function m(){I(1)}function v(){return o(L)}function E(e){if(null==e||"string"==typeof e)return e;var t=e.pathname,n=e.search,r=e.hash,o=t;return n&&(o+=n),r&&(o+=r),o}function x(e){return E(e)}function C(e,t){var n=arguments.length<=2||void 0===arguments[2]?v():arguments[2];return"object"==typeof t&&("string"==typeof e&&(e=y.default(e)),e=s({},e,{state:t}),t=n,n=arguments[3]||v()),d.default(e,t,n)}function w(e){U?(S(U,e),n(U)):S(A(),e)}function S(e,t){e.state=s({},e.state,t),D(e.key,e.state)}function O(e){j.indexOf(e)===-1&&j.push(e)}function T(e){j=j.filter(function(t){return t!==e})}function P(e,t){"string"==typeof t&&(t=y.default(t)),c(s({state:e},t))}function R(e,t){"string"==typeof t&&(t=y.default(t)),f(s({state:e},t))}var N=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],A=N.getCurrentLocation,M=N.finishTransition,D=N.saveState,I=N.go,L=N.keyLength,k=N.getUserConfirmation;"number"!=typeof L&&(L=b);var j=[],F=[],V=[],U=void 0,z=void 0;return{listenBefore:e,listen:r,transitionTo:u,push:c,replace:f,go:I,goBack:h,goForward:m,createKey:v,createPath:E,createHref:x,createLocation:C,setState:_.default(w,"setState is deprecated; use location.key to save state instead"),registerTransitionHook:_.default(O,"registerTransitionHook is deprecated; use listenBefore instead"),unregisterTransitionHook:_.default(T,"unregisterTransitionHook is deprecated; use the callback returned from listenBefore instead"),pushState:_.default(P,"pushState is deprecated; use push instead"),replaceState:_.default(R,"replaceState is deprecated; use replace instead")}}n.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=e("deep-equal"),c=r(u),l=e("./AsyncUtils"),p=e("./Actions"),f=e("./createLocation"),d=r(f),h=e("./runTransitionHook"),g=r(h),m=e("./parsePath"),y=r(m),v=e("./deprecate"),_=r(v),b=6;n.default=a,t.exports=n.default},{"./Actions":161,"./AsyncUtils":162,"./createLocation":169,"./deprecate":171,"./parsePath":173,"./runTransitionHook":174,"deep-equal":177}],169:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],t=arguments.length<=1||void 0===arguments[1]?a.POP:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof e&&(e=u.default(e)),"object"==typeof t&&(e=i({},e,{state:t}),t=n||a.POP,n=r);var o=e.pathname||"/",s=e.search||"",c=e.hash||"",l=e.state||null;return{pathname:o,search:s,hash:c,state:l,action:t,key:n}}n.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=e("./Actions"),s=e("./parsePath"),u=r(s);n.default=o,t.exports=n.default},{"./Actions":161,"./parsePath":173}],170:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return e.filter(function(e){return e.state}).reduce(function(e,t){return e[t.key]=t.state,e},{})}function a(){function e(e,t){_[e]=t}function t(e){return _[e]}function n(){var e=y[v],n=e.key,r=e.basename,o=e.pathname,i=e.search,a=(r||"")+o+(i||""),u=void 0;n?u=t(n):(u=null,n=d.createKey(),e.key=n);var c=m.default(a);return d.createLocation(s({},c,{state:u}),void 0,n)}function o(e){var t=v+e;return t>=0&&t<y.length}function a(e){if(e){if(!o(e))return void("production"!==r.env.NODE_ENV?c.default(!1,"Cannot go(%s) there is not enough history",e):void 0);v+=e;var t=n();d.transitionTo(s({},t,{action:f.POP}))}}function u(t){switch(t.action){case f.PUSH:v+=1,v<y.length&&y.splice(v),y.push(t),e(t.key,t.state);break;case f.REPLACE:y[v]=t,e(t.key,t.state)}}var l=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];Array.isArray(l)?l={entries:l}:"string"==typeof l&&(l={entries:[l]});var d=h.default(s({},l,{getCurrentLocation:n,finishTransition:u,saveState:e,go:a})),g=l,y=g.entries,v=g.current;"string"==typeof y?y=[y]:Array.isArray(y)||(y=["/"]),y=y.map(function(e){var t=d.createKey();return"string"==typeof e?{pathname:e,key:t}:"object"==typeof e&&e?s({},e,{key:t}):void("production"!==r.env.NODE_ENV?p.default(!1,"Unable to create history entry from %s",e):p.default(!1))}),null==v?v=y.length-1:v>=0&&v<y.length?void 0:"production"!==r.env.NODE_ENV?p.default(!1,"Current index must be >= 0 and < %s, was %s",y.length,v):p.default(!1);var _=i(y);return d}n.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=e("warning"),c=o(u),l=e("invariant"),p=o(l),f=e("./Actions"),d=e("./createHistory"),h=o(d),g=e("./parsePath"),m=o(g);n.default=a,t.exports=n.default}).call(this,e("_process"))},{"./Actions":161,"./createHistory":168,"./parsePath":173,_process:2,invariant:180,warning:183}],171:[function(e,t,n){"use strict";function r(e){return e}n.__esModule=!0,n.default=r,t.exports=n.default},{}],172:[function(e,t,n){"use strict";function r(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}n.__esModule=!0,n.default=r,t.exports=n.default},{}],173:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=c.default(e),n="",o="";"production"!==r.env.NODE_ENV?s.default(e===t,'A path must be pathname + search + hash only, not a fully qualified URL like "%s"',e):void 0;var i=t.indexOf("#");i!==-1&&(o=t.substring(i),t=t.substring(0,i));var a=t.indexOf("?");return a!==-1&&(n=t.substring(a),t=t.substring(0,a)),""===t&&(t="/"),{pathname:t,search:n,hash:o}}n.__esModule=!0;var a=e("warning"),s=o(a),u=e("./extractPath"),c=o(u);n.default=i,t.exports=n.default}).call(this,e("_process"))},{"./extractPath":172,_process:2,warning:183}],174:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var o=e(t,n);e.length<2?n(o):"production"!==r.env.NODE_ENV?s.default(void 0===o,'You should not "return" in a transition hook with a callback argument; call the callback instead'):void 0}n.__esModule=!0;var a=e("warning"),s=o(a);n.default=i,t.exports=n.default}).call(this,e("_process"))},{_process:2,warning:183}],175:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return function(){function t(e){return b&&null==e.basename&&(0===e.pathname.indexOf(b)?(e.pathname=e.pathname.substring(b.length),e.basename=b,""===e.pathname&&(e.pathname="/")):e.basename=""),e}function n(e){if(!b)return e;"string"==typeof e&&(e=d.default(e));var t=e.pathname,n="/"===b.slice(-1)?b:b+"/",r="/"===t.charAt(0)?t.slice(1):t,o=n+r;return a({},e,{pathname:o})}function r(e){return x.listenBefore(function(n,r){c.default(e,t(n),r)})}function i(e){return x.listen(function(n){e(t(n))})}function u(e){x.push(n(e))}function l(e){x.replace(n(e))}function f(e){return x.createPath(n(e))}function h(e){return x.createHref(n(e))}function m(){return t(x.createLocation.apply(x,arguments))}function y(e,t){"string"==typeof t&&(t=d.default(t)),u(a({state:e},t))}function v(e,t){"string"==typeof t&&(t=d.default(t)),l(a({state:e},t))}var _=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],b=_.basename,E=o(_,["basename"]),x=e(E);if(null==b&&s.canUseDOM){var C=document.getElementsByTagName("base")[0];C&&(b=p.default(C.href))}return a({},x,{listenBefore:r,listen:i,push:u,replace:l,createPath:f,createHref:h,createLocation:m,pushState:g.default(y,"pushState is deprecated; use push instead"),replaceState:g.default(v,"replaceState is deprecated; use replace instead")})}}n.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=e("./ExecutionEnvironment"),u=e("./runTransitionHook"),c=r(u),l=e("./extractPath"),p=r(l),f=e("./parsePath"),d=r(f),h=e("./deprecate"),g=r(h);n.default=i,t.exports=n.default},{"./ExecutionEnvironment":165,"./deprecate":171,"./extractPath":172,"./parsePath":173,"./runTransitionHook":174}],176:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return f.stringify(e).replace(/%20/g,"+")}function s(e){for(var t in e)if(e.hasOwnProperty(t)&&"object"==typeof e[t]&&!Array.isArray(e[t])&&null!==e[t])return!0;return!1}function u(e){return function(){function t(e){if(null==e.query){var t=e.search;e.query=S(t.substring(1)),e[_]={search:t,searchBase:""}}return e}function n(e,t){var n,o=void 0;if(!t||""===(o=w(t)))return e;"production"!==r.env.NODE_ENV?p.default(w!==a||!s(t),"useQueries does not stringify nested query objects by default; use a custom stringifyQuery function"):void 0,"string"==typeof e&&(e=m.default(e));var i=e[_],u=void 0;u=i&&e.search===i.search?i.searchBase:e.search||"";var l=u+(u?"&":"?")+o;return c({},e,(n={search:l},n[_]={search:l,searchBase:u},n))}function o(e){return T.listenBefore(function(n,r){h.default(e,t(n),r)})}function u(e){return T.listen(function(n){e(t(n))})}function l(e){T.push(n(e,e.query))}function f(e){T.replace(n(e,e.query))}function d(e,t){return T.createPath(n(e,t||e.query))}function g(e,t){return T.createHref(n(e,t||e.query))}function y(){return t(T.createLocation.apply(T,arguments))}function E(e,t,n){"string"==typeof t&&(t=m.default(t)),l(c({state:e},t,{query:n}))}function x(e,t,n){"string"==typeof t&&(t=m.default(t)),f(c({state:e},t,{query:n}))}var C=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],w=C.stringifyQuery,S=C.parseQueryString,O=i(C,["stringifyQuery","parseQueryString"]),T=e(O);return"function"!=typeof w&&(w=a),"function"!=typeof S&&(S=b),c({},T,{listenBefore:o,listen:u,push:l,replace:f,createPath:d,createHref:g,createLocation:y,pushState:v.default(E,"pushState is deprecated; use push instead"),replaceState:v.default(x,"replaceState is deprecated; use replace instead")})}}n.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=e("warning"),p=o(l),f=e("query-string"),d=e("./runTransitionHook"),h=o(d),g=e("./parsePath"),m=o(g),y=e("./deprecate"),v=o(y),_="$searchBase",b=f.parse;n.default=u,t.exports=n.default}).call(this,e("_process"))},{"./deprecate":171,"./parsePath":173,"./runTransitionHook":174,_process:2,"query-string":181,warning:183}],177:[function(e,t,n){function r(e){return null===e||void 0===e}function o(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}function i(e,t,n){var i,l;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(u(e))return!!u(t)&&(e=a.call(e),t=a.call(t),c(e,t,n));if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}try{var p=s(e),f=s(t)}catch(e){return!1}if(p.length!=f.length)return!1;for(p.sort(),f.sort(),i=p.length-1;i>=0;i--)if(p[i]!=f[i])return!1;for(i=p.length-1;i>=0;i--)if(l=p[i],!c(e[l],t[l],n))return!1;return typeof e==typeof t}var a=Array.prototype.slice,s=e("./lib/keys.js"),u=e("./lib/is_arguments.js"),c=t.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:i(e,t,n))}},{"./lib/is_arguments.js":178,"./lib/keys.js":179}],178:[function(e,t,n){function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();n=t.exports=i?r:o,n.supported=r,n.unsupported=o},{}],179:[function(e,t,n){function r(e){var t=[];for(var n in e)t.push(n);return t}n=t.exports="function"==typeof Object.keys?Object.keys:r,n.shim=r},{}],180:[function(e,t,n){(function(e){"use strict";var n=function(t,n,r,o,i,a,s,u){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,s,u],p=0;c=new Error(n.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=n}).call(this,e("_process"))},{_process:2}],181:[function(e,t,n){"use strict";var r=e("strict-uri-encode");n.extract=function(e){return e.split("?")[1]||""},n.parse=function(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n.shift(),o=n.length>0?n.join("="):void 0;return r=decodeURIComponent(r),o=void 0===o?null:decodeURIComponent(o),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]:e[r]=o,e},{}):{})},n.stringify=function(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];
|
6 |
-
return void 0===n?"":null===n?t:Array.isArray(n)?n.slice().sort().map(function(e){return r(t)+"="+r(e)}).join("&"):r(t)+"="+r(n)}).filter(function(e){return e.length>0}).join("&"):""}},{"strict-uri-encode":182}],182:[function(e,t,n){"use strict";t.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},{}],183:[function(e,t,n){(function(e){"use strict";var n=function(){};"production"!==e.env.NODE_ENV&&(n=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}}),t.exports=n}).call(this,e("_process"))},{_process:2}],184:[function(e,t,n){(function(n){n.IntlPolyfill=e("./lib/core.js"),e("./locale-data/complete.js"),n.Intl||(n.Intl=n.IntlPolyfill,n.IntlPolyfill.__applyLocaleSensitivePrototypes()),t.exports=n.IntlPolyfill}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/core.js":185,"./locale-data/complete.js":1}],185:[function(e,t,n){"use strict";function r(e){if("function"==typeof Math.log10)return Math.floor(Math.log10(e));var t=Math.round(Math.log(e)*Math.LOG10E);return t-(Number("1e"+t)>e)}function o(e){for(var t in e)(e instanceof o||oe.call(e,t))&&ie(this,t,{value:e[t],enumerable:!0,writable:!0,configurable:!0})}function i(){ie(this,"length",{writable:!0,value:0}),arguments.length&&le.apply(this,ue.call(arguments))}function a(){for(var e=/[.?*+^$[\]\\(){}|-]/g,t=RegExp.lastMatch||"",n=RegExp.multiline?"m":"",r={input:RegExp.input},o=new i,a=!1,s={},u=1;u<=9;u++)a=(s["$"+u]=RegExp["$"+u])||a;if(t=t.replace(e,"\\$&"),a)for(var c=1;c<=9;c++){var l=s["$"+c];l?(l=l.replace(e,"\\$&"),t=t.replace(l,"("+l+")")):t="()"+t,le.call(o,t.slice(0,t.indexOf("(")+1)),t=t.slice(t.indexOf("(")+1)}return r.exp=new RegExp(pe.call(o,"")+t,n),r}function s(e){if(null===e)throw new TypeError("Cannot convert null or undefined to object");return Object(e)}function u(e){return oe.call(e,"__getInternalProperties")?e.__getInternalProperties(ge):se(null)}function c(e){Me=e}function l(e){for(var t=e.length;t--;){var n=e.charAt(t);n>="a"&&n<="z"&&(e=e.slice(0,t)+n.toUpperCase()+e.slice(t+1))}return e}function p(e){return!!Pe.test(e)&&(!Re.test(e)&&!Ne.test(e))}function f(e){var t=void 0,n=void 0;e=e.toLowerCase(),n=e.split("-");for(var r=1,o=n.length;r<o;r++)if(2===n[r].length)n[r]=n[r].toUpperCase();else if(4===n[r].length)n[r]=n[r].charAt(0).toUpperCase()+n[r].slice(1);else if(1===n[r].length&&"x"!==n[r])break;e=pe.call(n,"-"),(t=e.match(Ae))&&t.length>1&&(t.sort(),e=e.replace(RegExp("(?:"+Ae.source+")+","i"),pe.call(t,""))),oe.call(De.tags,e)&&(e=De.tags[e]),n=e.split("-");for(var i=1,a=n.length;i<a;i++)oe.call(De.subtags,n[i])?n[i]=De.subtags[n[i]]:oe.call(De.extLang,n[i])&&(n[i]=De.extLang[n[i]][0],1===i&&De.extLang[n[1]][1]===n[0]&&(n=ue.call(n,i++),a-=1));return pe.call(n,"-")}function d(){return Me}function h(e){var t=String(e),n=l(t);return Ie.test(n)!==!1}function g(e){if(void 0===e)return new i;var t=new i;e="string"==typeof e?[e]:e;for(var n=s(e),r=n.length,o=0;o<r;){var a=String(o),u=a in n;if(u){var c=n[a];if(null===c||"string"!=typeof c&&"object"!==("undefined"==typeof c?"undefined":te.typeof(c)))throw new TypeError("String or Object type expected");var l=String(c);if(!p(l))throw new RangeError("'"+l+"' is not a structurally valid language tag");l=f(l),ae.call(t,l)===-1&&le.call(t,l)}o++}return t}function m(e,t){for(var n=t;n;){if(ae.call(e,n)>-1)return n;var r=n.lastIndexOf("-");if(r<0)return;r>=2&&"-"===n.charAt(r-2)&&(r-=2),n=n.substring(0,r)}}function y(e,t){for(var n=0,r=t.length,i=void 0,a=void 0,s=void 0;n<r&&!i;)a=t[n],s=String(a).replace(Le,""),i=m(e,s),n++;var u=new o;if(void 0!==i){if(u["[[locale]]"]=i,String(a)!==String(s)){var c=a.match(Le)[0],l=a.indexOf("-u-");u["[[extension]]"]=c,u["[[extensionIndex]]"]=l}}else u["[[locale]]"]=d();return u}function v(e,t){return y(e,t)}function _(e,t,n,r,i){if(0===e.length)throw new ReferenceError("No locale data has been provided for this object yet.");var a=n["[[localeMatcher]]"],s=void 0;s="lookup"===a?y(e,t):v(e,t);var u=s["[[locale]]"],c=void 0,l=void 0;if(oe.call(s,"[[extension]]")){var p=s["[[extension]]"],d=String.prototype.split;c=d.call(p,"-"),l=c.length}var h=new o;h["[[dataLocale]]"]=u;for(var g="-u",m=0,_=r.length;m<_;){var b=r[m],E=i[u],x=E[b],C=x[0],w="",S=ae;if(void 0!==c){var O=S.call(c,b);if(O!==-1)if(O+1<l&&c[O+1].length>2){var T=c[O+1],P=S.call(x,T);P!==-1&&(C=T,w="-"+b+"-"+C)}else{var R=S(x,"true");R!==-1&&(C="true")}}if(oe.call(n,"[["+b+"]]")){var N=n["[["+b+"]]"];S.call(x,N)!==-1&&N!==C&&(C=N,w="")}h["[["+b+"]]"]=C,g+=w,m++}if(g.length>2){var A=u.indexOf("-x-");if(A===-1)u+=g;else{var M=u.substring(0,A),D=u.substring(A);u=M+g+D}u=f(u)}return h["[[locale]]"]=u,h}function b(e,t){for(var n=t.length,r=new i,o=0;o<n;){var a=t[o],s=String(a).replace(Le,""),u=m(e,s);void 0!==u&&le.call(r,a),o++}var c=ue.call(r);return c}function E(e,t){return b(e,t)}function x(e,t,n){var r=void 0,i=void 0;if(void 0!==n&&(n=new o(s(n)),r=n.localeMatcher,void 0!==r&&(r=String(r),"lookup"!==r&&"best fit"!==r)))throw new RangeError('matcher should be "lookup" or "best fit"');i=void 0===r||"best fit"===r?E(e,t):b(e,t);for(var a in i)oe.call(i,a)&&ie(i,a,{writable:!1,configurable:!1,value:i[a]});return ie(i,"length",{writable:!1}),i}function C(e,t,n,r,o){var i=e[t];if(void 0!==i){if(i="boolean"===n?Boolean(i):"string"===n?String(i):i,void 0!==r&&ae.call(r,i)===-1)throw new RangeError("'"+i+"' is not an allowed value for `"+t+"`");return i}return o}function w(e,t,n,r,o){var i=e[t];if(void 0!==i){if(i=Number(i),isNaN(i)||i<n||i>r)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(i)}return o}function S(){var e=arguments[0],t=arguments[1];return this&&this!==ke?O(s(this),e,t):new ke.NumberFormat(e,t)}function O(e,t,n){var r=u(e),c=a();if(r["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");ie(e,"__getInternalProperties",{value:function(){if(arguments[0]===ge)return r}}),r["[[initializedIntlObject]]"]=!0;var l=g(t);n=void 0===n?{}:s(n);var p=new o,f=C(n,"localeMatcher","string",new i("lookup","best fit"),"best fit");p["[[localeMatcher]]"]=f;var d=he.NumberFormat["[[localeData]]"],m=_(he.NumberFormat["[[availableLocales]]"],l,p,he.NumberFormat["[[relevantExtensionKeys]]"],d);r["[[locale]]"]=m["[[locale]]"],r["[[numberingSystem]]"]=m["[[nu]]"],r["[[dataLocale]]"]=m["[[dataLocale]]"];var y=m["[[dataLocale]]"],v=C(n,"style","string",new i("decimal","percent","currency"),"decimal");r["[[style]]"]=v;var b=C(n,"currency","string");if(void 0!==b&&!h(b))throw new RangeError("'"+b+"' is not a valid currency code");if("currency"===v&&void 0===b)throw new TypeError("Currency code is required when style is currency");var E=void 0;"currency"===v&&(b=b.toUpperCase(),r["[[currency]]"]=b,E=T(b));var x=C(n,"currencyDisplay","string",new i("code","symbol","name"),"symbol");"currency"===v&&(r["[[currencyDisplay]]"]=x);var S=w(n,"minimumIntegerDigits",1,21,1);r["[[minimumIntegerDigits]]"]=S;var O="currency"===v?E:0,R=w(n,"minimumFractionDigits",0,20,O);r["[[minimumFractionDigits]]"]=R;var N="currency"===v?Math.max(R,E):"percent"===v?Math.max(R,0):Math.max(R,3),A=w(n,"maximumFractionDigits",R,20,N);r["[[maximumFractionDigits]]"]=A;var M=n.minimumSignificantDigits,D=n.maximumSignificantDigits;void 0===M&&void 0===D||(M=w(n,"minimumSignificantDigits",1,21,1),D=w(n,"maximumSignificantDigits",M,21,21),r["[[minimumSignificantDigits]]"]=M,r["[[maximumSignificantDigits]]"]=D);var I=C(n,"useGrouping","boolean",void 0,!0);r["[[useGrouping]]"]=I;var L=d[y],k=L.patterns,j=k[v];return r["[[positivePattern]]"]=j.positivePattern,r["[[negativePattern]]"]=j.negativePattern,r["[[boundFormat]]"]=void 0,r["[[initializedNumberFormat]]"]=!0,re&&(e.format=P.call(e)),c.exp.test(c.input),e}function T(e){return void 0!==je[e]?je[e]:2}function P(){var e=null!==this&&"object"===te.typeof(this)&&u(this);if(!e||!e["[[initializedNumberFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.NumberFormat object.");if(void 0===e["[[boundFormat]]"]){var t=function(e){return A(this,Number(e))},n=de.call(t,this);e["[[boundFormat]]"]=n}return e["[[boundFormat]]"]}function R(e,t){for(var n=N(e,t),r=[],o=0,i=0;n.length>i;i++){var a=n[i],s={};s.type=a["[[type]]"],s.value=a["[[value]]"],r[o]=s,o+=1}return r}function N(e,t){var n=u(e),r=n["[[dataLocale]]"],o=n["[[numberingSystem]]"],a=he.NumberFormat["[[localeData]]"][r],s=a.symbols[o]||a.symbols.latn,c=void 0;!isNaN(t)&&t<0?(t=-t,c=n["[[negativePattern]]"]):c=n["[[positivePattern]]"];for(var l=new i,p=c.indexOf("{",0),f=0,d=0,h=c.length;p>-1&&p<h;){if(f=c.indexOf("}",p),f===-1)throw new Error;if(p>d){var g=c.substring(d,p);le.call(l,{"[[type]]":"literal","[[value]]":g})}var m=c.substring(p+1,f);if("number"===m)if(isNaN(t)){var y=s.nan;le.call(l,{"[[type]]":"nan","[[value]]":y})}else if(isFinite(t)){"percent"===n["[[style]]"]&&isFinite(t)&&(t*=100);var v=void 0;v=oe.call(n,"[[minimumSignificantDigits]]")&&oe.call(n,"[[maximumSignificantDigits]]")?M(t,n["[[minimumSignificantDigits]]"],n["[[maximumSignificantDigits]]"]):D(t,n["[[minimumIntegerDigits]]"],n["[[minimumFractionDigits]]"],n["[[maximumFractionDigits]]"]),Fe[o]?!function(){var e=Fe[o];v=String(v).replace(/\d/g,function(t){return e[t]})}():v=String(v);var _=void 0,b=void 0,E=v.indexOf(".",0);if(E>0?(_=v.substring(0,E),b=v.substring(E+1,E.length)):(_=v,b=void 0),n["[[useGrouping]]"]===!0){var x=s.group,C=[],w=a.patterns.primaryGroupSize||3,S=a.patterns.secondaryGroupSize||w;if(_.length>w){var O=_.length-w,T=O%S,P=_.slice(0,T);for(P.length&&le.call(C,P);T<O;)le.call(C,_.slice(T,T+S)),T+=S;le.call(C,_.slice(O))}else le.call(C,_);if(0===C.length)throw new Error;for(;C.length;){var R=fe.call(C);le.call(l,{"[[type]]":"integer","[[value]]":R}),C.length&&le.call(l,{"[[type]]":"group","[[value]]":x})}}else le.call(l,{"[[type]]":"integer","[[value]]":_});if(void 0!==b){var N=s.decimal;le.call(l,{"[[type]]":"decimal","[[value]]":N}),le.call(l,{"[[type]]":"fraction","[[value]]":b})}}else{var A=s.infinity;le.call(l,{"[[type]]":"infinity","[[value]]":A})}else if("plusSign"===m){var I=s.plusSign;le.call(l,{"[[type]]":"plusSign","[[value]]":I})}else if("minusSign"===m){var L=s.minusSign;le.call(l,{"[[type]]":"minusSign","[[value]]":L})}else if("percentSign"===m&&"percent"===n["[[style]]"]){var k=s.percentSign;le.call(l,{"[[type]]":"literal","[[value]]":k})}else if("currency"===m&&"currency"===n["[[style]]"]){var j=n["[[currency]]"],F=void 0;"code"===n["[[currencyDisplay]]"]?F=j:"symbol"===n["[[currencyDisplay]]"]?F=a.currencies[j]||j:"name"===n["[[currencyDisplay]]"]&&(F=j),le.call(l,{"[[type]]":"currency","[[value]]":F})}else{var V=c.substring(p,f);le.call(l,{"[[type]]":"literal","[[value]]":V})}d=f+1,p=c.indexOf("{",d)}if(d<h){var U=c.substring(d,h);le.call(l,{"[[type]]":"literal","[[value]]":U})}return l}function A(e,t){for(var n=N(e,t),r="",o=0;n.length>o;o++){var i=n[o];r+=i["[[value]]"]}return r}function M(e,t,n){var o=n,i=void 0,a=void 0;if(0===e)i=pe.call(Array(o+1),"0"),a=0;else{a=r(Math.abs(e));var s=Math.round(Math.exp(Math.abs(a-o+1)*Math.LN10));i=String(Math.round(a-o+1<0?e*s:e/s))}if(a>=o)return i+pe.call(Array(a-o+1+1),"0");if(a===o-1)return i;if(a>=0?i=i.slice(0,a+1)+"."+i.slice(a+1):a<0&&(i="0."+pe.call(Array(-(a+1)+1),"0")+i),i.indexOf(".")>=0&&n>t){for(var u=n-t;u>0&&"0"===i.charAt(i.length-1);)i=i.slice(0,-1),u--;"."===i.charAt(i.length-1)&&(i=i.slice(0,-1))}return i}function D(e,t,n,r){var o=r,i=Math.pow(10,o)*e,a=0===i?"0":i.toFixed(0),s=void 0,u=(s=a.indexOf("e"))>-1?a.slice(s+1):0;u&&(a=a.slice(0,s).replace(".",""),a+=pe.call(Array(u-(a.length-1)+1),"0"));var c=void 0;if(0!==o){var l=a.length;if(l<=o){var p=pe.call(Array(o+1-l+1),"0");a=p+a,l=o+1}var f=a.substring(0,l-o),d=a.substring(l-o,a.length);a=f+"."+d,c=f.length}else c=a.length;for(var h=r-n;h>0&&"0"===a.slice(-1);)a=a.slice(0,-1),h--;if("."===a.slice(-1)&&(a=a.slice(0,-1)),c<t){var g=pe.call(Array(t-c+1),"0");a=g+a}return a}function I(e){for(var t=0;t<He.length;t+=1)if(e.hasOwnProperty(He[t]))return!1;return!0}function L(e){for(var t=0;t<Ge.length;t+=1)if(e.hasOwnProperty(Ge[t]))return!1;return!0}function k(e,t){for(var n={_:{}},r=0;r<Ge.length;r+=1)e[Ge[r]]&&(n[Ge[r]]=e[Ge[r]]),e._[Ge[r]]&&(n._[Ge[r]]=e._[Ge[r]]);for(var o=0;o<He.length;o+=1)t[He[o]]&&(n[He[o]]=t[He[o]]),t._[He[o]]&&(n._[He[o]]=t._[He[o]]);return n}function j(e){return e.pattern12=e.extendedPattern.replace(/'([^']*)'/g,function(e,t){return t?t:"'"}),e.pattern=e.pattern12.replace("{ampm}","").replace(Ue,""),e}function F(e,t){switch(e.charAt(0)){case"G":return t.era=["short","short","short","long","narrow"][e.length-1],"{era}";case"y":case"Y":case"u":case"U":case"r":return t.year=2===e.length?"2-digit":"numeric","{year}";case"Q":case"q":return t.quarter=["numeric","2-digit","short","long","narrow"][e.length-1],"{quarter}";case"M":case"L":return t.month=["numeric","2-digit","short","long","narrow"][e.length-1],"{month}";case"w":return t.week=2===e.length?"2-digit":"numeric","{weekday}";case"W":return t.week="numeric","{weekday}";case"d":return t.day=2===e.length?"2-digit":"numeric","{day}";case"D":case"F":case"g":return t.day="numeric","{day}";case"E":return t.weekday=["short","short","short","long","narrow","short"][e.length-1],"{weekday}";case"e":return t.weekday=["numeric","2-digit","short","long","narrow","short"][e.length-1],"{weekday}";case"c":return t.weekday=["numeric",void 0,"short","long","narrow","short"][e.length-1],"{weekday}";case"a":case"b":case"B":return t.hour12=!0,"{ampm}";case"h":case"H":return t.hour=2===e.length?"2-digit":"numeric","{hour}";case"k":case"K":return t.hour12=!0,t.hour=2===e.length?"2-digit":"numeric","{hour}";case"m":return t.minute=2===e.length?"2-digit":"numeric","{minute}";case"s":return t.second=2===e.length?"2-digit":"numeric","{second}";case"S":case"A":return t.second="numeric","{second}";case"z":case"Z":case"O":case"v":case"V":case"X":case"x":return t.timeZoneName=e.length<4?"short":"long","{timeZoneName}"}}function V(e,t){if(!ze.test(t)){var n={originalPattern:t,_:{}};return n.extendedPattern=t.replace(Ve,function(e){return F(e,n._)}),e.replace(Ve,function(e){return F(e,n)}),j(n)}}function U(e){var t=e.availableFormats,n=e.timeFormats,r=e.dateFormats,o=[],i=void 0,a=void 0,s=void 0,u=void 0,c=void 0,l=[],p=[];for(i in t)t.hasOwnProperty(i)&&(a=t[i],s=V(i,a),s&&(o.push(s),I(s)?p.push(s):L(s)&&l.push(s)));for(i in n)n.hasOwnProperty(i)&&(a=n[i],s=V(i,a),s&&(o.push(s),l.push(s)));for(i in r)r.hasOwnProperty(i)&&(a=r[i],s=V(i,a),s&&(o.push(s),p.push(s)));for(u=0;u<l.length;u+=1)for(c=0;c<p.length;c+=1)a="long"===p[c].month?p[c].weekday?e.full:e.long:"short"===p[c].month?e.medium:e.short,s=k(p[c],l[u]),s.originalPattern=a,s.extendedPattern=a.replace("{0}",l[u].extendedPattern).replace("{1}",p[c].extendedPattern).replace(/^[,\s]+|[,\s]+$/gi,""),o.push(j(s));return o}function z(e,t,n,r,o){var i=e[t]&&e[t][n]?e[t][n]:e.gregory[n],a={narrow:["short","long"],short:["long","narrow"],long:["short","narrow"]},s=oe.call(i,r)?i[r]:oe.call(i,a[r][0])?i[a[r][0]]:i[a[r][1]];return null!==o?s[o]:s}function G(){var e=arguments[0],t=arguments[1];return this&&this!==ke?H(s(this),e,t):new ke.DateTimeFormat(e,t)}function H(e,t,n){var r=u(e),s=a();if(r["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");ie(e,"__getInternalProperties",{value:function(){if(arguments[0]===ge)return r}}),r["[[initializedIntlObject]]"]=!0;var c=g(t);n=q(n,"any","date");var p=new o,f=C(n,"localeMatcher","string",new i("lookup","best fit"),"best fit");p["[[localeMatcher]]"]=f;var d=he.DateTimeFormat,h=d["[[localeData]]"],m=_(d["[[availableLocales]]"],c,p,d["[[relevantExtensionKeys]]"],h);r["[[locale]]"]=m["[[locale]]"],r["[[calendar]]"]=m["[[ca]]"],r["[[numberingSystem]]"]=m["[[nu]]"],r["[[dataLocale]]"]=m["[[dataLocale]]"];var y=m["[[dataLocale]]"],v=n.timeZone;if(void 0!==v&&(v=l(v),"UTC"!==v))throw new RangeError("timeZone is not supported.");r["[[timeZone]]"]=v,p=new o;for(var b in qe)if(oe.call(qe,b)){var E=C(n,b,"string",qe[b]);p["[["+b+"]]"]=E}var x=void 0,w=h[y],S=B(w.formats);if(f=C(n,"formatMatcher","string",new i("basic","best fit"),"best fit"),w.formats=S,"basic"===f)x=Z(p,S);else{var O=C(n,"hour12","boolean");p.hour12=void 0===O?w.hour12:O,x=W(p,S)}for(var T in qe)if(oe.call(qe,T)&&oe.call(x,T)){var P=x[T];P=x._&&oe.call(x._,T)?x._[T]:P,r["[["+T+"]]"]=P}var R=void 0,N=C(n,"hour12","boolean");if(r["[[hour]]"])if(N=void 0===N?w.hour12:N,r["[[hour12]]"]=N,N===!0){var A=w.hourNo0;r["[[hourNo0]]"]=A,R=x.pattern12}else R=x.pattern;else R=x.pattern;return r["[[pattern]]"]=R,r["[[boundFormat]]"]=void 0,r["[[initializedDateTimeFormat]]"]=!0,re&&(e.format=Y.call(e)),s.exp.test(s.input),e}function B(e){return"[object Array]"===Object.prototype.toString.call(e)?e:U(e)}function q(e,t,n){if(void 0===e)e=null;else{var r=s(e);e=new o;for(var i in r)e[i]=r[i]}var a=se;e=a(e);var u=!0;return"date"!==t&&"any"!==t||void 0===e.weekday&&void 0===e.year&&void 0===e.month&&void 0===e.day||(u=!1),"time"!==t&&"any"!==t||void 0===e.hour&&void 0===e.minute&&void 0===e.second||(u=!1),!u||"date"!==n&&"all"!==n||(e.year=e.month=e.day="numeric"),!u||"time"!==n&&"all"!==n||(e.hour=e.minute=e.second="numeric"),e}function Z(e,t){for(var n=120,r=20,o=8,i=6,a=6,s=3,u=-(1/0),c=void 0,l=0,p=t.length;l<p;){var f=t[l],d=0;for(var h in qe)if(oe.call(qe,h)){var g=e["[["+h+"]]"],m=oe.call(f,h)?f[h]:void 0;if(void 0===g&&void 0!==m)d-=r;else if(void 0!==g&&void 0===m)d-=n;else{var y=["2-digit","numeric","narrow","short","long"],v=ae.call(y,g),_=ae.call(y,m),b=Math.max(Math.min(_-v,2),-2);2===b?d-=i:1===b?d-=s:b===-1?d-=a:b===-2&&(d-=o)}}d>u&&(u=d,c=f),l++}return c}function W(e,t){for(var n=120,r=20,o=8,i=6,a=6,s=3,u=1,c=-(1/0),l=void 0,p=0,f=t.length;p<f;){var d=t[p],h=0;for(var g in qe)if(oe.call(qe,g)){var m=e["[["+g+"]]"],y=oe.call(d,g)?d[g]:void 0;if(void 0===m&&void 0!==y)h-=r;else if(void 0!==m&&void 0===y)h-=n;else{var v=["2-digit","numeric","narrow","short","long"],_=ae.call(v,m),b=ae.call(v,y),E=Math.max(Math.min(b-_,2),-2);b<=1&&_>=2||b>=2&&_<=1?E>0?h-=i:E<0&&(h-=o):E>1?h-=s:E<-1&&(h-=a)}}d._.hour12!==e.hour12&&(h-=u),h>c&&(c=h,l=d),p++}return l}function Y(){var e=null!==this&&"object"===te.typeof(this)&&u(this);if(!e||!e["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===e["[[boundFormat]]"]){var t=function(){var e=Number(0===arguments.length?Date.now():arguments[0]);return Q(this,e)},n=de.call(t,this);e["[[boundFormat]]"]=n}return e["[[boundFormat]]"]}function X(){var e=null!==this&&"object"===te.typeof(this)&&u(this);if(!e||!e["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");if(void 0===e["[[boundFormatToParts]]"]){var t=function(){var e=Number(0===arguments.length?Date.now():arguments[0]);return $(this,e)},n=de.call(t,this);e["[[boundFormatToParts]]"]=n}return e["[[boundFormatToParts]]"]}function K(e,t){if(!isFinite(t))throw new RangeError("Invalid valid date passed to format");var n=e.__getInternalProperties(ge);a();for(var r=n["[[locale]]"],o=new ke.NumberFormat([r],{useGrouping:!1}),s=new ke.NumberFormat([r],{minimumIntegerDigits:2,useGrouping:!1}),u=J(t,n["[[calendar]]"],n["[[timeZone]]"]),c=n["[[pattern]]"],l=new i,p=0,f=c.indexOf("{"),d=0,h=n["[[dataLocale]]"],g=he.DateTimeFormat["[[localeData]]"][h].calendars,m=n["[[calendar]]"];f!==-1;){var y=void 0;if(d=c.indexOf("}",f),d===-1)throw new Error("Unclosed pattern");f>p&&le.call(l,{type:"literal",value:c.substring(p,f)});var v=c.substring(f+1,d);if(qe.hasOwnProperty(v)){var _=n["[["+v+"]]"],b=u["[["+v+"]]"];if("year"===v&&b<=0?b=1-b:"month"===v?b++:"hour"===v&&n["[[hour12]]"]===!0&&(b%=12,0===b&&n["[[hourNo0]]"]===!0&&(b=12)),"numeric"===_)y=A(o,b);else if("2-digit"===_)y=A(s,b),y.length>2&&(y=y.slice(-2));else if(_ in Be)switch(v){case"month":y=z(g,m,"months",_,u["[["+v+"]]"]);break;case"weekday":try{y=z(g,m,"days",_,u["[["+v+"]]"])}catch(e){throw new Error("Could not find weekday data for locale "+r)}break;case"timeZoneName":y="";break;case"era":try{y=z(g,m,"eras",_,u["[["+v+"]]"])}catch(e){throw new Error("Could not find era data for locale "+r)}break;default:y=u["[["+v+"]]"]}le.call(l,{type:v,value:y})}else if("ampm"===v){var E=u["[[hour]]"];y=z(g,m,"dayPeriods",E>11?"pm":"am",null),le.call(l,{type:"dayPeriod",value:y})}else le.call(l,{type:"literal",value:c.substring(f,d+1)});p=d+1,f=c.indexOf("{",p)}return d<c.length-1&&le.call(l,{type:"literal",value:c.substr(d+1)}),l}function Q(e,t){for(var n=K(e,t),r="",o=0;n.length>o;o++){var i=n[o];r+=i.value}return r}function $(e,t){for(var n=K(e,t),r=[],o=0;n.length>o;o++){var i=n[o];r.push({type:i.type,value:i.value})}return r}function J(e,t,n){var r=new Date(e),i="get"+(n||"");return new o({"[[weekday]]":r[i+"Day"](),"[[era]]":+(r[i+"FullYear"]()>=0),"[[year]]":r[i+"FullYear"](),"[[month]]":r[i+"Month"](),"[[day]]":r[i+"Date"](),"[[hour]]":r[i+"Hours"](),"[[minute]]":r[i+"Minutes"](),"[[second]]":r[i+"Seconds"](),"[[inDST]]":!1})}function ee(e,t){if(!e.number)throw new Error("Object passed doesn't contain locale data for Intl.NumberFormat");var n=void 0,r=[t],o=t.split("-");for(o.length>2&&4===o[1].length&&le.call(r,o[0]+"-"+o[2]);n=fe.call(r);)le.call(he.NumberFormat["[[availableLocales]]"],n),he.NumberFormat["[[localeData]]"][n]=e.number,e.date&&(e.date.nu=e.number.nu,le.call(he.DateTimeFormat["[[availableLocales]]"],n),he.DateTimeFormat["[[localeData]]"][n]=e.date);void 0===Me&&c(t)}var te={};te.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var ne=function(){var e={};try{return Object.defineProperty(e,"a",{}),"a"in e}catch(e){return!1}}(),re=!ne&&!Object.prototype.__defineGetter__,oe=Object.prototype.hasOwnProperty,ie=ne?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!oe.call(e,t)||"value"in n)&&(e[t]=n.value)},ae=Array.prototype.indexOf||function(e){var t=this;if(!t.length)return-1;for(var n=arguments[1]||0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},se=Object.create||function(e,t){function n(){}var r=void 0;n.prototype=e,r=new n;for(var o in t)oe.call(t,o)&&ie(r,o,t[o]);return r},ue=Array.prototype.slice,ce=Array.prototype.concat,le=Array.prototype.push,pe=Array.prototype.join,fe=Array.prototype.shift,de=Function.prototype.bind||function(e){var t=this,n=ue.call(arguments,1);return 1===t.length?function(){return t.apply(e,ce.call(n,ue.call(arguments)))}:function(){return t.apply(e,ce.call(n,ue.call(arguments)))}},he=se(null),ge=Math.random();o.prototype=se(null),i.prototype=se(null);var me="[a-z]{3}(?:-[a-z]{3}){0,2}",ye="(?:[a-z]{2,3}(?:-"+me+")?|[a-z]{4}|[a-z]{5,8})",ve="[a-z]{4}",_e="(?:[a-z]{2}|\\d{3})",be="(?:[a-z0-9]{5,8}|\\d[a-z0-9]{3})",Ee="[0-9a-wy-z]",xe=Ee+"(?:-[a-z0-9]{2,8})+",Ce="x(?:-[a-z0-9]{1,8})+",we="(?:en-GB-oed|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)|sgn-(?:BE-FR|BE-NL|CH-DE))",Se="(?:art-lojban|cel-gaulish|no-bok|no-nyn|zh-(?:guoyu|hakka|min|min-nan|xiang))",Oe="(?:"+we+"|"+Se+")",Te=ye+"(?:-"+ve+")?(?:-"+_e+")?(?:-"+be+")*(?:-"+xe+")*(?:-"+Ce+")?",Pe=RegExp("^(?:"+Te+"|"+Ce+"|"+Oe+")$","i"),Re=RegExp("^(?!x).*?-("+be+")-(?:\\w{4,8}-(?!x-))*\\1\\b","i"),Ne=RegExp("^(?!x).*?-("+Ee+")-(?:\\w+-(?!x-))*\\1\\b","i"),Ae=RegExp("-"+xe,"ig"),Me=void 0,De={tags:{"art-lojban":"jbo","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","no-bok":"nb","no-nyn":"nn","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg","zh-guoyu":"cmn","zh-hakka":"hak","zh-min-nan":"nan","zh-xiang":"hsn","sgn-BR":"bzs","sgn-CO":"csn","sgn-DE":"gsg","sgn-DK":"dsl","sgn-ES":"ssp","sgn-FR":"fsl","sgn-GB":"bfi","sgn-GR":"gss","sgn-IE":"isg","sgn-IT":"ise","sgn-JP":"jsl","sgn-MX":"mfs","sgn-NI":"ncs","sgn-NL":"dse","sgn-NO":"nsl","sgn-PT":"psr","sgn-SE":"swl","sgn-US":"ase","sgn-ZA":"sfs","zh-cmn":"cmn","zh-cmn-Hans":"cmn-Hans","zh-cmn-Hant":"cmn-Hant","zh-gan":"gan","zh-wuu":"wuu","zh-yue":"yue"},subtags:{BU:"MM",DD:"DE",FX:"FR",TP:"TL",YD:"YE",ZR:"CD",heploc:"alalc97",in:"id",iw:"he",ji:"yi",jw:"jv",mo:"ro",ayx:"nun",bjd:"drl",ccq:"rki",cjr:"mom",cka:"cmr",cmk:"xch",drh:"khk",drw:"prs",gav:"dev",hrr:"jal",ibi:"opa",kgh:"kml",lcq:"ppr",mst:"mry",myt:"mry",sca:"hle",tie:"ras",tkk:"twm",tlw:"weo",tnf:"prs",ybd:"rki",yma:"lrr"},extLang:{aao:["aao","ar"],abh:["abh","ar"],abv:["abv","ar"],acm:["acm","ar"],acq:["acq","ar"],acw:["acw","ar"],acx:["acx","ar"],acy:["acy","ar"],adf:["adf","ar"],ads:["ads","sgn"],aeb:["aeb","ar"],aec:["aec","ar"],aed:["aed","sgn"],aen:["aen","sgn"],afb:["afb","ar"],afg:["afg","sgn"],ajp:["ajp","ar"],apc:["apc","ar"],apd:["apd","ar"],arb:["arb","ar"],arq:["arq","ar"],ars:["ars","ar"],ary:["ary","ar"],arz:["arz","ar"],ase:["ase","sgn"],asf:["asf","sgn"],asp:["asp","sgn"],asq:["asq","sgn"],asw:["asw","sgn"],auz:["auz","ar"],avl:["avl","ar"],ayh:["ayh","ar"],ayl:["ayl","ar"],ayn:["ayn","ar"],ayp:["ayp","ar"],bbz:["bbz","ar"],bfi:["bfi","sgn"],bfk:["bfk","sgn"],bjn:["bjn","ms"],bog:["bog","sgn"],bqn:["bqn","sgn"],bqy:["bqy","sgn"],btj:["btj","ms"],bve:["bve","ms"],bvl:["bvl","sgn"],bvu:["bvu","ms"],bzs:["bzs","sgn"],cdo:["cdo","zh"],cds:["cds","sgn"],cjy:["cjy","zh"],cmn:["cmn","zh"],coa:["coa","ms"],cpx:["cpx","zh"],csc:["csc","sgn"],csd:["csd","sgn"],cse:["cse","sgn"],csf:["csf","sgn"],csg:["csg","sgn"],csl:["csl","sgn"],csn:["csn","sgn"],csq:["csq","sgn"],csr:["csr","sgn"],czh:["czh","zh"],czo:["czo","zh"],doq:["doq","sgn"],dse:["dse","sgn"],dsl:["dsl","sgn"],dup:["dup","ms"],ecs:["ecs","sgn"],esl:["esl","sgn"],esn:["esn","sgn"],eso:["eso","sgn"],eth:["eth","sgn"],fcs:["fcs","sgn"],fse:["fse","sgn"],fsl:["fsl","sgn"],fss:["fss","sgn"],gan:["gan","zh"],gds:["gds","sgn"],gom:["gom","kok"],gse:["gse","sgn"],gsg:["gsg","sgn"],gsm:["gsm","sgn"],gss:["gss","sgn"],gus:["gus","sgn"],hab:["hab","sgn"],haf:["haf","sgn"],hak:["hak","zh"],hds:["hds","sgn"],hji:["hji","ms"],hks:["hks","sgn"],hos:["hos","sgn"],hps:["hps","sgn"],hsh:["hsh","sgn"],hsl:["hsl","sgn"],hsn:["hsn","zh"],icl:["icl","sgn"],ils:["ils","sgn"],inl:["inl","sgn"],ins:["ins","sgn"],ise:["ise","sgn"],isg:["isg","sgn"],isr:["isr","sgn"],jak:["jak","ms"],jax:["jax","ms"],jcs:["jcs","sgn"],jhs:["jhs","sgn"],jls:["jls","sgn"],jos:["jos","sgn"],jsl:["jsl","sgn"],jus:["jus","sgn"],kgi:["kgi","sgn"],knn:["knn","kok"],kvb:["kvb","ms"],kvk:["kvk","sgn"],kvr:["kvr","ms"],kxd:["kxd","ms"],lbs:["lbs","sgn"],lce:["lce","ms"],lcf:["lcf","ms"],liw:["liw","ms"],lls:["lls","sgn"],lsg:["lsg","sgn"],lsl:["lsl","sgn"],lso:["lso","sgn"],lsp:["lsp","sgn"],lst:["lst","sgn"],lsy:["lsy","sgn"],ltg:["ltg","lv"],lvs:["lvs","lv"],lzh:["lzh","zh"],max:["max","ms"],mdl:["mdl","sgn"],meo:["meo","ms"],mfa:["mfa","ms"],mfb:["mfb","ms"],mfs:["mfs","sgn"],min:["min","ms"],mnp:["mnp","zh"],mqg:["mqg","ms"],mre:["mre","sgn"],msd:["msd","sgn"],msi:["msi","ms"],msr:["msr","sgn"],mui:["mui","ms"],mzc:["mzc","sgn"],mzg:["mzg","sgn"],mzy:["mzy","sgn"],nan:["nan","zh"],nbs:["nbs","sgn"],ncs:["ncs","sgn"],nsi:["nsi","sgn"],nsl:["nsl","sgn"],nsp:["nsp","sgn"],nsr:["nsr","sgn"],nzs:["nzs","sgn"],okl:["okl","sgn"],orn:["orn","ms"],ors:["ors","ms"],pel:["pel","ms"],pga:["pga","ar"],pks:["pks","sgn"],prl:["prl","sgn"],prz:["prz","sgn"],psc:["psc","sgn"],psd:["psd","sgn"],pse:["pse","ms"],psg:["psg","sgn"],psl:["psl","sgn"],pso:["pso","sgn"],psp:["psp","sgn"],psr:["psr","sgn"],pys:["pys","sgn"],rms:["rms","sgn"],rsi:["rsi","sgn"],rsl:["rsl","sgn"],sdl:["sdl","sgn"],sfb:["sfb","sgn"],sfs:["sfs","sgn"],sgg:["sgg","sgn"],sgx:["sgx","sgn"],shu:["shu","ar"],slf:["slf","sgn"],sls:["sls","sgn"],sqk:["sqk","sgn"],sqs:["sqs","sgn"],ssh:["ssh","ar"],ssp:["ssp","sgn"],ssr:["ssr","sgn"],svk:["svk","sgn"],swc:["swc","sw"],swh:["swh","sw"],swl:["swl","sgn"],syy:["syy","sgn"],tmw:["tmw","ms"],tse:["tse","sgn"],tsm:["tsm","sgn"],tsq:["tsq","sgn"],tss:["tss","sgn"],tsy:["tsy","sgn"],tza:["tza","sgn"],ugn:["ugn","sgn"],ugy:["ugy","sgn"],ukl:["ukl","sgn"],uks:["uks","sgn"],urk:["urk","ms"],uzn:["uzn","uz"],uzs:["uzs","uz"],vgt:["vgt","sgn"],vkk:["vkk","ms"],vkt:["vkt","ms"],vsi:["vsi","sgn"],vsl:["vsl","sgn"],vsv:["vsv","sgn"],wuu:["wuu","zh"],xki:["xki","sgn"],xml:["xml","sgn"],xmm:["xmm","ms"],xms:["xms","sgn"],yds:["yds","sgn"],ysl:["ysl","sgn"],yue:["yue","zh"],zib:["zib","sgn"],zlm:["zlm","ms"],zmi:["zmi","ms"],zsl:["zsl","sgn"],zsm:["zsm","ms"]}},Ie=/^[A-Z]{3}$/,Le=/-u(?:-[0-9a-z]{2,8})+/gi,ke={};ke.getCanonicalLocales=function(e){var t=g(e),n=[];for(var r in t)n.push(t[r]);return n};var je={BHD:3,BYR:0,XOF:0,BIF:0,XAF:0,CLF:4,CLP:0,KMF:0,DJF:0,XPF:0,GNF:0,ISK:0,IQD:3,JPY:0,JOD:3,KRW:0,KWD:3,LYD:3,OMR:3,PYG:0,RWF:0,TND:3,UGX:0,UYI:0,VUV:0,VND:0};ie(ke,"NumberFormat",{configurable:!0,writable:!0,value:S}),ie(ke.NumberFormat,"prototype",{writable:!1}),he.NumberFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["nu"],"[[localeData]]":{}},ie(ke.NumberFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:de.call(function(e){if(!oe.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=a(),n=arguments[1],r=this["[[availableLocales]]"],o=g(e);return t.exp.test(t.input),x(r,o,n)},he.NumberFormat)}),ie(ke.NumberFormat.prototype,"format",{configurable:!0,get:P}),ke.NumberFormat.prototype.formatToParts=function(e){var t=null!==this&&"object"===te.typeof(this)&&u(this);if(!t||!t["[[initializedNumberFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.NumberFormat object.");var n=Number(e);return R(this,n)};var Fe={arab:["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],arabext:["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],bali:["᭐","᭑","᭒","᭓","᭔","᭕","᭖","᭗","᭘","᭙"],beng:["০","১","২","৩","৪","৫","৬","৭","৮","৯"],deva:["०","१","२","३","४","५","६","७","८","९"],fullwide:["0","1","2","3","4","5","6","7","8","9"],gujr:["૦","૧","૨","૩","૪","૫","૬","૭","૮","૯"],guru:["੦","੧","੨","੩","੪","੫","੬","੭","੮","੯"],hanidec:["〇","一","二","三","四","五","六","七","八","九"],khmr:["០","១","២","៣","៤","៥","៦","៧","៨","៩"],knda:["೦","೧","೨","೩","೪","೫","೬","೭","೮","೯"],laoo:["໐","໑","໒","໓","໔","໕","໖","໗","໘","໙"],latn:["0","1","2","3","4","5","6","7","8","9"],limb:["᥆","᥇","᥈","᥉","᥊","᥋","᥌","᥍","᥎","᥏"],mlym:["൦","൧","൨","൩","൪","൫","൬","൭","൮","൯"],mong:["᠐","᠑","᠒","᠓","᠔","᠕","᠖","᠗","᠘","᠙"],mymr:["၀","၁","၂","၃","၄","၅","၆","၇","၈","၉"],orya:["୦","୧","୨","୩","୪","୫","୬","୭","୮","୯"],tamldec:["௦","௧","௨","௩","௪","௫","௬","௭","௮","௯"],telu:["౦","౧","౨","౩","౪","౫","౬","౭","౮","౯"],thai:["๐","๑","๒","๓","๔","๕","๖","๗","๘","๙"],tibt:["༠","༡","༢","༣","༤","༥","༦","༧","༨","༩"]};ie(ke.NumberFormat.prototype,"resolvedOptions",{configurable:!0,writable:!0,value:function(){var e=void 0,t=new o,n=["locale","numberingSystem","style","currency","currencyDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping"],r=null!==this&&"object"===te.typeof(this)&&u(this);if(!r||!r["[[initializedNumberFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.");for(var i=0,a=n.length;i<a;i++)oe.call(r,e="[["+n[i]+"]]")&&(t[n[i]]={
|
7 |
-
value:r[e],writable:!0,configurable:!0,enumerable:!0});return se({},t)}});var Ve=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,Ue=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ze=/[rqQASjJgwWIQq]/,Ge=["weekday","era","year","month","day","weekday","quarter"],He=["hour","minute","second","hour12","timeZoneName"],Be=se(null,{narrow:{},short:{},long:{}});ie(ke,"DateTimeFormat",{configurable:!0,writable:!0,value:G}),ie(G,"prototype",{writable:!1});var qe={weekday:["narrow","short","long"],era:["narrow","short","long"],year:["2-digit","numeric"],month:["2-digit","numeric","narrow","short","long"],day:["2-digit","numeric"],hour:["2-digit","numeric"],minute:["2-digit","numeric"],second:["2-digit","numeric"],timeZoneName:["short","long"]};he.DateTimeFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["ca","nu"],"[[localeData]]":{}},ie(ke.DateTimeFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:de.call(function(e){if(!oe.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=a(),n=arguments[1],r=this["[[availableLocales]]"],o=g(e);return t.exp.test(t.input),x(r,o,n)},he.NumberFormat)}),ie(ke.DateTimeFormat.prototype,"format",{configurable:!0,get:Y}),ie(ke.DateTimeFormat.prototype,"formatToParts",{configurable:!0,get:X}),ie(ke.DateTimeFormat.prototype,"resolvedOptions",{writable:!0,configurable:!0,value:function(){var e=void 0,t=new o,n=["locale","calendar","numberingSystem","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"],r=null!==this&&"object"===te.typeof(this)&&u(this);if(!r||!r["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.");for(var i=0,a=n.length;i<a;i++)oe.call(r,e="[["+n[i]+"]]")&&(t[n[i]]={value:r[e],writable:!0,configurable:!0,enumerable:!0});return se({},t)}});var Ze=ke.__localeSensitiveProtos={Number:{},Date:{}};Ze.Number.toLocaleString=function(){if("[object Number]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a number for Number.prototype.toLocaleString()");return A(new S(arguments[0],arguments[1]),this)},Ze.Date.toLocaleString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],n=arguments[1];n=q(n,"any","all");var r=new G(t,n);return Q(r,e)},Ze.Date.toLocaleDateString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleDateString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],n=arguments[1];n=q(n,"date","date");var r=new G(t,n);return Q(r,e)},Ze.Date.toLocaleTimeString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleTimeString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],n=arguments[1];n=q(n,"time","time");var r=new G(t,n);return Q(r,e)},ie(ke,"__applyLocaleSensitivePrototypes",{writable:!0,configurable:!0,value:function(){ie(Number.prototype,"toLocaleString",{writable:!0,configurable:!0,value:Ze.Number.toLocaleString}),ie(Date.prototype,"toLocaleString",{writable:!0,configurable:!0,value:Ze.Date.toLocaleString});for(var e in Ze.Date)oe.call(Ze.Date,e)&&ie(Date.prototype,e,{writable:!0,configurable:!0,value:Ze.Date[e]})}}),ie(ke,"__addLocaleData",{value:function(e){if(!p(e.locale))throw new Error("Object passed doesn't identify itself with a valid language tag");ee(e,e.locale)}}),t.exports=ke},{}],186:[function(t,n,r){(function(t){(function(){function o(e,t){if(e!==t){var n=null===e,r=e===O,o=e===e,i=null===t,a=t===O,s=t===t;if(e>t&&!i||!o||n&&!a&&s||r&&s)return 1;if(e<t&&!n||!s||i&&!r&&o||a&&o)return-1}return 0}function i(e,t,n){for(var r=e.length,o=n?r:-1;n?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function a(e,t,n){if(t!==t)return y(e,n);for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function s(e){return"function"==typeof e||!1}function u(e){return null==e?"":e+""}function c(e,t){for(var n=-1,r=e.length;++n<r&&t.indexOf(e.charAt(n))>-1;);return n}function l(e,t){for(var n=e.length;n--&&t.indexOf(e.charAt(n))>-1;);return n}function p(e,t){return o(e.criteria,t.criteria)||e.index-t.index}function f(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,s=i.length,u=n.length;++r<s;){var c=o(i[r],a[r]);if(c){if(r>=u)return c;var l=n[r];return c*("asc"===l||l===!0?1:-1)}}return e.index-t.index}function d(e){return qe[e]}function h(e){return Ze[e]}function g(e,t,n){return t?e=Xe[e]:n&&(e=Ke[e]),"\\"+e}function m(e){return"\\"+Ke[e]}function y(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o<r;){var i=e[o];if(i!==i)return o}return-1}function v(e){return!!e&&"object"==typeof e}function _(e){return e<=160&&e>=9&&e<=13||32==e||160==e||5760==e||6158==e||e>=8192&&(e<=8202||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}function b(e,t){for(var n=-1,r=e.length,o=-1,i=[];++n<r;)e[n]===t&&(e[n]=q,i[++o]=n);return i}function E(e,t){for(var n,r=-1,o=e.length,i=-1,a=[];++r<o;){var s=e[r],u=t?t(s,r,e):s;r&&n===u||(n=u,a[++i]=s)}return a}function x(e){for(var t=-1,n=e.length;++t<n&&_(e.charCodeAt(t)););return t}function C(e){for(var t=e.length;t--&&_(e.charCodeAt(t)););return t}function w(e){return We[e]}function S(e){function t(e){if(v(e)&&!Rs(e)&&!(e instanceof _)){if(e instanceof r)return e;if(ta.call(e,"__chain__")&&ta.call(e,"__wrapped__"))return dr(e)}return new r(e)}function n(){}function r(e,t,n){this.__wrapped__=e,this.__actions__=n||[],this.__chain__=!!t}function _(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Pa,this.__views__=[]}function $(){var e=new _(this.__wrapped__);return e.__actions__=et(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=et(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=et(this.__views__),e}function ne(){if(this.__filtered__){var e=new _(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function oe(){var e=this.__wrapped__.value(),t=this.__dir__,n=Rs(e),r=t<0,o=n?e.length:0,i=Zn(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,p=l.length,f=0,d=Ca(u,this.__takeCount__);if(!n||o<z||o==u&&d==u)return nn(r&&n?e.reverse():e,this.__actions__);var h=[];e:for(;u--&&f<d;){c+=t;for(var g=-1,m=e[c];++g<p;){var y=l[g],v=y.iteratee,_=y.type,b=v(m);if(_==H)m=b;else if(!b){if(_==G)continue e;break e}}h[f++]=m}return h}function qe(){this.__data__={}}function Ze(e){return this.has(e)&&delete this.__data__[e]}function We(e){return"__proto__"==e?O:this.__data__[e]}function Ye(e){return"__proto__"!=e&&ta.call(this.__data__,e)}function Xe(e,t){return"__proto__"!=e&&(this.__data__[e]=t),this}function Ke(e){var t=e?e.length:0;for(this.data={hash:ya(null),set:new pa};t--;)this.push(e[t])}function Qe(e,t){var n=e.data,r="string"==typeof t||Lo(t)?n.set.has(t):n.hash[t];return r?0:-1}function $e(e){var t=this.data;"string"==typeof e||Lo(e)?t.set.add(e):t.hash[e]=!0}function Je(e,t){for(var n=-1,r=e.length,o=-1,i=t.length,a=zi(r+i);++n<r;)a[n]=e[n];for(;++o<i;)a[n++]=t[o];return a}function et(e,t){var n=-1,r=e.length;for(t||(t=zi(r));++n<r;)t[n]=e[n];return t}function tt(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function nt(e,t){for(var n=e.length;n--&&t(e[n],n,e)!==!1;);return e}function it(e,t){for(var n=-1,r=e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function at(e,t,n,r){for(var o=-1,i=e.length,a=r,s=a;++o<i;){var u=e[o],c=+t(u);n(c,a)&&(a=c,s=u)}return s}function st(e,t){for(var n=-1,r=e.length,o=-1,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[++o]=a)}return i}function ut(e,t){for(var n=-1,r=e.length,o=zi(r);++n<r;)o[n]=t(e[n],n,e);return o}function ct(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function lt(e,t,n,r){var o=-1,i=e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function pt(e,t,n,r){var o=e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function ft(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function dt(e,t){for(var n=e.length,r=0;n--;)r+=+t(e[n])||0;return r}function ht(e,t){return e===O?t:e}function gt(e,t,n,r){return e!==O&&ta.call(r,n)?e:t}function mt(e,t,n){for(var r=-1,o=Us(t),i=o.length;++r<i;){var a=o[r],s=e[a],u=n(s,t[a],a,e,t);(u===u?u===s:s!==s)&&(s!==O||a in e)||(e[a]=u)}return e}function yt(e,t){return null==t?e:_t(t,Us(t),e)}function vt(e,t){for(var n=-1,r=null==e,o=!r&&Qn(e),i=o?e.length:0,a=t.length,s=zi(a);++n<a;){var u=t[n];o?s[n]=$n(u,i)?e[u]:O:s[n]=r?O:e[u]}return s}function _t(e,t,n){n||(n={});for(var r=-1,o=t.length;++r<o;){var i=t[r];n[i]=e[i]}return n}function bt(e,t,n){var r=typeof e;return"function"==r?t===O?e:an(e,t,n):null==e?Pi:"object"==r?Vt(e):t===O?Ii(e):Ut(e,t)}function Et(e,t,n,r,o,i,a){var s;if(n&&(s=o?n(e,r,o):n(e)),s!==O)return s;if(!Lo(e))return e;var u=Rs(e);if(u){if(s=Wn(e),!t)return et(e,s)}else{var c=ra.call(e),l=c==Q;if(c!=ee&&c!=Z&&(!l||o))return Be[c]?Xn(e,c,t):o?e:{};if(s=Yn(l?{}:e),!t)return yt(s,e)}i||(i=[]),a||(a=[]);for(var p=i.length;p--;)if(i[p]==e)return a[p];return i.push(e),a.push(s),(u?tt:At)(e,function(r,o){s[o]=Et(r,t,n,o,e,i,a)}),s}function xt(e,t,n){if("function"!=typeof e)throw new Ki(B);return fa(function(){e.apply(O,n)},t)}function Ct(e,t){var n=e?e.length:0,r=[];if(!n)return r;var o=-1,i=Hn(),s=i==a,u=s&&t.length>=z?gn(t):null,c=t.length;u&&(i=Qe,s=!1,t=u);e:for(;++o<n;){var l=e[o];if(s&&l===l){for(var p=c;p--;)if(t[p]===l)continue e;r.push(l)}else i(t,l,0)<0&&r.push(l)}return r}function wt(e,t){var n=!0;return ka(e,function(e,r,o){return n=!!t(e,r,o)}),n}function St(e,t,n,r){var o=r,i=o;return ka(e,function(e,a,s){var u=+t(e,a,s);(n(u,o)||u===r&&u===i)&&(o=u,i=e)}),i}function Ot(e,t,n,r){var o=e.length;for(n=null==n?0:+n||0,n<0&&(n=-n>o?0:o+n),r=r===O||r>o?o:+r||0,r<0&&(r+=o),o=n>r?0:r>>>0,n>>>=0;n<o;)e[n++]=t;return e}function Tt(e,t){var n=[];return ka(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function Pt(e,t,n,r){var o;return n(e,function(e,n,i){if(t(e,n,i))return o=r?n:e,!1}),o}function Rt(e,t,n,r){r||(r=[]);for(var o=-1,i=e.length;++o<i;){var a=e[o];v(a)&&Qn(a)&&(n||Rs(a)||Oo(a))?t?Rt(a,t,n,r):ct(r,a):n||(r[r.length]=a)}return r}function Nt(e,t){return Fa(e,t,ti)}function At(e,t){return Fa(e,t,Us)}function Mt(e,t){return Va(e,t,Us)}function Dt(e,t){for(var n=-1,r=t.length,o=-1,i=[];++n<r;){var a=t[n];Io(e[a])&&(i[++o]=a)}return i}function It(e,t,n){if(null!=e){n!==O&&n in pr(e)&&(t=[n]);for(var r=0,o=t.length;null!=e&&r<o;)e=e[t[r++]];return r&&r==o?e:O}}function Lt(e,t,n,r,o,i){return e===t||(null==e||null==t||!Lo(e)&&!v(t)?e!==e&&t!==t:kt(e,t,Lt,n,r,o,i))}function kt(e,t,n,r,o,i,a){var s=Rs(e),u=Rs(t),c=W,l=W;s||(c=ra.call(e),c==Z?c=ee:c!=ee&&(s=Bo(e))),u||(l=ra.call(t),l==Z?l=ee:l!=ee&&(u=Bo(t)));var p=c==ee,f=l==ee,d=c==l;if(d&&!s&&!p)return Vn(e,t,c);if(!o){var h=p&&ta.call(e,"__wrapped__"),g=f&&ta.call(t,"__wrapped__");if(h||g)return n(h?e.value():e,g?t.value():t,r,o,i,a)}if(!d)return!1;i||(i=[]),a||(a=[]);for(var m=i.length;m--;)if(i[m]==e)return a[m]==t;i.push(e),a.push(t);var y=(s?Fn:Un)(e,t,n,r,o,i,a);return i.pop(),a.pop(),y}function jt(e,t,n){var r=t.length,o=r,i=!n;if(null==e)return!o;for(e=pr(e);r--;){var a=t[r];if(i&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<o;){a=t[r];var s=a[0],u=e[s],c=a[1];if(i&&a[2]){if(u===O&&!(s in e))return!1}else{var l=n?n(u,c,s):O;if(!(l===O?Lt(c,u,n,!0):l))return!1}}return!0}function Ft(e,t){var n=-1,r=Qn(e)?zi(e.length):[];return ka(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function Vt(e){var t=Bn(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null!=e&&(e[n]===r&&(r!==O||n in pr(e)))}}return function(e){return jt(e,t)}}function Ut(e,t){var n=Rs(e),r=er(e)&&rr(t),o=e+"";return e=fr(e),function(i){if(null==i)return!1;var a=o;if(i=pr(i),(n||!r)&&!(a in i)){if(i=1==e.length?i:It(i,Yt(e,0,-1)),null==i)return!1;a=Or(e),i=pr(i)}return i[a]===t?t!==O||a in i:Lt(t,i[a],O,!0)}}function zt(e,t,n,r,o){if(!Lo(e))return e;var i=Qn(t)&&(Rs(t)||Bo(t)),a=i?O:Us(t);return tt(a||t,function(s,u){if(a&&(u=s,s=t[u]),v(s))r||(r=[]),o||(o=[]),Gt(e,t,u,zt,n,r,o);else{var c=e[u],l=n?n(c,s,u,e,t):O,p=l===O;p&&(l=s),l===O&&(!i||u in e)||!p&&(l===l?l===c:c!==c)||(e[u]=l)}}),e}function Gt(e,t,n,r,o,i,a){for(var s=i.length,u=t[n];s--;)if(i[s]==u)return void(e[n]=a[s]);var c=e[n],l=o?o(c,u,n,e,t):O,p=l===O;p&&(l=u,Qn(u)&&(Rs(u)||Bo(u))?l=Rs(c)?c:Qn(c)?et(c):[]:zo(u)||Oo(u)?l=Oo(c)?Xo(c):zo(c)?c:{}:p=!1),i.push(u),a.push(l),p?e[n]=r(l,u,o,i,a):(l===l?l!==c:c===c)&&(e[n]=l)}function Ht(e){return function(t){return null==t?O:t[e]}}function Bt(e){var t=e+"";return e=fr(e),function(n){return It(n,e,t)}}function qt(e,t){for(var n=e?t.length:0;n--;){var r=t[n];if(r!=o&&$n(r)){var o=r;da.call(e,r,1)}}return e}function Zt(e,t){return e+va(Oa()*(t-e+1))}function Wt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Yt(e,t,n){var r=-1,o=e.length;t=null==t?0:+t||0,t<0&&(t=-t>o?0:o+t),n=n===O||n>o?o:+n||0,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=zi(o);++r<o;)i[r]=e[r+t];return i}function Xt(e,t){var n;return ka(e,function(e,r,o){return n=t(e,r,o),!n}),!!n}function Kt(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Qt(e,t,n){var r=zn(),o=-1;t=ut(t,function(e){return r(e)});var i=Ft(e,function(e){var n=ut(t,function(t){return t(e)});return{criteria:n,index:++o,value:e}});return Kt(i,function(e,t){return f(e,t,n)})}function $t(e,t){var n=0;return ka(e,function(e,r,o){n+=+t(e,r,o)||0}),n}function Jt(e,t){var n=-1,r=Hn(),o=e.length,i=r==a,s=i&&o>=z,u=s?gn():null,c=[];u?(r=Qe,i=!1):(s=!1,u=t?[]:c);e:for(;++n<o;){var l=e[n],p=t?t(l,n,e):l;if(i&&l===l){for(var f=u.length;f--;)if(u[f]===p)continue e;t&&u.push(p),c.push(l)}else r(u,p,0)<0&&((t||s)&&u.push(p),c.push(l))}return c}function en(e,t){for(var n=-1,r=t.length,o=zi(r);++n<r;)o[n]=e[t[n]];return o}function tn(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Yt(e,r?0:i,r?i+1:o):Yt(e,r?i+1:0,r?o:i)}function nn(e,t){var n=e;n instanceof _&&(n=n.value());for(var r=-1,o=t.length;++r<o;){var i=t[r];n=i.func.apply(i.thisArg,ct([n],i.args))}return n}function rn(e,t,n){var r=0,o=e?e.length:r;if("number"==typeof t&&t===t&&o<=Aa){for(;r<o;){var i=r+o>>>1,a=e[i];(n?a<=t:a<t)&&null!==a?r=i+1:o=i}return o}return on(e,t,Pi,n)}function on(e,t,n,r){t=n(t);for(var o=0,i=e?e.length:0,a=t!==t,s=null===t,u=t===O;o<i;){var c=va((o+i)/2),l=n(e[c]),p=l!==O,f=l===l;if(a)var d=f||r;else d=s?f&&p&&(r||null!=l):u?f&&(r||p):null!=l&&(r?l<=t:l<t);d?o=c+1:i=c}return Ca(i,Na)}function an(e,t,n){if("function"!=typeof e)return Pi;if(t===O)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)};case 5:return function(n,r,o,i,a){return e.call(t,n,r,o,i,a)}}return function(){return e.apply(t,arguments)}}function sn(e){var t=new aa(e.byteLength),n=new ha(t);return n.set(new ha(e)),t}function un(e,t,n){for(var r=n.length,o=-1,i=xa(e.length-r,0),a=-1,s=t.length,u=zi(s+i);++a<s;)u[a]=t[a];for(;++o<r;)u[n[o]]=e[o];for(;i--;)u[a++]=e[o++];return u}function cn(e,t,n){for(var r=-1,o=n.length,i=-1,a=xa(e.length-o,0),s=-1,u=t.length,c=zi(a+u);++i<a;)c[i]=e[i];for(var l=i;++s<u;)c[l+s]=t[s];for(;++r<o;)c[l+n[r]]=e[i++];return c}function ln(e,t){return function(n,r,o){var i=t?t():{};if(r=zn(r,o,3),Rs(n))for(var a=-1,s=n.length;++a<s;){var u=n[a];e(i,u,r(u,a,n),n)}else ka(n,function(t,n,o){e(i,t,r(t,n,o),o)});return i}}function pn(e){return vo(function(t,n){var r=-1,o=null==t?0:n.length,i=o>2?n[o-2]:O,a=o>2?n[2]:O,s=o>1?n[o-1]:O;for("function"==typeof i?(i=an(i,s,5),o-=2):(i="function"==typeof s?s:O,o-=i?1:0),a&&Jn(n[0],n[1],a)&&(i=o<3?O:i,o=1);++r<o;){var u=n[r];u&&e(t,u,i)}return t})}function fn(e,t){return function(n,r){var o=n?Ga(n):0;if(!nr(o))return e(n,r);for(var i=t?o:-1,a=pr(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}function dn(e){return function(t,n,r){for(var o=pr(t),i=r(t),a=i.length,s=e?a:-1;e?s--:++s<a;){var u=i[s];if(n(o[u],u,o)===!1)break}return t}}function hn(e,t){function n(){var o=this&&this!==rt&&this instanceof n?r:e;return o.apply(t,arguments)}var r=yn(e);return n}function gn(e){return ya&&pa?new Ke(e):null}function mn(e){return function(t){for(var n=-1,r=Si(pi(t)),o=r.length,i="";++n<o;)i=e(i,r[n],n);return i}}function yn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=La(e.prototype),r=e.apply(n,t);return Lo(r)?r:n}}function vn(e){function t(n,r,o){o&&Jn(n,r,o)&&(r=O);var i=jn(n,e,O,O,O,O,O,r);return i.placeholder=t.placeholder,i}return t}function _n(e,t){return vo(function(n){var r=n[0];return null==r?r:(n.push(t),e.apply(O,n))})}function bn(e,t){return function(n,r,o){if(o&&Jn(n,r,o)&&(r=O),r=zn(r,o,3),1==r.length){n=Rs(n)?n:lr(n);var i=at(n,r,e,t);if(!n.length||i!==t)return i}return St(n,r,e,t)}}function En(e,t){return function(n,r,o){if(r=zn(r,o,3),Rs(n)){var a=i(n,r,t);return a>-1?n[a]:O}return Pt(n,r,e)}}function xn(e){return function(t,n,r){return t&&t.length?(n=zn(n,r,3),i(t,n,e)):-1}}function Cn(e){return function(t,n,r){return n=zn(n,r,3),Pt(t,n,e,!0)}}function wn(e){return function(){for(var t,n=arguments.length,o=e?n:-1,i=0,a=zi(n);e?o--:++o<n;){var s=a[i++]=arguments[o];if("function"!=typeof s)throw new Ki(B);!t&&r.prototype.thru&&"wrapper"==Gn(s)&&(t=new r([],(!0)))}for(o=t?-1:n;++o<n;){s=a[o];var u=Gn(s),c="wrapper"==u?za(s):O;t=c&&tr(c[0])&&c[1]==(L|A|D|k)&&!c[4].length&&1==c[9]?t[Gn(c[0])].apply(t,c[3]):1==s.length&&tr(s)?t[u]():t.thru(s)}return function(){var e=arguments,r=e[0];if(t&&1==e.length&&Rs(r)&&r.length>=z)return t.plant(r).value();for(var o=0,i=n?a[o].apply(this,e):r;++o<n;)i=a[o].call(this,i);return i}}}function Sn(e,t){return function(n,r,o){return"function"==typeof r&&o===O&&Rs(n)?e(n,r):t(n,an(r,o,3))}}function On(e){return function(t,n,r){return"function"==typeof n&&r===O||(n=an(n,r,3)),e(t,n,ti)}}function Tn(e){return function(t,n,r){return"function"==typeof n&&r===O||(n=an(n,r,3)),e(t,n)}}function Pn(e){return function(t,n,r){var o={};return n=zn(n,r,3),At(t,function(t,r,i){var a=n(t,r,i);r=e?a:r,t=e?t:a,o[r]=t}),o}}function Rn(e){return function(t,n,r){return t=u(t),(e?t:"")+Dn(t,n,r)+(e?"":t)}}function Nn(e){var t=vo(function(n,r){var o=b(r,t.placeholder);return jn(n,e,O,r,o)});return t}function An(e,t){return function(n,r,o,i){var a=arguments.length<3;return"function"==typeof r&&i===O&&Rs(n)?e(n,r,o,a):Wt(n,zn(r,i,4),o,a,t)}}function Mn(e,t,n,r,o,i,a,s,u,c){function l(){for(var v=arguments.length,_=v,E=zi(v);_--;)E[_]=arguments[_];if(r&&(E=un(E,r,o)),i&&(E=cn(E,i,a)),h||m){var x=l.placeholder,C=b(E,x);if(v-=C.length,v<c){var w=s?et(s):O,S=xa(c-v,0),T=h?C:O,N=h?O:C,A=h?E:O,M=h?O:E;t|=h?D:I,t&=~(h?I:D),g||(t&=~(P|R));var L=[e,t,n,A,T,M,N,w,u,S],k=Mn.apply(O,L);return tr(e)&&Ha(k,L),k.placeholder=x,k}}var j=f?n:this,F=d?j[e]:e;return s&&(E=ur(E,s)),p&&u<E.length&&(E.length=u),this&&this!==rt&&this instanceof l&&(F=y||yn(e)),F.apply(j,E)}var p=t&L,f=t&P,d=t&R,h=t&A,g=t&N,m=t&M,y=d?O:yn(e);return l}function Dn(e,t,n){var r=e.length;if(t=+t,r>=t||!ba(t))return"";var o=t-r;return n=null==n?" ":n+"",yi(n,ma(o/n.length)).slice(0,o)}function In(e,t,n,r){function o(){for(var t=-1,s=arguments.length,u=-1,c=r.length,l=zi(c+s);++u<c;)l[u]=r[u];for(;s--;)l[u++]=arguments[++t];var p=this&&this!==rt&&this instanceof o?a:e;return p.apply(i?n:this,l)}var i=t&P,a=yn(e);return o}function Ln(e){var t=qi[e];return function(e,n){return n=n===O?0:+n||0,n?(n=ca(10,n),t(e*n)/n):t(e)}}function kn(e){return function(t,n,r,o){var i=zn(r);return null==r&&i===bt?rn(t,n,e):on(t,n,i(r,o,1),e)}}function jn(e,t,n,r,o,i,a,s){var u=t&R;if(!u&&"function"!=typeof e)throw new Ki(B);var c=r?r.length:0;if(c||(t&=~(D|I),r=o=O),c-=o?o.length:0,t&I){var l=r,p=o;r=o=O}var f=u?O:za(e),d=[e,t,n,r,o,l,p,i,a,s];if(f&&(or(d,f),t=d[1],s=d[9]),d[9]=null==s?u?0:e.length:xa(s-c,0)||0,t==P)var h=hn(d[0],d[2]);else h=t!=D&&t!=(P|D)||d[4].length?Mn.apply(O,d):In.apply(O,d);var g=f?Ua:Ha;return g(h,d)}function Fn(e,t,n,r,o,i,a){var s=-1,u=e.length,c=t.length;if(u!=c&&!(o&&c>u))return!1;for(;++s<u;){var l=e[s],p=t[s],f=r?r(o?p:l,o?l:p,s):O;if(f!==O){if(f)continue;return!1}if(o){if(!ft(t,function(e){return l===e||n(l,e,r,o,i,a)}))return!1}else if(l!==p&&!n(l,p,r,o,i,a))return!1}return!0}function Vn(e,t,n){switch(n){case Y:case X:return+e==+t;case K:return e.name==t.name&&e.message==t.message;case J:return e!=+e?t!=+t:e==+t;case te:case re:return e==t+""}return!1}function Un(e,t,n,r,o,i,a){var s=Us(e),u=s.length,c=Us(t),l=c.length;if(u!=l&&!o)return!1;for(var p=u;p--;){var f=s[p];if(!(o?f in t:ta.call(t,f)))return!1}for(var d=o;++p<u;){f=s[p];var h=e[f],g=t[f],m=r?r(o?g:h,o?h:g,f):O;if(!(m===O?n(h,g,r,o,i,a):m))return!1;d||(d="constructor"==f)}if(!d){var y=e.constructor,v=t.constructor;if(y!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v))return!1}return!0}function zn(e,n,r){var o=t.callback||Oi;return o=o===Oi?bt:o,r?o(e,n,r):o}function Gn(e){for(var t=e.name,n=Ia[t],r=n?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Hn(e,n,r){var o=t.indexOf||wr;return o=o===wr?a:o,e?o(e,n,r):o}function Bn(e){for(var t=ni(e),n=t.length;n--;)t[n][2]=rr(t[n][1]);return t}function qn(e,t){var n=null==e?O:e[t];return Fo(n)?n:O}function Zn(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Ca(t,e+a);break;case"takeRight":e=xa(e,t-a)}}return{start:e,end:t}}function Wn(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ta.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Yn(e){var t=e.constructor;return"function"==typeof t&&t instanceof t||(t=Wi),new t}function Xn(e,t,n){var r=e.constructor;switch(t){case ie:return sn(e);case Y:case X:return new r((+e));case ae:case se:case ue:case ce:case le:case pe:case fe:case de:case he:var o=e.buffer;return new r(n?sn(o):o,e.byteOffset,e.length);case J:case re:return new r(e);case te:var i=new r(e.source,De.exec(e));i.lastIndex=e.lastIndex}return i}function Kn(e,t,n){null==e||er(t,e)||(t=fr(t),e=1==t.length?e:It(e,Yt(t,0,-1)),t=Or(t));var r=null==e?e:e[t];return null==r?O:r.apply(e,n)}function Qn(e){return null!=e&&nr(Ga(e))}function $n(e,t){return e="number"==typeof e||ke.test(e)?+e:-1,t=null==t?Ma:t,e>-1&&e%1==0&&e<t}function Jn(e,t,n){if(!Lo(n))return!1;var r=typeof t;if("number"==r?Qn(n)&&$n(t,n.length):"string"==r&&t in n){var o=n[t];return e===e?e===o:o!==o}return!1}function er(e,t){var n=typeof e;if("string"==n&&Oe.test(e)||"number"==n)return!0;if(Rs(e))return!1;var r=!Se.test(e);return r||null!=t&&e in pr(t)}function tr(e){var n=Gn(e);if(!(n in _.prototype))return!1;var r=t[n];if(e===r)return!0;var o=za(r);return!!o&&e===o[0]}function nr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ma}function rr(e){return e===e&&!Lo(e)}function or(e,t){var n=e[1],r=t[1],o=n|r,i=o<L,a=r==L&&n==A||r==L&&n==k&&e[7].length<=t[8]||r==(L|k)&&n==A;if(!i&&!a)return e;r&P&&(e[2]=t[2],o|=n&P?0:N);var s=t[3];if(s){var u=e[3];e[3]=u?un(u,s,t[4]):et(s),e[4]=u?b(e[3],q):et(t[4])}return s=t[5],s&&(u=e[5],e[5]=u?cn(u,s,t[6]):et(s),e[6]=u?b(e[5],q):et(t[6])),s=t[7],s&&(e[7]=et(s)),r&L&&(e[8]=null==e[8]?t[8]:Ca(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function ir(e,t){return e===O?t:Ns(e,t,ir)}function ar(e,t){e=pr(e);for(var n=-1,r=t.length,o={};++n<r;){var i=t[n];i in e&&(o[i]=e[i])}return o}function sr(e,t){var n={};return Nt(e,function(e,r,o){t(e,r,o)&&(n[r]=e)}),n}function ur(e,t){for(var n=e.length,r=Ca(t.length,n),o=et(e);r--;){var i=t[r];e[r]=$n(i,n)?o[i]:O}return e}function cr(e){for(var t=ti(e),n=t.length,r=n&&e.length,o=!!r&&nr(r)&&(Rs(e)||Oo(e)),i=-1,a=[];++i<n;){var s=t[i];(o&&$n(s,r)||ta.call(e,s))&&a.push(s)}return a}function lr(e){return null==e?[]:Qn(e)?Lo(e)?e:Wi(e):ai(e)}function pr(e){return Lo(e)?e:Wi(e)}function fr(e){if(Rs(e))return e;var t=[];return u(e).replace(Te,function(e,n,r,o){t.push(r?o.replace(Ae,"$1"):n||e)}),t}function dr(e){return e instanceof _?e.clone():new r(e.__wrapped__,e.__chain__,et(e.__actions__))}function hr(e,t,n){t=(n?Jn(e,t,n):null==t)?1:xa(va(t)||1,1);for(var r=0,o=e?e.length:0,i=-1,a=zi(ma(o/t));r<o;)a[++i]=Yt(e,r,r+=t);return a}function gr(e){for(var t=-1,n=e?e.length:0,r=-1,o=[];++t<n;){var i=e[t];i&&(o[++r]=i)}return o}function mr(e,t,n){var r=e?e.length:0;return r?((n?Jn(e,t,n):null==t)&&(t=1),Yt(e,t<0?0:t)):[]}function yr(e,t,n){var r=e?e.length:0;return r?((n?Jn(e,t,n):null==t)&&(t=1),t=r-(+t||0),Yt(e,0,t<0?0:t)):[]}function vr(e,t,n){return e&&e.length?tn(e,zn(t,n,3),!0,!0):[]}function _r(e,t,n){return e&&e.length?tn(e,zn(t,n,3),!0):[]}function br(e,t,n,r){var o=e?e.length:0;return o?(n&&"number"!=typeof n&&Jn(e,t,n)&&(n=0,r=o),Ot(e,t,n,r)):[]}function Er(e){return e?e[0]:O}function xr(e,t,n){var r=e?e.length:0;return n&&Jn(e,t,n)&&(t=!1),r?Rt(e,t):[]}function Cr(e){var t=e?e.length:0;return t?Rt(e,!0):[]}function wr(e,t,n){var r=e?e.length:0;if(!r)return-1;if("number"==typeof n)n=n<0?xa(r+n,0):n;else if(n){var o=rn(e,t);return o<r&&(t===t?t===e[o]:e[o]!==e[o])?o:-1}return a(e,t,n||0)}function Sr(e){return yr(e,1)}function Or(e){var t=e?e.length:0;return t?e[t-1]:O}function Tr(e,t,n){var r=e?e.length:0;if(!r)return-1;var o=r;if("number"==typeof n)o=(n<0?xa(r+n,0):Ca(n||0,r-1))+1;else if(n){o=rn(e,t,!0)-1;var i=e[o];return(t===t?t===i:i!==i)?o:-1}if(t!==t)return y(e,o,!0);for(;o--;)if(e[o]===t)return o;return-1}function Pr(){var e=arguments,t=e[0];if(!t||!t.length)return t;for(var n=0,r=Hn(),o=e.length;++n<o;)for(var i=0,a=e[n];(i=r(t,a,i))>-1;)da.call(t,i,1);return t}function Rr(e,t,n){var r=[];if(!e||!e.length)return r;var o=-1,i=[],a=e.length;for(t=zn(t,n,3);++o<a;){var s=e[o];t(s,o,e)&&(r.push(s),i.push(o))}return qt(e,i),r}function Nr(e){return mr(e,1)}function Ar(e,t,n){var r=e?e.length:0;return r?(n&&"number"!=typeof n&&Jn(e,t,n)&&(t=0,n=r),Yt(e,t,n)):[]}function Mr(e,t,n){var r=e?e.length:0;return r?((n?Jn(e,t,n):null==t)&&(t=1),Yt(e,0,t<0?0:t)):[]}function Dr(e,t,n){var r=e?e.length:0;return r?((n?Jn(e,t,n):null==t)&&(t=1),t=r-(+t||0),Yt(e,t<0?0:t)):[]}function Ir(e,t,n){return e&&e.length?tn(e,zn(t,n,3),!1,!0):[]}function Lr(e,t,n){return e&&e.length?tn(e,zn(t,n,3)):[]}function kr(e,t,n,r){var o=e?e.length:0;if(!o)return[];null!=t&&"boolean"!=typeof t&&(r=n,n=Jn(e,t,r)?O:t,t=!1);var i=zn();return null==n&&i===bt||(n=i(n,r,3)),t&&Hn()==a?E(e,n):Jt(e,n)}function jr(e){if(!e||!e.length)return[];var t=-1,n=0;e=st(e,function(e){if(Qn(e))return n=xa(e.length,n),!0});for(var r=zi(n);++t<n;)r[t]=ut(e,Ht(t));return r}function Fr(e,t,n){var r=e?e.length:0;if(!r)return[];var o=jr(e);return null==t?o:(t=an(t,n,4),ut(o,function(e){return lt(e,t,O,!0)}))}function Vr(){for(var e=-1,t=arguments.length;++e<t;){var n=arguments[e];if(Qn(n))var r=r?ct(Ct(r,n),Ct(n,r)):n}return r?Jt(r):[]}function Ur(e,t){var n=-1,r=e?e.length:0,o={};for(!r||t||Rs(e[0])||(t=[]);++n<r;){var i=e[n];t?o[i]=t[n]:i&&(o[i[0]]=i[1])}return o}function zr(e){var n=t(e);return n.__chain__=!0,n}function Gr(e,t,n){return t.call(n,e),e}function Hr(e,t,n){return t.call(n,e)}function Br(){return zr(this)}function qr(){return new r(this.value(),this.__chain__)}function Zr(e){for(var t,r=this;r instanceof n;){var o=dr(r);t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t}function Wr(){var e=this.__wrapped__,t=function(e){return n&&n.__dir__<0?e:e.reverse()};if(e instanceof _){var n=e;return this.__actions__.length&&(n=new _(this)),n=n.reverse(),n.__actions__.push({func:Hr,args:[t],thisArg:O}),new r(n,this.__chain__)}return this.thru(t)}function Yr(){return this.value()+""}function Xr(){return nn(this.__wrapped__,this.__actions__)}function Kr(e,t,n){var r=Rs(e)?it:wt;return n&&Jn(e,t,n)&&(t=O),"function"==typeof t&&n===O||(t=zn(t,n,3)),r(e,t)}function Qr(e,t,n){var r=Rs(e)?st:Tt;return t=zn(t,n,3),r(e,t)}function $r(e,t){return os(e,Vt(t))}function Jr(e,t,n,r){var o=e?Ga(e):0;return nr(o)||(e=ai(e),o=e.length),n="number"!=typeof n||r&&Jn(t,n,r)?0:n<0?xa(o+n,0):n||0,"string"==typeof e||!Rs(e)&&Ho(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Hn(e,t,n)>-1}function eo(e,t,n){var r=Rs(e)?ut:Ft;return t=zn(t,n,3),r(e,t)}function to(e,t){return eo(e,Ii(t))}function no(e,t,n){var r=Rs(e)?st:Tt;return t=zn(t,n,3),r(e,function(e,n,r){return!t(e,n,r)})}function ro(e,t,n){if(n?Jn(e,t,n):null==t){e=lr(e);var r=e.length;return r>0?e[Zt(0,r-1)]:O}var o=-1,i=Yo(e),r=i.length,a=r-1;for(t=Ca(t<0?0:+t||0,r);++o<t;){var s=Zt(o,a),u=i[s];i[s]=i[o],i[o]=u}return i.length=t,i}function oo(e){return ro(e,Pa)}function io(e){var t=e?Ga(e):0;return nr(t)?t:Us(e).length}function ao(e,t,n){var r=Rs(e)?ft:Xt;return n&&Jn(e,t,n)&&(t=O),"function"==typeof t&&n===O||(t=zn(t,n,3)),r(e,t)}function so(e,t,n){if(null==e)return[];n&&Jn(e,t,n)&&(t=O);var r=-1;t=zn(t,n,3);var o=Ft(e,function(e,n,o){return{criteria:t(e,n,o),index:++r,value:e}});return Kt(o,p)}function uo(e,t,n,r){return null==e?[]:(r&&Jn(t,n,r)&&(n=O),Rs(t)||(t=null==t?[]:[t]),Rs(n)||(n=null==n?[]:[n]),Qt(e,t,n))}function co(e,t){return Qr(e,Vt(t))}function lo(e,t){if("function"!=typeof t){if("function"!=typeof e)throw new Ki(B);var n=e;e=t,t=n}return e=ba(e=+e)?e:0,function(){if(--e<1)return t.apply(this,arguments)}}function po(e,t,n){return n&&Jn(e,t,n)&&(t=O),t=e&&null==t?e.length:xa(+t||0,0),jn(e,L,O,O,O,O,t)}function fo(e,t){var n;if("function"!=typeof t){if("function"!=typeof e)throw new Ki(B);var r=e;e=t,t=r}return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=O),n}}function ho(e,t,n){function r(){d&&sa(d),c&&sa(c),g=0,c=d=h=O}function o(t,n){n&&sa(n),c=d=h=O,t&&(g=gs(),l=e.apply(f,u),d||c||(u=f=O))}function i(){var e=t-(gs()-p);e<=0||e>t?o(h,c):d=fa(i,e)}function a(){o(y,d)}function s(){if(u=arguments,p=gs(),f=this,h=y&&(d||!v),m===!1)var n=v&&!d;else{c||v||(g=p);var r=m-(p-g),o=r<=0||r>m;o?(c&&(c=sa(c)),g=p,l=e.apply(f,u)):c||(c=fa(a,r))}return o&&d?d=sa(d):d||t===m||(d=fa(i,t)),n&&(o=!0,l=e.apply(f,u)),!o||d||c||(u=f=O),l}var u,c,l,p,f,d,h,g=0,m=!1,y=!0;if("function"!=typeof e)throw new Ki(B);if(t=t<0?0:+t||0,n===!0){var v=!0;y=!1}else Lo(n)&&(v=!!n.leading,m="maxWait"in n&&xa(+n.maxWait||0,t),y="trailing"in n?!!n.trailing:y);return s.cancel=r,s}function go(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new Ki(B);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new go.Cache,n}function mo(e){if("function"!=typeof e)throw new Ki(B);return function(){return!e.apply(this,arguments)}}function yo(e){return fo(2,e)}function vo(e,t){if("function"!=typeof e)throw new Ki(B);return t=xa(t===O?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,o=xa(n.length-t,0),i=zi(o);++r<o;)i[r]=n[t+r];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,n[0],i);case 2:return e.call(this,n[0],n[1],i)}var a=zi(t+1);for(r=-1;++r<t;)a[r]=n[r];return a[t]=i,e.apply(this,a)}}function _o(e){if("function"!=typeof e)throw new Ki(B);return function(t){return e.apply(this,t)}}function bo(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ki(B);return n===!1?r=!1:Lo(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ho(e,t,{leading:r,maxWait:+t,trailing:o
|
8 |
-
})}function Eo(e,t){return t=null==t?Pi:t,jn(t,D,O,[e],[])}function xo(e,t,n,r){return t&&"boolean"!=typeof t&&Jn(e,t,n)?t=!1:"function"==typeof t&&(r=n,n=t,t=!1),"function"==typeof n?Et(e,t,an(n,r,1)):Et(e,t)}function Co(e,t,n){return"function"==typeof t?Et(e,!0,an(t,n,1)):Et(e,!0)}function wo(e,t){return e>t}function So(e,t){return e>=t}function Oo(e){return v(e)&&Qn(e)&&ta.call(e,"callee")&&!la.call(e,"callee")}function To(e){return e===!0||e===!1||v(e)&&ra.call(e)==Y}function Po(e){return v(e)&&ra.call(e)==X}function Ro(e){return!!e&&1===e.nodeType&&v(e)&&!zo(e)}function No(e){return null==e||(Qn(e)&&(Rs(e)||Ho(e)||Oo(e)||v(e)&&Io(e.splice))?!e.length:!Us(e).length)}function Ao(e,t,n,r){n="function"==typeof n?an(n,r,3):O;var o=n?n(e,t):O;return o===O?Lt(e,t,n):!!o}function Mo(e){return v(e)&&"string"==typeof e.message&&ra.call(e)==K}function Do(e){return"number"==typeof e&&ba(e)}function Io(e){return Lo(e)&&ra.call(e)==Q}function Lo(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ko(e,t,n,r){return n="function"==typeof n?an(n,r,3):O,jt(e,Bn(t),n)}function jo(e){return Uo(e)&&e!=+e}function Fo(e){return null!=e&&(Io(e)?ia.test(ea.call(e)):v(e)&&Le.test(e))}function Vo(e){return null===e}function Uo(e){return"number"==typeof e||v(e)&&ra.call(e)==J}function zo(e){var t;if(!v(e)||ra.call(e)!=ee||Oo(e)||!ta.call(e,"constructor")&&(t=e.constructor,"function"==typeof t&&!(t instanceof t)))return!1;var n;return Nt(e,function(e,t){n=t}),n===O||ta.call(e,n)}function Go(e){return Lo(e)&&ra.call(e)==te}function Ho(e){return"string"==typeof e||v(e)&&ra.call(e)==re}function Bo(e){return v(e)&&nr(e.length)&&!!He[ra.call(e)]}function qo(e){return e===O}function Zo(e,t){return e<t}function Wo(e,t){return e<=t}function Yo(e){var t=e?Ga(e):0;return nr(t)?t?et(e):[]:ai(e)}function Xo(e){return _t(e,ti(e))}function Ko(e,t,n){var r=La(e);return n&&Jn(e,t,n)&&(t=O),t?yt(r,t):r}function Qo(e){return Dt(e,ti(e))}function $o(e,t,n){var r=null==e?O:It(e,fr(t),t+"");return r===O?n:r}function Jo(e,t){if(null==e)return!1;var n=ta.call(e,t);if(!n&&!er(t)){if(t=fr(t),e=1==t.length?e:It(e,Yt(t,0,-1)),null==e)return!1;t=Or(t),n=ta.call(e,t)}return n||nr(e.length)&&$n(t,e.length)&&(Rs(e)||Oo(e))}function ei(e,t,n){n&&Jn(e,t,n)&&(t=O);for(var r=-1,o=Us(e),i=o.length,a={};++r<i;){var s=o[r],u=e[s];t?ta.call(a,u)?a[u].push(s):a[u]=[s]:a[u]=s}return a}function ti(e){if(null==e)return[];Lo(e)||(e=Wi(e));var t=e.length;t=t&&nr(t)&&(Rs(e)||Oo(e))&&t||0;for(var n=e.constructor,r=-1,o="function"==typeof n&&n.prototype===e,i=zi(t),a=t>0;++r<t;)i[r]=r+"";for(var s in e)a&&$n(s,t)||"constructor"==s&&(o||!ta.call(e,s))||i.push(s);return i}function ni(e){e=pr(e);for(var t=-1,n=Us(e),r=n.length,o=zi(r);++t<r;){var i=n[t];o[t]=[i,e[i]]}return o}function ri(e,t,n){var r=null==e?O:e[t];return r===O&&(null==e||er(t,e)||(t=fr(t),e=1==t.length?e:It(e,Yt(t,0,-1)),r=null==e?O:e[Or(t)]),r=r===O?n:r),Io(r)?r.call(e):r}function oi(e,t,n){if(null==e)return e;var r=t+"";t=null!=e[r]||er(t,e)?[r]:fr(t);for(var o=-1,i=t.length,a=i-1,s=e;null!=s&&++o<i;){var u=t[o];Lo(s)&&(o==a?s[u]=n:null==s[u]&&(s[u]=$n(t[o+1])?[]:{})),s=s[u]}return e}function ii(e,t,n,r){var o=Rs(e)||Bo(e);if(t=zn(t,r,4),null==n)if(o||Lo(e)){var i=e.constructor;n=o?Rs(e)?new i:[]:La(Io(i)?i.prototype:O)}else n={};return(o?tt:At)(e,function(e,r,o){return t(n,e,r,o)}),n}function ai(e){return en(e,Us(e))}function si(e){return en(e,ti(e))}function ui(e,t,n){return t=+t||0,n===O?(n=t,t=0):n=+n||0,e>=Ca(t,n)&&e<xa(t,n)}function ci(e,t,n){n&&Jn(e,t,n)&&(t=n=O);var r=null==e,o=null==t;if(null==n&&(o&&"boolean"==typeof e?(n=e,e=1):"boolean"==typeof t&&(n=t,o=!0)),r&&o&&(t=1,o=!1),e=+e||0,o?(t=e,e=0):t=+t||0,n||e%1||t%1){var i=Oa();return Ca(e+i*(t-e+ua("1e-"+((i+"").length-1))),t)}return Zt(e,t)}function li(e){return e=u(e),e&&e.charAt(0).toUpperCase()+e.slice(1)}function pi(e){return e=u(e),e&&e.replace(je,d).replace(Ne,"")}function fi(e,t,n){e=u(e),t+="";var r=e.length;return n=n===O?r:Ca(n<0?0:+n||0,r),n-=t.length,n>=0&&e.indexOf(t,n)==n}function di(e){return e=u(e),e&&Ee.test(e)?e.replace(_e,h):e}function hi(e){return e=u(e),e&&Re.test(e)?e.replace(Pe,g):e||"(?:)"}function gi(e,t,n){e=u(e),t=+t;var r=e.length;if(r>=t||!ba(t))return e;var o=(t-r)/2,i=va(o),a=ma(o);return n=Dn("",a,n),n.slice(0,i)+e+n}function mi(e,t,n){return(n?Jn(e,t,n):null==t)?t=0:t&&(t=+t),e=bi(e),Sa(e,t||(Ie.test(e)?16:10))}function yi(e,t){var n="";if(e=u(e),t=+t,t<1||!e||!ba(t))return n;do t%2&&(n+=e),t=va(t/2),e+=e;while(t);return n}function vi(e,t,n){return e=u(e),n=null==n?0:Ca(n<0?0:+n||0,e.length),e.lastIndexOf(t,n)==n}function _i(e,n,r){var o=t.templateSettings;r&&Jn(e,n,r)&&(n=r=O),e=u(e),n=mt(yt({},r||n),o,gt);var i,a,s=mt(yt({},n.imports),o.imports,gt),c=Us(s),l=en(s,c),p=0,f=n.interpolate||Fe,d="__p += '",h=Yi((n.escape||Fe).source+"|"+f.source+"|"+(f===we?Me:Fe).source+"|"+(n.evaluate||Fe).source+"|$","g"),g="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++Ge+"]")+"\n";e.replace(h,function(t,n,r,o,s,u){return r||(r=o),d+=e.slice(p,u).replace(Ve,m),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),p=u+t.length,t}),d+="';\n";var y=n.variable;y||(d="with (obj) {\n"+d+"\n}\n"),d=(a?d.replace(ge,""):d).replace(me,"$1").replace(ye,"$1;"),d="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Qs(function(){return Bi(c,g+"return "+d).apply(O,l)});if(v.source=d,Mo(v))throw v;return v}function bi(e,t,n){var r=e;return(e=u(e))?(n?Jn(r,t,n):null==t)?e.slice(x(e),C(e)+1):(t+="",e.slice(c(e,t),l(e,t)+1)):e}function Ei(e,t,n){var r=e;return e=u(e),e?(n?Jn(r,t,n):null==t)?e.slice(x(e)):e.slice(c(e,t+"")):e}function xi(e,t,n){var r=e;return e=u(e),e?(n?Jn(r,t,n):null==t)?e.slice(0,C(e)+1):e.slice(0,l(e,t+"")+1):e}function Ci(e,t,n){n&&Jn(e,t,n)&&(t=O);var r=j,o=F;if(null!=t)if(Lo(t)){var i="separator"in t?t.separator:i;r="length"in t?+t.length||0:r,o="omission"in t?u(t.omission):o}else r=+t||0;if(e=u(e),r>=e.length)return e;var a=r-o.length;if(a<1)return o;var s=e.slice(0,a);if(null==i)return s+o;if(Go(i)){if(e.slice(a).search(i)){var c,l,p=e.slice(0,a);for(i.global||(i=Yi(i.source,(De.exec(i)||"")+"g")),i.lastIndex=0;c=i.exec(p);)l=c.index;s=s.slice(0,null==l?a:l)}}else if(e.indexOf(i,a)!=a){var f=s.lastIndexOf(i);f>-1&&(s=s.slice(0,f))}return s+o}function wi(e){return e=u(e),e&&be.test(e)?e.replace(ve,w):e}function Si(e,t,n){return n&&Jn(e,t,n)&&(t=O),e=u(e),e.match(t||Ue)||[]}function Oi(e,t,n){return n&&Jn(e,t,n)&&(t=O),v(e)?Ri(e):bt(e,t)}function Ti(e){return function(){return e}}function Pi(e){return e}function Ri(e){return Vt(Et(e,!0))}function Ni(e,t){return Ut(e,Et(t,!0))}function Ai(e,t,n){if(null==n){var r=Lo(t),o=r?Us(t):O,i=o&&o.length?Dt(t,o):O;(i?i.length:r)||(i=!1,n=t,t=e,e=this)}i||(i=Dt(t,Us(t)));var a=!0,s=-1,u=Io(e),c=i.length;n===!1?a=!1:Lo(n)&&"chain"in n&&(a=n.chain);for(;++s<c;){var l=i[s],p=t[l];e[l]=p,u&&(e.prototype[l]=function(t){return function(){var n=this.__chain__;if(a||n){var r=e(this.__wrapped__),o=r.__actions__=et(this.__actions__);return o.push({func:t,args:arguments,thisArg:e}),r.__chain__=n,r}return t.apply(e,ct([this.value()],arguments))}}(p))}return e}function Mi(){return rt._=oa,this}function Di(){}function Ii(e){return er(e)?Ht(e):Bt(e)}function Li(e){return function(t){return It(e,fr(t),t+"")}}function ki(e,t,n){n&&Jn(e,t,n)&&(t=n=O),e=+e||0,n=null==n?1:+n||0,null==t?(t=e,e=0):t=+t||0;for(var r=-1,o=xa(ma((t-e)/(n||1)),0),i=zi(o);++r<o;)i[r]=e,e+=n;return i}function ji(e,t,n){if(e=va(e),e<1||!ba(e))return[];var r=-1,o=zi(Ca(e,Ra));for(t=an(t,n,1);++r<e;)r<Ra?o[r]=t(r):t(r);return o}function Fi(e){var t=++na;return u(e)+t}function Vi(e,t){return(+e||0)+(+t||0)}function Ui(e,t,n){return n&&Jn(e,t,n)&&(t=O),t=zn(t,n,3),1==t.length?dt(Rs(e)?e:lr(e),t):$t(e,t)}e=e?ot.defaults(rt.Object(),e,ot.pick(rt,ze)):rt;var zi=e.Array,Gi=e.Date,Hi=e.Error,Bi=e.Function,qi=e.Math,Zi=e.Number,Wi=e.Object,Yi=e.RegExp,Xi=e.String,Ki=e.TypeError,Qi=zi.prototype,$i=Wi.prototype,Ji=Xi.prototype,ea=Bi.prototype.toString,ta=$i.hasOwnProperty,na=0,ra=$i.toString,oa=rt._,ia=Yi("^"+ea.call(ta).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),aa=e.ArrayBuffer,sa=e.clearTimeout,ua=e.parseFloat,ca=qi.pow,la=$i.propertyIsEnumerable,pa=qn(e,"Set"),fa=e.setTimeout,da=Qi.splice,ha=e.Uint8Array,ga=qn(e,"WeakMap"),ma=qi.ceil,ya=qn(Wi,"create"),va=qi.floor,_a=qn(zi,"isArray"),ba=e.isFinite,Ea=qn(Wi,"keys"),xa=qi.max,Ca=qi.min,wa=qn(Gi,"now"),Sa=e.parseInt,Oa=qi.random,Ta=Zi.NEGATIVE_INFINITY,Pa=Zi.POSITIVE_INFINITY,Ra=4294967295,Na=Ra-1,Aa=Ra>>>1,Ma=9007199254740991,Da=ga&&new ga,Ia={};t.support={};t.templateSettings={escape:xe,evaluate:Ce,interpolate:we,variable:"",imports:{_:t}};var La=function(){function e(){}return function(t){if(Lo(t)){e.prototype=t;var n=new e;e.prototype=O}return n||{}}}(),ka=fn(At),ja=fn(Mt,!0),Fa=dn(),Va=dn(!0),Ua=Da?function(e,t){return Da.set(e,t),e}:Pi,za=Da?function(e){return Da.get(e)}:Di,Ga=Ht("length"),Ha=function(){var e=0,t=0;return function(n,r){var o=gs(),i=U-(o-t);if(t=o,i>0){if(++e>=V)return n}else e=0;return Ua(n,r)}}(),Ba=vo(function(e,t){return v(e)&&Qn(e)?Ct(e,Rt(t,!1,!0)):[]}),qa=xn(),Za=xn(!0),Wa=vo(function(e){for(var t=e.length,n=t,r=zi(p),o=Hn(),i=o==a,s=[];n--;){var u=e[n]=Qn(u=e[n])?u:[];r[n]=i&&u.length>=120?gn(n&&u):null}var c=e[0],l=-1,p=c?c.length:0,f=r[0];e:for(;++l<p;)if(u=c[l],(f?Qe(f,u):o(s,u,0))<0){for(var n=t;--n;){var d=r[n];if((d?Qe(d,u):o(e[n],u,0))<0)continue e}f&&f.push(u),s.push(u)}return s}),Ya=vo(function(e,t){t=Rt(t);var n=vt(e,t);return qt(e,t.sort(o)),n}),Xa=kn(),Ka=kn(!0),Qa=vo(function(e){return Jt(Rt(e,!1,!0))}),$a=vo(function(e,t){return Qn(e)?Ct(e,t):[]}),Ja=vo(jr),es=vo(function(e){var t=e.length,n=t>2?e[t-2]:O,r=t>1?e[t-1]:O;return t>2&&"function"==typeof n?t-=2:(n=t>1&&"function"==typeof r?(--t,r):O,r=O),e.length=t,Fr(e,n,r)}),ts=vo(function(e){return e=Rt(e),this.thru(function(t){return Je(Rs(t)?t:[pr(t)],e)})}),ns=vo(function(e,t){return vt(e,Rt(t))}),rs=ln(function(e,t,n){ta.call(e,n)?++e[n]:e[n]=1}),os=En(ka),is=En(ja,!0),as=Sn(tt,ka),ss=Sn(nt,ja),us=ln(function(e,t,n){ta.call(e,n)?e[n].push(t):e[n]=[t]}),cs=ln(function(e,t,n){e[n]=t}),ls=vo(function(e,t,n){var r=-1,o="function"==typeof t,i=er(t),a=Qn(e)?zi(e.length):[];return ka(e,function(e){var s=o?t:i&&null!=e?e[t]:O;a[++r]=s?s.apply(e,n):Kn(e,t,n)}),a}),ps=ln(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),fs=An(lt,ka),ds=An(pt,ja),hs=vo(function(e,t){if(null==e)return[];var n=t[2];return n&&Jn(t[0],t[1],n)&&(t.length=1),Qt(e,Rt(t),[])}),gs=wa||function(){return(new Gi).getTime()},ms=vo(function(e,t,n){var r=P;if(n.length){var o=b(n,ms.placeholder);r|=D}return jn(e,r,t,n,o)}),ys=vo(function(e,t){t=t.length?Rt(t):Qo(e);for(var n=-1,r=t.length;++n<r;){var o=t[n];e[o]=jn(e[o],P,e)}return e}),vs=vo(function(e,t,n){var r=P|R;if(n.length){var o=b(n,vs.placeholder);r|=D}return jn(t,r,e,n,o)}),_s=vn(A),bs=vn(M),Es=vo(function(e,t){return xt(e,1,t)}),xs=vo(function(e,t,n){return xt(e,t,n)}),Cs=wn(),ws=wn(!0),Ss=vo(function(e,t){if(t=Rt(t),"function"!=typeof e||!it(t,s))throw new Ki(B);var n=t.length;return vo(function(r){for(var o=Ca(r.length,n);o--;)r[o]=t[o](r[o]);return e.apply(this,r)})}),Os=Nn(D),Ts=Nn(I),Ps=vo(function(e,t){return jn(e,k,O,O,O,Rt(t))}),Rs=_a||function(e){return v(e)&&nr(e.length)&&ra.call(e)==W},Ns=pn(zt),As=pn(function(e,t,n){return n?mt(e,t,n):yt(e,t)}),Ms=_n(As,ht),Ds=_n(Ns,ir),Is=Cn(At),Ls=Cn(Mt),ks=On(Fa),js=On(Va),Fs=Tn(At),Vs=Tn(Mt),Us=Ea?function(e){var t=null==e?O:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&Qn(e)?cr(e):Lo(e)?Ea(e):[]}:cr,zs=Pn(!0),Gs=Pn(),Hs=vo(function(e,t){if(null==e)return{};if("function"!=typeof t[0]){var t=ut(Rt(t),Xi);return ar(e,Ct(ti(e),t))}var n=an(t[0],t[1],3);return sr(e,function(e,t,r){return!n(e,t,r)})}),Bs=vo(function(e,t){return null==e?{}:"function"==typeof t[0]?sr(e,an(t[0],t[1],3)):ar(e,Rt(t))}),qs=mn(function(e,t,n){return t=t.toLowerCase(),e+(n?t.charAt(0).toUpperCase()+t.slice(1):t)}),Zs=mn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ws=Rn(),Ys=Rn(!0),Xs=mn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Ks=mn(function(e,t,n){return e+(n?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))}),Qs=vo(function(e,t){try{return e.apply(O,t)}catch(e){return Mo(e)?e:new Hi(e)}}),$s=vo(function(e,t){return function(n){return Kn(n,e,t)}}),Js=vo(function(e,t){return function(n){return Kn(e,n,t)}}),eu=Ln("ceil"),tu=Ln("floor"),nu=bn(wo,Ta),ru=bn(Zo,Pa),ou=Ln("round");return t.prototype=n.prototype,r.prototype=La(n.prototype),r.prototype.constructor=r,_.prototype=La(n.prototype),_.prototype.constructor=_,qe.prototype.delete=Ze,qe.prototype.get=We,qe.prototype.has=Ye,qe.prototype.set=Xe,Ke.prototype.push=$e,go.Cache=qe,t.after=lo,t.ary=po,t.assign=As,t.at=ns,t.before=fo,t.bind=ms,t.bindAll=ys,t.bindKey=vs,t.callback=Oi,t.chain=zr,t.chunk=hr,t.compact=gr,t.constant=Ti,t.countBy=rs,t.create=Ko,t.curry=_s,t.curryRight=bs,t.debounce=ho,t.defaults=Ms,t.defaultsDeep=Ds,t.defer=Es,t.delay=xs,t.difference=Ba,t.drop=mr,t.dropRight=yr,t.dropRightWhile=vr,t.dropWhile=_r,t.fill=br,t.filter=Qr,t.flatten=xr,t.flattenDeep=Cr,t.flow=Cs,t.flowRight=ws,t.forEach=as,t.forEachRight=ss,t.forIn=ks,t.forInRight=js,t.forOwn=Fs,t.forOwnRight=Vs,t.functions=Qo,t.groupBy=us,t.indexBy=cs,t.initial=Sr,t.intersection=Wa,t.invert=ei,t.invoke=ls,t.keys=Us,t.keysIn=ti,t.map=eo,t.mapKeys=zs,t.mapValues=Gs,t.matches=Ri,t.matchesProperty=Ni,t.memoize=go,t.merge=Ns,t.method=$s,t.methodOf=Js,t.mixin=Ai,t.modArgs=Ss,t.negate=mo,t.omit=Hs,t.once=yo,t.pairs=ni,t.partial=Os,t.partialRight=Ts,t.partition=ps,t.pick=Bs,t.pluck=to,t.property=Ii,t.propertyOf=Li,t.pull=Pr,t.pullAt=Ya,t.range=ki,t.rearg=Ps,t.reject=no,t.remove=Rr,t.rest=Nr,t.restParam=vo,t.set=oi,t.shuffle=oo,t.slice=Ar,t.sortBy=so,t.sortByAll=hs,t.sortByOrder=uo,t.spread=_o,t.take=Mr,t.takeRight=Dr,t.takeRightWhile=Ir,t.takeWhile=Lr,t.tap=Gr,t.throttle=bo,t.thru=Hr,t.times=ji,t.toArray=Yo,t.toPlainObject=Xo,t.transform=ii,t.union=Qa,t.uniq=kr,t.unzip=jr,t.unzipWith=Fr,t.values=ai,t.valuesIn=si,t.where=co,t.without=$a,t.wrap=Eo,t.xor=Vr,t.zip=Ja,t.zipObject=Ur,t.zipWith=es,t.backflow=ws,t.collect=eo,t.compose=ws,t.each=as,t.eachRight=ss,t.extend=As,t.iteratee=Oi,t.methods=Qo,t.object=Ur,t.select=Qr,t.tail=Nr,t.unique=kr,Ai(t,t),t.add=Vi,t.attempt=Qs,t.camelCase=qs,t.capitalize=li,t.ceil=eu,t.clone=xo,t.cloneDeep=Co,t.deburr=pi,t.endsWith=fi,t.escape=di,t.escapeRegExp=hi,t.every=Kr,t.find=os,t.findIndex=qa,t.findKey=Is,t.findLast=is,t.findLastIndex=Za,t.findLastKey=Ls,t.findWhere=$r,t.first=Er,t.floor=tu,t.get=$o,t.gt=wo,t.gte=So,t.has=Jo,t.identity=Pi,t.includes=Jr,t.indexOf=wr,t.inRange=ui,t.isArguments=Oo,t.isArray=Rs,t.isBoolean=To,t.isDate=Po,t.isElement=Ro,t.isEmpty=No,t.isEqual=Ao,t.isError=Mo,t.isFinite=Do,t.isFunction=Io,t.isMatch=ko,t.isNaN=jo,t.isNative=Fo,t.isNull=Vo,t.isNumber=Uo,t.isObject=Lo,t.isPlainObject=zo,t.isRegExp=Go,t.isString=Ho,t.isTypedArray=Bo,t.isUndefined=qo,t.kebabCase=Zs,t.last=Or,t.lastIndexOf=Tr,t.lt=Zo,t.lte=Wo,t.max=nu,t.min=ru,t.noConflict=Mi,t.noop=Di,t.now=gs,t.pad=gi,t.padLeft=Ws,t.padRight=Ys,t.parseInt=mi,t.random=ci,t.reduce=fs,t.reduceRight=ds,t.repeat=yi,t.result=ri,t.round=ou,t.runInContext=S,t.size=io,t.snakeCase=Xs,t.some=ao,t.sortedIndex=Xa,t.sortedLastIndex=Ka,t.startCase=Ks,t.startsWith=vi,t.sum=Ui,t.template=_i,t.trim=bi,t.trimLeft=Ei,t.trimRight=xi,t.trunc=Ci,t.unescape=wi,t.uniqueId=Fi,t.words=Si,t.all=Kr,t.any=ao,t.contains=Jr,t.eq=Ao,t.detect=os,t.foldl=fs,t.foldr=ds,t.head=Er,t.include=Jr,t.inject=fs,Ai(t,function(){var e={};return At(t,function(n,r){t.prototype[r]||(e[r]=n)}),e}(),!1),t.sample=ro,t.prototype.sample=function(e){return this.__chain__||null!=e?this.thru(function(t){return ro(t,e)}):ro(this.value())},t.VERSION=T,tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){t[e].placeholder=t}),tt(["drop","take"],function(e,t){_.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new _(this);n=null==n?1:xa(va(n)||0,0);var o=this.clone();return r?o.__takeCount__=Ca(o.__takeCount__,n):o.__views__.push({size:n,type:e+(o.__dir__<0?"Right":"")}),o},_.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n!=H;_.prototype[e]=function(e,t){var o=this.clone();return o.__iteratees__.push({iteratee:zn(e,t,1),type:n}),o.__filtered__=o.__filtered__||r,o}}),tt(["first","last"],function(e,t){var n="take"+(t?"Right":"");_.prototype[e]=function(){return this[n](1).value()[0]}}),tt(["initial","rest"],function(e,t){var n="drop"+(t?"":"Right");_.prototype[e]=function(){return this.__filtered__?new _(this):this[n](1)}}),tt(["pluck","where"],function(e,t){var n=t?"filter":"map",r=t?Vt:Ii;_.prototype[e]=function(e){return this[n](r(e))}}),_.prototype.compact=function(){return this.filter(Pi)},_.prototype.reject=function(e,t){return e=zn(e,t,1),this.filter(function(t){return!e(t)})},_.prototype.slice=function(e,t){e=null==e?0:+e||0;var n=this;return n.__filtered__&&(e>0||t<0)?new _(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==O&&(t=+t||0,n=t<0?n.dropRight(-t):n.take(t-e)),n)},_.prototype.takeRightWhile=function(e,t){return this.reverse().takeWhile(e,t).reverse()},_.prototype.toArray=function(){return this.take(Pa)},At(_.prototype,function(e,n){var o=/^(?:filter|map|reject)|While$/.test(n),i=/^(?:first|last)$/.test(n),a=t[i?"take"+("last"==n?"Right":""):n];a&&(t.prototype[n]=function(){var t=i?[1]:arguments,n=this.__chain__,s=this.__wrapped__,u=!!this.__actions__.length,c=s instanceof _,l=t[0],p=c||Rs(s);p&&o&&"function"==typeof l&&1!=l.length&&(c=p=!1);var f=function(e){return i&&n?a(e,1)[0]:a.apply(O,ct([e],t))},d={func:Hr,args:[f],thisArg:O},h=c&&!u;if(i&&!n)return h?(s=s.clone(),s.__actions__.push(d),e.call(s)):a.call(O,this.value())[0];if(!i&&p){s=h?s:new _(this);var g=e.apply(s,t);return g.__actions__.push(d),new r(g,n)}return this.thru(f)})}),tt(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(e){var n=(/^(?:replace|split)$/.test(e)?Ji:Qi)[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:join|pop|replace|shift)$/.test(e);t.prototype[e]=function(){var e=arguments;return o&&!this.__chain__?n.apply(this.value(),e):this[r](function(t){return n.apply(t,e)})}}),At(_.prototype,function(e,n){var r=t[n];if(r){var o=r.name,i=Ia[o]||(Ia[o]=[]);i.push({name:n,func:r})}}),Ia[Mn(O,R).name]=[{name:"wrapper",func:O}],_.prototype.clone=$,_.prototype.reverse=ne,_.prototype.value=oe,t.prototype.chain=Br,t.prototype.commit=qr,t.prototype.concat=ts,t.prototype.plant=Zr,t.prototype.reverse=Wr,t.prototype.toString=Yr,t.prototype.run=t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=Xr,t.prototype.collect=t.prototype.map,t.prototype.head=t.prototype.first,t.prototype.select=t.prototype.filter,t.prototype.tail=t.prototype.rest,t}var O,T="3.10.1",P=1,R=2,N=4,A=8,M=16,D=32,I=64,L=128,k=256,j=30,F="...",V=150,U=16,z=200,G=1,H=2,B="Expected a function",q="__lodash_placeholder__",Z="[object Arguments]",W="[object Array]",Y="[object Boolean]",X="[object Date]",K="[object Error]",Q="[object Function]",$="[object Map]",J="[object Number]",ee="[object Object]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object WeakMap]",ie="[object ArrayBuffer]",ae="[object Float32Array]",se="[object Float64Array]",ue="[object Int8Array]",ce="[object Int16Array]",le="[object Int32Array]",pe="[object Uint8Array]",fe="[object Uint8ClampedArray]",de="[object Uint16Array]",he="[object Uint32Array]",ge=/\b__p \+= '';/g,me=/\b(__p \+=) '' \+/g,ye=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ve=/&(?:amp|lt|gt|quot|#39|#96);/g,_e=/[&<>"'`]/g,be=RegExp(ve.source),Ee=RegExp(_e.source),xe=/<%-([\s\S]+?)%>/g,Ce=/<%([\s\S]+?)%>/g,we=/<%=([\s\S]+?)%>/g,Se=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,Oe=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Pe=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,Re=RegExp(Pe.source),Ne=/[\u0300-\u036f\ufe20-\ufe23]/g,Ae=/\\(\\)?/g,Me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,De=/\w*$/,Ie=/^0[xX]/,Le=/^\[object .+?Constructor\]$/,ke=/^\d+$/,je=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Fe=/($^)/,Ve=/['\n\r\u2028\u2029\\]/g,Ue=function(){var e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",t="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(e+"+(?="+e+t+")|"+e+"?"+t+"|"+e+"+|[0-9]+","g")}(),ze=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Ge=-1,He={};He[ae]=He[se]=He[ue]=He[ce]=He[le]=He[pe]=He[fe]=He[de]=He[he]=!0,He[Z]=He[W]=He[ie]=He[Y]=He[X]=He[K]=He[Q]=He[$]=He[J]=He[ee]=He[te]=He[ne]=He[re]=He[oe]=!1;var Be={};Be[Z]=Be[W]=Be[ie]=Be[Y]=Be[X]=Be[ae]=Be[se]=Be[ue]=Be[ce]=Be[le]=Be[J]=Be[ee]=Be[te]=Be[re]=Be[pe]=Be[fe]=Be[de]=Be[he]=!0,Be[K]=Be[Q]=Be[$]=Be[ne]=Be[oe]=!1;var qe={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Ze={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},We={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Ye={function:!0,object:!0},Xe={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Ke={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qe=Ye[typeof r]&&r&&!r.nodeType&&r,$e=Ye[typeof n]&&n&&!n.nodeType&&n,Je=Qe&&$e&&"object"==typeof t&&t&&t.Object&&t,et=Ye[typeof self]&&self&&self.Object&&self,tt=Ye[typeof window]&&window&&window.Object&&window,nt=$e&&$e.exports===Qe&&Qe,rt=Je||tt!==(this&&this.window)&&tt||et||this,ot=S();"function"==typeof e&&"object"==typeof e.amd&&e.amd?(rt._=ot,e(function(){return ot})):Qe&&$e?nt?($e.exports=ot)._=ot:Qe._=ot:rt._=ot}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],187:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(r(this,e),!t||"string"!=typeof t)throw new Error("A string non-empty key is required");this._key=t,this._assignEntity=n.assignEntity;var o=n.idAttribute||"id";this._getId="function"==typeof o?o:function(e){return e[o]},this._idAttribute=o,this._meta=n.meta,this._defaults=n.defaults}return o(e,[{key:"getAssignEntity",value:function(){return this._assignEntity}},{key:"getKey",value:function(){return this._key}},{key:"getId",value:function(e){return this._getId(e)}},{key:"getIdAttribute",value:function(){return this._idAttribute}},{key:"getMeta",value:function(e){if(!e||"string"!=typeof e)throw new Error("A string non-empty property name is required");return this._meta&&this._meta[e]}},{key:"getDefaults",value:function(){return this._defaults}},{key:"define",value:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}}]),e}();n.default=i},{}],188:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=e("lodash/isObject"),s=r(a),u=e("./UnionSchema"),c=r(u),l=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(o(this,e),!(0,s.default)(t))throw new Error("ArraySchema requires item schema to be an object.");if(n.schemaAttribute){var r=n.schemaAttribute;this._itemSchema=new c.default(t,{schemaAttribute:r})}else this._itemSchema=t}return i(e,[{key:"getItemSchema",value:function(){return this._itemSchema}}]),e}();n.default=l},{"./UnionSchema":189,"lodash/isObject":266}],189:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=e("lodash/isObject"),s=r(a),u=function(){function e(t,n){if(o(this,e),!(0,s.default)(t))throw new Error("UnionSchema requires item schema to be an object.");if(!n||!n.schemaAttribute)throw new Error("UnionSchema requires schemaAttribute option.");this._itemSchema=t;var r=n.schemaAttribute;this._getSchema="function"==typeof r?r:function(e){return e[r]}}return i(e,[{key:"getItemSchema",value:function(){return this._itemSchema}},{key:"getSchemaKey",value:function(e){return this._getSchema(e)}}]),e}();n.default=u},{"lodash/isObject":266}],190:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){e[t]=n}function i(e,t,n,r){var i=r.assignEntity,a=void 0===i?o:i,s=t&&t.getDefaults&&t.getDefaults(),u=t&&t.getAssignEntity&&t.getAssignEntity(),c=(0,T.default)(s)?y({},s):{};for(var l in e)if(e.hasOwnProperty(l)){var p=f(e[l],t[l],n,r);a.call(null,c,l,p,e,t),u&&u.call(null,c,l,p,e,t)}return c}function a(e,t,n,r){return function(e){return f(e,t,n,r)}}function s(e,t,n,r){return function(o){var i=e.getSchemaKey(o),a=f(o,t[i],n,r);return{id:a,schema:i}}}function u(e,t,n,r){var o=t.getItemSchema(),i=a(t,o,n,r);return Array.isArray(e)?e.map(i):Object.keys(e).reduce(function(t,n){return t[n]=i(e[n]),t},{})}function c(e,t,n,r){var o=t.getItemSchema();return s(t,o,n,r)(e)}function l(e,t,n){for(var r in t)t.hasOwnProperty(r)&&(e.hasOwnProperty(r)&&!(0,S.default)(e[r],t[r])?console.warn("When merging two "+n+', found unequal data in their "'+r+'" values. Using the earlier value.',e[r],t[r]):e[r]=t[r])}function p(e,t,n,r){var o=r.mergeIntoEntity,a=void 0===o?l:o,s=t.getKey(),u=t.getId(e);n.hasOwnProperty(s)||(n[s]={}),n[s].hasOwnProperty(u)||(n[s][u]={});var c=n[s][u],p=i(e,t,n,r);return a(c,p,s),u}function f(e,t,n,r){return(0,T.default)(e)&&(0,T.default)(t)?t instanceof _.default?p(e,t,n,r):t instanceof E.default?u(e,t,n,r):t instanceof C.default?c(e,t,n,r):i(e,t,n,r):e}function d(e,t){return new E.default(e,t)}function h(e,t){return new E.default(e,t)}function g(e,t){return new C.default(e,t)}function m(e,t){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];if(!(0,T.default)(e))throw new Error("Normalize accepts an object or an array as its input.");if(!(0,T.default)(t)||Array.isArray(t))throw new Error("Normalize accepts an object for schema.");var r={},o=f(e,t,r,n);return{entities:r,result:o}}Object.defineProperty(n,"__esModule",{value:!0}),n.Schema=void 0;var y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n.arrayOf=d,n.valuesOf=h,n.unionOf=g,n.normalize=m;var v=e("./EntitySchema"),_=r(v),b=e("./IterableSchema"),E=r(b),x=e("./UnionSchema"),C=r(x),w=e("lodash/isEqual"),S=r(w),O=e("lodash/isObject"),T=r(O);n.Schema=_.default},{"./EntitySchema":187,"./IterableSchema":188,"./UnionSchema":189,"lodash/isEqual":263,"lodash/isObject":266}],191:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"DataView");t.exports=i},{"./_getNative":220,"./_root":248}],192:[function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=e("./_hashClear"),i=e("./_hashDelete"),a=e("./_hashGet"),s=e("./_hashHas"),u=e("./_hashSet");r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},{"./_hashClear":223,"./_hashDelete":224,"./_hashGet":225,"./_hashHas":226,"./_hashSet":227}],193:[function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=e("./_listCacheClear"),i=e("./_listCacheDelete"),a=e("./_listCacheGet"),s=e("./_listCacheHas"),u=e("./_listCacheSet");r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},{"./_listCacheClear":233,"./_listCacheDelete":234,"./_listCacheGet":235,"./_listCacheHas":236,"./_listCacheSet":237}],194:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"Map");t.exports=i},{"./_getNative":220,"./_root":248}],195:[function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=e("./_mapCacheClear"),i=e("./_mapCacheDelete"),a=e("./_mapCacheGet"),s=e("./_mapCacheHas"),u=e("./_mapCacheSet");r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},{"./_mapCacheClear":238,"./_mapCacheDelete":239,"./_mapCacheGet":240,"./_mapCacheHas":241,"./_mapCacheSet":242}],196:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"Promise");t.exports=i},{"./_getNative":220,"./_root":248}],197:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"Set");t.exports=i},{"./_getNative":220,"./_root":248}],198:[function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.__data__=new o;++t<n;)this.add(e[t])}var o=e("./_MapCache"),i=e("./_setCacheAdd"),a=e("./_setCacheHas");r.prototype.add=r.prototype.push=i,r.prototype.has=a,t.exports=r},{"./_MapCache":195,"./_setCacheAdd":249,"./_setCacheHas":250}],199:[function(e,t,n){function r(e){this.__data__=new o(e)}var o=e("./_ListCache"),i=e("./_stackClear"),a=e("./_stackDelete"),s=e("./_stackGet"),u=e("./_stackHas"),c=e("./_stackSet");r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=c,t.exports=r},{"./_ListCache":193,"./_stackClear":252,"./_stackDelete":253,"./_stackGet":254,"./_stackHas":255,"./_stackSet":256}],200:[function(e,t,n){var r=e("./_root"),o=r.Symbol;t.exports=o},{"./_root":248}],201:[function(e,t,n){var r=e("./_root"),o=r.Uint8Array;t.exports=o},{"./_root":248}],202:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"WeakMap");t.exports=i},{"./_getNative":220,"./_root":248}],203:[function(e,t,n){arguments[4][24][0].apply(n,arguments)},{"./_baseTimes":212,"./_isIndex":229,"./isArguments":259,"./isArray":260,dup:24}],204:[function(e,t,n){function r(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=r},{}],205:[function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}var o=e("./eq");t.exports=r},{"./eq":258}],206:[function(e,t,n){function r(e){return i.call(e);
|
9 |
-
}var o=Object.prototype,i=o.toString;t.exports=r},{}],207:[function(e,t,n){function r(e,t,n,s,u){return e===t||(null==e||null==t||!i(e)&&!a(t)?e!==e&&t!==t:o(e,t,r,n,s,u))}var o=e("./_baseIsEqualDeep"),i=e("./isObject"),a=e("./isObjectLike");t.exports=r},{"./_baseIsEqualDeep":208,"./isObject":266,"./isObjectLike":267}],208:[function(e,t,n){function r(e,t,n,r,m,v){var _=c(e),b=c(t),E=h,x=h;_||(E=u(e),E=E==d?g:E),b||(x=u(t),x=x==d?g:x);var C=E==g&&!l(e),w=x==g&&!l(t),S=E==x;if(S&&!C)return v||(v=new o),_||p(e)?i(e,t,n,r,m,v):a(e,t,E,n,r,m,v);if(!(m&f)){var O=C&&y.call(e,"__wrapped__"),T=w&&y.call(t,"__wrapped__");if(O||T){var P=O?e.value():e,R=T?t.value():t;return v||(v=new o),n(P,R,r,m,v)}}return!!S&&(v||(v=new o),s(e,t,n,r,m,v))}var o=e("./_Stack"),i=e("./_equalArrays"),a=e("./_equalByTag"),s=e("./_equalObjects"),u=e("./_getTag"),c=e("./isArray"),l=e("./_isHostObject"),p=e("./isTypedArray"),f=2,d="[object Arguments]",h="[object Array]",g="[object Object]",m=Object.prototype,y=m.hasOwnProperty;t.exports=r},{"./_Stack":199,"./_equalArrays":215,"./_equalByTag":216,"./_equalObjects":217,"./_getTag":221,"./_isHostObject":228,"./isArray":260,"./isTypedArray":268}],209:[function(e,t,n){function r(e){if(!s(e)||a(e))return!1;var t=o(e)||i(e)?g:l;return t.test(u(e))}var o=e("./isFunction"),i=e("./_isHostObject"),a=e("./_isMasked"),s=e("./isObject"),u=e("./_toSource"),c=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,p=Function.prototype,f=Object.prototype,d=p.toString,h=f.hasOwnProperty,g=RegExp("^"+d.call(h).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},{"./_isHostObject":228,"./_isMasked":231,"./_toSource":257,"./isFunction":264,"./isObject":266}],210:[function(e,t,n){function r(e){return i(e)&&o(e.length)&&!!N[M.call(e)]}var o=e("./isLength"),i=e("./isObjectLike"),a="[object Arguments]",s="[object Array]",u="[object Boolean]",c="[object Date]",l="[object Error]",p="[object Function]",f="[object Map]",d="[object Number]",h="[object Object]",g="[object RegExp]",m="[object Set]",y="[object String]",v="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",E="[object Float32Array]",x="[object Float64Array]",C="[object Int8Array]",w="[object Int16Array]",S="[object Int32Array]",O="[object Uint8Array]",T="[object Uint8ClampedArray]",P="[object Uint16Array]",R="[object Uint32Array]",N={};N[E]=N[x]=N[C]=N[w]=N[S]=N[O]=N[T]=N[P]=N[R]=!0,N[a]=N[s]=N[_]=N[u]=N[b]=N[c]=N[l]=N[p]=N[f]=N[d]=N[h]=N[g]=N[m]=N[y]=N[v]=!1;var A=Object.prototype,M=A.toString;t.exports=r},{"./isLength":265,"./isObjectLike":267}],211:[function(e,t,n){arguments[4][29][0].apply(n,arguments)},{"./_isPrototype":232,"./_nativeKeys":245,dup:29}],212:[function(e,t,n){arguments[4][30][0].apply(n,arguments)},{dup:30}],213:[function(e,t,n){function r(e){return function(t){return e(t)}}t.exports=r},{}],214:[function(e,t,n){var r=e("./_root"),o=r["__core-js_shared__"];t.exports=o},{"./_root":248}],215:[function(e,t,n){function r(e,t,n,r,u,c){var l=u&s,p=e.length,f=t.length;if(p!=f&&!(l&&f>p))return!1;var d=c.get(e);if(d&&c.get(t))return d==t;var h=-1,g=!0,m=u&a?new o:void 0;for(c.set(e,t),c.set(t,e);++h<p;){var y=e[h],v=t[h];if(r)var _=l?r(v,y,h,t,e,c):r(y,v,h,e,t,c);if(void 0!==_){if(_)continue;g=!1;break}if(m){if(!i(t,function(e,t){if(!m.has(t)&&(y===e||n(y,e,r,u,c)))return m.add(t)})){g=!1;break}}else if(y!==v&&!n(y,v,r,u,c)){g=!1;break}}return c.delete(e),c.delete(t),g}var o=e("./_SetCache"),i=e("./_arraySome"),a=1,s=2;t.exports=r},{"./_SetCache":198,"./_arraySome":204}],216:[function(e,t,n){function r(e,t,n,r,o,C,S){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!r(new i(e),new i(t)));case f:case d:case m:return a(+e,+t);case h:return e.name==t.name&&e.message==t.message;case y:case _:return e==t+"";case g:var O=u;case v:var T=C&p;if(O||(O=c),e.size!=t.size&&!T)return!1;var P=S.get(e);if(P)return P==t;C|=l,S.set(e,t);var R=s(O(e),O(t),r,o,C,S);return S.delete(e),R;case b:if(w)return w.call(e)==w.call(t)}return!1}var o=e("./_Symbol"),i=e("./_Uint8Array"),a=e("./eq"),s=e("./_equalArrays"),u=e("./_mapToArray"),c=e("./_setToArray"),l=1,p=2,f="[object Boolean]",d="[object Date]",h="[object Error]",g="[object Map]",m="[object Number]",y="[object RegExp]",v="[object Set]",_="[object String]",b="[object Symbol]",E="[object ArrayBuffer]",x="[object DataView]",C=o?o.prototype:void 0,w=C?C.valueOf:void 0;t.exports=r},{"./_Symbol":200,"./_Uint8Array":201,"./_equalArrays":215,"./_mapToArray":243,"./_setToArray":251,"./eq":258}],217:[function(e,t,n){function r(e,t,n,r,a,u){var c=a&i,l=o(e),p=l.length,f=o(t),d=f.length;if(p!=d&&!c)return!1;for(var h=p;h--;){var g=l[h];if(!(c?g in t:s.call(t,g)))return!1}var m=u.get(e);if(m&&u.get(t))return m==t;var y=!0;u.set(e,t),u.set(t,e);for(var v=c;++h<p;){g=l[h];var _=e[g],b=t[g];if(r)var E=c?r(b,_,g,t,e,u):r(_,b,g,e,t,u);if(!(void 0===E?_===b||n(_,b,r,a,u):E)){y=!1;break}v||(v="constructor"==g)}if(y&&!v){var x=e.constructor,C=t.constructor;x!=C&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof C&&C instanceof C)&&(y=!1)}return u.delete(e),u.delete(t),y}var o=e("./keys"),i=2,a=Object.prototype,s=a.hasOwnProperty;t.exports=r},{"./keys":269}],218:[function(e,t,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],219:[function(e,t,n){function r(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}var o=e("./_isKeyable");t.exports=r},{"./_isKeyable":230}],220:[function(e,t,n){function r(e,t){var n=i(e,t);return o(n)?n:void 0}var o=e("./_baseIsNative"),i=e("./_getValue");t.exports=r},{"./_baseIsNative":209,"./_getValue":222}],221:[function(e,t,n){var r=e("./_DataView"),o=e("./_Map"),i=e("./_Promise"),a=e("./_Set"),s=e("./_WeakMap"),u=e("./_baseGetTag"),c=e("./_toSource"),l="[object Map]",p="[object Object]",f="[object Promise]",d="[object Set]",h="[object WeakMap]",g="[object DataView]",m=Object.prototype,y=m.toString,v=c(r),_=c(o),b=c(i),E=c(a),x=c(s),C=u;(r&&C(new r(new ArrayBuffer(1)))!=g||o&&C(new o)!=l||i&&C(i.resolve())!=f||a&&C(new a)!=d||s&&C(new s)!=h)&&(C=function(e){var t=y.call(e),n=t==p?e.constructor:void 0,r=n?c(n):void 0;if(r)switch(r){case v:return g;case _:return l;case b:return f;case E:return d;case x:return h}return t}),t.exports=C},{"./_DataView":191,"./_Map":194,"./_Promise":196,"./_Set":197,"./_WeakMap":202,"./_baseGetTag":206,"./_toSource":257}],222:[function(e,t,n){function r(e,t){return null==e?void 0:e[t]}t.exports=r},{}],223:[function(e,t,n){function r(){this.__data__=o?o(null):{}}var o=e("./_nativeCreate");t.exports=r},{"./_nativeCreate":244}],224:[function(e,t,n){function r(e){return this.has(e)&&delete this.__data__[e]}t.exports=r},{}],225:[function(e,t,n){function r(e){var t=this.__data__;if(o){var n=t[e];return n===i?void 0:n}return s.call(t,e)?t[e]:void 0}var o=e("./_nativeCreate"),i="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;t.exports=r},{"./_nativeCreate":244}],226:[function(e,t,n){function r(e){var t=this.__data__;return o?void 0!==t[e]:a.call(t,e)}var o=e("./_nativeCreate"),i=Object.prototype,a=i.hasOwnProperty;t.exports=r},{"./_nativeCreate":244}],227:[function(e,t,n){function r(e,t){var n=this.__data__;return n[e]=o&&void 0===t?i:t,this}var o=e("./_nativeCreate"),i="__lodash_hash_undefined__";t.exports=r},{"./_nativeCreate":244}],228:[function(e,t,n){function r(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}t.exports=r},{}],229:[function(e,t,n){arguments[4][32][0].apply(n,arguments)},{dup:32}],230:[function(e,t,n){function r(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}t.exports=r},{}],231:[function(e,t,n){function r(e){return!!i&&i in e}var o=e("./_coreJsData"),i=function(){var e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();t.exports=r},{"./_coreJsData":214}],232:[function(e,t,n){arguments[4][33][0].apply(n,arguments)},{dup:33}],233:[function(e,t,n){function r(){this.__data__=[]}t.exports=r},{}],234:[function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():a.call(t,n,1),!0}var o=e("./_assocIndexOf"),i=Array.prototype,a=i.splice;t.exports=r},{"./_assocIndexOf":205}],235:[function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}var o=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":205}],236:[function(e,t,n){function r(e){return o(this.__data__,e)>-1}var o=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":205}],237:[function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}var o=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":205}],238:[function(e,t,n){function r(){this.__data__={hash:new o,map:new(a||i),string:new o}}var o=e("./_Hash"),i=e("./_ListCache"),a=e("./_Map");t.exports=r},{"./_Hash":192,"./_ListCache":193,"./_Map":194}],239:[function(e,t,n){function r(e){return o(this,e).delete(e)}var o=e("./_getMapData");t.exports=r},{"./_getMapData":219}],240:[function(e,t,n){function r(e){return o(this,e).get(e)}var o=e("./_getMapData");t.exports=r},{"./_getMapData":219}],241:[function(e,t,n){function r(e){return o(this,e).has(e)}var o=e("./_getMapData");t.exports=r},{"./_getMapData":219}],242:[function(e,t,n){function r(e,t){return o(this,e).set(e,t),this}var o=e("./_getMapData");t.exports=r},{"./_getMapData":219}],243:[function(e,t,n){function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=r},{}],244:[function(e,t,n){var r=e("./_getNative"),o=r(Object,"create");t.exports=o},{"./_getNative":220}],245:[function(e,t,n){arguments[4][34][0].apply(n,arguments)},{"./_overArg":247,dup:34}],246:[function(e,t,n){var r=e("./_freeGlobal"),o="object"==typeof n&&n&&!n.nodeType&&n,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o,s=a&&r.process,u=function(){try{return s&&s.binding("util")}catch(e){}}();t.exports=u},{"./_freeGlobal":218}],247:[function(e,t,n){arguments[4][35][0].apply(n,arguments)},{dup:35}],248:[function(e,t,n){var r=e("./_freeGlobal"),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},{"./_freeGlobal":218}],249:[function(e,t,n){function r(e){return this.__data__.set(e,o),this}var o="__lodash_hash_undefined__";t.exports=r},{}],250:[function(e,t,n){function r(e){return this.__data__.has(e)}t.exports=r},{}],251:[function(e,t,n){function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=r},{}],252:[function(e,t,n){function r(){this.__data__=new o}var o=e("./_ListCache");t.exports=r},{"./_ListCache":193}],253:[function(e,t,n){function r(e){return this.__data__.delete(e)}t.exports=r},{}],254:[function(e,t,n){function r(e){return this.__data__.get(e)}t.exports=r},{}],255:[function(e,t,n){function r(e){return this.__data__.has(e)}t.exports=r},{}],256:[function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length<s-1)return r.push([e,t]),this;n=this.__data__=new a(r)}return n.set(e,t),this}var o=e("./_ListCache"),i=e("./_Map"),a=e("./_MapCache"),s=200;t.exports=r},{"./_ListCache":193,"./_Map":194,"./_MapCache":195}],257:[function(e,t,n){function r(e){if(null!=e){try{return i.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var o=Function.prototype,i=o.toString;t.exports=r},{}],258:[function(e,t,n){function r(e,t){return e===t||e!==e&&t!==t}t.exports=r},{}],259:[function(e,t,n){arguments[4][37][0].apply(n,arguments)},{"./isArrayLikeObject":262,dup:37}],260:[function(e,t,n){arguments[4][38][0].apply(n,arguments)},{dup:38}],261:[function(e,t,n){arguments[4][39][0].apply(n,arguments)},{"./isFunction":264,"./isLength":265,dup:39}],262:[function(e,t,n){arguments[4][40][0].apply(n,arguments)},{"./isArrayLike":261,"./isObjectLike":267,dup:40}],263:[function(e,t,n){function r(e,t){return o(e,t)}var o=e("./_baseIsEqual");t.exports=r},{"./_baseIsEqual":207}],264:[function(e,t,n){arguments[4][41][0].apply(n,arguments)},{"./isObject":266,dup:41}],265:[function(e,t,n){arguments[4][42][0].apply(n,arguments)},{dup:42}],266:[function(e,t,n){arguments[4][43][0].apply(n,arguments)},{dup:43}],267:[function(e,t,n){arguments[4][44][0].apply(n,arguments)},{dup:44}],268:[function(e,t,n){var r=e("./_baseIsTypedArray"),o=e("./_baseUnary"),i=e("./_nodeUtil"),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},{"./_baseIsTypedArray":210,"./_baseUnary":213,"./_nodeUtil":246}],269:[function(e,t,n){arguments[4][47][0].apply(n,arguments)},{"./_arrayLikeKeys":203,"./_baseKeys":211,"./isArrayLike":261,dup:47}],270:[function(e,t,n){t.exports=e("react/lib/ReactCSSTransitionGroup")},{"react/lib/ReactCSSTransitionGroup":374}],271:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=e("c3"),u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype._updateC3=function(e){e.config.bindto=this._container,this._chart&&this._chart.destroy(),this._chart=s.generate(e.config)},t.prototype.componentDidMount=function(){this._updateC3(this.props)},t.prototype.componentWillReceiveProps=function(e){this._updateC3(e)},t.prototype.componentWillUnmount=function(){this._chart.destroy()},t.prototype.render=function(){var e=this;return a.createElement("div",{ref:function(t){return e._container=t}})},t}(a.Component);u.propTypes={config:a.PropTypes.object.isRequired},t.exports=u},{c3:272,react:509}],272:[function(t,n,r){!function(o){"use strict";function i(e){this.owner=e}function a(e,t){if(Object.create)t.prototype=Object.create(e.prototype);else{var n=function(){};n.prototype=e.prototype,t.prototype=new n}return t.prototype.constructor=t,t}function s(e){var t=this.internal=new u(this);t.loadConfig(e),t.beforeInit(e),t.init(),t.afterInit(e),function e(t,n,r){Object.keys(t).forEach(function(o){n[o]=t[o].bind(r),Object.keys(t[o]).length>0&&e(t[o],n[o],r)})}(p,this,this)}function u(e){var n=this;n.d3=o.d3?o.d3:"undefined"!=typeof t?t("d3"):void 0,n.api=e,n.config=n.getDefaultConfig(),n.data={},n.cache={},n.axes={}}function c(e){i.call(this,e)}function l(e,t){function n(e,t){e.attr("transform",function(e){return"translate("+Math.ceil(t(e)+b)+", 0)"})}function r(e,t){e.attr("transform",function(e){return"translate(0,"+Math.ceil(t(e))+")"})}function o(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function i(e){var t,n,r=[];if(e.ticks)return e.ticks.apply(e,d);for(n=e.domain(),t=Math.ceil(n[0]);t<n[1];t++)r.push(t);return r.length>0&&r[0]>0&&r.unshift(r[0]-(r[1]-r[0])),r}function a(){var e,n=g.copy();return t.isCategory&&(e=g.domain(),n.domain([e[0],e[1]-1])),n}function s(e){var t=f?f(e):e;return"undefined"!=typeof t?t:""}function u(e){if(N)return N;var t={h:11.5,w:5.5};return e.select("text").text(s).each(function(e){var n=this.getBoundingClientRect(),r=s(e),o=n.height,i=r?n.width/r.length:void 0;o&&i&&(t.h=o,t.w=i)}).text(""),N=t,t}function c(n){return t.withoutTransition?n:e.transition(n)}function l(f){f.each(function(){function f(e,n){function r(e,t){i=void 0;for(var s=1;s<t.length;s++)if(" "===t.charAt(s)&&(i=s),o=t.substr(0,s+1),a=Z.w*o.length,n<a)return r(e.concat(t.substr(0,i?i:s)),t.slice(i?i+1:s));return e.concat(t)}var o,i,a,u=s(e),c=[];return"[object Array]"===Object.prototype.toString.call(u)?u:((!n||n<=0)&&(n=X?95:t.isCategory?Math.ceil(A(M[1])-A(M[0]))-12:110),r(c,u+""))}function d(e,t){var n=Z.h;return 0===t&&(n="left"===m||"right"===m?-((W[e.index]-1)*(Z.h/2)-3):".71em"),n}function E(e){var t=g(e)+(h?0:b);return j[0]<t&&t<j[1]?y:0}function x(e){return e?e>0?"start":"end":"middle"}function C(e){return e?"rotate("+e+")":""}function w(e){return e?8*Math.sin(Math.PI*(e/180)):0}function S(e){return e?11.5-2.5*(e/15)*(e>0?1:-1):Y}var O,T,P,R=l.g=e.select(this),N=this.__chart__||g,A=this.__chart__=a(),M=_?_:i(A),D=R.selectAll(".tick").data(M,A),I=D.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),L=D.exit().remove(),k=c(D).style("opacity",1),j=g.rangeExtent?g.rangeExtent():o(g.range()),F=R.selectAll(".domain").data([0]),V=(F.enter().append("path").attr("class","domain"),c(F));I.append("line"),I.append("text");var U=I.select("line"),z=k.select("line"),G=I.select("text"),H=k.select("text");t.isCategory?(b=Math.ceil((A(1)-A(0))/2),T=h?0:b,P=h?b:0):b=T=0;var B,q,Z=u(R.select(".tick")),W=[],Y=Math.max(y,0)+v,X="left"===m||"right"===m;B=D.select("text"),q=B.selectAll("tspan").data(function(e,n){var r=t.tickMultiline?f(e,t.tickWidth):[].concat(s(e));return W[n]=r.length,r.map(function(e){return{index:n,splitted:e}})}),q.enter().append("tspan"),q.exit().remove(),q.text(function(e){return e.splitted});var K=t.tickTextRotate;switch(m){case"bottom":O=n,U.attr("y2",y),G.attr("y",Y),z.attr("x1",T).attr("x2",T).attr("y2",E),H.attr("x",0).attr("y",S(K)).style("text-anchor",x(K)).attr("transform",C(K)),q.attr("x",0).attr("dy",d).attr("dx",w(K)),V.attr("d","M"+j[0]+","+p+"V0H"+j[1]+"V"+p);break;case"top":O=n,U.attr("y2",-y),G.attr("y",-Y),z.attr("x2",0).attr("y2",-y),H.attr("x",0).attr("y",-Y),B.style("text-anchor","middle"),q.attr("x",0).attr("dy","0em"),V.attr("d","M"+j[0]+","+-p+"V0H"+j[1]+"V"+-p);break;case"left":O=r,U.attr("x2",-y),G.attr("x",-Y),z.attr("x2",-y).attr("y1",P).attr("y2",P),H.attr("x",-Y).attr("y",b),B.style("text-anchor","end"),q.attr("x",-Y).attr("dy",d),V.attr("d","M"+-p+","+j[0]+"H0V"+j[1]+"H"+-p);break;case"right":O=r,U.attr("x2",y),G.attr("x",Y),z.attr("x2",y).attr("y2",0),H.attr("x",Y).attr("y",0),B.style("text-anchor","start"),q.attr("x",Y).attr("dy",d),V.attr("d","M"+p+","+j[0]+"H0V"+j[1]+"H"+p)}if(A.rangeBand){var Q=A,$=Q.rangeBand()/2;N=A=function(e){return Q(e)+$}}else N.rangeBand?N=A:L.call(O,A);I.call(O,N),k.call(O,A)})}var p,f,d,h,g=e.scale.linear(),m="bottom",y=6,v=3,_=null,b=0,E=!0;return t=t||{},p=t.withOuterTick?6:0,l.scale=function(e){return arguments.length?(g=e,l):g},l.orient=function(e){return arguments.length?(m=e in{top:1,right:1,bottom:1,left:1}?e+"":"bottom",l):m},l.tickFormat=function(e){return arguments.length?(f=e,l):f},l.tickCentered=function(e){return arguments.length?(h=e,l):h},l.tickOffset=function(){return b},l.tickInterval=function(){var e,n;return t.isCategory?e=2*b:(n=l.g.select("path.domain").node().getTotalLength()-2*p,e=n/l.g.selectAll("line").size()),e===1/0?0:e},l.ticks=function(){return arguments.length?(d=arguments,l):d},l.tickCulling=function(e){return arguments.length?(E=e,l):E},l.tickValues=function(e){if("function"==typeof e)_=function(){return e(g.domain())};else{if(!arguments.length)return _;_=e}return l},l}var p,f,d,h={version:"0.4.11"};h.generate=function(e){return new s(e)},h.chart={fn:s.prototype,internal:{fn:u.prototype,axis:{fn:c.prototype}}},p=h.chart.fn,f=h.chart.internal.fn,d=h.chart.internal.axis.fn,f.beforeInit=function(){},f.afterInit=function(){},f.init=function(){var e=this,t=e.config;if(e.initParams(),t.data_url)e.convertUrlToData(t.data_url,t.data_mimeType,t.data_headers,t.data_keys,e.initWithData);else if(t.data_json)e.initWithData(e.convertJsonToData(t.data_json,t.data_keys));else if(t.data_rows)e.initWithData(e.convertRowsToData(t.data_rows));else{if(!t.data_columns)throw Error("url or json or rows or columns is required.");e.initWithData(e.convertColumnsToData(t.data_columns))}},f.initParams=function(){var e=this,t=e.d3,n=e.config;e.clipId="c3-"+ +new Date+"-clip",e.clipIdForXAxis=e.clipId+"-xaxis",e.clipIdForYAxis=e.clipId+"-yaxis",e.clipIdForGrid=e.clipId+"-grid",e.clipIdForSubchart=e.clipId+"-subchart",e.clipPath=e.getClipPath(e.clipId),e.clipPathForXAxis=e.getClipPath(e.clipIdForXAxis),e.clipPathForYAxis=e.getClipPath(e.clipIdForYAxis),e.clipPathForGrid=e.getClipPath(e.clipIdForGrid),e.clipPathForSubchart=e.getClipPath(e.clipIdForSubchart),e.dragStart=null,e.dragging=!1,e.flowing=!1,e.cancelClick=!1,e.mouseover=!1,e.transiting=!1,e.color=e.generateColor(),e.levelColor=e.generateLevelColor(),e.dataTimeFormat=n.data_xLocaltime?t.time.format:t.time.format.utc,e.axisTimeFormat=n.axis_x_localtime?t.time.format:t.time.format.utc,e.defaultAxisTimeFormat=e.axisTimeFormat.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%-m/%-d",function(e){return e.getDay()&&1!==e.getDate()}],["%-m/%-d",function(e){return 1!==e.getDate()}],["%-m/%-d",function(e){return e.getMonth()}],["%Y/%-m/%-d",function(){return!0}]]),e.hiddenTargetIds=[],e.hiddenLegendIds=[],e.focusedTargetIds=[],e.defocusedTargetIds=[],e.xOrient=n.axis_rotated?"left":"bottom",e.yOrient=n.axis_rotated?n.axis_y_inner?"top":"bottom":n.axis_y_inner?"right":"left",e.y2Orient=n.axis_rotated?n.axis_y2_inner?"bottom":"top":n.axis_y2_inner?"left":"right",e.subXOrient=n.axis_rotated?"left":"bottom",e.isLegendRight="right"===n.legend_position,e.isLegendInset="inset"===n.legend_position,e.isLegendTop="top-left"===n.legend_inset_anchor||"top-right"===n.legend_inset_anchor,e.isLegendLeft="top-left"===n.legend_inset_anchor||"bottom-left"===n.legend_inset_anchor,e.legendStep=0,e.legendItemWidth=0,e.legendItemHeight=0,e.currentMaxTickWidths={x:0,y:0,y2:0},e.rotated_padding_left=30,e.rotated_padding_right=n.axis_rotated&&!n.axis_x_show?0:30,e.rotated_padding_top=5,e.withoutFadeIn={},e.intervalForObserveInserted=void 0,e.axes.subx=t.selectAll([])},f.initChartElements=function(){this.initBar&&this.initBar(),this.initLine&&this.initLine(),this.initArc&&this.initArc(),this.initGauge&&this.initGauge(),this.initText&&this.initText()},f.initWithData=function(e){var t,n,r=this,o=r.d3,i=r.config,a=!0;r.axis=new c(r),r.initPie&&r.initPie(),r.initBrush&&r.initBrush(),r.initZoom&&r.initZoom(),i.bindto?"function"==typeof i.bindto.node?r.selectChart=i.bindto:r.selectChart=o.select(i.bindto):r.selectChart=o.selectAll([]),r.selectChart.empty()&&(r.selectChart=o.select(document.createElement("div")).style("opacity",0),r.observeInserted(r.selectChart),a=!1),r.selectChart.html("").classed("c3",!0),r.data.xs={},r.data.targets=r.convertDataToTargets(e),i.data_filter&&(r.data.targets=r.data.targets.filter(i.data_filter)),i.data_hide&&r.addHiddenTargetIds(i.data_hide===!0?r.mapToIds(r.data.targets):i.data_hide),i.legend_hide&&r.addHiddenLegendIds(i.legend_hide===!0?r.mapToIds(r.data.targets):i.legend_hide),r.hasType("gauge")&&(i.legend_show=!1),r.updateSizes(),r.updateScales(),r.x.domain(o.extent(r.getXDomain(r.data.targets))),r.y.domain(r.getYDomain(r.data.targets,"y")),r.y2.domain(r.getYDomain(r.data.targets,"y2")),r.subX.domain(r.x.domain()),r.subY.domain(r.y.domain()),r.subY2.domain(r.y2.domain()),r.orgXDomain=r.x.domain(),r.brush&&r.brush.scale(r.subX),i.zoom_enabled&&r.zoom.scale(r.x),r.svg=r.selectChart.append("svg").style("overflow","hidden").on("mouseenter",function(){return i.onmouseover.call(r)}).on("mouseleave",function(){return i.onmouseout.call(r)}),r.config.svg_classname&&r.svg.attr("class",r.config.svg_classname),t=r.svg.append("defs"),r.clipChart=r.appendClip(t,r.clipId),r.clipXAxis=r.appendClip(t,r.clipIdForXAxis),r.clipYAxis=r.appendClip(t,r.clipIdForYAxis),r.clipGrid=r.appendClip(t,r.clipIdForGrid),r.clipSubchart=r.appendClip(t,r.clipIdForSubchart),r.updateSvgSize(),n=r.main=r.svg.append("g").attr("transform",r.getTranslate("main")),r.initSubchart&&r.initSubchart(),r.initTooltip&&r.initTooltip(),r.initLegend&&r.initLegend(),r.initTitle&&r.initTitle(),n.append("text").attr("class",g.text+" "+g.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),r.initRegion(),r.initGrid(),n.append("g").attr("clip-path",r.clipPath).attr("class",g.chart),i.grid_lines_front&&r.initGridLines(),r.initEventRect(),r.initChartElements(),n.insert("rect",i.zoom_privileged?null:"g."+g.regions).attr("class",g.zoomRect).attr("width",r.width).attr("height",r.height).style("opacity",0).on("dblclick.zoom",null),i.axis_x_extent&&r.brush.extent(r.getDefaultExtent()),r.axis.init(),r.updateTargets(r.data.targets),a&&(r.updateDimension(),r.config.oninit.call(r),r.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1})),r.bindResize(),r.api.element=r.selectChart.node()},f.smoothLines=function(e,t){var n=this;"grid"===t&&e.each(function(){var e=n.d3.select(this),t=e.attr("x1"),r=e.attr("x2"),o=e.attr("y1"),i=e.attr("y2");e.attr({x1:Math.ceil(t),x2:Math.ceil(r),y1:Math.ceil(o),y2:Math.ceil(i)})})},f.updateSizes=function(){var e=this,t=e.config,n=e.legend?e.getLegendHeight():0,r=e.legend?e.getLegendWidth():0,o=e.isLegendRight||e.isLegendInset?0:n,i=e.hasArcType(),a=t.axis_rotated||i?0:e.getHorizontalAxisHeight("x"),s=t.subchart_show&&!i?t.subchart_size_height+a:0;e.currentWidth=e.getCurrentWidth(),e.currentHeight=e.getCurrentHeight(),e.margin=t.axis_rotated?{top:e.getHorizontalAxisHeight("y2")+e.getCurrentPaddingTop(),right:i?0:e.getCurrentPaddingRight(),bottom:e.getHorizontalAxisHeight("y")+o+e.getCurrentPaddingBottom(),left:s+(i?0:e.getCurrentPaddingLeft())}:{top:4+e.getCurrentPaddingTop(),right:i?0:e.getCurrentPaddingRight(),bottom:a+s+o+e.getCurrentPaddingBottom(),left:i?0:e.getCurrentPaddingLeft()},e.margin2=t.axis_rotated?{top:e.margin.top,right:NaN,bottom:20+o,left:e.rotated_padding_left}:{top:e.currentHeight-s-o,right:NaN,bottom:a+o,left:e.margin.left},e.margin3={top:0,right:NaN,bottom:0,left:0},e.updateSizeForLegend&&e.updateSizeForLegend(n,r),e.width=e.currentWidth-e.margin.left-e.margin.right,e.height=e.currentHeight-e.margin.top-e.margin.bottom,e.width<0&&(e.width=0),e.height<0&&(e.height=0),e.width2=t.axis_rotated?e.margin.left-e.rotated_padding_left-e.rotated_padding_right:e.width,e.height2=t.axis_rotated?e.height:e.currentHeight-e.margin2.top-e.margin2.bottom,e.width2<0&&(e.width2=0),e.height2<0&&(e.height2=0),e.arcWidth=e.width-(e.isLegendRight?r+10:0),e.arcHeight=e.height-(e.isLegendRight?0:10),e.hasType("gauge")&&!t.gauge_fullCircle&&(e.arcHeight+=e.height-e.getGaugeLabelHeight()),e.updateRadius&&e.updateRadius(),e.isLegendRight&&i&&(e.margin3.left=e.arcWidth/2+1.1*e.radiusExpanded)},f.updateTargets=function(e){var t=this;t.updateTargetsForText(e),t.updateTargetsForBar(e),t.updateTargetsForLine(e),t.hasArcType()&&t.updateTargetsForArc&&t.updateTargetsForArc(e),t.updateTargetsForSubchart&&t.updateTargetsForSubchart(e),t.showTargets()},f.showTargets=function(){var e=this;e.svg.selectAll("."+g.target).filter(function(t){return e.isTargetToShow(t.id)}).transition().duration(e.config.transition_duration).style("opacity",1)},f.redraw=function(e,t){var n,r,o,i,a,s,u,c,l,p,f,d,h,m,y,v,_,b,E,x,C,w,S,T,P,R,N,A,M,D=this,I=D.main,L=D.d3,k=D.config,j=D.getShapeIndices(D.isAreaType),F=D.getShapeIndices(D.isBarType),V=D.getShapeIndices(D.isLineType),U=D.hasArcType(),z=D.filterTargetsToShow(D.data.targets),G=D.xv.bind(D);if(e=e||{},n=O(e,"withY",!0),r=O(e,"withSubchart",!0),o=O(e,"withTransition",!0),s=O(e,"withTransform",!1),u=O(e,"withUpdateXDomain",!1),c=O(e,"withUpdateOrgXDomain",!1),l=O(e,"withTrimXDomain",!0),h=O(e,"withUpdateXAxis",u),p=O(e,"withLegend",!1),f=O(e,"withEventRect",!0),d=O(e,"withDimension",!0),i=O(e,"withTransitionForExit",o),a=O(e,"withTransitionForAxis",o),E=o?k.transition_duration:0,x=i?E:0,C=a?E:0,t=t||D.axis.generateTransitions(C),p&&k.legend_show?D.updateLegend(D.mapToIds(D.data.targets),e,t):d&&D.updateDimension(!0),D.isCategorized()&&0===z.length&&D.x.domain([0,D.axes.x.selectAll(".tick").size()]),z.length?(D.updateXDomain(z,u,c,l),k.axis_x_tick_values||(T=D.axis.updateXAxisTickValues(z))):(D.xAxis.tickValues([]),D.subXAxis.tickValues([])),k.zoom_rescale&&!e.flow&&(N=D.x.orgDomain()),D.y.domain(D.getYDomain(z,"y",N)),D.y2.domain(D.getYDomain(z,"y2",N)),!k.axis_y_tick_values&&k.axis_y_tick_count&&D.yAxis.tickValues(D.axis.generateTickValues(D.y.domain(),k.axis_y_tick_count)),!k.axis_y2_tick_values&&k.axis_y2_tick_count&&D.y2Axis.tickValues(D.axis.generateTickValues(D.y2.domain(),k.axis_y2_tick_count)),D.axis.redraw(t,U),D.axis.updateLabels(o),(u||h)&&z.length)if(k.axis_x_tick_culling&&T){for(P=1;P<T.length;P++)if(T.length/P<k.axis_x_tick_culling_max){R=P;break}D.svg.selectAll("."+g.axisX+" .tick text").each(function(e){var t=T.indexOf(e);t>=0&&L.select(this).style("display",t%R?"none":"block")})}else D.svg.selectAll("."+g.axisX+" .tick text").style("display","block");m=D.generateDrawArea?D.generateDrawArea(j,!1):void 0,y=D.generateDrawBar?D.generateDrawBar(F):void 0,v=D.generateDrawLine?D.generateDrawLine(V,!1):void 0,_=D.generateXYForText(j,F,V,!0),b=D.generateXYForText(j,F,V,!1),n&&(D.subY.domain(D.getYDomain(z,"y")),D.subY2.domain(D.getYDomain(z,"y2"))),D.updateXgridFocus(),I.select("text."+g.text+"."+g.empty).attr("x",D.width/2).attr("y",D.height/2).text(k.data_empty_label_text).transition().style("opacity",z.length?0:1),D.updateGrid(E),D.updateRegion(E),D.updateBar(x),D.updateLine(x),D.updateArea(x),D.updateCircle(),D.hasDataLabel()&&D.updateText(x),D.redrawTitle&&D.redrawTitle(),D.redrawArc&&D.redrawArc(E,x,s),D.redrawSubchart&&D.redrawSubchart(r,t,E,x,j,F,V),I.selectAll("."+g.selectedCircles).filter(D.isBarType.bind(D)).selectAll("circle").remove(),k.interaction_enabled&&!e.flow&&f&&(D.redrawEventRect(),D.updateZoom&&D.updateZoom()),D.updateCircleY(),A=(D.config.axis_rotated?D.circleY:D.circleX).bind(D),M=(D.config.axis_rotated?D.circleX:D.circleY).bind(D),e.flow&&(S=D.generateFlow({targets:z,flow:e.flow,duration:e.flow.duration,drawBar:y,drawLine:v,drawArea:m,cx:A,cy:M,xv:G,xForText:_,yForText:b})),(E||S)&&D.isTabVisible()?L.transition().duration(E).each(function(){var t=[];[D.redrawBar(y,!0),D.redrawLine(v,!0),D.redrawArea(m,!0),D.redrawCircle(A,M,!0),D.redrawText(_,b,e.flow,!0),D.redrawRegion(!0),D.redrawGrid(!0)].forEach(function(e){e.forEach(function(e){t.push(e)})}),w=D.generateWait(),t.forEach(function(e){w.add(e)})}).call(w,function(){S&&S(),k.onrendered&&k.onrendered.call(D)}):(D.redrawBar(y),D.redrawLine(v),D.redrawArea(m),D.redrawCircle(A,M),D.redrawText(_,b,e.flow),D.redrawRegion(),D.redrawGrid(),k.onrendered&&k.onrendered.call(D)),D.mapToIds(D.data.targets).forEach(function(e){D.withoutFadeIn[e]=!0})},f.updateAndRedraw=function(e){var t,n=this,r=n.config;e=e||{},e.withTransition=O(e,"withTransition",!0),e.withTransform=O(e,"withTransform",!1),e.withLegend=O(e,"withLegend",!1),e.withUpdateXDomain=!0,e.withUpdateOrgXDomain=!0,e.withTransitionForExit=!1,e.withTransitionForTransform=O(e,"withTransitionForTransform",e.withTransition),n.updateSizes(),e.withLegend&&r.legend_show||(t=n.axis.generateTransitions(e.withTransitionForAxis?r.transition_duration:0),n.updateScales(),n.updateSvgSize(),n.transformAll(e.withTransitionForTransform,t)),n.redraw(e,t)},f.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},f.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},f.isCategorized=function(){return this.config.axis_x_type.indexOf("categor")>=0},f.isCustomX=function(){var e=this,t=e.config;return!e.isTimeSeries()&&(t.data_x||S(t.data_xs))},f.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},f.getTranslate=function(e){var t,n,r=this,o=r.config;return"main"===e?(t=x(r.margin.left),n=x(r.margin.top)):"context"===e?(t=x(r.margin2.left),n=x(r.margin2.top)):"legend"===e?(t=r.margin3.left,
|
10 |
-
n=r.margin3.top):"x"===e?(t=0,n=o.axis_rotated?0:r.height):"y"===e?(t=0,n=o.axis_rotated?r.height:0):"y2"===e?(t=o.axis_rotated?0:r.width,n=o.axis_rotated?1:0):"subx"===e?(t=0,n=o.axis_rotated?0:r.height2):"arc"===e&&(t=r.arcWidth/2,n=r.arcHeight/2),"translate("+t+","+n+")"},f.initialOpacity=function(e){return null!==e.value&&this.withoutFadeIn[e.id]?1:0},f.initialOpacityForCircle=function(e){return null!==e.value&&this.withoutFadeIn[e.id]?this.opacityForCircle(e):0},f.opacityForCircle=function(e){var t=this.config.point_show?1:0;return m(e.value)?this.isScatterType(e)?.5:t:0},f.opacityForText=function(){return this.hasDataLabel()?1:0},f.xx=function(e){return e?this.x(e.x):null},f.xv=function(e){var t=this,n=e.value;return t.isTimeSeries()?n=t.parseDate(e.value):t.isCategorized()&&"string"==typeof e.value&&(n=t.config.axis_x_categories.indexOf(e.value)),Math.ceil(t.x(n))},f.yv=function(e){var t=this,n=e.axis&&"y2"===e.axis?t.y2:t.y;return Math.ceil(n(e.value))},f.subxx=function(e){return e?this.subX(e.x):null},f.transformMain=function(e,t){var n,r,o,i=this;t&&t.axisX?n=t.axisX:(n=i.main.select("."+g.axisX),e&&(n=n.transition())),t&&t.axisY?r=t.axisY:(r=i.main.select("."+g.axisY),e&&(r=r.transition())),t&&t.axisY2?o=t.axisY2:(o=i.main.select("."+g.axisY2),e&&(o=o.transition())),(e?i.main.transition():i.main).attr("transform",i.getTranslate("main")),n.attr("transform",i.getTranslate("x")),r.attr("transform",i.getTranslate("y")),o.attr("transform",i.getTranslate("y2")),i.main.select("."+g.chartArcs).attr("transform",i.getTranslate("arc"))},f.transformAll=function(e,t){var n=this;n.transformMain(e,t),n.config.subchart_show&&n.transformContext(e,t),n.legend&&n.transformLegend(e)},f.updateSvgSize=function(){var e=this,t=e.svg.select(".c3-brush .background");e.svg.attr("width",e.currentWidth).attr("height",e.currentHeight),e.svg.selectAll(["#"+e.clipId,"#"+e.clipIdForGrid]).select("rect").attr("width",e.width).attr("height",e.height),e.svg.select("#"+e.clipIdForXAxis).select("rect").attr("x",e.getXAxisClipX.bind(e)).attr("y",e.getXAxisClipY.bind(e)).attr("width",e.getXAxisClipWidth.bind(e)).attr("height",e.getXAxisClipHeight.bind(e)),e.svg.select("#"+e.clipIdForYAxis).select("rect").attr("x",e.getYAxisClipX.bind(e)).attr("y",e.getYAxisClipY.bind(e)).attr("width",e.getYAxisClipWidth.bind(e)).attr("height",e.getYAxisClipHeight.bind(e)),e.svg.select("#"+e.clipIdForSubchart).select("rect").attr("width",e.width).attr("height",t.size()?t.attr("height"):0),e.svg.select("."+g.zoomRect).attr("width",e.width).attr("height",e.height),e.selectChart.style("max-height",e.currentHeight+"px")},f.updateDimension=function(e){var t=this;e||(t.config.axis_rotated?(t.axes.x.call(t.xAxis),t.axes.subx.call(t.subXAxis)):(t.axes.y.call(t.yAxis),t.axes.y2.call(t.y2Axis))),t.updateSizes(),t.updateScales(),t.updateSvgSize(),t.transformAll(!1)},f.observeInserted=function(e){var t,n=this;return"undefined"==typeof MutationObserver?void o.console.error("MutationObserver not defined."):(t=new MutationObserver(function(r){r.forEach(function(r){"childList"===r.type&&r.previousSibling&&(t.disconnect(),n.intervalForObserveInserted=o.setInterval(function(){e.node().parentNode&&(o.clearInterval(n.intervalForObserveInserted),n.updateDimension(),n.brush&&n.brush.update(),n.config.oninit.call(n),n.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),e.transition().style("opacity",1))},10))})}),void t.observe(e.node(),{attributes:!0,childList:!0,characterData:!0}))},f.bindResize=function(){var e=this,t=e.config;if(e.resizeFunction=e.generateResize(),e.resizeFunction.add(function(){t.onresize.call(e)}),t.resize_auto&&e.resizeFunction.add(function(){void 0!==e.resizeTimeout&&o.clearTimeout(e.resizeTimeout),e.resizeTimeout=o.setTimeout(function(){delete e.resizeTimeout,e.api.flush()},100)}),e.resizeFunction.add(function(){t.onresized.call(e)}),o.attachEvent)o.attachEvent("onresize",e.resizeFunction);else if(o.addEventListener)o.addEventListener("resize",e.resizeFunction,!1);else{var n=o.onresize;n?n.add&&n.remove||(n=e.generateResize(),n.add(o.onresize)):n=e.generateResize(),n.add(e.resizeFunction),o.onresize=n}},f.generateResize=function(){function e(){t.forEach(function(e){e()})}var t=[];return e.add=function(e){t.push(e)},e.remove=function(e){for(var n=0;n<t.length;n++)if(t[n]===e){t.splice(n,1);break}},e},f.endall=function(e,t){var n=0;e.each(function(){++n}).each("end",function(){--n||t.apply(this,arguments)})},f.generateWait=function(){var e=[],t=function(t,n){var r=setInterval(function(){var t=0;e.forEach(function(e){if(e.empty())return void(t+=1);try{e.transition()}catch(e){t+=1}}),t===e.length&&(clearInterval(r),n&&n())},10)};return t.add=function(t){e.push(t)},t},f.parseDate=function(e){var t,n=this;return e instanceof Date?t=e:"string"==typeof e?t=n.dataTimeFormat(n.config.data_xFormat).parse(e):"number"!=typeof e||isNaN(e)||(t=new Date((+e))),t&&!isNaN(+t)||o.console.error("Failed to parse x '"+e+"' to Date object"),t},f.isTabVisible=function(){var e;return"undefined"!=typeof document.hidden?e="hidden":"undefined"!=typeof document.mozHidden?e="mozHidden":"undefined"!=typeof document.msHidden?e="msHidden":"undefined"!=typeof document.webkitHidden&&(e="webkitHidden"),!document[e]},f.getDefaultConfig=function(){var e={bindto:"#chart",svg_classname:void 0,size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,zoom_enabled:!1,zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:function(){},zoom_onzoomstart:function(){},zoom_onzoomend:function(){},zoom_x_min:void 0,zoom_x_max:void 0,interaction_brighten:!0,interaction_enabled:!0,onmouseover:function(){},onmouseout:function(){},onresize:function(){},onresized:function(){},oninit:function(){},onrendered:function(){},transition_duration:350,data_x:void 0,data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_idConverter:function(e){return e},data_names:{},data_classes:{},data_groups:[],data_axes:{},data_type:void 0,data_types:{},data_labels:{},data_order:"desc",data_regions:{},data_color:void 0,data_colors:{},data_hide:!1,data_filter:void 0,data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onclick:function(){},data_onmouseover:function(){},data_onmouseout:function(){},data_onselected:function(){},data_onunselected:function(){},data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:void 0,data_keys:void 0,data_empty_label_text:"",subchart_show:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_onbrush:function(){},color_pattern:[],color_threshold:{},legend_show:!0,legend_hide:!1,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onmouseover:void 0,legend_item_onmouseout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,axis_rotated:!1,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_y_show:!0,axis_y_type:void 0,axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:void 0,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_time_value:void 0,axis_y_tick_time_interval:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y2_show:!1,axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:void 0,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_count:void 0,axis_y2_padding:{},axis_y2_default:void 0,grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_show:!0,grid_lines_front:!0,point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_select_r:void 0,line_connectNull:!1,line_step_type:"step",bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0,area_zerobased:!0,area_above:!1,pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_duration:50,gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_format:void 0,gauge_min:0,gauge_max:100,gauge_startingAngle:-1*Math.PI/2,gauge_units:void 0,gauge_width:void 0,gauge_expand:{},gauge_expand_duration:50,donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_duration:50,spline_interpolation_type:"cardinal",regions:[],tooltip_show:!0,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:function(e,t,n,r){return this.getTooltipContent?this.getTooltipContent(e,t,n,r):""},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_onshow:function(){},tooltip_onhide:function(){},title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"top-center"};return Object.keys(this.additionalConfig).forEach(function(t){e[t]=this.additionalConfig[t]},this),e},f.additionalConfig={},f.loadConfig=function(e){function t(){var e=r.shift();return e&&n&&"object"==typeof n&&e in n?(n=n[e],t()):e?void 0:n}var n,r,o,i=this.config;Object.keys(i).forEach(function(a){n=e,r=a.split("_"),o=t(),b(o)&&(i[a]=o)})},f.getScale=function(e,t,n){return(n?this.d3.time.scale():this.d3.scale.linear()).range([e,t])},f.getX=function(e,t,n,r){var o,i=this,a=i.getScale(e,t,i.isTimeSeries()),s=n?a.domain(n):a;i.isCategorized()?(r=r||function(){return 0},a=function(e,t){var n=s(e)+r(e);return t?n:Math.ceil(n)}):a=function(e,t){var n=s(e);return t?n:Math.ceil(n)};for(o in s)a[o]=s[o];return a.orgDomain=function(){return s.domain()},i.isCategorized()&&(a.domain=function(e){return arguments.length?(s.domain(e),a):(e=this.orgDomain(),[e[0],e[1]+1])}),a},f.getY=function(e,t,n){var r=this.getScale(e,t,this.isTimeSeriesY());return n&&r.domain(n),r},f.getYScale=function(e){return"y2"===this.axis.getId(e)?this.y2:this.y},f.getSubYScale=function(e){return"y2"===this.axis.getId(e)?this.subY2:this.subY},f.updateScales=function(){var e=this,t=e.config,n=!e.x;e.xMin=t.axis_rotated?1:0,e.xMax=t.axis_rotated?e.height:e.width,e.yMin=t.axis_rotated?0:e.height,e.yMax=t.axis_rotated?e.width:1,e.subXMin=e.xMin,e.subXMax=e.xMax,e.subYMin=t.axis_rotated?0:e.height2,e.subYMax=t.axis_rotated?e.width2:1,e.x=e.getX(e.xMin,e.xMax,n?void 0:e.x.orgDomain(),function(){return e.xAxis.tickOffset()}),e.y=e.getY(e.yMin,e.yMax,n?t.axis_y_default:e.y.domain()),e.y2=e.getY(e.yMin,e.yMax,n?t.axis_y2_default:e.y2.domain()),e.subX=e.getX(e.xMin,e.xMax,e.orgXDomain,function(t){return t%1?0:e.subXAxis.tickOffset()}),e.subY=e.getY(e.subYMin,e.subYMax,n?t.axis_y_default:e.subY.domain()),e.subY2=e.getY(e.subYMin,e.subYMax,n?t.axis_y2_default:e.subY2.domain()),e.xAxisTickFormat=e.axis.getXAxisTickFormat(),e.xAxisTickValues=e.axis.getXAxisTickValues(),e.yAxisTickValues=e.axis.getYAxisTickValues(),e.y2AxisTickValues=e.axis.getY2AxisTickValues(),e.xAxis=e.axis.getXAxis(e.x,e.xOrient,e.xAxisTickFormat,e.xAxisTickValues,t.axis_x_tick_outer),e.subXAxis=e.axis.getXAxis(e.subX,e.subXOrient,e.xAxisTickFormat,e.xAxisTickValues,t.axis_x_tick_outer),e.yAxis=e.axis.getYAxis(e.y,e.yOrient,t.axis_y_tick_format,e.yAxisTickValues,t.axis_y_tick_outer),e.y2Axis=e.axis.getYAxis(e.y2,e.y2Orient,t.axis_y2_tick_format,e.y2AxisTickValues,t.axis_y2_tick_outer),n||(e.brush&&e.brush.scale(e.subX),t.zoom_enabled&&e.zoom.scale(e.x)),e.updateArc&&e.updateArc()},f.getYDomainMin=function(e){var t,n,r,o,i,a,s=this,u=s.config,c=s.mapToIds(e),l=s.getValuesAsIdKeyed(e);if(u.data_groups.length>0)for(a=s.hasNegativeValueInTargets(e),t=0;t<u.data_groups.length;t++)if(o=u.data_groups[t].filter(function(e){return c.indexOf(e)>=0}),0!==o.length)for(r=o[0],a&&l[r]&&l[r].forEach(function(e,t){l[r][t]=e<0?e:0}),n=1;n<o.length;n++)i=o[n],l[i]&&l[i].forEach(function(e,t){s.axis.getId(i)!==s.axis.getId(r)||!l[r]||a&&+e>0||(l[r][t]+=+e)});return s.d3.min(Object.keys(l).map(function(e){return s.d3.min(l[e])}))},f.getYDomainMax=function(e){var t,n,r,o,i,a,s=this,u=s.config,c=s.mapToIds(e),l=s.getValuesAsIdKeyed(e);if(u.data_groups.length>0)for(a=s.hasPositiveValueInTargets(e),t=0;t<u.data_groups.length;t++)if(o=u.data_groups[t].filter(function(e){return c.indexOf(e)>=0}),0!==o.length)for(r=o[0],a&&l[r]&&l[r].forEach(function(e,t){l[r][t]=e>0?e:0}),n=1;n<o.length;n++)i=o[n],l[i]&&l[i].forEach(function(e,t){s.axis.getId(i)!==s.axis.getId(r)||!l[r]||a&&+e<0||(l[r][t]+=+e)});return s.d3.max(Object.keys(l).map(function(e){return s.d3.max(l[e])}))},f.getYDomain=function(e,t,n){var r,o,i,a,s,u,c,l,p,f,d,h=this,g=h.config,y=e.filter(function(e){return h.axis.getId(e.id)===t}),v=n?h.filterByXDomain(y,n):y,_="y2"===t?g.axis_y2_min:g.axis_y_min,b="y2"===t?g.axis_y2_max:g.axis_y_max,E=h.getYDomainMin(v),x=h.getYDomainMax(v),w="y2"===t?g.axis_y2_center:g.axis_y_center,O=h.hasType("bar",v)&&g.bar_zerobased||h.hasType("area",v)&&g.area_zerobased,T="y2"===t?g.axis_y2_inverted:g.axis_y_inverted,P=h.hasDataLabel()&&g.axis_rotated,R=h.hasDataLabel()&&!g.axis_rotated;return E=m(_)?_:m(b)?E<b?E:b-10:E,x=m(b)?b:m(_)?_<x?x:_+10:x,0===v.length?"y2"===t?h.y2.domain():h.y.domain():(isNaN(E)&&(E=0),isNaN(x)&&(x=E),E===x&&(E<0?x=0:E=0),f=E>=0&&x>=0,d=E<=0&&x<=0,(m(_)&&f||m(b)&&d)&&(O=!1),O&&(f&&(E=0),d&&(x=0)),o=Math.abs(x-E),i=a=s=.1*o,"undefined"!=typeof w&&(u=Math.max(Math.abs(E),Math.abs(x)),x=w+u,E=w-u),P?(c=h.getDataLabelLength(E,x,"width"),l=C(h.y.range()),p=[c[0]/l,c[1]/l],a+=o*(p[1]/(1-p[0]-p[1])),s+=o*(p[0]/(1-p[0]-p[1]))):R&&(c=h.getDataLabelLength(E,x,"height"),a+=h.axis.convertPixelsToAxisPadding(c[1],o),s+=h.axis.convertPixelsToAxisPadding(c[0],o)),"y"===t&&S(g.axis_y_padding)&&(a=h.axis.getPadding(g.axis_y_padding,"top",a,o),s=h.axis.getPadding(g.axis_y_padding,"bottom",s,o)),"y2"===t&&S(g.axis_y2_padding)&&(a=h.axis.getPadding(g.axis_y2_padding,"top",a,o),s=h.axis.getPadding(g.axis_y2_padding,"bottom",s,o)),O&&(f&&(s=E),d&&(a=-x)),r=[E-s,x+a],T?r.reverse():r)},f.getXDomainMin=function(e){var t=this,n=t.config;return b(n.axis_x_min)?t.isTimeSeries()?this.parseDate(n.axis_x_min):n.axis_x_min:t.d3.min(e,function(e){return t.d3.min(e.values,function(e){return e.x})})},f.getXDomainMax=function(e){var t=this,n=t.config;return b(n.axis_x_max)?t.isTimeSeries()?this.parseDate(n.axis_x_max):n.axis_x_max:t.d3.max(e,function(e){return t.d3.max(e.values,function(e){return e.x})})},f.getXDomainPadding=function(e){var t,n,r,o,i=this,a=i.config,s=e[1]-e[0];return i.isCategorized()?n=0:i.hasType("bar")?(t=i.getMaxDataCount(),n=t>1?s/(t-1)/2:.5):n=.01*s,"object"==typeof a.axis_x_padding&&S(a.axis_x_padding)?(r=m(a.axis_x_padding.left)?a.axis_x_padding.left:n,o=m(a.axis_x_padding.right)?a.axis_x_padding.right:n):r=o="number"==typeof a.axis_x_padding?a.axis_x_padding:n,{left:r,right:o}},f.getXDomain=function(e){var t=this,n=[t.getXDomainMin(e),t.getXDomainMax(e)],r=n[0],o=n[1],i=t.getXDomainPadding(n),a=0,s=0;return r-o!==0||t.isCategorized()||(t.isTimeSeries()?(r=new Date(.5*r.getTime()),o=new Date(1.5*o.getTime())):(r=0===r?1:.5*r,o=0===o?-1:1.5*o)),(r||0===r)&&(a=t.isTimeSeries()?new Date(r.getTime()-i.left):r-i.left),(o||0===o)&&(s=t.isTimeSeries()?new Date(o.getTime()+i.right):o+i.right),[a,s]},f.updateXDomain=function(e,t,n,r,o){var i=this,a=i.config;return n&&(i.x.domain(o?o:i.d3.extent(i.getXDomain(e))),i.orgXDomain=i.x.domain(),a.zoom_enabled&&i.zoom.scale(i.x).updateScaleExtent(),i.subX.domain(i.x.domain()),i.brush&&i.brush.scale(i.subX)),t&&(i.x.domain(o?o:!i.brush||i.brush.empty()?i.orgXDomain:i.brush.extent()),a.zoom_enabled&&i.zoom.scale(i.x).updateScaleExtent()),r&&i.x.domain(i.trimXDomain(i.x.orgDomain())),i.x.domain()},f.trimXDomain=function(e){var t=this.getZoomDomain(),n=t[0],r=t[1];return e[0]<=n&&(e[1]=+e[1]+(n-e[0]),e[0]=n),r<=e[1]&&(e[0]=+e[0]-(e[1]-r),e[1]=r),e},f.isX=function(e){var t=this,n=t.config;return n.data_x&&e===n.data_x||S(n.data_xs)&&T(n.data_xs,e)},f.isNotX=function(e){return!this.isX(e)},f.getXKey=function(e){var t=this,n=t.config;return n.data_x?n.data_x:S(n.data_xs)?n.data_xs[e]:null},f.getXValuesOfXKey=function(e,t){var n,r=this,o=t&&S(t)?r.mapToIds(t):[];return o.forEach(function(t){r.getXKey(t)===e&&(n=r.data.xs[t])}),n},f.getIndexByX=function(e){var t=this,n=t.filterByX(t.data.targets,e);return n.length?n[0].index:null},f.getXValue=function(e,t){var n=this;return e in n.data.xs&&n.data.xs[e]&&m(n.data.xs[e][t])?n.data.xs[e][t]:t},f.getOtherTargetXs=function(){var e=this,t=Object.keys(e.data.xs);return t.length?e.data.xs[t[0]]:null},f.getOtherTargetX=function(e){var t=this.getOtherTargetXs();return t&&e<t.length?t[e]:null},f.addXs=function(e){var t=this;Object.keys(e).forEach(function(n){t.config.data_xs[n]=e[n]})},f.hasMultipleX=function(e){return this.d3.set(Object.keys(e).map(function(t){return e[t]})).size()>1},f.isMultipleX=function(){return S(this.config.data_xs)||!this.config.data_xSort||this.hasType("scatter")},f.addName=function(e){var t,n=this;return e&&(t=n.config.data_names[e.id],e.name=void 0!==t?t:e.id),e},f.getValueOnIndex=function(e,t){var n=e.filter(function(e){return e.index===t});return n.length?n[0]:null},f.updateTargetX=function(e,t){var n=this;e.forEach(function(e){e.values.forEach(function(r,o){r.x=n.generateTargetX(t[o],e.id,o)}),n.data.xs[e.id]=t})},f.updateTargetXs=function(e,t){var n=this;e.forEach(function(e){t[e.id]&&n.updateTargetX([e],t[e.id])})},f.generateTargetX=function(e,t,n){var r,o=this;return r=o.isTimeSeries()?e?o.parseDate(e):o.parseDate(o.getXValue(t,n)):o.isCustomX()&&!o.isCategorized()?m(e)?+e:o.getXValue(t,n):n},f.cloneTarget=function(e){return{id:e.id,id_org:e.id_org,values:e.values.map(function(e){return{x:e.x,value:e.value,id:e.id}})}},f.updateXs=function(){var e=this;e.data.targets.length&&(e.xs=[],e.data.targets[0].values.forEach(function(t){e.xs[t.index]=t.x}))},f.getPrevX=function(e){var t=this.xs[e-1];return"undefined"!=typeof t?t:null},f.getNextX=function(e){var t=this.xs[e+1];return"undefined"!=typeof t?t:null},f.getMaxDataCount=function(){var e=this;return e.d3.max(e.data.targets,function(e){return e.values.length})},f.getMaxDataCountTarget=function(e){var t,n=e.length,r=0;return n>1?e.forEach(function(e){e.values.length>r&&(t=e,r=e.values.length)}):t=n?e[0]:null,t},f.getEdgeX=function(e){var t=this;return e.length?[t.d3.min(e,function(e){return e.values[0].x}),t.d3.max(e,function(e){return e.values[e.values.length-1].x})]:[0,0]},f.mapToIds=function(e){return e.map(function(e){return e.id})},f.mapToTargetIds=function(e){var t=this;return e?[].concat(e):t.mapToIds(t.data.targets)},f.hasTarget=function(e,t){var n,r=this.mapToIds(e);for(n=0;n<r.length;n++)if(r[n]===t)return!0;return!1},f.isTargetToShow=function(e){return this.hiddenTargetIds.indexOf(e)<0},f.isLegendToShow=function(e){return this.hiddenLegendIds.indexOf(e)<0},f.filterTargetsToShow=function(e){var t=this;return e.filter(function(e){return t.isTargetToShow(e.id)})},f.mapTargetsToUniqueXs=function(e){var t=this,n=t.d3.set(t.d3.merge(e.map(function(e){return e.values.map(function(e){return+e.x})}))).values();return n=t.isTimeSeries()?n.map(function(e){return new Date((+e))}):n.map(function(e){return+e}),n.sort(function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN})},f.addHiddenTargetIds=function(e){this.hiddenTargetIds=this.hiddenTargetIds.concat(e)},f.removeHiddenTargetIds=function(e){this.hiddenTargetIds=this.hiddenTargetIds.filter(function(t){return e.indexOf(t)<0})},f.addHiddenLegendIds=function(e){this.hiddenLegendIds=this.hiddenLegendIds.concat(e)},f.removeHiddenLegendIds=function(e){this.hiddenLegendIds=this.hiddenLegendIds.filter(function(t){return e.indexOf(t)<0})},f.getValuesAsIdKeyed=function(e){var t={};return e.forEach(function(e){t[e.id]=[],e.values.forEach(function(n){t[e.id].push(n.value)})}),t},f.checkValueInTargets=function(e,t){var n,r,o,i=Object.keys(e);for(n=0;n<i.length;n++)for(o=e[i[n]].values,r=0;r<o.length;r++)if(t(o[r].value))return!0;return!1},f.hasNegativeValueInTargets=function(e){return this.checkValueInTargets(e,function(e){return e<0})},f.hasPositiveValueInTargets=function(e){return this.checkValueInTargets(e,function(e){return e>0})},f.isOrderDesc=function(){var e=this.config;return"string"==typeof e.data_order&&"desc"===e.data_order.toLowerCase()},f.isOrderAsc=function(){var e=this.config;return"string"==typeof e.data_order&&"asc"===e.data_order.toLowerCase()},f.orderTargets=function(e){var t=this,n=t.config,r=t.isOrderAsc(),o=t.isOrderDesc();return r||o?e.sort(function(e,t){var n=function(e,t){return e+Math.abs(t.value)},o=e.values.reduce(n,0),i=t.values.reduce(n,0);return r?i-o:o-i}):y(n.data_order)&&e.sort(n.data_order),e},f.filterByX=function(e,t){return this.d3.merge(e.map(function(e){return e.values})).filter(function(e){return e.x-t===0})},f.filterRemoveNull=function(e){return e.filter(function(e){return m(e.value)})},f.filterByXDomain=function(e,t){return e.map(function(e){return{id:e.id,id_org:e.id_org,values:e.values.filter(function(e){return t[0]<=e.x&&e.x<=t[1]})}})},f.hasDataLabel=function(){var e=this.config;return!("boolean"!=typeof e.data_labels||!e.data_labels)||!("object"!=typeof e.data_labels||!S(e.data_labels))},f.getDataLabelLength=function(e,t,n){var r=this,o=[0,0],i=1.3;return r.selectChart.select("svg").selectAll(".dummy").data([e,t]).enter().append("text").text(function(e){return r.dataLabelFormat(e.id)(e)}).each(function(e,t){o[t]=this.getBoundingClientRect()[n]*i}).remove(),o},f.isNoneArc=function(e){return this.hasTarget(this.data.targets,e.id)},f.isArc=function(e){return"data"in e&&this.hasTarget(this.data.targets,e.data.id)},f.findSameXOfValues=function(e,t){var n,r=e[t].x,o=[];for(n=t-1;n>=0&&r===e[n].x;n--)o.push(e[n]);for(n=t;n<e.length&&r===e[n].x;n++)o.push(e[n]);return o},f.findClosestFromTargets=function(e,t){var n,r=this;return n=e.map(function(e){return r.findClosest(e.values,t)}),r.findClosest(n,t)},f.findClosest=function(e,t){var n,r=this,o=r.config.point_sensitivity;return e.filter(function(e){return e&&r.isBarType(e.id)}).forEach(function(e){var t=r.main.select("."+g.bars+r.getTargetSelectorSuffix(e.id)+" ."+g.bar+"-"+e.index).node();!n&&r.isWithinBar(t)&&(n=e)}),e.filter(function(e){return e&&!r.isBarType(e.id)}).forEach(function(e){var i=r.dist(e,t);i<o&&(o=i,n=e)}),n},f.dist=function(e,t){var n=this,r=n.config,o=r.axis_rotated?1:0,i=r.axis_rotated?0:1,a=n.circleY(e,e.index),s=n.x(e.x);return Math.sqrt(Math.pow(s-t[o],2)+Math.pow(a-t[i],2))},f.convertValuesToStep=function(e){var t,n=[].concat(e);if(!this.isCategorized())return e;for(t=e.length+1;0<t;t--)n[t]=n[t-1];return n[0]={x:n[0].x-1,value:n[0].value,id:n[0].id},n[e.length+1]={x:n[e.length].x+1,value:n[e.length].value,id:n[e.length].id},n},f.updateDataAttributes=function(e,t){var n=this,r=n.config,o=r["data_"+e];return"undefined"==typeof t?o:(Object.keys(t).forEach(function(e){o[e]=t[e]}),n.redraw({withLegend:!0}),o)},f.convertUrlToData=function(e,t,n,r,o){var i=this,a=t?t:"csv",s=i.d3.xhr(e);n&&Object.keys(n).forEach(function(e){s.header(e,n[e])}),s.get(function(e,t){var n;if(!t)throw new Error(e.responseURL+" "+e.status+" ("+e.statusText+")");n="json"===a?i.convertJsonToData(JSON.parse(t.response),r):"tsv"===a?i.convertTsvToData(t.response):i.convertCsvToData(t.response),o.call(i,n)})},f.convertXsvToData=function(e,t){var n,r=t.parseRows(e);return 1===r.length?(n=[{}],r[0].forEach(function(e){n[0][e]=null})):n=t.parse(e),n},f.convertCsvToData=function(e){return this.convertXsvToData(e,this.d3.csv)},f.convertTsvToData=function(e){return this.convertXsvToData(e,this.d3.tsv)},f.convertJsonToData=function(e,t){var n,r,o=this,i=[];return t?(t.x?(n=t.value.concat(t.x),o.config.data_x=t.x):n=t.value,i.push(n),e.forEach(function(e){var t=[];n.forEach(function(n){var r=o.findValueInJson(e,n);_(r)&&(r=null),t.push(r)}),i.push(t)}),r=o.convertRowsToData(i)):(Object.keys(e).forEach(function(t){i.push([t].concat(e[t]))}),r=o.convertColumnsToData(i)),r},f.findValueInJson=function(e,t){t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var n=t.split("."),r=0;r<n.length;++r){var o=n[r];if(!(o in e))return;e=e[o]}return e},f.convertRowsToData=function(e){var t,n,r=e[0],o={},i=[];for(t=1;t<e.length;t++){for(o={},n=0;n<e[t].length;n++){if(_(e[t][n]))throw new Error("Source data is missing a component at ("+t+","+n+")!");o[r[n]]=e[t][n]}i.push(o)}return i},f.convertColumnsToData=function(e){var t,n,r,o=[];for(t=0;t<e.length;t++)for(r=e[t][0],n=1;n<e[t].length;n++){if(_(o[n-1])&&(o[n-1]={}),_(e[t][n]))throw new Error("Source data is missing a component at ("+t+","+n+")!");o[n-1][r]=e[t][n]}return o},f.convertDataToTargets=function(e,t){var n,r=this,o=r.config,i=r.d3.keys(e[0]).filter(r.isNotX,r),a=r.d3.keys(e[0]).filter(r.isX,r);return i.forEach(function(n){var i=r.getXKey(n);r.isCustomX()||r.isTimeSeries()?a.indexOf(i)>=0?r.data.xs[n]=(t&&r.data.xs[n]?r.data.xs[n]:[]).concat(e.map(function(e){return e[i]}).filter(m).map(function(e,t){return r.generateTargetX(e,n,t)})):o.data_x?r.data.xs[n]=r.getOtherTargetXs():S(o.data_xs)&&(r.data.xs[n]=r.getXValuesOfXKey(i,r.data.targets)):r.data.xs[n]=e.map(function(e,t){return t})}),i.forEach(function(e){if(!r.data.xs[e])throw new Error('x is not defined for id = "'+e+'".')}),n=i.map(function(t,n){var i=o.data_idConverter(t);return{id:i,id_org:t,values:e.map(function(e,a){var s,u=r.getXKey(t),c=e[u],l=null===e[t]||isNaN(e[t])?null:+e[t];return r.isCustomX()&&r.isCategorized()&&0===n&&!_(c)?(0===n&&0===a&&(o.axis_x_categories=[]),s=o.axis_x_categories.indexOf(c),s===-1&&(s=o.axis_x_categories.length,o.axis_x_categories.push(c))):s=r.generateTargetX(c,t,a),(_(e[t])||r.data.xs[t].length<=a)&&(s=void 0),{x:s,value:l,id:i}}).filter(function(e){return b(e.x)})}}),n.forEach(function(e){var t;o.data_xSort&&(e.values=e.values.sort(function(e,t){var n=e.x||0===e.x?e.x:1/0,r=t.x||0===t.x?t.x:1/0;return n-r})),t=0,e.values.forEach(function(e){e.index=t++}),r.data.xs[e.id].sort(function(e,t){return e-t})}),r.hasNegativeValue=r.hasNegativeValueInTargets(n),r.hasPositiveValue=r.hasPositiveValueInTargets(n),o.data_type&&r.setTargetType(r.mapToIds(n).filter(function(e){return!(e in o.data_types)}),o.data_type),n.forEach(function(e){r.addCache(e.id_org,e)}),n},f.load=function(e,t){var n=this;e&&(t.filter&&(e=e.filter(t.filter)),(t.type||t.types)&&e.forEach(function(e){var r=t.types&&t.types[e.id]?t.types[e.id]:t.type;n.setTargetType(e.id,r)}),n.data.targets.forEach(function(t){for(var n=0;n<e.length;n++)if(t.id===e[n].id){t.values=e[n].values,e.splice(n,1);break}}),n.data.targets=n.data.targets.concat(e)),n.updateTargets(n.data.targets),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),t.done&&t.done()},f.loadFromArgs=function(e){var t=this;e.data?t.load(t.convertDataToTargets(e.data),e):e.url?t.convertUrlToData(e.url,e.mimeType,e.headers,e.keys,function(n){t.load(t.convertDataToTargets(n),e)}):e.json?t.load(t.convertDataToTargets(t.convertJsonToData(e.json,e.keys)),e):e.rows?t.load(t.convertDataToTargets(t.convertRowsToData(e.rows)),e):e.columns?t.load(t.convertDataToTargets(t.convertColumnsToData(e.columns)),e):t.load(null,e)},f.unload=function(e,t){var n=this;return t||(t=function(){}),e=e.filter(function(e){return n.hasTarget(n.data.targets,e)}),e&&0!==e.length?(n.svg.selectAll(e.map(function(e){return n.selectorTarget(e)})).transition().style("opacity",0).remove().call(n.endall,t),void e.forEach(function(e){n.withoutFadeIn[e]=!1,n.legend&&n.legend.selectAll("."+g.legendItem+n.getTargetSelectorSuffix(e)).remove(),n.data.targets=n.data.targets.filter(function(t){return t.id!==e})})):void t()},f.categoryName=function(e){var t=this.config;return e<t.axis_x_categories.length?t.axis_x_categories[e]:e},f.initEventRect=function(){var e=this;e.main.select("."+g.chart).append("g").attr("class",g.eventRects).style("fill-opacity",0)},f.redrawEventRect=function(){var e,t,n=this,r=n.config,o=n.isMultipleX(),i=n.main.select("."+g.eventRects).style("cursor",r.zoom_enabled?r.axis_rotated?"ns-resize":"ew-resize":null).classed(g.eventRectsMultiple,o).classed(g.eventRectsSingle,!o);i.selectAll("."+g.eventRect).remove(),n.eventRect=i.selectAll("."+g.eventRect),o?(e=n.eventRect.data([0]),n.generateEventRectsForMultipleXs(e.enter()),n.updateEventRect(e)):(t=n.getMaxDataCountTarget(n.data.targets),i.datum(t?t.values:[]),n.eventRect=i.selectAll("."+g.eventRect),e=n.eventRect.data(function(e){return e}),n.generateEventRectsForSingleX(e.enter()),n.updateEventRect(e),e.exit().remove())},f.updateEventRect=function(e){var t,n,r,o,i,a,s=this,u=s.config;e=e||s.eventRect.data(function(e){return e}),s.isMultipleX()?(t=0,n=0,r=s.width,o=s.height):(!s.isCustomX()&&!s.isTimeSeries()||s.isCategorized()?(i=s.getEventRectWidth(),a=function(e){return s.x(e.x)-i/2}):(s.updateXs(),i=function(e){var t=s.getPrevX(e.index),n=s.getNextX(e.index);return null===t&&null===n?u.axis_rotated?s.height:s.width:(null===t&&(t=s.x.domain()[0]),null===n&&(n=s.x.domain()[1]),Math.max(0,(s.x(n)-s.x(t))/2))},a=function(e){var t=s.getPrevX(e.index),n=s.getNextX(e.index),r=s.data.xs[e.id][e.index];return null===t&&null===n?0:(null===t&&(t=s.x.domain()[0]),(s.x(r)+s.x(t))/2)}),t=u.axis_rotated?0:a,n=u.axis_rotated?a:0,r=u.axis_rotated?s.width:i,o=u.axis_rotated?i:s.height),e.attr("class",s.classEvent.bind(s)).attr("x",t).attr("y",n).attr("width",r).attr("height",o)},f.generateEventRectsForSingleX=function(e){var t=this,n=t.d3,r=t.config;e.append("rect").attr("class",t.classEvent.bind(t)).style("cursor",r.data_selection_enabled&&r.data_selection_grouped?"pointer":null).on("mouseover",function(e){var n=e.index;t.dragging||t.flowing||t.hasArcType()||(r.point_focus_expand_enabled&&t.expandCircles(n,null,!0),t.expandBars(n,null,!0),t.main.selectAll("."+g.shape+"-"+n).each(function(e){r.data_onmouseover.call(t.api,e)}))}).on("mouseout",function(e){var n=e.index;t.config&&(t.hasArcType()||(t.hideXGridFocus(),t.hideTooltip(),t.unexpandCircles(),t.unexpandBars(),t.main.selectAll("."+g.shape+"-"+n).each(function(e){r.data_onmouseout.call(t.api,e)})))}).on("mousemove",function(e){var o,i=e.index,a=t.svg.select("."+g.eventRect+"-"+i);t.dragging||t.flowing||t.hasArcType()||(t.isStepType(e)&&"step-after"===t.config.line_step_type&&n.mouse(this)[0]<t.x(t.getXValue(e.id,i))&&(i-=1),o=t.filterTargetsToShow(t.data.targets).map(function(e){return t.addName(t.getValueOnIndex(e.values,i))}),r.tooltip_grouped&&(t.showTooltip(o,this),t.showXGridFocus(o)),(!r.tooltip_grouped||r.data_selection_enabled&&!r.data_selection_grouped)&&t.main.selectAll("."+g.shape+"-"+i).each(function(){n.select(this).classed(g.EXPANDED,!0),r.data_selection_enabled&&a.style("cursor",r.data_selection_grouped?"pointer":null),r.tooltip_grouped||(t.hideXGridFocus(),t.hideTooltip(),r.data_selection_grouped||(t.unexpandCircles(i),t.unexpandBars(i)))}).filter(function(e){return t.isWithinShape(this,e)}).each(function(e){r.data_selection_enabled&&(r.data_selection_grouped||r.data_selection_isselectable(e))&&a.style("cursor","pointer"),r.tooltip_grouped||(t.showTooltip([e],this),t.showXGridFocus([e]),r.point_focus_expand_enabled&&t.expandCircles(i,e.id,!0),t.expandBars(i,e.id,!0))}))}).on("click",function(e){var o=e.index;if(!t.hasArcType()&&t.toggleShape){if(t.cancelClick)return void(t.cancelClick=!1);
|
11 |
-
t.isStepType(e)&&"step-after"===r.line_step_type&&n.mouse(this)[0]<t.x(t.getXValue(e.id,o))&&(o-=1),t.main.selectAll("."+g.shape+"-"+o).each(function(e){(r.data_selection_grouped||t.isWithinShape(this,e))&&(t.toggleShape(this,e,o),t.config.data_onclick.call(t.api,e,this))})}}).call(r.data_selection_draggable&&t.drag?n.behavior.drag().origin(Object).on("drag",function(){t.drag(n.mouse(this))}).on("dragstart",function(){t.dragstart(n.mouse(this))}).on("dragend",function(){t.dragend()}):function(){})},f.generateEventRectsForMultipleXs=function(e){function t(){n.svg.select("."+g.eventRect).style("cursor",null),n.hideXGridFocus(),n.hideTooltip(),n.unexpandCircles(),n.unexpandBars()}var n=this,r=n.d3,o=n.config;e.append("rect").attr("x",0).attr("y",0).attr("width",n.width).attr("height",n.height).attr("class",g.eventRect).on("mouseout",function(){n.config&&(n.hasArcType()||t())}).on("mousemove",function(){var e,i,a,s,u=n.filterTargetsToShow(n.data.targets);if(!n.dragging&&!n.hasArcType(u)){if(e=r.mouse(this),i=n.findClosestFromTargets(u,e),!n.mouseover||i&&i.id===n.mouseover.id||(o.data_onmouseout.call(n.api,n.mouseover),n.mouseover=void 0),!i)return void t();a=n.isScatterType(i)||!o.tooltip_grouped?[i]:n.filterByX(u,i.x),s=a.map(function(e){return n.addName(e)}),n.showTooltip(s,this),o.point_focus_expand_enabled&&n.expandCircles(i.index,i.id,!0),n.expandBars(i.index,i.id,!0),n.showXGridFocus(s),(n.isBarType(i.id)||n.dist(i,e)<o.point_sensitivity)&&(n.svg.select("."+g.eventRect).style("cursor","pointer"),n.mouseover||(o.data_onmouseover.call(n.api,i),n.mouseover=i))}}).on("click",function(){var e,t,i=n.filterTargetsToShow(n.data.targets);n.hasArcType(i)||(e=r.mouse(this),t=n.findClosestFromTargets(i,e),t&&(n.isBarType(t.id)||n.dist(t,e)<o.point_sensitivity)&&n.main.selectAll("."+g.shapes+n.getTargetSelectorSuffix(t.id)).selectAll("."+g.shape+"-"+t.index).each(function(){(o.data_selection_grouped||n.isWithinShape(this,t))&&(n.toggleShape(this,t,t.index),n.config.data_onclick.call(n.api,t,this))}))}).call(o.data_selection_draggable&&n.drag?r.behavior.drag().origin(Object).on("drag",function(){n.drag(r.mouse(this))}).on("dragstart",function(){n.dragstart(r.mouse(this))}).on("dragend",function(){n.dragend()}):function(){})},f.dispatchEvent=function(e,t,n){var r=this,i="."+g.eventRect+(r.isMultipleX()?"":"-"+t),a=r.main.select(i).node(),s=a.getBoundingClientRect(),u=s.left+(n?n[0]:0),c=s.top+(n?n[1]:0),l=document.createEvent("MouseEvents");l.initMouseEvent(e,!0,!0,o,0,u,c,u,c,!1,!1,!1,!1,0,null),a.dispatchEvent(l)},f.getCurrentWidth=function(){var e=this,t=e.config;return t.size_width?t.size_width:e.getParentWidth()},f.getCurrentHeight=function(){var e=this,t=e.config,n=t.size_height?t.size_height:e.getParentHeight();return n>0?n:320/(e.hasType("gauge")&&!t.gauge_fullCircle?2:1)},f.getCurrentPaddingTop=function(){var e=this,t=e.config,n=m(t.padding_top)?t.padding_top:0;return e.title&&e.title.node()&&(n+=e.getTitlePadding()),n},f.getCurrentPaddingBottom=function(){var e=this.config;return m(e.padding_bottom)?e.padding_bottom:0},f.getCurrentPaddingLeft=function(e){var t=this,n=t.config;return m(n.padding_left)?n.padding_left:n.axis_rotated?n.axis_x_show?Math.max(E(t.getAxisWidthByAxisId("x",e)),40):1:!n.axis_y_show||n.axis_y_inner?t.axis.getYAxisLabelPosition().isOuter?30:1:E(t.getAxisWidthByAxisId("y",e))},f.getCurrentPaddingRight=function(){var e=this,t=e.config,n=10,r=e.isLegendRight?e.getLegendWidth()+20:0;return m(t.padding_right)?t.padding_right+1:t.axis_rotated?n+r:!t.axis_y2_show||t.axis_y2_inner?2+r+(e.axis.getY2AxisLabelPosition().isOuter?20:0):E(e.getAxisWidthByAxisId("y2"))+r},f.getParentRectValue=function(e){for(var t,n=this.selectChart.node();n&&"BODY"!==n.tagName;){try{t=n.getBoundingClientRect()[e]}catch(r){"width"===e&&(t=n.offsetWidth)}if(t)break;n=n.parentNode}return t},f.getParentWidth=function(){return this.getParentRectValue("width")},f.getParentHeight=function(){var e=this.selectChart.style("height");return e.indexOf("px")>0?+e.replace("px",""):0},f.getSvgLeft=function(e){var t=this,n=t.config,r=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,o=n.axis_rotated?g.axisX:g.axisY,i=t.main.select("."+o).node(),a=i&&r?i.getBoundingClientRect():{right:0},s=t.selectChart.node().getBoundingClientRect(),u=t.hasArcType(),c=a.right-s.left-(u?0:t.getCurrentPaddingLeft(e));return c>0?c:0},f.getAxisWidthByAxisId=function(e,t){var n=this,r=n.axis.getLabelPositionById(e);return n.axis.getMaxTickWidth(e,t)+(r.isInner?20:40)},f.getHorizontalAxisHeight=function(e){var t=this,n=t.config,r=30;return"x"!==e||n.axis_x_show?"x"===e&&n.axis_x_height?n.axis_x_height:"y"!==e||n.axis_y_show?"y2"!==e||n.axis_y2_show?("x"===e&&!n.axis_rotated&&n.axis_x_tick_rotate&&(r=30+t.axis.getMaxTickWidth(e)*Math.cos(Math.PI*(90-n.axis_x_tick_rotate)/180)),"y"===e&&n.axis_rotated&&n.axis_y_tick_rotate&&(r=30+t.axis.getMaxTickWidth(e)*Math.cos(Math.PI*(90-n.axis_y_tick_rotate)/180)),r+(t.axis.getLabelPositionById(e).isInner?0:10)+("y2"===e?-10:0)):t.rotated_padding_top:!n.legend_show||t.isLegendRight||t.isLegendInset?1:10:8},f.getEventRectWidth=function(){return Math.max(0,this.xAxis.tickInterval())},f.getShapeIndices=function(e){var t,n,r=this,o=r.config,i={},a=0;return r.filterTargetsToShow(r.data.targets.filter(e,r)).forEach(function(e){for(t=0;t<o.data_groups.length;t++)if(!(o.data_groups[t].indexOf(e.id)<0))for(n=0;n<o.data_groups[t].length;n++)if(o.data_groups[t][n]in i){i[e.id]=i[o.data_groups[t][n]];break}_(i[e.id])&&(i[e.id]=a++)}),i.__max__=a-1,i},f.getShapeX=function(e,t,n,r){var o=this,i=r?o.subX:o.x;return function(r){var o=r.id in n?n[r.id]:0;return r.x||0===r.x?i(r.x)-e*(t/2-o):0}},f.getShapeY=function(e){var t=this;return function(n){var r=e?t.getSubYScale(n.id):t.getYScale(n.id);return r(n.value)}},f.getShapeOffset=function(e,t,n){var r=this,o=r.orderTargets(r.filterTargetsToShow(r.data.targets.filter(e,r))),i=o.map(function(e){return e.id});return function(e,a){var s=n?r.getSubYScale(e.id):r.getYScale(e.id),u=s(0),c=u;return o.forEach(function(n){var o=r.isStepType(e)?r.convertValuesToStep(n.values):n.values;n.id!==e.id&&t[n.id]===t[e.id]&&i.indexOf(n.id)<i.indexOf(e.id)&&("undefined"!=typeof o[a]&&+o[a].x===+e.x||(a=-1,o.forEach(function(t,n){t.x===e.x&&(a=n)})),a in o&&o[a].value*e.value>=0&&(c+=s(o[a].value)-u))}),c}},f.isWithinShape=function(e,t){var n,r=this,o=r.d3.select(e);return r.isTargetToShow(t.id)?"circle"===e.nodeName?n=r.isStepType(t)?r.isWithinStep(e,r.getYScale(t.id)(t.value)):r.isWithinCircle(e,1.5*r.pointSelectR(t)):"path"===e.nodeName&&(n=!o.classed(g.bar)||r.isWithinBar(e)):n=!1,n},f.getInterpolate=function(e){var t=this,n=t.isInterpolationType(t.config.spline_interpolation_type)?t.config.spline_interpolation_type:"cardinal";return t.isSplineType(e)?n:t.isStepType(e)?t.config.line_step_type:"linear"},f.initLine=function(){var e=this;e.main.select("."+g.chart).append("g").attr("class",g.chartLines)},f.updateTargetsForLine=function(e){var t,n,r=this,o=r.config,i=r.classChartLine.bind(r),a=r.classLines.bind(r),s=r.classAreas.bind(r),u=r.classCircles.bind(r),c=r.classFocus.bind(r);t=r.main.select("."+g.chartLines).selectAll("."+g.chartLine).data(e).attr("class",function(e){return i(e)+c(e)}),n=t.enter().append("g").attr("class",i).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",a),n.append("g").attr("class",s),n.append("g").attr("class",function(e){return r.generateClass(g.selectedCircles,e.id)}),n.append("g").attr("class",u).style("cursor",function(e){return o.data_selection_isselectable(e)?"pointer":null}),e.forEach(function(e){r.main.selectAll("."+g.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+g.selectedCircle).each(function(t){t.value=e.values[t.index].value})})},f.updateLine=function(e){var t=this;t.mainLine=t.main.selectAll("."+g.lines).selectAll("."+g.line).data(t.lineData.bind(t)),t.mainLine.enter().append("path").attr("class",t.classLine.bind(t)).style("stroke",t.color),t.mainLine.style("opacity",t.initialOpacity.bind(t)).style("shape-rendering",function(e){return t.isStepType(e)?"crispEdges":""}).attr("transform",null),t.mainLine.exit().transition().duration(e).style("opacity",0).remove()},f.redrawLine=function(e,t){return[(t?this.mainLine.transition(Math.random().toString()):this.mainLine).attr("d",e).style("stroke",this.color).style("opacity",1)]},f.generateDrawLine=function(e,t){var n=this,r=n.config,o=n.d3.svg.line(),i=n.generateGetLinePoints(e,t),a=t?n.getSubYScale:n.getYScale,s=function(e){return(t?n.subxx:n.xx).call(n,e)},u=function(e,t){return r.data_groups.length>0?i(e,t)[0][1]:a.call(n,e.id)(e.value)};return o=r.axis_rotated?o.x(u).y(s):o.x(s).y(u),r.line_connectNull||(o=o.defined(function(e){return null!=e.value})),function(e){var i,s=r.line_connectNull?n.filterRemoveNull(e.values):e.values,u=t?n.x:n.subX,c=a.call(n,e.id),l=0,p=0;return n.isLineType(e)?r.data_regions[e.id]?i=n.lineWithRegions(s,u,c,r.data_regions[e.id]):(n.isStepType(e)&&(s=n.convertValuesToStep(s)),i=o.interpolate(n.getInterpolate(e))(s)):(s[0]&&(l=u(s[0].x),p=c(s[0].value)),i=r.axis_rotated?"M "+p+" "+l:"M "+l+" "+p),i?i:"M 0 0"}},f.generateGetLinePoints=function(e,t){var n=this,r=n.config,o=e.__max__+1,i=n.getShapeX(0,o,e,!!t),a=n.getShapeY(!!t),s=n.getShapeOffset(n.isLineType,e,!!t),u=t?n.getSubYScale:n.getYScale;return function(e,t){var o=u.call(n,e.id)(0),c=s(e,t)||o,l=i(e),p=a(e);return r.axis_rotated&&(0<e.value&&p<o||e.value<0&&o<p)&&(p=o),[[l,p-(o-c)],[l,p-(o-c)],[l,p-(o-c)],[l,p-(o-c)]]}},f.lineWithRegions=function(e,t,n,r){function o(e,t){var n;for(n=0;n<t.length;n++)if(t[n].start<e&&e<=t[n].end)return!0;return!1}function i(e){return"M"+e[0][0]+" "+e[0][1]+" "+e[1][0]+" "+e[1][1]}var a,s,u,c,l,p,f,d,h,g,m,y,v=this,E=v.config,x=-1,C="M",w=v.isCategorized()?.5:0,S=[];if(b(r))for(a=0;a<r.length;a++)S[a]={},_(r[a].start)?S[a].start=e[0].x:S[a].start=v.isTimeSeries()?v.parseDate(r[a].start):r[a].start,_(r[a].end)?S[a].end=e[e.length-1].x:S[a].end=v.isTimeSeries()?v.parseDate(r[a].end):r[a].end;for(m=E.axis_rotated?function(e){return n(e.value)}:function(e){return t(e.x)},y=E.axis_rotated?function(e){return t(e.x)}:function(e){return n(e.value)},u=v.isTimeSeries()?function(e,r,o,a){var s,u=e.x.getTime(),c=r.x-e.x,p=new Date(u+c*o),f=new Date(u+c*(o+a));return s=E.axis_rotated?[[n(l(o)),t(p)],[n(l(o+a)),t(f)]]:[[t(p),n(l(o))],[t(f),n(l(o+a))]],i(s)}:function(e,r,o,a){var s;return s=E.axis_rotated?[[n(l(o),!0),t(c(o))],[n(l(o+a),!0),t(c(o+a))]]:[[t(c(o),!0),n(l(o))],[t(c(o+a),!0),n(l(o+a))]],i(s)},a=0;a<e.length;a++){if(_(S)||!o(e[a].x,S))C+=" "+m(e[a])+" "+y(e[a]);else for(c=v.getScale(e[a-1].x+w,e[a].x+w,v.isTimeSeries()),l=v.getScale(e[a-1].value,e[a].value),p=t(e[a].x)-t(e[a-1].x),f=n(e[a].value)-n(e[a-1].value),d=Math.sqrt(Math.pow(p,2)+Math.pow(f,2)),h=2/d,g=2*h,s=h;s<=1;s+=g)C+=u(e[a-1],e[a],s,h);x=e[a].x}return C},f.updateArea=function(e){var t=this,n=t.d3;t.mainArea=t.main.selectAll("."+g.areas).selectAll("."+g.area).data(t.lineData.bind(t)),t.mainArea.enter().append("path").attr("class",t.classArea.bind(t)).style("fill",t.color).style("opacity",function(){return t.orgAreaOpacity=+n.select(this).style("opacity"),0}),t.mainArea.style("opacity",t.orgAreaOpacity),t.mainArea.exit().transition().duration(e).style("opacity",0).remove()},f.redrawArea=function(e,t){return[(t?this.mainArea.transition(Math.random().toString()):this.mainArea).attr("d",e).style("fill",this.color).style("opacity",this.orgAreaOpacity)]},f.generateDrawArea=function(e,t){var n=this,r=n.config,o=n.d3.svg.area(),i=n.generateGetAreaPoints(e,t),a=t?n.getSubYScale:n.getYScale,s=function(e){return(t?n.subxx:n.xx).call(n,e)},u=function(e,t){return r.data_groups.length>0?i(e,t)[0][1]:a.call(n,e.id)(n.getAreaBaseValue(e.id))},c=function(e,t){return r.data_groups.length>0?i(e,t)[1][1]:a.call(n,e.id)(e.value)};return o=r.axis_rotated?o.x0(u).x1(c).y(s):o.x(s).y0(r.area_above?0:u).y1(c),r.line_connectNull||(o=o.defined(function(e){return null!==e.value})),function(e){var t,i=r.line_connectNull?n.filterRemoveNull(e.values):e.values,a=0,s=0;return n.isAreaType(e)?(n.isStepType(e)&&(i=n.convertValuesToStep(i)),t=o.interpolate(n.getInterpolate(e))(i)):(i[0]&&(a=n.x(i[0].x),s=n.getYScale(e.id)(i[0].value)),t=r.axis_rotated?"M "+s+" "+a:"M "+a+" "+s),t?t:"M 0 0"}},f.getAreaBaseValue=function(){return 0},f.generateGetAreaPoints=function(e,t){var n=this,r=n.config,o=e.__max__+1,i=n.getShapeX(0,o,e,!!t),a=n.getShapeY(!!t),s=n.getShapeOffset(n.isAreaType,e,!!t),u=t?n.getSubYScale:n.getYScale;return function(e,t){var o=u.call(n,e.id)(0),c=s(e,t)||o,l=i(e),p=a(e);return r.axis_rotated&&(0<e.value&&p<o||e.value<0&&o<p)&&(p=o),[[l,c],[l,p-(o-c)],[l,p-(o-c)],[l,c]]}},f.updateCircle=function(){var e=this;e.mainCircle=e.main.selectAll("."+g.circles).selectAll("."+g.circle).data(e.lineOrScatterData.bind(e)),e.mainCircle.enter().append("circle").attr("class",e.classCircle.bind(e)).attr("r",e.pointR.bind(e)).style("fill",e.color),e.mainCircle.style("opacity",e.initialOpacityForCircle.bind(e)),e.mainCircle.exit().remove()},f.redrawCircle=function(e,t,n){var r=this.main.selectAll("."+g.selectedCircle);return[(n?this.mainCircle.transition(Math.random().toString()):this.mainCircle).style("opacity",this.opacityForCircle.bind(this)).style("fill",this.color).attr("cx",e).attr("cy",t),(n?r.transition(Math.random().toString()):r).attr("cx",e).attr("cy",t)]},f.circleX=function(e){return e.x||0===e.x?this.x(e.x):null},f.updateCircleY=function(){var e,t,n=this;n.config.data_groups.length>0?(e=n.getShapeIndices(n.isLineType),t=n.generateGetLinePoints(e),n.circleY=function(e,n){return t(e,n)[0][1]}):n.circleY=function(e){return n.getYScale(e.id)(e.value)}},f.getCircles=function(e,t){var n=this;return(t?n.main.selectAll("."+g.circles+n.getTargetSelectorSuffix(t)):n.main).selectAll("."+g.circle+(m(e)?"-"+e:""))},f.expandCircles=function(e,t,n){var r=this,o=r.pointExpandedR.bind(r);n&&r.unexpandCircles(),r.getCircles(e,t).classed(g.EXPANDED,!0).attr("r",o)},f.unexpandCircles=function(e){var t=this,n=t.pointR.bind(t);t.getCircles(e).filter(function(){return t.d3.select(this).classed(g.EXPANDED)}).classed(g.EXPANDED,!1).attr("r",n)},f.pointR=function(e){var t=this,n=t.config;return t.isStepType(e)?0:y(n.point_r)?n.point_r(e):n.point_r},f.pointExpandedR=function(e){var t=this,n=t.config;return n.point_focus_expand_enabled?n.point_focus_expand_r?n.point_focus_expand_r:1.75*t.pointR(e):t.pointR(e)},f.pointSelectR=function(e){var t=this,n=t.config;return y(n.point_select_r)?n.point_select_r(e):n.point_select_r?n.point_select_r:4*t.pointR(e)},f.isWithinCircle=function(e,t){var n=this.d3,r=n.mouse(e),o=n.select(e),i=+o.attr("cx"),a=+o.attr("cy");return Math.sqrt(Math.pow(i-r[0],2)+Math.pow(a-r[1],2))<t},f.isWithinStep=function(e,t){return Math.abs(t-this.d3.mouse(e)[1])<30},f.initBar=function(){var e=this;e.main.select("."+g.chart).append("g").attr("class",g.chartBars)},f.updateTargetsForBar=function(e){var t,n,r=this,o=r.config,i=r.classChartBar.bind(r),a=r.classBars.bind(r),s=r.classFocus.bind(r);t=r.main.select("."+g.chartBars).selectAll("."+g.chartBar).data(e).attr("class",function(e){return i(e)+s(e)}),n=t.enter().append("g").attr("class",i).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",a).style("cursor",function(e){return o.data_selection_isselectable(e)?"pointer":null})},f.updateBar=function(e){var t=this,n=t.barData.bind(t),r=t.classBar.bind(t),o=t.initialOpacity.bind(t),i=function(e){return t.color(e.id)};t.mainBar=t.main.selectAll("."+g.bars).selectAll("."+g.bar).data(n),t.mainBar.enter().append("path").attr("class",r).style("stroke",i).style("fill",i),t.mainBar.style("opacity",o),t.mainBar.exit().transition().duration(e).style("opacity",0).remove()},f.redrawBar=function(e,t){return[(t?this.mainBar.transition(Math.random().toString()):this.mainBar).attr("d",e).style("fill",this.color).style("opacity",1)]},f.getBarW=function(e,t){var n=this,r=n.config,o="number"==typeof r.bar_width?r.bar_width:t?e.tickInterval()*r.bar_width_ratio/t:0;return r.bar_width_max&&o>r.bar_width_max?r.bar_width_max:o},f.getBars=function(e,t){var n=this;return(t?n.main.selectAll("."+g.bars+n.getTargetSelectorSuffix(t)):n.main).selectAll("."+g.bar+(m(e)?"-"+e:""))},f.expandBars=function(e,t,n){var r=this;n&&r.unexpandBars(),r.getBars(e,t).classed(g.EXPANDED,!0)},f.unexpandBars=function(e){var t=this;t.getBars(e).classed(g.EXPANDED,!1)},f.generateDrawBar=function(e,t){var n=this,r=n.config,o=n.generateGetBarPoints(e,t);return function(e,t){var n=o(e,t),i=r.axis_rotated?1:0,a=r.axis_rotated?0:1,s="M "+n[0][i]+","+n[0][a]+" L"+n[1][i]+","+n[1][a]+" L"+n[2][i]+","+n[2][a]+" L"+n[3][i]+","+n[3][a]+" z";return s}},f.generateGetBarPoints=function(e,t){var n=this,r=t?n.subXAxis:n.xAxis,o=e.__max__+1,i=n.getBarW(r,o),a=n.getShapeX(i,o,e,!!t),s=n.getShapeY(!!t),u=n.getShapeOffset(n.isBarType,e,!!t),c=t?n.getSubYScale:n.getYScale;return function(e,t){var r=c.call(n,e.id)(0),o=u(e,t)||r,l=a(e),p=s(e);return n.config.axis_rotated&&(0<e.value&&p<r||e.value<0&&r<p)&&(p=r),[[l,o],[l,p-(r-o)],[l+i,p-(r-o)],[l+i,o]]}},f.isWithinBar=function(e){var t=this.d3.mouse(e),n=e.getBoundingClientRect(),r=e.pathSegList.getItem(0),o=e.pathSegList.getItem(1),i=Math.min(r.x,o.x),a=Math.min(r.y,o.y),s=n.width,u=n.height,c=2,l=i-c,p=i+s+c,f=a+u+c,d=a-c;return l<t[0]&&t[0]<p&&d<t[1]&&t[1]<f},f.initText=function(){var e=this;e.main.select("."+g.chart).append("g").attr("class",g.chartTexts),e.mainText=e.d3.selectAll([])},f.updateTargetsForText=function(e){var t,n,r=this,o=r.classChartText.bind(r),i=r.classTexts.bind(r),a=r.classFocus.bind(r);t=r.main.select("."+g.chartTexts).selectAll("."+g.chartText).data(e).attr("class",function(e){return o(e)+a(e)}),n=t.enter().append("g").attr("class",o).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",i)},f.updateText=function(e){var t=this,n=t.config,r=t.barOrLineData.bind(t),o=t.classText.bind(t);t.mainText=t.main.selectAll("."+g.texts).selectAll("."+g.text).data(r),t.mainText.enter().append("text").attr("class",o).attr("text-anchor",function(e){return n.axis_rotated?e.value<0?"end":"start":"middle"}).style("stroke","none").style("fill",function(e){return t.color(e)}).style("fill-opacity",0),t.mainText.text(function(e,n,r){return t.dataLabelFormat(e.id)(e.value,e.id,n,r)}),t.mainText.exit().transition().duration(e).style("fill-opacity",0).remove()},f.redrawText=function(e,t,n,r){return[(r?this.mainText.transition():this.mainText).attr("x",e).attr("y",t).style("fill",this.color).style("fill-opacity",n?0:this.opacityForText.bind(this))]},f.getTextRect=function(e,t,n){var r,o=this.d3.select("body").append("div").classed("c3",!0),i=o.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),a=this.d3.select(n).style("font");return i.selectAll(".dummy").data([e]).enter().append("text").classed(t?t:"",!0).style("font",a).text(e).each(function(){r=this.getBoundingClientRect()}),o.remove(),r},f.generateXYForText=function(e,t,n,r){var o=this,i=o.generateGetAreaPoints(e,!1),a=o.generateGetBarPoints(t,!1),s=o.generateGetLinePoints(n,!1),u=r?o.getXForText:o.getYForText;return function(e,t){var n=o.isAreaType(e)?i:o.isBarType(e)?a:s;return u.call(o,n(e,t),e,this)}},f.getXForText=function(e,t,n){var r,o,i=this,a=n.getBoundingClientRect();return i.config.axis_rotated?(o=i.isBarType(t)?4:6,r=e[2][1]+o*(t.value<0?-1:1)):r=i.hasType("bar")?(e[2][0]+e[0][0])/2:e[0][0],null===t.value&&(r>i.width?r=i.width-a.width:r<0&&(r=4)),r},f.getYForText=function(e,t,n){var r,o=this,i=n.getBoundingClientRect();return o.config.axis_rotated?r=(e[0][0]+e[2][0]+.6*i.height)/2:(r=e[2][1],t.value<0||0===t.value&&!o.hasPositiveValue?(r+=i.height,o.isBarType(t)&&o.isSafari()?r-=3:!o.isBarType(t)&&o.isChrome()&&(r+=3)):r+=o.isBarType(t)?-3:-6),null!==t.value||o.config.axis_rotated||(r<i.height?r=i.height:r>this.height&&(r=this.height-4)),r},f.setTargetType=function(e,t){var n=this,r=n.config;n.mapToTargetIds(e).forEach(function(e){n.withoutFadeIn[e]=t===r.data_types[e],r.data_types[e]=t}),e||(r.data_type=t)},f.hasType=function(e,t){var n=this,r=n.config.data_types,o=!1;return t=t||n.data.targets,t&&t.length?t.forEach(function(t){var n=r[t.id];(n&&n.indexOf(e)>=0||!n&&"line"===e)&&(o=!0)}):Object.keys(r).length?Object.keys(r).forEach(function(t){r[t]===e&&(o=!0)}):o=n.config.data_type===e,o},f.hasArcType=function(e){return this.hasType("pie",e)||this.hasType("donut",e)||this.hasType("gauge",e)},f.isLineType=function(e){var t=this.config,n=v(e)?e:e.id;return!t.data_types[n]||["line","spline","area","area-spline","step","area-step"].indexOf(t.data_types[n])>=0},f.isStepType=function(e){var t=v(e)?e:e.id;return["step","area-step"].indexOf(this.config.data_types[t])>=0},f.isSplineType=function(e){var t=v(e)?e:e.id;return["spline","area-spline"].indexOf(this.config.data_types[t])>=0},f.isAreaType=function(e){var t=v(e)?e:e.id;return["area","area-spline","area-step"].indexOf(this.config.data_types[t])>=0},f.isBarType=function(e){var t=v(e)?e:e.id;return"bar"===this.config.data_types[t]},f.isScatterType=function(e){var t=v(e)?e:e.id;return"scatter"===this.config.data_types[t]},f.isPieType=function(e){var t=v(e)?e:e.id;return"pie"===this.config.data_types[t]},f.isGaugeType=function(e){var t=v(e)?e:e.id;return"gauge"===this.config.data_types[t]},f.isDonutType=function(e){var t=v(e)?e:e.id;return"donut"===this.config.data_types[t]},f.isArcType=function(e){return this.isPieType(e)||this.isDonutType(e)||this.isGaugeType(e)},f.lineData=function(e){return this.isLineType(e)?[e]:[]},f.arcData=function(e){return this.isArcType(e.data)?[e]:[]},f.barData=function(e){return this.isBarType(e)?e.values:[]},f.lineOrScatterData=function(e){return this.isLineType(e)||this.isScatterType(e)?e.values:[]},f.barOrLineData=function(e){return this.isBarType(e)||this.isLineType(e)?e.values:[]},f.isInterpolationType=function(e){return["linear","linear-closed","basis","basis-open","basis-closed","bundle","cardinal","cardinal-open","cardinal-closed","monotone"].indexOf(e)>=0},f.initGrid=function(){var e=this,t=e.config,n=e.d3;e.grid=e.main.append("g").attr("clip-path",e.clipPathForGrid).attr("class",g.grid),t.grid_x_show&&e.grid.append("g").attr("class",g.xgrids),t.grid_y_show&&e.grid.append("g").attr("class",g.ygrids),t.grid_focus_show&&e.grid.append("g").attr("class",g.xgridFocus).append("line").attr("class",g.xgridFocus),e.xgrid=n.selectAll([]),t.grid_lines_front||e.initGridLines()},f.initGridLines=function(){var e=this,t=e.d3;e.gridLines=e.main.append("g").attr("clip-path",e.clipPathForGrid).attr("class",g.grid+" "+g.gridLines),e.gridLines.append("g").attr("class",g.xgridLines),e.gridLines.append("g").attr("class",g.ygridLines),e.xgridLines=t.selectAll([])},f.updateXGrid=function(e){var t=this,n=t.config,r=t.d3,o=t.generateGridData(n.grid_x_type,t.x),i=t.isCategorized()?t.xAxis.tickOffset():0;t.xgridAttr=n.axis_rotated?{x1:0,x2:t.width,y1:function(e){return t.x(e)-i},y2:function(e){return t.x(e)-i}}:{x1:function(e){return t.x(e)+i},x2:function(e){return t.x(e)+i},y1:0,y2:t.height},t.xgrid=t.main.select("."+g.xgrids).selectAll("."+g.xgrid).data(o),t.xgrid.enter().append("line").attr("class",g.xgrid),e||t.xgrid.attr(t.xgridAttr).style("opacity",function(){return+r.select(this).attr(n.axis_rotated?"y1":"x1")===(n.axis_rotated?t.height:0)?0:1}),t.xgrid.exit().remove()},f.updateYGrid=function(){var e=this,t=e.config,n=e.yAxis.tickValues()||e.y.ticks(t.grid_y_ticks);e.ygrid=e.main.select("."+g.ygrids).selectAll("."+g.ygrid).data(n),e.ygrid.enter().append("line").attr("class",g.ygrid),e.ygrid.attr("x1",t.axis_rotated?e.y:0).attr("x2",t.axis_rotated?e.y:e.width).attr("y1",t.axis_rotated?0:e.y).attr("y2",t.axis_rotated?e.height:e.y),e.ygrid.exit().remove(),e.smoothLines(e.ygrid,"grid")},f.gridTextAnchor=function(e){return e.position?e.position:"end"},f.gridTextDx=function(e){return"start"===e.position?4:"middle"===e.position?0:-4},f.xGridTextX=function(e){return"start"===e.position?-this.height:"middle"===e.position?-this.height/2:0},f.yGridTextX=function(e){return"start"===e.position?0:"middle"===e.position?this.width/2:this.width},f.updateGrid=function(e){var t,n,r,o=this,i=o.main,a=o.config;o.grid.style("visibility",o.hasArcType()?"hidden":"visible"),i.select("line."+g.xgridFocus).style("visibility","hidden"),a.grid_x_show&&o.updateXGrid(),o.xgridLines=i.select("."+g.xgridLines).selectAll("."+g.xgridLine).data(a.grid_x_lines),t=o.xgridLines.enter().append("g").attr("class",function(e){return g.xgridLine+(e.class?" "+e.class:"")}),t.append("line").style("opacity",0),t.append("text").attr("text-anchor",o.gridTextAnchor).attr("transform",a.axis_rotated?"":"rotate(-90)").attr("dx",o.gridTextDx).attr("dy",-5).style("opacity",0),o.xgridLines.exit().transition().duration(e).style("opacity",0).remove(),a.grid_y_show&&o.updateYGrid(),o.ygridLines=i.select("."+g.ygridLines).selectAll("."+g.ygridLine).data(a.grid_y_lines),n=o.ygridLines.enter().append("g").attr("class",function(e){return g.ygridLine+(e.class?" "+e.class:"")}),n.append("line").style("opacity",0),n.append("text").attr("text-anchor",o.gridTextAnchor).attr("transform",a.axis_rotated?"rotate(-90)":"").attr("dx",o.gridTextDx).attr("dy",-5).style("opacity",0),r=o.yv.bind(o),o.ygridLines.select("line").transition().duration(e).attr("x1",a.axis_rotated?r:0).attr("x2",a.axis_rotated?r:o.width).attr("y1",a.axis_rotated?0:r).attr("y2",a.axis_rotated?o.height:r).style("opacity",1),o.ygridLines.select("text").transition().duration(e).attr("x",a.axis_rotated?o.xGridTextX.bind(o):o.yGridTextX.bind(o)).attr("y",r).text(function(e){return e.text}).style("opacity",1),o.ygridLines.exit().transition().duration(e).style("opacity",0).remove()},f.redrawGrid=function(e){var t=this,n=t.config,r=t.xv.bind(t),o=t.xgridLines.select("line"),i=t.xgridLines.select("text");return[(e?o.transition():o).attr("x1",n.axis_rotated?0:r).attr("x2",n.axis_rotated?t.width:r).attr("y1",n.axis_rotated?r:0).attr("y2",n.axis_rotated?r:t.height).style("opacity",1),(e?i.transition():i).attr("x",n.axis_rotated?t.yGridTextX.bind(t):t.xGridTextX.bind(t)).attr("y",r).text(function(e){return e.text}).style("opacity",1)]},f.showXGridFocus=function(e){var t=this,n=t.config,r=e.filter(function(e){return e&&m(e.value)}),o=t.main.selectAll("line."+g.xgridFocus),i=t.xx.bind(t);n.tooltip_show&&(t.hasType("scatter")||t.hasArcType()||(o.style("visibility","visible").data([r[0]]).attr(n.axis_rotated?"y1":"x1",i).attr(n.axis_rotated?"y2":"x2",i),t.smoothLines(o,"grid")))},f.hideXGridFocus=function(){this.main.select("line."+g.xgridFocus).style("visibility","hidden")},f.updateXgridFocus=function(){var e=this,t=e.config;e.main.select("line."+g.xgridFocus).attr("x1",t.axis_rotated?0:-10).attr("x2",t.axis_rotated?e.width:-10).attr("y1",t.axis_rotated?-10:0).attr("y2",t.axis_rotated?-10:e.height)},f.generateGridData=function(e,t){var n,r,o,i,a=this,s=[],u=a.main.select("."+g.axisX).selectAll(".tick").size();if("year"===e)for(n=a.getXDomain(),r=n[0].getFullYear(),o=n[1].getFullYear(),i=r;i<=o;i++)s.push(new Date(i+"-01-01 00:00:00"));else s=t.ticks(10),s.length>u&&(s=s.filter(function(e){return(""+e).indexOf(".")<0}));return s},f.getGridFilterToRemove=function(e){return e?function(t){var n=!1;return[].concat(e).forEach(function(e){("value"in e&&t.value===e.value||"class"in e&&t.class===e.class)&&(n=!0)}),n}:function(){return!0}},f.removeGridLines=function(e,t){var n=this,r=n.config,o=n.getGridFilterToRemove(e),i=function(e){return!o(e)},a=t?g.xgridLines:g.ygridLines,s=t?g.xgridLine:g.ygridLine;n.main.select("."+a).selectAll("."+s).filter(o).transition().duration(r.transition_duration).style("opacity",0).remove(),t?r.grid_x_lines=r.grid_x_lines.filter(i):r.grid_y_lines=r.grid_y_lines.filter(i)},f.initTooltip=function(){var e,t=this,n=t.config;if(t.tooltip=t.selectChart.style("position","relative").append("div").attr("class",g.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),n.tooltip_init_show){if(t.isTimeSeries()&&v(n.tooltip_init_x)){for(n.tooltip_init_x=t.parseDate(n.tooltip_init_x),e=0;e<t.data.targets[0].values.length&&t.data.targets[0].values[e].x-n.tooltip_init_x!==0;e++);n.tooltip_init_x=e}t.tooltip.html(n.tooltip_contents.call(t,t.data.targets.map(function(e){return t.addName(e.values[n.tooltip_init_x])}),t.axis.getXAxisTickFormat(),t.getYFormat(t.hasArcType()),t.color)),t.tooltip.style("top",n.tooltip_init_position.top).style("left",n.tooltip_init_position.left).style("display","block")}},f.getTooltipContent=function(e,t,n,r){var o,i,a,s,u,c,l=this,p=l.config,f=p.tooltip_format_title||t,d=p.tooltip_format_name||function(e){return e},h=p.tooltip_format_value||n,g=l.isOrderAsc();if(0===p.data_groups.length)e.sort(function(e,t){var n=e?e.value:null,r=t?t.value:null;return g?n-r:r-n});else{var m=l.orderTargets(l.data.targets).map(function(e){return e.id});e.sort(function(e,t){var n=e?e.value:null,r=t?t.value:null;return n>0&&r>0&&(n=e?m.indexOf(e.id):null,r=t?m.indexOf(t.id):null),g?n-r:r-n})}for(i=0;i<e.length;i++)if(e[i]&&(e[i].value||0===e[i].value)&&(o||(a=P(f?f(e[i].x):e[i].x),o="<table class='"+l.CLASS.tooltip+"'>"+(a||0===a?"<tr><th colspan='2'>"+a+"</th></tr>":"")),s=P(h(e[i].value,e[i].ratio,e[i].id,e[i].index,e)),void 0!==s)){if(null===e[i].name)continue;u=P(d(e[i].name,e[i].ratio,e[i].id,e[i].index)),c=l.levelColor?l.levelColor(e[i].value):r(e[i].id),o+="<tr class='"+l.CLASS.tooltipName+"-"+l.getTargetSelectorSuffix(e[i].id)+"'>",o+="<td class='name'><span style='background-color:"+c+"'></span>"+u+"</td>",o+="<td class='value'>"+s+"</td>",o+="</tr>"}return o+"</table>"},f.tooltipPosition=function(e,t,n,r){var o,i,a,s,u,c=this,l=c.config,p=c.d3,f=c.hasArcType(),d=p.mouse(r);return f?(i=(c.width-(c.isLegendRight?c.getLegendWidth():0))/2+d[0],s=c.height/2+d[1]+20):(o=c.getSvgLeft(!0),l.axis_rotated?(i=o+d[0]+100,a=i+t,u=c.currentWidth-c.getCurrentPaddingRight(),s=c.x(e[0].x)+20):(i=o+c.getCurrentPaddingLeft(!0)+c.x(e[0].x)+20,a=i+t,u=o+c.currentWidth-c.getCurrentPaddingRight(),s=d[1]+15),a>u&&(i-=a-u+20),s+n>c.currentHeight&&(s-=n+30)),s<0&&(s=0),{top:s,left:i}},f.showTooltip=function(e,t){var n,r,o,i=this,a=i.config,s=i.hasArcType(),u=e.filter(function(e){return e&&m(e.value)}),c=a.tooltip_position||f.tooltipPosition;0!==u.length&&a.tooltip_show&&(i.tooltip.html(a.tooltip_contents.call(i,e,i.axis.getXAxisTickFormat(),i.getYFormat(s),i.color)).style("display","block"),n=i.tooltip.property("offsetWidth"),r=i.tooltip.property("offsetHeight"),o=c.call(this,u,n,r,t),i.tooltip.style("top",o.top+"px").style("left",o.left+"px"))},f.hideTooltip=function(){this.tooltip.style("display","none")},f.initLegend=function(){var e=this;return e.legendItemTextBox={},e.legendHasRendered=!1,e.legend=e.svg.append("g").attr("transform",e.getTranslate("legend")),e.config.legend_show?void e.updateLegendWithDefaults():(e.legend.style("visibility","hidden"),void(e.hiddenLegendIds=e.mapToIds(e.data.targets)))},f.updateLegendWithDefaults=function(){var e=this;e.updateLegend(e.mapToIds(e.data.targets),{withTransform:!1,withTransitionForTransform:!1,withTransition:!1})},f.updateSizeForLegend=function(e,t){var n=this,r=n.config,o={top:n.isLegendTop?n.getCurrentPaddingTop()+r.legend_inset_y+5.5:n.currentHeight-e-n.getCurrentPaddingBottom()-r.legend_inset_y,left:n.isLegendLeft?n.getCurrentPaddingLeft()+r.legend_inset_x+.5:n.currentWidth-t-n.getCurrentPaddingRight()-r.legend_inset_x+.5};n.margin3={top:n.isLegendRight?0:n.isLegendInset?o.top:n.currentHeight-e,right:NaN,bottom:0,left:n.isLegendRight?n.currentWidth-t:n.isLegendInset?o.left:0}},f.transformLegend=function(e){var t=this;(e?t.legend.transition():t.legend).attr("transform",t.getTranslate("legend"))},f.updateLegendStep=function(e){this.legendStep=e},f.updateLegendItemWidth=function(e){this.legendItemWidth=e},f.updateLegendItemHeight=function(e){this.legendItemHeight=e},f.getLegendWidth=function(){var e=this;return e.config.legend_show?e.isLegendRight||e.isLegendInset?e.legendItemWidth*(e.legendStep+1):e.currentWidth:0;
|
12 |
-
},f.getLegendHeight=function(){var e=this,t=0;return e.config.legend_show&&(t=e.isLegendRight?e.currentHeight:Math.max(20,e.legendItemHeight)*(e.legendStep+1)),t},f.opacityForLegend=function(e){return e.classed(g.legendItemHidden)?null:1},f.opacityForUnfocusedLegend=function(e){return e.classed(g.legendItemHidden)?null:.3},f.toggleFocusLegend=function(e,t){var n=this;e=n.mapToTargetIds(e),n.legend.selectAll("."+g.legendItem).filter(function(t){return e.indexOf(t)>=0}).classed(g.legendItemFocused,t).transition().duration(100).style("opacity",function(){var e=t?n.opacityForLegend:n.opacityForUnfocusedLegend;return e.call(n,n.d3.select(this))})},f.revertLegend=function(){var e=this,t=e.d3;e.legend.selectAll("."+g.legendItem).classed(g.legendItemFocused,!1).transition().duration(100).style("opacity",function(){return e.opacityForLegend(t.select(this))})},f.showLegend=function(e){var t=this,n=t.config;n.legend_show||(n.legend_show=!0,t.legend.style("visibility","visible"),t.legendHasRendered||t.updateLegendWithDefaults()),t.removeHiddenLegendIds(e),t.legend.selectAll(t.selectorLegends(e)).style("visibility","visible").transition().style("opacity",function(){return t.opacityForLegend(t.d3.select(this))})},f.hideLegend=function(e){var t=this,n=t.config;n.legend_show&&w(e)&&(n.legend_show=!1,t.legend.style("visibility","hidden")),t.addHiddenLegendIds(e),t.legend.selectAll(t.selectorLegends(e)).style("opacity",0).style("visibility","hidden")},f.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},f.updateLegend=function(e,t,n){function r(e,t){return C.legendItemTextBox[t]||(C.legendItemTextBox[t]=C.getTextRect(e.textContent,g.legendItem,e)),C.legendItemTextBox[t]}function o(t,n,o){function i(e,t){t||(a=(h-M-d)/2,a<N&&(a=(h-d)/2,M=0,F++)),j[e]=F,k[F]=C.isLegendInset?10:a,D[e]=M,M+=d}var a,s,u=0===o,c=o===e.length-1,l=r(t,n),p=l.width+A+(!c||C.isLegendRight||C.isLegendInset?T:0)+w.legend_padding,f=l.height+S,d=C.isLegendRight||C.isLegendInset?f:p,h=C.isLegendRight||C.isLegendInset?C.getLegendHeight():C.getLegendWidth();return u&&(M=0,F=0,P=0,R=0),w.legend_show&&!C.isLegendToShow(n)?void(I[n]=L[n]=j[n]=D[n]=0):(I[n]=p,L[n]=f,(!P||p>=P)&&(P=p),(!R||f>=R)&&(R=f),s=C.isLegendRight||C.isLegendInset?R:P,void(w.legend_equally?(Object.keys(I).forEach(function(e){I[e]=P}),Object.keys(L).forEach(function(e){L[e]=R}),a=(h-s*e.length)/2,a<N?(M=0,F=0,e.forEach(function(e){i(e)})):i(n,!0)):i(n)))}var i,a,s,u,c,l,p,f,d,h,m,y,v,_,E,x,C=this,w=C.config,S=4,T=10,P=0,R=0,N=10,A=w.legend_item_tile_width+5,M=0,D={},I={},L={},k=[0],j={},F=0;e=e.filter(function(e){return!b(w.data_names[e])||null!==w.data_names[e]}),t=t||{},m=O(t,"withTransition",!0),y=O(t,"withTransitionForTransform",!0),C.isLegendInset&&(F=w.legend_inset_step?w.legend_inset_step:e.length,C.updateLegendStep(F)),C.isLegendRight?(i=function(e){return P*j[e]},u=function(e){return k[j[e]]+D[e]}):C.isLegendInset?(i=function(e){return P*j[e]+10},u=function(e){return k[j[e]]+D[e]}):(i=function(e){return k[j[e]]+D[e]},u=function(e){return R*j[e]}),a=function(e,t){return i(e,t)+4+w.legend_item_tile_width},c=function(e,t){return u(e,t)+9},s=function(e,t){return i(e,t)},l=function(e,t){return u(e,t)-5},p=function(e,t){return i(e,t)-2},f=function(e,t){return i(e,t)-2+w.legend_item_tile_width},d=function(e,t){return u(e,t)+4},h=C.legend.selectAll("."+g.legendItem).data(e).enter().append("g").attr("class",function(e){return C.generateClass(g.legendItem,e)}).style("visibility",function(e){return C.isLegendToShow(e)?"visible":"hidden"}).style("cursor","pointer").on("click",function(e){w.legend_item_onclick?w.legend_item_onclick.call(C,e):C.d3.event.altKey?(C.api.hide(),C.api.show(e)):(C.api.toggle(e),C.isTargetToShow(e)?C.api.focus(e):C.api.revert())}).on("mouseover",function(e){w.legend_item_onmouseover?w.legend_item_onmouseover.call(C,e):(C.d3.select(this).classed(g.legendItemFocused,!0),!C.transiting&&C.isTargetToShow(e)&&C.api.focus(e))}).on("mouseout",function(e){w.legend_item_onmouseout?w.legend_item_onmouseout.call(C,e):(C.d3.select(this).classed(g.legendItemFocused,!1),C.api.revert())}),h.append("text").text(function(e){return b(w.data_names[e])?w.data_names[e]:e}).each(function(e,t){o(this,e,t)}).style("pointer-events","none").attr("x",C.isLegendRight||C.isLegendInset?a:-200).attr("y",C.isLegendRight||C.isLegendInset?-200:c),h.append("rect").attr("class",g.legendItemEvent).style("fill-opacity",0).attr("x",C.isLegendRight||C.isLegendInset?s:-200).attr("y",C.isLegendRight||C.isLegendInset?-200:l),h.append("line").attr("class",g.legendItemTile).style("stroke",C.color).style("pointer-events","none").attr("x1",C.isLegendRight||C.isLegendInset?p:-200).attr("y1",C.isLegendRight||C.isLegendInset?-200:d).attr("x2",C.isLegendRight||C.isLegendInset?f:-200).attr("y2",C.isLegendRight||C.isLegendInset?-200:d).attr("stroke-width",w.legend_item_tile_height),x=C.legend.select("."+g.legendBackground+" rect"),C.isLegendInset&&P>0&&0===x.size()&&(x=C.legend.insert("g","."+g.legendItem).attr("class",g.legendBackground).append("rect")),v=C.legend.selectAll("text").data(e).text(function(e){return b(w.data_names[e])?w.data_names[e]:e}).each(function(e,t){o(this,e,t)}),(m?v.transition():v).attr("x",a).attr("y",c),_=C.legend.selectAll("rect."+g.legendItemEvent).data(e),(m?_.transition():_).attr("width",function(e){return I[e]}).attr("height",function(e){return L[e]}).attr("x",s).attr("y",l),E=C.legend.selectAll("line."+g.legendItemTile).data(e),(m?E.transition():E).style("stroke",C.color).attr("x1",p).attr("y1",d).attr("x2",f).attr("y2",d),x&&(m?x.transition():x).attr("height",C.getLegendHeight()-12).attr("width",P*(F+1)+10),C.legend.selectAll("."+g.legendItem).classed(g.legendItemHidden,function(e){return!C.isTargetToShow(e)}),C.updateLegendItemWidth(P),C.updateLegendItemHeight(R),C.updateLegendStep(F),C.updateSizes(),C.updateScales(),C.updateSvgSize(),C.transformAll(y,n),C.legendHasRendered=!0},f.initTitle=function(){var e=this;e.title=e.svg.append("text").text(e.config.title_text).attr("class",e.CLASS.title)},f.redrawTitle=function(){var e=this;e.title.attr("x",e.xForTitle.bind(e)).attr("y",e.yForTitle.bind(e))},f.xForTitle=function(){var e,t=this,n=t.config,r=n.title_position||"left";return e=r.indexOf("right")>=0?t.currentWidth-t.getTextRect(t.title.node().textContent,t.CLASS.title,t.title.node()).width-n.title_padding.right:r.indexOf("center")>=0?(t.currentWidth-t.getTextRect(t.title.node().textContent,t.CLASS.title,t.title.node()).width)/2:n.title_padding.left},f.yForTitle=function(){var e=this;return e.config.title_padding.top+e.getTextRect(e.title.node().textContent,e.CLASS.title,e.title.node()).height},f.getTitlePadding=function(){var e=this;return e.yForTitle()+e.config.title_padding.bottom},a(i,c),c.prototype.init=function(){var e=this.owner,t=e.config,n=e.main;e.axes.x=n.append("g").attr("class",g.axis+" "+g.axisX).attr("clip-path",e.clipPathForXAxis).attr("transform",e.getTranslate("x")).style("visibility",t.axis_x_show?"visible":"hidden"),e.axes.x.append("text").attr("class",g.axisXLabel).attr("transform",t.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this)),e.axes.y=n.append("g").attr("class",g.axis+" "+g.axisY).attr("clip-path",t.axis_y_inner?"":e.clipPathForYAxis).attr("transform",e.getTranslate("y")).style("visibility",t.axis_y_show?"visible":"hidden"),e.axes.y.append("text").attr("class",g.axisYLabel).attr("transform",t.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this)),e.axes.y2=n.append("g").attr("class",g.axis+" "+g.axisY2).attr("transform",e.getTranslate("y2")).style("visibility",t.axis_y2_show?"visible":"hidden"),e.axes.y2.append("text").attr("class",g.axisY2Label).attr("transform",t.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},c.prototype.getXAxis=function(e,t,n,r,o,i,a){var s=this.owner,u=s.config,c={isCategory:s.isCategorized(),withOuterTick:o,tickMultiline:u.axis_x_tick_multiline,tickWidth:u.axis_x_tick_width,tickTextRotate:a?0:u.axis_x_tick_rotate,withoutTransition:i},p=l(s.d3,c).scale(e).orient(t);return s.isTimeSeries()&&r&&"function"!=typeof r&&(r=r.map(function(e){return s.parseDate(e)})),p.tickFormat(n).tickValues(r),s.isCategorized()&&(p.tickCentered(u.axis_x_tick_centered),w(u.axis_x_tick_culling)&&(u.axis_x_tick_culling=!1)),p},c.prototype.updateXAxisTickValues=function(e,t){var n,r=this.owner,o=r.config;return(o.axis_x_tick_fit||o.axis_x_tick_count)&&(n=this.generateTickValues(r.mapTargetsToUniqueXs(e),o.axis_x_tick_count,r.isTimeSeries())),t?t.tickValues(n):(r.xAxis.tickValues(n),r.subXAxis.tickValues(n)),n},c.prototype.getYAxis=function(e,t,n,r,o,i,a){var s=this.owner,u=s.config,c={withOuterTick:o,withoutTransition:i,tickTextRotate:a?0:u.axis_y_tick_rotate},p=l(s.d3,c).scale(e).orient(t).tickFormat(n);return s.isTimeSeriesY()?p.ticks(s.d3.time[u.axis_y_tick_time_value],u.axis_y_tick_time_interval):p.tickValues(r),p},c.prototype.getId=function(e){var t=this.owner.config;return e in t.data_axes?t.data_axes[e]:"y"},c.prototype.getXAxisTickFormat=function(){var e=this.owner,t=e.config,n=e.isTimeSeries()?e.defaultAxisTimeFormat:e.isCategorized()?e.categoryName:function(e){return e<0?e.toFixed(0):e};return t.axis_x_tick_format&&(y(t.axis_x_tick_format)?n=t.axis_x_tick_format:e.isTimeSeries()&&(n=function(n){return n?e.axisTimeFormat(t.axis_x_tick_format)(n):""})),y(n)?function(t){return n.call(e,t)}:n},c.prototype.getTickValues=function(e,t){return e?e:t?t.tickValues():void 0},c.prototype.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},c.prototype.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},c.prototype.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},c.prototype.getLabelOptionByAxisId=function(e){var t,n=this.owner,r=n.config;return"y"===e?t=r.axis_y_label:"y2"===e?t=r.axis_y2_label:"x"===e&&(t=r.axis_x_label),t},c.prototype.getLabelText=function(e){var t=this.getLabelOptionByAxisId(e);return v(t)?t:t?t.text:null},c.prototype.setLabelText=function(e,t){var n=this.owner,r=n.config,o=this.getLabelOptionByAxisId(e);v(o)?"y"===e?r.axis_y_label=t:"y2"===e?r.axis_y2_label=t:"x"===e&&(r.axis_x_label=t):o&&(o.text=t)},c.prototype.getLabelPosition=function(e,t){var n=this.getLabelOptionByAxisId(e),r=n&&"object"==typeof n&&n.position?n.position:t;return{isInner:r.indexOf("inner")>=0,isOuter:r.indexOf("outer")>=0,isLeft:r.indexOf("left")>=0,isCenter:r.indexOf("center")>=0,isRight:r.indexOf("right")>=0,isTop:r.indexOf("top")>=0,isMiddle:r.indexOf("middle")>=0,isBottom:r.indexOf("bottom")>=0}},c.prototype.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner-right")},c.prototype.getYAxisLabelPosition=function(){return this.getLabelPosition("y",this.owner.config.axis_rotated?"inner-right":"inner-top")},c.prototype.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},c.prototype.getLabelPositionById=function(e){return"y2"===e?this.getY2AxisLabelPosition():"y"===e?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},c.prototype.textForXAxisLabel=function(){return this.getLabelText("x")},c.prototype.textForYAxisLabel=function(){return this.getLabelText("y")},c.prototype.textForY2AxisLabel=function(){return this.getLabelText("y2")},c.prototype.xForAxisLabel=function(e,t){var n=this.owner;return e?t.isLeft?0:t.isCenter?n.width/2:n.width:t.isBottom?-n.height:t.isMiddle?-n.height/2:0},c.prototype.dxForAxisLabel=function(e,t){return e?t.isLeft?"0.5em":t.isRight?"-0.5em":"0":t.isTop?"-0.5em":t.isBottom?"0.5em":"0"},c.prototype.textAnchorForAxisLabel=function(e,t){return e?t.isLeft?"start":t.isCenter?"middle":"end":t.isBottom?"start":t.isMiddle?"middle":"end"},c.prototype.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},c.prototype.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},c.prototype.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},c.prototype.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},c.prototype.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},c.prototype.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},c.prototype.dyForXAxisLabel=function(){var e=this.owner,t=e.config,n=this.getXAxisLabelPosition();return t.axis_rotated?n.isInner?"1.2em":-25-this.getMaxTickWidth("x"):n.isInner?"-0.5em":t.axis_x_height?t.axis_x_height-10:"3em"},c.prototype.dyForYAxisLabel=function(){var e=this.owner,t=this.getYAxisLabelPosition();return e.config.axis_rotated?t.isInner?"-0.5em":"3em":t.isInner?"1.2em":-10-(e.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},c.prototype.dyForY2AxisLabel=function(){var e=this.owner,t=this.getY2AxisLabelPosition();return e.config.axis_rotated?t.isInner?"1.2em":"-2.2em":t.isInner?"-0.5em":15+(e.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},c.prototype.textAnchorForXAxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(!e.config.axis_rotated,this.getXAxisLabelPosition())},c.prototype.textAnchorForYAxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(e.config.axis_rotated,this.getYAxisLabelPosition())},c.prototype.textAnchorForY2AxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(e.config.axis_rotated,this.getY2AxisLabelPosition())},c.prototype.getMaxTickWidth=function(e,t){var n,r,o,i,a,s=this.owner,u=s.config,c=0;return t&&s.currentMaxTickWidths[e]?s.currentMaxTickWidths[e]:(s.svg&&(n=s.filterTargetsToShow(s.data.targets),"y"===e?(r=s.y.copy().domain(s.getYDomain(n,"y")),o=this.getYAxis(r,s.yOrient,u.axis_y_tick_format,s.yAxisTickValues,!1,!0,!0)):"y2"===e?(r=s.y2.copy().domain(s.getYDomain(n,"y2")),o=this.getYAxis(r,s.y2Orient,u.axis_y2_tick_format,s.y2AxisTickValues,!1,!0,!0)):(r=s.x.copy().domain(s.getXDomain(n)),o=this.getXAxis(r,s.xOrient,s.xAxisTickFormat,s.xAxisTickValues,!1,!0,!0),this.updateXAxisTickValues(n,o)),i=s.d3.select("body").append("div").classed("c3",!0),a=i.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),a.append("g").call(o).each(function(){s.d3.select(this).selectAll("text").each(function(){var e=this.getBoundingClientRect();c<e.width&&(c=e.width)}),i.remove()})),s.currentMaxTickWidths[e]=c<=0?s.currentMaxTickWidths[e]:c,s.currentMaxTickWidths[e])},c.prototype.updateLabels=function(e){var t=this.owner,n=t.main.select("."+g.axisX+" ."+g.axisXLabel),r=t.main.select("."+g.axisY+" ."+g.axisYLabel),o=t.main.select("."+g.axisY2+" ."+g.axisY2Label);(e?n.transition():n).attr("x",this.xForXAxisLabel.bind(this)).attr("dx",this.dxForXAxisLabel.bind(this)).attr("dy",this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this)),(e?r.transition():r).attr("x",this.xForYAxisLabel.bind(this)).attr("dx",this.dxForYAxisLabel.bind(this)).attr("dy",this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this)),(e?o.transition():o).attr("x",this.xForY2AxisLabel.bind(this)).attr("dx",this.dxForY2AxisLabel.bind(this)).attr("dy",this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this))},c.prototype.getPadding=function(e,t,n,r){var o="number"==typeof e?e:e[t];return m(o)?"ratio"===e.unit?e[t]*r:this.convertPixelsToAxisPadding(o,r):n},c.prototype.convertPixelsToAxisPadding=function(e,t){var n=this.owner,r=n.config.axis_rotated?n.width:n.height;return t*(e/r)},c.prototype.generateTickValues=function(e,t,n){var r,o,i,a,s,u,c,l=e;if(t)if(r=y(t)?t():t,1===r)l=[e[0]];else if(2===r)l=[e[0],e[e.length-1]];else if(r>2){for(a=r-2,o=e[0],i=e[e.length-1],s=(i-o)/(a+1),l=[o],u=0;u<a;u++)c=+o+s*(u+1),l.push(n?new Date(c):c);l.push(i)}return n||(l=l.sort(function(e,t){return e-t})),l},c.prototype.generateTransitions=function(e){var t=this.owner,n=t.axes;return{axisX:e?n.x.transition().duration(e):n.x,axisY:e?n.y.transition().duration(e):n.y,axisY2:e?n.y2.transition().duration(e):n.y2,axisSubX:e?n.subx.transition().duration(e):n.subx}},c.prototype.redraw=function(e,t){var n=this.owner;n.axes.x.style("opacity",t?0:1),n.axes.y.style("opacity",t?0:1),n.axes.y2.style("opacity",t?0:1),n.axes.subx.style("opacity",t?0:1),e.axisX.call(n.xAxis),e.axisY.call(n.yAxis),e.axisY2.call(n.y2Axis),e.axisSubX.call(n.subXAxis)},f.getClipPath=function(e){var t=o.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0;return"url("+(t?"":document.URL.split("#")[0])+"#"+e+")"},f.appendClip=function(e,t){return e.append("clipPath").attr("id",t).append("rect")},f.getAxisClipX=function(e){var t=Math.max(30,this.margin.left);return e?-(1+t):-(t-1)},f.getAxisClipY=function(e){return e?-20:-this.margin.top},f.getXAxisClipX=function(){var e=this;return e.getAxisClipX(!e.config.axis_rotated)},f.getXAxisClipY=function(){var e=this;return e.getAxisClipY(!e.config.axis_rotated)},f.getYAxisClipX=function(){var e=this;return e.config.axis_y_inner?-1:e.getAxisClipX(e.config.axis_rotated)},f.getYAxisClipY=function(){var e=this;return e.getAxisClipY(e.config.axis_rotated)},f.getAxisClipWidth=function(e){var t=this,n=Math.max(30,t.margin.left),r=Math.max(30,t.margin.right);return e?t.width+2+n+r:t.margin.left+20},f.getAxisClipHeight=function(e){return(e?this.margin.bottom:this.margin.top+this.height)+20},f.getXAxisClipWidth=function(){var e=this;return e.getAxisClipWidth(!e.config.axis_rotated)},f.getXAxisClipHeight=function(){var e=this;return e.getAxisClipHeight(!e.config.axis_rotated)},f.getYAxisClipWidth=function(){var e=this;return e.getAxisClipWidth(e.config.axis_rotated)+(e.config.axis_y_inner?20:0)},f.getYAxisClipHeight=function(){var e=this;return e.getAxisClipHeight(e.config.axis_rotated)},f.initPie=function(){var e=this,t=e.d3,n=e.config;e.pie=t.layout.pie().value(function(e){return e.values.reduce(function(e,t){return e+t.value},0)}),n.data_order||e.pie.sort(null)},f.updateRadius=function(){var e=this,t=e.config,n=t.gauge_width||t.donut_width;e.radiusExpanded=Math.min(e.arcWidth,e.arcHeight)/2,e.radius=.95*e.radiusExpanded,e.innerRadiusRatio=n?(e.radius-n)/e.radius:.6,e.innerRadius=e.hasType("donut")||e.hasType("gauge")?e.radius*e.innerRadiusRatio:0},f.updateArc=function(){var e=this;e.svgArc=e.getSvgArc(),e.svgArcExpanded=e.getSvgArcExpanded(),e.svgArcExpandedSub=e.getSvgArcExpanded(.98)},f.updateAngle=function(e){var t,n,r,o,i=this,a=i.config,s=!1,u=0;return a?(i.pie(i.filterTargetsToShow(i.data.targets)).forEach(function(t){s||t.data.id!==e.data.id||(s=!0,e=t,e.index=u),u++}),isNaN(e.startAngle)&&(e.startAngle=0),isNaN(e.endAngle)&&(e.endAngle=e.startAngle),i.isGaugeType(e.data)&&(t=a.gauge_min,n=a.gauge_max,r=Math.PI*(a.gauge_fullCircle?2:1)/(n-t),o=e.value<t?0:e.value<n?e.value-t:n-t,e.startAngle=a.gauge_startingAngle,e.endAngle=e.startAngle+r*o),s?e:null):null},f.getSvgArc=function(){var e=this,t=e.d3.svg.arc().outerRadius(e.radius).innerRadius(e.innerRadius),n=function(n,r){var o;return r?t(n):(o=e.updateAngle(n),o?t(o):"M 0 0")};return n.centroid=t.centroid,n},f.getSvgArcExpanded=function(e){var t=this,n=t.d3.svg.arc().outerRadius(t.radiusExpanded*(e?e:1)).innerRadius(t.innerRadius);return function(e){var r=t.updateAngle(e);return r?n(r):"M 0 0"}},f.getArc=function(e,t,n){return n||this.isArcType(e.data)?this.svgArc(e,t):"M 0 0"},f.transformForArcLabel=function(e){var t,n,r,o,i,a=this,s=a.config,u=a.updateAngle(e),c="";return u&&!a.hasType("gauge")&&(t=this.svgArc.centroid(u),n=isNaN(t[0])?0:t[0],r=isNaN(t[1])?0:t[1],o=Math.sqrt(n*n+r*r),i=a.hasType("donut")&&s.donut_label_ratio?y(s.donut_label_ratio)?s.donut_label_ratio(e,a.radius,o):s.donut_label_ratio:a.hasType("pie")&&s.pie_label_ratio?y(s.pie_label_ratio)?s.pie_label_ratio(e,a.radius,o):s.pie_label_ratio:a.radius&&o?(36/a.radius>.375?1.175-36/a.radius:.8)*a.radius/o:0,c="translate("+n*i+","+r*i+")"),c},f.getArcRatio=function(e){var t=this,n=t.config,r=Math.PI*(t.hasType("gauge")&&!n.gauge_fullCircle?1:2);return e?(e.endAngle-e.startAngle)/r:null},f.convertToArcData=function(e){return this.addName({id:e.data.id,value:e.value,ratio:this.getArcRatio(e),index:e.index})},f.textForArcLabel=function(e){var t,n,r,o,i,a=this;return a.shouldShowArcLabel()?(t=a.updateAngle(e),n=t?t.value:null,r=a.getArcRatio(t),o=e.data.id,a.hasType("gauge")||a.meetsArcLabelThreshold(r)?(i=a.getArcLabelFormat(),i?i(n,r,o):a.defaultArcValueFormat(n,r)):""):""},f.expandArc=function(e){var t,n=this;return n.transiting?void(t=o.setInterval(function(){n.transiting||(o.clearInterval(t),n.legend.selectAll(".c3-legend-item-focused").size()>0&&n.expandArc(e))},10)):(e=n.mapToTargetIds(e),void n.svg.selectAll(n.selectorTargets(e,"."+g.chartArc)).each(function(e){n.shouldExpand(e.data.id)&&n.d3.select(this).selectAll("path").transition().duration(n.expandDuration(e.data.id)).attr("d",n.svgArcExpanded).transition().duration(2*n.expandDuration(e.data.id)).attr("d",n.svgArcExpandedSub).each(function(e){n.isDonutType(e.data)})}))},f.unexpandArc=function(e){var t=this;t.transiting||(e=t.mapToTargetIds(e),t.svg.selectAll(t.selectorTargets(e,"."+g.chartArc)).selectAll("path").transition().duration(function(e){return t.expandDuration(e.data.id)}).attr("d",t.svgArc),t.svg.selectAll("."+g.arc).style("opacity",1))},f.expandDuration=function(e){var t=this,n=t.config;return t.isDonutType(e)?n.donut_expand_duration:t.isGaugeType(e)?n.gauge_expand_duration:t.isPieType(e)?n.pie_expand_duration:50},f.shouldExpand=function(e){var t=this,n=t.config;return t.isDonutType(e)&&n.donut_expand||t.isGaugeType(e)&&n.gauge_expand||t.isPieType(e)&&n.pie_expand},f.shouldShowArcLabel=function(){var e=this,t=e.config,n=!0;return e.hasType("donut")?n=t.donut_label_show:e.hasType("pie")&&(n=t.pie_label_show),n},f.meetsArcLabelThreshold=function(e){var t=this,n=t.config,r=t.hasType("donut")?n.donut_label_threshold:n.pie_label_threshold;return e>=r},f.getArcLabelFormat=function(){var e=this,t=e.config,n=t.pie_label_format;return e.hasType("gauge")?n=t.gauge_label_format:e.hasType("donut")&&(n=t.donut_label_format),n},f.getArcTitle=function(){var e=this;return e.hasType("donut")?e.config.donut_title:""},f.updateTargetsForArc=function(e){var t,n,r=this,o=r.main,i=r.classChartArc.bind(r),a=r.classArcs.bind(r),s=r.classFocus.bind(r);t=o.select("."+g.chartArcs).selectAll("."+g.chartArc).data(r.pie(e)).attr("class",function(e){return i(e)+s(e.data)}),n=t.enter().append("g").attr("class",i),n.append("g").attr("class",a),n.append("text").attr("dy",r.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},f.initArc=function(){var e=this;e.arcs=e.main.select("."+g.chart).append("g").attr("class",g.chartArcs).attr("transform",e.getTranslate("arc")),e.arcs.append("text").attr("class",g.chartArcsTitle).style("text-anchor","middle").text(e.getArcTitle())},f.redrawArc=function(e,t,n){var r,o=this,i=o.d3,a=o.config,s=o.main;r=s.selectAll("."+g.arcs).selectAll("."+g.arc).data(o.arcData.bind(o)),r.enter().append("path").attr("class",o.classArc.bind(o)).style("fill",function(e){return o.color(e.data)}).style("cursor",function(e){return a.interaction_enabled&&a.data_selection_isselectable(e)?"pointer":null}).style("opacity",0).each(function(e){o.isGaugeType(e.data)&&(e.startAngle=e.endAngle=a.gauge_startingAngle),this._current=e}),r.attr("transform",function(e){return!o.isGaugeType(e.data)&&n?"scale(0)":""}).style("opacity",function(e){return e===this._current?0:1}).on("mouseover",a.interaction_enabled?function(e){var t,n;o.transiting||(t=o.updateAngle(e),t&&(n=o.convertToArcData(t),o.expandArc(t.data.id),o.api.focus(t.data.id),o.toggleFocusLegend(t.data.id,!0),o.config.data_onmouseover(n,this)))}:null).on("mousemove",a.interaction_enabled?function(e){var t,n,r=o.updateAngle(e);r&&(t=o.convertToArcData(r),n=[t],o.showTooltip(n,this))}:null).on("mouseout",a.interaction_enabled?function(e){var t,n;o.transiting||(t=o.updateAngle(e),t&&(n=o.convertToArcData(t),o.unexpandArc(t.data.id),o.api.revert(),o.revertLegend(),o.hideTooltip(),o.config.data_onmouseout(n,this)))}:null).on("click",a.interaction_enabled?function(e,t){var n,r=o.updateAngle(e);r&&(n=o.convertToArcData(r),o.toggleShape&&o.toggleShape(this,n,t),o.config.data_onclick.call(o.api,n,this))}:null).each(function(){o.transiting=!0}).transition().duration(e).attrTween("d",function(e){var t,n=o.updateAngle(e);return n?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle),t=i.interpolate(this._current,n),this._current=t(0),function(n){var r=t(n);return r.data=e.data,o.getArc(r,!0)}):function(){return"M 0 0"}}).attr("transform",n?"scale(1)":"").style("fill",function(e){return o.levelColor?o.levelColor(e.data.values[0].value):o.color(e.data.id)}).style("opacity",1).call(o.endall,function(){o.transiting=!1}),r.exit().transition().duration(t).style("opacity",0).remove(),s.selectAll("."+g.chartArc).select("text").style("opacity",0).attr("class",function(e){return o.isGaugeType(e.data)?g.gaugeValue:""}).text(o.textForArcLabel.bind(o)).attr("transform",o.transformForArcLabel.bind(o)).style("font-size",function(e){return o.isGaugeType(e.data)?Math.round(o.radius/5)+"px":""}).transition().duration(e).style("opacity",function(e){return o.isTargetToShow(e.data.id)&&o.isArcType(e.data)?1:0}),s.select("."+g.chartArcsTitle).style("opacity",o.hasType("donut")||o.hasType("gauge")?1:0),o.hasType("gauge")&&(o.arcs.select("."+g.chartArcsBackground).attr("d",function(){var e={data:[{value:a.gauge_max}],startAngle:a.gauge_startingAngle,endAngle:-1*a.gauge_startingAngle};return o.getArc(e,!0,!0)}),o.arcs.select("."+g.chartArcsGaugeUnit).attr("dy",".75em").text(a.gauge_label_show?a.gauge_units:""),o.arcs.select("."+g.chartArcsGaugeMin).attr("dx",-1*(o.innerRadius+(o.radius-o.innerRadius)/(a.gauge_fullCircle?1:2))+"px").attr("dy","1.2em").text(a.gauge_label_show?a.gauge_min:""),o.arcs.select("."+g.chartArcsGaugeMax).attr("dx",o.innerRadius+(o.radius-o.innerRadius)/(a.gauge_fullCircle?1:2)+"px").attr("dy","1.2em").text(a.gauge_label_show?a.gauge_max:""))},f.initGauge=function(){var e=this.arcs;this.hasType("gauge")&&(e.append("path").attr("class",g.chartArcsBackground),e.append("text").attr("class",g.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),e.append("text").attr("class",g.chartArcsGaugeMin).style("text-anchor","middle").style("pointer-events","none"),e.append("text").attr("class",g.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},f.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},f.initRegion=function(){var e=this;e.region=e.main.append("g").attr("clip-path",e.clipPath).attr("class",g.regions)},f.updateRegion=function(e){var t=this,n=t.config;t.region.style("visibility",t.hasArcType()?"hidden":"visible"),t.mainRegion=t.main.select("."+g.regions).selectAll("."+g.region).data(n.regions),t.mainRegion.enter().append("g").append("rect").style("fill-opacity",0),t.mainRegion.attr("class",t.classRegion.bind(t)),t.mainRegion.exit().transition().duration(e).style("opacity",0).remove()},f.redrawRegion=function(e){var t=this,n=t.mainRegion.selectAll("rect").each(function(){var e=t.d3.select(this.parentNode).datum();t.d3.select(this).datum(e)}),r=t.regionX.bind(t),o=t.regionY.bind(t),i=t.regionWidth.bind(t),a=t.regionHeight.bind(t);return[(e?n.transition():n).attr("x",r).attr("y",o).attr("width",i).attr("height",a).style("fill-opacity",function(e){return m(e.opacity)?e.opacity:.1})]},f.regionX=function(e){var t,n=this,r=n.config,o="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated&&"start"in e?o(e.start):0:r.axis_rotated?0:"start"in e?n.x(n.isTimeSeries()?n.parseDate(e.start):e.start):0},f.regionY=function(e){var t,n=this,r=n.config,o="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated?0:"end"in e?o(e.end):0:r.axis_rotated&&"start"in e?n.x(n.isTimeSeries()?n.parseDate(e.start):e.start):0},f.regionWidth=function(e){var t,n=this,r=n.config,o=n.regionX(e),i="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated&&"end"in e?i(e.end):n.width:r.axis_rotated?n.width:"end"in e?n.x(n.isTimeSeries()?n.parseDate(e.end):e.end):n.width,t<o?0:t-o},f.regionHeight=function(e){var t,n=this,r=n.config,o=this.regionY(e),i="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated?n.height:"start"in e?i(e.start):n.height:r.axis_rotated&&"end"in e?n.x(n.isTimeSeries()?n.parseDate(e.end):e.end):n.height,t<o?0:t-o},f.isRegionOnX=function(e){return!e.axis||"x"===e.axis},f.drag=function(e){var t,n,r,o,i,a,s,u,c=this,l=c.config,p=c.main,f=c.d3;c.hasArcType()||l.data_selection_enabled&&(l.zoom_enabled&&!c.zoom.altDomain||l.data_selection_multiple&&(t=c.dragStart[0],n=c.dragStart[1],r=e[0],o=e[1],i=Math.min(t,r),a=Math.max(t,r),s=l.data_selection_grouped?c.margin.top:Math.min(n,o),u=l.data_selection_grouped?c.height:Math.max(n,o),p.select("."+g.dragarea).attr("x",i).attr("y",s).attr("width",a-i).attr("height",u-s),p.selectAll("."+g.shapes).selectAll("."+g.shape).filter(function(e){return l.data_selection_isselectable(e)}).each(function(e,t){var n,r,o,l,p,d,h=f.select(this),m=h.classed(g.SELECTED),y=h.classed(g.INCLUDED),v=!1;if(h.classed(g.circle))n=1*h.attr("cx"),r=1*h.attr("cy"),p=c.togglePoint,v=i<n&&n<a&&s<r&&r<u;else{if(!h.classed(g.bar))return;d=R(this),n=d.x,r=d.y,o=d.width,l=d.height,p=c.togglePath,v=!(a<n||n+o<i||u<r||r+l<s)}v^y&&(h.classed(g.INCLUDED,!y),h.classed(g.SELECTED,!m),p.call(c,!m,h,e,t))})))},f.dragstart=function(e){var t=this,n=t.config;t.hasArcType()||n.data_selection_enabled&&(t.dragStart=e,t.main.select("."+g.chart).append("rect").attr("class",g.dragarea).style("opacity",.1),t.dragging=!0)},f.dragend=function(){var e=this,t=e.config;e.hasArcType()||t.data_selection_enabled&&(e.main.select("."+g.dragarea).transition().duration(100).style("opacity",0).remove(),e.main.selectAll("."+g.shape).classed(g.INCLUDED,!1),e.dragging=!1)},f.selectPoint=function(e,t,n){var r=this,o=r.config,i=(o.axis_rotated?r.circleY:r.circleX).bind(r),a=(o.axis_rotated?r.circleX:r.circleY).bind(r),s=r.pointSelectR.bind(r);o.data_onselected.call(r.api,t,e.node()),r.main.select("."+g.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll("."+g.selectedCircle+"-"+n).data([t]).enter().append("circle").attr("class",function(){return r.generateClass(g.selectedCircle,n)}).attr("cx",i).attr("cy",a).attr("stroke",function(){return r.color(t)}).attr("r",function(e){return 1.4*r.pointSelectR(e)}).transition().duration(100).attr("r",s)},f.unselectPoint=function(e,t,n){var r=this;r.config.data_onunselected.call(r.api,t,e.node()),r.main.select("."+g.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll("."+g.selectedCircle+"-"+n).transition().duration(100).attr("r",0).remove()},f.togglePoint=function(e,t,n,r){e?this.selectPoint(t,n,r):this.unselectPoint(t,n,r)},f.selectPath=function(e,t){var n=this;n.config.data_onselected.call(n,t,e.node()),n.config.interaction_brighten&&e.transition().duration(100).style("fill",function(){return n.d3.rgb(n.color(t)).brighter(.75)})},f.unselectPath=function(e,t){var n=this;n.config.data_onunselected.call(n,t,e.node()),n.config.interaction_brighten&&e.transition().duration(100).style("fill",function(){return n.color(t)})},f.togglePath=function(e,t,n,r){e?this.selectPath(t,n,r):this.unselectPath(t,n,r)},f.getToggle=function(e,t){var n,r=this;return"circle"===e.nodeName?n=r.isStepType(t)?function(){}:r.togglePoint:"path"===e.nodeName&&(n=r.togglePath),n},f.toggleShape=function(e,t,n){
|
13 |
-
var r=this,o=r.d3,i=r.config,a=o.select(e),s=a.classed(g.SELECTED),u=r.getToggle(e,t).bind(r);i.data_selection_enabled&&i.data_selection_isselectable(t)&&(i.data_selection_multiple||r.main.selectAll("."+g.shapes+(i.data_selection_grouped?r.getTargetSelectorSuffix(t.id):"")).selectAll("."+g.shape).each(function(e,t){var n=o.select(this);n.classed(g.SELECTED)&&u(!1,n.classed(g.SELECTED,!1),e,t)}),a.classed(g.SELECTED,!s),u(!s,a,t,n))},f.initBrush=function(){var e=this,t=e.d3;e.brush=t.svg.brush().on("brush",function(){e.redrawForBrush()}),e.brush.update=function(){return e.context&&e.context.select("."+g.brush).call(this),this},e.brush.scale=function(t){return e.config.axis_rotated?this.y(t):this.x(t)}},f.initSubchart=function(){var e=this,t=e.config,n=e.context=e.svg.append("g").attr("transform",e.getTranslate("context")),r=t.subchart_show?"visible":"hidden";n.style("visibility",r),n.append("g").attr("clip-path",e.clipPathForSubchart).attr("class",g.chart),n.select("."+g.chart).append("g").attr("class",g.chartBars),n.select("."+g.chart).append("g").attr("class",g.chartLines),n.append("g").attr("clip-path",e.clipPath).attr("class",g.brush).call(e.brush),e.axes.subx=n.append("g").attr("class",g.axisX).attr("transform",e.getTranslate("subx")).attr("clip-path",t.axis_rotated?"":e.clipPathForXAxis).style("visibility",t.subchart_axis_x_show?r:"hidden")},f.updateTargetsForSubchart=function(e){var t,n,r,o,i=this,a=i.context,s=i.config,u=i.classChartBar.bind(i),c=i.classBars.bind(i),l=i.classChartLine.bind(i),p=i.classLines.bind(i),f=i.classAreas.bind(i);s.subchart_show&&(o=a.select("."+g.chartBars).selectAll("."+g.chartBar).data(e).attr("class",u),r=o.enter().append("g").style("opacity",0).attr("class",u),r.append("g").attr("class",c),n=a.select("."+g.chartLines).selectAll("."+g.chartLine).data(e).attr("class",l),t=n.enter().append("g").style("opacity",0).attr("class",l),t.append("g").attr("class",p),t.append("g").attr("class",f),a.selectAll("."+g.brush+" rect").attr(s.axis_rotated?"width":"height",s.axis_rotated?i.width2:i.height2))},f.updateBarForSubchart=function(e){var t=this;t.contextBar=t.context.selectAll("."+g.bars).selectAll("."+g.bar).data(t.barData.bind(t)),t.contextBar.enter().append("path").attr("class",t.classBar.bind(t)).style("stroke","none").style("fill",t.color),t.contextBar.style("opacity",t.initialOpacity.bind(t)),t.contextBar.exit().transition().duration(e).style("opacity",0).remove()},f.redrawBarForSubchart=function(e,t,n){(t?this.contextBar.transition(Math.random().toString()).duration(n):this.contextBar).attr("d",e).style("opacity",1)},f.updateLineForSubchart=function(e){var t=this;t.contextLine=t.context.selectAll("."+g.lines).selectAll("."+g.line).data(t.lineData.bind(t)),t.contextLine.enter().append("path").attr("class",t.classLine.bind(t)).style("stroke",t.color),t.contextLine.style("opacity",t.initialOpacity.bind(t)),t.contextLine.exit().transition().duration(e).style("opacity",0).remove()},f.redrawLineForSubchart=function(e,t,n){(t?this.contextLine.transition(Math.random().toString()).duration(n):this.contextLine).attr("d",e).style("opacity",1)},f.updateAreaForSubchart=function(e){var t=this,n=t.d3;t.contextArea=t.context.selectAll("."+g.areas).selectAll("."+g.area).data(t.lineData.bind(t)),t.contextArea.enter().append("path").attr("class",t.classArea.bind(t)).style("fill",t.color).style("opacity",function(){return t.orgAreaOpacity=+n.select(this).style("opacity"),0}),t.contextArea.style("opacity",0),t.contextArea.exit().transition().duration(e).style("opacity",0).remove()},f.redrawAreaForSubchart=function(e,t,n){(t?this.contextArea.transition(Math.random().toString()).duration(n):this.contextArea).attr("d",e).style("fill",this.color).style("opacity",this.orgAreaOpacity)},f.redrawSubchart=function(e,t,n,r,o,i,a){var s,u,c,l=this,p=l.d3,f=l.config;l.context.style("visibility",f.subchart_show?"visible":"hidden"),f.subchart_show&&(p.event&&"zoom"===p.event.type&&l.brush.extent(l.x.orgDomain()).update(),e&&(l.brush.empty()||l.brush.extent(l.x.orgDomain()).update(),s=l.generateDrawArea(o,!0),u=l.generateDrawBar(i,!0),c=l.generateDrawLine(a,!0),l.updateBarForSubchart(n),l.updateLineForSubchart(n),l.updateAreaForSubchart(n),l.redrawBarForSubchart(u,n,n),l.redrawLineForSubchart(c,n,n),l.redrawAreaForSubchart(s,n,n)))},f.redrawForBrush=function(){var e=this,t=e.x;e.redraw({withTransition:!1,withY:e.config.zoom_rescale,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),e.config.subchart_onbrush.call(e.api,t.orgDomain())},f.transformContext=function(e,t){var n,r=this;t&&t.axisSubX?n=t.axisSubX:(n=r.context.select("."+g.axisX),e&&(n=n.transition())),r.context.attr("transform",r.getTranslate("context")),n.attr("transform",r.getTranslate("subx"))},f.getDefaultExtent=function(){var e=this,t=e.config,n=y(t.axis_x_extent)?t.axis_x_extent(e.getXDomain(e.data.targets)):t.axis_x_extent;return e.isTimeSeries()&&(n=[e.parseDate(n[0]),e.parseDate(n[1])]),n},f.initZoom=function(){var e,t=this,n=t.d3,r=t.config;t.zoom=n.behavior.zoom().on("zoomstart",function(){e=n.event.sourceEvent,t.zoom.altDomain=n.event.sourceEvent.altKey?t.x.orgDomain():null,r.zoom_onzoomstart.call(t.api,n.event.sourceEvent)}).on("zoom",function(){t.redrawForZoom.call(t)}).on("zoomend",function(){var o=n.event.sourceEvent;o&&e.clientX===o.clientX&&e.clientY===o.clientY||(t.redrawEventRect(),t.updateZoom(),r.zoom_onzoomend.call(t.api,t.x.orgDomain()))}),t.zoom.scale=function(e){return r.axis_rotated?this.y(e):this.x(e)},t.zoom.orgScaleExtent=function(){var e=r.zoom_extent?r.zoom_extent:[1,10];return[e[0],Math.max(t.getMaxDataCount()/e[1],e[1])]},t.zoom.updateScaleExtent=function(){var e=C(t.x.orgDomain())/C(t.getZoomDomain()),n=this.orgScaleExtent();return this.scaleExtent([n[0]*e,n[1]*e]),this}},f.getZoomDomain=function(){var e=this,t=e.config,n=e.d3,r=n.min([e.orgXDomain[0],t.zoom_x_min]),o=n.max([e.orgXDomain[1],t.zoom_x_max]);return[r,o]},f.updateZoom=function(){var e=this,t=e.config.zoom_enabled?e.zoom:function(){};e.main.select("."+g.zoomRect).call(t).on("dblclick.zoom",null),e.main.selectAll("."+g.eventRect).call(t).on("dblclick.zoom",null)},f.redrawForZoom=function(){var e=this,t=e.d3,n=e.config,r=e.zoom,o=e.x;if(n.zoom_enabled&&0!==e.filterTargetsToShow(e.data.targets).length){if("mousemove"===t.event.sourceEvent.type&&r.altDomain)return o.domain(r.altDomain),void r.scale(o).updateScaleExtent();e.isCategorized()&&o.orgDomain()[0]===e.orgXDomain[0]&&o.domain([e.orgXDomain[0]-1e-10,o.orgDomain()[1]]),e.redraw({withTransition:!1,withY:n.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),"mousemove"===t.event.sourceEvent.type&&(e.cancelClick=!0),n.zoom_onzoom.call(e.api,o.orgDomain())}},f.generateColor=function(){var e=this,t=e.config,n=e.d3,r=t.data_colors,o=S(t.color_pattern)?t.color_pattern:n.scale.category10().range(),i=t.data_color,a=[];return function(e){var t,n=e.id||e.data&&e.data.id||e;return r[n]instanceof Function?t=r[n](e):r[n]?t=r[n]:(a.indexOf(n)<0&&a.push(n),t=o[a.indexOf(n)%o.length],r[n]=t),i instanceof Function?i(t,e):t}},f.generateLevelColor=function(){var e=this,t=e.config,n=t.color_pattern,r=t.color_threshold,o="value"===r.unit,i=r.values&&r.values.length?r.values:[],a=r.max||100;return S(t.color_threshold)?function(e){var t,r,s=n[n.length-1];for(t=0;t<i.length;t++)if(r=o?e:100*e/a,r<i[t]){s=n[t];break}return s}:null},f.getYFormat=function(e){var t=this,n=e&&!t.hasType("gauge")?t.defaultArcValueFormat:t.yFormat,r=e&&!t.hasType("gauge")?t.defaultArcValueFormat:t.y2Format;return function(e,o,i){var a="y2"===t.axis.getId(i)?r:n;return a.call(t,e,o)}},f.yFormat=function(e){var t=this,n=t.config,r=n.axis_y_tick_format?n.axis_y_tick_format:t.defaultValueFormat;return r(e)},f.y2Format=function(e){var t=this,n=t.config,r=n.axis_y2_tick_format?n.axis_y2_tick_format:t.defaultValueFormat;return r(e)},f.defaultValueFormat=function(e){return m(e)?+e:""},f.defaultArcValueFormat=function(e,t){return(100*t).toFixed(1)+"%"},f.dataLabelFormat=function(e){var t,n=this,r=n.config.data_labels,o=function(e){return m(e)?+e:""};return t="function"==typeof r.format?r.format:"object"==typeof r.format?r.format[e]?r.format[e]===!0?o:r.format[e]:function(){return""}:o},f.hasCaches=function(e){for(var t=0;t<e.length;t++)if(!(e[t]in this.cache))return!1;return!0},f.addCache=function(e,t){this.cache[e]=this.cloneTarget(t)},f.getCaches=function(e){var t,n=[];for(t=0;t<e.length;t++)e[t]in this.cache&&n.push(this.cloneTarget(this.cache[e[t]]));return n};var g=f.CLASS={target:"c3-target",chart:"c3-chart",chartLine:"c3-chart-line",chartLines:"c3-chart-lines",chartBar:"c3-chart-bar",chartBars:"c3-chart-bars",chartText:"c3-chart-text",chartTexts:"c3-chart-texts",chartArc:"c3-chart-arc",chartArcs:"c3-chart-arcs",chartArcsTitle:"c3-chart-arcs-title",chartArcsBackground:"c3-chart-arcs-background",chartArcsGaugeUnit:"c3-chart-arcs-gauge-unit",chartArcsGaugeMax:"c3-chart-arcs-gauge-max",chartArcsGaugeMin:"c3-chart-arcs-gauge-min",selectedCircle:"c3-selected-circle",selectedCircles:"c3-selected-circles",eventRect:"c3-event-rect",eventRects:"c3-event-rects",eventRectsSingle:"c3-event-rects-single",eventRectsMultiple:"c3-event-rects-multiple",zoomRect:"c3-zoom-rect",brush:"c3-brush",focused:"c3-focused",defocused:"c3-defocused",region:"c3-region",regions:"c3-regions",title:"c3-title",tooltipContainer:"c3-tooltip-container",tooltip:"c3-tooltip",tooltipName:"c3-tooltip-name",shape:"c3-shape",shapes:"c3-shapes",line:"c3-line",lines:"c3-lines",bar:"c3-bar",bars:"c3-bars",circle:"c3-circle",circles:"c3-circles",arc:"c3-arc",arcs:"c3-arcs",area:"c3-area",areas:"c3-areas",empty:"c3-empty",text:"c3-text",texts:"c3-texts",gaugeValue:"c3-gauge-value",grid:"c3-grid",gridLines:"c3-grid-lines",xgrid:"c3-xgrid",xgrids:"c3-xgrids",xgridLine:"c3-xgrid-line",xgridLines:"c3-xgrid-lines",xgridFocus:"c3-xgrid-focus",ygrid:"c3-ygrid",ygrids:"c3-ygrids",ygridLine:"c3-ygrid-line",ygridLines:"c3-ygrid-lines",axis:"c3-axis",axisX:"c3-axis-x",axisXLabel:"c3-axis-x-label",axisY:"c3-axis-y",axisYLabel:"c3-axis-y-label",axisY2:"c3-axis-y2",axisY2Label:"c3-axis-y2-label",legendBackground:"c3-legend-background",legendItem:"c3-legend-item",legendItemEvent:"c3-legend-item-event",legendItemTile:"c3-legend-item-tile",legendItemHidden:"c3-legend-item-hidden",legendItemFocused:"c3-legend-item-focused",dragarea:"c3-dragarea",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_"};f.generateClass=function(e,t){return" "+e+" "+e+this.getTargetSelectorSuffix(t)},f.classText=function(e){return this.generateClass(g.text,e.index)},f.classTexts=function(e){return this.generateClass(g.texts,e.id)},f.classShape=function(e){return this.generateClass(g.shape,e.index)},f.classShapes=function(e){return this.generateClass(g.shapes,e.id)},f.classLine=function(e){return this.classShape(e)+this.generateClass(g.line,e.id)},f.classLines=function(e){return this.classShapes(e)+this.generateClass(g.lines,e.id)},f.classCircle=function(e){return this.classShape(e)+this.generateClass(g.circle,e.index)},f.classCircles=function(e){return this.classShapes(e)+this.generateClass(g.circles,e.id)},f.classBar=function(e){return this.classShape(e)+this.generateClass(g.bar,e.index)},f.classBars=function(e){return this.classShapes(e)+this.generateClass(g.bars,e.id)},f.classArc=function(e){return this.classShape(e.data)+this.generateClass(g.arc,e.data.id)},f.classArcs=function(e){return this.classShapes(e.data)+this.generateClass(g.arcs,e.data.id)},f.classArea=function(e){return this.classShape(e)+this.generateClass(g.area,e.id)},f.classAreas=function(e){return this.classShapes(e)+this.generateClass(g.areas,e.id)},f.classRegion=function(e,t){return this.generateClass(g.region,t)+" "+("class"in e?e.class:"")},f.classEvent=function(e){return this.generateClass(g.eventRect,e.index)},f.classTarget=function(e){var t=this,n=t.config.data_classes[e],r="";return n&&(r=" "+g.target+"-"+n),t.generateClass(g.target,e)+r},f.classFocus=function(e){return this.classFocused(e)+this.classDefocused(e)},f.classFocused=function(e){return" "+(this.focusedTargetIds.indexOf(e.id)>=0?g.focused:"")},f.classDefocused=function(e){return" "+(this.defocusedTargetIds.indexOf(e.id)>=0?g.defocused:"")},f.classChartText=function(e){return g.chartText+this.classTarget(e.id)},f.classChartLine=function(e){return g.chartLine+this.classTarget(e.id)},f.classChartBar=function(e){return g.chartBar+this.classTarget(e.id)},f.classChartArc=function(e){return g.chartArc+this.classTarget(e.data.id)},f.getTargetSelectorSuffix=function(e){return e||0===e?("-"+e).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-"):""},f.selectorTarget=function(e,t){return(t||"")+"."+g.target+this.getTargetSelectorSuffix(e)},f.selectorTargets=function(e,t){var n=this;return e=e||[],e.length?e.map(function(e){return n.selectorTarget(e,t)}):null},f.selectorLegend=function(e){return"."+g.legendItem+this.getTargetSelectorSuffix(e)},f.selectorLegends=function(e){var t=this;return e&&e.length?e.map(function(e){return t.selectorLegend(e)}):null};var m=f.isValue=function(e){return e||0===e},y=f.isFunction=function(e){return"function"==typeof e},v=f.isString=function(e){return"string"==typeof e},_=f.isUndefined=function(e){return"undefined"==typeof e},b=f.isDefined=function(e){return"undefined"!=typeof e},E=f.ceil10=function(e){return 10*Math.ceil(e/10)},x=f.asHalfPixel=function(e){return Math.ceil(e)+.5},C=f.diffDomain=function(e){return e[1]-e[0]},w=f.isEmpty=function(e){return"undefined"==typeof e||null===e||v(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length},S=f.notEmpty=function(e){return!f.isEmpty(e)},O=f.getOption=function(e,t,n){return b(e[t])?e[t]:n},T=f.hasValue=function(e,t){var n=!1;return Object.keys(e).forEach(function(r){e[r]===t&&(n=!0)}),n},P=f.sanitise=function(e){return"string"==typeof e?e.replace(/</g,"<").replace(/>/g,">"):e},R=f.getPathBox=function(e){var t=e.getBoundingClientRect(),n=[e.pathSegList.getItem(0),e.pathSegList.getItem(1)],r=n[0].x,o=Math.min(n[0].y,n[1].y);return{x:r,y:o,width:t.width,height:t.height}};p.focus=function(e){var t,n=this.internal;e=n.mapToTargetIds(e),t=n.svg.selectAll(n.selectorTargets(e.filter(n.isTargetToShow,n))),this.revert(),this.defocus(),t.classed(g.focused,!0).classed(g.defocused,!1),n.hasArcType()&&n.expandArc(e),n.toggleFocusLegend(e,!0),n.focusedTargetIds=e,n.defocusedTargetIds=n.defocusedTargetIds.filter(function(t){return e.indexOf(t)<0})},p.defocus=function(e){var t,n=this.internal;e=n.mapToTargetIds(e),t=n.svg.selectAll(n.selectorTargets(e.filter(n.isTargetToShow,n))),t.classed(g.focused,!1).classed(g.defocused,!0),n.hasArcType()&&n.unexpandArc(e),n.toggleFocusLegend(e,!1),n.focusedTargetIds=n.focusedTargetIds.filter(function(t){return e.indexOf(t)<0}),n.defocusedTargetIds=e},p.revert=function(e){var t,n=this.internal;e=n.mapToTargetIds(e),t=n.svg.selectAll(n.selectorTargets(e)),t.classed(g.focused,!1).classed(g.defocused,!1),n.hasArcType()&&n.unexpandArc(e),n.config.legend_show&&(n.showLegend(e.filter(n.isLegendToShow.bind(n))),n.legend.selectAll(n.selectorLegends(e)).filter(function(){return n.d3.select(this).classed(g.legendItemFocused)}).classed(g.legendItemFocused,!1)),n.focusedTargetIds=[],n.defocusedTargetIds=[]},p.show=function(e,t){var n,r=this.internal;e=r.mapToTargetIds(e),t=t||{},r.removeHiddenTargetIds(e),n=r.svg.selectAll(r.selectorTargets(e)),n.transition().style("opacity",1,"important").call(r.endall,function(){n.style("opacity",null).style("opacity",1)}),t.withLegend&&r.showLegend(e),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},p.hide=function(e,t){var n,r=this.internal;e=r.mapToTargetIds(e),t=t||{},r.addHiddenTargetIds(e),n=r.svg.selectAll(r.selectorTargets(e)),n.transition().style("opacity",0,"important").call(r.endall,function(){n.style("opacity",null).style("opacity",0)}),t.withLegend&&r.hideLegend(e),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},p.toggle=function(e,t){var n=this,r=this.internal;r.mapToTargetIds(e).forEach(function(e){r.isTargetToShow(e)?n.hide(e,t):n.show(e,t)})},p.zoom=function(e){var t=this.internal;return e&&(t.isTimeSeries()&&(e=e.map(function(e){return t.parseDate(e)})),t.brush.extent(e),t.redraw({withUpdateXDomain:!0,withY:t.config.zoom_rescale}),t.config.zoom_onzoom.call(this,t.x.orgDomain())),t.brush.extent()},p.zoom.enable=function(e){var t=this.internal;t.config.zoom_enabled=e,t.updateAndRedraw()},p.unzoom=function(){var e=this.internal;e.brush.clear().update(),e.redraw({withUpdateXDomain:!0})},p.zoom.max=function(e){var t=this.internal,n=t.config,r=t.d3;return 0===e||e?void(n.zoom_x_max=r.max([t.orgXDomain[1],e])):n.zoom_x_max},p.zoom.min=function(e){var t=this.internal,n=t.config,r=t.d3;return 0===e||e?void(n.zoom_x_min=r.min([t.orgXDomain[0],e])):n.zoom_x_min},p.zoom.range=function(e){return arguments.length?(b(e.max)&&this.domain.max(e.max),void(b(e.min)&&this.domain.min(e.min))):{max:this.domain.max(),min:this.domain.min()}},p.load=function(e){var t=this.internal,n=t.config;return e.xs&&t.addXs(e.xs),"names"in e&&p.data.names.bind(this)(e.names),"classes"in e&&Object.keys(e.classes).forEach(function(t){n.data_classes[t]=e.classes[t]}),"categories"in e&&t.isCategorized()&&(n.axis_x_categories=e.categories),"axes"in e&&Object.keys(e.axes).forEach(function(t){n.data_axes[t]=e.axes[t]}),"colors"in e&&Object.keys(e.colors).forEach(function(t){n.data_colors[t]=e.colors[t]}),"cacheIds"in e&&t.hasCaches(e.cacheIds)?void t.load(t.getCaches(e.cacheIds),e.done):void("unload"in e?t.unload(t.mapToTargetIds("boolean"==typeof e.unload&&e.unload?null:e.unload),function(){t.loadFromArgs(e)}):t.loadFromArgs(e))},p.unload=function(e){var t=this.internal;e=e||{},e instanceof Array?e={ids:e}:"string"==typeof e&&(e={ids:[e]}),t.unload(t.mapToTargetIds(e.ids),function(){t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.done&&e.done()})},p.flow=function(e){var t,n,r,o,i,a,s,u,c=this.internal,l=[],p=c.getMaxDataCount(),f=0,d=0;if(e.json)n=c.convertJsonToData(e.json,e.keys);else if(e.rows)n=c.convertRowsToData(e.rows);else{if(!e.columns)return;n=c.convertColumnsToData(e.columns)}t=c.convertDataToTargets(n,!0),c.data.targets.forEach(function(e){var n,r,o=!1;for(n=0;n<t.length;n++)if(e.id===t[n].id){for(o=!0,e.values[e.values.length-1]&&(d=e.values[e.values.length-1].index+1),f=t[n].values.length,r=0;r<f;r++)t[n].values[r].index=d+r,c.isTimeSeries()||(t[n].values[r].x=d+r);e.values=e.values.concat(t[n].values),t.splice(n,1);break}o||l.push(e.id)}),c.data.targets.forEach(function(e){var t,n;for(t=0;t<l.length;t++)if(e.id===l[t])for(d=e.values[e.values.length-1].index+1,n=0;n<f;n++)e.values.push({id:e.id,index:d+n,x:c.isTimeSeries()?c.getOtherTargetX(d+n):d+n,value:null})}),c.data.targets.length&&t.forEach(function(e){var t,n=[];for(t=c.data.targets[0].values[0].index;t<d;t++)n.push({id:e.id,index:t,x:c.isTimeSeries()?c.getOtherTargetX(t):t,value:null});e.values.forEach(function(e){e.index+=d,c.isTimeSeries()||(e.x+=d)}),e.values=n.concat(e.values)}),c.data.targets=c.data.targets.concat(t),r=c.getMaxDataCount(),i=c.data.targets[0],a=i.values[0],b(e.to)?(f=0,u=c.isTimeSeries()?c.parseDate(e.to):e.to,i.values.forEach(function(e){e.x<u&&f++})):b(e.length)&&(f=e.length),p?1===p&&c.isTimeSeries()&&(s=(i.values[i.values.length-1].x-a.x)/2,o=[new Date(+a.x-s),new Date(+a.x+s)],c.updateXDomain(null,!0,!0,!1,o)):(s=c.isTimeSeries()?i.values.length>1?i.values[i.values.length-1].x-a.x:a.x-c.getXDomain(c.data.targets)[0]:1,o=[a.x-s,a.x],c.updateXDomain(null,!0,!0,!1,o)),c.updateTargets(c.data.targets),c.redraw({flow:{index:a.index,length:f,duration:m(e.duration)?e.duration:c.config.transition_duration,done:e.done,orgDataCount:p},withLegend:!0,withTransition:p>1,withTrimXDomain:!1,withUpdateXAxis:!0})},f.generateFlow=function(e){var t=this,n=t.config,r=t.d3;return function(){var o,i,a,s=e.targets,u=e.flow,c=e.drawBar,l=e.drawLine,p=e.drawArea,f=e.cx,d=e.cy,h=e.xv,m=e.xForText,y=e.yForText,v=e.duration,_=1,b=u.index,E=u.length,x=t.getValueOnIndex(t.data.targets[0].values,b),w=t.getValueOnIndex(t.data.targets[0].values,b+E),S=t.x.domain(),O=u.duration||v,T=u.done||function(){},P=t.generateWait(),R=t.xgrid||r.selectAll([]),N=t.xgridLines||r.selectAll([]),A=t.mainRegion||r.selectAll([]),M=t.mainText||r.selectAll([]),D=t.mainBar||r.selectAll([]),I=t.mainLine||r.selectAll([]),L=t.mainArea||r.selectAll([]),k=t.mainCircle||r.selectAll([]);t.flowing=!0,t.data.targets.forEach(function(e){e.values.splice(0,E)}),a=t.updateXDomain(s,!0,!0),t.updateXGrid&&t.updateXGrid(!0),u.orgDataCount?o=1===u.orgDataCount||(x&&x.x)===(w&&w.x)?t.x(S[0])-t.x(a[0]):t.isTimeSeries()?t.x(S[0])-t.x(a[0]):t.x(x.x)-t.x(w.x):1!==t.data.targets[0].values.length?o=t.x(S[0])-t.x(a[0]):t.isTimeSeries()?(x=t.getValueOnIndex(t.data.targets[0].values,0),w=t.getValueOnIndex(t.data.targets[0].values,t.data.targets[0].values.length-1),o=t.x(x.x)-t.x(w.x)):o=C(a)/2,_=C(S)/C(a),i="translate("+o+",0) scale("+_+",1)",t.hideXGridFocus(),r.transition().ease("linear").duration(O).each(function(){P.add(t.axes.x.transition().call(t.xAxis)),P.add(D.transition().attr("transform",i)),P.add(I.transition().attr("transform",i)),P.add(L.transition().attr("transform",i)),P.add(k.transition().attr("transform",i)),P.add(M.transition().attr("transform",i)),P.add(A.filter(t.isRegionOnX).transition().attr("transform",i)),P.add(R.transition().attr("transform",i)),P.add(N.transition().attr("transform",i))}).call(P,function(){var e,r=[],o=[],i=[];if(E){for(e=0;e<E;e++)r.push("."+g.shape+"-"+(b+e)),o.push("."+g.text+"-"+(b+e)),i.push("."+g.eventRect+"-"+(b+e));t.svg.selectAll("."+g.shapes).selectAll(r).remove(),t.svg.selectAll("."+g.texts).selectAll(o).remove(),t.svg.selectAll("."+g.eventRects).selectAll(i).remove(),t.svg.select("."+g.xgrid).remove()}R.attr("transform",null).attr(t.xgridAttr),N.attr("transform",null),N.select("line").attr("x1",n.axis_rotated?0:h).attr("x2",n.axis_rotated?t.width:h),N.select("text").attr("x",n.axis_rotated?t.width:0).attr("y",h),D.attr("transform",null).attr("d",c),I.attr("transform",null).attr("d",l),L.attr("transform",null).attr("d",p),k.attr("transform",null).attr("cx",f).attr("cy",d),M.attr("transform",null).attr("x",m).attr("y",y).style("fill-opacity",t.opacityForText.bind(t)),A.attr("transform",null),A.select("rect").filter(t.isRegionOnX).attr("x",t.regionX.bind(t)).attr("width",t.regionWidth.bind(t)),n.interaction_enabled&&t.redrawEventRect(),T(),t.flowing=!1})}},p.selected=function(e){var t=this.internal,n=t.d3;return n.merge(t.main.selectAll("."+g.shapes+t.getTargetSelectorSuffix(e)).selectAll("."+g.shape).filter(function(){return n.select(this).classed(g.SELECTED)}).map(function(e){return e.map(function(e){var t=e.__data__;return t.data?t.data:t})}))},p.select=function(e,t,n){var r=this.internal,o=r.d3,i=r.config;i.data_selection_enabled&&r.main.selectAll("."+g.shapes).selectAll("."+g.shape).each(function(a,s){var u=o.select(this),c=a.data?a.data.id:a.id,l=r.getToggle(this,a).bind(r),p=i.data_selection_grouped||!e||e.indexOf(c)>=0,f=!t||t.indexOf(s)>=0,d=u.classed(g.SELECTED);u.classed(g.line)||u.classed(g.area)||(p&&f?i.data_selection_isselectable(a)&&!d&&l(!0,u.classed(g.SELECTED,!0),a,s):b(n)&&n&&d&&l(!1,u.classed(g.SELECTED,!1),a,s))})},p.unselect=function(e,t){var n=this.internal,r=n.d3,o=n.config;o.data_selection_enabled&&n.main.selectAll("."+g.shapes).selectAll("."+g.shape).each(function(i,a){var s=r.select(this),u=i.data?i.data.id:i.id,c=n.getToggle(this,i).bind(n),l=o.data_selection_grouped||!e||e.indexOf(u)>=0,p=!t||t.indexOf(a)>=0,f=s.classed(g.SELECTED);s.classed(g.line)||s.classed(g.area)||l&&p&&o.data_selection_isselectable(i)&&f&&c(!1,s.classed(g.SELECTED,!1),i,a)})},p.transform=function(e,t){var n=this.internal,r=["pie","donut"].indexOf(e)>=0?{withTransform:!0}:null;n.transformTo(t,e,r)},f.transformTo=function(e,t,n){var r=this,o=!r.hasArcType(),i=n||{withTransitionForAxis:o};i.withTransitionForTransform=!1,r.transiting=!1,r.setTargetType(e,t),r.updateTargets(r.data.targets),r.updateAndRedraw(i)},p.groups=function(e){var t=this.internal,n=t.config;return _(e)?n.data_groups:(n.data_groups=e,t.redraw(),n.data_groups)},p.xgrids=function(e){var t=this.internal,n=t.config;return e?(n.grid_x_lines=e,t.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines},p.xgrids.add=function(e){var t=this.internal;return this.xgrids(t.config.grid_x_lines.concat(e?e:[]))},p.xgrids.remove=function(e){var t=this.internal;t.removeGridLines(e,!0)},p.ygrids=function(e){var t=this.internal,n=t.config;return e?(n.grid_y_lines=e,t.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines},p.ygrids.add=function(e){var t=this.internal;return this.ygrids(t.config.grid_y_lines.concat(e?e:[]))},p.ygrids.remove=function(e){var t=this.internal;t.removeGridLines(e,!1)},p.regions=function(e){var t=this.internal,n=t.config;return e?(n.regions=e,t.redrawWithoutRescale(),n.regions):n.regions},p.regions.add=function(e){var t=this.internal,n=t.config;return e?(n.regions=n.regions.concat(e),t.redrawWithoutRescale(),n.regions):n.regions},p.regions.remove=function(e){var t,n,r,o=this.internal,i=o.config;return e=e||{},t=o.getOption(e,"duration",i.transition_duration),n=o.getOption(e,"classes",[g.region]),r=o.main.select("."+g.regions).selectAll(n.map(function(e){return"."+e})),(t?r.transition().duration(t):r).style("opacity",0).remove(),i.regions=i.regions.filter(function(e){var t=!1;return!e.class||(e.class.split(" ").forEach(function(e){n.indexOf(e)>=0&&(t=!0)}),!t)}),i.regions},p.data=function(e){var t=this.internal.data.targets;return"undefined"==typeof e?t:t.filter(function(t){return[].concat(e).indexOf(t.id)>=0})},p.data.shown=function(e){return this.internal.filterTargetsToShow(this.data(e))},p.data.values=function(e){var t,n=null;return e&&(t=this.data(e),n=t[0]?t[0].values.map(function(e){return e.value}):null),n},p.data.names=function(e){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",e)},p.data.colors=function(e){return this.internal.updateDataAttributes("colors",e)},p.data.axes=function(e){return this.internal.updateDataAttributes("axes",e)},p.category=function(e,t){var n=this.internal,r=n.config;return arguments.length>1&&(r.axis_x_categories[e]=t,n.redraw()),r.axis_x_categories[e]},p.categories=function(e){var t=this.internal,n=t.config;return arguments.length?(n.axis_x_categories=e,t.redraw(),n.axis_x_categories):n.axis_x_categories},p.color=function(e){var t=this.internal;return t.color(e)},p.x=function(e){var t=this.internal;return arguments.length&&(t.updateTargetX(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},p.xs=function(e){var t=this.internal;return arguments.length&&(t.updateTargetXs(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},p.axis=function(){},p.axis.labels=function(e){var t=this.internal;arguments.length&&(Object.keys(e).forEach(function(n){t.axis.setLabelText(n,e[n])}),t.axis.updateLabels())},p.axis.max=function(e){var t=this.internal,n=t.config;return arguments.length?("object"==typeof e?(m(e.x)&&(n.axis_x_max=e.x),m(e.y)&&(n.axis_y_max=e.y),m(e.y2)&&(n.axis_y2_max=e.y2)):n.axis_y_max=n.axis_y2_max=e,void t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:n.axis_x_max,y:n.axis_y_max,y2:n.axis_y2_max}},p.axis.min=function(e){var t=this.internal,n=t.config;return arguments.length?("object"==typeof e?(m(e.x)&&(n.axis_x_min=e.x),m(e.y)&&(n.axis_y_min=e.y),m(e.y2)&&(n.axis_y2_min=e.y2)):n.axis_y_min=n.axis_y2_min=e,void t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:n.axis_x_min,y:n.axis_y_min,y2:n.axis_y2_min}},p.axis.range=function(e){return arguments.length?(b(e.max)&&this.axis.max(e.max),void(b(e.min)&&this.axis.min(e.min))):{max:this.axis.max(),min:this.axis.min()}},p.legend=function(){},p.legend.show=function(e){var t=this.internal;t.showLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},p.legend.hide=function(e){var t=this.internal;t.hideLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},p.resize=function(e){var t=this.internal,n=t.config;n.size_width=e?e.width:null,n.size_height=e?e.height:null,this.flush()},p.flush=function(){var e=this.internal;e.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},p.destroy=function(){var e=this.internal;if(o.clearInterval(e.intervalForObserveInserted),void 0!==e.resizeTimeout&&o.clearTimeout(e.resizeTimeout),o.detachEvent)o.detachEvent("onresize",e.resizeFunction);else if(o.removeEventListener)o.removeEventListener("resize",e.resizeFunction);else{var t=o.onresize;t&&t.add&&t.remove&&t.remove(e.resizeFunction)}return e.selectChart.classed("c3",!1).html(""),Object.keys(e).forEach(function(t){e[t]=null}),null},p.tooltip=function(){},p.tooltip.show=function(e){var t,n,r=this.internal;e.mouse&&(n=e.mouse),e.data?r.isMultipleX()?(n=[r.x(e.data.x),r.getYScale(e.data.id)(e.data.value)],t=null):t=m(e.data.index)?e.data.index:r.getIndexByX(e.data.x):"undefined"!=typeof e.x?t=r.getIndexByX(e.x):"undefined"!=typeof e.index&&(t=e.index),r.dispatchEvent("mouseover",t,n),r.dispatchEvent("mousemove",t,n),r.config.tooltip_onshow.call(r,e.data)},p.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0),this.internal.config.tooltip_onhide.call(this)};var N;f.isSafari=function(){var e=o.navigator.userAgent;return e.indexOf("Safari")>=0&&e.indexOf("Chrome")<0},f.isChrome=function(){var e=o.navigator.userAgent;return e.indexOf("Chrome")>=0},Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,o.prototype=new r,o}),function(){"SVGPathSeg"in o||(o.SVGPathSeg=function(e,t,n){this.pathSegType=e,this.pathSegTypeAsLetter=t,this._owningPathSegList=n},SVGPathSeg.PATHSEG_UNKNOWN=0,SVGPathSeg.PATHSEG_CLOSEPATH=1,SVGPathSeg.PATHSEG_MOVETO_ABS=2,SVGPathSeg.PATHSEG_MOVETO_REL=3,SVGPathSeg.PATHSEG_LINETO_ABS=4,SVGPathSeg.PATHSEG_LINETO_REL=5,SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,SVGPathSeg.PATHSEG_ARC_ABS=10,SVGPathSeg.PATHSEG_ARC_REL=11,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},o.SVGPathSegClosePath=function(e){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CLOSEPATH,"z",e)},SVGPathSegClosePath.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},SVGPathSegClosePath.prototype.clone=function(){return new SVGPathSegClosePath((void 0))},o.SVGPathSegMovetoAbs=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_MOVETO_ABS,"M",e),this._x=t,this._y=n},SVGPathSegMovetoAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegMovetoAbs.prototype.clone=function(){return new SVGPathSegMovetoAbs((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged();
|
14 |
-
},enumerable:!0}),Object.defineProperty(SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegMovetoRel=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_MOVETO_REL,"m",e),this._x=t,this._y=n},SVGPathSegMovetoRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegMovetoRel.prototype.clone=function(){return new SVGPathSegMovetoRel((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoAbs=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_ABS,"L",e),this._x=t,this._y=n},SVGPathSegLinetoAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegLinetoAbs.prototype.clone=function(){return new SVGPathSegLinetoAbs((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoRel=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_REL,"l",e),this._x=t,this._y=n},SVGPathSegLinetoRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegLinetoRel.prototype.clone=function(){return new SVGPathSegLinetoRel((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoCubicAbs=function(e,t,n,r,o,i,a){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",e),this._x=t,this._y=n,this._x1=r,this._y1=o,this._x2=i,this._y2=a},SVGPathSegCurvetoCubicAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new SVGPathSegCurvetoCubicAbs((void 0),this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoCubicRel=function(e,t,n,r,o,i,a){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",e),this._x=t,this._y=n,this._x1=r,this._y1=o,this._x2=i,this._y2=a},SVGPathSegCurvetoCubicRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new SVGPathSegCurvetoCubicRel((void 0),this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoQuadraticAbs=function(e,t,n,r,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",e),this._x=t,this._y=n,this._x1=r,this._y1=o},SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticAbs((void 0),this._x,this._y,this._x1,this._y1)},Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoQuadraticRel=function(e,t,n,r,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",e),this._x=t,this._y=n,this._x1=r,this._y1=o},SVGPathSegCurvetoQuadraticRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticRel((void 0),this._x,this._y,this._x1,this._y1)},Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegArcAbs=function(e,t,n,r,o,i,a,s){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_ARC_ABS,"A",e),this._x=t,this._y=n,this._r1=r,this._r2=o,this._angle=i,this._largeArcFlag=a,this._sweepFlag=s},SVGPathSegArcAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},SVGPathSegArcAbs.prototype.clone=function(){return new SVGPathSegArcAbs((void 0),this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(e){this._r1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(e){this._r2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(e){this._largeArcFlag=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(e){this._sweepFlag=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegArcRel=function(e,t,n,r,o,i,a,s){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_ARC_REL,"a",e),this._x=t,this._y=n,this._r1=r,this._r2=o,this._angle=i,this._largeArcFlag=a,this._sweepFlag=s},SVGPathSegArcRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},SVGPathSegArcRel.prototype.clone=function(){return new SVGPathSegArcRel((void 0),this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(e){this._r1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(e){this._r2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(e){this._largeArcFlag=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(e){this._sweepFlag=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoHorizontalAbs=function(e,t){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",e),this._x=t},SVGPathSegLinetoHorizontalAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new SVGPathSegLinetoHorizontalAbs((void 0),this._x)},Object.defineProperty(SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoHorizontalRel=function(e,t){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",e),this._x=t},SVGPathSegLinetoHorizontalRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new SVGPathSegLinetoHorizontalRel((void 0),this._x)},Object.defineProperty(SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoVerticalAbs=function(e,t){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",e),this._y=t},SVGPathSegLinetoVerticalAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new SVGPathSegLinetoVerticalAbs((void 0),this._y)},Object.defineProperty(SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoVerticalRel=function(e,t){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",e),this._y=t},SVGPathSegLinetoVerticalRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new SVGPathSegLinetoVerticalRel((void 0),this._y)},Object.defineProperty(SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoCubicSmoothAbs=function(e,t,n,r,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",e),this._x=t,this._y=n,this._x2=r,this._y2=o},SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new SVGPathSegCurvetoCubicSmoothAbs((void 0),this._x,this._y,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoCubicSmoothRel=function(e,t,n,r,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",e),this._x=t,this._y=n,this._x2=r,this._y2=o},SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new SVGPathSegCurvetoCubicSmoothRel((void 0),this._x,this._y,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoQuadraticSmoothAbs=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",e),this._x=t,this._y=n},SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticSmoothAbs((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoQuadraticSmoothRel=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",e),this._x=t,this._y=n},SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticSmoothRel((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new SVGPathSegClosePath((void 0))},SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(e,t){return new SVGPathSegMovetoAbs((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegMovetoRel=function(e,t){return new SVGPathSegMovetoRel((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(e,t){return new SVGPathSegLinetoAbs((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegLinetoRel=function(e,t){return new SVGPathSegLinetoRel((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(e,t,n,r,o,i){return new SVGPathSegCurvetoCubicAbs((void 0),e,t,n,r,o,i)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(e,t,n,r,o,i){return new SVGPathSegCurvetoCubicRel((void 0),e,t,n,r,o,i)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(e,t,n,r){return new SVGPathSegCurvetoQuadraticAbs((void 0),e,t,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(e,t,n,r){return new SVGPathSegCurvetoQuadraticRel((void 0),e,t,n,r)},SVGPathElement.prototype.createSVGPathSegArcAbs=function(e,t,n,r,o,i,a){return new SVGPathSegArcAbs((void 0),e,t,n,r,o,i,a)},SVGPathElement.prototype.createSVGPathSegArcRel=function(e,t,n,r,o,i,a){return new SVGPathSegArcRel((void 0),e,t,n,r,o,i,a)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(e){return new SVGPathSegLinetoHorizontalAbs((void 0),e)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(e){return new SVGPathSegLinetoHorizontalRel((void 0),e)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(e){return new SVGPathSegLinetoVerticalAbs((void 0),e)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(e){return new SVGPathSegLinetoVerticalRel((void 0),e)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(e,t,n,r){return new SVGPathSegCurvetoCubicSmoothAbs((void 0),e,t,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(e,t,n,r){return new SVGPathSegCurvetoCubicSmoothRel((void 0),e,t,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(e,t){return new SVGPathSegCurvetoQuadraticSmoothAbs((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(e,t){return new SVGPathSegCurvetoQuadraticSmoothRel((void 0),e,t)}),"SVGPathSegList"in o||(o.SVGPathSegList=function(e){this._pathElement=e,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},Object.defineProperty(SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},SVGPathSegList.prototype._updateListFromPathMutations=function(e){if(this._pathElement){var t=!1;e.forEach(function(e){"d"==e.attributeName&&(t=!0)}),t&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},SVGPathSegList.prototype.segmentChanged=function(e){this._writeListToPath()},SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach(function(e){e._owningPathSegList=null}),this._list=[],this._writeListToPath()},SVGPathSegList.prototype.initialize=function(e){return this._checkPathSynchronizedToList(),this._list=[e],e._owningPathSegList=this,this._writeListToPath(),e},SVGPathSegList.prototype._checkValidIndex=function(e){if(isNaN(e)||e<0||e>=this.numberOfItems)throw"INDEX_SIZE_ERR"},SVGPathSegList.prototype.getItem=function(e){return this._checkPathSynchronizedToList(),this._checkValidIndex(e),this._list[e]},SVGPathSegList.prototype.insertItemBefore=function(e,t){return this._checkPathSynchronizedToList(),t>this.numberOfItems&&(t=this.numberOfItems),e._owningPathSegList&&(e=e.clone()),this._list.splice(t,0,e),e._owningPathSegList=this,this._writeListToPath(),e},SVGPathSegList.prototype.replaceItem=function(e,t){return this._checkPathSynchronizedToList(),e._owningPathSegList&&(e=e.clone()),this._checkValidIndex(t),this._list[t]=e,e._owningPathSegList=this,this._writeListToPath(),e},SVGPathSegList.prototype.removeItem=function(e){this._checkPathSynchronizedToList(),this._checkValidIndex(e);var t=this._list[e];return this._list.splice(e,1),this._writeListToPath(),t},SVGPathSegList.prototype.appendItem=function(e){return this._checkPathSynchronizedToList(),e._owningPathSegList&&(e=e.clone()),this._list.push(e),e._owningPathSegList=this,this._writeListToPath(),e},SVGPathSegList._pathSegArrayAsString=function(e){var t="",n=!0;return e.forEach(function(e){n?(n=!1,t+=e._asPathString()):t+=" "+e._asPathString()}),t},SVGPathSegList.prototype._parsePath=function(e){if(!e||0==e.length)return[];var t=this,n=function(){this.pathSegList=[]};n.prototype.appendSegment=function(e){this.pathSegList.push(e)};var r=function(e){this._string=e,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};r.prototype._isCurrentSpace=function(){var e=this._string[this._currentIndex];return e<=" "&&(" "==e||"\n"==e||"\t"==e||"\r"==e||"\f"==e)},r.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},r.prototype._skipOptionalSpacesOrDelimiter=function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!=this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},r.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},r.prototype.peekSegmentType=function(){var e=this._string[this._currentIndex];return this._pathSegTypeFromChar(e)},r.prototype._pathSegTypeFromChar=function(e){switch(e){case"Z":case"z":return SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return SVGPathSeg.PATHSEG_LINETO_REL;case"C":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return SVGPathSeg.PATHSEG_ARC_ABS;case"a":return SVGPathSeg.PATHSEG_ARC_REL;case"H":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return SVGPathSeg.PATHSEG_UNKNOWN}},r.prototype._nextCommandHelper=function(e,t){return("+"==e||"-"==e||"."==e||e>="0"&&e<="9")&&t!=SVGPathSeg.PATHSEG_CLOSEPATH?t==SVGPathSeg.PATHSEG_MOVETO_ABS?SVGPathSeg.PATHSEG_LINETO_ABS:t==SVGPathSeg.PATHSEG_MOVETO_REL?SVGPathSeg.PATHSEG_LINETO_REL:t:SVGPathSeg.PATHSEG_UNKNOWN},r.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var e=this.peekSegmentType();return e==SVGPathSeg.PATHSEG_MOVETO_ABS||e==SVGPathSeg.PATHSEG_MOVETO_REL},r.prototype._parseNumber=function(){var e=0,t=0,n=1,r=0,o=1,i=1,a=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,o=-1),!(this._currentIndex==this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!=this._string.charAt(this._currentIndex))){for(var s=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=s)for(var u=this._currentIndex-1,c=1;u>=s;)t+=c*(this._string.charAt(u--)-"0"),c*=10;if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)r+=(this._string.charAt(this._currentIndex++)-"0")*(n*=.1)}if(this._currentIndex!=a&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,i=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)e*=10,e+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var l=t+r;if(l*=o,e&&(l*=Math.pow(10,i*e)),a!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),l}},r.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var e=!1,t=this._string.charAt(this._currentIndex++);if("0"==t)e=!1;else{if("1"!=t)return;e=!0}return this._skipOptionalSpacesOrDelimiter(),e}},r.prototype.parseSegment=function(){var e=this._string[this._currentIndex],n=this._pathSegTypeFromChar(e);if(n==SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==SVGPathSeg.PATHSEG_UNKNOWN)return null;if(n=this._nextCommandHelper(e,this._previousCommand),n==SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=n,n){case SVGPathSeg.PATHSEG_MOVETO_REL:return new SVGPathSegMovetoRel(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_MOVETO_ABS:return new SVGPathSegMovetoAbs(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_REL:return new SVGPathSegLinetoRel(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_ABS:return new SVGPathSegLinetoAbs(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new SVGPathSegLinetoHorizontalRel(t,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new SVGPathSegLinetoHorizontalAbs(t,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new SVGPathSegLinetoVerticalRel(t,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new SVGPathSegLinetoVerticalAbs(t,this._parseNumber());case SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new SVGPathSegClosePath(t);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicRel(t,r.x,r.y,r.x1,r.y1,r.x2,r.y2);
|
15 |
-
case SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicAbs(t,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:var r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothRel(t,r.x,r.y,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:var r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothAbs(t,r.x,r.y,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticRel(t,r.x,r.y,r.x1,r.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticAbs(t,r.x,r.y,r.x1,r.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new SVGPathSegCurvetoQuadraticSmoothRel(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new SVGPathSegCurvetoQuadraticSmoothAbs(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_ARC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcRel(t,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);case SVGPathSeg.PATHSEG_ARC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcAbs(t,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);default:throw"Unknown path seg type."}};var o=new n,i=new r(e);if(!i.initialCommandIsMoveTo())return[];for(;i.hasMoreData();){var a=i.parseSegment();if(!a)return[];o.appendSegment(a)}return o.pathSegList})}(),"function"==typeof e&&e.amd?e("c3",["d3"],function(){return h}):"undefined"!=typeof r&&"undefined"!=typeof n?n.exports=h:o.c3=h}(window)},{d3:273}],273:[function(t,n,r){!function(){function t(e){return e&&(e.ownerDocument||e.document||e).documentElement}function r(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}function o(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function i(e){return null===e?NaN:+e}function a(e){return!isNaN(e)}function s(e){return{left:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}function u(e){return e.length}function c(e){for(var t=1;e*t%1;)t*=10;return t}function l(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function p(){this._=Object.create(null)}function f(e){return(e+="")===Ea||e[0]===xa?xa+e:e}function d(e){return(e+="")[0]===xa?e.slice(1):e}function h(e){return f(e)in this._}function g(e){return(e=f(e))in this._&&delete this._[e]}function m(){var e=[];for(var t in this._)e.push(d(t));return e}function y(){var e=0;for(var t in this._)++e;return e}function v(){for(var e in this._)return!1;return!0}function _(){this._=Object.create(null)}function b(e){return e}function E(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function x(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=Ca.length;n<r;++n){var o=Ca[n]+t;if(o in e)return o}}function C(){}function w(){}function S(e){function t(){for(var t,r=n,o=-1,i=r.length;++o<i;)(t=r[o].on)&&t.apply(this,arguments);return e}var n=[],r=new p;return t.on=function(t,o){var i,a=r.get(t);return arguments.length<2?a&&a.on:(a&&(a.on=null,n=n.slice(0,i=n.indexOf(a)).concat(n.slice(i+1)),r.remove(t)),o&&n.push(r.set(t,{on:o})),e)},t}function O(){la.event.preventDefault()}function T(){for(var e,t=la.event;e=t.sourceEvent;)t=e;return t}function P(e){for(var t=new w,n=0,r=arguments.length;++n<r;)t[arguments[n]]=S(t);return t.of=function(n,r){return function(o){try{var i=o.sourceEvent=la.event;o.target=e,la.event=o,t[o.type].apply(n,r)}finally{la.event=i}}},t}function R(e){return Sa(e,Ra),e}function N(e){return"function"==typeof e?e:function(){return Oa(e,this)}}function A(e){return"function"==typeof e?e:function(){return Ta(e,this)}}function M(e,t){function n(){this.removeAttribute(e)}function r(){this.removeAttributeNS(e.space,e.local)}function o(){this.setAttribute(e,t)}function i(){this.setAttributeNS(e.space,e.local,t)}function a(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}function s(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}return e=la.ns.qualify(e),null==t?e.local?r:n:"function"==typeof t?e.local?s:a:e.local?i:o}function D(e){return e.trim().replace(/\s+/g," ")}function I(e){return new RegExp("(?:^|\\s+)"+la.requote(e)+"(?:\\s+|$)","g")}function L(e){return(e+"").trim().split(/^|\s+/)}function k(e,t){function n(){for(var n=-1;++n<o;)e[n](this,t)}function r(){for(var n=-1,r=t.apply(this,arguments);++n<o;)e[n](this,r)}e=L(e).map(j);var o=e.length;return"function"==typeof t?r:n}function j(e){var t=I(e);return function(n,r){if(o=n.classList)return r?o.add(e):o.remove(e);var o=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(o)||n.setAttribute("class",D(o+" "+e))):n.setAttribute("class",D(o.replace(t," ")))}}function F(e,t,n){function r(){this.style.removeProperty(e)}function o(){this.style.setProperty(e,t,n)}function i(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}return null==t?r:"function"==typeof t?i:o}function V(e,t){function n(){delete this[e]}function r(){this[e]=t}function o(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}return null==t?n:"function"==typeof t?o:r}function U(e){function t(){var t=this.ownerDocument,n=this.namespaceURI;return n===Na&&t.documentElement.namespaceURI===Na?t.createElement(e):t.createElementNS(n,e)}function n(){return this.ownerDocument.createElementNS(e.space,e.local)}return"function"==typeof e?e:(e=la.ns.qualify(e)).local?n:t}function z(){var e=this.parentNode;e&&e.removeChild(this)}function G(e){return{__data__:e}}function H(e){return function(){return Pa(this,e)}}function B(e){return arguments.length||(e=o),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function q(e,t){for(var n=0,r=e.length;n<r;n++)for(var o,i=e[n],a=0,s=i.length;a<s;a++)(o=i[a])&&t(o,a,n);return e}function Z(e){return Sa(e,Ma),e}function W(e){var t,n;return function(r,o,i){var a,s=e[i].update,u=s.length;for(i!=n&&(n=i,t=0),o>=t&&(t=o+1);!(a=s[t])&&++t<u;);return a}}function Y(e,t,n){function r(){var t=this[a];t&&(this.removeEventListener(e,t,t.$),delete this[a])}function o(){var o=u(t,fa(arguments));r.call(this),this.addEventListener(e,this[a]=o,o.$=n),o._=t}function i(){var t,n=new RegExp("^__on([^.]+)"+la.requote(e)+"$");for(var r in this)if(t=r.match(n)){var o=this[r];this.removeEventListener(t[1],o,o.$),delete this[r]}}var a="__on"+e,s=e.indexOf("."),u=X;s>0&&(e=e.slice(0,s));var c=Da.get(e);return c&&(e=c,u=K),s?t?o:r:t?C:i}function X(e,t){return function(n){var r=la.event;la.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{la.event=r}}}function K(e,t){var n=X(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}function Q(e){var n=".dragsuppress-"+ ++La,o="click"+n,i=la.select(r(e)).on("touchmove"+n,O).on("dragstart"+n,O).on("selectstart"+n,O);if(null==Ia&&(Ia=!("onselectstart"in e)&&x(e.style,"userSelect")),Ia){var a=t(e).style,s=a[Ia];a[Ia]="none"}return function(e){if(i.on(n,null),Ia&&(a[Ia]=s),e){var t=function(){i.on(o,null)};i.on(o,function(){O(),t()},!0),setTimeout(t,0)}}}function $(e,t){t.changedTouches&&(t=t.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var o=n.createSVGPoint();if(ka<0){var i=r(e);if(i.scrollX||i.scrollY){n=la.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=n[0][0].getScreenCTM();ka=!(a.f||a.e),n.remove()}}return ka?(o.x=t.pageX,o.y=t.pageY):(o.x=t.clientX,o.y=t.clientY),o=o.matrixTransform(e.getScreenCTM().inverse()),[o.x,o.y]}var s=e.getBoundingClientRect();return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}function J(){return la.event.changedTouches[0].identifier}function ee(e){return e>0?1:e<0?-1:0}function te(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function ne(e){return e>1?0:e<-1?Va:Math.acos(e)}function re(e){return e>1?Ga:e<-1?-Ga:Math.asin(e)}function oe(e){return((e=Math.exp(e))-1/e)/2}function ie(e){return((e=Math.exp(e))+1/e)/2}function ae(e){return((e=Math.exp(2*e))-1)/(e+1)}function se(e){return(e=Math.sin(e/2))*e}function ue(){}function ce(e,t,n){return this instanceof ce?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof ce?new ce(e.h,e.s,e.l):Ce(""+e,we,ce):new ce(e,t,n)}function le(e,t,n){function r(e){return e>360?e-=360:e<0&&(e+=360),e<60?i+(a-i)*e/60:e<180?a:e<240?i+(a-i)*(240-e)/60:i}function o(e){return Math.round(255*r(e))}var i,a;return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:t>1?1:t,n=n<0?0:n>1?1:n,a=n<=.5?n*(1+t):n+t-n*t,i=2*n-a,new _e(o(e+120),o(e),o(e-120))}function pe(e,t,n){return this instanceof pe?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof pe?new pe(e.h,e.c,e.l):e instanceof de?ge(e.l,e.a,e.b):ge((e=Se((e=la.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new pe(e,t,n)}function fe(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new de(n,Math.cos(e*=Ha)*t,Math.sin(e)*t)}function de(e,t,n){return this instanceof de?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof de?new de(e.l,e.a,e.b):e instanceof pe?fe(e.h,e.c,e.l):Se((e=_e(e)).r,e.g,e.b):new de(e,t,n)}function he(e,t,n){var r=(e+16)/116,o=r+t/500,i=r-n/200;return o=me(o)*es,r=me(r)*ts,i=me(i)*ns,new _e(ve(3.2404542*o-1.5371385*r-.4985314*i),ve(-.969266*o+1.8760108*r+.041556*i),ve(.0556434*o-.2040259*r+1.0572252*i))}function ge(e,t,n){return e>0?new pe(Math.atan2(n,t)*Ba,Math.sqrt(t*t+n*n),e):new pe(NaN,NaN,e)}function me(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function ye(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function ve(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function _e(e,t,n){return this instanceof _e?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof _e?new _e(e.r,e.g,e.b):Ce(""+e,_e,le):new _e(e,t,n)}function be(e){return new _e(e>>16,e>>8&255,255&e)}function Ee(e){return be(e)+""}function xe(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function Ce(e,t,n){var r,o,i,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(o=r[2].split(","),r[1]){case"hsl":return n(parseFloat(o[0]),parseFloat(o[1])/100,parseFloat(o[2])/100);case"rgb":return t(Te(o[0]),Te(o[1]),Te(o[2]))}return(i=is.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(a=(3840&i)>>4,a=a>>4|a,s=240&i,s=s>>4|s,u=15&i,u=u<<4|u):7===e.length&&(a=(16711680&i)>>16,s=(65280&i)>>8,u=255&i)),t(a,s,u))}function we(e,t,n){var r,o,i=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),s=a-i,u=(a+i)/2;return s?(o=u<.5?s/(a+i):s/(2-a-i),r=e==a?(t-n)/s+(t<n?6:0):t==a?(n-e)/s+2:(e-t)/s+4,r*=60):(r=NaN,o=u>0&&u<1?0:r),new ce(r,o,u)}function Se(e,t,n){e=Oe(e),t=Oe(t),n=Oe(n);var r=ye((.4124564*e+.3575761*t+.1804375*n)/es),o=ye((.2126729*e+.7151522*t+.072175*n)/ts),i=ye((.0193339*e+.119192*t+.9503041*n)/ns);return de(116*o-16,500*(r-o),200*(o-i))}function Oe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Te(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}function Pe(e){return"function"==typeof e?e:function(){return e}}function Re(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Ne(t,n,e,r)}}function Ne(e,t,n,r){function o(){var e,t=u.status;if(!t&&Me(u)||t>=200&&t<300||304===t){try{e=n.call(i,u)}catch(e){return void a.error.call(i,e)}a.load.call(i,e)}else a.error.call(i,u)}var i={},a=la.dispatch("beforesend","progress","load","error"),s={},u=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(e)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=o:u.onreadystatechange=function(){u.readyState>3&&o()},u.onprogress=function(e){var t=la.event;la.event=e;try{a.progress.call(i,u)}finally{la.event=t}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",i):t},i.responseType=function(e){return arguments.length?(c=e,i):c},i.response=function(e){return n=e,i},["get","post"].forEach(function(e){i[e]=function(){return i.send.apply(i,[e].concat(fa(arguments)))}}),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),u.open(n,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),u.setRequestHeader)for(var l in s)u.setRequestHeader(l,s[l]);return null!=t&&u.overrideMimeType&&u.overrideMimeType(t),null!=c&&(u.responseType=c),null!=o&&i.on("error",o).on("load",function(e){o(null,e)}),a.beforesend.call(i,u),u.send(null==r?null:r),i},i.abort=function(){return u.abort(),i},la.rebind(i,a,"on"),null==r?i:i.get(Ae(r))}function Ae(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}function Me(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}function De(e,t,n){var r=arguments.length;r<2&&(t=0),r<3&&(n=Date.now());var o=n+t,i={c:e,t:o,n:null};return ss?ss.n=i:as=i,ss=i,us||(cs=clearTimeout(cs),us=1,ls(Ie)),i}function Ie(){var e=Le(),t=ke()-e;t>24?(isFinite(t)&&(clearTimeout(cs),cs=setTimeout(Ie,t)),us=0):(us=1,ls(Ie))}function Le(){for(var e=Date.now(),t=as;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function ke(){for(var e,t=as,n=1/0;t;)t.c?(t.t<n&&(n=t.t),t=(e=t).n):t=e?e.n=t.n:as=t.n;return ss=e,n}function je(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}function Fe(e,t){var n=Math.pow(10,3*ba(8-t));return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}function Ve(e){var t=e.decimal,n=e.thousands,r=e.grouping,o=e.currency,i=r&&n?function(e,t){for(var o=e.length,i=[],a=0,s=r[0],u=0;o>0&&s>0&&(u+s+1>t&&(s=Math.max(1,t-u)),i.push(e.substring(o-=s,o+s)),!((u+=s+1)>t));)s=r[a=(a+1)%r.length];return i.reverse().join(n)}:b;return function(e){var n=fs.exec(e),r=n[1]||" ",a=n[2]||">",s=n[3]||"-",u=n[4]||"",c=n[5],l=+n[6],p=n[7],f=n[8],d=n[9],h=1,g="",m="",y=!1,v=!0;switch(f&&(f=+f.substring(1)),(c||"0"===r&&"="===a)&&(c=r="0",a="="),d){case"n":p=!0,d="g";break;case"%":h=100,m="%",d="f";break;case"p":h=100,m="%",d="r";break;case"b":case"o":case"x":case"X":"#"===u&&(g="0"+d.toLowerCase());case"c":v=!1;case"d":y=!0,f=0;break;case"s":h=-1,d="r"}"$"===u&&(g=o[0],m=o[1]),"r"!=d||f||(d="g"),null!=f&&("g"==d?f=Math.max(1,Math.min(21,f)):"e"!=d&&"f"!=d||(f=Math.max(0,Math.min(20,f)))),d=ds.get(d)||Ue;var _=c&&p;return function(e){var n=m;if(y&&e%1)return"";var o=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(h<0){var u=la.formatPrefix(e,f);e=u.scale(e),n=u.symbol+m}else e*=h;e=d(e,f);var b,E,x=e.lastIndexOf(".");if(x<0){var C=v?e.lastIndexOf("e"):-1;C<0?(b=e,E=""):(b=e.substring(0,C),E=e.substring(C))}else b=e.substring(0,x),E=t+e.substring(x+1);!c&&p&&(b=i(b,1/0));var w=g.length+b.length+E.length+(_?0:o.length),S=w<l?new Array(w=l-w+1).join(r):"";return _&&(b=i(S+b,S.length?l-E.length:1/0)),o+=g,e=b+E,("<"===a?o+e+S:">"===a?S+o+e:"^"===a?S.substring(0,w>>=1)+o+e+S.substring(w):o+(_?e:S+e))+n}}}function Ue(e){return e+""}function ze(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Ge(e,t,n){function r(t){var n=e(t),r=i(n,1);return t-n<r-t?n:r}function o(n){return t(n=e(new gs(n-1)),1),n}function i(e,n){return t(e=new gs((+e)),n),e}function a(e,r,i){var a=o(e),s=[];if(i>1)for(;a<r;)n(a)%i||s.push(new Date((+a))),t(a,1);else for(;a<r;)s.push(new Date((+a))),t(a,1);return s}function s(e,t,n){try{gs=ze;var r=new ze;return r._=e,a(r,t,n)}finally{gs=Date}}e.floor=e,e.round=r,e.ceil=o,e.offset=i,e.range=a;var u=e.utc=He(e);return u.floor=u,u.round=He(r),u.ceil=He(o),u.offset=He(i),u.range=s,e}function He(e){return function(t,n){try{gs=ze;var r=new ze;return r._=t,e(r,n)._}finally{gs=Date}}}function Be(e){function t(e){function t(t){for(var n,o,i,a=[],s=-1,u=0;++s<r;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(o=ys[n=e.charAt(++s)])&&(n=e.charAt(++s)),(i=P[n])&&(n=i(t,null==o?"e"===n?" ":"0":o)),a.push(n),u=s+1);return a.push(e.slice(u,s)),a.join("")}var r=e.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},o=n(r,e,t,0);if(o!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var i=null!=r.Z&&gs!==ze,a=new(i?ze:gs);return"j"in r?a.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),i?a._:a},t.toString=function(){return e},t}function n(e,t,n,r){for(var o,i,a,s=0,u=t.length,c=n.length;s<u;){if(r>=c)return-1;if(o=t.charCodeAt(s++),37===o){if(a=t.charAt(s++),i=R[a in ys?t.charAt(s++):a],!i||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function r(e,t,n){x.lastIndex=0;var r=x.exec(t.slice(n));return r?(e.w=C.get(r[0].toLowerCase()),n+r[0].length):-1}function o(e,t,n){b.lastIndex=0;var r=b.exec(t.slice(n));return r?(e.w=E.get(r[0].toLowerCase()),n+r[0].length):-1}function i(e,t,n){O.lastIndex=0;var r=O.exec(t.slice(n));return r?(e.m=T.get(r[0].toLowerCase()),n+r[0].length):-1}function a(e,t,n){w.lastIndex=0;var r=w.exec(t.slice(n));return r?(e.m=S.get(r[0].toLowerCase()),n+r[0].length):-1}function s(e,t,r){return n(e,P.c.toString(),t,r)}function u(e,t,r){return n(e,P.x.toString(),t,r)}function c(e,t,r){return n(e,P.X.toString(),t,r)}function l(e,t,n){var r=_.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)}var p=e.dateTime,f=e.date,d=e.time,h=e.periods,g=e.days,m=e.shortDays,y=e.months,v=e.shortMonths;t.utc=function(e){function n(e){try{gs=ze;var t=new gs;return t._=e,r(t)}finally{gs=Date}}var r=t(e);return n.parse=function(e){try{gs=ze;var t=r.parse(e);return t&&t._}finally{gs=Date}},n.toString=r.toString,n},t.multi=t.utc.multi=lt;var _=la.map(),b=Ze(g),E=We(g),x=Ze(m),C=We(m),w=Ze(y),S=We(y),O=Ze(v),T=We(v);h.forEach(function(e,t){_.set(e.toLowerCase(),t)});var P={a:function(e){return m[e.getDay()]},A:function(e){return g[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return y[e.getMonth()]},c:t(p),d:function(e,t){return qe(e.getDate(),t,2)},e:function(e,t){return qe(e.getDate(),t,2)},H:function(e,t){return qe(e.getHours(),t,2)},I:function(e,t){return qe(e.getHours()%12||12,t,2)},j:function(e,t){return qe(1+hs.dayOfYear(e),t,3)},L:function(e,t){return qe(e.getMilliseconds(),t,3)},m:function(e,t){return qe(e.getMonth()+1,t,2)},M:function(e,t){return qe(e.getMinutes(),t,2)},p:function(e){return h[+(e.getHours()>=12)]},S:function(e,t){return qe(e.getSeconds(),t,2)},U:function(e,t){return qe(hs.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return qe(hs.mondayOfYear(e),t,2)},x:t(f),X:t(d),y:function(e,t){return qe(e.getFullYear()%100,t,2)},Y:function(e,t){return qe(e.getFullYear()%1e4,t,4)},Z:ut,"%":function(){return"%"}},R={a:r,A:o,b:i,B:a,c:s,d:nt,e:nt,H:ot,I:ot,j:rt,L:st,m:tt,M:it,p:l,S:at,U:Xe,w:Ye,W:Ke,x:u,X:c,y:$e,Y:Qe,Z:Je,"%":ct};return t}function qe(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Ze(e){return new RegExp("^(?:"+e.map(la.requote).join("|")+")","i")}function We(e){for(var t=new p,n=-1,r=e.length;++n<r;)t.set(e[n].toLowerCase(),n);return t}function Ye(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Xe(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function Ke(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function Qe(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $e(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.y=et(+r[0]),n+r[0].length):-1}function Je(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function et(e){return e+(e>68?1900:2e3)}function tt(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nt(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rt(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function ot(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function it(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function at(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function st(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ut(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=ba(t)/60|0,o=ba(t)%60;return n+qe(r,"0",2)+qe(o,"0",2)}function ct(e,t,n){_s.lastIndex=0;var r=_s.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lt(e){for(var t=e.length,n=-1;++n<t;)e[n][0]=this(e[n][0]);return function(t){for(var n=0,r=e[n];!r[1](t);)r=e[++n];return r[0](t)}}function pt(){}function ft(e,t,n){var r=n.s=e+t,o=r-e,i=r-o;n.t=e-i+(t-o)}function dt(e,t){e&&Cs.hasOwnProperty(e.type)&&Cs[e.type](e,t)}function ht(e,t,n){var r,o=-1,i=e.length-n;for(t.lineStart();++o<i;)r=e[o],t.point(r[0],r[1],r[2]);t.lineEnd()}function gt(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)ht(e[n],t,1);t.polygonEnd()}function mt(){function e(e,t){e*=Ha,t=t*Ha/2+Va/4;var n=e-r,a=n>=0?1:-1,s=a*n,u=Math.cos(t),c=Math.sin(t),l=i*c,p=o*u+l*Math.cos(s),f=l*a*Math.sin(s);Ss.add(Math.atan2(f,p)),r=e,o=u,i=c}var t,n,r,o,i;Os.point=function(a,s){Os.point=e,r=(t=a)*Ha,o=Math.cos(s=(n=s)*Ha/2+Va/4),i=Math.sin(s)},Os.lineEnd=function(){e(t,n)}}function yt(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function vt(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function _t(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function bt(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Et(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function xt(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Ct(e){return[Math.atan2(e[1],e[0]),re(e[2])]}function wt(e,t){return ba(e[0]-t[0])<ja&&ba(e[1]-t[1])<ja}function St(e,t){e*=Ha;var n=Math.cos(t*=Ha);Ot(n*Math.cos(e),n*Math.sin(e),Math.sin(t))}function Ot(e,t,n){++Ts,Rs+=(e-Rs)/Ts,Ns+=(t-Ns)/Ts,As+=(n-As)/Ts}function Tt(){function e(e,o){e*=Ha;var i=Math.cos(o*=Ha),a=i*Math.cos(e),s=i*Math.sin(e),u=Math.sin(o),c=Math.atan2(Math.sqrt((c=n*u-r*s)*c+(c=r*a-t*u)*c+(c=t*s-n*a)*c),t*a+n*s+r*u);Ps+=c,Ms+=c*(t+(t=a)),Ds+=c*(n+(n=s)),Is+=c*(r+(r=u)),Ot(t,n,r)}var t,n,r;Fs.point=function(o,i){o*=Ha;var a=Math.cos(i*=Ha);t=a*Math.cos(o),n=a*Math.sin(o),r=Math.sin(i),Fs.point=e,Ot(t,n,r)}}function Pt(){Fs.point=St}function Rt(){function e(e,t){e*=Ha;var n=Math.cos(t*=Ha),a=n*Math.cos(e),s=n*Math.sin(e),u=Math.sin(t),c=o*u-i*s,l=i*a-r*u,p=r*s-o*a,f=Math.sqrt(c*c+l*l+p*p),d=r*a+o*s+i*u,h=f&&-ne(d)/f,g=Math.atan2(f,d);Ls+=h*c,ks+=h*l,js+=h*p,Ps+=g,Ms+=g*(r+(r=a)),Ds+=g*(o+(o=s)),Is+=g*(i+(i=u)),Ot(r,o,i)}var t,n,r,o,i;Fs.point=function(a,s){t=a,n=s,Fs.point=e,a*=Ha;var u=Math.cos(s*=Ha);r=u*Math.cos(a),o=u*Math.sin(a),i=Math.sin(s),Ot(r,o,i)},Fs.lineEnd=function(){e(t,n),Fs.lineEnd=Pt,Fs.point=St}}function Nt(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function At(){return!0}function Mt(e,t,n,r,o){var i=[],a=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t];if(wt(n,r)){o.lineStart();for(var s=0;s<t;++s)o.point((n=e[s])[0],n[1]);return void o.lineEnd()}var u=new It(n,e,null,(!0)),c=new It(n,null,u,(!1));u.o=c,i.push(u),a.push(c),u=new It(r,e,null,(!1)),c=new It(r,null,u,(!0)),u.o=c,i.push(u),a.push(c)}}),a.sort(t),Dt(i),Dt(a),i.length){for(var s=0,u=n,c=a.length;s<c;++s)a[s].e=u=!u;for(var l,p,f=i[0];;){for(var d=f,h=!0;d.v;)if((d=d.n)===f)return;l=d.z,o.lineStart();do{if(d.v=d.o.v=!0,d.e){if(h)for(var s=0,c=l.length;s<c;++s)o.point((p=l[s])[0],p[1]);else r(d.x,d.n.x,1,o);d=d.n}else{if(h){l=d.p.z;for(var s=l.length-1;s>=0;--s)o.point((p=l[s])[0],p[1])}else r(d.x,d.p.x,-1,o);d=d.p}d=d.o,l=d.z,h=!h}while(!d.v);o.lineEnd()}}}function Dt(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r<t;)o.n=n=e[r],n.p=o,o=n;o.n=n=e[0],n.p=o}}function It(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Lt(e,t,n,r){return function(o,i){function a(t,n){var r=o(t,n);e(t=r[0],n=r[1])&&i.point(t,n)}function s(e,t){var n=o(e,t);m.point(n[0],n[1])}function u(){v.point=s,m.lineStart()}function c(){v.point=a,m.lineEnd()}function l(e,t){g.push([e,t]);var n=o(e,t);b.point(n[0],n[1])}function p(){b.lineStart(),g=[]}function f(){l(g[0][0],g[0][1]),b.lineEnd();var e,t=b.clean(),n=_.buffer(),r=n.length;if(g.pop(),h.push(g),g=null,r)if(1&t){e=n[0];var o,r=e.length-1,a=-1;if(r>0){for(E||(i.polygonStart(),E=!0),i.lineStart();++a<r;)i.point((o=e[a])[0],o[1]);i.lineEnd()}}else r>1&&2&t&&n.push(n.pop().concat(n.shift())),d.push(n.filter(kt))}var d,h,g,m=t(i),y=o.invert(r[0],r[1]),v={point:a,lineStart:u,lineEnd:c,polygonStart:function(){v.point=l,v.lineStart=p,v.lineEnd=f,d=[],h=[]},polygonEnd:function(){v.point=a,v.lineStart=u,v.lineEnd=c,d=la.merge(d);var e=Gt(y,h);d.length?(E||(i.polygonStart(),E=!0),Mt(d,Ft,e,n,i)):e&&(E||(i.polygonStart(),E=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),E&&(i.polygonEnd(),E=!1),d=h=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}},_=jt(),b=t(_),E=!1;return v}}function kt(e){return e.length>1}function jt(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:C,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Ft(e,t){return((e=e.x)[0]<0?e[1]-Ga-ja:Ga-e[1])-((t=t.x)[0]<0?t[1]-Ga-ja:Ga-t[1])}function Vt(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var s=i>0?Va:-Va,u=ba(i-n);ba(u-Va)<ja?(e.point(n,r=(r+a)/2>0?Ga:-Ga),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(i,r),t=0):o!==s&&u>=Va&&(ba(n-o)<ja&&(n-=o*ja),ba(i-s)<ja&&(i-=s*ja),r=Ut(n,r,i,a),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=i,r=a),o=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}function Ut(e,t,n,r){var o,i,a=Math.sin(e-n);return ba(a)>ja?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(n)-Math.sin(r)*(o=Math.cos(t))*Math.sin(e))/(o*i*a)):(t+r)/2}function zt(e,t,n,r){var o;if(null==e)o=n*Ga,r.point(-Va,o),r.point(0,o),r.point(Va,o),r.point(Va,0),r.point(Va,-o),r.point(0,-o),r.point(-Va,-o),r.point(-Va,0),r.point(-Va,o);else if(ba(e[0]-t[0])>ja){var i=e[0]<t[0]?Va:-Va;o=n*i/2,r.point(-i,o),r.point(0,o),r.point(i,o)}else r.point(t[0],t[1])}function Gt(e,t){var n=e[0],r=e[1],o=[Math.sin(n),-Math.cos(n),0],i=0,a=0;Ss.reset();for(var s=0,u=t.length;s<u;++s){var c=t[s],l=c.length;if(l)for(var p=c[0],f=p[0],d=p[1]/2+Va/4,h=Math.sin(d),g=Math.cos(d),m=1;;){m===l&&(m=0),e=c[m];var y=e[0],v=e[1]/2+Va/4,_=Math.sin(v),b=Math.cos(v),E=y-f,x=E>=0?1:-1,C=x*E,w=C>Va,S=h*_;if(Ss.add(Math.atan2(S*x*Math.sin(C),g*b+S*Math.cos(C))),i+=w?E+x*Ua:E,w^f>=n^y>=n){var O=_t(yt(p),yt(e));xt(O);var T=_t(o,O);xt(T);var P=(w^E>=0?-1:1)*re(T[2]);(r>P||r===P&&(O[0]||O[1]))&&(a+=w^E>=0?1:-1)}if(!m++)break;f=y,h=_,g=b,p=e}}return(i<-ja||i<ja&&Ss<-ja)^1&a}function Ht(e){function t(e,t){return Math.cos(e)*Math.cos(t)>i}function n(e){var n,i,u,c,l;return{lineStart:function(){c=u=!1,l=1},point:function(p,f){var d,h=[p,f],g=t(p,f),m=a?g?0:o(p,f):g?o(p+(p<0?Va:-Va),f):0;if(!n&&(c=u=g)&&e.lineStart(),g!==u&&(d=r(n,h),(wt(n,d)||wt(h,d))&&(h[0]+=ja,h[1]+=ja,g=t(h[0],h[1]))),g!==u)l=0,g?(e.lineStart(),d=r(h,n),e.point(d[0],d[1])):(d=r(n,h),e.point(d[0],d[1]),e.lineEnd()),n=d;else if(s&&n&&a^g){var y;m&i||!(y=r(h,n,!0))||(l=0,a?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1])))}!g||n&&wt(n,h)||e.point(h[0],h[1]),n=h,u=g,i=m},lineEnd:function(){u&&e.lineEnd(),n=null},clean:function(){return l|(c&&u)<<1}}}function r(e,t,n){var r=yt(e),o=yt(t),a=[1,0,0],s=_t(r,o),u=vt(s,s),c=s[0],l=u-c*c;if(!l)return!n&&e;var p=i*u/l,f=-i*c/l,d=_t(a,s),h=Et(a,p),g=Et(s,f);bt(h,g);var m=d,y=vt(h,m),v=vt(m,m),_=y*y-v*(vt(h,h)-1);if(!(_<0)){var b=Math.sqrt(_),E=Et(m,(-y-b)/v);if(bt(E,h),E=Ct(E),!n)return E;var x,C=e[0],w=t[0],S=e[1],O=t[1];w<C&&(x=C,C=w,w=x);var T=w-C,P=ba(T-Va)<ja,R=P||T<ja;if(!P&&O<S&&(x=S,S=O,O=x),R?P?S+O>0^E[1]<(ba(E[0]-C)<ja?S:O):S<=E[1]&&E[1]<=O:T>Va^(C<=E[0]&&E[0]<=w)){var N=Et(m,(-y+b)/v);return bt(N,h),[E,Ct(N)]}}}function o(t,n){var r=a?e:Va-e,o=0;return t<-r?o|=1:t>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}var i=Math.cos(e),a=i>0,s=ba(i)>ja,u=yn(e,6*Ha);return Lt(t,n,u,a?[0,-e]:[-Va,e-Va])}function Bt(e,t,n,r){return function(o){var i,a=o.a,s=o.b,u=a.x,c=a.y,l=s.x,p=s.y,f=0,d=1,h=l-u,g=p-c;if(i=e-u,h||!(i>0)){if(i/=h,h<0){if(i<f)return;i<d&&(d=i)}else if(h>0){if(i>d)return;i>f&&(f=i)}if(i=n-u,h||!(i<0)){if(i/=h,h<0){if(i>d)return;i>f&&(f=i)}else if(h>0){if(i<f)return;i<d&&(d=i)}if(i=t-c,g||!(i>0)){if(i/=g,g<0){if(i<f)return;i<d&&(d=i)}else if(g>0){if(i>d)return;i>f&&(f=i)}if(i=r-c,g||!(i<0)){if(i/=g,g<0){if(i>d)return;i>f&&(f=i)}else if(g>0){if(i<f)return;i<d&&(d=i)}return f>0&&(o.a={x:u+f*h,y:c+f*g}),d<1&&(o.b={x:u+d*h,y:c+d*g}),o}}}}}}function qt(e,t,n,r){function o(r,o){return ba(r[0]-e)<ja?o>0?0:3:ba(r[0]-n)<ja?o>0?2:1:ba(r[1]-t)<ja?o>0?1:0:o>0?3:2}function i(e,t){return a(e.x,t.x)}function a(e,t){var n=o(e,1),r=o(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(s){function u(e){for(var t=0,n=m.length,r=e[1],o=0;o<n;++o)for(var i,a=1,s=m[o],u=s.length,c=s[0];a<u;++a)i=s[a],c[1]<=r?i[1]>r&&te(c,i,e)>0&&++t:i[1]<=r&&te(c,i,e)<0&&--t,c=i;return 0!==t}function c(i,s,u,c){var l=0,p=0;if(null==i||(l=o(i,u))!==(p=o(s,u))||a(i,s)<0^u>0){do c.point(0===l||3===l?e:n,l>1?r:t);while((l=(l+u+4)%4)!==p)}else c.point(s[0],s[1])}function l(o,i){return e<=o&&o<=n&&t<=i&&i<=r}function p(e,t){l(e,t)&&s.point(e,t)}function f(){R.point=h,m&&m.push(y=[]),w=!0,C=!1,E=x=NaN}function d(){g&&(h(v,_),b&&C&&T.rejoin(),g.push(T.buffer())),R.point=p,C&&s.lineEnd()}function h(e,t){e=Math.max(-Us,Math.min(Us,e)),t=Math.max(-Us,Math.min(Us,t));var n=l(e,t);if(m&&y.push([e,t]),w)v=e,_=t,b=n,w=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&C)s.point(e,t);else{var r={a:{x:E,y:x},b:{x:e,y:t}};P(r)?(C||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),S=!1):n&&(s.lineStart(),s.point(e,t),S=!1)}E=e,x=t,C=n}var g,m,y,v,_,b,E,x,C,w,S,O=s,T=jt(),P=Bt(e,t,n,r),R={point:p,lineStart:f,lineEnd:d,polygonStart:function(){s=T,g=[],m=[],S=!0},polygonEnd:function(){s=O,g=la.merge(g);var t=u([e,r]),n=S&&t,o=g.length;(n||o)&&(s.polygonStart(),n&&(s.lineStart(),c(null,null,1,s),s.lineEnd()),o&&Mt(g,i,t,c,s),s.polygonEnd()),g=m=y=null}};return R}}function Zt(e){var t=0,n=Va/3,r=cn(e),o=r(t,n);
|
16 |
-
return o.parallels=function(e){return arguments.length?r(t=e[0]*Va/180,n=e[1]*Va/180):[t/Va*180,n/Va*180]},o}function Wt(e,t){function n(e,t){var n=Math.sqrt(i-2*o*Math.sin(t))/o;return[n*Math.sin(e*=o),a-n*Math.cos(e)]}var r=Math.sin(e),o=(r+Math.sin(t))/2,i=1+r*(2*o-r),a=Math.sqrt(i)/o;return n.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/o,re((i-(e*e+n*n)*o*o)/(2*o))]},n}function Yt(){function e(e,t){Gs+=o*e-r*t,r=e,o=t}var t,n,r,o;Ws.point=function(i,a){Ws.point=e,t=r=i,n=o=a},Ws.lineEnd=function(){e(t,n)}}function Xt(e,t){e<Hs&&(Hs=e),e>qs&&(qs=e),t<Bs&&(Bs=t),t>Zs&&(Zs=t)}function Kt(){function e(e,t){a.push("M",e,",",t,i)}function t(e,t){a.push("M",e,",",t),s.point=n}function n(e,t){a.push("L",e,",",t)}function r(){s.point=e}function o(){a.push("Z")}var i=Qt(4.5),a=[],s={point:e,lineStart:function(){s.point=t},lineEnd:r,polygonStart:function(){s.lineEnd=o},polygonEnd:function(){s.lineEnd=r,s.point=e},pointRadius:function(e){return i=Qt(e),s},result:function(){if(a.length){var e=a.join("");return a=[],e}}};return s}function Qt(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function $t(e,t){Rs+=e,Ns+=t,++As}function Jt(){function e(e,r){var o=e-t,i=r-n,a=Math.sqrt(o*o+i*i);Ms+=a*(t+e)/2,Ds+=a*(n+r)/2,Is+=a,$t(t=e,n=r)}var t,n;Xs.point=function(r,o){Xs.point=e,$t(t=r,n=o)}}function en(){Xs.point=$t}function tn(){function e(e,t){var n=e-r,i=t-o,a=Math.sqrt(n*n+i*i);Ms+=a*(r+e)/2,Ds+=a*(o+t)/2,Is+=a,a=o*e-r*t,Ls+=a*(r+e),ks+=a*(o+t),js+=3*a,$t(r=e,o=t)}var t,n,r,o;Xs.point=function(i,a){Xs.point=e,$t(t=r=i,n=o=a)},Xs.lineEnd=function(){e(t,n)}}function nn(e){function t(t,n){e.moveTo(t+a,n),e.arc(t,n,a,0,Ua)}function n(t,n){e.moveTo(t,n),s.point=r}function r(t,n){e.lineTo(t,n)}function o(){s.point=t}function i(){e.closePath()}var a=4.5,s={point:t,lineStart:function(){s.point=n},lineEnd:o,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=o,s.point=t},pointRadius:function(e){return a=e,s},result:C};return s}function rn(e){function t(e){return(s?r:n)(e)}function n(t){return sn(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})}function r(t){function n(n,r){n=e(n,r),t.point(n[0],n[1])}function r(){_=NaN,w.point=i,t.lineStart()}function i(n,r){var i=yt([n,r]),a=e(n,r);o(_,b,v,E,x,C,_=a[0],b=a[1],v=n,E=i[0],x=i[1],C=i[2],s,t),t.point(_,b)}function a(){w.point=n,t.lineEnd()}function u(){r(),w.point=c,w.lineEnd=l}function c(e,t){i(p=e,f=t),d=_,h=b,g=E,m=x,y=C,w.point=i}function l(){o(_,b,v,E,x,C,d,h,p,g,m,y,s,t),w.lineEnd=a,a()}var p,f,d,h,g,m,y,v,_,b,E,x,C,w={point:n,lineStart:r,lineEnd:a,polygonStart:function(){t.polygonStart(),w.lineStart=u},polygonEnd:function(){t.polygonEnd(),w.lineStart=r}};return w}function o(t,n,r,s,u,c,l,p,f,d,h,g,m,y){var v=l-t,_=p-n,b=v*v+_*_;if(b>4*i&&m--){var E=s+d,x=u+h,C=c+g,w=Math.sqrt(E*E+x*x+C*C),S=Math.asin(C/=w),O=ba(ba(C)-1)<ja||ba(r-f)<ja?(r+f)/2:Math.atan2(x,E),T=e(O,S),P=T[0],R=T[1],N=P-t,A=R-n,M=_*N-v*A;(M*M/b>i||ba((v*N+_*A)/b-.5)>.3||s*d+u*h+c*g<a)&&(o(t,n,r,s,u,c,P,R,O,E/=w,x/=w,C,m,y),y.point(P,R),o(P,R,O,E,x,C,l,p,f,d,h,g,m,y))}}var i=.5,a=Math.cos(30*Ha),s=16;return t.precision=function(e){return arguments.length?(s=(i=e*e)>0&&16,t):Math.sqrt(i)},t}function on(e){var t=rn(function(t,n){return e([t*Ba,n*Ba])});return function(e){return ln(t(e))}}function an(e){this.stream=e}function sn(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function un(e){return cn(function(){return e})()}function cn(e){function t(e){return e=s(e[0]*Ha,e[1]*Ha),[e[0]*f+u,c-e[1]*f]}function n(e){return e=s.invert((e[0]-u)/f,(c-e[1])/f),e&&[e[0]*Ba,e[1]*Ba]}function r(){s=Nt(a=dn(y,v,_),i);var e=i(g,m);return u=d-e[0]*f,c=h+e[1]*f,o()}function o(){return l&&(l.valid=!1,l=null),t}var i,a,s,u,c,l,p=rn(function(e,t){return e=i(e,t),[e[0]*f+u,c-e[1]*f]}),f=150,d=480,h=250,g=0,m=0,y=0,v=0,_=0,E=Vs,x=b,C=null,w=null;return t.stream=function(e){return l&&(l.valid=!1),l=ln(E(a,p(x(e)))),l.valid=!0,l},t.clipAngle=function(e){return arguments.length?(E=null==e?(C=e,Vs):Ht((C=+e)*Ha),o()):C},t.clipExtent=function(e){return arguments.length?(w=e,x=e?qt(e[0][0],e[0][1],e[1][0],e[1][1]):b,o()):w},t.scale=function(e){return arguments.length?(f=+e,r()):f},t.translate=function(e){return arguments.length?(d=+e[0],h=+e[1],r()):[d,h]},t.center=function(e){return arguments.length?(g=e[0]%360*Ha,m=e[1]%360*Ha,r()):[g*Ba,m*Ba]},t.rotate=function(e){return arguments.length?(y=e[0]%360*Ha,v=e[1]%360*Ha,_=e.length>2?e[2]%360*Ha:0,r()):[y*Ba,v*Ba,_*Ba]},la.rebind(t,p,"precision"),function(){return i=e.apply(this,arguments),t.invert=i.invert&&n,r()}}function ln(e){return sn(e,function(t,n){e.point(t*Ha,n*Ha)})}function pn(e,t){return[e,t]}function fn(e,t){return[e>Va?e-Ua:e<-Va?e+Ua:e,t]}function dn(e,t,n){return e?t||n?Nt(gn(e),mn(t,n)):gn(e):t||n?mn(t,n):fn}function hn(e){return function(t,n){return t+=e,[t>Va?t-Ua:t<-Va?t+Ua:t,n]}}function gn(e){var t=hn(e);return t.invert=hn(-e),t}function mn(e,t){function n(e,t){var n=Math.cos(t),s=Math.cos(e)*n,u=Math.sin(e)*n,c=Math.sin(t),l=c*r+s*o;return[Math.atan2(u*i-l*a,s*r-c*o),re(l*i+u*a)]}var r=Math.cos(e),o=Math.sin(e),i=Math.cos(t),a=Math.sin(t);return n.invert=function(e,t){var n=Math.cos(t),s=Math.cos(e)*n,u=Math.sin(e)*n,c=Math.sin(t),l=c*i-u*a;return[Math.atan2(u*i+c*a,s*r+l*o),re(l*r-s*o)]},n}function yn(e,t){var n=Math.cos(e),r=Math.sin(e);return function(o,i,a,s){var u=a*t;null!=o?(o=vn(n,o),i=vn(n,i),(a>0?o<i:o>i)&&(o+=a*Ua)):(o=e+a*Ua,i=e-.5*u);for(var c,l=o;a>0?l>i:l<i;l-=u)s.point((c=Ct([n,-r*Math.cos(l),-r*Math.sin(l)]))[0],c[1])}}function vn(e,t){var n=yt(t);n[0]-=e,xt(n);var r=ne(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-ja)%(2*Math.PI)}function _n(e,t,n){var r=la.range(e,t-ja,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function bn(e,t,n){var r=la.range(e,t-ja,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function En(e){return e.source}function xn(e){return e.target}function Cn(e,t,n,r){var o=Math.cos(t),i=Math.sin(t),a=Math.cos(r),s=Math.sin(r),u=o*Math.cos(e),c=o*Math.sin(e),l=a*Math.cos(n),p=a*Math.sin(n),f=2*Math.asin(Math.sqrt(se(r-t)+o*a*se(n-e))),d=1/Math.sin(f),h=f?function(e){var t=Math.sin(e*=f)*d,n=Math.sin(f-e)*d,r=n*u+t*l,o=n*c+t*p,a=n*i+t*s;return[Math.atan2(o,r)*Ba,Math.atan2(a,Math.sqrt(r*r+o*o))*Ba]}:function(){return[e*Ba,t*Ba]};return h.distance=f,h}function wn(){function e(e,o){var i=Math.sin(o*=Ha),a=Math.cos(o),s=ba((e*=Ha)-t),u=Math.cos(s);Ks+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=r*i-n*a*u)*s),n*i+r*a*u),t=e,n=i,r=a}var t,n,r;Qs.point=function(o,i){t=o*Ha,n=Math.sin(i*=Ha),r=Math.cos(i),Qs.point=e},Qs.lineEnd=function(){Qs.point=Qs.lineEnd=C}}function Sn(e,t){function n(t,n){var r=Math.cos(t),o=Math.cos(n),i=e(r*o);return[i*o*Math.sin(t),i*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),o=t(r),i=Math.sin(o),a=Math.cos(o);return[Math.atan2(e*i,r*a),Math.asin(r&&n*i/r)]},n}function On(e,t){function n(e,t){a>0?t<-Ga+ja&&(t=-Ga+ja):t>Ga-ja&&(t=Ga-ja);var n=a/Math.pow(o(t),i);return[n*Math.sin(i*e),a-n*Math.cos(i*e)]}var r=Math.cos(e),o=function(e){return Math.tan(Va/4+e/2)},i=e===t?Math.sin(e):Math.log(r/Math.cos(t))/Math.log(o(t)/o(e)),a=r*Math.pow(o(e),i)/i;return i?(n.invert=function(e,t){var n=a-t,r=ee(i)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/i,2*Math.atan(Math.pow(a/r,1/i))-Ga]},n):Pn}function Tn(e,t){function n(e,t){var n=i-t;return[n*Math.sin(o*e),i-n*Math.cos(o*e)]}var r=Math.cos(e),o=e===t?Math.sin(e):(r-Math.cos(t))/(t-e),i=r/o+e;return ba(o)<ja?pn:(n.invert=function(e,t){var n=i-t;return[Math.atan2(e,n)/o,i-ee(o)*Math.sqrt(e*e+n*n)]},n)}function Pn(e,t){return[e,Math.log(Math.tan(Va/4+t/2))]}function Rn(e){var t,n=un(e),r=n.scale,o=n.translate,i=n.clipExtent;return n.scale=function(){var e=r.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.translate=function(){var e=o.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.clipExtent=function(e){var a=i.apply(n,arguments);if(a===n){if(t=null==e){var s=Va*r(),u=o();i([[u[0]-s,u[1]-s],[u[0]+s,u[1]+s]])}}else t&&(a=null);return a},n.clipExtent(null)}function Nn(e,t){return[Math.log(Math.tan(Va/4+t/2)),-e]}function An(e){return e[0]}function Mn(e){return e[1]}function Dn(e){for(var t=e.length,n=[0,1],r=2,o=2;o<t;o++){for(;r>1&&te(e[n[r-2]],e[n[r-1]],e[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}function In(e,t){return e[0]-t[0]||e[1]-t[1]}function Ln(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function kn(e,t,n,r){var o=e[0],i=n[0],a=t[0]-o,s=r[0]-i,u=e[1],c=n[1],l=t[1]-u,p=r[1]-c,f=(s*(u-c)-p*(o-i))/(p*a-s*l);return[o+f*a,u+f*l]}function jn(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}function Fn(){ir(this),this.edge=this.site=this.circle=null}function Vn(e){var t=cu.pop()||new Fn;return t.site=e,t}function Un(e){Kn(e),au.remove(e),cu.push(e),ir(e)}function zn(e){var t=e.circle,n=t.x,r=t.cy,o={x:n,y:r},i=e.P,a=e.N,s=[e];Un(e);for(var u=i;u.circle&&ba(n-u.circle.x)<ja&&ba(r-u.circle.cy)<ja;)i=u.P,s.unshift(u),Un(u),u=i;s.unshift(u),Kn(u);for(var c=a;c.circle&&ba(n-c.circle.x)<ja&&ba(r-c.circle.cy)<ja;)a=c.N,s.push(c),Un(c),c=a;s.push(c),Kn(c);var l,p=s.length;for(l=1;l<p;++l)c=s[l],u=s[l-1],nr(c.edge,u.site,c.site,o);u=s[0],c=s[p-1],c.edge=er(u.site,c.site,null,o),Xn(u),Xn(c)}function Gn(e){for(var t,n,r,o,i=e.x,a=e.y,s=au._;s;)if(r=Hn(s,a)-i,r>ja)s=s.L;else{if(o=i-Bn(s,a),!(o>ja)){r>-ja?(t=s.P,n=s):o>-ja?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var u=Vn(e);if(au.insert(t,u),t||n){if(t===n)return Kn(t),n=Vn(t.site),au.insert(u,n),u.edge=n.edge=er(t.site,u.site),Xn(t),void Xn(n);if(!n)return void(u.edge=er(t.site,u.site));Kn(t),Kn(n);var c=t.site,l=c.x,p=c.y,f=e.x-l,d=e.y-p,h=n.site,g=h.x-l,m=h.y-p,y=2*(f*m-d*g),v=f*f+d*d,_=g*g+m*m,b={x:(m*v-d*_)/y+l,y:(f*_-g*v)/y+p};nr(n.edge,c,h,b),u.edge=er(c,e,null,b),n.edge=er(e,h,null,b),Xn(t),Xn(n)}}function Hn(e,t){var n=e.site,r=n.x,o=n.y,i=o-t;if(!i)return r;var a=e.P;if(!a)return-(1/0);n=a.site;var s=n.x,u=n.y,c=u-t;if(!c)return s;var l=s-r,p=1/i-1/c,f=l/c;return p?(-f+Math.sqrt(f*f-2*p*(l*l/(-2*c)-u+c/2+o-i/2)))/p+r:(r+s)/2}function Bn(e,t){var n=e.N;if(n)return Hn(n,t);var r=e.site;return r.y===t?r.x:1/0}function qn(e){this.site=e,this.edges=[]}function Zn(e){for(var t,n,r,o,i,a,s,u,c,l,p=e[0][0],f=e[1][0],d=e[0][1],h=e[1][1],g=iu,m=g.length;m--;)if(i=g[m],i&&i.prepare())for(s=i.edges,u=s.length,a=0;a<u;)l=s[a].end(),r=l.x,o=l.y,c=s[++a%u].start(),t=c.x,n=c.y,(ba(r-t)>ja||ba(o-n)>ja)&&(s.splice(a,0,new rr(tr(i.site,l,ba(r-p)<ja&&h-o>ja?{x:p,y:ba(t-p)<ja?n:h}:ba(o-h)<ja&&f-r>ja?{x:ba(n-h)<ja?t:f,y:h}:ba(r-f)<ja&&o-d>ja?{x:f,y:ba(t-f)<ja?n:d}:ba(o-d)<ja&&r-p>ja?{x:ba(n-d)<ja?t:p,y:d}:null),i.site,null)),++u)}function Wn(e,t){return t.angle-e.angle}function Yn(){ir(this),this.x=this.y=this.arc=this.site=this.cy=null}function Xn(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,o=e.site,i=n.site;if(r!==i){var a=o.x,s=o.y,u=r.x-a,c=r.y-s,l=i.x-a,p=i.y-s,f=2*(u*p-c*l);if(!(f>=-Fa)){var d=u*u+c*c,h=l*l+p*p,g=(p*d-c*h)/f,m=(u*h-l*d)/f,p=m+s,y=lu.pop()||new Yn;y.arc=e,y.site=o,y.x=g+a,y.y=p+Math.sqrt(g*g+m*m),y.cy=p,e.circle=y;for(var v=null,_=uu._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){v=_.P;break}_=_.L}else{if(!_.R){v=_;break}_=_.R}uu.insert(v,y),v||(su=y)}}}}function Kn(e){var t=e.circle;t&&(t.P||(su=t.N),uu.remove(t),lu.push(t),ir(t),e.circle=null)}function Qn(e){for(var t,n=ou,r=Bt(e[0][0],e[0][1],e[1][0],e[1][1]),o=n.length;o--;)t=n[o],(!$n(t,e)||!r(t)||ba(t.a.x-t.b.x)<ja&&ba(t.a.y-t.b.y)<ja)&&(t.a=t.b=null,n.splice(o,1))}function $n(e,t){var n=e.b;if(n)return!0;var r,o,i=e.a,a=t[0][0],s=t[1][0],u=t[0][1],c=t[1][1],l=e.l,p=e.r,f=l.x,d=l.y,h=p.x,g=p.y,m=(f+h)/2,y=(d+g)/2;if(g===d){if(m<a||m>=s)return;if(f>h){if(i){if(i.y>=c)return}else i={x:m,y:u};n={x:m,y:c}}else{if(i){if(i.y<u)return}else i={x:m,y:c};n={x:m,y:u}}}else if(r=(f-h)/(g-d),o=y-r*m,r<-1||r>1)if(f>h){if(i){if(i.y>=c)return}else i={x:(u-o)/r,y:u};n={x:(c-o)/r,y:c}}else{if(i){if(i.y<u)return}else i={x:(c-o)/r,y:c};n={x:(u-o)/r,y:u}}else if(d<g){if(i){if(i.x>=s)return}else i={x:a,y:r*a+o};n={x:s,y:r*s+o}}else{if(i){if(i.x<a)return}else i={x:s,y:r*s+o};n={x:a,y:r*a+o}}return e.a=i,e.b=n,!0}function Jn(e,t){this.l=e,this.r=t,this.a=this.b=null}function er(e,t,n,r){var o=new Jn(e,t);return ou.push(o),n&&nr(o,e,t,n),r&&nr(o,t,e,r),iu[e.i].edges.push(new rr(o,e,t)),iu[t.i].edges.push(new rr(o,t,e)),o}function tr(e,t,n){var r=new Jn(e,null);return r.a=t,r.b=n,ou.push(r),r}function nr(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function rr(e,t,n){var r=e.a,o=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(o.x-r.x,r.y-o.y):Math.atan2(r.x-o.x,o.y-r.y)}function or(){this._=null}function ir(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function ar(e,t){var n=t,r=t.R,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function sr(e,t){var n=t,r=t.L,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function ur(e){for(;e.L;)e=e.L;return e}function cr(e,t){var n,r,o,i=e.sort(lr).pop();for(ou=[],iu=new Array(e.length),au=new or,uu=new or;;)if(o=su,i&&(!o||i.y<o.y||i.y===o.y&&i.x<o.x))i.x===n&&i.y===r||(iu[i.i]=new qn(i),Gn(i),n=i.x,r=i.y),i=e.pop();else{if(!o)break;zn(o.arc)}t&&(Qn(t),Zn(t));var a={cells:iu,edges:ou};return au=uu=ou=iu=null,a}function lr(e,t){return t.y-e.y||t.x-e.x}function pr(e,t,n){return(e.x-n.x)*(t.y-e.y)-(e.x-t.x)*(n.y-e.y)}function fr(e){return e.x}function dr(e){return e.y}function hr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function gr(e,t,n,r,o,i){if(!e(t,n,r,o,i)){var a=.5*(n+o),s=.5*(r+i),u=t.nodes;u[0]&&gr(e,u[0],n,r,a,s),u[1]&&gr(e,u[1],a,r,o,s),u[2]&&gr(e,u[2],n,s,a,i),u[3]&&gr(e,u[3],a,s,o,i)}}function mr(e,t,n,r,o,i,a){var s,u=1/0;return function e(c,l,p,f,d){if(!(l>i||p>a||f<r||d<o)){if(h=c.point){var h,g=t-c.x,m=n-c.y,y=g*g+m*m;if(y<u){var v=Math.sqrt(u=y);r=t-v,o=n-v,i=t+v,a=n+v,s=h}}for(var _=c.nodes,b=.5*(l+f),E=.5*(p+d),x=t>=b,C=n>=E,w=C<<1|x,S=w+4;w<S;++w)if(c=_[3&w])switch(3&w){case 0:e(c,l,p,b,E);break;case 1:e(c,b,p,f,E);break;case 2:e(c,l,E,b,d);break;case 3:e(c,b,E,f,d)}}}(e,r,o,i,a),s}function yr(e,t){e=la.rgb(e),t=la.rgb(t);var n=e.r,r=e.g,o=e.b,i=t.r-n,a=t.g-r,s=t.b-o;return function(e){return"#"+xe(Math.round(n+i*e))+xe(Math.round(r+a*e))+xe(Math.round(o+s*e))}}function vr(e,t){var n,r={},o={};for(n in e)n in t?r[n]=Er(e[n],t[n]):o[n]=e[n];for(n in t)n in e||(o[n]=t[n]);return function(e){for(n in r)o[n]=r[n](e);return o}}function _r(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function br(e,t){var n,r,o,i=fu.lastIndex=du.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=fu.exec(e))&&(r=du.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:_r(n,r)})),i=du.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?(t=u[0].x,function(e){return t(e)+""}):function(){return t}:(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function Er(e,t){for(var n,r=la.interpolators.length;--r>=0&&!(n=la.interpolators[r](e,t)););return n}function xr(e,t){var n,r=[],o=[],i=e.length,a=t.length,s=Math.min(e.length,t.length);for(n=0;n<s;++n)r.push(Er(e[n],t[n]));for(;n<i;++n)o[n]=e[n];for(;n<a;++n)o[n]=t[n];return function(e){for(n=0;n<s;++n)o[n]=r[n](e);return o}}function Cr(e){return function(t){return t<=0?0:t>=1?1:e(t)}}function wr(e){return function(t){return 1-e(1-t)}}function Sr(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function Or(e){return e*e}function Tr(e){return e*e*e}function Pr(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function Rr(e){return function(t){return Math.pow(t,e)}}function Nr(e){return 1-Math.cos(e*Ga)}function Ar(e){return Math.pow(2,10*(e-1))}function Mr(e){return 1-Math.sqrt(1-e*e)}function Dr(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/Ua*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Ua/t)}}function Ir(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}}function Lr(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function kr(e,t){e=la.hcl(e),t=la.hcl(t);var n=e.h,r=e.c,o=e.l,i=t.h-n,a=t.c-r,s=t.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360),function(e){return fe(n+i*e,r+a*e,o+s*e)+""}}function jr(e,t){e=la.hsl(e),t=la.hsl(t);var n=e.h,r=e.s,o=e.l,i=t.h-n,a=t.s-r,s=t.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360),function(e){return le(n+i*e,r+a*e,o+s*e)+""}}function Fr(e,t){e=la.lab(e),t=la.lab(t);var n=e.l,r=e.a,o=e.b,i=t.l-n,a=t.a-r,s=t.b-o;return function(e){return he(n+i*e,r+a*e,o+s*e)+""}}function Vr(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function Ur(e){var t=[e.a,e.b],n=[e.c,e.d],r=Gr(t),o=zr(t,n),i=Gr(Hr(n,t,-o))||0;t[0]*n[1]<n[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,o*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-n[0],n[1]))*Ba,this.translate=[e.e,e.f],this.scale=[r,i],this.skew=i?Math.atan2(o,i)*Ba:0}function zr(e,t){return e[0]*t[0]+e[1]*t[1]}function Gr(e){var t=Math.sqrt(zr(e,e));return t&&(e[0]/=t,e[1]/=t),t}function Hr(e,t,n){return e[0]+=n*t[0],e[1]+=n*t[1],e}function Br(e){return e.length?e.pop()+",":""}function qr(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var o=n.push("translate(",null,",",null,")");r.push({i:o-4,x:_r(e[0],t[0])},{i:o-2,x:_r(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}function Zr(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(Br(n)+"rotate(",null,")")-2,x:_r(e,t)})):t&&n.push(Br(n)+"rotate("+t+")")}function Wr(e,t,n,r){e!==t?r.push({i:n.push(Br(n)+"skewX(",null,")")-2,x:_r(e,t)}):t&&n.push(Br(n)+"skewX("+t+")")}function Yr(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var o=n.push(Br(n)+"scale(",null,",",null,")");r.push({i:o-4,x:_r(e[0],t[0])},{i:o-2,x:_r(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(Br(n)+"scale("+t+")")}function Xr(e,t){var n=[],r=[];return e=la.transform(e),t=la.transform(t),qr(e.translate,t.translate,n,r),Zr(e.rotate,t.rotate,n,r),Wr(e.skew,t.skew,n,r),Yr(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,o=-1,i=r.length;++o<i;)n[(t=r[o]).i]=t.x(e);return n.join("")}}function Kr(e,t){return t=(t-=e=+e)||1/t,function(n){return(n-e)/t}}function Qr(e,t){return t=(t-=e=+e)||1/t,function(n){return Math.max(0,Math.min(1,(n-e)/t))}}function $r(e){for(var t=e.source,n=e.target,r=eo(t,n),o=[t];t!==r;)t=t.parent,o.push(t);for(var i=o.length;n!==r;)o.splice(i,0,n),n=n.parent;return o}function Jr(e){for(var t=[],n=e.parent;null!=n;)t.push(e),e=n,n=n.parent;return t.push(e),t}function eo(e,t){if(e===t)return e;for(var n=Jr(e),r=Jr(t),o=n.pop(),i=r.pop(),a=null;o===i;)a=o,o=n.pop(),i=r.pop();return a}function to(e){e.fixed|=2}function no(e){e.fixed&=-7}function ro(e){e.fixed|=4,e.px=e.x,e.py=e.y}function oo(e){e.fixed&=-5}function io(e,t,n){var r=0,o=0;if(e.charge=0,!e.leaf)for(var i,a=e.nodes,s=a.length,u=-1;++u<s;)i=a[u],null!=i&&(io(i,t,n),e.charge+=i.charge,r+=i.charge*i.cx,o+=i.charge*i.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var c=t*n[e.point.index];e.charge+=e.pointCharge=c,r+=c*e.point.x,o+=c*e.point.y}e.cx=r/e.charge,e.cy=o/e.charge}function ao(e,t){return la.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=fo,e}function so(e,t){for(var n=[e];null!=(e=n.pop());)if(t(e),(o=e.children)&&(r=o.length))for(var r,o;--r>=0;)n.push(o[r])}function uo(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(i=e.children)&&(o=i.length))for(var o,i,a=-1;++a<o;)n.push(i[a]);for(;null!=(e=r.pop());)t(e)}function co(e){return e.children}function lo(e){return e.value}function po(e,t){return t.value-e.value}function fo(e){return la.merge(e.map(function(e){return(e.children||[]).map(function(t){return{source:e,target:t}})}))}function ho(e){return e.x}function go(e){return e.y}function mo(e,t,n){e.y0=t,e.y=n}function yo(e){return la.range(e.length)}function vo(e){for(var t=-1,n=e[0].length,r=[];++t<n;)r[t]=0;return r}function _o(e){for(var t,n=1,r=0,o=e[0][1],i=e.length;n<i;++n)(t=e[n][1])>o&&(r=n,o=t);return r}function bo(e){return e.reduce(Eo,0)}function Eo(e,t){return e+t[1]}function xo(e,t){return Co(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Co(e,t){for(var n=-1,r=+e[0],o=(e[1]-r)/t,i=[];++n<=t;)i[n]=o*n+r;return i}function wo(e){return[la.min(e),la.max(e)]}function So(e,t){return e.value-t.value}function Oo(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function To(e,t){e._pack_next=t,t._pack_prev=e}function Po(e,t){var n=t.x-e.x,r=t.y-e.y,o=e.r+t.r;return.999*o*o>n*n+r*r}function Ro(e){function t(e){l=Math.min(e.x-e.r,l),p=Math.max(e.x+e.r,p),f=Math.min(e.y-e.r,f),d=Math.max(e.y+e.r,d)}if((n=e.children)&&(c=n.length)){var n,r,o,i,a,s,u,c,l=1/0,p=-(1/0),f=1/0,d=-(1/0);if(n.forEach(No),r=n[0],r.x=-r.r,r.y=0,t(r),c>1&&(o=n[1],o.x=o.r,o.y=0,t(o),c>2))for(i=n[2],Do(r,o,i),t(i),Oo(r,i),r._pack_prev=i,Oo(i,o),o=r._pack_next,a=3;a<c;a++){Do(r,o,i=n[a]);var h=0,g=1,m=1;for(s=o._pack_next;s!==o;s=s._pack_next,g++)if(Po(s,i)){h=1;break}if(1==h)for(u=r._pack_prev;u!==s._pack_prev&&!Po(u,i);u=u._pack_prev,m++);h?(g<m||g==m&&o.r<r.r?To(r,o=s):To(r=u,o),a--):(Oo(r,i),o=i,t(i))}var y=(l+p)/2,v=(f+d)/2,_=0;for(a=0;a<c;a++)i=n[a],i.x-=y,i.y-=v,_=Math.max(_,i.r+Math.sqrt(i.x*i.x+i.y*i.y));e.r=_,n.forEach(Ao)}}function No(e){e._pack_next=e._pack_prev=e}function Ao(e){delete e._pack_next,delete e._pack_prev}function Mo(e,t,n,r){var o=e.children;if(e.x=t+=r*e.x,e.y=n+=r*e.y,e.r*=r,o)for(var i=-1,a=o.length;++i<a;)Mo(o[i],t,n,r)}function Do(e,t,n){var r=e.r+n.r,o=t.x-e.x,i=t.y-e.y;if(r&&(o||i)){var a=t.r+n.r,s=o*o+i*i;a*=a,r*=r;var u=.5+(r-a)/(2*s),c=Math.sqrt(Math.max(0,2*a*(r+s)-(r-=s)*r-a*a))/(2*s);n.x=e.x+u*o+c*i,n.y=e.y+u*i-c*o}else n.x=e.x+r,n.y=e.y}function Io(e,t){return e.parent==t.parent?1:2}function Lo(e){var t=e.children;return t.length?t[0]:e.t}function ko(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function jo(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Fo(e){for(var t,n=0,r=0,o=e.children,i=o.length;--i>=0;)t=o[i],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function Vo(e,t,n){return e.a.parent===t.parent?e.a:n}function Uo(e){return 1+la.max(e,function(e){return e.y})}function zo(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}function Go(e){var t=e.children;return t&&t.length?Go(t[0]):e}function Ho(e){var t,n=e.children;return n&&(t=n.length)?Ho(n[t-1]):e}function Bo(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function qo(e,t){var n=e.x+t[3],r=e.y+t[0],o=e.dx-t[1]-t[3],i=e.dy-t[0]-t[2];return o<0&&(n+=o/2,o=0),i<0&&(r+=i/2,i=0),{x:n,y:r,dx:o,dy:i}}function Zo(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function Wo(e){return e.rangeExtent?e.rangeExtent():Zo(e.range())}function Yo(e,t,n,r){var o=n(e[0],e[1]),i=r(t[0],t[1]);return function(e){return i(o(e))}}function Xo(e,t){var n,r=0,o=e.length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function Ko(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:wu}function Qo(e,t,n,r){var o=[],i=[],a=0,s=Math.min(e.length,t.length)-1;for(e[s]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<=s;)o.push(n(e[a-1],e[a])),i.push(r(t[a-1],t[a]));return function(t){var n=la.bisect(e,t,1,s)-1;return i[n](o[n](t))}}function $o(e,t,n,r){function o(){var o=Math.min(e.length,t.length)>2?Qo:Yo,u=r?Qr:Kr;return a=o(e,t,u,n),s=o(t,e,u,Er),i}function i(e){return a(e)}var a,s;return i.invert=function(e){return s(e)},i.domain=function(t){return arguments.length?(e=t.map(Number),o()):e},i.range=function(e){return arguments.length?(t=e,o()):t},i.rangeRound=function(e){return i.range(e).interpolate(Vr)},i.clamp=function(e){return arguments.length?(r=e,o()):r},i.interpolate=function(e){return arguments.length?(n=e,o()):n},i.ticks=function(t){return ni(e,t)},i.tickFormat=function(t,n){return ri(e,t,n)},i.nice=function(t){return ei(e,t),o()},i.copy=function(){return $o(e,t,n,r)},o()}function Jo(e,t){return la.rebind(e,t,"range","rangeRound","interpolate","clamp")}function ei(e,t){return Xo(e,Ko(ti(e,t)[2])),Xo(e,Ko(ti(e,t)[2])),e}function ti(e,t){null==t&&(t=10);var n=Zo(e),r=n[1]-n[0],o=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*o;return i<=.15?o*=10:i<=.35?o*=5:i<=.75&&(o*=2),n[0]=Math.ceil(n[0]/o)*o,n[1]=Math.floor(n[1]/o)*o+.5*o,n[2]=o,n}function ni(e,t){return la.range.apply(la,ti(e,t))}function ri(e,t,n){var r=ti(e,t);if(n){var o=fs.exec(n);if(o.shift(),"s"===o[8]){var i=la.formatPrefix(Math.max(ba(r[0]),ba(r[1])));return o[7]||(o[7]="."+oi(i.scale(r[2]))),o[8]="f",n=la.format(o.join("")),function(e){return n(i.scale(e))+i.symbol}}o[7]||(o[7]="."+ii(o[8],r)),n=o.join("")}else n=",."+oi(r[2])+"f";return la.format(n)}function oi(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function ii(e,t){var n=oi(t[2]);return e in Su?Math.abs(n-oi(Math.max(ba(t[0]),ba(t[1]))))+ +("e"!==e):n-2*("%"===e)}function ai(e,t,n,r){function o(e){return(n?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function i(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function a(t){return e(o(t))}return a.invert=function(t){return i(e.invert(t))},a.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(o)),a):r},a.base=function(n){return arguments.length?(t=+n,e.domain(r.map(o)),a):t},a.nice=function(){var t=Xo(r.map(o),n?Math:Tu);return e.domain(t),r=t.map(i),a},a.ticks=function(){var e=Zo(r),a=[],s=e[0],u=e[1],c=Math.floor(o(s)),l=Math.ceil(o(u)),p=t%1?2:t;if(isFinite(l-c)){if(n){for(;c<l;c++)for(var f=1;f<p;f++)a.push(i(c)*f);a.push(i(c))}else for(a.push(i(c));c++<l;)for(var f=p-1;f>0;f--)a.push(i(c)*f);for(c=0;a[c]<s;c++);for(l=a.length;a[l-1]>u;l--);a=a.slice(c,l)}return a},a.tickFormat=function(e,n){if(!arguments.length)return Ou;arguments.length<2?n=Ou:"function"!=typeof n&&(n=la.format(n));var r=Math.max(1,t*e/a.ticks().length);return function(e){var a=e/i(Math.round(o(e)));return a*t<t-.5&&(a*=t),a<=r?n(e):""}},a.copy=function(){return ai(e.copy(),t,n,r)},Jo(a,e)}function si(e,t,n){function r(t){return e(o(t))}var o=ui(t),i=ui(1/t);return r.invert=function(t){return i(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(o)),r):n},r.ticks=function(e){return ni(n,e)},r.tickFormat=function(e,t){return ri(n,e,t)},r.nice=function(e){return r.domain(ei(n,e))},r.exponent=function(a){return arguments.length?(o=ui(t=a),i=ui(1/t),e.domain(n.map(o)),r):t},r.copy=function(){return si(e.copy(),t,n)},Jo(r,e)}function ui(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ci(e,t){function n(n){return i[((o.get(n)||("range"===t.t?o.set(n,e.push(n)):NaN))-1)%i.length]}function r(t,n){return la.range(e.length).map(function(e){return t+n*e})}var o,i,a;return n.domain=function(r){if(!arguments.length)return e;e=[],o=new p;for(var i,a=-1,s=r.length;++a<s;)o.has(i=r[a])||o.set(i,e.push(i));return n[t.t].apply(n,t.a)},n.range=function(e){return arguments.length?(i=e,a=0,t={t:"range",a:arguments},n):i},n.rangePoints=function(o,s){arguments.length<2&&(s=0);var u=o[0],c=o[1],l=e.length<2?(u=(u+c)/2,0):(c-u)/(e.length-1+s);return i=r(u+l*s/2,l),a=0,t={t:"rangePoints",a:arguments},n},n.rangeRoundPoints=function(o,s){arguments.length<2&&(s=0);var u=o[0],c=o[1],l=e.length<2?(u=c=Math.round((u+c)/2),0):(c-u)/(e.length-1+s)|0;return i=r(u+Math.round(l*s/2+(c-u-(e.length-1+s)*l)/2),l),a=0,t={t:"rangeRoundPoints",a:arguments},n},n.rangeBands=function(o,s,u){arguments.length<2&&(s=0),arguments.length<3&&(u=s);var c=o[1]<o[0],l=o[c-0],p=o[1-c],f=(p-l)/(e.length-s+2*u);return i=r(l+f*u,f),c&&i.reverse(),a=f*(1-s),t={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(o,s,u){arguments.length<2&&(s=0),arguments.length<3&&(u=s);var c=o[1]<o[0],l=o[c-0],p=o[1-c],f=Math.floor((p-l)/(e.length-s+2*u));return i=r(l+Math.round((p-l-(e.length-s)*f)/2),f),c&&i.reverse(),a=Math.round(f*(1-s)),t={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return a},n.rangeExtent=function(){return Zo(t.a[0])},n.copy=function(){return ci(e,t)},n.domain(e)}function li(e,t){function n(){var n=0,o=t.length;for(s=[];++n<o;)s[n-1]=la.quantile(e,n/o);return r}function r(e){if(!isNaN(e=+e))return t[la.bisect(s,e)]}var s;return r.domain=function(t){return arguments.length?(e=t.map(i).filter(a).sort(o),n()):e},r.range=function(e){return arguments.length?(t=e,n()):t},r.quantiles=function(){return s},r.invertExtent=function(n){return n=t.indexOf(n),n<0?[NaN,NaN]:[n>0?s[n-1]:e[0],n<s.length?s[n]:e[e.length-1]]},r.copy=function(){return li(e,t)},n()}function pi(e,t,n){function r(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function o(){return i=n.length/(t-e),a=n.length-1,r}var i,a;return r.domain=function(n){return arguments.length?(e=+n[0],t=+n[n.length-1],o()):[e,t]},r.range=function(e){return arguments.length?(n=e,o()):n},r.invertExtent=function(t){return t=n.indexOf(t),t=t<0?NaN:t/i+e,[t,t+1/i]},r.copy=function(){return pi(e,t,n)},o()}function fi(e,t){function n(n){if(n<=n)return t[la.bisect(e,n)]}return n.domain=function(t){return arguments.length?(e=t,n):e},n.range=function(e){return arguments.length?(t=e,n):t},n.invertExtent=function(n){return n=t.indexOf(n),[e[n-1],e[n]]},n.copy=function(){return fi(e,t)},n}function di(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e},t.ticks=function(t){return ni(e,t)},t.tickFormat=function(t,n){return ri(e,t,n)},t.copy=function(){return di(e)},t}function hi(){return 0}function gi(e){return e.innerRadius}function mi(e){return e.outerRadius}function yi(e){return e.startAngle}function vi(e){return e.endAngle}function _i(e){return e&&e.padAngle}function bi(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function Ei(e,t,n,r,o){var i=e[0]-t[0],a=e[1]-t[1],s=(o?r:-r)/Math.sqrt(i*i+a*a),u=s*a,c=-s*i,l=e[0]+u,p=e[1]+c,f=t[0]+u,d=t[1]+c,h=(l+f)/2,g=(p+d)/2,m=f-l,y=d-p,v=m*m+y*y,_=n-r,b=l*d-f*p,E=(y<0?-1:1)*Math.sqrt(Math.max(0,_*_*v-b*b)),x=(b*y-m*E)/v,C=(-b*m-y*E)/v,w=(b*y+m*E)/v,S=(-b*m+y*E)/v,O=x-h,T=C-g,P=w-h,R=S-g;return O*O+T*T>P*P+R*R&&(x=w,C=S),[[x-u,C-c],[x*n/_,C*n/_]]}function xi(e){function t(t){function a(){c.push("M",i(e(l),s))}for(var u,c=[],l=[],p=-1,f=t.length,d=Pe(n),h=Pe(r);++p<f;)o.call(this,u=t[p],p)?l.push([+d.call(this,u,p),+h.call(this,u,p)]):l.length&&(a(),l=[]);return l.length&&a(),c.length?c.join(""):null}var n=An,r=Mn,o=At,i=Ci,a=i.key,s=.7;return t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t.defined=function(e){return arguments.length?(o=e,t):o},t.interpolate=function(e){return arguments.length?(a="function"==typeof e?i=e:(i=Du.get(e)||Ci).key,t):a},t.tension=function(e){return arguments.length?(s=e,t):s},t}function Ci(e){return e.length>1?e.join("L"):e+"Z"}function wi(e){return e.join("L")+"Z"}function Si(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t<n;)o.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);return n>1&&o.push("H",r[0]),o.join("")}function Oi(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t<n;)o.push("V",(r=e[t])[1],"H",r[0]);return o.join("")}function Ti(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t<n;)o.push("H",(r=e[t])[0],"V",r[1]);return o.join("")}function Pi(e,t){return e.length<4?Ci(e):e[1]+Ai(e.slice(1,-1),Mi(e,t))}function Ri(e,t){return e.length<3?wi(e):e[0]+Ai((e.push(e[0]),e),Mi([e[e.length-2]].concat(e,[e[1]]),t))}function Ni(e,t){return e.length<3?Ci(e):e[0]+Ai(e,Mi(e,t))}function Ai(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return Ci(e);var n=e.length!=t.length,r="",o=e[0],i=e[1],a=t[0],s=a,u=1;if(n&&(r+="Q"+(i[0]-2*a[0]/3)+","+(i[1]-2*a[1]/3)+","+i[0]+","+i[1],
|
17 |
-
o=e[1],u=2),t.length>1){s=t[1],i=e[u],u++,r+="C"+(o[0]+a[0])+","+(o[1]+a[1])+","+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1];for(var c=2;c<t.length;c++,u++)i=e[u],s=t[c],r+="S"+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1]}if(n){var l=e[u];r+="Q"+(i[0]+2*s[0]/3)+","+(i[1]+2*s[1]/3)+","+l[0]+","+l[1]}return r}function Mi(e,t){for(var n,r=[],o=(1-t)/2,i=e[0],a=e[1],s=1,u=e.length;++s<u;)n=i,i=a,a=e[s],r.push([o*(a[0]-n[0]),o*(a[1]-n[1])]);return r}function Di(e){if(e.length<3)return Ci(e);var t=1,n=e.length,r=e[0],o=r[0],i=r[1],a=[o,o,o,(r=e[1])[0]],s=[i,i,i,r[1]],u=[o,",",i,"L",ji(ku,a),",",ji(ku,s)];for(e.push(e[n-1]);++t<=n;)r=e[t],a.shift(),a.push(r[0]),s.shift(),s.push(r[1]),Fi(u,a,s);return e.pop(),u.push("L",r),u.join("")}function Ii(e){if(e.length<4)return Ci(e);for(var t,n=[],r=-1,o=e.length,i=[0],a=[0];++r<3;)t=e[r],i.push(t[0]),a.push(t[1]);for(n.push(ji(ku,i)+","+ji(ku,a)),--r;++r<o;)t=e[r],i.shift(),i.push(t[0]),a.shift(),a.push(t[1]),Fi(n,i,a);return n.join("")}function Li(e){for(var t,n,r=-1,o=e.length,i=o+4,a=[],s=[];++r<4;)n=e[r%o],a.push(n[0]),s.push(n[1]);for(t=[ji(ku,a),",",ji(ku,s)],--r;++r<i;)n=e[r%o],a.shift(),a.push(n[0]),s.shift(),s.push(n[1]),Fi(t,a,s);return t.join("")}function ki(e,t){var n=e.length-1;if(n)for(var r,o,i=e[0][0],a=e[0][1],s=e[n][0]-i,u=e[n][1]-a,c=-1;++c<=n;)r=e[c],o=c/n,r[0]=t*r[0]+(1-t)*(i+o*s),r[1]=t*r[1]+(1-t)*(a+o*u);return Di(e)}function ji(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function Fi(e,t,n){e.push("C",ji(Iu,t),",",ji(Iu,n),",",ji(Lu,t),",",ji(Lu,n),",",ji(ku,t),",",ji(ku,n))}function Vi(e,t){return(t[1]-e[1])/(t[0]-e[0])}function Ui(e){for(var t=0,n=e.length-1,r=[],o=e[0],i=e[1],a=r[0]=Vi(o,i);++t<n;)r[t]=(a+(a=Vi(o=i,i=e[t+1])))/2;return r[t]=a,r}function zi(e){for(var t,n,r,o,i=[],a=Ui(e),s=-1,u=e.length-1;++s<u;)t=Vi(e[s],e[s+1]),ba(t)<ja?a[s]=a[s+1]=0:(n=a[s]/t,r=a[s+1]/t,o=n*n+r*r,o>9&&(o=3*t/Math.sqrt(o),a[s]=o*n,a[s+1]=o*r));for(s=-1;++s<=u;)o=(e[Math.min(u,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),i.push([o||0,a[s]*o||0]);return i}function Gi(e){return e.length<3?Ci(e):e[0]+Ai(e,zi(e))}function Hi(e){for(var t,n,r,o=-1,i=e.length;++o<i;)t=e[o],n=t[0],r=t[1]-Ga,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function Bi(e){function t(t){function u(){g.push("M",s(e(y),p),l,c(e(m.reverse()),p),"Z")}for(var f,d,h,g=[],m=[],y=[],v=-1,_=t.length,b=Pe(n),E=Pe(o),x=n===r?function(){return d}:Pe(r),C=o===i?function(){return h}:Pe(i);++v<_;)a.call(this,f=t[v],v)?(m.push([d=+b.call(this,f,v),h=+E.call(this,f,v)]),y.push([+x.call(this,f,v),+C.call(this,f,v)])):m.length&&(u(),m=[],y=[]);return m.length&&u(),g.length?g.join(""):null}var n=An,r=An,o=0,i=Mn,a=At,s=Ci,u=s.key,c=s,l="L",p=.7;return t.x=function(e){return arguments.length?(n=r=e,t):r},t.x0=function(e){return arguments.length?(n=e,t):n},t.x1=function(e){return arguments.length?(r=e,t):r},t.y=function(e){return arguments.length?(o=i=e,t):i},t.y0=function(e){return arguments.length?(o=e,t):o},t.y1=function(e){return arguments.length?(i=e,t):i},t.defined=function(e){return arguments.length?(a=e,t):a},t.interpolate=function(e){return arguments.length?(u="function"==typeof e?s=e:(s=Du.get(e)||Ci).key,c=s.reverse||s,l=s.closed?"M":"L",t):u},t.tension=function(e){return arguments.length?(p=e,t):p},t}function qi(e){return e.radius}function Zi(e){return[e.x,e.y]}function Wi(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Ga;return[n*Math.cos(r),n*Math.sin(r)]}}function Yi(){return 64}function Xi(){return"circle"}function Ki(e){var t=Math.sqrt(e/Va);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Qi(e){return function(){var t,n,r;(t=this[e])&&(r=t[n=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[n]:delete this[e],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function $i(e,t,n){return Sa(e,Hu),e.namespace=t,e.id=n,e}function Ji(e,t,n,r){var o=e.id,i=e.namespace;return q(e,"function"==typeof n?function(e,a,s){e[i][o].tween.set(t,r(n.call(e,e.__data__,a,s)))}:(n=r(n),function(e){e[i][o].tween.set(t,n)}))}function ea(e){return null==e&&(e=""),function(){this.textContent=e}}function ta(e){return null==e?"__transition__":"__transition_"+e+"__"}function na(e,t,n,r,o){function i(e){var t=g.delay;return c.t=t+u,t<=e?a(e-t):void(c.c=a)}function a(n){var o=h.active,i=h[o];i&&(i.timer.c=null,i.timer.t=NaN,--h.count,delete h[o],i.event&&i.event.interrupt.call(e,e.__data__,i.index));for(var a in h)if(+a<r){var p=h[a];p.timer.c=null,p.timer.t=NaN,--h.count,delete h[a]}c.c=s,De(function(){return c.c&&s(n||1)&&(c.c=null,c.t=NaN),1},0,u),h.active=r,g.event&&g.event.start.call(e,e.__data__,t),d=[],g.tween.forEach(function(n,r){(r=r.call(e,e.__data__,t))&&d.push(r)}),f=g.ease,l=g.duration}function s(o){for(var i=o/l,a=f(i),s=d.length;s>0;)d[--s].call(e,a);if(i>=1)return g.event&&g.event.end.call(e,e.__data__,t),--h.count?delete h[r]:delete e[n],1}var u,c,l,f,d,h=e[n]||(e[n]={active:0,count:0}),g=h[r];g||(u=o.time,c=De(i,0,u),g=h[r]={tween:new p,time:u,timer:c,delay:o.delay,duration:o.duration,ease:o.ease,index:t},o=null,++h.count)}function ra(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"})}function oa(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"})}function ia(e){return e.toISOString()}function aa(e,t,n){function r(t){return e(t)}function o(e,n){var r=e[1]-e[0],o=r/n,i=la.bisect($u,o);return i==$u.length?[t.year,ti(e.map(function(e){return e/31536e6}),n)[2]]:i?t[o/$u[i-1]<$u[i]/o?i-1:i]:[tc,ti(e,n)[2]]}return r.invert=function(t){return sa(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain(t),r):e.domain().map(sa)},r.nice=function(e,t){function n(n){return!isNaN(n)&&!e.range(n,sa(+n+1),t).length}var i=r.domain(),a=Zo(i),s=null==e?o(a,10):"number"==typeof e&&o(a,e);return s&&(e=s[0],t=s[1]),r.domain(Xo(i,t>1?{floor:function(t){for(;n(t=e.floor(t));)t=sa(t-1);return t},ceil:function(t){for(;n(t=e.ceil(t));)t=sa(+t+1);return t}}:e))},r.ticks=function(e,t){var n=Zo(r.domain()),i=null==e?o(n,10):"number"==typeof e?o(n,e):!e.range&&[{range:e},t];return i&&(e=i[0],t=i[1]),e.range(n[0],sa(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return aa(e.copy(),t,n)},Jo(r,e)}function sa(e){return new Date(e)}function ua(e){return JSON.parse(e.responseText)}function ca(e){var t=da.createRange();return t.selectNode(da.body),t.createContextualFragment(e.responseText)}var la={version:"3.5.17"},pa=[].slice,fa=function(e){return pa.call(e)},da=this.document;if(da)try{fa(da.documentElement.childNodes)[0].nodeType}catch(e){fa=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),da)try{da.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var ha=this.Element.prototype,ga=ha.setAttribute,ma=ha.setAttributeNS,ya=this.CSSStyleDeclaration.prototype,va=ya.setProperty;ha.setAttribute=function(e,t){ga.call(this,e,t+"")},ha.setAttributeNS=function(e,t,n){ma.call(this,e,t,n+"")},ya.setProperty=function(e,t,n){va.call(this,e,t+"",n)}}la.ascending=o,la.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},la.min=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o<i;)if(null!=(r=e[o])&&r>=r){n=r;break}for(;++o<i;)null!=(r=e[o])&&n>r&&(n=r)}else{for(;++o<i;)if(null!=(r=t.call(e,e[o],o))&&r>=r){n=r;break}for(;++o<i;)null!=(r=t.call(e,e[o],o))&&n>r&&(n=r)}return n},la.max=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o<i;)if(null!=(r=e[o])&&r>=r){n=r;break}for(;++o<i;)null!=(r=e[o])&&r>n&&(n=r)}else{for(;++o<i;)if(null!=(r=t.call(e,e[o],o))&&r>=r){n=r;break}for(;++o<i;)null!=(r=t.call(e,e[o],o))&&r>n&&(n=r)}return n},la.extent=function(e,t){var n,r,o,i=-1,a=e.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=e[i])&&r>=r){n=o=r;break}for(;++i<a;)null!=(r=e[i])&&(n>r&&(n=r),o<r&&(o=r))}else{for(;++i<a;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=o=r;break}for(;++i<a;)null!=(r=t.call(e,e[i],i))&&(n>r&&(n=r),o<r&&(o=r))}return[n,o]},la.sum=function(e,t){var n,r=0,o=e.length,i=-1;if(1===arguments.length)for(;++i<o;)a(n=+e[i])&&(r+=n);else for(;++i<o;)a(n=+t.call(e,e[i],i))&&(r+=n);return r},la.mean=function(e,t){var n,r=0,o=e.length,s=-1,u=o;if(1===arguments.length)for(;++s<o;)a(n=i(e[s]))?r+=n:--u;else for(;++s<o;)a(n=i(t.call(e,e[s],s)))?r+=n:--u;if(u)return r/u},la.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),o=+e[r-1],i=n-r;return i?o+i*(e[r]-o):o},la.median=function(e,t){var n,r=[],s=e.length,u=-1;if(1===arguments.length)for(;++u<s;)a(n=i(e[u]))&&r.push(n);else for(;++u<s;)a(n=i(t.call(e,e[u],u)))&&r.push(n);if(r.length)return la.quantile(r.sort(o),.5)},la.variance=function(e,t){var n,r,o=e.length,s=0,u=0,c=-1,l=0;if(1===arguments.length)for(;++c<o;)a(n=i(e[c]))&&(r=n-s,s+=r/++l,u+=r*(n-s));else for(;++c<o;)a(n=i(t.call(e,e[c],c)))&&(r=n-s,s+=r/++l,u+=r*(n-s));if(l>1)return u/(l-1)},la.deviation=function(){var e=la.variance.apply(this,arguments);return e?Math.sqrt(e):e};var _a=s(o);la.bisectLeft=_a.left,la.bisect=la.bisectRight=_a.right,la.bisector=function(e){return s(1===e.length?function(t,n){return o(e(t),n)}:e)},la.shuffle=function(e,t,n){(i=arguments.length)<3&&(n=e.length,i<2&&(t=0));for(var r,o,i=n-t;i;)o=Math.random()*i--|0,r=e[i+t],e[i+t]=e[o+t],e[o+t]=r;return e},la.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},la.pairs=function(e){for(var t,n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=[t=o,o=e[++n]];return i},la.transpose=function(e){if(!(o=e.length))return[];for(var t=-1,n=la.min(e,u),r=new Array(n);++t<n;)for(var o,i=-1,a=r[t]=new Array(o);++i<o;)a[i]=e[i][t];return r},la.zip=function(){return la.transpose(arguments)},la.keys=function(e){var t=[];for(var n in e)t.push(n);return t},la.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},la.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},la.merge=function(e){for(var t,n,r,o=e.length,i=-1,a=0;++i<o;)a+=e[i].length;for(n=new Array(a);--o>=0;)for(r=e[o],t=r.length;--t>=0;)n[--a]=r[t];return n};var ba=Math.abs;la.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n===1/0)throw new Error("infinite range");var r,o=[],i=c(ba(n)),a=-1;if(e*=i,t*=i,n*=i,n<0)for(;(r=e+n*++a)>t;)o.push(r/i);else for(;(r=e+n*++a)<t;)o.push(r/i);return o},la.map=function(e,t){var n=new p;if(e instanceof p)e.forEach(function(e,t){n.set(e,t)});else if(Array.isArray(e)){var r,o=-1,i=e.length;if(1===arguments.length)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t.call(e,r=e[o],o),r)}else for(var a in e)n.set(a,e[a]);return n};var Ea="__proto__",xa="\0";l(p,{has:h,get:function(e){return this._[f(e)]},set:function(e,t){return this._[f(e)]=t},remove:g,keys:m,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:d(t),value:this._[t]});return e},size:y,empty:v,forEach:function(e){for(var t in this._)e.call(this,d(t),this._[t])}}),la.nest=function(){function e(t,a,s){if(s>=i.length)return r?r.call(o,a):n?a.sort(n):a;for(var u,c,l,f,d=-1,h=a.length,g=i[s++],m=new p;++d<h;)(f=m.get(u=g(c=a[d])))?f.push(c):m.set(u,[c]);return t?(c=t(),l=function(n,r){c.set(n,e(t,r,s))}):(c={},l=function(n,r){c[n]=e(t,r,s)}),m.forEach(l),c}function t(e,n){if(n>=i.length)return e;var r=[],o=a[n++];return e.forEach(function(e,o){r.push({key:e,values:t(o,n)})}),o?r.sort(function(e,t){return o(e.key,t.key)}):r}var n,r,o={},i=[],a=[];return o.map=function(t,n){return e(n,t,0)},o.entries=function(n){return t(e(la.map,n,0),0)},o.key=function(e){return i.push(e),o},o.sortKeys=function(e){return a[i.length-1]=e,o},o.sortValues=function(e){return n=e,o},o.rollup=function(e){return r=e,o},o},la.set=function(e){var t=new _;if(e)for(var n=0,r=e.length;n<r;++n)t.add(e[n]);return t},l(_,{has:h,add:function(e){return this._[f(e+="")]=!0,e},remove:g,values:m,size:y,empty:v,forEach:function(e){for(var t in this._)e.call(this,d(t))}}),la.behavior={},la.rebind=function(e,t){for(var n,r=1,o=arguments.length;++r<o;)e[n=arguments[r]]=E(e,t,t[n]);return e};var Ca=["webkit","ms","moz","Moz","o","O"];la.dispatch=function(){for(var e=new w,t=-1,n=arguments.length;++t<n;)e[arguments[t]]=S(e);return e},w.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},la.event=null,la.requote=function(e){return e.replace(wa,"\\$&")};var wa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Sa={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]},Oa=function(e,t){return t.querySelector(e)},Ta=function(e,t){return t.querySelectorAll(e)},Pa=function(e,t){var n=e.matches||e[x(e,"matchesSelector")];return(Pa=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(Oa=function(e,t){return Sizzle(e,t)[0]||null},Ta=Sizzle,Pa=Sizzle.matchesSelector),la.selection=function(){return la.select(da.documentElement)};var Ra=la.selection.prototype=[];Ra.select=function(e){var t,n,r,o,i=[];e=N(e);for(var a=-1,s=this.length;++a<s;){i.push(t=[]),t.parentNode=(r=this[a]).parentNode;for(var u=-1,c=r.length;++u<c;)(o=r[u])?(t.push(n=e.call(o,o.__data__,u,a)),n&&"__data__"in o&&(n.__data__=o.__data__)):t.push(null)}return R(i)},Ra.selectAll=function(e){var t,n,r=[];e=A(e);for(var o=-1,i=this.length;++o<i;)for(var a=this[o],s=-1,u=a.length;++s<u;)(n=a[s])&&(r.push(t=fa(e.call(n,n.__data__,s,o))),t.parentNode=n);return R(r)};var Na="http://www.w3.org/1999/xhtml",Aa={svg:"http://www.w3.org/2000/svg",xhtml:Na,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};la.ns={prefix:Aa,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),Aa.hasOwnProperty(n)?{space:Aa[n],local:e}:e}},Ra.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return e=la.ns.qualify(e),e.local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(M(t,e[t]));return this}return this.each(M(e,t))},Ra.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=L(e)).length,o=-1;if(t=n.classList){for(;++o<r;)if(!t.contains(e[o]))return!1}else for(t=n.getAttribute("class");++o<r;)if(!I(e[o]).test(t))return!1;return!0}for(t in e)this.each(k(t,e[t]));return this}return this.each(k(e,t))},Ra.style=function(e,t,n){var o=arguments.length;if(o<3){if("string"!=typeof e){o<2&&(t="");for(n in e)this.each(F(n,e[n],t));return this}if(o<2){var i=this.node();return r(i).getComputedStyle(i,null).getPropertyValue(e)}n=""}return this.each(F(e,t,n))},Ra.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(V(t,e[t]));return this}return this.each(V(e,t))},Ra.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},Ra.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},Ra.append=function(e){return e=U(e),this.select(function(){return this.appendChild(e.apply(this,arguments))})},Ra.insert=function(e,t){return e=U(e),t=N(t),this.select(function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)})},Ra.remove=function(){return this.each(z)},Ra.data=function(e,t){function n(e,n){var r,o,i,a=e.length,l=n.length,f=Math.min(a,l),d=new Array(l),h=new Array(l),g=new Array(a);if(t){var m,y=new p,v=new Array(a);for(r=-1;++r<a;)(o=e[r])&&(y.has(m=t.call(o,o.__data__,r))?g[r]=o:y.set(m,o),v[r]=m);for(r=-1;++r<l;)(o=y.get(m=t.call(n,i=n[r],r)))?o!==!0&&(d[r]=o,o.__data__=i):h[r]=G(i),y.set(m,!0);for(r=-1;++r<a;)r in v&&y.get(v[r])!==!0&&(g[r]=e[r])}else{for(r=-1;++r<f;)o=e[r],i=n[r],o?(o.__data__=i,d[r]=o):h[r]=G(i);for(;r<l;++r)h[r]=G(n[r]);for(;r<a;++r)g[r]=e[r]}h.update=d,h.parentNode=d.parentNode=g.parentNode=e.parentNode,s.push(h),u.push(d),c.push(g)}var r,o,i=-1,a=this.length;if(!arguments.length){for(e=new Array(a=(r=this[0]).length);++i<a;)(o=r[i])&&(e[i]=o.__data__);return e}var s=Z([]),u=R([]),c=R([]);if("function"==typeof e)for(;++i<a;)n(r=this[i],e.call(r,r.parentNode.__data__,i));else for(;++i<a;)n(r=this[i],e);return u.enter=function(){return s},u.exit=function(){return c},u},Ra.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},Ra.filter=function(e){var t,n,r,o=[];"function"!=typeof e&&(e=H(e));for(var i=0,a=this.length;i<a;i++){o.push(t=[]),t.parentNode=(n=this[i]).parentNode;for(var s=0,u=n.length;s<u;s++)(r=n[s])&&e.call(r,r.__data__,s,i)&&t.push(r)}return R(o)},Ra.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],o=r.length-1,i=r[o];--o>=0;)(n=r[o])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},Ra.sort=function(e){e=B.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},Ra.each=function(e){return q(this,function(t,n,r){e.call(t,t.__data__,n,r)})},Ra.call=function(e){var t=fa(arguments);return e.apply(t[0]=this,t),this},Ra.empty=function(){return!this.node()},Ra.node=function(){for(var e=0,t=this.length;e<t;e++)for(var n=this[e],r=0,o=n.length;r<o;r++){var i=n[r];if(i)return i}return null},Ra.size=function(){var e=0;return q(this,function(){++e}),e};var Ma=[];la.selection.enter=Z,la.selection.enter.prototype=Ma,Ma.append=Ra.append,Ma.empty=Ra.empty,Ma.node=Ra.node,Ma.call=Ra.call,Ma.size=Ra.size,Ma.select=function(e){for(var t,n,r,o,i,a=[],s=-1,u=this.length;++s<u;){r=(o=this[s]).update,a.push(t=[]),t.parentNode=o.parentNode;for(var c=-1,l=o.length;++c<l;)(i=o[c])?(t.push(r[c]=n=e.call(o.parentNode,i.__data__,c,s)),n.__data__=i.__data__):t.push(null)}return R(a)},Ma.insert=function(e,t){return arguments.length<2&&(t=W(this)),Ra.insert.call(this,e,t)},la.select=function(e){var n;return"string"==typeof e?(n=[Oa(e,da)],n.parentNode=da.documentElement):(n=[e],n.parentNode=t(e)),R([n])},la.selectAll=function(e){var t;return"string"==typeof e?(t=fa(Ta(e,da)),t.parentNode=da.documentElement):(t=fa(e),t.parentNode=null),R([t])},Ra.on=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){r<2&&(t=!1);for(n in e)this.each(Y(n,e[n],t));return this}if(r<2)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(Y(e,t,n))};var Da=la.map({mouseenter:"mouseover",mouseleave:"mouseout"});da&&Da.forEach(function(e){"on"+e in da&&Da.remove(e)});var Ia,La=0;la.mouse=function(e){return $(e,T())};var ka=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;la.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=T().changedTouches),t)for(var r,o=0,i=t.length;o<i;++o)if((r=t[o]).identifier===n)return $(e,r)},la.behavior.drag=function(){function e(){this.on("mousedown.drag",i).on("touchstart.drag",a)}function t(e,t,r,i,a){return function(){function s(){var e,n,r=t(f,g);r&&(e=r[0]-_[0],n=r[1]-_[1],h|=e|n,_=r,d({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:e,dy:n}))}function u(){t(f,g)&&(y.on(i+m,null).on(a+m,null),v(h),d({type:"dragend"}))}var c,l=this,p=la.event.target.correspondingElement||la.event.target,f=l.parentNode,d=n.of(l,arguments),h=0,g=e(),m=".drag"+(null==g?"":"-"+g),y=la.select(r(p)).on(i+m,s).on(a+m,u),v=Q(p),_=t(f,g);o?(c=o.apply(l,arguments),c=[c.x-_[0],c.y-_[1]]):c=[0,0],d({type:"dragstart"})}}var n=P(e,"drag","dragstart","dragend"),o=null,i=t(C,la.mouse,r,"mousemove","mouseup"),a=t(J,la.touch,b,"touchmove","touchend");return e.origin=function(t){return arguments.length?(o=t,e):o},la.rebind(e,n,"on")},la.touches=function(e,t){return arguments.length<2&&(t=T().touches),t?fa(t).map(function(t){var n=$(e,t);return n.identifier=t.identifier,n}):[]};var ja=1e-6,Fa=ja*ja,Va=Math.PI,Ua=2*Va,za=Ua-ja,Ga=Va/2,Ha=Va/180,Ba=180/Va,qa=Math.SQRT2,Za=2,Wa=4;la.interpolateZoom=function(e,t){var n,r,o=e[0],i=e[1],a=e[2],s=t[0],u=t[1],c=t[2],l=s-o,p=u-i,f=l*l+p*p;if(f<Fa)r=Math.log(c/a)/qa,n=function(e){return[o+e*l,i+e*p,a*Math.exp(qa*e*r)]};else{var d=Math.sqrt(f),h=(c*c-a*a+Wa*f)/(2*a*Za*d),g=(c*c-a*a-Wa*f)/(2*c*Za*d),m=Math.log(Math.sqrt(h*h+1)-h),y=Math.log(Math.sqrt(g*g+1)-g);r=(y-m)/qa,n=function(e){var t=e*r,n=ie(m),s=a/(Za*d)*(n*ae(qa*t+m)-oe(m));return[o+s*l,i+s*p,a*n/ie(qa*t+m)]}}return n.duration=1e3*r,n},la.behavior.zoom=function(){function e(e){e.on(A,p).on(Xa+".zoom",d).on("dblclick.zoom",h).on(I,f)}function t(e){return[(e[0]-w.x)/w.k,(e[1]-w.y)/w.k]}function n(e){return[e[0]*w.k+w.x,e[1]*w.k+w.y]}function o(e){w.k=Math.max(T[0],Math.min(T[1],e))}function i(e,t){t=n(t),w.x+=e[0]-t[0],w.y+=e[1]-t[1]}function a(t,n,r,a){t.__chart__={x:w.x,y:w.y,k:w.k},o(Math.pow(2,a)),i(m=n,r),t=la.select(t),R>0&&(t=t.transition().duration(R)),t.call(e.event)}function s(){E&&E.domain(b.range().map(function(e){return(e-w.x)/w.k}).map(b.invert)),C&&C.domain(x.range().map(function(e){return(e-w.y)/w.k}).map(x.invert))}function u(e){N++||e({type:"zoomstart"})}function c(e){s(),e({type:"zoom",scale:w.k,translate:[w.x,w.y]})}function l(e){--N||(e({type:"zoomend"}),m=null)}function p(){function e(){s=1,i(la.mouse(o),f),c(a)}function n(){p.on(M,null).on(D,null),d(s),l(a)}var o=this,a=L.of(o,arguments),s=0,p=la.select(r(o)).on(M,e).on(D,n),f=t(la.mouse(o)),d=Q(o);Gu.call(o),u(a)}function f(){function e(){var e=la.touches(h);return d=w.k,e.forEach(function(e){e.identifier in m&&(m[e.identifier]=t(e))}),e}function n(){var t=la.event.target;la.select(t).on(b,r).on(E,s),x.push(t);for(var n=la.event.changedTouches,o=0,i=n.length;o<i;++o)m[n[o].identifier]=null;var u=e(),c=Date.now();if(1===u.length){if(c-_<500){var l=u[0];a(h,l,m[l.identifier],Math.floor(Math.log(w.k)/Math.LN2)+1),O()}_=c}else if(u.length>1){var l=u[0],p=u[1],f=l[0]-p[0],d=l[1]-p[1];y=f*f+d*d}}function r(){var e,t,n,r,a=la.touches(h);Gu.call(h);for(var s=0,u=a.length;s<u;++s,r=null)if(n=a[s],r=m[n.identifier]){if(t)break;e=n,t=r}if(r){var l=(l=n[0]-e[0])*l+(l=n[1]-e[1])*l,p=y&&Math.sqrt(l/y);e=[(e[0]+n[0])/2,(e[1]+n[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],o(p*d)}_=null,i(e,t),c(g)}function s(){if(la.event.touches.length){for(var t=la.event.changedTouches,n=0,r=t.length;n<r;++n)delete m[t[n].identifier];for(var o in m)return void e()}la.selectAll(x).on(v,null),C.on(A,p).on(I,f),S(),l(g)}var d,h=this,g=L.of(h,arguments),m={},y=0,v=".zoom-"+la.event.changedTouches[0].identifier,b="touchmove"+v,E="touchend"+v,x=[],C=la.select(h),S=Q(h);n(),u(g),C.on(A,null).on(I,n)}function d(){var e=L.of(this,arguments);v?clearTimeout(v):(Gu.call(this),g=t(m=y||la.mouse(this)),u(e)),v=setTimeout(function(){v=null,l(e)},50),O(),o(Math.pow(2,.002*Ya())*w.k),i(m,g),c(e)}function h(){var e=la.mouse(this),n=Math.log(w.k)/Math.LN2;a(this,e,t(e),la.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}var g,m,y,v,_,b,E,x,C,w={x:0,y:0,k:1},S=[960,500],T=Ka,R=250,N=0,A="mousedown.zoom",M="mousemove.zoom",D="mouseup.zoom",I="touchstart.zoom",L=P(e,"zoomstart","zoom","zoomend");return Xa||(Xa="onwheel"in da?(Ya=function(){return-la.event.deltaY*(la.event.deltaMode?120:1)},"wheel"):"onmousewheel"in da?(Ya=function(){return la.event.wheelDelta},"mousewheel"):(Ya=function(){return-la.event.detail},"MozMousePixelScroll")),e.event=function(e){e.each(function(){var e=L.of(this,arguments),t=w;Uu?la.select(this).transition().each("start.zoom",function(){w=this.__chart__||{x:0,y:0,k:1},u(e)}).tween("zoom:zoom",function(){var n=S[0],r=S[1],o=m?m[0]:n/2,i=m?m[1]:r/2,a=la.interpolateZoom([(o-w.x)/w.k,(i-w.y)/w.k,n/w.k],[(o-t.x)/t.k,(i-t.y)/t.k,n/t.k]);return function(t){var r=a(t),s=n/r[2];this.__chart__=w={x:o-r[0]*s,y:i-r[1]*s,k:s},c(e)}}).each("interrupt.zoom",function(){l(e)}).each("end.zoom",function(){l(e)}):(this.__chart__=w,u(e),c(e),l(e))})},e.translate=function(t){return arguments.length?(w={x:+t[0],y:+t[1],k:w.k},s(),e):[w.x,w.y]},e.scale=function(t){return arguments.length?(w={x:w.x,y:w.y,k:null},o(+t),s(),e):w.k},e.scaleExtent=function(t){return arguments.length?(T=null==t?Ka:[+t[0],+t[1]],e):T},e.center=function(t){return arguments.length?(y=t&&[+t[0],+t[1]],e):y},e.size=function(t){return arguments.length?(S=t&&[+t[0],+t[1]],e):S},e.duration=function(t){return arguments.length?(R=+t,e):R},e.x=function(t){return arguments.length?(E=t,b=t.copy(),w={x:0,y:0,k:1},e):E},e.y=function(t){return arguments.length?(C=t,x=t.copy(),w={x:0,y:0,k:1},e):C},la.rebind(e,L,"on")};var Ya,Xa,Ka=[0,1/0];la.color=ue,ue.prototype.toString=function(){return this.rgb()+""},la.hsl=ce;var Qa=ce.prototype=new ue;Qa.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new ce(this.h,this.s,this.l/e)},Qa.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new ce(this.h,this.s,e*this.l)},Qa.rgb=function(){return le(this.h,this.s,this.l)},la.hcl=pe;var $a=pe.prototype=new ue;$a.brighter=function(e){return new pe(this.h,this.c,Math.min(100,this.l+Ja*(arguments.length?e:1)))},$a.darker=function(e){return new pe(this.h,this.c,Math.max(0,this.l-Ja*(arguments.length?e:1)))},$a.rgb=function(){return fe(this.h,this.c,this.l).rgb()},la.lab=de;var Ja=18,es=.95047,ts=1,ns=1.08883,rs=de.prototype=new ue;rs.brighter=function(e){return new de(Math.min(100,this.l+Ja*(arguments.length?e:1)),this.a,this.b)},rs.darker=function(e){return new de(Math.max(0,this.l-Ja*(arguments.length?e:1)),this.a,this.b)},rs.rgb=function(){return he(this.l,this.a,this.b)},la.rgb=_e;var os=_e.prototype=new ue;os.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,o=30;return t||n||r?(t&&t<o&&(t=o),n&&n<o&&(n=o),r&&r<o&&(r=o),new _e(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new _e(o,o,o)},os.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new _e(e*this.r,e*this.g,e*this.b)},os.hsl=function(){return we(this.r,this.g,this.b)},os.toString=function(){return"#"+xe(this.r)+xe(this.g)+xe(this.b)};var is=la.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});is.forEach(function(e,t){is.set(e,be(t))}),la.functor=Pe,la.xhr=Re(b),la.dsv=function(e,t){function n(e,n,i){arguments.length<3&&(i=n,n=null);var a=Ne(e,t,null==n?r:o(n),i);return a.row=function(e){return arguments.length?a.response(null==(n=e)?r:o(e)):n},a}function r(e){return n.parse(e.responseText)}function o(e){return function(t){return n.parse(t.responseText,e)}}function i(t){return t.map(a).join(e)}function a(e){return s.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}var s=new RegExp('["'+e+"\n]"),u=e.charCodeAt(0);return n.parse=function(e,t){var r;return n.parseRows(e,function(e,n){if(r)return r(e,n-1);var o=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");r=t?function(e,n){return t(o(e),n)}:o})},n.parseRows=function(e,t){function n(){if(l>=c)return a;if(o)return o=!1,i;var t=l;if(34===e.charCodeAt(t)){for(var n=t;n++<c;)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}l=n+2;var r=e.charCodeAt(n+1);return 13===r?(o=!0,10===e.charCodeAt(n+2)&&++l):10===r&&(o=!0),e.slice(t+1,n).replace(/""/g,'"')}for(;l<c;){var r=e.charCodeAt(l++),s=1;if(10===r)o=!0;else if(13===r)o=!0,10===e.charCodeAt(l)&&(++l,++s);else if(r!==u)continue;return e.slice(t,l-s)}return e.slice(t)}for(var r,o,i={},a={},s=[],c=e.length,l=0,p=0;(r=n())!==a;){for(var f=[];r!==i&&r!==a;)f.push(r),r=n();t&&null==(f=t(f,p++))||s.push(f)}return s},n.format=function(t){if(Array.isArray(t[0]))return n.formatRows(t);var r=new _,o=[];return t.forEach(function(e){for(var t in e)r.has(t)||o.push(r.add(t))}),[o.map(a).join(e)].concat(t.map(function(t){return o.map(function(e){return a(t[e])}).join(e)})).join("\n")},n.formatRows=function(e){return e.map(i).join("\n")},n},la.csv=la.dsv(",","text/csv"),la.tsv=la.dsv("\t","text/tab-separated-values");var as,ss,us,cs,ls=this[x(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};la.timer=function(){De.apply(this,arguments)},la.timer.flush=function(){Le(),ke()},la.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var ps=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Fe);la.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=la.round(e,je(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),ps[8+n/3]};var fs=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,ds=la.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=la.round(e,je(e,t))).toFixed(Math.max(0,Math.min(20,je(e*(1+1e-15),t))))}}),hs=la.time={},gs=Date;ze.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){
|
18 |
-
return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){ms.setUTCDate.apply(this._,arguments)},setDay:function(){ms.setUTCDay.apply(this._,arguments)},setFullYear:function(){ms.setUTCFullYear.apply(this._,arguments)},setHours:function(){ms.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ms.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ms.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ms.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ms.setUTCSeconds.apply(this._,arguments)},setTime:function(){ms.setTime.apply(this._,arguments)}};var ms=Date.prototype;hs.year=Ge(function(e){return e=hs.day(e),e.setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),hs.years=hs.year.range,hs.years.utc=hs.year.utc.range,hs.day=Ge(function(e){var t=new gs(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),hs.days=hs.day.range,hs.days.utc=hs.day.utc.range,hs.dayOfYear=function(e){var t=hs.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,t){t=7-t;var n=hs[e]=Ge(function(e){return(e=hs.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var n=hs.year(e).getDay();return Math.floor((hs.dayOfYear(e)+(n+t)%7)/7)-(n!==t)});hs[e+"s"]=n.range,hs[e+"s"].utc=n.utc.range,hs[e+"OfYear"]=function(e){var n=hs.year(e).getDay();return Math.floor((hs.dayOfYear(e)+(n+t)%7)/7)}}),hs.week=hs.sunday,hs.weeks=hs.sunday.range,hs.weeks.utc=hs.sunday.utc.range,hs.weekOfYear=hs.sundayOfYear;var ys={"-":"",_:" ",0:"0"},vs=/^\s*\d+/,_s=/^%/;la.locale=function(e){return{numberFormat:Ve(e),timeFormat:Be(e)}};var bs=la.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});la.format=bs.numberFormat,la.geo={},pt.prototype={s:0,t:0,add:function(e){ft(e,this.t,Es),ft(Es.s,this.s,this),this.s?this.t+=Es.t:this.s=Es.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Es=new pt;la.geo.stream=function(e,t){e&&xs.hasOwnProperty(e.type)?xs[e.type](e,t):dt(e,t)};var xs={Feature:function(e,t){dt(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r<o;)dt(n[r].geometry,t)}},Cs={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){ht(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)ht(n[r],t,0)},Polygon:function(e,t){gt(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)gt(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,o=n.length;++r<o;)dt(n[r],t)}};la.geo.area=function(e){return ws=0,la.geo.stream(e,Os),ws};var ws,Ss=new pt,Os={sphere:function(){ws+=4*Va},point:C,lineStart:C,lineEnd:C,polygonStart:function(){Ss.reset(),Os.lineStart=mt},polygonEnd:function(){var e=2*Ss;ws+=e<0?4*Va+e:e,Os.lineStart=Os.lineEnd=Os.point=C}};la.geo.bounds=function(){function e(e,t){_.push(b=[l=e,f=e]),t<p&&(p=t),t>d&&(d=t)}function t(t,n){var r=yt([t*Ha,n*Ha]);if(y){var o=_t(y,r),i=[o[1],-o[0],0],a=_t(i,o);xt(a),a=Ct(a);var u=t-h,c=u>0?1:-1,g=a[0]*Ba*c,m=ba(u)>180;if(m^(c*h<g&&g<c*t)){var v=a[1]*Ba;v>d&&(d=v)}else if(g=(g+360)%360-180,m^(c*h<g&&g<c*t)){var v=-a[1]*Ba;v<p&&(p=v)}else n<p&&(p=n),n>d&&(d=n);m?t<h?s(l,t)>s(l,f)&&(f=t):s(t,f)>s(l,f)&&(l=t):f>=l?(t<l&&(l=t),t>f&&(f=t)):t>h?s(l,t)>s(l,f)&&(f=t):s(t,f)>s(l,f)&&(l=t)}else e(t,n);y=r,h=t}function n(){E.point=t}function r(){b[0]=l,b[1]=f,E.point=e,y=null}function o(e,n){if(y){var r=e-h;v+=ba(r)>180?r+(r>0?360:-360):r}else g=e,m=n;Os.point(e,n),t(e,n)}function i(){Os.lineStart()}function a(){o(g,m),Os.lineEnd(),ba(v)>ja&&(l=-(f=180)),b[0]=l,b[1]=f,y=null}function s(e,t){return(t-=e)<0?t+360:t}function u(e,t){return e[0]-t[0]}function c(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var l,p,f,d,h,g,m,y,v,_,b,E={point:e,lineStart:n,lineEnd:r,polygonStart:function(){E.point=o,E.lineStart=i,E.lineEnd=a,v=0,Os.polygonStart()},polygonEnd:function(){Os.polygonEnd(),E.point=e,E.lineStart=n,E.lineEnd=r,Ss<0?(l=-(f=180),p=-(d=90)):v>ja?d=90:v<-ja&&(p=-90),b[0]=l,b[1]=f}};return function(e){d=f=-(l=p=1/0),_=[],la.geo.stream(e,E);var t=_.length;if(t){_.sort(u);for(var n,r=1,o=_[0],i=[o];r<t;++r)n=_[r],c(n[0],o)||c(n[1],o)?(s(o[0],n[1])>s(o[0],o[1])&&(o[1]=n[1]),s(n[0],o[1])>s(o[0],o[1])&&(o[0]=n[0])):i.push(o=n);for(var a,n,h=-(1/0),t=i.length-1,r=0,o=i[t];r<=t;o=n,++r)n=i[r],(a=s(o[1],n[0]))>h&&(h=a,l=n[0],f=o[1])}return _=b=null,l===1/0||p===1/0?[[NaN,NaN],[NaN,NaN]]:[[l,p],[f,d]]}}(),la.geo.centroid=function(e){Ts=Ps=Rs=Ns=As=Ms=Ds=Is=Ls=ks=js=0,la.geo.stream(e,Fs);var t=Ls,n=ks,r=js,o=t*t+n*n+r*r;return o<Fa&&(t=Ms,n=Ds,r=Is,Ps<ja&&(t=Rs,n=Ns,r=As),o=t*t+n*n+r*r,o<Fa)?[NaN,NaN]:[Math.atan2(n,t)*Ba,re(r/Math.sqrt(o))*Ba]};var Ts,Ps,Rs,Ns,As,Ms,Ds,Is,Ls,ks,js,Fs={sphere:C,point:St,lineStart:Tt,lineEnd:Pt,polygonStart:function(){Fs.lineStart=Rt},polygonEnd:function(){Fs.lineStart=Tt}},Vs=Lt(At,Vt,zt,[-Va,-Va/2]),Us=1e9;la.geo.clipExtent=function(){var e,t,n,r,o,i,a={stream:function(e){return o&&(o.valid=!1),o=i(e),o.valid=!0,o},extent:function(s){return arguments.length?(i=qt(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1]),o&&(o.valid=!1,o=null),a):[[e,t],[n,r]]}};return a.extent([[0,0],[960,500]])},(la.geo.conicEqualArea=function(){return Zt(Wt)}).raw=Wt,la.geo.albers=function(){return la.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},la.geo.albersUsa=function(){function e(e){var i=e[0],a=e[1];return t=null,n(i,a),t||(r(i,a),t)||o(i,a),t}var t,n,r,o,i=la.geo.albers(),a=la.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=la.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,n){t=[e,n]}};return e.invert=function(e){var t=i.scale(),n=i.translate(),r=(e[0]-n[0])/t,o=(e[1]-n[1])/t;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?s:i).invert(e)},e.stream=function(e){var t=i.stream(e),n=a.stream(e),r=s.stream(e);return{point:function(e,o){t.point(e,o),n.point(e,o),r.point(e,o)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},e.precision=function(t){return arguments.length?(i.precision(t),a.precision(t),s.precision(t),e):i.precision()},e.scale=function(t){return arguments.length?(i.scale(t),a.scale(.35*t),s.scale(t),e.translate(i.translate())):i.scale()},e.translate=function(t){if(!arguments.length)return i.translate();var c=i.scale(),l=+t[0],p=+t[1];return n=i.translate(t).clipExtent([[l-.455*c,p-.238*c],[l+.455*c,p+.238*c]]).stream(u).point,r=a.translate([l-.307*c,p+.201*c]).clipExtent([[l-.425*c+ja,p+.12*c+ja],[l-.214*c-ja,p+.234*c-ja]]).stream(u).point,o=s.translate([l-.205*c,p+.212*c]).clipExtent([[l-.214*c+ja,p+.166*c+ja],[l-.115*c-ja,p+.234*c-ja]]).stream(u).point,e},e.scale(1070)};var zs,Gs,Hs,Bs,qs,Zs,Ws={point:C,lineStart:C,lineEnd:C,polygonStart:function(){Gs=0,Ws.lineStart=Yt},polygonEnd:function(){Ws.lineStart=Ws.lineEnd=Ws.point=C,zs+=ba(Gs/2)}},Ys={point:Xt,lineStart:C,lineEnd:C,polygonStart:C,polygonEnd:C},Xs={point:$t,lineStart:Jt,lineEnd:en,polygonStart:function(){Xs.lineStart=tn},polygonEnd:function(){Xs.point=$t,Xs.lineStart=Jt,Xs.lineEnd=en}};la.geo.path=function(){function e(e){return e&&("function"==typeof s&&i.pointRadius(+s.apply(this,arguments)),a&&a.valid||(a=o(i)),la.geo.stream(e,a)),i.result()}function t(){return a=null,e}var n,r,o,i,a,s=4.5;return e.area=function(e){return zs=0,la.geo.stream(e,o(Ws)),zs},e.centroid=function(e){return Rs=Ns=As=Ms=Ds=Is=Ls=ks=js=0,la.geo.stream(e,o(Xs)),js?[Ls/js,ks/js]:Is?[Ms/Is,Ds/Is]:As?[Rs/As,Ns/As]:[NaN,NaN]},e.bounds=function(e){return qs=Zs=-(Hs=Bs=1/0),la.geo.stream(e,o(Ys)),[[Hs,Bs],[qs,Zs]]},e.projection=function(e){return arguments.length?(o=(n=e)?e.stream||on(e):b,t()):n},e.context=function(e){return arguments.length?(i=null==(r=e)?new Kt:new nn(e),"function"!=typeof s&&i.pointRadius(s),t()):r},e.pointRadius=function(t){return arguments.length?(s="function"==typeof t?t:(i.pointRadius(+t),+t),e):s},e.projection(la.geo.albersUsa()).context(null)},la.geo.transform=function(e){return{stream:function(t){var n=new an(t);for(var r in e)n[r]=e[r];return n}}},an.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},la.geo.projection=un,la.geo.projectionMutator=cn,(la.geo.equirectangular=function(){return un(pn)}).raw=pn.invert=pn,la.geo.rotation=function(e){function t(t){return t=e(t[0]*Ha,t[1]*Ha),t[0]*=Ba,t[1]*=Ba,t}return e=dn(e[0]%360*Ha,e[1]*Ha,e.length>2?e[2]*Ha:0),t.invert=function(t){return t=e.invert(t[0]*Ha,t[1]*Ha),t[0]*=Ba,t[1]*=Ba,t},t},fn.invert=pn,la.geo.circle=function(){function e(){var e="function"==typeof r?r.apply(this,arguments):r,t=dn(-e[0]*Ha,-e[1]*Ha,0).invert,o=[];return n(null,null,1,{point:function(e,n){o.push(e=t(e,n)),e[0]*=Ba,e[1]*=Ba}}),{type:"Polygon",coordinates:[o]}}var t,n,r=[0,0],o=6;return e.origin=function(t){return arguments.length?(r=t,e):r},e.angle=function(r){return arguments.length?(n=yn((t=+r)*Ha,o*Ha),e):t},e.precision=function(r){return arguments.length?(n=yn(t*Ha,(o=+r)*Ha),e):o},e.angle(90)},la.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Ha,o=e[1]*Ha,i=t[1]*Ha,a=Math.sin(r),s=Math.cos(r),u=Math.sin(o),c=Math.cos(o),l=Math.sin(i),p=Math.cos(i);return Math.atan2(Math.sqrt((n=p*a)*n+(n=c*l-u*p*s)*n),u*l+c*p*s)},la.geo.graticule=function(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return la.range(Math.ceil(i/m)*m,o,m).map(f).concat(la.range(Math.ceil(c/y)*y,u,y).map(d)).concat(la.range(Math.ceil(r/h)*h,n,h).filter(function(e){return ba(e%m)>ja}).map(l)).concat(la.range(Math.ceil(s/g)*g,a,g).filter(function(e){return ba(e%y)>ja}).map(p))}var n,r,o,i,a,s,u,c,l,p,f,d,h=10,g=h,m=90,y=360,v=2.5;return e.lines=function(){return t().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[f(i).concat(d(u).slice(1),f(o).reverse().slice(1),d(c).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(i=+t[0][0],o=+t[1][0],c=+t[0][1],u=+t[1][1],i>o&&(t=i,i=o,o=t),c>u&&(t=c,c=u,u=t),e.precision(v)):[[i,c],[o,u]]},e.minorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),s>a&&(t=s,s=a,a=t),e.precision(v)):[[r,s],[n,a]]},e.step=function(t){return arguments.length?e.majorStep(t).minorStep(t):e.minorStep()},e.majorStep=function(t){return arguments.length?(m=+t[0],y=+t[1],e):[m,y]},e.minorStep=function(t){return arguments.length?(h=+t[0],g=+t[1],e):[h,g]},e.precision=function(t){return arguments.length?(v=+t,l=_n(s,a,90),p=bn(r,n,v),f=_n(c,u,90),d=bn(i,o,v),e):v},e.majorExtent([[-180,-90+ja],[180,90-ja]]).minorExtent([[-180,-80-ja],[180,80+ja]])},la.geo.greatArc=function(){function e(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||o.apply(this,arguments)]}}var t,n,r=En,o=xn;return e.distance=function(){return la.geo.distance(t||r.apply(this,arguments),n||o.apply(this,arguments))},e.source=function(n){return arguments.length?(r=n,t="function"==typeof n?null:n,e):r},e.target=function(t){return arguments.length?(o=t,n="function"==typeof t?null:t,e):o},e.precision=function(){return arguments.length?e:0},e},la.geo.interpolate=function(e,t){return Cn(e[0]*Ha,e[1]*Ha,t[0]*Ha,t[1]*Ha)},la.geo.length=function(e){return Ks=0,la.geo.stream(e,Qs),Ks};var Ks,Qs={sphere:C,point:C,lineStart:wn,lineEnd:C,polygonStart:C,polygonEnd:C},$s=Sn(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(la.geo.azimuthalEqualArea=function(){return un($s)}).raw=$s;var Js=Sn(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},b);(la.geo.azimuthalEquidistant=function(){return un(Js)}).raw=Js,(la.geo.conicConformal=function(){return Zt(On)}).raw=On,(la.geo.conicEquidistant=function(){return Zt(Tn)}).raw=Tn;var eu=Sn(function(e){return 1/e},Math.atan);(la.geo.gnomonic=function(){return un(eu)}).raw=eu,Pn.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-Ga]},(la.geo.mercator=function(){return Rn(Pn)}).raw=Pn;var tu=Sn(function(){return 1},Math.asin);(la.geo.orthographic=function(){return un(tu)}).raw=tu;var nu=Sn(function(e){return 1/(1+e)},function(e){return 2*Math.atan(e)});(la.geo.stereographic=function(){return un(nu)}).raw=nu,Nn.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Ga]},(la.geo.transverseMercator=function(){var e=Rn(Nn),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90])}).raw=Nn,la.geom={},la.geom.hull=function(e){function t(e){if(e.length<3)return[];var t,o=Pe(n),i=Pe(r),a=e.length,s=[],u=[];for(t=0;t<a;t++)s.push([+o.call(this,e[t],t),+i.call(this,e[t],t),t]);for(s.sort(In),t=0;t<a;t++)u.push([s[t][0],-s[t][1]]);var c=Dn(s),l=Dn(u),p=l[0]===c[0],f=l[l.length-1]===c[c.length-1],d=[];for(t=c.length-1;t>=0;--t)d.push(e[s[c[t]][2]]);for(t=+p;t<l.length-f;++t)d.push(e[s[l[t]][2]]);return d}var n=An,r=Mn;return arguments.length?t(e):(t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t)},la.geom.polygon=function(e){return Sa(e,ru),e};var ru=la.geom.polygon.prototype=[];ru.area=function(){for(var e,t=-1,n=this.length,r=this[n-1],o=0;++t<n;)e=r,r=this[t],o+=e[1]*r[0]-e[0]*r[1];return.5*o},ru.centroid=function(e){var t,n,r=-1,o=this.length,i=0,a=0,s=this[o-1];for(arguments.length||(e=-1/(6*this.area()));++r<o;)t=s,s=this[r],n=t[0]*s[1]-s[0]*t[1],i+=(t[0]+s[0])*n,a+=(t[1]+s[1])*n;return[i*e,a*e]},ru.clip=function(e){for(var t,n,r,o,i,a,s=jn(e),u=-1,c=this.length-jn(this),l=this[c-1];++u<c;){for(t=e.slice(),e.length=0,o=this[u],i=t[(r=t.length-s)-1],n=-1;++n<r;)a=t[n],Ln(a,l,o)?(Ln(i,l,o)||e.push(kn(i,a,l,o)),e.push(a)):Ln(i,l,o)&&e.push(kn(i,a,l,o)),i=a;s&&e.push(e[0]),l=o}return e};var ou,iu,au,su,uu,cu=[],lu=[];qn.prototype.prepare=function(){for(var e,t=this.edges,n=t.length;n--;)e=t[n].edge,e.b&&e.a||t.splice(n,1);return t.sort(Wn),t.length},rr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},or.prototype={insert:function(e,t){var n,r,o;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=ur(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)r=n.U,n===r.L?(o=r.R,o&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.R&&(ar(this,n),e=n,n=e.U),n.C=!1,r.C=!0,sr(this,r))):(o=r.L,o&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.L&&(sr(this,n),e=n,n=e.U),n.C=!1,r.C=!0,ar(this,r))),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,o=e.U,i=e.L,a=e.R;if(n=i?a?ur(a):i:a,o?o.L===e?o.L=n:o.R=n:this._=n,i&&a?(r=n.C,n.C=e.C,n.L=i,i.U=n,n!==a?(o=n.U,n.U=e.U,e=n.R,o.L=e,n.R=a,a.U=n):(n.U=o,o=n,e=n.R)):(r=e.C,e=n),e&&(e.U=o),!r){if(e&&e.C)return void(e.C=!1);do{if(e===this._)break;if(e===o.L){if(t=o.R,t.C&&(t.C=!1,o.C=!0,ar(this,o),t=o.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,sr(this,t),t=o.R),t.C=o.C,o.C=t.R.C=!1,ar(this,o),e=this._;break}}else if(t=o.L,t.C&&(t.C=!1,o.C=!0,sr(this,o),t=o.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,ar(this,t),t=o.L),t.C=o.C,o.C=t.L.C=!1,sr(this,o),e=this._;break}t.C=!0,e=o,o=o.U}while(!e.C);e&&(e.C=!1)}}},la.geom.voronoi=function(e){function t(e){var t=new Array(e.length),r=s[0][0],o=s[0][1],i=s[1][0],a=s[1][1];return cr(n(e),s).cells.forEach(function(n,s){var u=n.edges,c=n.site,l=t[s]=u.length?u.map(function(e){var t=e.start();return[t.x,t.y]}):c.x>=r&&c.x<=i&&c.y>=o&&c.y<=a?[[r,a],[i,a],[i,o],[r,o]]:[];l.point=e[s]}),t}function n(e){return e.map(function(e,t){return{x:Math.round(i(e,t)/ja)*ja,y:Math.round(a(e,t)/ja)*ja,i:t}})}var r=An,o=Mn,i=r,a=o,s=pu;return e?t(e):(t.links=function(e){return cr(n(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},t.triangles=function(e){var t=[];return cr(n(e)).cells.forEach(function(n,r){for(var o,i,a=n.site,s=n.edges.sort(Wn),u=-1,c=s.length,l=s[c-1].edge,p=l.l===a?l.r:l.l;++u<c;)o=l,i=p,l=s[u].edge,p=l.l===a?l.r:l.l,r<i.i&&r<p.i&&pr(a,i,p)<0&&t.push([e[r],e[i.i],e[p.i]])}),t},t.x=function(e){return arguments.length?(i=Pe(r=e),t):r},t.y=function(e){return arguments.length?(a=Pe(o=e),t):o},t.clipExtent=function(e){return arguments.length?(s=null==e?pu:e,t):s===pu?null:s},t.size=function(e){return arguments.length?t.clipExtent(e&&[[0,0],e]):s===pu?null:s&&s[1]},t)};var pu=[[-1e6,-1e6],[1e6,1e6]];la.geom.delaunay=function(e){return la.geom.voronoi().triangles(e)},la.geom.quadtree=function(e,t,n,r,o){function i(e){function i(e,t,n,r,o,i,a,s){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var u=e.x,l=e.y;if(null!=u)if(ba(u-n)+ba(l-r)<.01)c(e,t,n,r,o,i,a,s);else{var p=e.point;e.x=e.y=e.point=null,c(e,p,u,l,o,i,a,s),c(e,t,n,r,o,i,a,s)}else e.x=n,e.y=r,e.point=t}else c(e,t,n,r,o,i,a,s)}function c(e,t,n,r,o,a,s,u){var c=.5*(o+s),l=.5*(a+u),p=n>=c,f=r>=l,d=f<<1|p;e.leaf=!1,e=e.nodes[d]||(e.nodes[d]=hr()),p?o=c:s=c,f?a=l:u=l,i(e,t,n,r,o,a,s,u)}var l,p,f,d,h,g,m,y,v,_=Pe(s),b=Pe(u);if(null!=t)g=t,m=n,y=r,v=o;else if(y=v=-(g=m=1/0),p=[],f=[],h=e.length,a)for(d=0;d<h;++d)l=e[d],l.x<g&&(g=l.x),l.y<m&&(m=l.y),l.x>y&&(y=l.x),l.y>v&&(v=l.y),p.push(l.x),f.push(l.y);else for(d=0;d<h;++d){var E=+_(l=e[d],d),x=+b(l,d);E<g&&(g=E),x<m&&(m=x),E>y&&(y=E),x>v&&(v=x),p.push(E),f.push(x)}var C=y-g,w=v-m;C>w?v=m+C:y=g+w;var S=hr();if(S.add=function(e){i(S,e,+_(e,++d),+b(e,d),g,m,y,v)},S.visit=function(e){gr(e,S,g,m,y,v)},S.find=function(e){return mr(S,e[0],e[1],g,m,y,v)},d=-1,null==t){for(;++d<h;)i(S,e[d],p[d],f[d],g,m,y,v);--d}else e.forEach(S.add);return p=f=e=l=null,S}var a,s=An,u=Mn;return(a=arguments.length)?(s=fr,u=dr,3===a&&(o=n,r=t,n=t=0),i(e)):(i.x=function(e){return arguments.length?(s=e,i):s},i.y=function(e){return arguments.length?(u=e,i):u},i.extent=function(e){return arguments.length?(null==e?t=n=r=o=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],o=+e[1][1]),i):null==t?null:[[t,n],[r,o]]},i.size=function(e){return arguments.length?(null==e?t=n=r=o=null:(t=n=0,r=+e[0],o=+e[1]),i):null==t?null:[r-t,o-n]},i)},la.interpolateRgb=yr,la.interpolateObject=vr,la.interpolateNumber=_r,la.interpolateString=br;var fu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,du=new RegExp(fu.source,"g");la.interpolate=Er,la.interpolators=[function(e,t){var n=typeof t;return("string"===n?is.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?yr:br:t instanceof ue?yr:Array.isArray(t)?xr:"object"===n&&isNaN(t)?vr:_r)(e,t)}],la.interpolateArray=xr;var hu=function(){return b},gu=la.map({linear:hu,poly:Rr,quad:function(){return Or},cubic:function(){return Tr},sin:function(){return Nr},exp:function(){return Ar},circle:function(){return Mr},elastic:Dr,back:Ir,bounce:function(){return Lr}}),mu=la.map({in:b,out:wr,"in-out":Sr,"out-in":function(e){return Sr(wr(e))}});la.ease=function(e){var t=e.indexOf("-"),n=t>=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=gu.get(n)||hu,r=mu.get(r)||b,Cr(r(n.apply(null,pa.call(arguments,1))))},la.interpolateHcl=kr,la.interpolateHsl=jr,la.interpolateLab=Fr,la.interpolateRound=Vr,la.transform=function(e){var t=da.createElementNS(la.ns.prefix.svg,"g");return(la.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new Ur(n?n.matrix:yu)})(e)},Ur.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var yu={a:1,b:0,c:0,d:1,e:0,f:0};la.interpolateTransform=Xr,la.layout={},la.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n<r;)t.push($r(e[n]));return t}},la.layout.chord=function(){function e(){var e,c,p,f,d,h={},g=[],m=la.range(i),y=[];for(n=[],r=[],e=0,f=-1;++f<i;){for(c=0,d=-1;++d<i;)c+=o[f][d];g.push(c),y.push(la.range(i)),e+=c}for(a&&m.sort(function(e,t){return a(g[e],g[t])}),s&&y.forEach(function(e,t){e.sort(function(e,n){return s(o[t][e],o[t][n])})}),e=(Ua-l*i)/e,c=0,f=-1;++f<i;){for(p=c,d=-1;++d<i;){var v=m[f],_=y[v][d],b=o[v][_],E=c,x=c+=b*e;h[v+"-"+_]={index:v,subindex:_,startAngle:E,endAngle:x,value:b}}r[v]={index:v,startAngle:p,endAngle:c,value:g[v]},c+=l}for(f=-1;++f<i;)for(d=f-1;++d<i;){var C=h[f+"-"+d],w=h[d+"-"+f];(C.value||w.value)&&n.push(C.value<w.value?{source:w,target:C}:{source:C,target:w})}u&&t()}function t(){n.sort(function(e,t){return u((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)})}var n,r,o,i,a,s,u,c={},l=0;return c.matrix=function(e){return arguments.length?(i=(o=e)&&o.length,n=r=null,c):o},c.padding=function(e){return arguments.length?(l=e,n=r=null,c):l},c.sortGroups=function(e){return arguments.length?(a=e,n=r=null,c):a},c.sortSubgroups=function(e){return arguments.length?(s=e,n=null,c):s},c.sortChords=function(e){return arguments.length?(u=e,n&&t(),c):u},c.chords=function(){return n||e(),n},c.groups=function(){return r||e(),r},c},la.layout.force=function(){function e(e){return function(t,n,r,o){if(t.point!==e){var i=t.cx-e.x,a=t.cy-e.y,s=o-n,u=i*i+a*a;if(s*s/y<u){if(u<g){var c=t.charge/u;e.px-=i*c,e.py-=a*c}return!0}if(t.point&&u&&u<g){var c=t.pointCharge/u;e.px-=i*c,e.py-=a*c}}return!t.charge}}function t(e){e.px=la.event.x,e.py=la.event.y,u.resume()}var n,r,o,i,a,s,u={},c=la.dispatch("start","tick","end"),l=[1,1],p=.9,f=vu,d=_u,h=-30,g=bu,m=.1,y=.64,v=[],_=[];return u.tick=function(){if((o*=.99)<.005)return n=null,c.end({type:"end",alpha:o=0}),!0;var t,r,u,f,d,g,y,b,E,x=v.length,C=_.length;for(r=0;r<C;++r)u=_[r],f=u.source,d=u.target,b=d.x-f.x,E=d.y-f.y,(g=b*b+E*E)&&(g=o*a[r]*((g=Math.sqrt(g))-i[r])/g,b*=g,E*=g,d.x-=b*(y=f.weight+d.weight?f.weight/(f.weight+d.weight):.5),d.y-=E*y,f.x+=b*(y=1-y),f.y+=E*y);if((y=o*m)&&(b=l[0]/2,E=l[1]/2,r=-1,y))for(;++r<x;)u=v[r],u.x+=(b-u.x)*y,u.y+=(E-u.y)*y;if(h)for(io(t=la.geom.quadtree(v),o,s),r=-1;++r<x;)(u=v[r]).fixed||t.visit(e(u));for(r=-1;++r<x;)u=v[r],u.fixed?(u.x=u.px,u.y=u.py):(u.x-=(u.px-(u.px=u.x))*p,u.y-=(u.py-(u.py=u.y))*p);c.tick({type:"tick",alpha:o})},u.nodes=function(e){return arguments.length?(v=e,u):v},u.links=function(e){return arguments.length?(_=e,u):_},u.size=function(e){return arguments.length?(l=e,u):l},u.linkDistance=function(e){return arguments.length?(f="function"==typeof e?e:+e,u):f},u.distance=u.linkDistance,u.linkStrength=function(e){return arguments.length?(d="function"==typeof e?e:+e,u):d},u.friction=function(e){return arguments.length?(p=+e,u):p},u.charge=function(e){return arguments.length?(h="function"==typeof e?e:+e,u):h},u.chargeDistance=function(e){return arguments.length?(g=e*e,u):Math.sqrt(g)},u.gravity=function(e){return arguments.length?(m=+e,u):m},u.theta=function(e){return arguments.length?(y=e*e,u):Math.sqrt(y)},u.alpha=function(e){return arguments.length?(e=+e,o?e>0?o=e:(n.c=null,n.t=NaN,n=null,c.end({type:"end",alpha:o=0})):e>0&&(c.start({type:"start",alpha:o=e}),n=De(u.tick)),u):o},u.start=function(){function e(e,r){if(!n){for(n=new Array(o),u=0;u<o;++u)n[u]=[];for(u=0;u<c;++u){var i=_[u];n[i.source.index].push(i.target),n[i.target.index].push(i.source)}}for(var a,s=n[t],u=-1,l=s.length;++u<l;)if(!isNaN(a=s[u][e]))return a;return Math.random()*r}var t,n,r,o=v.length,c=_.length,p=l[0],g=l[1];for(t=0;t<o;++t)(r=v[t]).index=t,r.weight=0;for(t=0;t<c;++t)r=_[t],"number"==typeof r.source&&(r.source=v[r.source]),"number"==typeof r.target&&(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;t<o;++t)r=v[t],isNaN(r.x)&&(r.x=e("x",p)),isNaN(r.y)&&(r.y=e("y",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof f)for(t=0;t<c;++t)i[t]=+f.call(this,_[t],t);else for(t=0;t<c;++t)i[t]=f;if(a=[],"function"==typeof d)for(t=0;t<c;++t)a[t]=+d.call(this,_[t],t);else for(t=0;t<c;++t)a[t]=d;if(s=[],"function"==typeof h)for(t=0;t<o;++t)s[t]=+h.call(this,v[t],t);else for(t=0;t<o;++t)s[t]=h;return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){return r||(r=la.behavior.drag().origin(b).on("dragstart.force",to).on("drag.force",t).on("dragend.force",no)),arguments.length?void this.on("mouseover.force",ro).on("mouseout.force",oo).call(r):r},la.rebind(u,c,"on")};var vu=20,_u=1,bu=1/0;la.layout.hierarchy=function(){function e(o){var i,a=[o],s=[];for(o.depth=0;null!=(i=a.pop());)if(s.push(i),(c=n.call(e,i,i.depth))&&(u=c.length)){for(var u,c,l;--u>=0;)a.push(l=c[u]),l.parent=i,l.depth=i.depth+1;r&&(i.value=0),i.children=c}else r&&(i.value=+r.call(e,i,i.depth)||0),delete i.children;return uo(o,function(e){var n,o;t&&(n=e.children)&&n.sort(t),r&&(o=e.parent)&&(o.value+=e.value)}),s}var t=po,n=co,r=lo;return e.sort=function(n){return arguments.length?(t=n,e):t},e.children=function(t){return arguments.length?(n=t,e):n},e.value=function(t){return arguments.length?(r=t,e):r},e.revalue=function(t){return r&&(so(t,function(e){e.children&&(e.value=0)}),uo(t,function(t){var n;t.children||(t.value=+r.call(e,t,t.depth)||0),(n=t.parent)&&(n.value+=t.value)})),t},e},la.layout.partition=function(){function e(t,n,r,o){var i=t.children;if(t.x=n,t.y=t.depth*o,t.dx=r,t.dy=o,i&&(a=i.length)){var a,s,u,c=-1;for(r=t.value?r/t.value:0;++c<a;)e(s=i[c],n,u=s.value*r,o),n+=u}}function t(e){var n=e.children,r=0;if(n&&(o=n.length))for(var o,i=-1;++i<o;)r=Math.max(r,t(n[i]));return 1+r}function n(n,i){var a=r.call(this,n,i);return e(a[0],0,o[0],o[1]/t(a[0])),a}var r=la.layout.hierarchy(),o=[1,1];return n.size=function(e){return arguments.length?(o=e,n):o},ao(n,r)},la.layout.pie=function(){function e(a){var s,u=a.length,c=a.map(function(n,r){return+t.call(e,n,r)}),l=+("function"==typeof r?r.apply(this,arguments):r),p=("function"==typeof o?o.apply(this,arguments):o)-l,f=Math.min(Math.abs(p)/u,+("function"==typeof i?i.apply(this,arguments):i)),d=f*(p<0?-1:1),h=la.sum(c),g=h?(p-u*d)/h:0,m=la.range(u),y=[];return null!=n&&m.sort(n===Eu?function(e,t){return c[t]-c[e]}:function(e,t){return n(a[e],a[t])}),m.forEach(function(e){y[e]={data:a[e],value:s=c[e],startAngle:l,endAngle:l+=s*g+d,padAngle:f}}),y}var t=Number,n=Eu,r=0,o=Ua,i=0;return e.value=function(n){return arguments.length?(t=n,e):t},e.sort=function(t){return arguments.length?(n=t,e):n},e.startAngle=function(t){return arguments.length?(r=t,e):r},e.endAngle=function(t){return arguments.length?(o=t,e):o},e.padAngle=function(t){return arguments.length?(i=t,e):i},e};var Eu={};la.layout.stack=function(){function e(s,u){if(!(f=s.length))return s;var c=s.map(function(n,r){return t.call(e,n,r)}),l=c.map(function(t){return t.map(function(t,n){return[i.call(e,t,n),a.call(e,t,n)]})}),p=n.call(e,l,u);c=la.permute(c,p),l=la.permute(l,p);var f,d,h,g,m=r.call(e,l,u),y=c[0].length;for(h=0;h<y;++h)for(o.call(e,c[0][h],g=m[h],l[0][h][1]),d=1;d<f;++d)o.call(e,c[d][h],g+=l[d-1][h][1],l[d][h][1]);return s}var t=b,n=yo,r=vo,o=mo,i=ho,a=go;return e.values=function(n){return arguments.length?(t=n,e):t},e.order=function(t){return arguments.length?(n="function"==typeof t?t:xu.get(t)||yo,e):n},e.offset=function(t){return arguments.length?(r="function"==typeof t?t:Cu.get(t)||vo,e):r},e.x=function(t){return arguments.length?(i=t,e):i},e.y=function(t){return arguments.length?(a=t,e):a},e.out=function(t){return arguments.length?(o=t,e):o},e};var xu=la.map({"inside-out":function(e){var t,n,r=e.length,o=e.map(_o),i=e.map(bo),a=la.range(r).sort(function(e,t){return o[e]-o[t]}),s=0,u=0,c=[],l=[];for(t=0;t<r;++t)n=a[t],s<u?(s+=i[n],c.push(n)):(u+=i[n],l.push(n));return l.reverse().concat(c)},reverse:function(e){return la.range(e.length).reverse()},default:yo}),Cu=la.map({silhouette:function(e){var t,n,r,o=e.length,i=e[0].length,a=[],s=0,u=[];for(n=0;n<i;++n){for(t=0,r=0;t<o;t++)r+=e[t][n][1];r>s&&(s=r),a.push(r)}for(n=0;n<i;++n)u[n]=(s-a[n])/2;return u},wiggle:function(e){var t,n,r,o,i,a,s,u,c,l=e.length,p=e[0],f=p.length,d=[];for(d[0]=u=c=0,n=1;n<f;++n){for(t=0,o=0;t<l;++t)o+=e[t][n][1];for(t=0,i=0,s=p[n][0]-p[n-1][0];t<l;++t){for(r=0,a=(e[t][n][1]-e[t][n-1][1])/(2*s);r<t;++r)a+=(e[r][n][1]-e[r][n-1][1])/s;i+=a*e[t][n][1]}d[n]=u-=o?i/o*s:0,u<c&&(c=u)}for(n=0;n<f;++n)d[n]-=c;return d},expand:function(e){var t,n,r,o=e.length,i=e[0].length,a=1/o,s=[];for(n=0;n<i;++n){for(t=0,r=0;t<o;t++)r+=e[t][n][1];if(r)for(t=0;t<o;t++)e[t][n][1]/=r;else for(t=0;t<o;t++)e[t][n][1]=a}for(n=0;n<i;++n)s[n]=0;return s},zero:vo});la.layout.histogram=function(){function e(e,i){for(var a,s,u=[],c=e.map(n,this),l=r.call(this,c,i),p=o.call(this,l,c,i),i=-1,f=c.length,d=p.length-1,h=t?1:1/f;++i<d;)a=u[i]=[],a.dx=p[i+1]-(a.x=p[i]),a.y=0;if(d>0)for(i=-1;++i<f;)s=c[i],s>=l[0]&&s<=l[1]&&(a=u[la.bisect(p,s,1,d)-1],a.y+=h,a.push(e[i]));return u}var t=!0,n=Number,r=wo,o=xo;return e.value=function(t){return arguments.length?(n=t,e):n},e.range=function(t){return arguments.length?(r=Pe(t),e):r},e.bins=function(t){return arguments.length?(o="number"==typeof t?function(e){return Co(e,t)}:Pe(t),e):o},e.frequency=function(n){return arguments.length?(t=!!n,e):t},e},la.layout.pack=function(){function e(e,i){var a=n.call(this,e,i),s=a[0],u=o[0],c=o[1],l=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,uo(s,function(e){e.r=+l(e.value)}),uo(s,Ro),r){var p=r*(t?1:Math.max(2*s.r/u,2*s.r/c))/2;uo(s,function(e){e.r+=p}),uo(s,Ro),uo(s,function(e){e.r-=p})}return Mo(s,u/2,c/2,t?1:1/Math.max(2*s.r/u,2*s.r/c)),a}var t,n=la.layout.hierarchy().sort(So),r=0,o=[1,1];return e.size=function(t){return arguments.length?(o=t,e):o},e.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,e):t},e.padding=function(t){return arguments.length?(r=+t,e):r},ao(e,n)},la.layout.tree=function(){function e(e,o){var l=a.call(this,e,o),p=l[0],f=t(p);if(uo(f,n),f.parent.m=-f.z,so(f,r),c)so(p,i);else{var d=p,h=p,g=p;so(p,function(e){e.x<d.x&&(d=e),e.x>h.x&&(h=e),e.depth>g.depth&&(g=e)});var m=s(d,h)/2-d.x,y=u[0]/(h.x+s(h,d)/2+m),v=u[1]/(g.depth||1);so(p,function(e){e.x=(e.x+m)*y,e.y=e.depth*v})}return l}function t(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var o,i=t.children,a=0,s=i.length;a<s;++a)r.push((i[a]=o={_:i[a],parent:t,children:(o=i[a].children)&&o.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=o);return n.children[0]}function n(e){var t=e.children,n=e.parent.children,r=e.i?n[e.i-1]:null;if(t.length){Fo(e);var i=(t[0].z+t[t.length-1].z)/2;r?(e.z=r.z+s(e._,r._),
|
19 |
-
e.m=e.z-i):e.z=i}else r&&(e.z=r.z+s(e._,r._));e.parent.A=o(e,r,e.parent.A||n[0])}function r(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function o(e,t,n){if(t){for(var r,o=e,i=e,a=t,u=o.parent.children[0],c=o.m,l=i.m,p=a.m,f=u.m;a=ko(a),o=Lo(o),a&&o;)u=Lo(u),i=ko(i),i.a=e,r=a.z+p-o.z-c+s(a._,o._),r>0&&(jo(Vo(a,e,n),e,r),c+=r,l+=r),p+=a.m,c+=o.m,f+=u.m,l+=i.m;a&&!ko(i)&&(i.t=a,i.m+=p-l),o&&!Lo(u)&&(u.t=o,u.m+=c-f,n=e)}return n}function i(e){e.x*=u[0],e.y=e.depth*u[1]}var a=la.layout.hierarchy().sort(null).value(null),s=Io,u=[1,1],c=null;return e.separation=function(t){return arguments.length?(s=t,e):s},e.size=function(t){return arguments.length?(c=null==(u=t)?i:null,e):c?null:u},e.nodeSize=function(t){return arguments.length?(c=null==(u=t)?null:i,e):c?u:null},ao(e,a)},la.layout.cluster=function(){function e(e,i){var a,s=t.call(this,e,i),u=s[0],c=0;uo(u,function(e){var t=e.children;t&&t.length?(e.x=zo(t),e.y=Uo(t)):(e.x=a?c+=n(e,a):0,e.y=0,a=e)});var l=Go(u),p=Ho(u),f=l.x-n(l,p)/2,d=p.x+n(p,l)/2;return uo(u,o?function(e){e.x=(e.x-u.x)*r[0],e.y=(u.y-e.y)*r[1]}:function(e){e.x=(e.x-f)/(d-f)*r[0],e.y=(1-(u.y?e.y/u.y:1))*r[1]}),s}var t=la.layout.hierarchy().sort(null).value(null),n=Io,r=[1,1],o=!1;return e.separation=function(t){return arguments.length?(n=t,e):n},e.size=function(t){return arguments.length?(o=null==(r=t),e):o?null:r},e.nodeSize=function(t){return arguments.length?(o=null!=(r=t),e):o?r:null},ao(e,t)},la.layout.treemap=function(){function e(e,t){for(var n,r,o=-1,i=e.length;++o<i;)r=(n=e[o]).value*(t<0?0:t),n.area=isNaN(r)||r<=0?0:r}function t(n){var i=n.children;if(i&&i.length){var a,s,u,c=p(n),l=[],f=i.slice(),h=1/0,g="slice"===d?c.dx:"dice"===d?c.dy:"slice-dice"===d?1&n.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(e(f,c.dx*c.dy/n.value),l.area=0;(u=f.length)>0;)l.push(a=f[u-1]),l.area+=a.area,"squarify"!==d||(s=r(l,g))<=h?(f.pop(),h=s):(l.area-=l.pop().area,o(l,g,c,!1),g=Math.min(c.dx,c.dy),l.length=l.area=0,h=1/0);l.length&&(o(l,g,c,!0),l.length=l.area=0),i.forEach(t)}}function n(t){var r=t.children;if(r&&r.length){var i,a=p(t),s=r.slice(),u=[];for(e(s,a.dx*a.dy/t.value),u.area=0;i=s.pop();)u.push(i),u.area+=i.area,null!=i.z&&(o(u,i.z?a.dx:a.dy,a,!s.length),u.length=u.area=0);r.forEach(n)}}function r(e,t){for(var n,r=e.area,o=0,i=1/0,a=-1,s=e.length;++a<s;)(n=e[a].area)&&(n<i&&(i=n),n>o&&(o=n));return r*=r,t*=t,r?Math.max(t*o*h/r,r/(t*i*h)):1/0}function o(e,t,n,r){var o,i=-1,a=e.length,s=n.x,c=n.y,l=t?u(e.area/t):0;if(t==n.dx){for((r||l>n.dy)&&(l=n.dy);++i<a;)o=e[i],o.x=s,o.y=c,o.dy=l,s+=o.dx=Math.min(n.x+n.dx-s,l?u(o.area/l):0);o.z=!0,o.dx+=n.x+n.dx-s,n.y+=l,n.dy-=l}else{for((r||l>n.dx)&&(l=n.dx);++i<a;)o=e[i],o.x=s,o.y=c,o.dx=l,c+=o.dy=Math.min(n.y+n.dy-c,l?u(o.area/l):0);o.z=!1,o.dy+=n.y+n.dy-c,n.x+=l,n.dx-=l}}function i(r){var o=a||s(r),i=o[0];return i.x=i.y=0,i.value?(i.dx=c[0],i.dy=c[1]):i.dx=i.dy=0,a&&s.revalue(i),e([i],i.dx*i.dy/i.value),(a?n:t)(i),f&&(a=o),o}var a,s=la.layout.hierarchy(),u=Math.round,c=[1,1],l=null,p=Bo,f=!1,d="squarify",h=.5*(1+Math.sqrt(5));return i.size=function(e){return arguments.length?(c=e,i):c},i.padding=function(e){function t(t){var n=e.call(i,t,t.depth);return null==n?Bo(t):qo(t,"number"==typeof n?[n,n,n,n]:n)}function n(t){return qo(t,e)}if(!arguments.length)return l;var r;return p=null==(l=e)?Bo:"function"==(r=typeof e)?t:"number"===r?(e=[e,e,e,e],n):n,i},i.round=function(e){return arguments.length?(u=e?Math.round:Number,i):u!=Number},i.sticky=function(e){return arguments.length?(f=e,a=null,i):f},i.ratio=function(e){return arguments.length?(h=e,i):h},i.mode=function(e){return arguments.length?(d=e+"",i):d},ao(i,s)},la.random={normal:function(e,t){var n=arguments.length;return n<2&&(t=1),n<1&&(e=0),function(){var n,r,o;do n=2*Math.random()-1,r=2*Math.random()-1,o=n*n+r*r;while(!o||o>1);return e+t*n*Math.sqrt(-2*Math.log(o)/o)}},logNormal:function(){var e=la.random.normal.apply(la,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=la.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n<e;n++)t+=Math.random();return t}}},la.scale={};var wu={floor:b,ceil:b};la.scale.linear=function(){return $o([0,1],[0,1],Er,!1)};var Su={s:1,g:1,p:1,r:1,e:1};la.scale.log=function(){return ai(la.scale.linear().domain([0,1]),10,!0,[1,10])};var Ou=la.format(".0e"),Tu={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};la.scale.pow=function(){return si(la.scale.linear(),1,[0,1])},la.scale.sqrt=function(){return la.scale.pow().exponent(.5)},la.scale.ordinal=function(){return ci([],{t:"range",a:[[]]})},la.scale.category10=function(){return la.scale.ordinal().range(Pu)},la.scale.category20=function(){return la.scale.ordinal().range(Ru)},la.scale.category20b=function(){return la.scale.ordinal().range(Nu)},la.scale.category20c=function(){return la.scale.ordinal().range(Au)};var Pu=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Ee),Ru=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Ee),Nu=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Ee),Au=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Ee);la.scale.quantile=function(){return li([],[])},la.scale.quantize=function(){return pi(0,1,[0,1])},la.scale.threshold=function(){return fi([.5],[0,1])},la.scale.identity=function(){return di([0,1])},la.svg={},la.svg.arc=function(){function e(){var e=Math.max(0,+n.apply(this,arguments)),c=Math.max(0,+r.apply(this,arguments)),l=a.apply(this,arguments)-Ga,p=s.apply(this,arguments)-Ga,f=Math.abs(p-l),d=l>p?0:1;if(c<e&&(h=c,c=e,e=h),f>=za)return t(c,d)+(e?t(e,1-d):"")+"Z";var h,g,m,y,v,_,b,E,x,C,w,S,O=0,T=0,P=[];if((y=(+u.apply(this,arguments)||0)/2)&&(m=i===Mu?Math.sqrt(e*e+c*c):+i.apply(this,arguments),d||(T*=-1),c&&(T=re(m/c*Math.sin(y))),e&&(O=re(m/e*Math.sin(y)))),c){v=c*Math.cos(l+T),_=c*Math.sin(l+T),b=c*Math.cos(p-T),E=c*Math.sin(p-T);var R=Math.abs(p-l-2*T)<=Va?0:1;if(T&&bi(v,_,b,E)===d^R){var N=(l+p)/2;v=c*Math.cos(N),_=c*Math.sin(N),b=E=null}}else v=_=0;if(e){x=e*Math.cos(p-O),C=e*Math.sin(p-O),w=e*Math.cos(l+O),S=e*Math.sin(l+O);var A=Math.abs(l-p+2*O)<=Va?0:1;if(O&&bi(x,C,w,S)===1-d^A){var M=(l+p)/2;x=e*Math.cos(M),C=e*Math.sin(M),w=S=null}}else x=C=0;if(f>ja&&(h=Math.min(Math.abs(c-e)/2,+o.apply(this,arguments)))>.001){g=e<c^d?0:1;var D=h,I=h;if(f<Va){var L=null==w?[x,C]:null==b?[v,_]:kn([v,_],[w,S],[b,E],[x,C]),k=v-L[0],j=_-L[1],F=b-L[0],V=E-L[1],U=1/Math.sin(Math.acos((k*F+j*V)/(Math.sqrt(k*k+j*j)*Math.sqrt(F*F+V*V)))/2),z=Math.sqrt(L[0]*L[0]+L[1]*L[1]);I=Math.min(h,(e-z)/(U-1)),D=Math.min(h,(c-z)/(U+1))}if(null!=b){var G=Ei(null==w?[x,C]:[w,S],[v,_],c,D,d),H=Ei([b,E],[x,C],c,D,d);h===D?P.push("M",G[0],"A",D,",",D," 0 0,",g," ",G[1],"A",c,",",c," 0 ",1-d^bi(G[1][0],G[1][1],H[1][0],H[1][1]),",",d," ",H[1],"A",D,",",D," 0 0,",g," ",H[0]):P.push("M",G[0],"A",D,",",D," 0 1,",g," ",H[0])}else P.push("M",v,",",_);if(null!=w){var B=Ei([v,_],[w,S],e,-I,d),q=Ei([x,C],null==b?[v,_]:[b,E],e,-I,d);h===I?P.push("L",q[0],"A",I,",",I," 0 0,",g," ",q[1],"A",e,",",e," 0 ",d^bi(q[1][0],q[1][1],B[1][0],B[1][1]),",",1-d," ",B[1],"A",I,",",I," 0 0,",g," ",B[0]):P.push("L",q[0],"A",I,",",I," 0 0,",g," ",B[0])}else P.push("L",x,",",C)}else P.push("M",v,",",_),null!=b&&P.push("A",c,",",c," 0 ",R,",",d," ",b,",",E),P.push("L",x,",",C),null!=w&&P.push("A",e,",",e," 0 ",A,",",1-d," ",w,",",S);return P.push("Z"),P.join("")}function t(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}var n=gi,r=mi,o=hi,i=Mu,a=yi,s=vi,u=_i;return e.innerRadius=function(t){return arguments.length?(n=Pe(t),e):n},e.outerRadius=function(t){return arguments.length?(r=Pe(t),e):r},e.cornerRadius=function(t){return arguments.length?(o=Pe(t),e):o},e.padRadius=function(t){return arguments.length?(i=t==Mu?Mu:Pe(t),e):i},e.startAngle=function(t){return arguments.length?(a=Pe(t),e):a},e.endAngle=function(t){return arguments.length?(s=Pe(t),e):s},e.padAngle=function(t){return arguments.length?(u=Pe(t),e):u},e.centroid=function(){var e=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-Ga;return[Math.cos(t)*e,Math.sin(t)*e]},e};var Mu="auto";la.svg.line=function(){return xi(b)};var Du=la.map({linear:Ci,"linear-closed":wi,step:Si,"step-before":Oi,"step-after":Ti,basis:Di,"basis-open":Ii,"basis-closed":Li,bundle:ki,cardinal:Ni,"cardinal-open":Pi,"cardinal-closed":Ri,monotone:Gi});Du.forEach(function(e,t){t.key=e,t.closed=/-closed$/.test(e)});var Iu=[0,2/3,1/3,0],Lu=[0,1/3,2/3,0],ku=[0,1/6,2/3,1/6];la.svg.line.radial=function(){var e=xi(Hi);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},Oi.reverse=Ti,Ti.reverse=Oi,la.svg.area=function(){return Bi(b)},la.svg.area.radial=function(){var e=Bi(Hi);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},la.svg.chord=function(){function e(e,s){var u=t(this,i,e,s),c=t(this,a,e,s);return"M"+u.p0+r(u.r,u.p1,u.a1-u.a0)+(n(u,c)?o(u.r,u.p1,u.r,u.p0):o(u.r,u.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+o(c.r,c.p1,u.r,u.p0))+"Z"}function t(e,t,n,r){var o=t.call(e,n,r),i=s.call(e,o,r),a=u.call(e,o,r)-Ga,l=c.call(e,o,r)-Ga;return{r:i,a0:a,a1:l,p0:[i*Math.cos(a),i*Math.sin(a)],p1:[i*Math.cos(l),i*Math.sin(l)]}}function n(e,t){return e.a0==t.a0&&e.a1==t.a1}function r(e,t,n){return"A"+e+","+e+" 0 "+ +(n>Va)+",1 "+t}function o(e,t,n,r){return"Q 0,0 "+r}var i=En,a=xn,s=qi,u=yi,c=vi;return e.radius=function(t){return arguments.length?(s=Pe(t),e):s},e.source=function(t){return arguments.length?(i=Pe(t),e):i},e.target=function(t){return arguments.length?(a=Pe(t),e):a},e.startAngle=function(t){return arguments.length?(u=Pe(t),e):u},e.endAngle=function(t){return arguments.length?(c=Pe(t),e):c},e},la.svg.diagonal=function(){function e(e,o){var i=t.call(this,e,o),a=n.call(this,e,o),s=(i.y+a.y)/2,u=[i,{x:i.x,y:s},{x:a.x,y:s},a];return u=u.map(r),"M"+u[0]+"C"+u[1]+" "+u[2]+" "+u[3]}var t=En,n=xn,r=Zi;return e.source=function(n){return arguments.length?(t=Pe(n),e):t},e.target=function(t){return arguments.length?(n=Pe(t),e):n},e.projection=function(t){return arguments.length?(r=t,e):r},e},la.svg.diagonal.radial=function(){var e=la.svg.diagonal(),t=Zi,n=e.projection;return e.projection=function(e){return arguments.length?n(Wi(t=e)):t},e},la.svg.symbol=function(){function e(e,r){return(ju.get(t.call(this,e,r))||Ki)(n.call(this,e,r))}var t=Xi,n=Yi;return e.type=function(n){return arguments.length?(t=Pe(n),e):t},e.size=function(t){return arguments.length?(n=Pe(t),e):n},e};var ju=la.map({circle:Ki,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Vu)),n=t*Vu;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Fu),n=t*Fu/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Fu),n=t*Fu/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});la.svg.symbolTypes=ju.keys();var Fu=Math.sqrt(3),Vu=Math.tan(30*Ha);Ra.transition=function(e){for(var t,n,r=Uu||++Bu,o=ta(e),i=[],a=zu||{time:Date.now(),ease:Pr,delay:0,duration:250},s=-1,u=this.length;++s<u;){i.push(t=[]);for(var c=this[s],l=-1,p=c.length;++l<p;)(n=c[l])&&na(n,l,o,r,a),t.push(n)}return $i(i,o,r)},Ra.interrupt=function(e){return this.each(null==e?Gu:Qi(ta(e)))};var Uu,zu,Gu=Qi(ta()),Hu=[],Bu=0;Hu.call=Ra.call,Hu.empty=Ra.empty,Hu.node=Ra.node,Hu.size=Ra.size,la.transition=function(e,t){return e&&e.transition?Uu?e.transition(t):e:la.selection().transition(e)},la.transition.prototype=Hu,Hu.select=function(e){var t,n,r,o=this.id,i=this.namespace,a=[];e=N(e);for(var s=-1,u=this.length;++s<u;){a.push(t=[]);for(var c=this[s],l=-1,p=c.length;++l<p;)(r=c[l])&&(n=e.call(r,r.__data__,l,s))?("__data__"in r&&(n.__data__=r.__data__),na(n,l,i,o,r[i][o]),t.push(n)):t.push(null)}return $i(a,i,o)},Hu.selectAll=function(e){var t,n,r,o,i,a=this.id,s=this.namespace,u=[];e=A(e);for(var c=-1,l=this.length;++c<l;)for(var p=this[c],f=-1,d=p.length;++f<d;)if(r=p[f]){i=r[s][a],n=e.call(r,r.__data__,f,c),u.push(t=[]);for(var h=-1,g=n.length;++h<g;)(o=n[h])&&na(o,h,s,a,i),t.push(o)}return $i(u,s,a)},Hu.filter=function(e){var t,n,r,o=[];"function"!=typeof e&&(e=H(e));for(var i=0,a=this.length;i<a;i++){o.push(t=[]);for(var n=this[i],s=0,u=n.length;s<u;s++)(r=n[s])&&e.call(r,r.__data__,s,i)&&t.push(r)}return $i(o,this.namespace,this.id)},Hu.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):q(this,null==t?function(t){t[r][n].tween.remove(e)}:function(o){o[r][n].tween.set(e,t)})},Hu.attr=function(e,t){function n(){this.removeAttribute(s)}function r(){this.removeAttributeNS(s.space,s.local)}function o(e){return null==e?n:(e+="",function(){var t,n=this.getAttribute(s);return n!==e&&(t=a(n,e),function(e){this.setAttribute(s,t(e))})})}function i(e){return null==e?r:(e+="",function(){var t,n=this.getAttributeNS(s.space,s.local);return n!==e&&(t=a(n,e),function(e){this.setAttributeNS(s.space,s.local,t(e))})})}if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var a="transform"==e?Xr:Er,s=la.ns.qualify(e);return Ji(this,"attr."+e,t,s.local?i:o)},Hu.attrTween=function(e,t){function n(e,n){var r=t.call(this,e,n,this.getAttribute(o));return r&&function(e){this.setAttribute(o,r(e))}}function r(e,n){var r=t.call(this,e,n,this.getAttributeNS(o.space,o.local));return r&&function(e){this.setAttributeNS(o.space,o.local,r(e))}}var o=la.ns.qualify(e);return this.tween("attr."+e,o.local?r:n)},Hu.style=function(e,t,n){function o(){this.style.removeProperty(e)}function i(t){return null==t?o:(t+="",function(){var o,i=r(this).getComputedStyle(this,null).getPropertyValue(e);return i!==t&&(o=Er(i,t),function(t){this.style.setProperty(e,o(t),n)})})}var a=arguments.length;if(a<3){if("string"!=typeof e){a<2&&(t="");for(n in e)this.style(n,e[n],t);return this}n=""}return Ji(this,"style."+e,t,i)},Hu.styleTween=function(e,t,n){function o(o,i){var a=t.call(this,o,i,r(this).getComputedStyle(this,null).getPropertyValue(e));return a&&function(t){this.style.setProperty(e,a(t),n)}}return arguments.length<3&&(n=""),this.tween("style."+e,o)},Hu.text=function(e){return Ji(this,"text",e,ea)},Hu.remove=function(){var e=this.namespace;return this.each("end.transition",function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Hu.ease=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].ease:("function"!=typeof e&&(e=la.ease.apply(la,arguments)),q(this,function(r){r[n][t].ease=e}))},Hu.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:q(this,"function"==typeof e?function(r,o,i){r[n][t].delay=+e.call(r,r.__data__,o,i)}:(e=+e,function(r){r[n][t].delay=e}))},Hu.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:q(this,"function"==typeof e?function(r,o,i){r[n][t].duration=Math.max(1,e.call(r,r.__data__,o,i))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},Hu.each=function(e,t){var n=this.id,r=this.namespace;if(arguments.length<2){var o=zu,i=Uu;try{Uu=n,q(this,function(t,o,i){zu=t[r][n],e.call(t,t.__data__,o,i)})}finally{zu=o,Uu=i}}else q(this,function(o){var i=o[r][n];(i.event||(i.event=la.dispatch("start","end","interrupt"))).on(e,t)});return this},Hu.transition=function(){for(var e,t,n,r,o=this.id,i=++Bu,a=this.namespace,s=[],u=0,c=this.length;u<c;u++){s.push(e=[]);for(var t=this[u],l=0,p=t.length;l<p;l++)(n=t[l])&&(r=n[a][o],na(n,l,a,i,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),e.push(n)}return $i(s,a,i)},la.svg.axis=function(){function e(e){e.each(function(){var e,c=la.select(this),l=this.__chart__||n,p=this.__chart__=n.copy(),f=null==u?p.ticks?p.ticks.apply(p,s):p.domain():u,d=null==t?p.tickFormat?p.tickFormat.apply(p,s):b:t,h=c.selectAll(".tick").data(f,p),g=h.enter().insert("g",".domain").attr("class","tick").style("opacity",ja),m=la.transition(h.exit()).style("opacity",ja).remove(),y=la.transition(h.order()).style("opacity",1),v=Math.max(o,0)+a,_=Wo(p),E=c.selectAll(".domain").data([0]),x=(E.enter().append("path").attr("class","domain"),la.transition(E));g.append("line"),g.append("text");var C,w,S,O,T=g.select("line"),P=y.select("line"),R=h.select("text").text(d),N=g.select("text"),A=y.select("text"),M="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(e=ra,C="x",S="y",w="x2",O="y2",R.attr("dy",M<0?"0em":".71em").style("text-anchor","middle"),x.attr("d","M"+_[0]+","+M*i+"V0H"+_[1]+"V"+M*i)):(e=oa,C="y",S="x",w="y2",O="x2",R.attr("dy",".32em").style("text-anchor",M<0?"end":"start"),x.attr("d","M"+M*i+","+_[0]+"H0V"+_[1]+"H"+M*i)),T.attr(O,M*o),N.attr(S,M*v),P.attr(w,0).attr(O,M*o),A.attr(C,0).attr(S,M*v),p.rangeBand){var D=p,I=D.rangeBand()/2;l=p=function(e){return D(e)+I}}else l.rangeBand?l=p:m.call(e,p,l);g.call(e,l,p),y.call(e,p,p)})}var t,n=la.scale.linear(),r=qu,o=6,i=6,a=3,s=[10],u=null;return e.scale=function(t){return arguments.length?(n=t,e):n},e.orient=function(t){return arguments.length?(r=t in Zu?t+"":qu,e):r},e.ticks=function(){return arguments.length?(s=fa(arguments),e):s},e.tickValues=function(t){return arguments.length?(u=t,e):u},e.tickFormat=function(n){return arguments.length?(t=n,e):t},e.tickSize=function(t){var n=arguments.length;return n?(o=+t,i=+arguments[n-1],e):o},e.innerTickSize=function(t){return arguments.length?(o=+t,e):o},e.outerTickSize=function(t){return arguments.length?(i=+t,e):i},e.tickPadding=function(t){return arguments.length?(a=+t,e):a},e.tickSubdivide=function(){return arguments.length&&e},e};var qu="bottom",Zu={top:1,right:1,bottom:1,left:1};la.svg.brush=function(){function e(r){r.each(function(){var r=la.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),a=r.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),r.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var s=r.selectAll(".resize").data(g,b);s.exit().remove(),s.enter().append("g").attr("class",function(e){return"resize "+e}).style("cursor",function(e){return Wu[e]}).append("rect").attr("x",function(e){return/[ew]$/.test(e)?-3:null}).attr("y",function(e){return/^[ns]/.test(e)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),s.style("display",e.empty()?"none":null);var u,p=la.transition(r),f=la.transition(a);c&&(u=Wo(c),f.attr("x",u[0]).attr("width",u[1]-u[0]),n(p)),l&&(u=Wo(l),f.attr("y",u[0]).attr("height",u[1]-u[0]),o(p)),t(p)})}function t(e){e.selectAll(".resize").attr("transform",function(e){return"translate("+p[+/e$/.test(e)]+","+f[+/^s/.test(e)]+")"})}function n(e){e.select(".extent").attr("x",p[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",p[1]-p[0])}function o(e){e.select(".extent").attr("y",f[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",f[1]-f[0])}function i(){function i(){32==la.event.keyCode&&(R||(_=null,A[0]-=p[1],A[1]-=f[1],R=2),O())}function g(){32==la.event.keyCode&&2==R&&(A[0]+=p[1],A[1]+=f[1],R=0,O())}function m(){var e=la.mouse(E),r=!1;b&&(e[0]+=b[0],e[1]+=b[1]),R||(la.event.altKey?(_||(_=[(p[0]+p[1])/2,(f[0]+f[1])/2]),A[0]=p[+(e[0]<_[0])],A[1]=f[+(e[1]<_[1])]):_=null),T&&y(e,c,0)&&(n(w),r=!0),P&&y(e,l,1)&&(o(w),r=!0),r&&(t(w),C({type:"brush",mode:R?"move":"resize"}))}function y(e,t,n){var r,o,i=Wo(t),u=i[0],c=i[1],l=A[n],g=n?f:p,m=g[1]-g[0];if(R&&(u-=l,c-=m+l),r=(n?h:d)?Math.max(u,Math.min(c,e[n])):e[n],R?o=(r+=l)+m:(_&&(l=Math.max(u,Math.min(c,2*_[n]-r))),l<r?(o=r,r=l):o=l),g[0]!=r||g[1]!=o)return n?s=null:a=null,g[0]=r,g[1]=o,!0}function v(){m(),w.style("pointer-events","all").selectAll(".resize").style("display",e.empty()?"none":null),la.select("body").style("cursor",null),M.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),N(),C({type:"brushend"})}var _,b,E=this,x=la.select(la.event.target),C=u.of(E,arguments),w=la.select(E),S=x.datum(),T=!/^(n|s)$/.test(S)&&c,P=!/^(e|w)$/.test(S)&&l,R=x.classed("extent"),N=Q(E),A=la.mouse(E),M=la.select(r(E)).on("keydown.brush",i).on("keyup.brush",g);if(la.event.changedTouches?M.on("touchmove.brush",m).on("touchend.brush",v):M.on("mousemove.brush",m).on("mouseup.brush",v),w.interrupt().selectAll("*").interrupt(),R)A[0]=p[0]-A[0],A[1]=f[0]-A[1];else if(S){var D=+/w$/.test(S),I=+/^n/.test(S);b=[p[1-D]-A[0],f[1-I]-A[1]],A[0]=p[D],A[1]=f[I]}else la.event.altKey&&(_=A.slice());w.style("pointer-events","none").selectAll(".resize").style("display",null),la.select("body").style("cursor",x.style("cursor")),C({type:"brushstart"}),m()}var a,s,u=P(e,"brushstart","brush","brushend"),c=null,l=null,p=[0,0],f=[0,0],d=!0,h=!0,g=Yu[0];return e.event=function(e){e.each(function(){var e=u.of(this,arguments),t={x:p,y:f,i:a,j:s},n=this.__chart__||t;this.__chart__=t,Uu?la.select(this).transition().each("start.brush",function(){a=n.i,s=n.j,p=n.x,f=n.y,e({type:"brushstart"})}).tween("brush:brush",function(){var n=xr(p,t.x),r=xr(f,t.y);return a=s=null,function(o){p=t.x=n(o),f=t.y=r(o),e({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=t.i,s=t.j,e({type:"brush",mode:"resize"}),e({type:"brushend"})}):(e({type:"brushstart"}),e({type:"brush",mode:"resize"}),e({type:"brushend"}))})},e.x=function(t){return arguments.length?(c=t,g=Yu[!c<<1|!l],e):c},e.y=function(t){return arguments.length?(l=t,g=Yu[!c<<1|!l],e):l},e.clamp=function(t){return arguments.length?(c&&l?(d=!!t[0],h=!!t[1]):c?d=!!t:l&&(h=!!t),e):c&&l?[d,h]:c?d:l?h:null},e.extent=function(t){var n,r,o,i,u;return arguments.length?(c&&(n=t[0],r=t[1],l&&(n=n[0],r=r[0]),a=[n,r],c.invert&&(n=c(n),r=c(r)),r<n&&(u=n,n=r,r=u),n==p[0]&&r==p[1]||(p=[n,r])),l&&(o=t[0],i=t[1],c&&(o=o[1],i=i[1]),s=[o,i],l.invert&&(o=l(o),i=l(i)),i<o&&(u=o,o=i,i=u),o==f[0]&&i==f[1]||(f=[o,i])),e):(c&&(a?(n=a[0],r=a[1]):(n=p[0],r=p[1],c.invert&&(n=c.invert(n),r=c.invert(r)),r<n&&(u=n,n=r,r=u))),l&&(s?(o=s[0],i=s[1]):(o=f[0],i=f[1],l.invert&&(o=l.invert(o),i=l.invert(i)),i<o&&(u=o,o=i,i=u))),c&&l?[[n,o],[r,i]]:c?[n,r]:l&&[o,i])},e.clear=function(){return e.empty()||(p=[0,0],f=[0,0],a=s=null),e},e.empty=function(){return!!c&&p[0]==p[1]||!!l&&f[0]==f[1]},la.rebind(e,u,"on")};var Wu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Yu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Xu=hs.format=bs.timeFormat,Ku=Xu.utc,Qu=Ku("%Y-%m-%dT%H:%M:%S.%LZ");Xu.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?ia:Qu,ia.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},ia.toString=Qu.toString,hs.second=Ge(function(e){return new gs(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),hs.seconds=hs.second.range,hs.seconds.utc=hs.second.utc.range,hs.minute=Ge(function(e){return new gs(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),hs.minutes=hs.minute.range,hs.minutes.utc=hs.minute.utc.range,hs.hour=Ge(function(e){var t=e.getTimezoneOffset()/60;return new gs(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),hs.hours=hs.hour.range,hs.hours.utc=hs.hour.utc.range,hs.month=Ge(function(e){return e=hs.day(e),e.setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),hs.months=hs.month.range,hs.months.utc=hs.month.utc.range;var $u=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ju=[[hs.second,1],[hs.second,5],[hs.second,15],[hs.second,30],[hs.minute,1],[hs.minute,5],[hs.minute,15],[hs.minute,30],[hs.hour,1],[hs.hour,3],[hs.hour,6],[hs.hour,12],[hs.day,1],[hs.day,2],[hs.week,1],[hs.month,1],[hs.month,3],[hs.year,1]],ec=Xu.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",At]]),tc={range:function(e,t,n){return la.range(Math.ceil(e/n)*n,+t,n).map(sa)},floor:b,ceil:b};Ju.year=hs.year,hs.scale=function(){return aa(la.scale.linear(),Ju,ec)};var nc=Ju.map(function(e){return[e[0].utc,e[1]]}),rc=Ku.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",At]]);nc.year=hs.year.utc,hs.scale.utc=function(){return aa(la.scale.linear(),nc,rc)},la.text=Re(function(e){return e.responseText}),la.json=function(e,t){return Ne(e,"application/json",ua,t)},la.html=function(e,t){return Ne(e,"text/html",ca,t)},la.xml=Re(function(e){return e.responseXML}),"function"==typeof e&&e.amd?(this.d3=la,e(la)):"object"==typeof n&&n.exports?n.exports=la:this.d3=la}()},{}],274:[function(e,t,n){"use strict";t.exports=e("react/lib/ReactDOM")},{"react/lib/ReactDOM":384}],275:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=e("./GatewayRegistry"),l=r(c),p=function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r));return a.gatewayRegistry=r.gatewayRegistry,a}return a(t,e),t.prototype.componentWillMount=function(){this.renderIntoGatewayNode(this.props)},t.prototype.componentWillReceiveProps=function(e){this.gatewayRegistry.clearChild(this.props.into),this.renderIntoGatewayNode(e)},t.prototype.componentWillUnmount=function(){this.gatewayRegistry.removeChild(this.props.into)},t.prototype.renderIntoGatewayNode=function(e){this.gatewayRegistry.addChild(this.props.into,e.children)},t.prototype.render=function(){return null},t}(u.default.Component);p.contextTypes={gatewayRegistry:u.default.PropTypes.instanceOf(l.default).isRequired},p.propTypes={into:u.default.PropTypes.string.isRequired,children:u.default.PropTypes.oneOfType([u.default.PropTypes.element,u.default.PropTypes.string])},n.default=p},{"./GatewayRegistry":278,react:509}],276:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e("react"),c=r(u),l=e("./GatewayRegistry"),p=r(l),f=e("react-prop-types"),d=function(e){function t(n,r){i(this,t);var o=a(this,e.call(this,n,r));return o.state={child:null},o.gatewayRegistry=r.gatewayRegistry,o}return s(t,e),t.prototype.componentWillMount=function(){this.gatewayRegistry.addContainer(this.props.name,this)},t.prototype.componentWillUnmount=function(){this.gatewayRegistry.removeContainer(this.props.name,this)},t.prototype.render=function(){var e=this.props,t=e.component,n=e.tagName,r=o(e,["component","tagName"]);return delete r.name,c.default.createElement(t||n||"div",r,this.state.child)},t}(c.default.Component);d.contextTypes={gatewayRegistry:c.default.PropTypes.instanceOf(p.default).isRequired},d.propTypes={name:c.default.PropTypes.string.isRequired,tagName:(0,f.deprecated)(c.default.PropTypes.string,'Use "component" instead.'),component:c.default.PropTypes.oneOfType([c.default.PropTypes.string,c.default.PropTypes.func])},n.default=d},{"./GatewayRegistry":278,react:509,"react-prop-types":284}],277:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=e("./GatewayRegistry"),l=r(c),p=function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r));return a.gatewayRegistry=new l.default,a}return a(t,e),t.prototype.getChildContext=function(){return{gatewayRegistry:this.gatewayRegistry}},t.prototype.render=function(){return this.props.children},t}(u.default.Component);p.childContextTypes={gatewayRegistry:u.default.PropTypes.instanceOf(l.default).isRequired},p.propTypes={children:u.default.PropTypes.element},n.default=p},{"./GatewayRegistry":278,react:509}],278:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var o=function(){function e(){r(this,e),this._containers={},this._children={}}return e.prototype._renderContainer=function(e){this._containers[e]&&this._containers[e].setState({child:this._children[e]})},e.prototype.addContainer=function(e,t){this._containers[e]=t,this._renderContainer(e)},e.prototype.removeContainer=function(e){this._containers[e]=null},e.prototype.addChild=function(e,t){this._children[e]&&console.warn("Only a single Gateway can be rendered at a time into a GatewayDest."+('You rendered multiple into "'+e+'"')),this._children[e]=t,this._renderContainer(e)},e.prototype.clearChild=function(e){this._children[e]=null},e.prototype.removeChild=function(e){this.clearChild(e),this._renderContainer(e)},e}();n.default=o},{}],279:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.GatewayProvider=n.GatewayDest=n.Gateway=void 0;var o=e("./Gateway"),i=r(o),a=e("./GatewayDest"),s=r(a),u=e("./GatewayProvider"),c=r(u);n.Gateway=i.default,n.GatewayDest=s.default,n.GatewayProvider=c.default},{"./Gateway":275,"./GatewayDest":276,"./GatewayProvider":277
|
20 |
-
}],280:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=null;return n.forEach(function(e){if(null==o){var n=e.apply(void 0,t);null!=n&&(o=n)}}),o}for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,a.default)(e)}n.__esModule=!0,n.default=o;var i=e("./utils/createChainableTypeChecker"),a=r(i)},{"./utils/createChainableTypeChecker":286}],281:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,o){var a=e[t],u="undefined"==typeof a?"undefined":i(a);return s.default.isValidElement(a)?new Error("Invalid "+r+" `"+o+"` of type ReactElement "+("supplied to `"+n+"`, expected a ReactComponent or a ")+"DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===u&&"function"==typeof a.render||1===a.nodeType?null:new Error("Invalid "+r+" `"+o+"` of value `"+a+"` "+("supplied to `"+n+"`, expected a ReactComponent or a ")+"DOMElement.")}n.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=e("react"),s=r(a),u=e("./utils/createChainableTypeChecker"),c=r(u);n.default=(0,c.default)(o)},{"./utils/createChainableTypeChecker":286,react:509}],282:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return function(n,r,o,i,a){var c=o||"<<anonymous>>",l=a||r;if(null!=n[r]){var p=o+"."+r;(0,s.default)(u[p],"The "+i+" `"+l+"` of "+("`"+c+"` is deprecated. "+t+".")),u[p]=!0}for(var f=arguments.length,d=Array(f>5?f-5:0),h=5;h<f;h++)d[h-5]=arguments[h];return e.apply(void 0,[n,r,o,i,a].concat(d))}}function i(){u={}}n.__esModule=!0,n.default=o;var a=e("warning"),s=r(a),u={};o._resetWarned=i},{warning:287}],283:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,o){var a=e[t],u="undefined"==typeof a?"undefined":i(a);return s.default.isValidElement(a)?new Error("Invalid "+r+" `"+o+"` of type ReactElement "+("supplied to `"+n+"`, expected an element type (a string ")+"or a ReactClass)."):"function"!==u&&"string"!==u?new Error("Invalid "+r+" `"+o+"` of value `"+a+"` "+("supplied to `"+n+"`, expected an element type (a string ")+"or a ReactClass)."):null}n.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=e("react"),s=r(a),u=e("./utils/createChainableTypeChecker"),c=r(u);n.default=(0,c.default)(o)},{"./utils/createChainableTypeChecker":286,react:509}],284:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.isRequiredForA11y=n.elementType=n.deprecated=n.componentOrElement=n.all=void 0;var o=e("./all"),i=r(o),a=e("./componentOrElement"),s=r(a),u=e("./deprecated"),c=r(u),l=e("./elementType"),p=r(l),f=e("./isRequiredForA11y"),d=r(f);n.all=i.default,n.componentOrElement=s.default,n.deprecated=c.default,n.elementType=p.default,n.isRequiredForA11y=d.default},{"./all":280,"./componentOrElement":281,"./deprecated":282,"./elementType":283,"./isRequiredForA11y":285}],285:[function(e,t,n){"use strict";function r(e){return function(t,n,r,o,i){var a=r||"<<anonymous>>",s=i||n;if(null==t[n])return new Error("The "+o+" `"+s+"` is required to make "+("`"+a+"` accessible for users of assistive ")+"technologies such as screen readers.");for(var u=arguments.length,c=Array(u>5?u-5:0),l=5;l<u;l++)c[l-5]=arguments[l];return e.apply(void 0,[t,n,r,o,i].concat(c))}}n.__esModule=!0,n.default=r},{}],286:[function(e,t,n){"use strict";function r(e){function t(t,n,r,o,i,a){var s=o||"<<anonymous>>",u=a||r;if(null==n[r])return t?new Error("Required "+i+" `"+u+"` was not specified "+("in `"+s+"`.")):null;for(var c=arguments.length,l=Array(c>6?c-6:0),p=6;p<c;p++)l[p-6]=arguments[p];return e.apply(void 0,[n,r,s,i,u].concat(l))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}n.__esModule=!0,n.default=r},{}],287:[function(e,t,n){(function(e){"use strict";var n=function(){};"production"!==e.env.NODE_ENV&&(n=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}}),t.exports=n}).call(this,e("_process"))},{_process:2}],288:[function(e,t,n){(function(t,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function i(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=Array.isArray(e)?e:[e];t.forEach(function(e){e&&e.locale&&(A.__addLocaleData(e),M.__addLocaleData(e))})}function a(e){for(var t=(e||"").split("-");t.length>0;){if(s(t.join("-")))return!0;t.pop()}return!1}function s(e){var t=e&&e.toLowerCase();return!(!A.__localeData__[t]||!M.__localeData__[t])}function u(e){return(""+e).replace(Ne,function(e){return Re[e]})}function c(e,t){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return t.reduce(function(t,r){return e.hasOwnProperty(r)?t[r]=e[r]:n.hasOwnProperty(r)&&(t[r]=n[r]),t},{})}function l(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.intl;L(t,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function p(e,t){if(e===t)return!0;if("object"!==("undefined"==typeof e?"undefined":fe.typeof(e))||null===e||"object"!==("undefined"==typeof t?"undefined":fe.typeof(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),i=0;i<n.length;i++)if(!o(n[i])||e[n[i]]!==t[n[i]])return!1;return!0}function f(e,t,n){var r=e.props,o=e.state,i=e.context,a=void 0===i?{}:i,s=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],u=a.intl,l=void 0===u?{}:u,f=s.intl,d=void 0===f?{}:f;return!p(t,r)||!p(n,o)||!(d===l||p(c(d,Pe),c(l,Pe)))}function d(e){return e.displayName||e.name||"Component"}function h(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t.intlPropName,r=void 0===n?"intl":n,o=t.withRef,i=void 0!==o&&o,a=function(t){function n(e,t){z(this,n);var r=te(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return l(t),r}return Y(n,t),G(n,[{key:"getWrappedInstance",value:function(){return L(i,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this.refs.wrappedInstance}},{key:"render",value:function(){return I.createElement(e,fe.extends({},this.props,q({},r,this.context.intl),{ref:i?"wrappedInstance":null}))}}]),n}(D.Component);return a.displayName="InjectIntl("+d(e)+")",a.contextTypes={intl:xe},a.WrappedComponent=e,a}function g(e){return e}function m(e){return A.prototype._resolveLocale(e)}function y(e){return A.prototype._findPluralRuleFunction(e)}function v(e){var t=M.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month}function _(e,n,r){var o=e&&e[n]&&e[n][r];return o?o:void("production"!==t.env.NODE_ENV&&console.error("[React Intl] No "+n+" format named: "+r))}function b(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=o.format,u=new Date(r),l=s&&_(a,"date",s),p=c(o,Me,l);try{return n.getDateTimeFormat(i,p).format(u)}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting date.\n"+e)}return String(u)}function E(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=o.format,u=new Date(r),l=s&&_(a,"time",s),p=c(o,Me,l);p.hour||p.minute||p.second||(p=fe.extends({},p,{hour:"numeric",minute:"numeric"}));try{return n.getDateTimeFormat(i,p).format(u)}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting time.\n"+e)}return String(u)}function x(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=o.format,u=new Date(r),l=new Date(o.now),p=s&&_(a,"relative",s),f=c(o,Ie,p),d=fe.extends({},M.thresholds);v(ke);try{return n.getRelativeFormat(i,f).format(u,{now:isFinite(l)?l:n.now()})}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting relative time.\n"+e)}finally{v(d)}return String(u)}function C(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=o.format,u=s&&_(a,"number",s),l=c(o,De,u);try{return n.getNumberFormat(i,l).format(r)}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting number.\n"+e)}return String(r)}function w(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=c(o,Le);try{return n.getPluralFormat(i,a).format(r)}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting plural.\n"+e)}return"other"}function S(e,n){var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=e.messages,u=e.defaultLocale,c=e.defaultFormats,l=r.id,p=r.defaultMessage;L(l,"[React Intl] An `id` must be provided to format a message.");var f=s&&s[l],d=Object.keys(o).length>0;if(!d&&"production"===t.env.NODE_ENV)return f||p||l;var h=void 0;if(f)try{var g=n.getMessageFormat(f,i,a);h=g.format(o)}catch(e){"production"!==t.env.NODE_ENV&&console.error('[React Intl] Error formatting message: "'+l+'" for locale: "'+i+'"'+(p?", using default message as fallback.":"")+("\n"+e))}else"production"!==t.env.NODE_ENV&&(!p||i&&i.toLowerCase()!==u.toLowerCase())&&console.error('[React Intl] Missing message: "'+l+'" for locale: "'+i+'"'+(p?", using default message as fallback.":""));if(!h&&p)try{var m=n.getMessageFormat(p,u,c);h=m.format(o)}catch(e){"production"!==t.env.NODE_ENV&&console.error('[React Intl] Error formatting the default message for: "'+l+'"\n'+e)}return h||"production"!==t.env.NODE_ENV&&console.error('[React Intl] Cannot format message: "'+l+'", '+("using message "+(f||p?"source":"id")+" as fallback.")),h||f||p||l}function O(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],o=Object.keys(r).reduce(function(e,t){var n=r[t];return e[t]="string"==typeof n?u(n):n,e},{});return S(e,t,n,o)}function T(e){var t=Math.abs(e);return t<qe?"second":t<Ze?"minute":t<We?"hour":"day"}function P(e){switch(e){case"second":return Be;case"minute":return qe;case"hour":return Ze;case"day":return We;default:return Ye}}function R(e,t){if(e===t)return!0;var n=new Date(e).getTime(),r=new Date(t).getTime();return isFinite(n)&&isFinite(r)&&n===r}Object.defineProperty(n,"__esModule",{value:!0});var N=o(e("../locale-data/index.js")),A=o(e("intl-messageformat")),M=o(e("intl-relativeformat")),D=e("react"),I=o(D),L=o(e("invariant")),k=o(e("intl-format-cache")),j={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"minute",relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}},F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},V=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),U=function(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),s=a.value}catch(e){return void n(e)}return a.done?void e(s):Promise.resolve(s).then(function(e){return r("next",e)},function(e){return r("throw",e)})}return r("next")})}},z=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},G=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),H=function(e,t){for(var n in t){var r=t[n];r.configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n,r)}return e},B=function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}return e},q=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},Y=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},X=function(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t},K=function(e){return e&&e.__esModule?e:{default:e}},Q=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},$=function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")},J=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")},ee=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},te=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},ne="undefined"==typeof r?self:r,re=function e(t,n,r,o){var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);null!==a&&e(a,n,r,o)}else if("value"in i&&i.writable)i.value=r;else{var s=i.set;void 0!==s&&s.call(o,r)}return r},oe=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ie=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){for(var n,r=[],o=e[Symbol.iterator]();!(n=o.next()).done&&(r.push(n.value),!t||r.length!==t););return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")},ae=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},se=function(e,t){return e.raw=t,e},ue=function(e,t,n){if(e===n)throw new ReferenceError(t+" is not defined - temporal dead zone");return e},ce={},le=function(e){return Array.isArray(e)?e:Array.from(e)},pe=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},fe=Object.freeze({jsx:V,asyncToGenerator:U,classCallCheck:z,createClass:G,defineEnumerableProperties:H,defaults:B,defineProperty:q,get:W,inherits:Y,interopRequireDefault:K,interopRequireWildcard:Q,newArrowCheck:$,objectDestructuringEmpty:J,objectWithoutProperties:ee,possibleConstructorReturn:te,selfGlobal:ne,set:re,slicedToArray:oe,slicedToArrayLoose:ie,taggedTemplateLiteral:ae,taggedTemplateLiteralLoose:se,temporalRef:ue,temporalUndefined:ce,toArray:le,toConsumableArray:pe,typeof:F,extends:Z,instanceof:X}),de=D.PropTypes.bool,he=D.PropTypes.number,ge=D.PropTypes.string,me=D.PropTypes.func,ye=D.PropTypes.object,ve=D.PropTypes.oneOf,_e=D.PropTypes.shape,be={locale:ge,formats:ye,messages:ye,defaultLocale:ge,defaultFormats:ye},Ee={formatDate:me.isRequired,formatTime:me.isRequired,formatRelative:me.isRequired,formatNumber:me.isRequired,formatPlural:me.isRequired,formatMessage:me.isRequired,formatHTMLMessage:me.isRequired},xe=_e(fe.extends({},be,Ee,{formatters:ye,now:me.isRequired})),Ce={id:ge.isRequired,description:ge,defaultMessage:ge},we={localeMatcher:ve(["best fit","lookup"]),formatMatcher:ve(["basic","best fit"]),timeZone:ge,hour12:de,weekday:ve(["narrow","short","long"]),era:ve(["narrow","short","long"]),year:ve(["numeric","2-digit"]),month:ve(["numeric","2-digit","narrow","short","long"]),day:ve(["numeric","2-digit"]),hour:ve(["numeric","2-digit"]),minute:ve(["numeric","2-digit"]),second:ve(["numeric","2-digit"]),timeZoneName:ve(["short","long"])},Se={localeMatcher:ve(["best fit","lookup"]),style:ve(["decimal","currency","percent"]),currency:ge,currencyDisplay:ve(["symbol","code","name"]),useGrouping:de,minimumIntegerDigits:he,minimumFractionDigits:he,maximumFractionDigits:he,minimumSignificantDigits:he,maximumSignificantDigits:he},Oe={style:ve(["best fit","numeric"]),units:ve(["second","minute","hour","day","month","year"])},Te={style:ve(["cardinal","ordinal"])},Pe=Object.keys(be),Re={"&":"&",">":">","<":"<",'"':""","'":"'"},Ne=/[&><"']/g,Ae=function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];z(this,e);var r="ordinal"===n.style,o=y(m(t));this.format=function(e){return o(e,r)}},Me=Object.keys(we),De=Object.keys(Se),Ie=Object.keys(Oe),Le=Object.keys(Te),ke={second:60,minute:60,hour:24,day:30,month:12},je=Object.freeze({formatDate:b,formatTime:E,formatRelative:x,formatNumber:C,formatPlural:w,formatMessage:S,formatHTMLMessage:O}),Fe=Object.keys(be),Ve=Object.keys(Ee),Ue={formats:{},messages:{},defaultLocale:"en",defaultFormats:{}},ze=function(e){function n(e,t){z(this,n);var r=te(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));L("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var o=t.intl,i=void 0;i=isFinite(e.initialNow)?Number(e.initialNow):o?o.now():Date.now();var a=o||{},s=a.formatters,u=void 0===s?{getDateTimeFormat:k(Intl.DateTimeFormat),getNumberFormat:k(Intl.NumberFormat),getMessageFormat:k(A),getRelativeFormat:k(M),getPluralFormat:k(Ae)}:s;return r.state=fe.extends({},u,{now:function(){return r._didDisplay?Date.now():i}}),r}return Y(n,e),G(n,[{key:"getConfig",value:function(){var e=this.context.intl,n=c(this.props,Fe,e);for(var r in Ue)void 0===n[r]&&(n[r]=Ue[r]);if(!a(n.locale)){var o=n,i=o.locale,s=o.defaultLocale,u=o.defaultFormats;"production"!==t.env.NODE_ENV&&console.error('[React Intl] Missing locale data for locale: "'+i+'". '+('Using default locale: "'+s+'" as fallback.')),n=fe.extends({},n,{locale:s,formats:u,messages:Ue.messages})}return n}},{key:"getBoundFormatFns",value:function(e,t){return Ve.reduce(function(n,r){return n[r]=je[r].bind(null,e,t),n},{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,r=n.now,o=ee(n,["now"]);return{intl:fe.extends({},e,t,{formatters:o,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.apply(void 0,[this].concat(t))}},{key:"componentDidMount",value:function(){this._didDisplay=!0}},{key:"render",value:function(){return D.Children.only(this.props.children)}}]),n}(D.Component);ze.displayName="IntlProvider",ze.contextTypes={intl:xe},ze.childContextTypes={intl:xe.isRequired},ze.propTypes=fe.extends({},be,{children:D.PropTypes.element.isRequired,initialNow:D.PropTypes.any});var Ge=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return Y(t,e),G(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatDate,t=this.props,n=t.value,r=t.children,o=e(n,this.props);return"function"==typeof r?r(o):I.createElement("span",null,o)}}]),t}(D.Component);Ge.displayName="FormattedDate",Ge.contextTypes={intl:xe},Ge.propTypes=fe.extends({},we,{value:D.PropTypes.any.isRequired,format:D.PropTypes.string,children:D.PropTypes.func});var He=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return Y(t,e),G(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatTime,t=this.props,n=t.value,r=t.children,o=e(n,this.props);return"function"==typeof r?r(o):I.createElement("span",null,o)}}]),t}(D.Component);He.displayName="FormattedTime",He.contextTypes={intl:xe},He.propTypes=fe.extends({},we,{value:D.PropTypes.any.isRequired,format:D.PropTypes.string,children:D.PropTypes.func});var Be=1e3,qe=6e4,Ze=36e5,We=864e5,Ye=2147483647,Xe=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));l(n);var o=isFinite(e.initialNow)?Number(e.initialNow):n.intl.now();return r.state={now:o},r}return Y(t,e),G(t,[{key:"scheduleNextUpdate",value:function(e,t){var n=this,r=e.updateInterval;if(r){var o=new Date(e.value).getTime(),i=o-t.now,a=e.units||T(i),s=P(a),u=Math.abs(i%s),c=i<0?Math.max(r,s-u):Math.max(r,u);clearTimeout(this._timer),this._timer=setTimeout(function(){n.setState({now:n.context.intl.now()})},c)}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function(e){var t=e.value;R(t,this.props.value)||this.setState({now:this.context.intl.now()})}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.apply(void 0,[this].concat(t))}},{key:"componentWillUpdate",value:function(e,t){this.scheduleNextUpdate(e,t)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}},{key:"render",value:function(){var e=this.context.intl.formatRelative,t=this.props,n=t.value,r=t.children,o=e(n,fe.extends({},this.props,this.state));return"function"==typeof r?r(o):I.createElement("span",null,o)}}]),t}(D.Component);Xe.displayName="FormattedRelative",Xe.contextTypes={intl:xe},Xe.propTypes=fe.extends({},Oe,{value:D.PropTypes.any.isRequired,format:D.PropTypes.string,updateInterval:D.PropTypes.number,initialNow:D.PropTypes.any,children:D.PropTypes.func}),Xe.defaultProps={updateInterval:1e4};var Ke=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return Y(t,e),G(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatNumber,t=this.props,n=t.value,r=t.children,o=e(n,this.props);return"function"==typeof r?r(o):I.createElement("span",null,o)}}]),t}(D.Component);Ke.displayName="FormattedNumber",Ke.contextTypes={intl:xe},Ke.propTypes=fe.extends({},Se,{value:D.PropTypes.any.isRequired,format:D.PropTypes.string,children:D.PropTypes.func});var Qe=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return Y(t,e),G(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatPlural,t=this.props,n=t.value,r=t.other,o=t.children,i=e(n,this.props),a=this.props[i]||r;return"function"==typeof o?o(a):I.createElement("span",null,a)}}]),t}(D.Component);Qe.displayName="FormattedPlural",Qe.contextTypes={intl:xe},Qe.propTypes=fe.extends({},Te,{value:D.PropTypes.any.isRequired,other:D.PropTypes.node.isRequired,zero:D.PropTypes.node,one:D.PropTypes.node,two:D.PropTypes.node,few:D.PropTypes.node,many:D.PropTypes.node,children:D.PropTypes.func}),Qe.defaultProps={style:"cardinal"};var $e=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return Y(t,e),G(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!p(n,t))return!0;for(var r=fe.extends({},e,{values:t}),o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return f.apply(void 0,[this,r].concat(i))}},{key:"render",value:function(){var e=this.context.intl.formatMessage,t=this.props,n=t.id,r=t.description,o=t.defaultMessage,i=t.values,a=t.tagName,s=t.children,u=void 0,c=void 0,l=void 0,p=i&&Object.keys(i).length>0;p&&!function(){var e=Math.floor(1099511627776*Math.random()).toString(16),t=function(){var t=0;return function(){return"ELEMENT-"+e+"-"+(t+=1)}}();u="@__"+e+"__@",c={},l={},Object.keys(i).forEach(function(e){var n=i[e];if(D.isValidElement(n)){var r=t();c[e]=u+r+u,l[r]=n}else c[e]=n})}();var f={id:n,description:r,defaultMessage:o},d=e(f,c||i),h=void 0,g=l&&Object.keys(l).length>0;return h=g?d.split(u).filter(function(e){return!!e}).map(function(e){return l[e]||e}):[d],"function"==typeof s?s.apply(void 0,pe(h)):D.createElement.apply(void 0,[a,null].concat(pe(h)))}}]),t}(D.Component);$e.displayName="FormattedMessage",$e.contextTypes={intl:xe},$e.propTypes=fe.extends({},Ce,{values:D.PropTypes.object,tagName:D.PropTypes.string,children:D.PropTypes.func}),$e.defaultProps={values:{},tagName:"span"};var Je=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return Y(t,e),G(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!p(n,t))return!0;for(var r=fe.extends({},e,{values:t}),o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return f.apply(void 0,[this,r].concat(i))}},{key:"render",value:function(){var e=this.context.intl.formatHTMLMessage,t=this.props,n=t.id,r=t.description,o=t.defaultMessage,i=t.values,a=t.tagName,s=t.children,u={id:n,description:r,defaultMessage:o},c=e(u,i);return"function"==typeof s?s(c):D.createElement(a,{dangerouslySetInnerHTML:{__html:c}})}}]),t}(D.Component);Je.displayName="FormattedHTMLMessage",Je.contextTypes={intl:xe},Je.propTypes=fe.extends({},Ce,{values:D.PropTypes.object,tagName:D.PropTypes.string,children:D.PropTypes.func}),Je.defaultProps={values:{},tagName:"span"},i(j),i(N),n.addLocaleData=i,n.intlShape=xe,n.injectIntl=h,n.defineMessages=g,n.IntlProvider=ze,n.FormattedDate=Ge,n.FormattedTime=He,n.FormattedRelative=Xe,n.FormattedNumber=Ke,n.FormattedPlural=Qe,n.FormattedMessage=$e,n.FormattedHTMLMessage=Je}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../locale-data/index.js":1,_process:2,"intl-format-cache":289,"intl-messageformat":292,"intl-relativeformat":301,invariant:307,react:509}],289:[function(e,t,n){"use strict";n=t.exports=e("./lib/memoizer").default,n.default=n},{"./lib/memoizer":291}],290:[function(e,t,n){"use strict";var r=Function.prototype.bind||function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(r.prototype=this.prototype),o.prototype=new r,o},o=Object.prototype.hasOwnProperty,i=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),a=(!i&&!Object.prototype.__defineGetter__,i?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!o.call(e,t)||"value"in n)&&(e[t]=n.value)}),s=Object.create||function(e,t){function n(){}var r,i;n.prototype=e,r=new n;for(i in t)o.call(t,i)&&a(r,i,t[i]);return r};n.bind=r,n.defineProperty=a,n.objCreate=s},{}],291:[function(e,t,n){"use strict";function r(e){var t=a.objCreate(null);return function(){var n=Array.prototype.slice.call(arguments),r=o(n),i=r&&t[r];return i||(i=new(a.bind.apply(e,[null].concat(n))),r&&(t[r]=i)),i}}function o(e){if("undefined"!=typeof JSON){var t,n,r,o=[];for(t=0,n=e.length;t<n;t+=1)r=e[t],r&&"object"==typeof r?o.push(i(r)):o.push(r);return JSON.stringify(o)}}function i(e){var t,n,r,o,i=[],a=[];for(t in e)e.hasOwnProperty(t)&&a.push(t);var s=a.sort();for(n=0,r=s.length;n<r;n+=1)t=s[n],o={},o[t]=e[t],i[n]=o;return i}var a=e("./es5");n.default=r},{"./es5":290}],292:[function(e,t,n){"use strict";var r=e("./lib/main").default;e("./lib/locales"),n=t.exports=r,n.default=n},{"./lib/locales":1,"./lib/main":297}],293:[function(e,t,n){"use strict";function r(e,t,n){this.locales=e,this.formats=t,this.pluralFn=n}function o(e){this.id=e}function i(e,t,n,r,o){this.id=e,this.useOrdinal=t,this.offset=n,this.options=r,this.pluralFn=o}function a(e,t,n,r){this.id=e,this.offset=t,this.numberFormat=n,this.string=r}function s(e,t){this.id=e,this.options=t}n.default=r,r.prototype.compile=function(e){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(e)},r.prototype.compileMessage=function(e){if(!e||"messageFormatPattern"!==e.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var t,n,r,o=e.elements,i=[];for(t=0,n=o.length;t<n;t+=1)switch(r=o[t],r.type){case"messageTextElement":i.push(this.compileMessageText(r));break;case"argumentElement":i.push(this.compileArgument(r));break;default:throw new Error("Message element does not have a valid type")}return i},r.prototype.compileMessageText=function(e){return this.currentPlural&&/(^|[^\\])#/g.test(e.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new a(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,e.value)):e.value.replace(/\\#/g,"#");
|
21 |
-
},r.prototype.compileArgument=function(e){var t=e.format;if(!t)return new o(e.id);var n,r=this.formats,a=this.locales,u=this.pluralFn;switch(t.type){case"numberFormat":return n=r.number[t.style],{id:e.id,format:new Intl.NumberFormat(a,n).format};case"dateFormat":return n=r.date[t.style],{id:e.id,format:new Intl.DateTimeFormat(a,n).format};case"timeFormat":return n=r.time[t.style],{id:e.id,format:new Intl.DateTimeFormat(a,n).format};case"pluralFormat":return n=this.compileOptions(e),new i(e.id,t.ordinal,t.offset,n,u);case"selectFormat":return n=this.compileOptions(e),new s(e.id,n);default:throw new Error("Message element does not have a valid format type")}},r.prototype.compileOptions=function(e){var t=e.format,n=t.options,r={};this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===t.type?e:null;var o,i,a;for(o=0,i=n.length;o<i;o+=1)a=n[o],r[a.selector]=this.compileMessage(a.value);return this.currentPlural=this.pluralStack.pop(),r},o.prototype.format=function(e){return e?"string"==typeof e?e:String(e):""},i.prototype.getOption=function(e){var t=this.options,n=t["="+e]||t[this.pluralFn(e-this.offset,this.useOrdinal)];return n||t.other},a.prototype.format=function(e){var t=this.numberFormat.format(e-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+t).replace(/\\#/g,"#")},s.prototype.getOption=function(e){var t=this.options;return t[e]||t.other}},{}],294:[function(e,t,n){"use strict";function r(e,t,n){var o="string"==typeof e?r.__parse(e):e;if(!o||"messageFormatPattern"!==o.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(r.formats,n),i.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var a=this._findPluralRuleFunction(this._locale),s=this._compilePattern(o,t,n,a),u=this;this.format=function(e){return u._format(s,e)}}var o=e("./utils"),i=e("./es5"),a=e("./compiler"),s=e("intl-messageformat-parser");n.default=r,i.defineProperty(r,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),i.defineProperty(r,"__localeData__",{value:i.objCreate(null)}),i.defineProperty(r,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");r.__localeData__[e.locale.toLowerCase()]=e}}),i.defineProperty(r,"__parse",{value:s.default.parse}),i.defineProperty(r,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),r.prototype.resolvedOptions=function(){return{locale:this._locale}},r.prototype._compilePattern=function(e,t,n,r){var o=new a.default(t,n,r);return o.compile(e)},r.prototype._findPluralRuleFunction=function(e){for(var t=r.__localeData__,n=t[e.toLowerCase()];n;){if(n.pluralRuleFunction)return n.pluralRuleFunction;n=n.parentLocale&&t[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+e)},r.prototype._format=function(e,t){var n,r,i,a,s,u="";for(n=0,r=e.length;n<r;n+=1)if(i=e[n],"string"!=typeof i){if(a=i.id,!t||!o.hop.call(t,a))throw new Error("A value must be provided for: "+a);s=t[a],u+=i.options?this._format(i.getOption(s),t):i.format(s)}else u+=i;return u},r.prototype._mergeFormats=function(e,t){var n,r,a={};for(n in e)o.hop.call(e,n)&&(a[n]=r=i.objCreate(e[n]),t&&o.hop.call(t,n)&&o.extend(r,t[n]));return a},r.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(r.defaultLocale);var t,n,o,i,a=r.__localeData__;for(t=0,n=e.length;t<n;t+=1)for(o=e[t].toLowerCase().split("-");o.length;){if(i=a[o.join("-")])return i.locale;o.pop()}var s=e.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+e.join(", ")+", or the default locale: "+s)}},{"./compiler":293,"./es5":296,"./utils":298,"intl-messageformat-parser":299}],295:[function(e,t,n){"use strict";n.default={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"}}},{}],296:[function(e,t,n){"use strict";var r=e("./utils"),o=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),i=(!o&&!Object.prototype.__defineGetter__,o?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!r.hop.call(e,t)||"value"in n)&&(e[t]=n.value)}),a=Object.create||function(e,t){function n(){}var o,a;n.prototype=e,o=new n;for(a in t)r.hop.call(t,a)&&i(o,a,t[a]);return o};n.defineProperty=i,n.objCreate=a},{"./utils":298}],297:[function(e,t,n){"use strict";var r=e("./core"),o=e("./en");r.default.__addLocaleData(o.default),r.default.defaultLocale="en",n.default=r.default},{"./core":294,"./en":295}],298:[function(e,t,n){"use strict";function r(e){var t,n,r,i,a=Array.prototype.slice.call(arguments,1);for(t=0,n=a.length;t<n;t+=1)if(r=a[t])for(i in r)o.call(r,i)&&(e[i]=r[i]);return e}n.extend=r;var o=Object.prototype.hasOwnProperty;n.hop=o},{}],299:[function(e,t,n){"use strict";n=t.exports=e("./lib/parser").default,n.default=n},{"./lib/parser":300}],300:[function(e,t,n){"use strict";n.default=function(){function e(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function t(e,t,n,r,o,i){this.message=e,this.expected=t,this.found=n,this.offset=r,this.line=o,this.column=i,this.name="SyntaxError"}function n(e){function n(t){function n(t,n,r){var o,i;for(o=n;o<r;o++)i=e.charAt(o),"\n"===i?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):"\r"===i||"\u2028"===i||"\u2029"===i?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}return Xe!==t&&(Xe>t&&(Xe=0,Ke={line:1,column:1,seenCR:!1}),n(Ke,Xe,t),Xe=t),Ke}function r(e){We<Qe||(We>Qe&&(Qe=We,$e=[]),$e.push(e))}function o(r,o,i){function a(e){var t=1;for(e.sort(function(e,t){return e.description<t.description?-1:e.description>t.description?1:0});t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}function s(e,t){function n(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0180-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1080-\uFFFF]/g,function(e){return"\\u"+t(e)})}var r,o,i,a=new Array(e.length);for(i=0;i<e.length;i++)a[i]=e[i].description;return r=e.length>1?a.slice(0,-1).join(", ")+" or "+a[e.length-1]:a[0],o=t?'"'+n(t)+'"':"end of input","Expected "+r+" but "+o+" found."}var u=n(i),c=i<e.length?e.charAt(i):null;return null!==o&&a(o),new t(null!==r?r:s(o,c),o,c,i,u.line,u.column)}function i(){var e;return e=a()}function a(){var e,t,n;for(e=We,t=[],n=s();n!==N;)t.push(n),n=s();return t!==N&&(Ye=e,t=D(t)),e=t}function s(){var e;return e=c(),e===N&&(e=p()),e}function u(){var t,n,r,o,i,a;if(t=We,n=[],r=We,o=x(),o!==N?(i=T(),i!==N?(a=x(),a!==N?(o=[o,i,a],r=o):(We=r,r=I)):(We=r,r=I)):(We=r,r=I),r!==N)for(;r!==N;)n.push(r),r=We,o=x(),o!==N?(i=T(),i!==N?(a=x(),a!==N?(o=[o,i,a],r=o):(We=r,r=I)):(We=r,r=I)):(We=r,r=I);else n=I;return n!==N&&(Ye=t,n=L(n)),t=n,t===N&&(t=We,n=E(),n!==N&&(n=e.substring(t,We)),t=n),t}function c(){var e,t;return e=We,t=u(),t!==N&&(Ye=e,t=k(t)),e=t}function l(){var t,n,o;if(t=S(),t===N){if(t=We,n=[],j.test(e.charAt(We))?(o=e.charAt(We),We++):(o=N,0===Je&&r(F)),o!==N)for(;o!==N;)n.push(o),j.test(e.charAt(We))?(o=e.charAt(We),We++):(o=N,0===Je&&r(F));else n=I;n!==N&&(n=e.substring(t,We)),t=n}return t}function p(){var t,n,o,i,a,s,u,c,p;return t=We,123===e.charCodeAt(We)?(n=V,We++):(n=N,0===Je&&r(U)),n!==N?(o=x(),o!==N?(i=l(),i!==N?(a=x(),a!==N?(s=We,44===e.charCodeAt(We)?(u=G,We++):(u=N,0===Je&&r(H)),u!==N?(c=x(),c!==N?(p=f(),p!==N?(u=[u,c,p],s=u):(We=s,s=I)):(We=s,s=I)):(We=s,s=I),s===N&&(s=z),s!==N?(u=x(),u!==N?(125===e.charCodeAt(We)?(c=B,We++):(c=N,0===Je&&r(q)),c!==N?(Ye=t,n=Z(i,s),t=n):(We=t,t=I)):(We=t,t=I)):(We=t,t=I)):(We=t,t=I)):(We=t,t=I)):(We=t,t=I)):(We=t,t=I),t}function f(){var e;return e=d(),e===N&&(e=h(),e===N&&(e=g(),e===N&&(e=m()))),e}function d(){var t,n,o,i,a,s,u;return t=We,e.substr(We,6)===W?(n=W,We+=6):(n=N,0===Je&&r(Y)),n===N&&(e.substr(We,4)===X?(n=X,We+=4):(n=N,0===Je&&r(K)),n===N&&(e.substr(We,4)===Q?(n=Q,We+=4):(n=N,0===Je&&r($)))),n!==N?(o=x(),o!==N?(i=We,44===e.charCodeAt(We)?(a=G,We++):(a=N,0===Je&&r(H)),a!==N?(s=x(),s!==N?(u=T(),u!==N?(a=[a,s,u],i=a):(We=i,i=I)):(We=i,i=I)):(We=i,i=I),i===N&&(i=z),i!==N?(Ye=t,n=J(n,i),t=n):(We=t,t=I)):(We=t,t=I)):(We=t,t=I),t}function h(){var t,n,o,i,a,s;return t=We,e.substr(We,6)===ee?(n=ee,We+=6):(n=N,0===Je&&r(te)),n!==N?(o=x(),o!==N?(44===e.charCodeAt(We)?(i=G,We++):(i=N,0===Je&&r(H)),i!==N?(a=x(),a!==N?(s=b(),s!==N?(Ye=t,n=ne(s),t=n):(We=t,t=I)):(We=t,t=I)):(We=t,t=I)):(We=t,t=I)):(We=t,t=I),t}function g(){var t,n,o,i,a,s;return t=We,e.substr(We,13)===re?(n=re,We+=13):(n=N,0===Je&&r(oe)),n!==N?(o=x(),o!==N?(44===e.charCodeAt(We)?(i=G,We++):(i=N,0===Je&&r(H)),i!==N?(a=x(),a!==N?(s=b(),s!==N?(Ye=t,n=ie(s),t=n):(We=t,t=I)):(We=t,t=I)):(We=t,t=I)):(We=t,t=I)):(We=t,t=I),t}function m(){var t,n,o,i,a,s,u;if(t=We,e.substr(We,6)===ae?(n=ae,We+=6):(n=N,0===Je&&r(se)),n!==N)if(o=x(),o!==N)if(44===e.charCodeAt(We)?(i=G,We++):(i=N,0===Je&&r(H)),i!==N)if(a=x(),a!==N){if(s=[],u=v(),u!==N)for(;u!==N;)s.push(u),u=v();else s=I;s!==N?(Ye=t,n=ue(s),t=n):(We=t,t=I)}else We=t,t=I;else We=t,t=I;else We=t,t=I;else We=t,t=I;return t}function y(){var t,n,o,i;return t=We,n=We,61===e.charCodeAt(We)?(o=ce,We++):(o=N,0===Je&&r(le)),o!==N?(i=S(),i!==N?(o=[o,i],n=o):(We=n,n=I)):(We=n,n=I),n!==N&&(n=e.substring(t,We)),t=n,t===N&&(t=T()),t}function v(){var t,n,o,i,s,u,c,l,p;return t=We,n=x(),n!==N?(o=y(),o!==N?(i=x(),i!==N?(123===e.charCodeAt(We)?(s=V,We++):(s=N,0===Je&&r(U)),s!==N?(u=x(),u!==N?(c=a(),c!==N?(l=x(),l!==N?(125===e.charCodeAt(We)?(p=B,We++):(p=N,0===Je&&r(q)),p!==N?(Ye=t,n=pe(o,c),t=n):(We=t,t=I)):(We=t,t=I)):(We=t,t=I)):(We=t,t=I)):(We=t,t=I)):(We=t,t=I)):(We=t,t=I)):(We=t,t=I),t}function _(){var t,n,o,i;return t=We,e.substr(We,7)===fe?(n=fe,We+=7):(n=N,0===Je&&r(de)),n!==N?(o=x(),o!==N?(i=S(),i!==N?(Ye=t,n=he(i),t=n):(We=t,t=I)):(We=t,t=I)):(We=t,t=I),t}function b(){var e,t,n,r,o;if(e=We,t=_(),t===N&&(t=z),t!==N)if(n=x(),n!==N){if(r=[],o=v(),o!==N)for(;o!==N;)r.push(o),o=v();else r=I;r!==N?(Ye=e,t=ge(t,r),e=t):(We=e,e=I)}else We=e,e=I;else We=e,e=I;return e}function E(){var t,n;if(Je++,t=[],ye.test(e.charAt(We))?(n=e.charAt(We),We++):(n=N,0===Je&&r(ve)),n!==N)for(;n!==N;)t.push(n),ye.test(e.charAt(We))?(n=e.charAt(We),We++):(n=N,0===Je&&r(ve));else t=I;return Je--,t===N&&(n=N,0===Je&&r(me)),t}function x(){var t,n,o;for(Je++,t=We,n=[],o=E();o!==N;)n.push(o),o=E();return n!==N&&(n=e.substring(t,We)),t=n,Je--,t===N&&(n=N,0===Je&&r(_e)),t}function C(){var t;return be.test(e.charAt(We))?(t=e.charAt(We),We++):(t=N,0===Je&&r(Ee)),t}function w(){var t;return xe.test(e.charAt(We))?(t=e.charAt(We),We++):(t=N,0===Je&&r(Ce)),t}function S(){var t,n,o,i,a,s;if(t=We,48===e.charCodeAt(We)?(n=we,We++):(n=N,0===Je&&r(Se)),n===N){if(n=We,o=We,Oe.test(e.charAt(We))?(i=e.charAt(We),We++):(i=N,0===Je&&r(Te)),i!==N){for(a=[],s=C();s!==N;)a.push(s),s=C();a!==N?(i=[i,a],o=i):(We=o,o=I)}else We=o,o=I;o!==N&&(o=e.substring(n,We)),n=o}return n!==N&&(Ye=t,n=Pe(n)),t=n}function O(){var t,n,o,i,a,s,u,c;return Re.test(e.charAt(We))?(t=e.charAt(We),We++):(t=N,0===Je&&r(Ne)),t===N&&(t=We,e.substr(We,2)===Ae?(n=Ae,We+=2):(n=N,0===Je&&r(Me)),n!==N&&(Ye=t,n=De()),t=n,t===N&&(t=We,e.substr(We,2)===Ie?(n=Ie,We+=2):(n=N,0===Je&&r(Le)),n!==N&&(Ye=t,n=ke()),t=n,t===N&&(t=We,e.substr(We,2)===je?(n=je,We+=2):(n=N,0===Je&&r(Fe)),n!==N&&(Ye=t,n=Ve()),t=n,t===N&&(t=We,e.substr(We,2)===Ue?(n=Ue,We+=2):(n=N,0===Je&&r(ze)),n!==N&&(Ye=t,n=Ge()),t=n,t===N&&(t=We,e.substr(We,2)===He?(n=He,We+=2):(n=N,0===Je&&r(Be)),n!==N?(o=We,i=We,a=w(),a!==N?(s=w(),s!==N?(u=w(),u!==N?(c=w(),c!==N?(a=[a,s,u,c],i=a):(We=i,i=I)):(We=i,i=I)):(We=i,i=I)):(We=i,i=I),i!==N&&(i=e.substring(o,We)),o=i,o!==N?(Ye=t,n=qe(o),t=n):(We=t,t=I)):(We=t,t=I)))))),t}function T(){var e,t,n;if(e=We,t=[],n=O(),n!==N)for(;n!==N;)t.push(n),n=O();else t=I;return t!==N&&(Ye=e,t=Ze(t)),e=t}var P,R=arguments.length>1?arguments[1]:{},N={},A={start:i},M=i,D=function(e){return{type:"messageFormatPattern",elements:e}},I=N,L=function(e){var t,n,r,o,i,a="";for(t=0,r=e.length;t<r;t+=1)for(o=e[t],n=0,i=o.length;n<i;n+=1)a+=o[n];return a},k=function(e){return{type:"messageTextElement",value:e}},j=/^[^ \t\n\r,.+={}#]/,F={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},V="{",U={type:"literal",value:"{",description:'"{"'},z=null,G=",",H={type:"literal",value:",",description:'","'},B="}",q={type:"literal",value:"}",description:'"}"'},Z=function(e,t){return{type:"argumentElement",id:e,format:t&&t[2]}},W="number",Y={type:"literal",value:"number",description:'"number"'},X="date",K={type:"literal",value:"date",description:'"date"'},Q="time",$={type:"literal",value:"time",description:'"time"'},J=function(e,t){return{type:e+"Format",style:t&&t[2]}},ee="plural",te={type:"literal",value:"plural",description:'"plural"'},ne=function(e){return{type:e.type,ordinal:!1,offset:e.offset||0,options:e.options}},re="selectordinal",oe={type:"literal",value:"selectordinal",description:'"selectordinal"'},ie=function(e){return{type:e.type,ordinal:!0,offset:e.offset||0,options:e.options}},ae="select",se={type:"literal",value:"select",description:'"select"'},ue=function(e){return{type:"selectFormat",options:e}},ce="=",le={type:"literal",value:"=",description:'"="'},pe=function(e,t){return{type:"optionalFormatPattern",selector:e,value:t}},fe="offset:",de={type:"literal",value:"offset:",description:'"offset:"'},he=function(e){return e},ge=function(e,t){return{type:"pluralFormat",offset:e,options:t}},me={type:"other",description:"whitespace"},ye=/^[ \t\n\r]/,ve={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},_e={type:"other",description:"optionalWhitespace"},be=/^[0-9]/,Ee={type:"class",value:"[0-9]",description:"[0-9]"},xe=/^[0-9a-f]/i,Ce={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},we="0",Se={type:"literal",value:"0",description:'"0"'},Oe=/^[1-9]/,Te={type:"class",value:"[1-9]",description:"[1-9]"},Pe=function(e){return parseInt(e,10)},Re=/^[^{}\\\0-\x1F \t\n\r]/,Ne={type:"class",value:"[^{}\\\\\\0-\\x1F \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F \\t\\n\\r]"},Ae="\\\\",Me={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},De=function(){return"\\"},Ie="\\#",Le={type:"literal",value:"\\#",description:'"\\\\#"'},ke=function(){return"\\#"},je="\\{",Fe={type:"literal",value:"\\{",description:'"\\\\{"'},Ve=function(){return"{"},Ue="\\}",ze={type:"literal",value:"\\}",description:'"\\\\}"'},Ge=function(){return"}"},He="\\u",Be={type:"literal",value:"\\u",description:'"\\\\u"'},qe=function(e){return String.fromCharCode(parseInt(e,16))},Ze=function(e){return e.join("")},We=0,Ye=0,Xe=0,Ke={line:1,column:1,seenCR:!1},Qe=0,$e=[],Je=0;if("startRule"in R){if(!(R.startRule in A))throw new Error("Can't start parsing from rule \""+R.startRule+'".');M=A[R.startRule]}if(P=M(),P!==N&&We===e.length)return P;throw P!==N&&We<e.length&&r({type:"end",description:"end of input"}),o(null,$e,Qe)}return e(t,Error),{SyntaxError:t,parse:n}}()},{}],301:[function(e,t,n){"use strict";var r=e("./lib/main").default;e("./lib/locales"),n=t.exports=r,n.default=n},{"./lib/locales":1,"./lib/main":306}],302:[function(e,t,n){"use strict";function r(e,t){t=t||{},a.isArray(e)&&(e=e.concat()),a.defineProperty(this,"_locale",{value:this._resolveLocale(e)}),a.defineProperty(this,"_options",{value:{style:this._resolveStyle(t.style),units:this._isValidUnits(t.units)&&t.units}}),a.defineProperty(this,"_locales",{value:e}),a.defineProperty(this,"_fields",{value:this._findFields(this._locale)}),a.defineProperty(this,"_messages",{value:a.objCreate(null)});var n=this;this.format=function(e,t){return n._format(e,t)}}var o=e("intl-messageformat"),i=e("./diff"),a=e("./es5");n.default=r;var s=["second","minute","hour","day","month","year"],u=["best fit","numeric"];a.defineProperty(r,"__localeData__",{value:a.objCreate(null)}),a.defineProperty(r,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlRelativeFormat is missing a `locale` property value");r.__localeData__[e.locale.toLowerCase()]=e,o.default.__addLocaleData(e)}}),a.defineProperty(r,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),a.defineProperty(r,"thresholds",{enumerable:!0,value:{second:45,minute:45,hour:22,day:26,month:11}}),r.prototype.resolvedOptions=function(){return{locale:this._locale,style:this._options.style,units:this._options.units}},r.prototype._compileMessage=function(e){var t,n=this._locales,r=(this._locale,this._fields[e]),i=r.relativeTime,a="",s="";for(t in i.future)i.future.hasOwnProperty(t)&&(a+=" "+t+" {"+i.future[t].replace("{0}","#")+"}");for(t in i.past)i.past.hasOwnProperty(t)&&(s+=" "+t+" {"+i.past[t].replace("{0}","#")+"}");var u="{when, select, future {{0, plural, "+a+"}}past {{0, plural, "+s+"}}}";return new o.default(u,n)},r.prototype._getMessage=function(e){var t=this._messages;return t[e]||(t[e]=this._compileMessage(e)),t[e]},r.prototype._getRelativeUnits=function(e,t){var n=this._fields[t];if(n.relative)return n.relative[e]},r.prototype._findFields=function(e){for(var t=r.__localeData__,n=t[e.toLowerCase()];n;){if(n.fields)return n.fields;n=n.parentLocale&&t[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlRelativeFormat is missing `fields` for :"+e)},r.prototype._format=function(e,t){var n=t&&void 0!==t.now?t.now:a.dateNow();if(void 0===e&&(e=n),!isFinite(n))throw new RangeError("The `now` option provided to IntlRelativeFormat#format() is not in valid range.");if(!isFinite(e))throw new RangeError("The date value provided to IntlRelativeFormat#format() is not in valid range.");var r=i.default(n,e),o=this._options.units||this._selectUnits(r),s=r[o];if("numeric"!==this._options.style){var u=this._getRelativeUnits(s,o);if(u)return u}return this._getMessage(o).format({0:Math.abs(s),when:s<0?"past":"future"})},r.prototype._isValidUnits=function(e){if(!e||a.arrIndexOf.call(s,e)>=0)return!0;if("string"==typeof e){var t=/s$/.test(e)&&e.substr(0,e.length-1);if(t&&a.arrIndexOf.call(s,t)>=0)throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+t)}throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+s.join('", "')+'"')},r.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(r.defaultLocale);var t,n,o,i,a=r.__localeData__;for(t=0,n=e.length;t<n;t+=1)for(o=e[t].toLowerCase().split("-");o.length;){if(i=a[o.join("-")])return i.locale;o.pop()}var s=e.pop();throw new Error("No locale data has been added to IntlRelativeFormat for: "+e.join(", ")+", or the default locale: "+s)},r.prototype._resolveStyle=function(e){if(!e)return u[0];if(a.arrIndexOf.call(u,e)>=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+u.join('", "')+'"')},r.prototype._selectUnits=function(e){var t,n,o;for(t=0,n=s.length;t<n&&(o=s[t],!(Math.abs(e[o])<r.thresholds[o]));t+=1);return o}},{"./diff":303,"./es5":305,"intl-messageformat":292}],303:[function(e,t,n){"use strict";function r(e){return 400*e/146097}var o=Math.round;n.default=function(e,t){e=+e,t=+t;var n=o(t-e),i=o(n/1e3),a=o(i/60),s=o(a/60),u=o(s/24),c=o(u/7),l=r(u),p=o(12*l),f=o(l);return{millisecond:n,second:i,minute:a,hour:s,day:u,week:c,month:p,year:f}}},{}],304:[function(e,t,n){"use strict";n.default={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"minute",relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}}},{}],305:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),a=(!i&&!Object.prototype.__defineGetter__,i?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!r.call(e,t)||"value"in n)&&(e[t]=n.value)}),s=Object.create||function(e,t){function n(){}var o,i;n.prototype=e,o=new n;for(i in t)r.call(t,i)&&a(o,i,t[i]);return o},u=Array.prototype.indexOf||function(e,t){var n=this;if(!n.length)return-1;for(var r=t||0,o=n.length;r<o;r++)if(n[r]===e)return r;return-1},c=Array.isArray||function(e){return"[object Array]"===o.call(e)},l=Date.now||function(){return(new Date).getTime()};n.defineProperty=a,n.objCreate=s,n.arrIndexOf=u,n.isArray=c,n.dateNow=l},{}],306:[function(e,t,n){arguments[4][297][0].apply(n,arguments)},{"./core":302,"./en":304,dup:297}],307:[function(e,t,n){(function(e){"use strict";var n=function(t,n,r,o,i,a,s,u){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,s,u],p=0;c=new Error(n.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=n}).call(this,e("_process"))},{_process:2}],308:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(){d||(d=!0,(0,f.default)("<Provider> does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/reactjs/react-redux/releases/tag/v2.0.0 for the migration instructions."))}n.__esModule=!0,n.default=void 0;var u=e("react"),c=e("../utils/storeShape"),l=r(c),p=e("../utils/warning"),f=r(p),d=!1,h=function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r));return a.store=n.store,a}return a(t,e),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){var e=this.props.children;return u.Children.only(e)},t}(u.Component);n.default=h,"production"!==t.env.NODE_ENV&&(h.prototype.componentWillReceiveProps=function(e){var t=this.store,n=e.store;t!==n&&s()}),h.propTypes={store:l.default.isRequired,children:u.PropTypes.element.isRequired},h.childContextTypes={store:l.default.isRequired}}).call(this,e("_process"))},{"../utils/storeShape":312,"../utils/warning":313,_process:2,react:509}],309:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e.displayName||e.name||"Component"}function u(e,t){try{return e.apply(t)}catch(e){return R.value=e,R}}function c(e,n,r){var c=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],f=Boolean(e),h=e||O,m=void 0;m="function"==typeof n?n:n?(0,y.default)(n):T;var v=r||P,b=c.pure,x=void 0===b||b,w=c.withRef,A=void 0!==w&&w,M=x&&v!==P,D=N++;return function(e){function n(e,t){(0,E.default)(e)||(0,_.default)(t+"() in "+c+" must return a plain object. "+("Instead received "+e+"."))}function r(e,r,o){var i=v(e,r,o);return"production"!==t.env.NODE_ENV&&n(i,"mergeProps"),i}var c="Connect("+s(e)+")",y=function(s){function d(e,t){o(this,d);var n=i(this,s.call(this,e,t));n.version=D,n.store=e.store||t.store,(0,S.default)(n.store,'Could not find "store" in either the context or '+('props of "'+c+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+c+'".'));var r=n.store.getState();return n.state={storeState:r},n.clearCache(),n}return a(d,s),d.prototype.shouldComponentUpdate=function(){return!x||this.haveOwnPropsChanged||this.hasStoreStateChanged},d.prototype.computeStateProps=function(e,r){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,r);var o=e.getState(),i=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(o,r):this.finalMapStateToProps(o);return"production"!==t.env.NODE_ENV&&n(i,"mapStateToProps"),i},d.prototype.configureFinalMapState=function(e,r){var o=h(e.getState(),r),i="function"==typeof o;return this.finalMapStateToProps=i?o:h,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,i?this.computeStateProps(e,r):("production"!==t.env.NODE_ENV&&n(o,"mapStateToProps"),o)},d.prototype.computeDispatchProps=function(e,r){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,r);var o=e.dispatch,i=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(o,r):this.finalMapDispatchToProps(o);return"production"!==t.env.NODE_ENV&&n(i,"mapDispatchToProps"),i},d.prototype.configureFinalMapDispatch=function(e,r){var o=m(e.dispatch,r),i="function"==typeof o;return this.finalMapDispatchToProps=i?o:m,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,i?this.computeDispatchProps(e,r):("production"!==t.env.NODE_ENV&&n(o,"mapDispatchToProps"),o)},d.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,g.default)(e,this.stateProps))&&(this.stateProps=e,!0)},d.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,g.default)(e,this.dispatchProps))&&(this.dispatchProps=e,!0)},d.prototype.updateMergedPropsIfNeeded=function(){var e=r(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&M&&(0,g.default)(e,this.mergedProps))&&(this.mergedProps=e,!0)},d.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},d.prototype.trySubscribe=function(){f&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},d.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},d.prototype.componentDidMount=function(){this.trySubscribe()},d.prototype.componentWillReceiveProps=function(e){x&&(0,g.default)(e,this.props)||(this.haveOwnPropsChanged=!0)},d.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},d.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},d.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!x||t!==e){if(x&&!this.doStatePropsDependOnOwnProps){var n=u(this.updateStatePropsIfNeeded,this);if(!n)return;n===R&&(this.statePropsPrecalculationError=R.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},d.prototype.getWrappedInstance=function(){return(0,S.default)(A,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},d.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,r=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,i=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var a=!0,s=!0;x&&i&&(a=n||t&&this.doStatePropsDependOnOwnProps,s=t&&this.doDispatchPropsDependOnOwnProps);var u=!1,c=!1;r?u=!0:a&&(u=this.updateStatePropsIfNeeded()),s&&(c=this.updateDispatchPropsIfNeeded());var f=!0;return f=!!(u||c||t)&&this.updateMergedPropsIfNeeded(),!f&&i?i:(A?this.renderedElement=(0,p.createElement)(e,l({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,p.createElement)(e,this.mergedProps),this.renderedElement)},d}(p.Component);return y.displayName=c,y.WrappedComponent=e,y.contextTypes={store:d.default},y.propTypes={store:d.default},"production"!==t.env.NODE_ENV&&(y.prototype.componentWillUpdate=function(){this.version!==D&&(this.version=D,this.trySubscribe(),this.clearCache())}),(0,C.default)(y,e)}}var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n.__esModule=!0,n.default=c;var p=e("react"),f=e("../utils/storeShape"),d=r(f),h=e("../utils/shallowEqual"),g=r(h),m=e("../utils/wrapActionCreators"),y=r(m),v=e("../utils/warning"),_=r(v),b=e("lodash/isPlainObject"),E=r(b),x=e("hoist-non-react-statics"),C=r(x),w=e("invariant"),S=r(w),O=function(e){return{}},T=function(e){return{dispatch:e}},P=function(e,t,n){return l({},n,e,t)},R={value:null},N=0}).call(this,e("_process"))},{"../utils/shallowEqual":311,"../utils/storeShape":312,"../utils/warning":313,"../utils/wrapActionCreators":314,_process:2,"hoist-non-react-statics":315,invariant:316,"lodash/isPlainObject":321,react:509}],310:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.connect=n.Provider=void 0;var o=e("./components/Provider"),i=r(o),a=e("./components/connect"),s=r(a);n.Provider=i.default,n.connect=s.default},{"./components/Provider":308,"./components/connect":309
|
22 |
-
}],311:[function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<n.length;i++)if(!o.call(t,n[i])||e[n[i]]!==t[n[i]])return!1;return!0}n.__esModule=!0,n.default=r},{}],312:[function(e,t,n){"use strict";n.__esModule=!0;var r=e("react");n.default=r.PropTypes.shape({subscribe:r.PropTypes.func.isRequired,dispatch:r.PropTypes.func.isRequired,getState:r.PropTypes.func.isRequired})},{react:509}],313:[function(e,t,n){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}n.__esModule=!0,n.default=r},{}],314:[function(e,t,n){"use strict";function r(e){return function(t){return(0,o.bindActionCreators)(e,t)}}n.__esModule=!0,n.default=r;var o=e("redux")},{redux:518}],315:[function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},i="function"==typeof Object.getOwnPropertySymbols;t.exports=function(e,t,n){if("string"!=typeof t){var a=Object.getOwnPropertyNames(t);i&&(a=a.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;++s)if(!(r[a[s]]||o[a[s]]||n&&n[a[s]]))try{e[a[s]]=t[a[s]]}catch(e){}}return e}},{}],316:[function(e,t,n){(function(e){"use strict";var n=function(t,n,r,o,i,a,s,u){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,s,u],p=0;c=new Error(n.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=n}).call(this,e("_process"))},{_process:2}],317:[function(e,t,n){var r=e("./_overArg"),o=r(Object.getPrototypeOf,Object);t.exports=o},{"./_overArg":319}],318:[function(e,t,n){arguments[4][228][0].apply(n,arguments)},{dup:228}],319:[function(e,t,n){arguments[4][35][0].apply(n,arguments)},{dup:35}],320:[function(e,t,n){arguments[4][44][0].apply(n,arguments)},{dup:44}],321:[function(e,t,n){function r(e){if(!a(e)||d.call(e)!=s||i(e))return!1;var t=o(e);if(null===t)return!0;var n=p.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==f}var o=e("./_getPrototype"),i=e("./_isHostObject"),a=e("./isObjectLike"),s="[object Object]",u=Function.prototype,c=Object.prototype,l=u.toString,p=c.hasOwnProperty,f=l.call(Object),d=c.toString;t.exports=r},{"./_getPrototype":317,"./_isHostObject":318,"./isObjectLike":320}],322:[function(e,t,n){"use strict";function r(e,t,n){function r(){a=!0,n.apply(this,arguments)}function o(){a||(i<e?t.call(this,i++,o,r):r.apply(this,arguments))}var i=0,a=!1;o()}function o(e,t,n){function r(e,t,r){a||(t?(a=!0,n(t)):(i[e]=r,a=++s===o,a&&n(null,i)))}var o=e.length,i=[];if(0===o)return n(null,i);var a=!1,s=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}n.__esModule=!0,n.loopAsync=r,n.mapAsync=o},{}],323:[function(e,t,n){"use strict";n.__esModule=!0;var r=e("./PropTypes"),o={contextTypes:{history:r.history},componentWillMount:function(){this.history=this.context.history}};n.default=o,t.exports=n.default},{"./PropTypes":330}],324:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=e("react"),u=r(s),c=e("./Link"),l=r(c),p=function(e){function t(){o(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.render=function(){return u.default.createElement(l.default,a({},this.props,{onlyActiveOnIndex:!0}))},t}(s.Component);n.default=p,t.exports=n.default},{"./Link":328,react:509}],325:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("warning"),u=o(s),c=e("invariant"),l=o(c),p=e("react"),f=o(p),d=e("./Redirect"),h=o(d),g=e("./PropTypes"),m=f.default.PropTypes,y=m.string,v=m.object,_=function(e){function t(){i(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){"production"!==r.env.NODE_ENV?l.default(!1,"<IndexRedirect> elements are for router configuration only and should not be rendered"):l.default(!1)},t}(p.Component);_.propTypes={to:y.isRequired,query:v,state:v,onEnter:g.falsy,children:g.falsy},_.createRouteFromReactElement=function(e,t){t?t.indexRoute=h.default.createRouteFromReactElement(e):"production"!==r.env.NODE_ENV?u.default(!1,"An <IndexRedirect> does not make sense at the root of your route config"):void 0},n.default=_,t.exports=n.default}).call(this,e("_process"))},{"./PropTypes":330,"./Redirect":331,_process:2,invariant:346,react:509,warning:347}],326:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("warning"),u=o(s),c=e("invariant"),l=o(c),p=e("react"),f=o(p),d=e("./RouteUtils"),h=e("./PropTypes"),g=f.default.PropTypes.func,m=function(e){function t(){i(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){"production"!==r.env.NODE_ENV?l.default(!1,"<IndexRoute> elements are for router configuration only and should not be rendered"):l.default(!1)},t}(p.Component);m.propTypes={path:h.falsy,component:h.component,components:h.components,getComponent:g,getComponents:g},m.createRouteFromReactElement=function(e,t){t?t.indexRoute=d.createRouteFromReactElement(e):"production"!==r.env.NODE_ENV?u.default(!1,"An <IndexRoute> does not make sense at the root of your route config"):void 0},n.default=m,t.exports=n.default}).call(this,e("_process"))},{"./PropTypes":330,"./RouteUtils":334,_process:2,invariant:346,react:509,warning:347}],327:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0;var i=e("react"),a=o(i),s=e("invariant"),u=o(s),c=a.default.PropTypes.object,l={contextTypes:{history:c.isRequired,route:c},propTypes:{route:c},componentDidMount:function(){this.routerWillLeave?void 0:"production"!==r.env.NODE_ENV?u.default(!1,"The Lifecycle mixin requires you to define a routerWillLeave method"):u.default(!1);var e=this.props.route||this.context.route;e?void 0:"production"!==r.env.NODE_ENV?u.default(!1,"The Lifecycle mixin must be used on either a) a <Route component> or b) a descendant of a <Route component> that uses the RouteContext mixin"):u.default(!1),this._unlistenBeforeLeavingRoute=this.context.history.listenBeforeLeavingRoute(e,this.routerWillLeave)},componentWillUnmount:function(){this._unlistenBeforeLeavingRoute&&this._unlistenBeforeLeavingRoute()}};n.default=l,t.exports=n.default}).call(this,e("_process"))},{_process:2,invariant:346,react:509}],328:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return 0===e.button}function u(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function c(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}n.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=e("react"),f=r(p),d=f.default.PropTypes,h=d.bool,g=d.object,m=d.string,y=d.func,v=function(e){function t(){i(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.handleClick=function(e){var t=!0;if(this.props.onClick&&this.props.onClick(e),!u(e)&&s(e)){if(e.defaultPrevented===!0&&(t=!1),this.props.target)return void(t||e.preventDefault());if(e.preventDefault(),t){var n=this.props,r=n.state,o=n.to,i=n.query,a=n.hash;a&&(o+=a),this.context.history.pushState(r,o,i)}}},t.prototype.render=function(){var e=this,t=this.props,n=t.to,r=t.query,i=t.hash,a=(t.state,t.activeClassName),s=t.activeStyle,u=t.onlyActiveOnIndex,p=o(t,["to","query","hash","state","activeClassName","activeStyle","onlyActiveOnIndex"]);p.onClick=function(t){return e.handleClick(t)};var d=this.context.history;return d&&(p.href=d.createHref(n,r),i&&(p.href+=i),(a||null!=s&&!c(s))&&d.isActive(n,r,u)&&(a&&(p.className+=""===p.className?a:" "+a),s&&(p.style=l({},p.style,s)))),f.default.createElement("a",p)},t}(p.Component);v.contextTypes={history:g},v.propTypes={to:m.isRequired,query:g,hash:m,state:g,activeStyle:g,activeClassName:m,onlyActiveOnIndex:h.isRequired,onClick:y},v.defaultProps={onlyActiveOnIndex:!1,className:"",style:{}},n.default=v,t.exports=n.default},{react:509}],329:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i(e){return o(e).replace(/\/+/g,"/+")}function a(e){for(var t="",n=[],r=[],o=void 0,a=0,s=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;o=s.exec(e);)o.index!==a&&(r.push(e.slice(a,o.index)),t+=i(e.slice(a,o.index))),o[1]?(t+="([^/?#]+)",n.push(o[1])):"**"===o[0]?(t+="([\\s\\S]*)",n.push("splat")):"*"===o[0]?(t+="([\\s\\S]*?)",n.push("splat")):"("===o[0]?t+="(?:":")"===o[0]&&(t+=")?"),r.push(o[0]),a=s.lastIndex;return a!==e.length&&(r.push(e.slice(a,e.length)),t+=i(e.slice(a,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:r}}function s(e){return e in h||(h[e]=a(e)),h[e]}function u(e,t){"/"!==e.charAt(0)&&(e="/"+e),"/"!==t.charAt(0)&&(t="/"+t);var n=s(e),r=n.regexpSource,o=n.paramNames,i=n.tokens;r+="/*";var a="*"!==i[i.length-1];a&&(r+="([\\s\\S]*?)");var u=t.match(new RegExp("^"+r+"$","i")),c=void 0,l=void 0;if(null!=u){if(a){c=u.pop();var p=u[0].substr(0,u[0].length-c.length);if(c&&"/"!==p.charAt(p.length-1))return{remainingPathname:null,paramNames:o,paramValues:null}}else c="";l=u.slice(1).map(function(e){return null!=e?decodeURIComponent(e):e})}else c=l=null;return{remainingPathname:c,paramNames:o,paramValues:l}}function c(e){return s(e).paramNames}function l(e,t){var n=u(e,t),r=n.paramNames,o=n.paramValues;return null!=o?r.reduce(function(e,t,n){return e[t]=o[n],e},{}):null}function p(e,n){n=n||{};for(var r=s(e),o=r.tokens,i=0,a="",u=0,c=void 0,l=void 0,p=void 0,f=0,h=o.length;f<h;++f)c=o[f],"*"===c||"**"===c?(p=Array.isArray(n.splat)?n.splat[u++]:n.splat,null!=p||i>0?void 0:"production"!==t.env.NODE_ENV?d.default(!1,'Missing splat #%s for path "%s"',u,e):d.default(!1),null!=p&&(a+=encodeURI(p))):"("===c?i+=1:")"===c?i-=1:":"===c.charAt(0)?(l=c.substring(1),p=n[l],null!=p||i>0?void 0:"production"!==t.env.NODE_ENV?d.default(!1,'Missing "%s" parameter for path "%s"',l,e):d.default(!1),null!=p&&(a+=encodeURIComponent(p))):a+=c;return a.replace(/\/+/g,"/")}n.__esModule=!0,n.compilePattern=s,n.matchPattern=u,n.getParamNames=c,n.getParams=l,n.formatPattern=p;var f=e("invariant"),d=r(f),h={}}).call(this,e("_process"))},{_process:2,invariant:346}],330:[function(e,t,n){"use strict";function r(e,t,n){if(e[t])return new Error("<"+n+'> should not have a "'+t+'" prop')}n.__esModule=!0,n.falsy=r;var o=e("react"),i=o.PropTypes.func,a=o.PropTypes.object,s=o.PropTypes.arrayOf,u=o.PropTypes.oneOfType,c=o.PropTypes.element,l=o.PropTypes.shape,p=o.PropTypes.string,f=l({listen:i.isRequired,pushState:i.isRequired,replaceState:i.isRequired,go:i.isRequired});n.history=f;var d=l({pathname:p.isRequired,search:p.isRequired,state:a,action:p.isRequired,key:p});n.location=d;var h=u([i,p]);n.component=h;var g=u([h,a]);n.components=g;var m=u([a,c]);n.route=m;var y=u([m,s(m)]);n.routes=y,n.default={falsy:r,history:f,location:d,component:h,components:g,route:m}},{react:509}],331:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("invariant"),u=o(s),c=e("react"),l=o(c),p=e("./RouteUtils"),f=e("./PatternUtils"),d=e("./PropTypes"),h=l.default.PropTypes,g=h.string,m=h.object,y=function(e){function t(){i(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){"production"!==r.env.NODE_ENV?u.default(!1,"<Redirect> elements are for router configuration only and should not be rendered"):u.default(!1)},t}(c.Component);y.createRouteFromReactElement=function(e){var t=p.createRouteFromReactElement(e);return t.from&&(t.path=t.from),t.onEnter=function(e,n){var r=e.location,o=e.params,i=void 0;if("/"===t.to.charAt(0))i=f.formatPattern(t.to,o);else if(t.to){var a=e.routes.indexOf(t),s=y.getRoutePattern(e.routes,a-1),u=s.replace(/\/*$/,"/")+t.to;i=f.formatPattern(u,o)}else i=r.pathname;n(t.state||r.state,i,t.query||r.query)},t},y.getRoutePattern=function(e,t){for(var n="",r=t;r>=0;r--){var o=e[r],i=o.path||"";if(n=i.replace(/\/*$/,"/")+n,0===i.indexOf("/"))break}return"/"+n},y.propTypes={path:g,from:g,to:g.isRequired,query:m,state:m,onEnter:d.falsy,children:d.falsy},n.default=y,t.exports=n.default}).call(this,e("_process"))},{"./PatternUtils":329,"./PropTypes":330,"./RouteUtils":334,_process:2,invariant:346,react:509}],332:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("invariant"),u=o(s),c=e("react"),l=o(c),p=e("./RouteUtils"),f=e("./PropTypes"),d=l.default.PropTypes,h=d.string,g=d.func,m=function(e){function t(){i(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){"production"!==r.env.NODE_ENV?u.default(!1,"<Route> elements are for router configuration only and should not be rendered"):u.default(!1)},t}(c.Component);m.createRouteFromReactElement=p.createRouteFromReactElement,m.propTypes={path:h,component:f.component,components:f.components,getComponent:g,getComponents:g},n.default=m,t.exports=n.default}).call(this,e("_process"))},{"./PropTypes":330,"./RouteUtils":334,_process:2,invariant:346,react:509}],333:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0;var o=e("react"),i=r(o),a=i.default.PropTypes.object,s={propTypes:{route:a.isRequired},childContextTypes:{route:a.isRequired},getChildContext:function(){return{route:this.props.route}}};n.default=s,t.exports=n.default},{react:509}],334:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return null==e||d.default.isValidElement(e)}function i(e){return o(e)||Array.isArray(e)&&e.every(o)}function a(e,n,r){e=e||"UnknownComponent";for(var o in n)if(n.hasOwnProperty(o)){var i=n[o](r,o,e);i instanceof Error&&("production"!==t.env.NODE_ENV?g.default(!1,i.message):void 0)}}function s(e,t){return p({},e,t)}function u(e){var t=e.type,n=s(t.defaultProps,e.props);if(t.propTypes&&a(t.displayName||t.name,t.propTypes,n),n.children){var r=c(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function c(e,t){var n=[];return d.default.Children.forEach(e,function(e){if(d.default.isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(u(e))}),n}function l(e){return i(e)?e=c(e):e&&!Array.isArray(e)&&(e=[e]),e}n.__esModule=!0;var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n.isReactChildren=i,n.createRouteFromReactElement=u,n.createRoutesFromReactChildren=c,n.createRoutes=l;var f=e("react"),d=r(f),h=e("warning"),g=r(h)}).call(this,e("_process"))},{_process:2,react:509,warning:347}],335:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=e("warning"),l=o(c),p=e("react"),f=o(p),d=e("history/lib/createHashHistory"),h=o(d),g=e("./RouteUtils"),m=e("./RoutingContext"),y=o(m),v=e("./useRoutes"),_=o(v),b=e("./PropTypes"),E=f.default.PropTypes,x=E.func,C=E.object,w=function(e){function t(n,r){a(this,t),e.call(this,n,r),this.state={location:null,routes:null,params:null,components:null}}return s(t,e),t.prototype.handleError=function(e){if(!this.props.onError)throw e;this.props.onError.call(this,e)},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.history,r=t.children,o=t.routes,i=t.parseQueryString,a=t.stringifyQuery,s=n?function(){return n}:h.default;this.history=_.default(s)({routes:g.createRoutes(o||r),parseQueryString:i,stringifyQuery:a}),this._unlisten=this.history.listen(function(t,n){t?e.handleError(t):e.setState(n,e.props.onUpdate)})},t.prototype.componentWillReceiveProps=function(e){"production"!==r.env.NODE_ENV?l.default(e.history===this.props.history,"You cannot change <Router history>; it will be ignored"):void 0,"production"!==r.env.NODE_ENV?l.default((e.routes||e.children)===(this.props.routes||this.props.children),"You cannot change <Router routes>; it will be ignored"):void 0},t.prototype.componentWillUnmount=function(){this._unlisten&&this._unlisten()},t.prototype.render=function(){var e=this.state,n=e.location,r=e.routes,o=e.params,a=e.components,s=this.props,c=s.RoutingContext,l=s.createElement,p=i(s,["RoutingContext","createElement"]);return null==n?null:(Object.keys(t.propTypes).forEach(function(e){return delete p[e]}),f.default.createElement(c,u({},p,{history:this.history,createElement:l,location:n,routes:r,params:o,components:a})))},t}(p.Component);w.propTypes={history:C,children:b.routes,routes:b.routes,RoutingContext:x.isRequired,createElement:x,onError:x,onUpdate:x,parseQueryString:x,stringifyQuery:x},w.defaultProps={RoutingContext:y.default},n.default=w,t.exports=n.default}).call(this,e("_process"))},{"./PropTypes":330,"./RouteUtils":334,"./RoutingContext":336,"./useRoutes":345,_process:2,"history/lib/createHashHistory":167,react:509,warning:347}],336:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=e("invariant"),c=o(u),l=e("react"),p=o(l),f=e("./RouteUtils"),d=e("./getRouteParams"),h=o(d),g=p.default.PropTypes,m=g.array,y=g.func,v=g.object,_=function(e){function t(){i(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.history,n=e.location;return{history:t,location:n}},t.prototype.createElement=function(e,t){return null==e?null:this.props.createElement(e,t)},t.prototype.render=function(){var e=this,t=this.props,n=t.history,o=t.location,i=t.routes,a=t.params,u=t.components,l=null;return u&&(l=u.reduceRight(function(t,r,u){if(null==r)return t;var c=i[u],l=h.default(c,a),p={history:n,location:o,params:a,route:c,routeParams:l,routes:i};if(f.isReactChildren(t))p.children=t;else if(t)for(var d in t)t.hasOwnProperty(d)&&(p[d]=t[d]);if("object"==typeof r){var g={};for(var m in r)r.hasOwnProperty(m)&&(g[m]=e.createElement(r[m],s({key:m},p)));return g}return e.createElement(r,p)},l)),null===l||l===!1||p.default.isValidElement(l)?void 0:"production"!==r.env.NODE_ENV?c.default(!1,"The root route must render a single element"):c.default(!1),l},t}(l.Component);_.propTypes={history:v.isRequired,createElement:y.isRequired,location:v.isRequired,routes:m.isRequired,params:v.isRequired,components:m.isRequired},_.defaultProps={createElement:p.default.createElement},_.childContextTypes={history:v.isRequired,location:v.isRequired},n.default=_,t.exports=n.default}).call(this,e("_process"))},{"./RouteUtils":334,"./getRouteParams":340,_process:2,invariant:346,react:509}],337:[function(e,t,n){"use strict";function r(e,t){return function(n,r,o){e.apply(t,arguments),e.length<3&&o()}}function o(e){return e.reduce(function(e,t){return t.onEnter&&e.push(r(t.onEnter,t)),e},[])}function i(e,t,n){function r(e,t,n){a={pathname:t,query:n,state:e}}var i=o(e);if(!i.length)return void n();var a=void 0;s.loopAsync(i.length,function(e,n,o){i[e](t,r,function(e){e||a?o(e,a):n()})},n)}function a(e){for(var t=0,n=e.length;t<n;++t)e[t].onLeave&&e[t].onLeave.call(e[t])}n.__esModule=!0,n.runEnterHooks=i,n.runLeaveHooks=a;var s=e("./AsyncUtils")},{"./AsyncUtils":322}],338:[function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=i.getParamNames(e.path);return r.some(function(e){return t.params[e]!==n.params[e]})}function o(e,t){var n=e&&e.routes,o=t.routes,i=void 0,a=void 0;return n?(i=n.filter(function(n){return o.indexOf(n)===-1||r(n,e,t)}),i.reverse(),a=o.filter(function(e){return n.indexOf(e)===-1||i.indexOf(e)!==-1})):(i=[],a=o),{leaveRoutes:i,enterRoutes:a}}n.__esModule=!0;var i=e("./PatternUtils");n.default=o,t.exports=n.default},{"./PatternUtils":329}],339:[function(e,t,n){"use strict";function r(e,t,n){t.component||t.components?n(null,t.component||t.components):t.getComponent?t.getComponent(e,n):t.getComponents?t.getComponents(e,n):n()}function o(e,t){i.mapAsync(e.routes,function(t,n,o){r(e.location,t,o)},t)}n.__esModule=!0;var i=e("./AsyncUtils");n.default=o,t.exports=n.default},{"./AsyncUtils":322}],340:[function(e,t,n){"use strict";function r(e,t){var n={};if(!e.path)return n;var r=o.getParamNames(e.path);for(var i in t)t.hasOwnProperty(i)&&r.indexOf(i)!==-1&&(n[i]=t[i]);return n}n.__esModule=!0;var o=e("./PatternUtils");n.default=r,t.exports=n.default},{"./PatternUtils":329}],341:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0;var o=e("./Router"),i=r(o);n.Router=i.default;var a=e("./Link"),s=r(a);n.Link=s.default;var u=e("./IndexLink"),c=r(u);n.IndexLink=c.default;var l=e("./IndexRedirect"),p=r(l);n.IndexRedirect=p.default;var f=e("./IndexRoute"),d=r(f);n.IndexRoute=d.default;var h=e("./Redirect"),g=r(h);n.Redirect=g.default;var m=e("./Route"),y=r(m);n.Route=y.default;var v=e("./History"),_=r(v);n.History=_.default;var b=e("./Lifecycle"),E=r(b);n.Lifecycle=E.default;var x=e("./RouteContext"),C=r(x);n.RouteContext=C.default;var w=e("./useRoutes"),S=r(w);n.useRoutes=S.default;var O=e("./RouteUtils");n.createRoutes=O.createRoutes;var T=e("./RoutingContext"),P=r(T);n.RoutingContext=P.default;var R=e("./PropTypes"),N=r(R);n.PropTypes=N.default;var A=e("./match"),M=r(A);n.match=M.default;var D=r(o);n.default=D.default},{"./History":323,"./IndexLink":324,"./IndexRedirect":325,"./IndexRoute":326,"./Lifecycle":327,"./Link":328,"./PropTypes":330,"./Redirect":331,"./Route":332,"./RouteContext":333,"./RouteUtils":334,"./Router":335,"./RoutingContext":336,"./match":343,"./useRoutes":345}],342:[function(e,t,n){"use strict";function r(e,t){if(e==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});if("object"==typeof e){for(var n in e)if(e.hasOwnProperty(n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!t.hasOwnProperty(n))return!1;if(!r(e[n],t[n]))return!1}return!0}return String(e)===String(t)}function o(e,t,n){return e.every(function(e,r){return String(t[r])===String(n[e])})}function i(e,t,n){for(var r=e,i=[],a=[],s=0,u=t.length;s<u;++s){var l=t[s],p=l.path||"";if("/"===p.charAt(0)&&(r=e,i=[],a=[]),null!==r){var f=c.matchPattern(p,r);r=f.remainingPathname,i=[].concat(i,f.paramNames),a=[].concat(a,f.paramValues)}if(""===r&&l.path&&o(i,a,n))return s}return null}function a(e,t,n,r){var o=i(e,t,n);return null!==o&&(!r||t.slice(o+1).every(function(e){return!e.path}))}function s(e,t){return null==t?null==e:null==e||r(e,t)}function u(e,t,n,r,o,i){return null!=r&&(!!a(e,o,i,n)&&s(t,r.query))}n.__esModule=!0;var c=e("./PatternUtils");n.default=u,t.exports=n.default},{"./PatternUtils":329}],343:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=e.routes,o=e.location,i=e.parseQueryString,s=e.stringifyQuery,c=e.basename;o?void 0:"production"!==r.env.NODE_ENV?u.default(!1,"match needs a location"):u.default(!1);var l=m({routes:d.createRoutes(n),parseQueryString:i,stringifyQuery:s,basename:c});"string"==typeof o&&(o=l.createLocation(o)),l.match(o,function(e,n,r){t(e,n,r&&a({},r,{history:l}))})}n.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=e("invariant"),u=o(s),c=e("history/lib/createMemoryHistory"),l=o(c),p=e("history/lib/useBasename"),f=o(p),d=e("./RouteUtils"),h=e("./useRoutes"),g=o(h),m=g.default(f.default(l.default));n.default=i,t.exports=n.default}).call(this,e("_process"))},{"./RouteUtils":334,"./useRoutes":345,_process:2,"history/lib/createMemoryHistory":170,"history/lib/useBasename":175,invariant:346}],344:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){e.childRoutes?n(null,e.childRoutes):e.getChildRoutes?e.getChildRoutes(t,function(e,t){n(e,!e&&g.createRoutes(t))}):n()}function a(e,t,n){e.indexRoute?n(null,e.indexRoute):e.getIndexRoute?e.getIndexRoute(t,function(e,t){n(e,!e&&g.createRoutes(t)[0])}):e.childRoutes?!function(){var r=e.childRoutes.filter(function(e){return!e.hasOwnProperty("path")});d.loopAsync(r.length,function(e,n,o){a(r[e],t,function(t,i){if(t||i){var a=[r[e]].concat(Array.isArray(i)?i:[i]);o(t,a)}else n()})},function(e,t){n(null,t)})}():n()}function s(e,t,n){return t.reduce(function(e,t,r){var o=n&&n[r];return Array.isArray(e[t])?e[t].push(o):t in e?e[t]=[e[t],o]:e[t]=o,e},e)}function u(e,t){return s({},e,t)}function c(e,t,n,o,s,c){var p=e.path||"";if("/"===p.charAt(0)&&(n=t.pathname,o=[],s=[]),null!==n){var d=h.matchPattern(p,n);if(n=d.remainingPathname,o=[].concat(o,d.paramNames),s=[].concat(s,d.paramValues),""===n&&e.path){var g=function(){var n={routes:[e],params:u(o,s)};return a(e,t,function(e,t){if(e)c(e);else{if(Array.isArray(t)){var o;"production"!==r.env.NODE_ENV?f.default(t.every(function(e){return!e.path}),"Index routes should not have paths"):void 0,(o=n.routes).push.apply(o,t)}else t&&("production"!==r.env.NODE_ENV?f.default(!t.path,"Index routes should not have paths"):void 0,n.routes.push(t));c(null,n)}}),{v:void 0}}();if("object"==typeof g)return g.v}}null!=n||e.childRoutes?i(e,t,function(r,i){r?c(r):i?l(i,t,function(t,n){t?c(t):n?(n.routes.unshift(e),c(null,n)):c()},n,o,s):c()}):c()}function l(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?t.pathname:arguments[3],o=arguments.length<=4||void 0===arguments[4]?[]:arguments[4],i=arguments.length<=5||void 0===arguments[5]?[]:arguments[5];return function(){d.loopAsync(e.length,function(n,a,s){c(e[n],t,r,o,i,function(e,t){e||t?s(e,t):a()})},n)}()}n.__esModule=!0;var p=e("warning"),f=o(p),d=e("./AsyncUtils"),h=e("./PatternUtils"),g=e("./RouteUtils");n.default=l,t.exports=n.default}).call(this,e("_process"))},{"./AsyncUtils":322,"./PatternUtils":329,"./RouteUtils":334,_process:2,warning:347}],345:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){for(var t in e)if(e.hasOwnProperty(t))return!0;return!1}function s(e){return function(){function t(e,t){var n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2];return v.default(e,t,n,T.location,T.routes,T.params)}function n(e){var t=e.pathname,n=e.query,r=e.state;return O.createLocation(O.createPath(t,n),r,p.REPLACE)}function o(e,t){P&&P.location===e?s(P,t):x.default(w,e,function(n,r){n?t(n):r?s(u({},r,{location:e}),t):t()})}function s(e,t){var r=g.default(T,e),o=r.leaveRoutes,i=r.enterRoutes;m.runLeaveHooks(o),m.runEnterHooks(i,e,function(r,o){r?t(r):o?t(null,n(o)):b.default(e,function(n,r){n?t(n):t(null,null,T=u({},e,{components:r}))})})}function c(e){return e.__id__||(e.__id__=R++)}function f(e){return e.reduce(function(e,t){return e.push.apply(e,N[c(t)]),e},[])}function h(e,t){x.default(w,e,function(n,r){if(null==r)return void t();P=u({},r,{location:e});for(var o=f(g.default(T,P).leaveRoutes),i=void 0,a=0,s=o.length;null==i&&a<s;++a)i=o[a](e);t(i)})}function y(){if(T.routes){for(var e=f(T.routes),t=void 0,n=0,r=e.length;"string"!=typeof t&&n<r;++n)t=e[n]();return t}}function _(e,t){var n=c(e),r=N[n];if(null==r){var o=!a(N);r=N[n]=[t],o&&(A=O.listenBefore(h),O.listenBeforeUnload&&(M=O.listenBeforeUnload(y)))}else r.indexOf(t)===-1&&r.push(t);return function(){var e=N[n];if(null!=e){var r=e.filter(function(e){return e!==t});0===r.length?(delete N[n],a(N)||(A&&(A(),A=null),M&&(M(),
|
23 |
-
M=null))):N[n]=r}}}function E(e){return O.listen(function(t){T.location===t?e(null,T):o(t,function(n,o,i){n?e(n):o?O.transitionTo(o):i?e(null,i):"production"!==r.env.NODE_ENV?l.default(!1,'Location "%s" did not match any routes',t.pathname+t.search+t.hash):void 0})})}var C=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],w=C.routes,S=i(C,["routes"]),O=d.default(e)(S),T={},P=void 0,R=1,N={},A=void 0,M=void 0;return u({},O,{isActive:t,match:o,listenBeforeLeavingRoute:_,listen:E})}}n.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=e("warning"),l=o(c),p=e("history/lib/Actions"),f=e("history/lib/useQueries"),d=o(f),h=e("./computeChangedRoutes"),g=o(h),m=e("./TransitionUtils"),y=e("./isActive"),v=o(y),_=e("./getComponents"),b=o(_),E=e("./matchRoutes"),x=o(E);n.default=s,t.exports=n.default}).call(this,e("_process"))},{"./TransitionUtils":337,"./computeChangedRoutes":338,"./getComponents":339,"./isActive":342,"./matchRoutes":344,_process:2,"history/lib/Actions":161,"history/lib/useQueries":176,warning:347}],346:[function(e,t,n){(function(e){"use strict";var n=function(t,n,r,o,i,a,s,u){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,s,u],p=0;c=new Error(n.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=n}).call(this,e("_process"))},{_process:2}],347:[function(e,t,n){(function(e){"use strict";var n=function(){};"production"!==e.env.NODE_ENV&&(n=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}}),t.exports=n}).call(this,e("_process"))},{_process:2}],348:[function(e,t,n){"use strict";var r=e("./ReactMount"),o=e("./findDOMNode"),i=e("fbjs/lib/focusNode"),a={componentDidMount:function(){this.props.autoFocus&&i(o(this))}},s={Mixin:a,focusDOMComponent:function(){i(r.getNode(this._rootNodeID))}};t.exports=s},{"./ReactMount":414,"./findDOMNode":460,"fbjs/lib/focusNode":491}],349:[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 P.topCompositionStart:return R.compositionStart;case P.topCompositionEnd:return R.compositionEnd;case P.topCompositionUpdate:return R.compositionUpdate}}function a(e,t){return e===P.topKeyDown&&t.keyCode===E}function s(e,t){switch(e){case P.topKeyUp:return b.indexOf(t.keyCode)!==-1;case P.topKeyDown:return t.keyCode!==E;case P.topKeyPress:case P.topMouseDown:case P.topBlur:return!0;default:return!1}}function u(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function c(e,t,n,r,o){var c,l;if(x?c=i(e):A?s(e,r)&&(c=R.compositionEnd):a(e,r)&&(c=R.compositionStart),!c)return null;S&&(A||c!==R.compositionStart?c===R.compositionEnd&&A&&(l=A.getData()):A=m.getPooled(t));var p=y.getPooled(c,n,r,o);if(l)p.data=l;else{var f=u(r);null!==f&&(p.data=f)}return h.accumulateTwoPhaseDispatches(p),p}function l(e,t){switch(e){case P.topCompositionEnd:return u(t);case P.topKeyPress:var n=t.which;return n!==O?null:(N=!0,T);case P.topTextInput:var r=t.data;return r===T&&N?null:r;default:return null}}function p(e,t){if(A){if(e===P.topCompositionEnd||s(e,t)){var n=A.getData();return m.release(A),A=null,n}return null}switch(e){case P.topPaste:return null;case P.topKeyPress:return t.which&&!o(t)?String.fromCharCode(t.which):null;case P.topCompositionEnd:return S?null:t.data;default:return null}}function f(e,t,n,r,o){var i;if(i=w?l(e,r):p(e,r),!i)return null;var a=v.getPooled(R.beforeInput,n,r,o);return a.data=i,h.accumulateTwoPhaseDispatches(a),a}var d=e("./EventConstants"),h=e("./EventPropagators"),g=e("fbjs/lib/ExecutionEnvironment"),m=e("./FallbackCompositionState"),y=e("./SyntheticCompositionEvent"),v=e("./SyntheticInputEvent"),_=e("fbjs/lib/keyOf"),b=[9,13,27,32],E=229,x=g.canUseDOM&&"CompositionEvent"in window,C=null;g.canUseDOM&&"documentMode"in document&&(C=document.documentMode);var w=g.canUseDOM&&"TextEvent"in window&&!C&&!r(),S=g.canUseDOM&&(!x||C&&C>8&&C<=11),O=32,T=String.fromCharCode(O),P=d.topLevelTypes,R={beforeInput:{phasedRegistrationNames:{bubbled:_({onBeforeInput:null}),captured:_({onBeforeInputCapture:null})},dependencies:[P.topCompositionEnd,P.topKeyPress,P.topTextInput,P.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:_({onCompositionEnd:null}),captured:_({onCompositionEndCapture:null})},dependencies:[P.topBlur,P.topCompositionEnd,P.topKeyDown,P.topKeyPress,P.topKeyUp,P.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:_({onCompositionStart:null}),captured:_({onCompositionStartCapture:null})},dependencies:[P.topBlur,P.topCompositionStart,P.topKeyDown,P.topKeyPress,P.topKeyUp,P.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:_({onCompositionUpdate:null}),captured:_({onCompositionUpdateCapture:null})},dependencies:[P.topBlur,P.topCompositionUpdate,P.topKeyDown,P.topKeyPress,P.topKeyUp,P.topMouseDown]}},N=!1,A=null,M={eventTypes:R,extractEvents:function(e,t,n,r,o){return[c(e,t,n,r,o),f(e,t,n,r,o)]}};t.exports=M},{"./EventConstants":361,"./EventPropagators":365,"./FallbackCompositionState":366,"./SyntheticCompositionEvent":442,"./SyntheticInputEvent":446,"fbjs/lib/ExecutionEnvironment":483,"fbjs/lib/keyOf":501}],350:[function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!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:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!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},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},s={isUnitlessNumber:o,shorthandPropertyExpansions:a};t.exports=s},{}],351:[function(e,t,n){(function(n){"use strict";var r=e("./CSSProperty"),o=e("fbjs/lib/ExecutionEnvironment"),i=e("./ReactPerf"),a=e("fbjs/lib/camelizeStyleName"),s=e("./dangerousStyleValue"),u=e("fbjs/lib/hyphenateStyleName"),c=e("fbjs/lib/memoizeStringOnly"),l=e("fbjs/lib/warning"),p=c(function(e){return u(e)}),f=!1,d="cssFloat";if(o.canUseDOM){var h=document.createElement("div").style;try{h.font=""}catch(e){f=!0}void 0===document.documentElement.style.cssFloat&&(d="styleFloat")}if("production"!==n.env.NODE_ENV)var g=/^(?:webkit|moz|o)[A-Z]/,m=/;\s*$/,y={},v={},_=function(e){y.hasOwnProperty(e)&&y[e]||(y[e]=!0,"production"!==n.env.NODE_ENV?l(!1,"Unsupported style property %s. Did you mean %s?",e,a(e)):void 0)},b=function(e){y.hasOwnProperty(e)&&y[e]||(y[e]=!0,"production"!==n.env.NODE_ENV?l(!1,"Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)):void 0)},E=function(e,t){v.hasOwnProperty(t)&&v[t]||(v[t]=!0,"production"!==n.env.NODE_ENV?l(!1,'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',e,t.replace(m,"")):void 0)},x=function(e,t){e.indexOf("-")>-1?_(e):g.test(e)?b(e):m.test(t)&&E(e,t)};var C={createMarkupForStyles:function(e){var t="";for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];"production"!==n.env.NODE_ENV&&x(r,o),null!=o&&(t+=p(r)+":",t+=s(r,o)+";")}return t||null},setValueForStyles:function(e,t){var o=e.style;for(var i in t)if(t.hasOwnProperty(i)){"production"!==n.env.NODE_ENV&&x(i,t[i]);var a=s(i,t[i]);if("float"===i&&(i=d),a)o[i]=a;else{var u=f&&r.shorthandPropertyExpansions[i];if(u)for(var c in u)o[c]="";else o[i]=""}}}};i.measureMethods(C,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),t.exports=C}).call(this,e("_process"))},{"./CSSProperty":350,"./ReactPerf":420,"./dangerousStyleValue":457,_process:2,"fbjs/lib/ExecutionEnvironment":483,"fbjs/lib/camelizeStyleName":485,"fbjs/lib/hyphenateStyleName":496,"fbjs/lib/memoizeStringOnly":503,"fbjs/lib/warning":508}],352:[function(e,t,n){(function(n){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=e("./PooledClass"),i=e("./Object.assign"),a=e("fbjs/lib/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){e.length!==t.length?"production"!==n.env.NODE_ENV?a(!1,"Mismatched list of contexts in callback queue"):a(!1):void 0,this._callbacks=null,this._contexts=null;for(var r=0;r<e.length;r++)e[r].call(t[r]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(r),t.exports=r}).call(this,e("_process"))},{"./Object.assign":369,"./PooledClass":370,_process:2,"fbjs/lib/invariant":497}],353:[function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function o(e){var t=C.getPooled(R.change,A,e,w(e));b.accumulateTwoPhaseDispatches(t),x.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){N=e,A=t,N.attachEvent("onchange",o)}function s(){N&&(N.detachEvent("onchange",o),N=null,A=null)}function u(e,t,n){if(e===P.topChange)return n}function c(e,t,n){e===P.topFocus?(s(),a(t,n)):e===P.topBlur&&s()}function l(e,t){N=e,A=t,M=e.value,D=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(N,"value",k),N.attachEvent("onpropertychange",f)}function p(){N&&(delete N.value,N.detachEvent("onpropertychange",f),N=null,A=null,M=null,D=null)}function f(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,o(e))}}function d(e,t,n){if(e===P.topInput)return n}function h(e,t,n){e===P.topFocus?(p(),l(t,n)):e===P.topBlur&&p()}function g(e,t,n){if((e===P.topSelectionChange||e===P.topKeyUp||e===P.topKeyDown)&&N&&N.value!==M)return M=N.value,A}function m(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function y(e,t,n){if(e===P.topClick)return n}var v=e("./EventConstants"),_=e("./EventPluginHub"),b=e("./EventPropagators"),E=e("fbjs/lib/ExecutionEnvironment"),x=e("./ReactUpdates"),C=e("./SyntheticEvent"),w=e("./getEventTarget"),S=e("./isEventSupported"),O=e("./isTextInputElement"),T=e("fbjs/lib/keyOf"),P=v.topLevelTypes,R={change:{phasedRegistrationNames:{bubbled:T({onChange:null}),captured:T({onChangeCapture:null})},dependencies:[P.topBlur,P.topChange,P.topClick,P.topFocus,P.topInput,P.topKeyDown,P.topKeyUp,P.topSelectionChange]}},N=null,A=null,M=null,D=null,I=!1;E.canUseDOM&&(I=S("change")&&(!("documentMode"in document)||document.documentMode>8));var L=!1;E.canUseDOM&&(L=S("input")&&(!("documentMode"in document)||document.documentMode>9));var k={get:function(){return D.get.call(this)},set:function(e){M=""+e,D.set.call(this,e)}},j={eventTypes:R,extractEvents:function(e,t,n,o,i){var a,s;if(r(t)?I?a=u:s=c:O(t)?L?a=d:(a=g,s=h):m(t)&&(a=y),a){var l=a(e,t,n);if(l){var p=C.getPooled(R.change,l,o,i);return p.type="change",b.accumulateTwoPhaseDispatches(p),p}}s&&s(e,t,n)}};t.exports=j},{"./EventConstants":361,"./EventPluginHub":362,"./EventPropagators":365,"./ReactUpdates":435,"./SyntheticEvent":444,"./getEventTarget":466,"./isEventSupported":471,"./isTextInputElement":472,"fbjs/lib/ExecutionEnvironment":483,"fbjs/lib/keyOf":501}],354:[function(e,t,n){"use strict";var r=0,o={createReactRootIndex:function(){return r++}};t.exports=o},{}],355:[function(e,t,n){(function(n){"use strict";function r(e,t,n){var r=n>=e.childNodes.length?null:e.childNodes.item(n);e.insertBefore(t,r)}var o=e("./Danger"),i=e("./ReactMultiChildUpdateTypes"),a=e("./ReactPerf"),s=e("./setInnerHTML"),u=e("./setTextContent"),c=e("fbjs/lib/invariant"),l={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:u,processUpdates:function(e,t){for(var a,l=null,p=null,f=0;f<e.length;f++)if(a=e[f],a.type===i.MOVE_EXISTING||a.type===i.REMOVE_NODE){var d=a.fromIndex,h=a.parentNode.childNodes[d],g=a.parentID;h?void 0:"production"!==n.env.NODE_ENV?c(!1,"processUpdates(): Unable to find child %s of element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID `%s`.",d,g):c(!1),l=l||{},l[g]=l[g]||[],l[g][d]=h,p=p||[],p.push(h)}var m;if(m=t.length&&"string"==typeof t[0]?o.dangerouslyRenderMarkup(t):t,p)for(var y=0;y<p.length;y++)p[y].parentNode.removeChild(p[y]);for(var v=0;v<e.length;v++)switch(a=e[v],a.type){case i.INSERT_MARKUP:r(a.parentNode,m[a.markupIndex],a.toIndex);break;case i.MOVE_EXISTING:r(a.parentNode,l[a.parentID][a.fromIndex],a.toIndex);break;case i.SET_MARKUP:s(a.parentNode,a.content);break;case i.TEXT_CONTENT:u(a.parentNode,a.content);break;case i.REMOVE_NODE:}}};a.measureMethods(l,"DOMChildrenOperations",{updateTextContent:"updateTextContent"}),t.exports=l}).call(this,e("_process"))},{"./Danger":358,"./ReactMultiChildUpdateTypes":416,"./ReactPerf":420,"./setInnerHTML":476,"./setTextContent":477,_process:2,"fbjs/lib/invariant":497}],356:[function(e,t,n){(function(n){"use strict";function r(e,t){return(e&t)===t}var o=e("fbjs/lib/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=i,a=e.Properties||{},u=e.DOMAttributeNamespaces||{},c=e.DOMAttributeNames||{},l=e.DOMPropertyNames||{},p=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var f in a){s.properties.hasOwnProperty(f)?"production"!==n.env.NODE_ENV?o(!1,"injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",f):o(!1):void 0;var d=f.toLowerCase(),h=a[f],g={attributeName:d,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseAttribute:r(h,t.MUST_USE_ATTRIBUTE),mustUseProperty:r(h,t.MUST_USE_PROPERTY),hasSideEffects:r(h,t.HAS_SIDE_EFFECTS),hasBooleanValue:r(h,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(h,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(h,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(h,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(g.mustUseAttribute&&g.mustUseProperty?"production"!==n.env.NODE_ENV?o(!1,"DOMProperty: Cannot require using both attribute and property: %s",f):o(!1):void 0,!g.mustUseProperty&&g.hasSideEffects?"production"!==n.env.NODE_ENV?o(!1,"DOMProperty: Properties that have side effects must use property: %s",f):o(!1):void 0,g.hasBooleanValue+g.hasNumericValue+g.hasOverloadedBooleanValue<=1?void 0:"production"!==n.env.NODE_ENV?o(!1,"DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",f):o(!1),"production"!==n.env.NODE_ENV&&(s.getPossibleStandardName[d]=f),c.hasOwnProperty(f)){var m=c[f];g.attributeName=m,"production"!==n.env.NODE_ENV&&(s.getPossibleStandardName[m]=f)}u.hasOwnProperty(f)&&(g.attributeNamespace=u[f]),l.hasOwnProperty(f)&&(g.propertyName=l[f]),p.hasOwnProperty(f)&&(g.mutationMethod=p[f]),s.properties[f]=g}}},a={},s={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:"production"!==n.env.NODE_ENV?{}:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,r=a[e];return r||(a[e]=r={}),t in r||(n=document.createElement(e),r[t]=n[t]),r[t]},injection:i};t.exports=s}).call(this,e("_process"))},{_process:2,"fbjs/lib/invariant":497}],357:[function(e,t,n){(function(n){"use strict";function r(e){return!!p.hasOwnProperty(e)||!l.hasOwnProperty(e)&&(c.test(e)?(p[e]=!0,!0):(l[e]=!0,"production"!==n.env.NODE_ENV?u(!1,"Invalid attribute name: `%s`",e):void 0,!1))}function o(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&t<1||e.hasOverloadedBooleanValue&&t===!1}var i=e("./DOMProperty"),a=e("./ReactPerf"),s=e("./quoteAttributeValueForBrowser"),u=e("fbjs/lib/warning"),c=/^[a-zA-Z_][\w\.\-]*$/,l={},p={};if("production"!==n.env.NODE_ENV)var f={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0},d={},h=function(e){if(!(f.hasOwnProperty(e)&&f[e]||d.hasOwnProperty(e)&&d[e])){d[e]=!0;var t=e.toLowerCase(),r=i.isCustomAttribute(t)?t:i.getPossibleStandardName.hasOwnProperty(t)?i.getPossibleStandardName[t]:null;"production"!==n.env.NODE_ENV?u(null==r,"Unknown DOM property %s. Did you mean %s?",e,r):void 0}};var g={createMarkupForID:function(e){return i.ID_ATTRIBUTE_NAME+"="+s(e)},setAttributeForID:function(e,t){e.setAttribute(i.ID_ATTRIBUTE_NAME,t)},createMarkupForProperty:function(e,t){var r=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(r){if(o(r,t))return"";var a=r.attributeName;return r.hasBooleanValue||r.hasOverloadedBooleanValue&&t===!0?a+'=""':a+"="+s(t)}return i.isCustomAttribute(e)?null==t?"":e+"="+s(t):("production"!==n.env.NODE_ENV&&h(e),null)},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+s(t):""},setValueForProperty:function(e,t,r){var a=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(a){var s=a.mutationMethod;if(s)s(e,r);else if(o(a,r))this.deleteValueForProperty(e,t);else if(a.mustUseAttribute){var u=a.attributeName,c=a.attributeNamespace;c?e.setAttributeNS(c,u,""+r):a.hasBooleanValue||a.hasOverloadedBooleanValue&&r===!0?e.setAttribute(u,""):e.setAttribute(u,""+r)}else{var l=a.propertyName;a.hasSideEffects&&""+e[l]==""+r||(e[l]=r)}}else i.isCustomAttribute(t)?g.setValueForAttribute(e,t,r):"production"!==n.env.NODE_ENV&&h(t)},setValueForAttribute:function(e,t,n){r(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){var r=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(r){var o=r.mutationMethod;if(o)o(e,void 0);else if(r.mustUseAttribute)e.removeAttribute(r.attributeName);else{var a=r.propertyName,s=i.getDefaultValueForProperty(e.nodeName,a);r.hasSideEffects&&""+e[a]===s||(e[a]=s)}}else i.isCustomAttribute(t)?e.removeAttribute(t):"production"!==n.env.NODE_ENV&&h(t)}};a.measureMethods(g,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),t.exports=g}).call(this,e("_process"))},{"./DOMProperty":356,"./ReactPerf":420,"./quoteAttributeValueForBrowser":474,_process:2,"fbjs/lib/warning":508}],358:[function(e,t,n){(function(n){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=e("fbjs/lib/ExecutionEnvironment"),i=e("fbjs/lib/createNodesFromMarkup"),a=e("fbjs/lib/emptyFunction"),s=e("fbjs/lib/getMarkupWrap"),u=e("fbjs/lib/invariant"),c=/^(<[^ \/>]+)/,l="data-danger-index",p={dangerouslyRenderMarkup:function(e){o.canUseDOM?void 0:"production"!==n.env.NODE_ENV?u(!1,"dangerouslyRenderMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString for server rendering."):u(!1);for(var t,p={},f=0;f<e.length;f++)e[f]?void 0:"production"!==n.env.NODE_ENV?u(!1,"dangerouslyRenderMarkup(...): Missing markup."):u(!1),t=r(e[f]),t=s(t)?t:"*",p[t]=p[t]||[],p[t][f]=e[f];var d=[],h=0;for(t in p)if(p.hasOwnProperty(t)){var g,m=p[t];for(g in m)if(m.hasOwnProperty(g)){var y=m[g];m[g]=y.replace(c,"$1 "+l+'="'+g+'" ')}for(var v=i(m.join(""),a),_=0;_<v.length;++_){var b=v[_];b.hasAttribute&&b.hasAttribute(l)?(g=+b.getAttribute(l),b.removeAttribute(l),d.hasOwnProperty(g)?"production"!==n.env.NODE_ENV?u(!1,"Danger: Assigning to an already-occupied result index."):u(!1):void 0,d[g]=b,h+=1):"production"!==n.env.NODE_ENV&&console.error("Danger: Discarding unexpected node:",b)}}return h!==d.length?"production"!==n.env.NODE_ENV?u(!1,"Danger: Did not assign to every index of resultList."):u(!1):void 0,d.length!==e.length?"production"!==n.env.NODE_ENV?u(!1,"Danger: Expected markup to render %s nodes, but rendered %s.",e.length,d.length):u(!1):void 0,d},dangerouslyReplaceNodeWithMarkup:function(e,t){o.canUseDOM?void 0:"production"!==n.env.NODE_ENV?u(!1,"dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering."):u(!1),t?void 0:"production"!==n.env.NODE_ENV?u(!1,"dangerouslyReplaceNodeWithMarkup(...): Missing markup."):u(!1),"html"===e.tagName.toLowerCase()?"production"!==n.env.NODE_ENV?u(!1,"dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString()."):u(!1):void 0;var r;r="string"==typeof t?i(t,a)[0]:t,e.parentNode.replaceChild(r,e)}};t.exports=p}).call(this,e("_process"))},{_process:2,"fbjs/lib/ExecutionEnvironment":483,"fbjs/lib/createNodesFromMarkup":488,"fbjs/lib/emptyFunction":489,"fbjs/lib/getMarkupWrap":493,"fbjs/lib/invariant":497}],359:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyOf"),o=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null})];t.exports=o},{"fbjs/lib/keyOf":501}],360:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./EventPropagators"),i=e("./SyntheticMouseEvent"),a=e("./ReactMount"),s=e("fbjs/lib/keyOf"),u=r.topLevelTypes,c=a.getFirstReactDOM,l={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[u.topMouseOut,u.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[u.topMouseOut,u.topMouseOver]}},p=[null,null],f={eventTypes:l,extractEvents:function(e,t,n,r,s){if(e===u.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(e!==u.topMouseOut&&e!==u.topMouseOver)return null;var f;if(t.window===t)f=t;else{var d=t.ownerDocument;f=d?d.defaultView||d.parentWindow:window}var h,g,m="",y="";if(e===u.topMouseOut?(h=t,m=n,g=c(r.relatedTarget||r.toElement),g?y=a.getID(g):g=f,g=g||f):(h=f,g=t,y=n),h===g)return null;var v=i.getPooled(l.mouseLeave,m,r,s);v.type="mouseleave",v.target=h,v.relatedTarget=g;var _=i.getPooled(l.mouseEnter,y,r,s);return _.type="mouseenter",_.target=g,_.relatedTarget=h,o.accumulateEnterLeaveDispatches(v,_,m,y),p[0]=v,p[1]=_,p}};t.exports=f},{"./EventConstants":361,"./EventPropagators":365,"./ReactMount":414,"./SyntheticMouseEvent":448,"fbjs/lib/keyOf":501}],361:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyMirror"),o=r({bubbled:null,captured:null}),i=r({topAbort:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topVolumeChange:null,topWaiting:null,topWheel:null}),a={topLevelTypes:i,PropagationPhases:o};t.exports=a},{"fbjs/lib/keyMirror":500}],362:[function(e,t,n){(function(n){"use strict";function r(){var e=m&&m.traverseTwoPhase&&m.traverseEnterLeave;"production"!==n.env.NODE_ENV?l(e,"InstanceHandle not injected before use!"):void 0}var o=e("./EventPluginRegistry"),i=e("./EventPluginUtils"),a=e("./ReactErrorUtils"),s=e("./accumulateInto"),u=e("./forEachAccumulated"),c=e("fbjs/lib/invariant"),l=e("fbjs/lib/warning"),p={},f=null,d=function(e,t){e&&(i.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},h=function(e){return d(e,!0)},g=function(e){return d(e,!1)},m=null,y={injection:{injectMount:i.injection.injectMount,injectInstanceHandle:function(e){m=e,"production"!==n.env.NODE_ENV&&r()},getInstanceHandle:function(){return"production"!==n.env.NODE_ENV&&r(),m},injectEventPluginOrder:o.injectEventPluginOrder,injectEventPluginsByName:o.injectEventPluginsByName},eventNameDispatchConfigs:o.eventNameDispatchConfigs,registrationNameModules:o.registrationNameModules,putListener:function(e,t,r){"function"!=typeof r?"production"!==n.env.NODE_ENV?c(!1,"Expected %s listener to be a function, instead got type %s",t,typeof r):c(!1):void 0;var i=p[t]||(p[t]={});i[e]=r;var a=o.registrationNameModules[t];a&&a.didPutListener&&a.didPutListener(e,t,r)},getListener:function(e,t){var n=p[t];return n&&n[e]},deleteListener:function(e,t){var n=o.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=p[t];r&&delete r[e]},deleteAllListeners:function(e){for(var t in p)if(p[t][e]){var n=o.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t),delete p[t][e]}},extractEvents:function(e,t,n,r,i){for(var a,u=o.plugins,c=0;c<u.length;c++){var l=u[c];if(l){var p=l.extractEvents(e,t,n,r,i);p&&(a=s(a,p))}}return a},enqueueEvents:function(e){e&&(f=s(f,e))},processEventQueue:function(e){var t=f;f=null,e?u(t,h):u(t,g),f?"production"!==n.env.NODE_ENV?c(!1,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."):c(!1):void 0,a.rethrowCaughtError()},__purge:function(){p={}},__getListenerBank:function(){return p}};t.exports=y}).call(this,e("_process"))},{"./EventPluginRegistry":363,"./EventPluginUtils":364,"./ReactErrorUtils":405,"./accumulateInto":454,"./forEachAccumulated":462,_process:2,"fbjs/lib/invariant":497,"fbjs/lib/warning":508}],363:[function(e,t,n){(function(n){"use strict";function r(){if(s)for(var e in u){var t=u[e],r=s.indexOf(e);if(r>-1?void 0:"production"!==n.env.NODE_ENV?a(!1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",e):a(!1),!c.plugins[r]){t.extractEvents?void 0:"production"!==n.env.NODE_ENV?a(!1,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",e):a(!1),c.plugins[r]=t;var i=t.eventTypes;for(var l in i)o(i[l],t,l)?void 0:"production"!==n.env.NODE_ENV?a(!1,"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",l,e):a(!1)}}}function o(e,t,r){c.eventNameDispatchConfigs.hasOwnProperty(r)?"production"!==n.env.NODE_ENV?a(!1,"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",r):a(!1):void 0,c.eventNameDispatchConfigs[r]=e;var o=e.phasedRegistrationNames;if(o){for(var s in o)if(o.hasOwnProperty(s)){var u=o[s];i(u,t,r)}return!0}return!!e.registrationName&&(i(e.registrationName,t,r),!0)}function i(e,t,r){c.registrationNameModules[e]?"production"!==n.env.NODE_ENV?a(!1,"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",e):a(!1):void 0,c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[r].dependencies}var a=e("fbjs/lib/invariant"),s=null,u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){s?"production"!==n.env.NODE_ENV?a(!1,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."):a(!1):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var o in e)if(e.hasOwnProperty(o)){var i=e[o];u.hasOwnProperty(o)&&u[o]===i||(u[o]?"production"!==n.env.NODE_ENV?a(!1,"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",o):a(!1):void 0,u[o]=i,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=c.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=c}).call(this,e("_process"))},{_process:2,"fbjs/lib/invariant":497}],364:[function(e,t,n){(function(n){"use strict";function r(e){return e===v.topMouseUp||e===v.topTouchEnd||e===v.topTouchCancel}function o(e){return e===v.topMouseMove||e===v.topTouchMove}function i(e){return e===v.topMouseDown||e===v.topTouchStart}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=y.Mount.getNode(r),t?h.invokeGuardedCallbackWithCatch(o,n,e,r):h.invokeGuardedCallback(o,n,e,r),e.currentTarget=null}function s(e,t){var r=e._dispatchListeners,o=e._dispatchIDs;if("production"!==n.env.NODE_ENV&&f(e),Array.isArray(r))for(var i=0;i<r.length&&!e.isPropagationStopped();i++)a(e,t,r[i],o[i]);else r&&a(e,t,r,o);e._dispatchListeners=null,e._dispatchIDs=null}function u(e){var t=e._dispatchListeners,r=e._dispatchIDs;if("production"!==n.env.NODE_ENV&&f(e),Array.isArray(t)){for(var o=0;o<t.length&&!e.isPropagationStopped();o++)if(t[o](e,r[o]))return r[o]}else if(t&&t(e,r))return r;return null}function c(e){var t=u(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function l(e){"production"!==n.env.NODE_ENV&&f(e);var t=e._dispatchListeners,r=e._dispatchIDs;Array.isArray(t)?"production"!==n.env.NODE_ENV?g(!1,"executeDirectDispatch(...): Invalid `event`."):g(!1):void 0;var o=t?t(e,r):null;return e._dispatchListeners=null,
|
24 |
-
e._dispatchIDs=null,o}function p(e){return!!e._dispatchListeners}var f,d=e("./EventConstants"),h=e("./ReactErrorUtils"),g=e("fbjs/lib/invariant"),m=e("fbjs/lib/warning"),y={Mount:null,injectMount:function(e){y.Mount=e,"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?m(e&&e.getNode&&e.getID,"EventPluginUtils.injection.injectMount(...): Injected Mount module is missing getNode or getID."):void 0)}},v=d.topLevelTypes;"production"!==n.env.NODE_ENV&&(f=function(e){var t=e._dispatchListeners,r=e._dispatchIDs,o=Array.isArray(t),i=Array.isArray(r),a=i?r.length:r?1:0,s=o?t.length:t?1:0;"production"!==n.env.NODE_ENV?m(i===o&&a===s,"EventPluginUtils: Invalid `event`."):void 0});var _={isEndish:r,isMoveish:o,isStartish:i,executeDirectDispatch:l,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:c,hasDispatches:p,getNode:function(e){return y.Mount.getNode(e)},getID:function(e){return y.Mount.getID(e)},injection:y};t.exports=_}).call(this,e("_process"))},{"./EventConstants":361,"./ReactErrorUtils":405,_process:2,"fbjs/lib/invariant":497,"fbjs/lib/warning":508}],365:[function(e,t,n){(function(n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return _(e,r)}function o(e,t,o){"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?g(e,"Dispatching id must not be null"):void 0);var i=t?v.bubbled:v.captured,a=r(e,o,i);a&&(o._dispatchListeners=m(o._dispatchListeners,a),o._dispatchIDs=m(o._dispatchIDs,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,o,e)}function a(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(e.dispatchMarker,o,e)}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=_(e,r);o&&(n._dispatchListeners=m(n._dispatchListeners,o),n._dispatchIDs=m(n._dispatchIDs,e))}}function u(e){e&&e.dispatchConfig.registrationName&&s(e.dispatchMarker,null,e)}function c(e){y(e,i)}function l(e){y(e,a)}function p(e,t,n,r){h.injection.getInstanceHandle().traverseEnterLeave(n,r,s,e,t)}function f(e){y(e,u)}var d=e("./EventConstants"),h=e("./EventPluginHub"),g=e("fbjs/lib/warning"),m=e("./accumulateInto"),y=e("./forEachAccumulated"),v=d.PropagationPhases,_=h.getListener,b={accumulateTwoPhaseDispatches:c,accumulateTwoPhaseDispatchesSkipTarget:l,accumulateDirectDispatches:f,accumulateEnterLeaveDispatches:p};t.exports=b}).call(this,e("_process"))},{"./EventConstants":361,"./EventPluginHub":362,"./accumulateInto":454,"./forEachAccumulated":462,_process:2,"fbjs/lib/warning":508}],366:[function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=e("./PooledClass"),i=e("./Object.assign"),a=e("./getTextContentAccessor");i(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),o.addPoolingTo(r),t.exports=r},{"./Object.assign":369,"./PooledClass":370,"./getTextContentAccessor":469}],367:[function(e,t,n){"use strict";var r,o=e("./DOMProperty"),i=e("fbjs/lib/ExecutionEnvironment"),a=o.injection.MUST_USE_ATTRIBUTE,s=o.injection.MUST_USE_PROPERTY,u=o.injection.HAS_BOOLEAN_VALUE,c=o.injection.HAS_SIDE_EFFECTS,l=o.injection.HAS_NUMERIC_VALUE,p=o.injection.HAS_POSITIVE_NUMERIC_VALUE,f=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(i.canUseDOM){var d=document.implementation;r=d&&d.hasFeature&&d.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var h={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|u,allowTransparency:a,alt:null,async:u,autoComplete:null,autoPlay:u,capture:a|u,cellPadding:null,cellSpacing:null,charSet:a,challenge:a,checked:s|u,classID:a,className:r?a:s,cols:a|p,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:s|u,coords:null,crossOrigin:null,data:null,dateTime:a,default:u,defer:u,dir:null,disabled:a|u,download:f,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:u,formTarget:a,frameBorder:a,headers:null,height:a,hidden:a|u,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,inputMode:a,integrity:null,is:a,keyParams:a,keyType:a,kind:null,label:null,lang:null,list:a,loop:s|u,low:null,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,minLength:a,multiple:s|u,muted:s|u,name:null,nonce:a,noValidate:u,open:u,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|u,rel:null,required:u,reversed:u,role:a,rows:a|p,rowSpan:null,sandbox:null,scope:null,scoped:u,scrolling:null,seamless:a|u,selected:s|u,shape:null,size:a|p,sizes:a,span:p,spellCheck:null,src:null,srcDoc:s,srcLang:null,srcSet:a,start:l,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|c,width:a,wmode:a,wrap:null,about:a,datatype:a,inlist:a,prefix:a,property:a,resource:a,typeof:a,vocab:a,autoCapitalize:a,autoCorrect:a,autoSave:null,color:null,itemProp:a,itemScope:a|u,itemType:a,itemID:a,itemRef:a,results:null,security:a,unselectable:a},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};t.exports=h},{"./DOMProperty":356,"fbjs/lib/ExecutionEnvironment":483}],368:[function(e,t,n){(function(n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?"production"!==n.env.NODE_ENV?c(!1,"Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don't want to use valueLink and vice versa."):c(!1):void 0}function o(e){r(e),null!=e.value||null!=e.onChange?"production"!==n.env.NODE_ENV?c(!1,"Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don't want to use valueLink."):c(!1):void 0}function i(e){r(e),null!=e.checked||null!=e.onChange?"production"!==n.env.NODE_ENV?c(!1,"Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don't want to use checkedLink"):c(!1):void 0}function a(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=e("./ReactPropTypes"),u=e("./ReactPropTypeLocations"),c=e("fbjs/lib/invariant"),l=e("fbjs/lib/warning"),p={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},f={value:function(e,t,n){return!e[t]||p[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:s.func},d={},h={checkPropTypes:function(e,t,r){for(var o in f){if(f.hasOwnProperty(o))var i=f[o](t,o,e,u.prop);if(i instanceof Error&&!(i.message in d)){d[i.message]=!0;var s=a(r);"production"!==n.env.NODE_ENV?l(!1,"Failed form propType: %s%s",i.message,s):void 0}}},getValue:function(e){return e.valueLink?(o(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(i(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(o(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(i(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};t.exports=h}).call(this,e("_process"))},{"./ReactPropTypeLocations":422,"./ReactPropTypes":423,_process:2,"fbjs/lib/invariant":497,"fbjs/lib/warning":508}],369:[function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var i=arguments[o];if(null!=i){var a=Object(i);for(var s in a)r.call(a,s)&&(n[s]=a[s])}}return n}t.exports=r},{}],370:[function(e,t,n){(function(n){"use strict";var r=e("fbjs/lib/invariant"),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},u=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},c=function(e){var t=this;e instanceof t?void 0:"production"!==n.env.NODE_ENV?r(!1,"Trying to release an instance into a pool of a different type."):r(!1),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},l=10,p=o,f=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||p,n.poolSize||(n.poolSize=l),n.release=c,n},d={addPoolingTo:f,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s,fiveArgumentPooler:u};t.exports=d}).call(this,e("_process"))},{_process:2,"fbjs/lib/invariant":497}],371:[function(e,t,n){"use strict";var r=e("./ReactDOM"),o=e("./ReactDOMServer"),i=e("./ReactIsomorphic"),a=e("./Object.assign"),s=e("./deprecated"),u={};a(u,i),a(u,{findDOMNode:s("findDOMNode","ReactDOM","react-dom",r,r.findDOMNode),render:s("render","ReactDOM","react-dom",r,r.render),unmountComponentAtNode:s("unmountComponentAtNode","ReactDOM","react-dom",r,r.unmountComponentAtNode),renderToString:s("renderToString","ReactDOMServer","react-dom/server",o,o.renderToString),renderToStaticMarkup:s("renderToStaticMarkup","ReactDOMServer","react-dom/server",o,o.renderToStaticMarkup)}),u.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r,u.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,t.exports=u},{"./Object.assign":369,"./ReactDOM":384,"./ReactDOMServer":394,"./ReactIsomorphic":412,"./deprecated":458}],372:[function(e,t,n){(function(n){"use strict";var r=e("./ReactInstanceMap"),o=e("./findDOMNode"),i=e("fbjs/lib/warning"),a="_getDOMNodeDidWarn",s={getDOMNode:function(){return"production"!==n.env.NODE_ENV?i(this.constructor[a],"%s.getDOMNode(...) is deprecated. Please use ReactDOM.findDOMNode(instance) instead.",r.get(this).getName()||this.tagName||"Unknown"):void 0,this.constructor[a]=!0,o(this)}};t.exports=s}).call(this,e("_process"))},{"./ReactInstanceMap":411,"./findDOMNode":460,_process:2,"fbjs/lib/warning":508}],373:[function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=h++,f[e[m]]={}),f[e[m]]}var o=e("./EventConstants"),i=e("./EventPluginHub"),a=e("./EventPluginRegistry"),s=e("./ReactEventEmitterMixin"),u=e("./ReactPerf"),c=e("./ViewportMetrics"),l=e("./Object.assign"),p=e("./isEventSupported"),f={},d=!1,h=0,g={topAbort:"abort",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),y=l({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(y.handleTopLevel),y.ReactEventListener=e}},setEnabled:function(e){y.ReactEventListener&&y.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!y.ReactEventListener||!y.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,i=r(n),s=a.registrationNameDependencies[e],u=o.topLevelTypes,c=0;c<s.length;c++){var l=s[c];i.hasOwnProperty(l)&&i[l]||(l===u.topWheel?p("wheel")?y.ReactEventListener.trapBubbledEvent(u.topWheel,"wheel",n):p("mousewheel")?y.ReactEventListener.trapBubbledEvent(u.topWheel,"mousewheel",n):y.ReactEventListener.trapBubbledEvent(u.topWheel,"DOMMouseScroll",n):l===u.topScroll?p("scroll",!0)?y.ReactEventListener.trapCapturedEvent(u.topScroll,"scroll",n):y.ReactEventListener.trapBubbledEvent(u.topScroll,"scroll",y.ReactEventListener.WINDOW_HANDLE):l===u.topFocus||l===u.topBlur?(p("focus",!0)?(y.ReactEventListener.trapCapturedEvent(u.topFocus,"focus",n),y.ReactEventListener.trapCapturedEvent(u.topBlur,"blur",n)):p("focusin")&&(y.ReactEventListener.trapBubbledEvent(u.topFocus,"focusin",n),y.ReactEventListener.trapBubbledEvent(u.topBlur,"focusout",n)),i[u.topBlur]=!0,i[u.topFocus]=!0):g.hasOwnProperty(l)&&y.ReactEventListener.trapBubbledEvent(l,g[l],n),i[l]=!0)}},trapBubbledEvent:function(e,t,n){return y.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return y.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!d){var e=c.refreshScrollValues;y.ReactEventListener.monitorScrollValue(e),d=!0}},eventNameDispatchConfigs:i.eventNameDispatchConfigs,registrationNameModules:i.registrationNameModules,putListener:i.putListener,getListener:i.getListener,deleteListener:i.deleteListener,deleteAllListeners:i.deleteAllListeners});u.measureMethods(y,"ReactBrowserEventEmitter",{putListener:"putListener",deleteListener:"deleteListener"}),t.exports=y},{"./EventConstants":361,"./EventPluginHub":362,"./EventPluginRegistry":363,"./Object.assign":369,"./ReactEventEmitterMixin":406,"./ReactPerf":420,"./ViewportMetrics":453,"./isEventSupported":471}],374:[function(e,t,n){"use strict";function r(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to ReactCSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}}}var o=e("./React"),i=e("./Object.assign"),a=e("./ReactTransitionGroup"),s=e("./ReactCSSTransitionGroupChild"),u=o.createClass({displayName:"ReactCSSTransitionGroup",propTypes:{transitionName:s.propTypes.name,transitionAppear:o.PropTypes.bool,transitionEnter:o.PropTypes.bool,transitionLeave:o.PropTypes.bool,transitionAppearTimeout:r("Appear"),transitionEnterTimeout:r("Enter"),transitionLeaveTimeout:r("Leave")},getDefaultProps:function(){return{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0}},_wrapChild:function(e){return o.createElement(s,{name:this.props.transitionName,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave,appearTimeout:this.props.transitionAppearTimeout,enterTimeout:this.props.transitionEnterTimeout,leaveTimeout:this.props.transitionLeaveTimeout},e)},render:function(){return o.createElement(a,i({},this.props,{childFactory:this._wrapChild}))}});t.exports=u},{"./Object.assign":369,"./React":371,"./ReactCSSTransitionGroupChild":375,"./ReactTransitionGroup":433}],375:[function(e,t,n){"use strict";var r=e("./React"),o=e("./ReactDOM"),i=e("fbjs/lib/CSSCore"),a=e("./ReactTransitionEvents"),s=e("./onlyChild"),u=17,c=r.createClass({displayName:"ReactCSSTransitionGroupChild",propTypes:{name:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.shape({enter:r.PropTypes.string,leave:r.PropTypes.string,active:r.PropTypes.string}),r.PropTypes.shape({enter:r.PropTypes.string,enterActive:r.PropTypes.string,leave:r.PropTypes.string,leaveActive:r.PropTypes.string,appear:r.PropTypes.string,appearActive:r.PropTypes.string})]).isRequired,appear:r.PropTypes.bool,enter:r.PropTypes.bool,leave:r.PropTypes.bool,appearTimeout:r.PropTypes.number,enterTimeout:r.PropTypes.number,leaveTimeout:r.PropTypes.number},transition:function(e,t,n){var r=o.findDOMNode(this);if(!r)return void(t&&t());var s=this.props.name[e]||this.props.name+"-"+e,u=this.props.name[e+"Active"]||s+"-active",c=null,l=function(e){e&&e.target!==r||(clearTimeout(c),i.removeClass(r,s),i.removeClass(r,u),a.removeEndEventListener(r,l),t&&t())};i.addClass(r,s),this.queueClass(u),n?(c=setTimeout(l,n),this.transitionTimeouts.push(c)):a.addEndEventListener(r,l)},queueClass:function(e){this.classNameQueue.push(e),this.timeout||(this.timeout=setTimeout(this.flushClassNameQueue,u))},flushClassNameQueue:function(){this.isMounted()&&this.classNameQueue.forEach(i.addClass.bind(i,o.findDOMNode(this))),this.classNameQueue.length=0,this.timeout=null},componentWillMount:function(){this.classNameQueue=[],this.transitionTimeouts=[]},componentWillUnmount:function(){this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)})},componentWillAppear:function(e){this.props.appear?this.transition("appear",e,this.props.appearTimeout):e()},componentWillEnter:function(e){this.props.enter?this.transition("enter",e,this.props.enterTimeout):e()},componentWillLeave:function(e){this.props.leave?this.transition("leave",e,this.props.leaveTimeout):e()},render:function(){return s(this.props.children)}});t.exports=c},{"./React":371,"./ReactDOM":384,"./ReactTransitionEvents":432,"./onlyChild":473,"fbjs/lib/CSSCore":481}],376:[function(e,t,n){(function(n){"use strict";function r(e,t,r){var o=void 0===e[r];"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?u(o,"flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",r):void 0),null!=t&&o&&(e[r]=i(t,null))}var o=e("./ReactReconciler"),i=e("./instantiateReactComponent"),a=e("./shouldUpdateReactComponent"),s=e("./traverseAllChildren"),u=e("fbjs/lib/warning"),c={instantiateChildren:function(e,t,n){if(null==e)return null;var o={};return s(e,r,o),o},updateChildren:function(e,t,n,r){if(!t&&!e)return null;var s;for(s in t)if(t.hasOwnProperty(s)){var u=e&&e[s],c=u&&u._currentElement,l=t[s];if(null!=u&&a(c,l))o.receiveComponent(u,l,n,r),t[s]=u;else{u&&o.unmountComponent(u,s);var p=i(l,null);t[s]=p}}for(s in e)!e.hasOwnProperty(s)||t&&t.hasOwnProperty(s)||o.unmountComponent(e[s]);return t},unmountChildren:function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];o.unmountComponent(n)}}};t.exports=c}).call(this,e("_process"))},{"./ReactReconciler":425,"./instantiateReactComponent":470,"./shouldUpdateReactComponent":478,"./traverseAllChildren":479,_process:2,"fbjs/lib/warning":508}],377:[function(e,t,n){"use strict";function r(e){return(""+e).replace(b,"//")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);y(e,i,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function u(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,s=e.context,u=a.call(s,t,e.count++);Array.isArray(u)?c(u,o,n,m.thatReturnsArgument):null!=u&&(g.isValidElement(u)&&(u=g.cloneAndReplaceKey(u,i+(u!==t?r(u.key||"")+"/":"")+n)),o.push(u))}function c(e,t,n,o,i){var a="";null!=n&&(a=r(n)+"/");var c=s.getPooled(t,a,o,i);y(e,u,c),s.release(c)}function l(e,t,n){if(null==e)return e;var r=[];return c(e,r,null,t,n),r}function p(e,t,n){return null}function f(e,t){return y(e,p,null)}function d(e){var t=[];return c(e,t,null,m.thatReturnsArgument),t}var h=e("./PooledClass"),g=e("./ReactElement"),m=e("fbjs/lib/emptyFunction"),y=e("./traverseAllChildren"),v=h.twoArgumentPooler,_=h.fourArgumentPooler,b=/\/(?!\/)/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,v),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,_);var E={forEach:a,map:l,mapIntoWithKeyPrefixInternal:c,count:f,toArray:d};t.exports=E},{"./PooledClass":370,"./ReactElement":401,"./traverseAllChildren":479,"fbjs/lib/emptyFunction":489}],378:[function(e,t,n){(function(n){"use strict";function r(){T||(T=!0,"production"!==n.env.NODE_ENV?C(!1,"setProps(...) and replaceProps(...) are deprecated. Instead, call render again at the top level."):void 0)}function o(e,t,r){for(var o in t)t.hasOwnProperty(o)&&("production"!==n.env.NODE_ENV?C("function"==typeof t[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",m[r],o):void 0)}function i(e,t){var r=P.hasOwnProperty(t)?P[t]:null;N.hasOwnProperty(t)&&(r!==S.OVERRIDE_BASE?"production"!==n.env.NODE_ENV?b(!1,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t):b(!1):void 0),e.hasOwnProperty(t)&&(r!==S.DEFINE_MANY&&r!==S.DEFINE_MANY_MERGED?"production"!==n.env.NODE_ENV?b(!1,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t):b(!1):void 0)}function a(e,t){if(t){"function"==typeof t?"production"!==n.env.NODE_ENV?b(!1,"ReactClass: You're attempting to use a component class as a mixin. Instead, just use a regular object."):b(!1):void 0,h.isValidElement(t)?"production"!==n.env.NODE_ENV?b(!1,"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object."):b(!1):void 0;var r=e.prototype;t.hasOwnProperty(w)&&R.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==w){var a=t[o];if(i(r,o),R.hasOwnProperty(o))R[o](e,a);else{var s=P.hasOwnProperty(o),u=r.hasOwnProperty(o),p="function"==typeof a,f=p&&!s&&!u&&t.autobind!==!1;if(f)r.__reactAutoBindMap||(r.__reactAutoBindMap={}),r.__reactAutoBindMap[o]=a,r[o]=a;else if(u){var d=P[o];!s||d!==S.DEFINE_MANY_MERGED&&d!==S.DEFINE_MANY?"production"!==n.env.NODE_ENV?b(!1,"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",d,o):b(!1):void 0,d===S.DEFINE_MANY_MERGED?r[o]=c(r[o],a):d===S.DEFINE_MANY&&(r[o]=l(r[o],a))}else r[o]=a,"production"!==n.env.NODE_ENV&&"function"==typeof a&&t.displayName&&(r[o].displayName=t.displayName+"_"+o)}}}}function s(e,t){if(t)for(var r in t){var o=t[r];if(t.hasOwnProperty(r)){var i=r in R;i?"production"!==n.env.NODE_ENV?b(!1,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',r):b(!1):void 0;var a=r in e;a?"production"!==n.env.NODE_ENV?b(!1,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",r):b(!1):void 0,e[r]=o}}}function u(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:"production"!==n.env.NODE_ENV?b(!1,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."):b(!1);for(var r in t)t.hasOwnProperty(r)&&(void 0!==e[r]?"production"!==n.env.NODE_ENV?b(!1,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",r):b(!1):void 0,e[r]=t[r]);return e}function c(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return u(o,n),u(o,r),o}}function l(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function p(e,t){var r=t.bind(e);if("production"!==n.env.NODE_ENV){r.__reactBoundContext=e,r.__reactBoundMethod=t,r.__reactBoundArguments=null;var o=e.constructor.displayName,i=r.bind;r.bind=function(a){for(var s=arguments.length,u=Array(s>1?s-1:0),c=1;c<s;c++)u[c-1]=arguments[c];if(a!==e&&null!==a)"production"!==n.env.NODE_ENV?C(!1,"bind(): React component methods may only be bound to the component instance. See %s",o):void 0;else if(!u.length)return"production"!==n.env.NODE_ENV?C(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",o):void 0,r;var l=i.apply(r,arguments);return l.__reactBoundContext=e,l.__reactBoundMethod=t,l.__reactBoundArguments=u,l}}return r}function f(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=p(e,n)}}var d=e("./ReactComponent"),h=e("./ReactElement"),g=e("./ReactPropTypeLocations"),m=e("./ReactPropTypeLocationNames"),y=e("./ReactNoopUpdateQueue"),v=e("./Object.assign"),_=e("fbjs/lib/emptyObject"),b=e("fbjs/lib/invariant"),E=e("fbjs/lib/keyMirror"),x=e("fbjs/lib/keyOf"),C=e("fbjs/lib/warning"),w=x({mixins:null}),S=E({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),O=[],T=!1,P={mixins:S.DEFINE_MANY,statics:S.DEFINE_MANY,propTypes:S.DEFINE_MANY,contextTypes:S.DEFINE_MANY,childContextTypes:S.DEFINE_MANY,getDefaultProps:S.DEFINE_MANY_MERGED,getInitialState:S.DEFINE_MANY_MERGED,getChildContext:S.DEFINE_MANY_MERGED,render:S.DEFINE_ONCE,componentWillMount:S.DEFINE_MANY,componentDidMount:S.DEFINE_MANY,componentWillReceiveProps:S.DEFINE_MANY,shouldComponentUpdate:S.DEFINE_ONCE,componentWillUpdate:S.DEFINE_MANY,componentDidUpdate:S.DEFINE_MANY,componentWillUnmount:S.DEFINE_MANY,updateComponent:S.OVERRIDE_BASE},R={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)a(e,t[n])},childContextTypes:function(e,t){"production"!==n.env.NODE_ENV&&o(e,t,g.childContext),e.childContextTypes=v({},e.childContextTypes,t)},contextTypes:function(e,t){"production"!==n.env.NODE_ENV&&o(e,t,g.context),e.contextTypes=v({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=c(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){"production"!==n.env.NODE_ENV&&o(e,t,g.prop),e.propTypes=v({},e.propTypes,t)},statics:function(e,t){s(e,t)},autobind:function(){}},N={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t)},isMounted:function(){return this.updater.isMounted(this)},setProps:function(e,t){"production"!==n.env.NODE_ENV&&r(),this.updater.enqueueSetProps(this,e),t&&this.updater.enqueueCallback(this,t)},replaceProps:function(e,t){"production"!==n.env.NODE_ENV&&r(),this.updater.enqueueReplaceProps(this,e),t&&this.updater.enqueueCallback(this,t)}},A=function(){};v(A.prototype,d.prototype,N);var M={createClass:function(e){var t=function(e,r,o){"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?C(this instanceof t,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"):void 0),this.__reactAutoBindMap&&f(this),this.props=e,this.context=r,this.refs=_,this.updater=o||y,this.state=null;var i=this.getInitialState?this.getInitialState():null;"production"!==n.env.NODE_ENV&&"undefined"==typeof i&&this.getInitialState._isMockFunction&&(i=null),"object"!=typeof i||Array.isArray(i)?"production"!==n.env.NODE_ENV?b(!1,"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"):b(!1):void 0,this.state=i};t.prototype=new A,t.prototype.constructor=t,O.forEach(a.bind(null,t)),a(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),"production"!==n.env.NODE_ENV&&(t.getDefaultProps&&(t.getDefaultProps.isReactClassApproved={}),t.prototype.getInitialState&&(t.prototype.getInitialState.isReactClassApproved={})),t.prototype.render?void 0:"production"!==n.env.NODE_ENV?b(!1,"createClass(...): Class specification must implement a `render` method."):b(!1),"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?C(!t.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",e.displayName||"A component"):void 0,"production"!==n.env.NODE_ENV?C(!t.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",e.displayName||"A component"):void 0);for(var r in P)t.prototype[r]||(t.prototype[r]=null);return t},injection:{injectMixin:function(e){O.push(e)}}};t.exports=M}).call(this,e("_process"))},{"./Object.assign":369,"./ReactComponent":379,"./ReactElement":401,"./ReactNoopUpdateQueue":418,"./ReactPropTypeLocationNames":421,"./ReactPropTypeLocations":422,_process:2,"fbjs/lib/emptyObject":490,"fbjs/lib/invariant":497,"fbjs/lib/keyMirror":500,"fbjs/lib/keyOf":501,"fbjs/lib/warning":508}],379:[function(e,t,n){(function(n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||o}var o=e("./ReactNoopUpdateQueue"),i=e("./canDefineProperty"),a=e("fbjs/lib/emptyObject"),s=e("fbjs/lib/invariant"),u=e("fbjs/lib/warning");if(r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?"production"!==n.env.NODE_ENV?s(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):s(!1):void 0,"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?u(null!=e,"setState(...): You passed an undefined or null state object; instead, use forceUpdate()."):void 0),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t)},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e)},"production"!==n.env.NODE_ENV){var c={getDOMNode:["getDOMNode","Use ReactDOM.findDOMNode(component) instead."],isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceProps:["replaceProps","Instead, call render again at the top level."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."],setProps:["setProps","Instead, call render again at the top level."]},l=function(e,t){i&&Object.defineProperty(r.prototype,e,{get:function(){"production"!==n.env.NODE_ENV?u(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1]):void 0;
|
25 |
-
}})};for(var p in c)c.hasOwnProperty(p)&&l(p,c[p])}t.exports=r}).call(this,e("_process"))},{"./ReactNoopUpdateQueue":418,"./canDefineProperty":456,_process:2,"fbjs/lib/emptyObject":490,"fbjs/lib/invariant":497,"fbjs/lib/warning":508}],380:[function(e,t,n){"use strict";var r=e("./ReactDOMIDOperations"),o=e("./ReactMount"),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){o.purgeID(e)}};t.exports=i},{"./ReactDOMIDOperations":389,"./ReactMount":414}],381:[function(e,t,n){(function(n){"use strict";var r=e("fbjs/lib/invariant"),o=!1,i={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o?"production"!==n.env.NODE_ENV?r(!1,"ReactCompositeComponent: injectEnvironment() can only be called once."):r(!1):void 0,i.unmountIDFromEnvironment=e.unmountIDFromEnvironment,i.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,i.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};t.exports=i}).call(this,e("_process"))},{_process:2,"fbjs/lib/invariant":497}],382:[function(e,t,n){(function(n){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}function o(e){}var i=e("./ReactComponentEnvironment"),a=e("./ReactCurrentOwner"),s=e("./ReactElement"),u=e("./ReactInstanceMap"),c=e("./ReactPerf"),l=e("./ReactPropTypeLocations"),p=e("./ReactPropTypeLocationNames"),f=e("./ReactReconciler"),d=e("./ReactUpdateQueue"),h=e("./Object.assign"),g=e("fbjs/lib/emptyObject"),m=e("fbjs/lib/invariant"),y=e("./shouldUpdateReactComponent"),v=e("fbjs/lib/warning");o.prototype.render=function(){var e=u.get(this)._currentElement.type;return e(this.props,this.context,this.updater)};var _=1,b={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(e,t,r){this._context=r,this._mountOrder=_++,this._rootNodeID=e;var i,c,l=this._processProps(this._currentElement.props),p=this._processContext(r),h=this._currentElement.type,y="prototype"in h;if(y)if("production"!==n.env.NODE_ENV){a.current=this;try{i=new h(l,p,d)}finally{a.current=null}}else i=new h(l,p,d);y&&null!==i&&i!==!1&&!s.isValidElement(i)||(c=i,i=new o(h)),"production"!==n.env.NODE_ENV&&(null==i.render?"production"!==n.env.NODE_ENV?v(!1,"%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`, returned null/false from a stateless component, or tried to render an element whose type is a function that isn't a React component.",h.displayName||h.name||"Component"):void 0:"production"!==n.env.NODE_ENV?v(h.prototype&&h.prototype.isReactComponent||!y||!(i instanceof h),"%s(...): React component classes must extend React.Component.",h.displayName||h.name||"Component"):void 0),i.props=l,i.context=p,i.refs=g,i.updater=d,this._instance=i,u.set(i,this),"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?v(!i.getInitialState||i.getInitialState.isReactClassApproved,"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",this.getName()||"a component"):void 0,"production"!==n.env.NODE_ENV?v(!i.getDefaultProps||i.getDefaultProps.isReactClassApproved,"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",this.getName()||"a component"):void 0,"production"!==n.env.NODE_ENV?v(!i.propTypes,"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",this.getName()||"a component"):void 0,"production"!==n.env.NODE_ENV?v(!i.contextTypes,"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",this.getName()||"a component"):void 0,"production"!==n.env.NODE_ENV?v("function"!=typeof i.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",this.getName()||"A component"):void 0,"production"!==n.env.NODE_ENV?v("function"!=typeof i.componentDidUnmount,"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",this.getName()||"A component"):void 0,"production"!==n.env.NODE_ENV?v("function"!=typeof i.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",this.getName()||"A component"):void 0);var b=i.state;void 0===b&&(i.state=b=null),"object"!=typeof b||Array.isArray(b)?"production"!==n.env.NODE_ENV?m(!1,"%s.state: must be set to an object or null",this.getName()||"ReactCompositeComponent"):m(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===c&&(c=this._renderValidatedComponent()),this._renderedComponent=this._instantiateReactComponent(c);var E=f.mountComponent(this._renderedComponent,e,t,this._processChildContext(r));return i.componentDidMount&&t.getReactMountReady().enqueue(i.componentDidMount,i),E},unmountComponent:function(){var e=this._instance;e.componentWillUnmount&&e.componentWillUnmount(),f.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._instance=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,u.remove(e)},_maskContext:function(e){var t=null,n=this._currentElement.type,r=n.contextTypes;if(!r)return g;t={};for(var o in r)t[o]=e[o];return t},_processContext:function(e){var t=this._maskContext(e);if("production"!==n.env.NODE_ENV){var r=this._currentElement.type;r.contextTypes&&this._checkPropTypes(r.contextTypes,t,l.context)}return t},_processChildContext:function(e){var t=this._currentElement.type,r=this._instance,o=r.getChildContext&&r.getChildContext();if(o){"object"!=typeof t.childContextTypes?"production"!==n.env.NODE_ENV?m(!1,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",this.getName()||"ReactCompositeComponent"):m(!1):void 0,"production"!==n.env.NODE_ENV&&this._checkPropTypes(t.childContextTypes,o,l.childContext);for(var i in o)i in t.childContextTypes?void 0:"production"!==n.env.NODE_ENV?m(!1,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',this.getName()||"ReactCompositeComponent",i):m(!1);return h({},e,o)}return e},_processProps:function(e){if("production"!==n.env.NODE_ENV){var t=this._currentElement.type;t.propTypes&&this._checkPropTypes(t.propTypes,e,l.prop)}return e},_checkPropTypes:function(e,t,o){var i=this.getName();for(var a in e)if(e.hasOwnProperty(a)){var s;try{"function"!=typeof e[a]?"production"!==n.env.NODE_ENV?m(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",i||"React class",p[o],a):m(!1):void 0,s=e[a](t,a,i,o)}catch(e){s=e}if(s instanceof Error){var u=r(this);o===l.prop?"production"!==n.env.NODE_ENV?v(!1,"Failed Composite propType: %s%s",s.message,u):void 0:"production"!==n.env.NODE_ENV?v(!1,"Failed Context Types: %s%s",s.message,u):void 0}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&f.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(e,t,r,o,i){var a,s=this._instance,u=this._context===i?s.context:this._processContext(i);t===r?a=r.props:(a=this._processProps(r.props),s.componentWillReceiveProps&&s.componentWillReceiveProps(a,u));var c=this._processPendingState(a,u),l=this._pendingForceUpdate||!s.shouldComponentUpdate||s.shouldComponentUpdate(a,c,u);"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?v("undefined"!=typeof l,"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",this.getName()||"ReactCompositeComponent"):void 0),l?(this._pendingForceUpdate=!1,this._performComponentUpdate(r,a,c,u,e,i)):(this._currentElement=r,this._context=i,s.props=a,s.state=c,s.context=u)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=h({},o?r[0]:n.state),a=o?1:0;a<r.length;a++){var s=r[a];h(i,"function"==typeof s?s.call(n,i,e,t):s)}return i},_performComponentUpdate:function(e,t,n,r,o,i){var a,s,u,c=this._instance,l=Boolean(c.componentDidUpdate);l&&(a=c.props,s=c.state,u=c.context),c.componentWillUpdate&&c.componentWillUpdate(t,n,r),this._currentElement=e,this._context=i,c.props=t,c.state=n,c.context=r,this._updateRenderedComponent(o,i),l&&o.getReactMountReady().enqueue(c.componentDidUpdate.bind(c,a,s,u),c)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent();if(y(r,o))f.receiveComponent(n,o,e,this._processChildContext(t));else{var i=this._rootNodeID,a=n._rootNodeID;f.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(o);var s=f.mountComponent(this._renderedComponent,i,e,this._processChildContext(t));this._replaceNodeWithMarkupByID(a,s)}},_replaceNodeWithMarkupByID:function(e,t){i.replaceNodeWithMarkupByID(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,t=e.render();return"production"!==n.env.NODE_ENV&&"undefined"==typeof t&&e.render._isMockFunction&&(t=null),t},_renderValidatedComponent:function(){var e;a.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{a.current=null}return null===e||e===!1||s.isValidElement(e)?void 0:"production"!==n.env.NODE_ENV?m(!1,"%s.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.",this.getName()||"ReactCompositeComponent"):m(!1),e},attachRef:function(e,t){var r=this.getPublicInstance();null==r?"production"!==n.env.NODE_ENV?m(!1,"Stateless function components cannot have refs."):m(!1):void 0;var o=t.getPublicInstance();if("production"!==n.env.NODE_ENV){var i=t&&t.getName?t.getName():"a component";"production"!==n.env.NODE_ENV?v(null!=o,'Stateless function components cannot be given refs (See ref "%s" in %s created by %s). Attempts to access this ref will fail.',e,i,this.getName()):void 0}var a=r.refs===g?r.refs={}:r.refs;a[e]=o},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return e instanceof o?null:e},_instantiateReactComponent:null};c.measureMethods(b,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var E={Mixin:b};t.exports=E}).call(this,e("_process"))},{"./Object.assign":369,"./ReactComponentEnvironment":381,"./ReactCurrentOwner":383,"./ReactElement":401,"./ReactInstanceMap":411,"./ReactPerf":420,"./ReactPropTypeLocationNames":421,"./ReactPropTypeLocations":422,"./ReactReconciler":425,"./ReactUpdateQueue":434,"./shouldUpdateReactComponent":478,_process:2,"fbjs/lib/emptyObject":490,"fbjs/lib/invariant":497,"fbjs/lib/warning":508}],383:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],384:[function(e,t,n){(function(n){"use strict";var r=e("./ReactCurrentOwner"),o=e("./ReactDOMTextComponent"),i=e("./ReactDefaultInjection"),a=e("./ReactInstanceHandles"),s=e("./ReactMount"),u=e("./ReactPerf"),c=e("./ReactReconciler"),l=e("./ReactUpdates"),p=e("./ReactVersion"),f=e("./findDOMNode"),d=e("./renderSubtreeIntoContainer"),h=e("fbjs/lib/warning");i.inject();var g=u.measure("React","render",s.render),m={findDOMNode:f,render:g,unmountComponentAtNode:s.unmountComponentAtNode,version:p,unstable_batchedUpdates:l.batchedUpdates,unstable_renderSubtreeIntoContainer:d};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:r,InstanceHandles:a,Mount:s,Reconciler:c,TextComponent:o}),"production"!==n.env.NODE_ENV){var y=e("fbjs/lib/ExecutionEnvironment");if(y.canUseDOM&&window.top===window.self){"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)&&console.debug("Download the React DevTools for a better development experience: https://fb.me/react-devtools");var v=document.documentMode&&document.documentMode<8;"production"!==n.env.NODE_ENV?h(!v,'Internet Explorer is running in compatibility mode; please add the following tag to your HTML to prevent this from happening: <meta http-equiv="X-UA-Compatible" content="IE=edge" />'):void 0;for(var _=[Array.isArray,Array.prototype.every,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.map,Date.now,Function.prototype.bind,Object.keys,String.prototype.split,String.prototype.trim,Object.create,Object.freeze],b=0;b<_.length;b++)if(!_[b]){console.error("One or more ES5 shim/shams expected by React are not available: https://fb.me/react-warning-polyfills");break}}}t.exports=m}).call(this,e("_process"))},{"./ReactCurrentOwner":383,"./ReactDOMTextComponent":395,"./ReactDefaultInjection":398,"./ReactInstanceHandles":410,"./ReactMount":414,"./ReactPerf":420,"./ReactReconciler":425,"./ReactUpdates":435,"./ReactVersion":436,"./findDOMNode":460,"./renderSubtreeIntoContainer":475,_process:2,"fbjs/lib/ExecutionEnvironment":483,"fbjs/lib/warning":508}],385:[function(e,t,n){"use strict";var r={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},o={getNativeProps:function(e,t,n){if(!t.disabled)return t;var o={};for(var i in t)t.hasOwnProperty(i)&&!r[i]&&(o[i]=t[i]);return o}};t.exports=o},{}],386:[function(e,t,n){(function(n){"use strict";function r(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function o(){if("production"!==n.env.NODE_ENV){var e=this._reactInternalComponent;"production"!==n.env.NODE_ENV?Y(!1,"ReactDOMComponent: Do not access .getDOMNode() of a DOM node; instead, use the node directly.%s",r(e)):void 0}return this}function i(){var e=this._reactInternalComponent;return"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?Y(!1,"ReactDOMComponent: Do not access .isMounted() of a DOM node.%s",r(e)):void 0),!!e}function a(){if("production"!==n.env.NODE_ENV){var e=this._reactInternalComponent;"production"!==n.env.NODE_ENV?Y(!1,"ReactDOMComponent: Do not access .setState(), .replaceState(), or .forceUpdate() of a DOM node. This is a no-op.%s",r(e)):void 0}}function s(e,t){var o=this._reactInternalComponent;"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?Y(!1,"ReactDOMComponent: Do not access .setProps() of a DOM node. Instead, call ReactDOM.render again at the top level.%s",r(o)):void 0),o&&(j.enqueueSetPropsInternal(o,e),t&&j.enqueueCallbackInternal(o,t))}function u(e,t){var o=this._reactInternalComponent;"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?Y(!1,"ReactDOMComponent: Do not access .replaceProps() of a DOM node. Instead, call ReactDOM.render again at the top level.%s",r(o)):void 0),o&&(j.enqueueReplacePropsInternal(o,e),t&&j.enqueueCallbackInternal(o,t))}function c(e){if("object"==typeof e){if(Array.isArray(e))return"["+e.map(c).join(", ")+"]";var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=/^[a-z$_][\w$_]*$/i.test(n)?n:JSON.stringify(n);t.push(r+": "+c(e[n]))}return"{"+t.join(", ")+"}"}return"string"==typeof e?JSON.stringify(e):"function"==typeof e?"[function object]":String(e)}function l(e,t,r){if(null!=e&&null!=t&&!Z(e,t)){var o,i=r._tag,a=r._currentElement._owner;a&&(o=a.getName());var s=o+"|"+i;re.hasOwnProperty(s)||(re[s]=!0,"production"!==n.env.NODE_ENV?Y(!1,"`%s` was passed a style object that has previously been mutated. Mutating `style` is deprecated. Consider cloning it beforehand. Check the `render` %s. Previous style: %s. Mutated style: %s.",i,a?"of `"+o+"`":"using <"+i+">",c(e),c(t)):void 0)}}function p(e,t){t&&("production"!==n.env.NODE_ENV&&se[e._tag]&&("production"!==n.env.NODE_ENV?Y(null==t.children&&null==t.dangerouslySetInnerHTML,"%s is a void element tag and must not have `children` or use `props.dangerouslySetInnerHTML`.%s",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?"production"!==n.env.NODE_ENV?z(!1,"Can only set one of `children` or `props.dangerouslySetInnerHTML`."):z(!1):void 0,"object"==typeof t.dangerouslySetInnerHTML&&te in t.dangerouslySetInnerHTML?void 0:"production"!==n.env.NODE_ENV?z(!1,"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information."):z(!1)),"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?Y(null==t.innerHTML,"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."):void 0,"production"!==n.env.NODE_ENV?Y(!t.contentEditable||null==t.children,"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."):void 0),null!=t.style&&"object"!=typeof t.style?"production"!==n.env.NODE_ENV?z(!1,"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.%s",r(e)):z(!1):void 0)}function f(e,t,r,o){"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?Y("onScroll"!==t||G("scroll",!0),"This browser doesn't support the `onScroll` event"):void 0);var i=I.findReactContainerForID(e);if(i){var a=i.nodeType===ne?i.ownerDocument:i;K(t,a)}o.getReactMountReady().enqueue(d,{id:e,registrationName:t,listener:r})}function d(){var e=this;T.putListener(e.id,e.registrationName,e.listener)}function h(){var e=this;e._rootNodeID?void 0:"production"!==n.env.NODE_ENV?z(!1,"Must be mounted to trap events"):z(!1);var t=I.getNode(e._rootNodeID);switch(t?void 0:"production"!==n.env.NODE_ENV?z(!1,"trapBubbledEvent(...): Requires node to be rendered."):z(!1),e._tag){case"iframe":e._wrapperState.listeners=[T.trapBubbledEvent(O.topLevelTypes.topLoad,"load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var r in oe)oe.hasOwnProperty(r)&&e._wrapperState.listeners.push(T.trapBubbledEvent(O.topLevelTypes[r],oe[r],t));break;case"img":e._wrapperState.listeners=[T.trapBubbledEvent(O.topLevelTypes.topError,"error",t),T.trapBubbledEvent(O.topLevelTypes.topLoad,"load",t)];break;case"form":e._wrapperState.listeners=[T.trapBubbledEvent(O.topLevelTypes.topReset,"reset",t),T.trapBubbledEvent(O.topLevelTypes.topSubmit,"submit",t)]}}function g(){N.mountReadyWrapper(this)}function m(){M.postUpdateWrapper(this)}function y(e){le.call(ce,e)||(ue.test(e)?void 0:"production"!==n.env.NODE_ENV?z(!1,"Invalid tag: %s",e):z(!1),ce[e]=!0)}function v(e,t){e=F({},e);var n=e[W.ancestorInfoContextKey];return e[W.ancestorInfoContextKey]=W.updatedAncestorInfo(n,t._tag,t),e}function _(e,t){return e.indexOf("-")>=0||null!=t.is}function b(e){y(e),this._tag=e.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null,"production"!==n.env.NODE_ENV&&(this._unprocessedContextDev=null,this._processedContextDev=null)}var E,x=e("./AutoFocusUtils"),C=e("./CSSPropertyOperations"),w=e("./DOMProperty"),S=e("./DOMPropertyOperations"),O=e("./EventConstants"),T=e("./ReactBrowserEventEmitter"),P=e("./ReactComponentBrowserEnvironment"),R=e("./ReactDOMButton"),N=e("./ReactDOMInput"),A=e("./ReactDOMOption"),M=e("./ReactDOMSelect"),D=e("./ReactDOMTextarea"),I=e("./ReactMount"),L=e("./ReactMultiChild"),k=e("./ReactPerf"),j=e("./ReactUpdateQueue"),F=e("./Object.assign"),V=e("./canDefineProperty"),U=e("./escapeTextContentForBrowser"),z=e("fbjs/lib/invariant"),G=e("./isEventSupported"),H=e("fbjs/lib/keyOf"),B=e("./setInnerHTML"),q=e("./setTextContent"),Z=e("fbjs/lib/shallowEqual"),W=e("./validateDOMNesting"),Y=e("fbjs/lib/warning"),X=T.deleteListener,K=T.listenTo,Q=T.registrationNameModules,$={string:!0,number:!0},J=H({children:null}),ee=H({style:null}),te=H({__html:null}),ne=1;"production"!==n.env.NODE_ENV&&(E={props:{enumerable:!1,get:function(){var e=this._reactInternalComponent;return"production"!==n.env.NODE_ENV?Y(!1,"ReactDOMComponent: Do not access .props of a DOM node; instead, recreate the props as `render` did originally or read the DOM properties/attributes directly from this node (e.g., this.refs.box.className).%s",r(e)):void 0,e._currentElement.props}}});var re={},oe={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},ie={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ae={listing:!0,pre:!0,textarea:!0},se=F({menuitem:!0},ie),ue=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ce={},le={}.hasOwnProperty;b.displayName="ReactDOMComponent",b.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,r){this._rootNodeID=e;var o=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(h,this);break;case"button":o=R.getNativeProps(this,o,r);break;case"input":N.mountWrapper(this,o,r),o=N.getNativeProps(this,o,r);break;case"option":A.mountWrapper(this,o,r),o=A.getNativeProps(this,o,r);break;case"select":M.mountWrapper(this,o,r),o=M.getNativeProps(this,o,r),r=M.processChildContext(this,o,r);break;case"textarea":D.mountWrapper(this,o,r),o=D.getNativeProps(this,o,r)}p(this,o),"production"!==n.env.NODE_ENV&&r[W.ancestorInfoContextKey]&&W(this._tag,this,r[W.ancestorInfoContextKey]),"production"!==n.env.NODE_ENV&&(this._unprocessedContextDev=r,this._processedContextDev=v(r,this),r=this._processedContextDev);var i;if(t.useCreateElement){var a=r[I.ownerDocumentContextKey],s=a.createElement(this._currentElement.type);S.setAttributeForID(s,this._rootNodeID),I.getID(s),this._updateDOMProperties({},o,t,s),this._createInitialChildren(t,o,r,s),i=s}else{var u=this._createOpenTagMarkupAndPutListeners(t,o),c=this._createContentMarkup(t,o,r);i=!c&&ie[this._tag]?u+"/>":u+">"+c+"</"+this._currentElement.type+">"}switch(this._tag){case"input":t.getReactMountReady().enqueue(g,this);case"button":case"select":case"textarea":o.autoFocus&&t.getReactMountReady().enqueue(x.focusDOMComponent,this)}return i},_createOpenTagMarkupAndPutListeners:function(e,t){var r="<"+this._currentElement.type;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];if(null!=i)if(Q.hasOwnProperty(o))i&&f(this._rootNodeID,o,i,e);else{o===ee&&(i&&("production"!==n.env.NODE_ENV&&(this._previousStyle=i),i=this._previousStyleCopy=F({},t.style)),i=C.createMarkupForStyles(i));var a=null;null!=this._tag&&_(this._tag,t)?o!==J&&(a=S.createMarkupForCustomAttribute(o,i)):a=S.createMarkupForProperty(o,i),a&&(r+=" "+a)}}if(e.renderToStaticMarkup)return r;var s=S.createMarkupForID(this._rootNodeID);return r+" "+s},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=$[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=U(i);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return ae[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&B(r,o.__html);else{var i=$[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)q(r,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;u<s.length;u++)r.appendChild(s[u])}},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,r,o){var i=t.props,a=this._currentElement.props;switch(this._tag){case"button":i=R.getNativeProps(this,i),a=R.getNativeProps(this,a);break;case"input":N.updateWrapper(this),i=N.getNativeProps(this,i),a=N.getNativeProps(this,a);break;case"option":i=A.getNativeProps(this,i),a=A.getNativeProps(this,a);break;case"select":i=M.getNativeProps(this,i),a=M.getNativeProps(this,a);break;case"textarea":D.updateWrapper(this),i=D.getNativeProps(this,i),a=D.getNativeProps(this,a)}"production"!==n.env.NODE_ENV&&(this._unprocessedContextDev!==o&&(this._unprocessedContextDev=o,this._processedContextDev=v(o,this)),o=this._processedContextDev),p(this,a),this._updateDOMProperties(i,a,e,null),this._updateDOMChildren(i,a,e,o),!V&&this._nodeWithLegacyProperties&&(this._nodeWithLegacyProperties.props=a),"select"===this._tag&&e.getReactMountReady().enqueue(m,this)},_updateDOMProperties:function(e,t,r,o){var i,a,s;for(i in e)if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i))if(i===ee){var u=this._previousStyleCopy;for(a in u)u.hasOwnProperty(a)&&(s=s||{},s[a]="");this._previousStyleCopy=null}else Q.hasOwnProperty(i)?e[i]&&X(this._rootNodeID,i):(w.properties[i]||w.isCustomAttribute(i))&&(o||(o=I.getNode(this._rootNodeID)),S.deleteValueForProperty(o,i));for(i in t){var c=t[i],p=i===ee?this._previousStyleCopy:e[i];if(t.hasOwnProperty(i)&&c!==p)if(i===ee)if(c?("production"!==n.env.NODE_ENV&&(l(this._previousStyleCopy,this._previousStyle,this),this._previousStyle=c),c=this._previousStyleCopy=F({},c)):this._previousStyleCopy=null,p){for(a in p)!p.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(s=s||{},s[a]="");for(a in c)c.hasOwnProperty(a)&&p[a]!==c[a]&&(s=s||{},s[a]=c[a])}else s=c;else Q.hasOwnProperty(i)?c?f(this._rootNodeID,i,c,r):p&&X(this._rootNodeID,i):_(this._tag,t)?(o||(o=I.getNode(this._rootNodeID)),i===J&&(c=null),S.setValueForAttribute(o,i,c)):(w.properties[i]||w.isCustomAttribute(i))&&(o||(o=I.getNode(this._rootNodeID)),null!=c?S.setValueForProperty(o,i,c):S.deleteValueForProperty(o,i))}s&&(o||(o=I.getNode(this._rootNodeID)),C.setValueForStyles(o,s))},_updateDOMChildren:function(e,t,n,r){var o=$[typeof e.children]?e.children:null,i=$[typeof t.children]?t.children:null,a=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,u=null!=o?null:e.children,c=null!=i?null:t.children,l=null!=o||null!=a,p=null!=i||null!=s;null!=u&&null==c?this.updateChildren(null,n,r):l&&!p&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=s?a!==s&&this.updateMarkup(""+s):null!=c&&this.updateChildren(c,n,r)},unmountComponent:function(){switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":var e=this._wrapperState.listeners;if(e)for(var t=0;t<e.length;t++)e[t].remove();break;case"input":N.unmountWrapper(this);break;case"html":case"head":case"body":"production"!==n.env.NODE_ENV?z(!1,"<%s> tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.",this._tag):z(!1)}if(this.unmountChildren(),T.deleteAllListeners(this._rootNodeID),P.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null,this._wrapperState=null,this._nodeWithLegacyProperties){var r=this._nodeWithLegacyProperties;r._reactInternalComponent=null,this._nodeWithLegacyProperties=null}},getPublicInstance:function(){if(!this._nodeWithLegacyProperties){var e=I.getNode(this._rootNodeID);e._reactInternalComponent=this,e.getDOMNode=o,e.isMounted=i,e.setState=a,e.replaceState=a,e.forceUpdate=a,e.setProps=s,e.replaceProps=u,"production"!==n.env.NODE_ENV&&V?Object.defineProperties(e,E):e.props=this._currentElement.props,this._nodeWithLegacyProperties=e}return this._nodeWithLegacyProperties}},k.measureMethods(b,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),F(b.prototype,b.Mixin,L.Mixin),t.exports=b}).call(this,e("_process"))},{"./AutoFocusUtils":348,"./CSSPropertyOperations":351,"./DOMProperty":356,"./DOMPropertyOperations":357,"./EventConstants":361,"./Object.assign":369,"./ReactBrowserEventEmitter":373,"./ReactComponentBrowserEnvironment":380,"./ReactDOMButton":385,"./ReactDOMInput":390,"./ReactDOMOption":391,"./ReactDOMSelect":392,"./ReactDOMTextarea":396,"./ReactMount":414,"./ReactMultiChild":415,"./ReactPerf":420,"./ReactUpdateQueue":434,"./canDefineProperty":456,"./escapeTextContentForBrowser":459,"./isEventSupported":471,"./setInnerHTML":476,"./setTextContent":477,"./validateDOMNesting":480,_process:2,"fbjs/lib/invariant":497,"fbjs/lib/keyOf":501,"fbjs/lib/shallowEqual":506,"fbjs/lib/warning":508}],387:[function(e,t,n){(function(n){"use strict";function r(e){return"production"!==n.env.NODE_ENV?i.createFactory(e):o.createFactory(e)}var o=e("./ReactElement"),i=e("./ReactElementValidator"),a=e("fbjs/lib/mapObject"),s=a({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",
|
26 |
-
table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul",var:"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);t.exports=s}).call(this,e("_process"))},{"./ReactElement":401,"./ReactElementValidator":402,_process:2,"fbjs/lib/mapObject":502}],388:[function(e,t,n){"use strict";var r={useCreateElement:!1};t.exports=r},{}],389:[function(e,t,n){(function(n){"use strict";var r=e("./DOMChildrenOperations"),o=e("./DOMPropertyOperations"),i=e("./ReactMount"),a=e("./ReactPerf"),s=e("fbjs/lib/invariant"),u={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},c={updatePropertyByID:function(e,t,r){var a=i.getNode(e);u.hasOwnProperty(t)?"production"!==n.env.NODE_ENV?s(!1,"updatePropertyByID(...): %s",u[t]):s(!1):void 0,null!=r?o.setValueForProperty(a,t,r):o.deleteValueForProperty(a,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=i.getNode(e);r.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n<e.length;n++)e[n].parentNode=i.getNode(e[n].parentID);r.processUpdates(e,t)}};a.measureMethods(c,"ReactDOMIDOperations",{dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),t.exports=c}).call(this,e("_process"))},{"./DOMChildrenOperations":355,"./DOMPropertyOperations":357,"./ReactMount":414,"./ReactPerf":420,_process:2,"fbjs/lib/invariant":497}],390:[function(e,t,n){(function(n){"use strict";function r(){this._rootNodeID&&f.updateWrapper(this)}function o(e){var t=this._currentElement.props,o=a.executeOnChange(t,e);u.asap(r,this);var i=t.name;if("radio"===t.type&&null!=i){for(var c=s.getNode(this._rootNodeID),f=c;f.parentNode;)f=f.parentNode;for(var d=f.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),h=0;h<d.length;h++){var g=d[h];if(g!==c&&g.form===c.form){var m=s.getID(g);m?void 0:"production"!==n.env.NODE_ENV?l(!1,"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."):l(!1);var y=p[m];y?void 0:"production"!==n.env.NODE_ENV?l(!1,"ReactDOMInput: Unknown radio button ID %s.",m):l(!1),u.asap(r,y)}}}return o}var i=e("./ReactDOMIDOperations"),a=e("./LinkedValueUtils"),s=e("./ReactMount"),u=e("./ReactUpdates"),c=e("./Object.assign"),l=e("fbjs/lib/invariant"),p={},f={getNativeProps:function(e,t,n){var r=a.getValue(t),o=a.getChecked(t),i=c({},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=r?r:e._wrapperState.initialValue,checked:null!=o?o:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange});return i},mountWrapper:function(e,t){"production"!==n.env.NODE_ENV&&a.checkPropTypes("input",t,e._currentElement._owner);var r=t.defaultValue;e._wrapperState={initialChecked:t.defaultChecked||!1,initialValue:null!=r?r:null,onChange:o.bind(e)}},mountReadyWrapper:function(e){p[e._rootNodeID]=e},unmountWrapper:function(e){delete p[e._rootNodeID]},updateWrapper:function(e){var t=e._currentElement.props,n=t.checked;null!=n&&i.updatePropertyByID(e._rootNodeID,"checked",n||!1);var r=a.getValue(t);null!=r&&i.updatePropertyByID(e._rootNodeID,"value",""+r)}};t.exports=f}).call(this,e("_process"))},{"./LinkedValueUtils":368,"./Object.assign":369,"./ReactDOMIDOperations":389,"./ReactMount":414,"./ReactUpdates":435,_process:2,"fbjs/lib/invariant":497}],391:[function(e,t,n){(function(n){"use strict";var r=e("./ReactChildren"),o=e("./ReactDOMSelect"),i=e("./Object.assign"),a=e("fbjs/lib/warning"),s=o.valueContextKey,u={mountWrapper:function(e,t,r){"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?a(null==t.selected,"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."):void 0);var o=r[s],i=null;if(null!=o)if(i=!1,Array.isArray(o)){for(var u=0;u<o.length;u++)if(""+o[u]==""+t.value){i=!0;break}}else i=""+o==""+t.value;e._wrapperState={selected:i}},getNativeProps:function(e,t,o){var s=i({selected:void 0,children:void 0},t);null!=e._wrapperState.selected&&(s.selected=e._wrapperState.selected);var u="";return r.forEach(t.children,function(e){null!=e&&("string"==typeof e||"number"==typeof e?u+=e:"production"!==n.env.NODE_ENV?a(!1,"Only strings and numbers are supported as <option> children."):void 0)}),u&&(s.children=u),s}};t.exports=u}).call(this,e("_process"))},{"./Object.assign":369,"./ReactChildren":377,"./ReactDOMSelect":392,_process:2,"fbjs/lib/warning":508}],392:[function(e,t,n){(function(n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=u.getValue(e);null!=t&&a(this,Boolean(e.multiple),t)}}function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function i(e,t){var r=e._currentElement._owner;u.checkPropTypes("select",t,r);for(var i=0;i<h.length;i++){var a=h[i];null!=t[a]&&(t.multiple?"production"!==n.env.NODE_ENV?f(Array.isArray(t[a]),"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,o(r)):void 0:"production"!==n.env.NODE_ENV?f(!Array.isArray(t[a]),"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,o(r)):void 0)}}function a(e,t,n){var r,o,i=c.getNode(e._rootNodeID).options;if(t){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<i.length;o++){var a=r.hasOwnProperty(i[o].value);i[o].selected!==a&&(i[o].selected=a)}}else{for(r=""+n,o=0;o<i.length;o++)if(i[o].value===r)return void(i[o].selected=!0);i.length&&(i[0].selected=!0)}}function s(e){var t=this._currentElement.props,n=u.executeOnChange(t,e);return this._wrapperState.pendingUpdate=!0,l.asap(r,this),n}var u=e("./LinkedValueUtils"),c=e("./ReactMount"),l=e("./ReactUpdates"),p=e("./Object.assign"),f=e("fbjs/lib/warning"),d="__ReactDOMSelect_value$"+Math.random().toString(36).slice(2),h=["value","defaultValue"],g={valueContextKey:d,getNativeProps:function(e,t,n){return p({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){"production"!==n.env.NODE_ENV&&i(e,t);var r=u.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=r?r:t.defaultValue,onChange:s.bind(e),wasMultiple:Boolean(t.multiple)}},processChildContext:function(e,t,n){var r=p({},n);return r[d]=e._wrapperState.initialValue,r},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var r=u.getValue(t);null!=r?(e._wrapperState.pendingUpdate=!1,a(e,Boolean(t.multiple),r)):n!==Boolean(t.multiple)&&(null!=t.defaultValue?a(e,Boolean(t.multiple),t.defaultValue):a(e,Boolean(t.multiple),t.multiple?[]:""))}};t.exports=g}).call(this,e("_process"))},{"./LinkedValueUtils":368,"./Object.assign":369,"./ReactMount":414,"./ReactUpdates":435,_process:2,"fbjs/lib/warning":508}],393:[function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var i=o.text.length,a=i+r;return{start:i,end:a}}function i(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=t.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(e){return null}var u=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),c=u?0:s.toString().length,l=s.cloneRange();l.selectNodeContents(e),l.setEnd(s.startContainer,s.startOffset);var p=r(l.startContainer,l.startOffset,l.endContainer,l.endOffset),f=p?0:l.toString().length,d=f+c,h=document.createRange();h.setStart(n,o),h.setEnd(i,a);var g=h.collapsed;return{start:g?d:f,end:g?f:d}}function a(e,t){var n,r,o=document.selection.createRange().duplicate();"undefined"==typeof t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=c(e,o),u=c(e,i);if(s&&u){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=e("fbjs/lib/ExecutionEnvironment"),c=e("./getNodeForCharacterOffset"),l=e("./getTextContentAccessor"),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:p?o:i,setOffsets:p?a:s};t.exports=f},{"./getNodeForCharacterOffset":468,"./getTextContentAccessor":469,"fbjs/lib/ExecutionEnvironment":483}],394:[function(e,t,n){"use strict";var r=e("./ReactDefaultInjection"),o=e("./ReactServerRendering"),i=e("./ReactVersion");r.inject();var a={renderToString:o.renderToString,renderToStaticMarkup:o.renderToStaticMarkup,version:i};t.exports=a},{"./ReactDefaultInjection":398,"./ReactServerRendering":429,"./ReactVersion":436}],395:[function(e,t,n){(function(n){"use strict";var r=e("./DOMChildrenOperations"),o=e("./DOMPropertyOperations"),i=e("./ReactComponentBrowserEnvironment"),a=e("./ReactMount"),s=e("./Object.assign"),u=e("./escapeTextContentForBrowser"),c=e("./setTextContent"),l=e("./validateDOMNesting"),p=function(e){};s(p.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,r){if("production"!==n.env.NODE_ENV&&r[l.ancestorInfoContextKey]&&l("span",null,r[l.ancestorInfoContextKey]),this._rootNodeID=e,t.useCreateElement){var i=r[a.ownerDocumentContextKey],s=i.createElement("span");return o.setAttributeForID(s,e),a.getID(s),c(s,this._stringText),s}var p=u(this._stringText);return t.renderToStaticMarkup?p:"<span "+o.createMarkupForID(e)+">"+p+"</span>"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=a.getNode(this._rootNodeID);r.updateTextContent(o,n)}}},unmountComponent:function(){i.unmountIDFromEnvironment(this._rootNodeID)}}),t.exports=p}).call(this,e("_process"))},{"./DOMChildrenOperations":355,"./DOMPropertyOperations":357,"./Object.assign":369,"./ReactComponentBrowserEnvironment":380,"./ReactMount":414,"./escapeTextContentForBrowser":459,"./setTextContent":477,"./validateDOMNesting":480,_process:2}],396:[function(e,t,n){(function(n){"use strict";function r(){this._rootNodeID&&p.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=i.executeOnChange(t,e);return s.asap(r,this),n}var i=e("./LinkedValueUtils"),a=e("./ReactDOMIDOperations"),s=e("./ReactUpdates"),u=e("./Object.assign"),c=e("fbjs/lib/invariant"),l=e("fbjs/lib/warning"),p={getNativeProps:function(e,t,r){null!=t.dangerouslySetInnerHTML?"production"!==n.env.NODE_ENV?c(!1,"`dangerouslySetInnerHTML` does not make sense on <textarea>."):c(!1):void 0;var o=u({},t,{defaultValue:void 0,value:void 0,children:e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return o},mountWrapper:function(e,t){"production"!==n.env.NODE_ENV&&i.checkPropTypes("textarea",t,e._currentElement._owner);var r=t.defaultValue,a=t.children;null!=a&&("production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?l(!1,"Use the `defaultValue` or `value` props instead of setting children on <textarea>."):void 0),null!=r?"production"!==n.env.NODE_ENV?c(!1,"If you supply `defaultValue` on a <textarea>, do not pass children."):c(!1):void 0,Array.isArray(a)&&(a.length<=1?void 0:"production"!==n.env.NODE_ENV?c(!1,"<textarea> can only have at most one child."):c(!1),a=a[0]),r=""+a),null==r&&(r="");var s=i.getValue(t);e._wrapperState={initialValue:""+(null!=s?s:r),onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=i.getValue(t);null!=n&&a.updatePropertyByID(e._rootNodeID,"value",""+n)}};t.exports=p}).call(this,e("_process"))},{"./LinkedValueUtils":368,"./Object.assign":369,"./ReactDOMIDOperations":389,"./ReactUpdates":435,_process:2,"fbjs/lib/invariant":497,"fbjs/lib/warning":508}],397:[function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=e("./ReactUpdates"),i=e("./Transaction"),a=e("./Object.assign"),s=e("fbjs/lib/emptyFunction"),u={initialize:s,close:function(){f.isBatchingUpdates=!1}},c={initialize:s,close:o.flushBatchedUpdates.bind(o)},l=[c,u];a(r.prototype,i.Mixin,{getTransactionWrappers:function(){return l}});var p=new r,f={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=f.isBatchingUpdates;f.isBatchingUpdates=!0,a?e(t,n,r,o,i):p.perform(e,null,t,n,r,o,i)}};t.exports=f},{"./Object.assign":369,"./ReactUpdates":435,"./Transaction":452,"fbjs/lib/emptyFunction":489}],398:[function(e,t,n){(function(n){"use strict";function r(){if(!S&&(S=!0,y.EventEmitter.injectReactEventListener(m),y.EventPluginHub.injectEventPluginOrder(s),y.EventPluginHub.injectInstanceHandle(v),y.EventPluginHub.injectMount(_),y.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:C,EnterLeaveEventPlugin:u,ChangeEventPlugin:i,SelectEventPlugin:E,BeforeInputEventPlugin:o}),y.NativeComponent.injectGenericComponentClass(h),y.NativeComponent.injectTextComponentClass(g),y.Class.injectMixin(p),y.DOMProperty.injectDOMPropertyConfig(l),y.DOMProperty.injectDOMPropertyConfig(w),y.EmptyComponent.injectEmptyComponent("noscript"),y.Updates.injectReconcileTransaction(b),y.Updates.injectBatchingStrategy(d),y.RootIndex.injectCreateReactRootIndex(c.canUseDOM?a.createReactRootIndex:x.createReactRootIndex),y.Component.injectEnvironment(f),"production"!==n.env.NODE_ENV)){var t=c.canUseDOM&&window.location.href||"";if(/[?&]react_perf\b/.test(t)){var r=e("./ReactDefaultPerf");r.start()}}}var o=e("./BeforeInputEventPlugin"),i=e("./ChangeEventPlugin"),a=e("./ClientReactRootIndex"),s=e("./DefaultEventPluginOrder"),u=e("./EnterLeaveEventPlugin"),c=e("fbjs/lib/ExecutionEnvironment"),l=e("./HTMLDOMPropertyConfig"),p=e("./ReactBrowserComponentMixin"),f=e("./ReactComponentBrowserEnvironment"),d=e("./ReactDefaultBatchingStrategy"),h=e("./ReactDOMComponent"),g=e("./ReactDOMTextComponent"),m=e("./ReactEventListener"),y=e("./ReactInjection"),v=e("./ReactInstanceHandles"),_=e("./ReactMount"),b=e("./ReactReconcileTransaction"),E=e("./SelectEventPlugin"),x=e("./ServerReactRootIndex"),C=e("./SimpleEventPlugin"),w=e("./SVGDOMPropertyConfig"),S=!1;t.exports={inject:r}}).call(this,e("_process"))},{"./BeforeInputEventPlugin":349,"./ChangeEventPlugin":353,"./ClientReactRootIndex":354,"./DefaultEventPluginOrder":359,"./EnterLeaveEventPlugin":360,"./HTMLDOMPropertyConfig":367,"./ReactBrowserComponentMixin":372,"./ReactComponentBrowserEnvironment":380,"./ReactDOMComponent":386,"./ReactDOMTextComponent":395,"./ReactDefaultBatchingStrategy":397,"./ReactDefaultPerf":399,"./ReactEventListener":407,"./ReactInjection":408,"./ReactInstanceHandles":410,"./ReactMount":414,"./ReactReconcileTransaction":424,"./SVGDOMPropertyConfig":437,"./SelectEventPlugin":438,"./ServerReactRootIndex":439,"./SimpleEventPlugin":440,_process:2,"fbjs/lib/ExecutionEnvironment":483}],399:[function(e,t,n){"use strict";function r(e){return Math.floor(100*e)/100}function o(e,t,n){e[t]=(e[t]||0)+n}var i=e("./DOMProperty"),a=e("./ReactDefaultPerfAnalysis"),s=e("./ReactMount"),u=e("./ReactPerf"),c=e("fbjs/lib/performanceNow"),l={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){l._injected||u.injection.injectMeasure(l.measure),l._allMeasurements.length=0,u.enableMeasure=!0},stop:function(){u.enableMeasure=!1},getLastMeasurements:function(){return l._allMeasurements},printExclusive:function(e){e=e||l._allMeasurements;var t=a.getExclusiveSummary(e);console.table(t.map(function(e){return{"Component class name":e.componentName,"Total inclusive time (ms)":r(e.inclusive),"Exclusive mount time (ms)":r(e.exclusive),"Exclusive render time (ms)":r(e.render),"Mount time per instance (ms)":r(e.exclusive/e.count),"Render time per instance (ms)":r(e.render/e.count),Instances:e.count}}))},printInclusive:function(e){e=e||l._allMeasurements;var t=a.getInclusiveSummary(e);console.table(t.map(function(e){return{"Owner > component":e.componentName,"Inclusive time (ms)":r(e.time),Instances:e.count}})),console.log("Total time:",a.getTotalTime(e).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(e){var t=a.getInclusiveSummary(e,!0);return t.map(function(e){return{"Owner > component":e.componentName,"Wasted time (ms)":e.time,Instances:e.count}})},printWasted:function(e){e=e||l._allMeasurements,console.table(l.getMeasurementsSummaryMap(e)),console.log("Total time:",a.getTotalTime(e).toFixed(2)+" ms")},printDOM:function(e){e=e||l._allMeasurements;var t=a.getDOMSummary(e);console.table(t.map(function(e){var t={};return t[i.ID_ATTRIBUTE_NAME]=e.id,t.type=e.type,t.args=JSON.stringify(e.args),t})),console.log("Total time:",a.getTotalTime(e).toFixed(2)+" ms")},_recordWrite:function(e,t,n,r){var o=l._allMeasurements[l._allMeasurements.length-1].writes;o[e]=o[e]||[],o[e].push({type:t,time:n,args:r})},measure:function(e,t,n){return function(){for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];var u,p,f;if("_renderNewRootComponent"===t||"flushBatchedUpdates"===t)return l._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0,created:{}}),f=c(),p=n.apply(this,i),l._allMeasurements[l._allMeasurements.length-1].totalTime=c()-f,p;if("_mountImageIntoNode"===t||"ReactBrowserEventEmitter"===e||"ReactDOMIDOperations"===e||"CSSPropertyOperations"===e||"DOMChildrenOperations"===e||"DOMPropertyOperations"===e){if(f=c(),p=n.apply(this,i),u=c()-f,"_mountImageIntoNode"===t){var d=s.getID(i[1]);l._recordWrite(d,t,u,i[0])}else if("dangerouslyProcessChildrenUpdates"===t)i[0].forEach(function(e){var t={};null!==e.fromIndex&&(t.fromIndex=e.fromIndex),null!==e.toIndex&&(t.toIndex=e.toIndex),null!==e.textContent&&(t.textContent=e.textContent),null!==e.markupIndex&&(t.markup=i[1][e.markupIndex]),l._recordWrite(e.parentID,e.type,u,t)});else{var h=i[0];"object"==typeof h&&(h=s.getID(i[0])),l._recordWrite(h,t,u,Array.prototype.slice.call(i,1))}return p}if("ReactCompositeComponent"!==e||"mountComponent"!==t&&"updateComponent"!==t&&"_renderValidatedComponent"!==t)return n.apply(this,i);if(this._currentElement.type===s.TopLevelWrapper)return n.apply(this,i);var g="mountComponent"===t?i[0]:this._rootNodeID,m="_renderValidatedComponent"===t,y="mountComponent"===t,v=l._mountStack,_=l._allMeasurements[l._allMeasurements.length-1];if(m?o(_.counts,g,1):y&&(_.created[g]=!0,v.push(0)),f=c(),p=n.apply(this,i),u=c()-f,m)o(_.render,g,u);else if(y){var b=v.pop();v[v.length-1]+=u,o(_.exclusive,g,u-b),o(_.inclusive,g,u)}else o(_.inclusive,g,u);return _.displayNames[g]={current:this.getName(),owner:this._currentElement._owner?this._currentElement._owner.getName():"<root>"},p}}};t.exports=l},{"./DOMProperty":356,"./ReactDefaultPerfAnalysis":400,"./ReactMount":414,"./ReactPerf":420,"fbjs/lib/performanceNow":505}],400:[function(e,t,n){"use strict";function r(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];t+=r.totalTime}return t}function o(e){var t=[];return e.forEach(function(e){Object.keys(e.writes).forEach(function(n){e.writes[n].forEach(function(e){t.push({id:n,type:l[e.type]||e.type,args:e.args})})})}),t}function i(e){for(var t,n={},r=0;r<e.length;r++){var o=e[r],i=u({},o.exclusive,o.inclusive);for(var a in i)t=o.displayNames[a].current,n[t]=n[t]||{componentName:t,inclusive:0,exclusive:0,render:0,count:0},o.render[a]&&(n[t].render+=o.render[a]),o.exclusive[a]&&(n[t].exclusive+=o.exclusive[a]),o.inclusive[a]&&(n[t].inclusive+=o.inclusive[a]),o.counts[a]&&(n[t].count+=o.counts[a])}var s=[];for(t in n)n[t].exclusive>=c&&s.push(n[t]);return s.sort(function(e,t){return t.exclusive-e.exclusive}),s}function a(e,t){for(var n,r={},o=0;o<e.length;o++){var i,a=e[o],l=u({},a.exclusive,a.inclusive);t&&(i=s(a));for(var p in l)if(!t||i[p]){var f=a.displayNames[p];n=f.owner+" > "+f.current,r[n]=r[n]||{componentName:n,time:0,count:0},a.inclusive[p]&&(r[n].time+=a.inclusive[p]),a.counts[p]&&(r[n].count+=a.counts[p])}}var d=[];for(n in r)r[n].time>=c&&d.push(r[n]);return d.sort(function(e,t){return t.time-e.time}),d}function s(e){var t={},n=Object.keys(e.writes),r=u({},e.exclusive,e.inclusive);for(var o in r){for(var i=!1,a=0;a<n.length;a++)if(0===n[a].indexOf(o)){i=!0;break}e.created[o]&&(i=!0),!i&&e.counts[o]>0&&(t[o]=!0)}return t}var u=e("./Object.assign"),c=1.2,l={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",SET_MARKUP:"set innerHTML",TEXT_CONTENT:"set textContent",setValueForProperty:"update attribute",setValueForAttribute:"update attribute",deleteValueForProperty:"remove attribute",setValueForStyles:"update styles",replaceNodeWithMarkup:"replace",updateTextContent:"set textContent"},p={getExclusiveSummary:i,getInclusiveSummary:a,getDOMSummary:o,getTotalTime:r};t.exports=p},{"./Object.assign":369}],401:[function(e,t,n){(function(n){"use strict";var r=e("./ReactCurrentOwner"),o=e("./Object.assign"),i=e("./canDefineProperty"),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,s={key:!0,ref:!0,__self:!0,__source:!0},u=function(e,t,r,o,s,u,c){var l={$$typeof:a,type:e,key:t,ref:r,props:c,_owner:u};return"production"!==n.env.NODE_ENV&&(l._store={},i?(Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s})):(l._store.validated=!1,l._self=o,l._source=s),Object.freeze(l.props),Object.freeze(l)),l};u.createElement=function(e,t,n){var o,i={},a=null,c=null,l=null,p=null;if(null!=t){c=void 0===t.ref?null:t.ref,a=void 0===t.key?null:""+t.key,l=void 0===t.__self?null:t.__self,p=void 0===t.__source?null:t.__source;for(o in t)t.hasOwnProperty(o)&&!s.hasOwnProperty(o)&&(i[o]=t[o])}var f=arguments.length-2;if(1===f)i.children=n;else if(f>1){for(var d=Array(f),h=0;h<f;h++)d[h]=arguments[h+2];i.children=d}if(e&&e.defaultProps){var g=e.defaultProps;for(o in g)"undefined"==typeof i[o]&&(i[o]=g[o])}return u(e,a,c,l,p,r.current,i)},u.createFactory=function(e){var t=u.createElement.bind(null,e);return t.type=e,t},u.cloneAndReplaceKey=function(e,t){var n=u(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},u.cloneAndReplaceProps=function(e,t){var r=u(e.type,e.key,e.ref,e._self,e._source,e._owner,t);return"production"!==n.env.NODE_ENV&&(r._store.validated=e._store.validated),r},u.cloneElement=function(e,t,n){var i,a=o({},e.props),c=e.key,l=e.ref,p=e._self,f=e._source,d=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,d=r.current),void 0!==t.key&&(c=""+t.key);for(i in t)t.hasOwnProperty(i)&&!s.hasOwnProperty(i)&&(a[i]=t[i])}var h=arguments.length-2;if(1===h)a.children=n;else if(h>1){for(var g=Array(h),m=0;m<h;m++)g[m]=arguments[m+2];a.children=g}return u(e.type,c,l,p,f,d,a)},u.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.exports=u}).call(this,e("_process"))},{"./Object.assign":369,"./ReactCurrentOwner":383,"./canDefineProperty":456,_process:2}],402:[function(e,t,n){(function(n){"use strict";function r(){if(f.current){var e=f.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=i("uniqueKey",e,t);null!==r&&("production"!==n.env.NODE_ENV?m(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s%s',r.parentOrOwner||"",r.childOwner||"",r.url||""):void 0)}}function i(e,t,n){var o=r();if(!o){var i="string"==typeof n?n:n.displayName||n.name;i&&(o=" Check the top-level render call using <"+i+">.")}var a=y[e]||(y[e]={});if(a[o])return null;a[o]=!0;var s={parentOrOwner:o,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==f.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+"."),s}function a(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];c.isValidElement(r)&&o(r,t)}else if(c.isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var i=h(e);if(i&&i!==e.entries)for(var a,s=i.call(e);!(a=s.next()).done;)c.isValidElement(a.value)&&o(a.value,t)}}function s(e,t,o,i){for(var a in t)if(t.hasOwnProperty(a)){var s;try{"function"!=typeof t[a]?"production"!==n.env.NODE_ENV?g(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e||"React class",p[i],a):g(!1):void 0,s=t[a](o,a,e,i)}catch(e){s=e}if("production"!==n.env.NODE_ENV?m(!s||s instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",e||"React class",p[i],a,typeof s):void 0,s instanceof Error&&!(s.message in v)){v[s.message]=!0;var u=r();"production"!==n.env.NODE_ENV?m(!1,"Failed propType: %s%s",s.message,u):void 0}}}function u(e){var t=e.type;if("function"==typeof t){var r=t.displayName||t.name;t.propTypes&&s(r,t.propTypes,e.props,l.prop),"function"==typeof t.getDefaultProps&&("production"!==n.env.NODE_ENV?m(t.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."):void 0)}}var c=e("./ReactElement"),l=e("./ReactPropTypeLocations"),p=e("./ReactPropTypeLocationNames"),f=e("./ReactCurrentOwner"),d=e("./canDefineProperty"),h=e("./getIteratorFn"),g=e("fbjs/lib/invariant"),m=e("fbjs/lib/warning"),y={},v={},_={createElement:function(e,t,o){var i="string"==typeof e||"function"==typeof e;"production"!==n.env.NODE_ENV?m(i,"React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components).%s",r()):void 0;var s=c.createElement.apply(this,arguments);if(null==s)return s;if(i)for(var l=2;l<arguments.length;l++)a(arguments[l],e);return u(s),s},createFactory:function(e){var t=_.createElement.bind(null,e);return t.type=e,"production"!==n.env.NODE_ENV&&d&&Object.defineProperty(t,"type",{enumerable:!1,get:function(){return"production"!==n.env.NODE_ENV?m(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."):void 0,Object.defineProperty(this,"type",{value:e}),e}}),t},cloneElement:function(e,t,n){for(var r=c.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)a(arguments[o],r.type);return u(r),r}};t.exports=_}).call(this,e("_process"))},{"./ReactCurrentOwner":383,"./ReactElement":401,"./ReactPropTypeLocationNames":421,"./ReactPropTypeLocations":422,"./canDefineProperty":456,"./getIteratorFn":467,_process:2,"fbjs/lib/invariant":497,"fbjs/lib/warning":508}],403:[function(e,t,n){"use strict";function r(){a.registerNullComponentID(this._rootNodeID)}var o,i=e("./ReactElement"),a=e("./ReactEmptyComponentRegistry"),s=e("./ReactReconciler"),u=e("./Object.assign"),c={injectEmptyComponent:function(e){o=i.createElement(e)}},l=function(e){this._currentElement=null,this._rootNodeID=null,this._renderedComponent=e(o)};u(l.prototype,{construct:function(e){},mountComponent:function(e,t,n){return t.getReactMountReady().enqueue(r,this),this._rootNodeID=e,s.mountComponent(this._renderedComponent,e,t,n)},receiveComponent:function(){},unmountComponent:function(e,t,n){s.unmountComponent(this._renderedComponent),a.deregisterNullComponentID(this._rootNodeID),this._rootNodeID=null,this._renderedComponent=null}}),l.injection=c,t.exports=l},{"./Object.assign":369,"./ReactElement":401,"./ReactEmptyComponentRegistry":404,"./ReactReconciler":425}],404:[function(e,t,n){"use strict";function r(e){return!!a[e]}function o(e){a[e]=!0}function i(e){delete a[e]}var a={},s={isNullComponentID:r,registerNullComponentID:o,deregisterNullComponentID:i};t.exports=s},{}],405:[function(e,t,n){(function(e){"use strict";function n(e,t,n,o){try{return t(n,o)}catch(e){return void(null===r&&(r=e))}}var r=null,o={invokeGuardedCallback:n,invokeGuardedCallbackWithCatch:n,rethrowCaughtError:function(){if(r){var e=r;throw r=null,e}}};if("production"!==e.env.NODE_ENV&&"undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var i=document.createElement("react");o.invokeGuardedCallback=function(e,t,n,r){var o=t.bind(null,n,r),a="react-"+e;i.addEventListener(a,o,!1);var s=document.createEvent("Event");s.initEvent(a,!1,!1),i.dispatchEvent(s),i.removeEventListener(a,o,!1)}}t.exports=o}).call(this,e("_process"))},{_process:2}],406:[function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=e("./EventPluginHub"),i={handleTopLevel:function(e,t,n,i,a){var s=o.extractEvents(e,t,n,i,a);r(s)}};t.exports=i},{"./EventPluginHub":362}],407:[function(e,t,n){"use strict";function r(e){var t=f.getID(e),n=p.getReactRootIDFromNodeID(t),r=f.findReactContainerForID(n),o=f.getFirstReactDOM(r);return o}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){a(e)}function a(e){for(var t=f.getFirstReactDOM(g(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var o=0;o<e.ancestors.length;o++){t=e.ancestors[o];var i=f.getID(t)||"";y._handleTopLevel(e.topLevelType,t,i,e.nativeEvent,g(e.nativeEvent))}}function s(e){var t=m(window);e(t)}var u=e("fbjs/lib/EventListener"),c=e("fbjs/lib/ExecutionEnvironment"),l=e("./PooledClass"),p=e("./ReactInstanceHandles"),f=e("./ReactMount"),d=e("./ReactUpdates"),h=e("./Object.assign"),g=e("./getEventTarget"),m=e("fbjs/lib/getUnboundedScrollPosition");h(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),l.addPoolingTo(o,l.twoArgumentPooler);var y={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:c.canUseDOM?window:null,setHandleTopLevel:function(e){y._handleTopLevel=e},setEnabled:function(e){y._enabled=!!e},isEnabled:function(){return y._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?u.listen(r,t,y.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?u.capture(r,t,y.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=s.bind(null,e);u.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(y._enabled){var n=o.getPooled(e,t);try{d.batchedUpdates(i,n)}finally{o.release(n)}}}};t.exports=y},{"./Object.assign":369,"./PooledClass":370,"./ReactInstanceHandles":410,"./ReactMount":414,"./ReactUpdates":435,"./getEventTarget":466,"fbjs/lib/EventListener":482,"fbjs/lib/ExecutionEnvironment":483,"fbjs/lib/getUnboundedScrollPosition":494}],408:[function(e,t,n){"use strict";var r=e("./DOMProperty"),o=e("./EventPluginHub"),i=e("./ReactComponentEnvironment"),a=e("./ReactClass"),s=e("./ReactEmptyComponent"),u=e("./ReactBrowserEventEmitter"),c=e("./ReactNativeComponent"),l=e("./ReactPerf"),p=e("./ReactRootIndex"),f=e("./ReactUpdates"),d={Component:i.injection,Class:a.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:o.injection,EventEmitter:u.injection,NativeComponent:c.injection,Perf:l.injection,RootIndex:p.injection,Updates:f.injection};t.exports=d},{"./DOMProperty":356,"./EventPluginHub":362,"./ReactBrowserEventEmitter":373,"./ReactClass":378,"./ReactComponentEnvironment":381,
|
27 |
-
"./ReactEmptyComponent":403,"./ReactNativeComponent":417,"./ReactPerf":420,"./ReactRootIndex":427,"./ReactUpdates":435}],409:[function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=e("./ReactDOMSelection"),i=e("fbjs/lib/containsNode"),a=e("fbjs/lib/focusNode"),s=e("fbjs/lib/getActiveElement"),u={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:u.hasSelectionCapabilities(e)?u.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,o),a(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if("undefined"==typeof r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(e,t)}};t.exports=u},{"./ReactDOMSelection":393,"fbjs/lib/containsNode":486,"fbjs/lib/focusNode":491,"fbjs/lib/getActiveElement":492}],410:[function(e,t,n){(function(n){"use strict";function r(e){return d+e.toString(36)}function o(e,t){return e.charAt(t)===d||t===e.length}function i(e){return""===e||e.charAt(0)===d&&e.charAt(e.length-1)!==d}function a(e,t){return 0===t.indexOf(e)&&o(t,e.length)}function s(e){return e?e.substr(0,e.lastIndexOf(d)):""}function u(e,t){if(i(e)&&i(t)?void 0:"production"!==n.env.NODE_ENV?f(!1,"getNextDescendantID(%s, %s): Received an invalid React DOM ID.",e,t):f(!1),a(e,t)?void 0:"production"!==n.env.NODE_ENV?f(!1,"getNextDescendantID(...): React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",e,t):f(!1),e===t)return e;var r,s=e.length+h;for(r=s;r<t.length&&!o(t,r);r++);return t.substr(0,r)}function c(e,t){var r=Math.min(e.length,t.length);if(0===r)return"";for(var a=0,s=0;s<=r;s++)if(o(e,s)&&o(t,s))a=s;else if(e.charAt(s)!==t.charAt(s))break;var u=e.substr(0,a);return i(u)?void 0:"production"!==n.env.NODE_ENV?f(!1,"getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",e,t,u):f(!1),u}function l(e,t,r,o,i,c){e=e||"",t=t||"",e===t?"production"!==n.env.NODE_ENV?f(!1,"traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",e):f(!1):void 0;var l=a(t,e);l||a(e,t)?void 0:"production"!==n.env.NODE_ENV?f(!1,"traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",e,t):f(!1);for(var p=0,d=l?s:u,h=e;;h=d(h,t)){var m;if(i&&h===e||c&&h===t||(m=r(h,l,o)),m===!1||h===t)break;p++<g?void 0:"production"!==n.env.NODE_ENV?f(!1,"traverseParentPath(%s, %s, ...): Detected an infinite loop while traversing the React DOM ID tree. This may be due to malformed IDs: %s",e,t,h):f(!1)}}var p=e("./ReactRootIndex"),f=e("fbjs/lib/invariant"),d=".",h=d.length,g=1e4,m={createReactRootID:function(){return r(p.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===d&&e.length>1){var t=e.indexOf(d,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var i=c(e,t);i!==e&&l(e,i,n,r,!1,!0),i!==t&&l(i,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(l("",e,t,n,!0,!1),l(e,"",t,n,!1,!0))},traverseTwoPhaseSkipTarget:function(e,t,n){e&&(l("",e,t,n,!0,!0),l(e,"",t,n,!0,!0))},traverseAncestors:function(e,t,n){l("",e,t,n,!0,!1)},getFirstCommonAncestorID:c,_getNextDescendantID:u,isAncestorIDOf:a,SEPARATOR:d};t.exports=m}).call(this,e("_process"))},{"./ReactRootIndex":427,_process:2,"fbjs/lib/invariant":497}],411:[function(e,t,n){"use strict";var r={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};t.exports=r},{}],412:[function(e,t,n){(function(n){"use strict";var r=e("./ReactChildren"),o=e("./ReactComponent"),i=e("./ReactClass"),a=e("./ReactDOMFactories"),s=e("./ReactElement"),u=e("./ReactElementValidator"),c=e("./ReactPropTypes"),l=e("./ReactVersion"),p=e("./Object.assign"),f=e("./onlyChild"),d=s.createElement,h=s.createFactory,g=s.cloneElement;"production"!==n.env.NODE_ENV&&(d=u.createElement,h=u.createFactory,g=u.cloneElement);var m={Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:f},Component:o,createElement:d,cloneElement:g,isValidElement:s.isValidElement,PropTypes:c,createClass:i.createClass,createFactory:h,createMixin:function(e){return e},DOM:a,version:l,__spread:p};t.exports=m}).call(this,e("_process"))},{"./Object.assign":369,"./ReactChildren":377,"./ReactClass":378,"./ReactComponent":379,"./ReactDOMFactories":387,"./ReactElement":401,"./ReactElementValidator":402,"./ReactPropTypes":423,"./ReactVersion":436,"./onlyChild":473,_process:2}],413:[function(e,t,n){"use strict";var r=e("./adler32"),o=/\/?>/,i={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(o," "+i.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(i.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};t.exports=i},{"./adler32":455}],414:[function(e,t,n){(function(n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){return e?e.nodeType===q?e.documentElement:e.firstChild:null}function i(e){var t=o(e);return t&&ee.getID(t)}function a(e){var t=s(e);if(t)if(H.hasOwnProperty(t)){var r=H[t];r!==e&&(p(r,t)?"production"!==n.env.NODE_ENV?j(!1,"ReactMount: Two valid but unequal nodes with the same `%s`: %s",G,t):j(!1):void 0,H[t]=e)}else H[t]=e;return t}function s(e){return e&&e.getAttribute&&e.getAttribute(G)||""}function u(e,t){var n=s(e);n!==t&&delete H[n],e.setAttribute(G,t),H[t]=e}function c(e){return H.hasOwnProperty(e)&&p(H[e],e)||(H[e]=ee.findReactNodeByID(e)),H[e]}function l(e){var t=T.get(e)._rootNodeID;return S.isNullComponentID(t)?null:(H.hasOwnProperty(t)&&p(H[t],t)||(H[t]=ee.findReactNodeByID(t)),H[t])}function p(e,t){if(e){s(e)!==t?"production"!==n.env.NODE_ENV?j(!1,"ReactMount: Unexpected modification of `%s`",G):j(!1):void 0;var r=ee.findReactContainerForID(t);if(r&&L(r,e))return!0}return!1}function f(e){delete H[e]}function d(e){var t=H[e];return!(!t||!p(t,e))&&void($=t)}function h(e){$=null,O.traverseAncestors(e,d);var t=$;return $=null,t}function g(e,t,r,o,i,a){if(C.useCreateElement&&(a=D({},a),r.nodeType===q?a[W]=r:a[W]=r.ownerDocument),"production"!==n.env.NODE_ENV){a===I&&(a={});var s=r.nodeName.toLowerCase();a[U.ancestorInfoContextKey]=U.updatedAncestorInfo(null,s,null)}var u=N.mountComponent(e,t,o,a);e._renderedComponent._topLevelWrapper=e,ee._mountImageIntoNode(u,r,i,o)}function m(e,t,n,r,o){var i=M.ReactReconcileTransaction.getPooled(r);i.perform(g,null,e,t,n,i,r,o),M.ReactReconcileTransaction.release(i)}function y(e,t){for(N.unmountComponent(e),t.nodeType===q&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function v(e){var t=i(e);return!!t&&t!==O.getReactRootIDFromNodeID(t)}function _(e){for(;e&&e.parentNode!==e;e=e.parentNode)if(1===e.nodeType){var t=s(e);if(t){var n,r=O.getReactRootIDFromNodeID(t),o=e;do if(n=s(o),o=o.parentNode,null==o)return null;while(n!==r);if(o===X[r])return e}}return null}var b=e("./DOMProperty"),E=e("./ReactBrowserEventEmitter"),x=e("./ReactCurrentOwner"),C=e("./ReactDOMFeatureFlags"),w=e("./ReactElement"),S=e("./ReactEmptyComponentRegistry"),O=e("./ReactInstanceHandles"),T=e("./ReactInstanceMap"),P=e("./ReactMarkupChecksum"),R=e("./ReactPerf"),N=e("./ReactReconciler"),A=e("./ReactUpdateQueue"),M=e("./ReactUpdates"),D=e("./Object.assign"),I=e("fbjs/lib/emptyObject"),L=e("fbjs/lib/containsNode"),k=e("./instantiateReactComponent"),j=e("fbjs/lib/invariant"),F=e("./setInnerHTML"),V=e("./shouldUpdateReactComponent"),U=e("./validateDOMNesting"),z=e("fbjs/lib/warning"),G=b.ID_ATTRIBUTE_NAME,H={},B=1,q=9,Z=11,W="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),Y={},X={};if("production"!==n.env.NODE_ENV)var K={};var Q=[],$=null,J=function(){};J.prototype.isReactComponent={},"production"!==n.env.NODE_ENV&&(J.displayName="TopLevelWrapper"),J.prototype.render=function(){return this.props};var ee={TopLevelWrapper:J,_instancesByReactRootID:Y,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,r,a){return ee.scrollMonitor(r,function(){A.enqueueElementInternal(e,t),a&&A.enqueueCallbackInternal(e,a)}),"production"!==n.env.NODE_ENV&&(K[i(r)]=o(r)),e},_registerComponent:function(e,t){!t||t.nodeType!==B&&t.nodeType!==q&&t.nodeType!==Z?"production"!==n.env.NODE_ENV?j(!1,"_registerComponent(...): Target container is not a DOM element."):j(!1):void 0,E.ensureScrollValueMonitoring();var r=ee.registerContainer(t);return Y[r]=e,r},_renderNewRootComponent:function(e,t,r,i){"production"!==n.env.NODE_ENV?z(null==x.current,"_renderNewRootComponent(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.",x.current&&x.current.getName()||"ReactCompositeComponent"):void 0;var a=k(e,null),s=ee._registerComponent(a,t);return M.batchedUpdates(m,a,s,t,r,i),"production"!==n.env.NODE_ENV&&(K[s]=o(t)),a},renderSubtreeIntoContainer:function(e,t,r,o){return null==e||null==e._reactInternalInstance?"production"!==n.env.NODE_ENV?j(!1,"parentComponent must be a valid React Component"):j(!1):void 0,ee._renderSubtreeIntoContainer(e,t,r,o)},_renderSubtreeIntoContainer:function(e,t,r,a){w.isValidElement(t)?void 0:"production"!==n.env.NODE_ENV?j(!1,"ReactDOM.render(): Invalid component element.%s","string"==typeof t?" Instead of passing an element string, make sure to instantiate it by passing it to React.createElement.":"function"==typeof t?" Instead of passing a component class, make sure to instantiate it by passing it to React.createElement.":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":""):j(!1),"production"!==n.env.NODE_ENV?z(!r||!r.tagName||"BODY"!==r.tagName.toUpperCase(),"render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app."):void 0;var u=new w(J,null,null,null,null,null,t),c=Y[i(r)];if(c){var l=c._currentElement,p=l.props;if(V(p,t)){var f=c._renderedComponent.getPublicInstance(),d=a&&function(){a.call(f)};return ee._updateRootComponent(c,u,r,d),f}ee.unmountComponentAtNode(r)}var h=o(r),g=h&&!!s(h),m=v(r);if("production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?z(!m,"render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."):void 0,!g||h.nextSibling))for(var y=h;y;){if(s(y)){"production"!==n.env.NODE_ENV?z(!1,"render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup."):void 0;break}y=y.nextSibling}var _=g&&!c&&!m,b=ee._renderNewRootComponent(u,r,_,null!=e?e._reactInternalInstance._processChildContext(e._reactInternalInstance._context):I)._renderedComponent.getPublicInstance();return a&&a.call(b),b},render:function(e,t,n){return ee._renderSubtreeIntoContainer(null,e,t,n)},registerContainer:function(e){var t=i(e);return t&&(t=O.getReactRootIDFromNodeID(t)),t||(t=O.createReactRootID()),X[t]=e,t},unmountComponentAtNode:function(e){"production"!==n.env.NODE_ENV?z(null==x.current,"unmountComponentAtNode(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.",x.current&&x.current.getName()||"ReactCompositeComponent"):void 0,!e||e.nodeType!==B&&e.nodeType!==q&&e.nodeType!==Z?"production"!==n.env.NODE_ENV?j(!1,"unmountComponentAtNode(...): Target container is not a DOM element."):j(!1):void 0;var t=i(e),r=Y[t];if(!r){var o=v(e),a=s(e),u=a&&a===O.getReactRootIDFromNodeID(a);return"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?z(!o,"unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",u?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."):void 0),!1}return M.batchedUpdates(y,r,e),delete Y[t],delete X[t],"production"!==n.env.NODE_ENV&&delete K[t],!0},findReactContainerForID:function(e){var t=O.getReactRootIDFromNodeID(e),r=X[t];if("production"!==n.env.NODE_ENV){var o=K[t];if(o&&o.parentNode!==r){"production"!==n.env.NODE_ENV?z(s(o)===t,"ReactMount: Root element ID differed from reactRootID."):void 0;var i=r.firstChild;i&&t===s(i)?K[t]=i:"production"!==n.env.NODE_ENV?z(!1,"ReactMount: Root element has been removed from its original container. New container: %s",o.parentNode):void 0}}return r},findReactNodeByID:function(e){var t=ee.findReactContainerForID(e);return ee.findComponentRoot(t,e)},getFirstReactDOM:function(e){return _(e)},findComponentRoot:function(e,t){var r=Q,o=0,i=h(t)||e;for("production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?z(null!=i,"React can't find the root component node for data-reactid value `%s`. If you're seeing this message, it probably means that you've loaded two copies of React on the page. At this time, only a single copy of React can be loaded at a time.",t):void 0),r[0]=i.firstChild,r.length=1;o<r.length;){for(var a,s=r[o++];s;){var u=ee.getID(s);u?t===u?a=s:O.isAncestorIDOf(u,t)&&(r.length=o=0,r.push(s.firstChild)):r.push(s.firstChild),s=s.nextSibling}if(a)return r.length=0,a}r.length=0,"production"!==n.env.NODE_ENV?j(!1,"findComponentRoot(..., %s): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID `%s`.",t,ee.getID(e)):j(!1)},_mountImageIntoNode:function(e,t,i,a){if(!t||t.nodeType!==B&&t.nodeType!==q&&t.nodeType!==Z?"production"!==n.env.NODE_ENV?j(!1,"mountComponentIntoNode(...): Target container is not valid."):j(!1):void 0,i){var s=o(t);if(P.canReuseMarkup(e,s))return;var u=s.getAttribute(P.CHECKSUM_ATTR_NAME);s.removeAttribute(P.CHECKSUM_ATTR_NAME);var c=s.outerHTML;s.setAttribute(P.CHECKSUM_ATTR_NAME,u);var l=e;if("production"!==n.env.NODE_ENV){var p;t.nodeType===B?(p=document.createElement("div"),p.innerHTML=e,l=p.innerHTML):(p=document.createElement("iframe"),document.body.appendChild(p),p.contentDocument.write(e),l=p.contentDocument.documentElement.outerHTML,document.body.removeChild(p))}var f=r(l,c),d=" (client) "+l.substring(f-20,f+20)+"\n (server) "+c.substring(f-20,f+20);t.nodeType===q?"production"!==n.env.NODE_ENV?j(!1,"You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s",d):j(!1):void 0,"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?z(!1,"React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\n%s",d):void 0)}if(t.nodeType===q?"production"!==n.env.NODE_ENV?j(!1,"You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering."):j(!1):void 0,a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);t.appendChild(e)}else F(t,e)},ownerDocumentContextKey:W,getReactRootID:i,getID:a,setID:u,getNode:c,getNodeFromInstance:l,isValid:p,purgeID:f};R.measureMethods(ee,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),t.exports=ee}).call(this,e("_process"))},{"./DOMProperty":356,"./Object.assign":369,"./ReactBrowserEventEmitter":373,"./ReactCurrentOwner":383,"./ReactDOMFeatureFlags":388,"./ReactElement":401,"./ReactEmptyComponentRegistry":404,"./ReactInstanceHandles":410,"./ReactInstanceMap":411,"./ReactMarkupChecksum":413,"./ReactPerf":420,"./ReactReconciler":425,"./ReactUpdateQueue":434,"./ReactUpdates":435,"./instantiateReactComponent":470,"./setInnerHTML":476,"./shouldUpdateReactComponent":478,"./validateDOMNesting":480,_process:2,"fbjs/lib/containsNode":486,"fbjs/lib/emptyObject":490,"fbjs/lib/invariant":497,"fbjs/lib/warning":508}],415:[function(e,t,n){(function(n){"use strict";function r(e,t,n){y.push({parentID:e,parentNode:null,type:p.INSERT_MARKUP,markupIndex:v.push(t)-1,content:null,fromIndex:null,toIndex:n})}function o(e,t,n){y.push({parentID:e,parentNode:null,type:p.MOVE_EXISTING,markupIndex:null,content:null,fromIndex:t,toIndex:n})}function i(e,t){y.push({parentID:e,parentNode:null,type:p.REMOVE_NODE,markupIndex:null,content:null,fromIndex:t,toIndex:null})}function a(e,t){y.push({parentID:e,parentNode:null,type:p.SET_MARKUP,markupIndex:null,content:t,fromIndex:null,toIndex:null})}function s(e,t){y.push({parentID:e,parentNode:null,type:p.TEXT_CONTENT,markupIndex:null,content:t,fromIndex:null,toIndex:null})}function u(){y.length&&(l.processChildrenUpdates(y,v),c())}function c(){y.length=0,v.length=0}var l=e("./ReactComponentEnvironment"),p=e("./ReactMultiChildUpdateTypes"),f=e("./ReactCurrentOwner"),d=e("./ReactReconciler"),h=e("./ReactChildReconciler"),g=e("./flattenChildren"),m=0,y=[],v=[],_={Mixin:{_reconcilerInstantiateChildren:function(e,t,r){if("production"!==n.env.NODE_ENV&&this._currentElement)try{return f.current=this._currentElement._owner,h.instantiateChildren(e,t,r)}finally{f.current=null}return h.instantiateChildren(e,t,r)},_reconcilerUpdateChildren:function(e,t,r,o){var i;if("production"!==n.env.NODE_ENV&&this._currentElement){try{f.current=this._currentElement._owner,i=g(t)}finally{f.current=null}return h.updateChildren(e,i,r,o)}return i=g(t),h.updateChildren(e,i,r,o)},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=this._rootNodeID+a,c=d.mountComponent(s,u,t,n);s._mountIndex=i++,o.push(c)}return o},updateTextContent:function(e){m++;var t=!0;try{var n=this._renderedChildren;h.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChild(n[r]);this.setTextContent(e),t=!1}finally{m--,m||(t?c():u())}},updateMarkup:function(e){m++;var t=!0;try{var n=this._renderedChildren;h.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setMarkup(e),t=!1}finally{m--,m||(t?c():u())}},updateChildren:function(e,t,n){m++;var r=!0;try{this._updateChildren(e,t,n),r=!1}finally{m--,m||(r?c():u())}},_updateChildren:function(e,t,n){var r=this._renderedChildren,o=this._reconcilerUpdateChildren(r,e,t,n);if(this._renderedChildren=o,o||r){var i,a=0,s=0;for(i in o)if(o.hasOwnProperty(i)){var u=r&&r[i],c=o[i];u===c?(this.moveChild(u,s,a),a=Math.max(u._mountIndex,a),u._mountIndex=s):(u&&(a=Math.max(u._mountIndex,a),this._unmountChild(u)),this._mountChildByNameAtIndex(c,i,s,t,n)),s++}for(i in r)!r.hasOwnProperty(i)||o&&o.hasOwnProperty(i)||this._unmountChild(r[i])}},unmountChildren:function(){var e=this._renderedChildren;h.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&o(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){r(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){i(this._rootNodeID,e._mountIndex)},setTextContent:function(e){s(this._rootNodeID,e)},setMarkup:function(e){a(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,r,o){var i=this._rootNodeID+t,a=d.mountComponent(e,i,r,o);e._mountIndex=n,this.createChild(e,a)},_unmountChild:function(e){this.removeChild(e),e._mountIndex=null}}};t.exports=_}).call(this,e("_process"))},{"./ReactChildReconciler":376,"./ReactComponentEnvironment":381,"./ReactCurrentOwner":383,"./ReactMultiChildUpdateTypes":416,"./ReactReconciler":425,"./flattenChildren":461,_process:2}],416:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyMirror"),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});t.exports=o},{"fbjs/lib/keyMirror":500}],417:[function(e,t,n){(function(n){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=p[t];return null==n&&(p[t]=n=c(t)),n}function o(e){return l?void 0:"production"!==n.env.NODE_ENV?u(!1,"There is no registered component for the tag %s",e.type):u(!1),new l(e.type,e.props)}function i(e){return new f(e)}function a(e){return e instanceof f}var s=e("./Object.assign"),u=e("fbjs/lib/invariant"),c=null,l=null,p={},f=null,d={injectGenericComponentClass:function(e){l=e},injectTextComponentClass:function(e){f=e},injectComponentClasses:function(e){s(p,e)}},h={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:i,isTextComponent:a,injection:d};t.exports=h}).call(this,e("_process"))},{"./Object.assign":369,_process:2,"fbjs/lib/invariant":497}],418:[function(e,t,n){(function(n){"use strict";function r(e,t){"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?o(!1,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",t,t,e.constructor&&e.constructor.displayName||""):void 0)}var o=e("fbjs/lib/warning"),i={isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")},enqueueSetProps:function(e,t){r(e,"setProps")},enqueueReplaceProps:function(e,t){r(e,"replaceProps")}};t.exports=i}).call(this,e("_process"))},{_process:2,"fbjs/lib/warning":508}],419:[function(e,t,n){(function(n){"use strict";var r=e("fbjs/lib/invariant"),o={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,i){o.isValidOwner(i)?void 0:"production"!==n.env.NODE_ENV?r(!1,"addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner)."):r(!1),i.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,i){o.isValidOwner(i)?void 0:"production"!==n.env.NODE_ENV?r(!1,"removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner)."):r(!1),i.getPublicInstance().refs[t]===e.getPublicInstance()&&i.detachRef(t)}};t.exports=o}).call(this,e("_process"))},{_process:2,"fbjs/lib/invariant":497}],420:[function(e,t,n){(function(e){"use strict";function n(e,t,n){return n}var r={enableMeasure:!1,storedMeasure:n,measureMethods:function(t,n,o){if("production"!==e.env.NODE_ENV)for(var i in o)o.hasOwnProperty(i)&&(t[i]=r.measure(n,o[i],t[i]))},measure:function(t,n,o){if("production"!==e.env.NODE_ENV){var i=null,a=function(){return r.enableMeasure?(i||(i=r.storedMeasure(t,n,o)),i.apply(this,arguments)):o.apply(this,arguments)};return a.displayName=t+"_"+n,a}return o},injection:{injectMeasure:function(e){r.storedMeasure=e}}};t.exports=r}).call(this,e("_process"))},{_process:2}],421:[function(e,t,n){(function(e){"use strict";var n={};"production"!==e.env.NODE_ENV&&(n={prop:"prop",context:"context",childContext:"child context"}),t.exports=n}).call(this,e("_process"))},{_process:2}],422:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyMirror"),o=r({prop:null,context:null,childContext:null});t.exports=o},{"fbjs/lib/keyMirror":500}],423:[function(e,t,n){"use strict";function r(e){function t(t,n,r,o,i,a){if(o=o||x,a=a||r,null==n[r]){var s=_[i];return t?new Error("Required "+s+" `"+a+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i,a)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,o,i){var a=t[n],s=g(a);if(s!==e){var u=_[o],c=m(a);return new Error("Invalid "+u+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return r(t)}function i(){return r(b.thatReturns(null))}function a(e){function t(t,n,r,o,i){var a=t[n];if(!Array.isArray(a)){var s=_[o],u=g(a);return new Error("Invalid "+s+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<a.length;c++){var l=e(a,c,r,o,i+"["+c+"]");if(l instanceof Error)return l}return null}return r(t)}function s(){function e(e,t,n,r,o){if(!v.isValidElement(e[t])){var i=_[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a single ReactElement."))}return null}return r(e)}function u(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=_[o],s=e.name||x,u=y(t[n]);return new Error("Invalid "+a+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("instance of `"+s+"`."))}return null}return r(t)}function c(e){function t(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(a===e[s])return null;var u=_[o],c=JSON.stringify(e);return new Error("Invalid "+u+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+c+"."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function l(e){function t(t,n,r,o,i){var a=t[n],s=g(a);if("object"!==s){var u=_[o];return new Error("Invalid "+u+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."))}for(var c in a)if(a.hasOwnProperty(c)){var l=e(a,c,r,o,i+"."+c);if(l instanceof Error)return l}return null}return r(t)}function p(e){function t(t,n,r,o,i){for(var a=0;a<e.length;a++){var s=e[a];if(null==s(t,n,r,o,i))return null}var u=_[o];return new Error("Invalid "+u+" `"+i+"` supplied to "+("`"+r+"`."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function f(){function e(e,t,n,r,o){if(!h(e[t])){var i=_[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(e)}function d(e){function t(t,n,r,o,i){var a=t[n],s=g(a);if("object"!==s){var u=_[o];return new Error("Invalid "+u+" `"+i+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."))}for(var c in e){var l=e[c];if(l){var p=l(a,c,r,o,i+"."+c);if(p)return p}}return null}return r(t)}function h(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(h);if(null===e||v.isValidElement(e))return!0;var t=E(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!h(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!h(o[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function m(e){var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){return e.constructor&&e.constructor.name?e.constructor.name:"<<anonymous>>"}var v=e("./ReactElement"),_=e("./ReactPropTypeLocationNames"),b=e("fbjs/lib/emptyFunction"),E=e("./getIteratorFn"),x="<<anonymous>>",C={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:i(),arrayOf:a,element:s(),instanceOf:u,node:f(),objectOf:l,oneOf:c,oneOfType:p,shape:d};t.exports=C},{"./ReactElement":401,"./ReactPropTypeLocationNames":421,"./getIteratorFn":467,"fbjs/lib/emptyFunction":489}],424:[function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.useCreateElement=!e&&s.useCreateElement}var o=e("./CallbackQueue"),i=e("./PooledClass"),a=e("./ReactBrowserEventEmitter"),s=e("./ReactDOMFeatureFlags"),u=e("./ReactInputSelection"),c=e("./Transaction"),l=e("./Object.assign"),p={initialize:u.getSelectionInformation,close:u.restoreSelection},f={initialize:function(){var e=a.isEnabled();return a.setEnabled(!1),e},close:function(e){a.setEnabled(e)}},d={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},h=[p,f,d],g={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null}};l(r.prototype,c.Mixin,g),i.addPoolingTo(r),t.exports=r},{"./CallbackQueue":352,"./Object.assign":369,"./PooledClass":370,"./ReactBrowserEventEmitter":373,"./ReactDOMFeatureFlags":388,"./ReactInputSelection":409,"./Transaction":452}],425:[function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=e("./ReactRef"),i={mountComponent:function(e,t,n,o){var i=e.mountComponent(t,n,o);return e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e),i},unmountComponent:function(e){o.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,n,i){var a=e._currentElement;if(t!==a||i!==e._context){var s=o.shouldUpdateRefs(a,t);s&&o.detachRefs(e,a),e.receiveComponent(t,n,i),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}};t.exports=i},{"./ReactRef":426}],426:[function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):i.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):i.removeComponentAsRefFrom(t,e,n)}var i=e("./ReactOwner"),a={};a.attachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&r(n,e,t._owner)}},a.shouldUpdateRefs=function(e,t){var n=null===e||e===!1,r=null===t||t===!1;return n||r||t._owner!==e._owner||t.ref!==e.ref},a.detachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&o(n,e,t._owner)}},t.exports=a},{"./ReactOwner":419}],427:[function(e,t,n){"use strict";var r={injectCreateReactRootIndex:function(e){o.createReactRootIndex=e}},o={createReactRootIndex:null,injection:r};t.exports=o;
|
28 |
-
},{}],428:[function(e,t,n){"use strict";var r={isBatchingUpdates:!1,batchedUpdates:function(e){}};t.exports=r},{}],429:[function(e,t,n){(function(n){"use strict";function r(e){a.isValidElement(e)?void 0:"production"!==n.env.NODE_ENV?h(!1,"renderToString(): You must pass a valid ReactElement."):h(!1);var t;try{p.injection.injectBatchingStrategy(c);var r=s.createReactRootID();return t=l.getPooled(!1),t.perform(function(){var n=d(e,null),o=n.mountComponent(r,t,f);return u.addChecksumToMarkup(o)},null)}finally{l.release(t),p.injection.injectBatchingStrategy(i)}}function o(e){a.isValidElement(e)?void 0:"production"!==n.env.NODE_ENV?h(!1,"renderToStaticMarkup(): You must pass a valid ReactElement."):h(!1);var t;try{p.injection.injectBatchingStrategy(c);var r=s.createReactRootID();return t=l.getPooled(!0),t.perform(function(){var n=d(e,null);return n.mountComponent(r,t,f)},null)}finally{l.release(t),p.injection.injectBatchingStrategy(i)}}var i=e("./ReactDefaultBatchingStrategy"),a=e("./ReactElement"),s=e("./ReactInstanceHandles"),u=e("./ReactMarkupChecksum"),c=e("./ReactServerBatchingStrategy"),l=e("./ReactServerRenderingTransaction"),p=e("./ReactUpdates"),f=e("fbjs/lib/emptyObject"),d=e("./instantiateReactComponent"),h=e("fbjs/lib/invariant");t.exports={renderToString:r,renderToStaticMarkup:o}}).call(this,e("_process"))},{"./ReactDefaultBatchingStrategy":397,"./ReactElement":401,"./ReactInstanceHandles":410,"./ReactMarkupChecksum":413,"./ReactServerBatchingStrategy":428,"./ReactServerRenderingTransaction":430,"./ReactUpdates":435,"./instantiateReactComponent":470,_process:2,"fbjs/lib/emptyObject":490,"fbjs/lib/invariant":497}],430:[function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=i.getPooled(null),this.useCreateElement=!1}var o=e("./PooledClass"),i=e("./CallbackQueue"),a=e("./Transaction"),s=e("./Object.assign"),u=e("fbjs/lib/emptyFunction"),c={initialize:function(){this.reactMountReady.reset()},close:u},l=[c],p={getTransactionWrappers:function(){return l},getReactMountReady:function(){return this.reactMountReady},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};s(r.prototype,a.Mixin,p),o.addPoolingTo(r),t.exports=r},{"./CallbackQueue":352,"./Object.assign":369,"./PooledClass":370,"./Transaction":452,"fbjs/lib/emptyFunction":489}],431:[function(e,t,n){"use strict";var r=e("./flattenChildren"),o={getChildMapping:function(e){return e?r(e):e},mergeChildMappings:function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var c=r[u][a];s[r[u][a]]=n(c)}s[u]=n(u)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}};t.exports=o},{"./flattenChildren":461}],432:[function(e,t,n){"use strict";function r(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete s.animationend.animation,"TransitionEvent"in window||delete s.transitionend.transition;for(var n in s){var r=s[n];for(var o in r)if(o in t){u.push(r[o]);break}}}function o(e,t,n){e.addEventListener(t,n,!1)}function i(e,t,n){e.removeEventListener(t,n,!1)}var a=e("fbjs/lib/ExecutionEnvironment"),s={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},u=[];a.canUseDOM&&r();var c={addEndEventListener:function(e,t){return 0===u.length?void window.setTimeout(t,0):void u.forEach(function(n){o(e,n,t)})},removeEndEventListener:function(e,t){0!==u.length&&u.forEach(function(n){i(e,n,t)})}};t.exports=c},{"fbjs/lib/ExecutionEnvironment":483}],433:[function(e,t,n){"use strict";var r=e("./React"),o=e("./ReactTransitionChildMapping"),i=e("./Object.assign"),a=e("fbjs/lib/emptyFunction"),s=r.createClass({displayName:"ReactTransitionGroup",propTypes:{component:r.PropTypes.any,childFactory:r.PropTypes.func},getDefaultProps:function(){return{component:"span",childFactory:a.thatReturnsArgument}},getInitialState:function(){return{children:o.getChildMapping(this.props.children)}},componentWillMount:function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},componentDidMount:function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t)},componentWillReceiveProps:function(e){var t=o.getChildMapping(e.children),n=this.state.children;this.setState({children:o.mergeChildMappings(n,t)});var r;for(r in t){var i=n&&n.hasOwnProperty(r);!t[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in n){var a=t&&t.hasOwnProperty(r);!n[r]||a||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},componentDidUpdate:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},performAppear:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)},_handleDoneAppearing:function(e){var t=this.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performEnter:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)},_handleDoneEntering:function(e){var t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performLeave:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)},_handleDoneLeaving:function(e){var t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)?this.performEnter(e):this.setState(function(t){var n=i({},t.children);return delete n[e],{children:n}})},render:function(){var e=[];for(var t in this.state.children){var n=this.state.children[t];n&&e.push(r.cloneElement(this.props.childFactory(n),{ref:t,key:t}))}return r.createElement(this.props.component,this.props,e)}});t.exports=s},{"./Object.assign":369,"./React":371,"./ReactTransitionChildMapping":431,"fbjs/lib/emptyFunction":489}],434:[function(e,t,n){(function(n){"use strict";function r(e){u.enqueueUpdate(e)}function o(e,t){var r=s.get(e);return r?("production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?p(null==i.current,"%s(...): Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.",t):void 0),r):("production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?p(!t,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",t,t,e.constructor.displayName):void 0),null)}var i=e("./ReactCurrentOwner"),a=e("./ReactElement"),s=e("./ReactInstanceMap"),u=e("./ReactUpdates"),c=e("./Object.assign"),l=e("fbjs/lib/invariant"),p=e("fbjs/lib/warning"),f={isMounted:function(e){if("production"!==n.env.NODE_ENV){var t=i.current;null!==t&&("production"!==n.env.NODE_ENV?p(t._warnedAboutRefsInRender,"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",t.getName()||"A component"):void 0,t._warnedAboutRefsInRender=!0)}var r=s.get(e);return!!r&&!!r._renderedComponent},enqueueCallback:function(e,t){"function"!=typeof t?"production"!==n.env.NODE_ENV?l(!1,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."):l(!1):void 0;var i=o(e);return i?(i._pendingCallbacks?i._pendingCallbacks.push(t):i._pendingCallbacks=[t],void r(i)):null},enqueueCallbackInternal:function(e,t){"function"!=typeof t?"production"!==n.env.NODE_ENV?l(!1,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."):l(!1):void 0,e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(t),r(n)}},enqueueSetProps:function(e,t){var n=o(e,"setProps");n&&f.enqueueSetPropsInternal(n,t)},enqueueSetPropsInternal:function(e,t){var o=e._topLevelWrapper;o?void 0:"production"!==n.env.NODE_ENV?l(!1,"setProps(...): You called `setProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):l(!1);var i=o._pendingElement||o._currentElement,s=i.props,u=c({},s.props,t);o._pendingElement=a.cloneAndReplaceProps(i,a.cloneAndReplaceProps(s,u)),r(o)},enqueueReplaceProps:function(e,t){var n=o(e,"replaceProps");n&&f.enqueueReplacePropsInternal(n,t)},enqueueReplacePropsInternal:function(e,t){var o=e._topLevelWrapper;o?void 0:"production"!==n.env.NODE_ENV?l(!1,"replaceProps(...): You called `replaceProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):l(!1);var i=o._pendingElement||o._currentElement,s=i.props;o._pendingElement=a.cloneAndReplaceProps(i,a.cloneAndReplaceProps(s,t)),r(o)},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)}};t.exports=f}).call(this,e("_process"))},{"./Object.assign":369,"./ReactCurrentOwner":383,"./ReactElement":401,"./ReactInstanceMap":411,"./ReactUpdates":435,_process:2,"fbjs/lib/invariant":497,"fbjs/lib/warning":508}],435:[function(e,t,n){(function(n){"use strict";function r(){O.ReactReconcileTransaction&&b?void 0:"production"!==n.env.NODE_ENV?m(!1,"ReactUpdates: must inject a reconcile transaction class and batching strategy"):m(!1)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=l.getPooled(),this.reconcileTransaction=O.ReactReconcileTransaction.getPooled(!1)}function i(e,t,n,o,i,a){r(),b.batchedUpdates(e,t,n,o,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==y.length?"production"!==n.env.NODE_ENV?m(!1,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",t,y.length):m(!1):void 0,y.sort(a);for(var r=0;r<t;r++){var o=y[r],i=o._pendingCallbacks;if(o._pendingCallbacks=null,d.performUpdateIfNecessary(o,e.reconcileTransaction),i)for(var s=0;s<i.length;s++)e.callbackQueue.enqueue(i[s],o.getPublicInstance())}}function u(e){return r(),b.isBatchingUpdates?void y.push(e):void b.batchedUpdates(u,e)}function c(e,t){b.isBatchingUpdates?void 0:"production"!==n.env.NODE_ENV?m(!1,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."):m(!1),v.enqueue(e,t),_=!0}var l=e("./CallbackQueue"),p=e("./PooledClass"),f=e("./ReactPerf"),d=e("./ReactReconciler"),h=e("./Transaction"),g=e("./Object.assign"),m=e("fbjs/lib/invariant"),y=[],v=l.getPooled(),_=!1,b=null,E={initialize:function(){this.dirtyComponentsLength=y.length},close:function(){this.dirtyComponentsLength!==y.length?(y.splice(0,this.dirtyComponentsLength),w()):y.length=0}},x={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},C=[E,x];g(o.prototype,h.Mixin,{getTransactionWrappers:function(){return C},destructor:function(){this.dirtyComponentsLength=null,l.release(this.callbackQueue),this.callbackQueue=null,O.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return h.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(o);var w=function(){for(;y.length||_;){if(y.length){var e=o.getPooled();e.perform(s,null,e),o.release(e)}if(_){_=!1;var t=v;v=l.getPooled(),t.notifyAll(),l.release(t)}}};w=f.measure("ReactUpdates","flushBatchedUpdates",w);var S={injectReconcileTransaction:function(e){e?void 0:"production"!==n.env.NODE_ENV?m(!1,"ReactUpdates: must provide a reconcile transaction class"):m(!1),O.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:"production"!==n.env.NODE_ENV?m(!1,"ReactUpdates: must provide a batching strategy"):m(!1),"function"!=typeof e.batchedUpdates?"production"!==n.env.NODE_ENV?m(!1,"ReactUpdates: must provide a batchedUpdates() function"):m(!1):void 0,"boolean"!=typeof e.isBatchingUpdates?"production"!==n.env.NODE_ENV?m(!1,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"):m(!1):void 0,b=e}},O={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:u,flushBatchedUpdates:w,injection:S,asap:c};t.exports=O}).call(this,e("_process"))},{"./CallbackQueue":352,"./Object.assign":369,"./PooledClass":370,"./ReactPerf":420,"./ReactReconciler":425,"./Transaction":452,_process:2,"fbjs/lib/invariant":497}],436:[function(e,t,n){"use strict";t.exports="0.14.8"},{}],437:[function(e,t,n){"use strict";var r=e("./DOMProperty"),o=r.injection.MUST_USE_ATTRIBUTE,i={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},a={Properties:{clipPath:o,cx:o,cy:o,d:o,dx:o,dy:o,fill:o,fillOpacity:o,fontFamily:o,fontSize:o,fx:o,fy:o,gradientTransform:o,gradientUnits:o,markerEnd:o,markerMid:o,markerStart:o,offset:o,opacity:o,patternContentUnits:o,patternUnits:o,points:o,preserveAspectRatio:o,r:o,rx:o,ry:o,spreadMethod:o,stopColor:o,stopOpacity:o,stroke:o,strokeDasharray:o,strokeLinecap:o,strokeOpacity:o,strokeWidth:o,textAnchor:o,transform:o,version:o,viewBox:o,x1:o,x2:o,x:o,xlinkActuate:o,xlinkArcrole:o,xlinkHref:o,xlinkRole:o,xlinkShow:o,xlinkTitle:o,xlinkType:o,xmlBase:o,xmlLang:o,xmlSpace:o,y1:o,y2:o,y:o},DOMAttributeNamespaces:{xlinkActuate:i.xlink,xlinkArcrole:i.xlink,xlinkHref:i.xlink,xlinkRole:i.xlink,xlinkShow:i.xlink,xlinkTitle:i.xlink,xlinkType:i.xlink,xmlBase:i.xml,xmlLang:i.xml,xmlSpace:i.xml},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space"}};t.exports=a},{"./DOMProperty":356}],438:[function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&u.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e,t){if(b||null==y||y!==l())return null;var n=r(y);if(!_||!d(_,n)){_=n;var o=c.getPooled(m.select,v,e,t);return o.type="select",o.target=y,a.accumulateTwoPhaseDispatches(o),o}return null}var i=e("./EventConstants"),a=e("./EventPropagators"),s=e("fbjs/lib/ExecutionEnvironment"),u=e("./ReactInputSelection"),c=e("./SyntheticEvent"),l=e("fbjs/lib/getActiveElement"),p=e("./isTextInputElement"),f=e("fbjs/lib/keyOf"),d=e("fbjs/lib/shallowEqual"),h=i.topLevelTypes,g=s.canUseDOM&&"documentMode"in document&&document.documentMode<=11,m={select:{phasedRegistrationNames:{bubbled:f({onSelect:null}),captured:f({onSelectCapture:null})},dependencies:[h.topBlur,h.topContextMenu,h.topFocus,h.topKeyDown,h.topMouseDown,h.topMouseUp,h.topSelectionChange]}},y=null,v=null,_=null,b=!1,E=!1,x=f({onSelect:null}),C={eventTypes:m,extractEvents:function(e,t,n,r,i){if(!E)return null;switch(e){case h.topFocus:(p(t)||"true"===t.contentEditable)&&(y=t,v=n,_=null);break;case h.topBlur:y=null,v=null,_=null;break;case h.topMouseDown:b=!0;break;case h.topContextMenu:case h.topMouseUp:return b=!1,o(r,i);case h.topSelectionChange:if(g)break;case h.topKeyDown:case h.topKeyUp:return o(r,i)}return null},didPutListener:function(e,t,n){t===x&&(E=!0)}};t.exports=C},{"./EventConstants":361,"./EventPropagators":365,"./ReactInputSelection":409,"./SyntheticEvent":444,"./isTextInputElement":472,"fbjs/lib/ExecutionEnvironment":483,"fbjs/lib/getActiveElement":492,"fbjs/lib/keyOf":501,"fbjs/lib/shallowEqual":506}],439:[function(e,t,n){"use strict";var r=Math.pow(2,53),o={createReactRootIndex:function(){return Math.ceil(Math.random()*r)}};t.exports=o},{}],440:[function(e,t,n){(function(n){"use strict";var r=e("./EventConstants"),o=e("fbjs/lib/EventListener"),i=e("./EventPropagators"),a=e("./ReactMount"),s=e("./SyntheticClipboardEvent"),u=e("./SyntheticEvent"),c=e("./SyntheticFocusEvent"),l=e("./SyntheticKeyboardEvent"),p=e("./SyntheticMouseEvent"),f=e("./SyntheticDragEvent"),d=e("./SyntheticTouchEvent"),h=e("./SyntheticUIEvent"),g=e("./SyntheticWheelEvent"),m=e("fbjs/lib/emptyFunction"),y=e("./getEventCharCode"),v=e("fbjs/lib/invariant"),_=e("fbjs/lib/keyOf"),b=r.topLevelTypes,E={abort:{phasedRegistrationNames:{bubbled:_({onAbort:!0}),captured:_({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:_({onBlur:!0}),captured:_({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:_({onCanPlay:!0}),captured:_({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:_({onCanPlayThrough:!0}),captured:_({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:_({onClick:!0}),captured:_({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:_({onContextMenu:!0}),captured:_({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:_({onCopy:!0}),captured:_({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:_({onCut:!0}),captured:_({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:_({onDoubleClick:!0}),captured:_({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:_({onDrag:!0}),captured:_({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:_({onDragEnd:!0}),captured:_({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:_({onDragEnter:!0}),captured:_({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:_({onDragExit:!0}),captured:_({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:_({onDragLeave:!0}),captured:_({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:_({onDragOver:!0}),captured:_({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:_({onDragStart:!0}),captured:_({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:_({onDrop:!0}),captured:_({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:_({onDurationChange:!0}),captured:_({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:_({onEmptied:!0}),captured:_({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:_({onEncrypted:!0}),captured:_({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:_({onEnded:!0}),captured:_({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:_({onError:!0}),captured:_({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:_({onFocus:!0}),captured:_({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:_({onInput:!0}),captured:_({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:_({onKeyDown:!0}),captured:_({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:_({onKeyPress:!0}),captured:_({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:_({onKeyUp:!0}),captured:_({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:_({onLoad:!0}),captured:_({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:_({onLoadedData:!0}),captured:_({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:_({onLoadedMetadata:!0}),captured:_({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:_({onLoadStart:!0}),captured:_({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:_({onMouseDown:!0}),captured:_({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:_({onMouseMove:!0}),captured:_({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:_({onMouseOut:!0}),captured:_({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:_({onMouseOver:!0}),captured:_({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:_({onMouseUp:!0}),captured:_({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:_({onPaste:!0}),captured:_({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:_({onPause:!0}),captured:_({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:_({onPlay:!0}),captured:_({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:_({onPlaying:!0}),captured:_({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:_({onProgress:!0}),captured:_({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:_({onRateChange:!0}),captured:_({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:_({onReset:!0}),captured:_({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:_({onScroll:!0}),captured:_({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:_({onSeeked:!0}),captured:_({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:_({onSeeking:!0}),captured:_({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:_({onStalled:!0}),captured:_({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:_({onSubmit:!0}),captured:_({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:_({onSuspend:!0}),captured:_({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:_({onTimeUpdate:!0}),captured:_({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:_({onTouchCancel:!0}),captured:_({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:_({onTouchEnd:!0}),captured:_({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:_({onTouchMove:!0}),captured:_({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:_({onTouchStart:!0}),captured:_({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:_({onVolumeChange:!0}),captured:_({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:_({onWaiting:!0}),captured:_({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:_({onWheel:!0}),captured:_({onWheelCapture:!0})}}},x={topAbort:E.abort,topBlur:E.blur,topCanPlay:E.canPlay,topCanPlayThrough:E.canPlayThrough,topClick:E.click,topContextMenu:E.contextMenu,topCopy:E.copy,topCut:E.cut,topDoubleClick:E.doubleClick,topDrag:E.drag,topDragEnd:E.dragEnd,topDragEnter:E.dragEnter,topDragExit:E.dragExit,topDragLeave:E.dragLeave,topDragOver:E.dragOver,topDragStart:E.dragStart,topDrop:E.drop,topDurationChange:E.durationChange,topEmptied:E.emptied,topEncrypted:E.encrypted,topEnded:E.ended,topError:E.error,topFocus:E.focus,topInput:E.input,topKeyDown:E.keyDown,topKeyPress:E.keyPress,topKeyUp:E.keyUp,topLoad:E.load,topLoadedData:E.loadedData,topLoadedMetadata:E.loadedMetadata,topLoadStart:E.loadStart,topMouseDown:E.mouseDown,topMouseMove:E.mouseMove,topMouseOut:E.mouseOut,topMouseOver:E.mouseOver,topMouseUp:E.mouseUp,topPaste:E.paste,topPause:E.pause,topPlay:E.play,topPlaying:E.playing,topProgress:E.progress,topRateChange:E.rateChange,topReset:E.reset,topScroll:E.scroll,topSeeked:E.seeked,topSeeking:E.seeking,topStalled:E.stalled,topSubmit:E.submit,topSuspend:E.suspend,topTimeUpdate:E.timeUpdate,topTouchCancel:E.touchCancel,topTouchEnd:E.touchEnd,topTouchMove:E.touchMove,topTouchStart:E.touchStart,topVolumeChange:E.volumeChange,topWaiting:E.waiting,topWheel:E.wheel};for(var C in x)x[C].dependencies=[C];var w=_({onClick:null}),S={},O={eventTypes:E,extractEvents:function(e,t,r,o,a){var m=x[e];if(!m)return null;var _;switch(e){case b.topAbort:case b.topCanPlay:case b.topCanPlayThrough:case b.topDurationChange:case b.topEmptied:case b.topEncrypted:case b.topEnded:case b.topError:case b.topInput:case b.topLoad:case b.topLoadedData:case b.topLoadedMetadata:case b.topLoadStart:case b.topPause:case b.topPlay:case b.topPlaying:case b.topProgress:case b.topRateChange:case b.topReset:case b.topSeeked:case b.topSeeking:case b.topStalled:case b.topSubmit:case b.topSuspend:case b.topTimeUpdate:case b.topVolumeChange:case b.topWaiting:_=u;break;case b.topKeyPress:if(0===y(o))return null;case b.topKeyDown:case b.topKeyUp:_=l;break;case b.topBlur:case b.topFocus:_=c;break;case b.topClick:if(2===o.button)return null;case b.topContextMenu:case b.topDoubleClick:case b.topMouseDown:case b.topMouseMove:case b.topMouseOut:case b.topMouseOver:case b.topMouseUp:_=p;break;case b.topDrag:case b.topDragEnd:case b.topDragEnter:case b.topDragExit:case b.topDragLeave:case b.topDragOver:case b.topDragStart:case b.topDrop:_=f;break;case b.topTouchCancel:case b.topTouchEnd:case b.topTouchMove:case b.topTouchStart:_=d;break;case b.topScroll:_=h;break;case b.topWheel:_=g;break;case b.topCopy:case b.topCut:case b.topPaste:_=s}_?void 0:"production"!==n.env.NODE_ENV?v(!1,"SimpleEventPlugin: Unhandled event type, `%s`.",e):v(!1);var E=_.getPooled(m,r,o,a);return i.accumulateTwoPhaseDispatches(E),E},didPutListener:function(e,t,n){if(t===w){var r=a.getNode(e);S[e]||(S[e]=o.listen(r,"click",m))}},willDeleteListener:function(e,t){t===w&&(S[e].remove(),delete S[e])}};t.exports=O}).call(this,e("_process"))},{"./EventConstants":361,"./EventPropagators":365,"./ReactMount":414,"./SyntheticClipboardEvent":441,"./SyntheticDragEvent":443,"./SyntheticEvent":444,"./SyntheticFocusEvent":445,"./SyntheticKeyboardEvent":447,"./SyntheticMouseEvent":448,"./SyntheticTouchEvent":449,"./SyntheticUIEvent":450,"./SyntheticWheelEvent":451,"./getEventCharCode":463,_process:2,"fbjs/lib/EventListener":482,"fbjs/lib/emptyFunction":489,"fbjs/lib/invariant":497,"fbjs/lib/keyOf":501}],441:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),t.exports=r},{"./SyntheticEvent":444}],442:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),i={data:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticEvent":444}],443:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticMouseEvent"),i={dataTransfer:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticMouseEvent":448}],444:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];s?this[i]=s(n):"target"===i?this.target=r:this[i]=n[i]}var u=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;u?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse}var o=e("./PooledClass"),i=e("./Object.assign"),a=e("fbjs/lib/emptyFunction"),s=e("fbjs/lib/warning"),u={type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};i(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?s(e,"This synthetic event is reused for performance reasons. If you're seeing this, you're calling `preventDefault` on a released/nullified synthetic event. This is a no-op. See https://fb.me/react-event-pooling for more information."):void 0),e&&(e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?s(e,"This synthetic event is reused for performance reasons. If you're seeing this, you're calling `stopPropagation` on a released/nullified synthetic event. This is a no-op. See https://fb.me/react-event-pooling for more information."):void 0),e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=u,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);i(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=i({},n.Interface,t),e.augmentClass=n.augmentClass,o.addPoolingTo(e,o.fourArgumentPooler)},o.addPoolingTo(r,o.fourArgumentPooler),t.exports=r}).call(this,e("_process"))},{"./Object.assign":369,"./PooledClass":370,_process:2,"fbjs/lib/emptyFunction":489,"fbjs/lib/warning":508}],445:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticUIEvent"),i={relatedTarget:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticUIEvent":450}],446:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),i={data:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticEvent":444}],447:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticUIEvent"),i=e("./getEventCharCode"),a=e("./getEventKey"),s=e("./getEventModifierState"),u={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,u),t.exports=r},{"./SyntheticUIEvent":450,"./getEventCharCode":463,"./getEventKey":464,"./getEventModifierState":465}],448:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticUIEvent"),i=e("./ViewportMetrics"),a=e("./getEventModifierState"),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,
|
29 |
-
relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};o.augmentClass(r,s),t.exports=r},{"./SyntheticUIEvent":450,"./ViewportMetrics":453,"./getEventModifierState":465}],449:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticUIEvent"),i=e("./getEventModifierState"),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),t.exports=r},{"./SyntheticUIEvent":450,"./getEventModifierState":465}],450:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),i=e("./getEventTarget"),a={view:function(e){if(e.view)return e.view;var t=i(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,a),t.exports=r},{"./SyntheticEvent":444,"./getEventTarget":466}],451:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticMouseEvent"),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticMouseEvent":448}],452:[function(e,t,n){(function(n){"use strict";var r=e("fbjs/lib/invariant"),o={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,o,i,a,s,u,c){this.isInTransaction()?"production"!==n.env.NODE_ENV?r(!1,"Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction."):r(!1):void 0;var l,p;try{this._isInTransaction=!0,l=!0,this.initializeAll(0),p=e.call(t,o,i,a,s,u,c),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return p},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=i.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===i.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(e){}}}},closeAll:function(e){this.isInTransaction()?void 0:"production"!==n.env.NODE_ENV?r(!1,"Transaction.closeAll(): Cannot close transaction when none are open."):r(!1);for(var t=this.transactionWrappers,o=e;o<t.length;o++){var a,s=t[o],u=this.wrapperInitData[o];try{a=!0,u!==i.OBSERVED_ERROR&&s.close&&s.close.call(this,u),a=!1}finally{if(a)try{this.closeAll(o+1)}catch(e){}}}this.wrapperInitData.length=0}},i={Mixin:o,OBSERVED_ERROR:{}};t.exports=i}).call(this,e("_process"))},{_process:2,"fbjs/lib/invariant":497}],453:[function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};t.exports=r},{}],454:[function(e,t,n){(function(n){"use strict";function r(e,t){if(null==t?"production"!==n.env.NODE_ENV?o(!1,"accumulateInto(...): Accumulated items must not be null or undefined."):o(!1):void 0,null==e)return t;var r=Array.isArray(e),i=Array.isArray(t);return r&&i?(e.push.apply(e,t),e):r?(e.push(t),e):i?[e].concat(t):[e,t]}var o=e("fbjs/lib/invariant");t.exports=r}).call(this,e("_process"))},{_process:2,"fbjs/lib/invariant":497}],455:[function(e,t,n){"use strict";function r(e){for(var t=1,n=0,r=0,i=e.length,a=i&-4;r<a;){for(;r<Math.min(r+4096,a);r+=4)n+=(t+=e.charCodeAt(r))+(t+=e.charCodeAt(r+1))+(t+=e.charCodeAt(r+2))+(t+=e.charCodeAt(r+3));t%=o,n%=o}for(;r<i;r++)n+=t+=e.charCodeAt(r);return t%=o,n%=o,t|n<<16}var o=65521;t.exports=r},{}],456:[function(e,t,n){(function(e){"use strict";var n=!1;if("production"!==e.env.NODE_ENV)try{Object.defineProperty({},"x",{get:function(){}}),n=!0}catch(e){}t.exports=n}).call(this,e("_process"))},{_process:2}],457:[function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||i.hasOwnProperty(e)&&i[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var o=e("./CSSProperty"),i=o.isUnitlessNumber;t.exports=r},{"./CSSProperty":350}],458:[function(e,t,n){(function(n){"use strict";function r(e,t,r,a,s){var u=!1;if("production"!==n.env.NODE_ENV){var c=function(){return"production"!==n.env.NODE_ENV?i(u,"React.%s is deprecated. Please use %s.%s from require('%s') instead.",e,t,e,r):void 0,u=!0,s.apply(a,arguments)};return o(c,s)}return s}var o=e("./Object.assign"),i=e("fbjs/lib/warning");t.exports=r}).call(this,e("_process"))},{"./Object.assign":369,_process:2,"fbjs/lib/warning":508}],459:[function(e,t,n){"use strict";function r(e){return i[e]}function o(e){return(""+e).replace(a,r)}var i={"&":"&",">":">","<":"<",'"':""","'":"'"},a=/[&><"']/g;t.exports=o},{}],460:[function(e,t,n){(function(n){"use strict";function r(e){if("production"!==n.env.NODE_ENV){var t=o.current;null!==t&&("production"!==n.env.NODE_ENV?u(t._warnedAboutRefsInRender,"%s is accessing getDOMNode or findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",t.getName()||"A component"):void 0,t._warnedAboutRefsInRender=!0)}return null==e?null:1===e.nodeType?e:i.has(e)?a.getNodeFromInstance(e):(null!=e.render&&"function"==typeof e.render?"production"!==n.env.NODE_ENV?s(!1,"findDOMNode was called on an unmounted component."):s(!1):void 0,void("production"!==n.env.NODE_ENV?s(!1,"Element appears to be neither ReactComponent nor DOMNode (keys: %s)",Object.keys(e)):s(!1)))}var o=e("./ReactCurrentOwner"),i=e("./ReactInstanceMap"),a=e("./ReactMount"),s=e("fbjs/lib/invariant"),u=e("fbjs/lib/warning");t.exports=r}).call(this,e("_process"))},{"./ReactCurrentOwner":383,"./ReactInstanceMap":411,"./ReactMount":414,_process:2,"fbjs/lib/invariant":497,"fbjs/lib/warning":508}],461:[function(e,t,n){(function(n){"use strict";function r(e,t,r){var o=e,i=void 0===o[r];"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?a(i,"flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",r):void 0),i&&null!=t&&(o[r]=t)}function o(e){if(null==e)return e;var t={};return i(e,r,t),t}var i=e("./traverseAllChildren"),a=e("fbjs/lib/warning");t.exports=o}).call(this,e("_process"))},{"./traverseAllChildren":479,_process:2,"fbjs/lib/warning":508}],462:[function(e,t,n){"use strict";var r=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};t.exports=r},{}],463:[function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}t.exports=r},{}],464:[function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=e("./getEventCharCode"),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},{"./getEventCharCode":463}],465:[function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function o(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=o},{}],466:[function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}t.exports=r},{}],467:[function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[i]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";t.exports=r},{}],468:[function(e,t,n){"use strict";function r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function i(e,t){for(var n=r(e),i=0,a=0;n;){if(3===n.nodeType){if(a=i+n.textContent.length,i<=t&&a>=t)return{node:n,offset:t-i};i=a}n=r(o(n))}}t.exports=i},{}],469:[function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=e("fbjs/lib/ExecutionEnvironment"),i=null;t.exports=r},{"fbjs/lib/ExecutionEnvironment":483}],470:[function(e,t,n){(function(n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e){var t;if(null===e||e===!1)t=new s(i);else if("object"==typeof e){var a=e;!a||"function"!=typeof a.type&&"string"!=typeof a.type?"production"!==n.env.NODE_ENV?l(!1,"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==a.type?a.type:typeof a.type,r(a._owner)):l(!1):void 0,t="string"==typeof a.type?u.createInternalComponent(a):o(a.type)?new a.type(a):new f}else"string"==typeof e||"number"==typeof e?t=u.createInstanceForText(e):"production"!==n.env.NODE_ENV?l(!1,"Encountered invalid React node of type %s",typeof e):l(!1);return"production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?p("function"==typeof t.construct&&"function"==typeof t.mountComponent&&"function"==typeof t.receiveComponent&&"function"==typeof t.unmountComponent,"Only React Components can be mounted."):void 0),t.construct(e),t._mountIndex=0,t._mountImage=null,"production"!==n.env.NODE_ENV&&(t._isOwnerNecessary=!1,t._warnedAboutRefsInRender=!1),"production"!==n.env.NODE_ENV&&Object.preventExtensions&&Object.preventExtensions(t),t}var a=e("./ReactCompositeComponent"),s=e("./ReactEmptyComponent"),u=e("./ReactNativeComponent"),c=e("./Object.assign"),l=e("fbjs/lib/invariant"),p=e("fbjs/lib/warning"),f=function(){};c(f.prototype,a.Mixin,{_instantiateReactComponent:i}),t.exports=i}).call(this,e("_process"))},{"./Object.assign":369,"./ReactCompositeComponent":382,"./ReactEmptyComponent":403,"./ReactNativeComponent":417,_process:2,"fbjs/lib/invariant":497,"fbjs/lib/warning":508}],471:[function(e,t,n){"use strict";function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=e("fbjs/lib/ExecutionEnvironment");i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},{"fbjs/lib/ExecutionEnvironment":483}],472:[function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&o[e.type]||"textarea"===t)}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=r},{}],473:[function(e,t,n){(function(n){"use strict";function r(e){return o.isValidElement(e)?void 0:"production"!==n.env.NODE_ENV?i(!1,"onlyChild must be passed a children with exactly one child."):i(!1),e}var o=e("./ReactElement"),i=e("fbjs/lib/invariant");t.exports=r}).call(this,e("_process"))},{"./ReactElement":401,_process:2,"fbjs/lib/invariant":497}],474:[function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=e("./escapeTextContentForBrowser");t.exports=r},{"./escapeTextContentForBrowser":459}],475:[function(e,t,n){"use strict";var r=e("./ReactMount");t.exports=r.renderSubtreeIntoContainer},{"./ReactMount":414}],476:[function(e,t,n){"use strict";var r=e("fbjs/lib/ExecutionEnvironment"),o=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,a=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(a=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(a=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&i.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}t.exports=a},{"fbjs/lib/ExecutionEnvironment":483}],477:[function(e,t,n){"use strict";var r=e("fbjs/lib/ExecutionEnvironment"),o=e("./escapeTextContentForBrowser"),i=e("./setInnerHTML"),a=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){i(e,o(t))})),t.exports=a},{"./escapeTextContentForBrowser":459,"./setInnerHTML":476,"fbjs/lib/ExecutionEnvironment":483}],478:[function(e,t,n){"use strict";function r(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var o=typeof e,i=typeof t;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}t.exports=r},{}],479:[function(e,t,n){(function(n){"use strict";function r(e){return y[e]}function o(e,t){return e&&null!=e.key?a(e.key):t.toString(36)}function i(e){return(""+e).replace(v,r)}function a(e){return"$"+i(e)}function s(e,t,r,i){var u=typeof e;if("undefined"!==u&&"boolean"!==u||(e=null),null===e||"string"===u||"number"===u||l.isValidElement(e))return r(i,e,""===t?g+o(e,0):t),1;var p,y,v=0,b=""===t?g:t+m;if(Array.isArray(e))for(var E=0;E<e.length;E++)p=e[E],y=b+o(p,E),v+=s(p,y,r,i);else{var x=f(e);if(x){var C,w=x.call(e);if(x!==e.entries)for(var S=0;!(C=w.next()).done;)p=C.value,y=b+o(p,S++),v+=s(p,y,r,i);else for("production"!==n.env.NODE_ENV&&("production"!==n.env.NODE_ENV?h(_,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead."):void 0,_=!0);!(C=w.next()).done;){var O=C.value;O&&(p=O[1],y=b+a(O[0])+m+o(p,0),v+=s(p,y,r,i))}}else if("object"===u){var T="";if("production"!==n.env.NODE_ENV&&(T=" If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",e._isReactElement&&(T=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),c.current)){var P=c.current.getName();P&&(T+=" Check the render method of `"+P+"`.")}var R=String(e);"production"!==n.env.NODE_ENV?d(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===R?"object with keys {"+Object.keys(e).join(", ")+"}":R,T):d(!1)}}return v}function u(e,t,n){return null==e?0:s(e,"",t,n)}var c=e("./ReactCurrentOwner"),l=e("./ReactElement"),p=e("./ReactInstanceHandles"),f=e("./getIteratorFn"),d=e("fbjs/lib/invariant"),h=e("fbjs/lib/warning"),g=p.SEPARATOR,m=":",y={"=":"=0",".":"=1",":":"=2"},v=/[=.:]/g,_=!1;t.exports=u}).call(this,e("_process"))},{"./ReactCurrentOwner":383,"./ReactElement":401,"./ReactInstanceHandles":410,"./getIteratorFn":467,_process:2,"fbjs/lib/invariant":497,"fbjs/lib/warning":508}],480:[function(e,t,n){(function(n){"use strict";var r=e("./Object.assign"),o=e("fbjs/lib/emptyFunction"),i=e("fbjs/lib/warning"),a=o;if("production"!==n.env.NODE_ENV){var s=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],u=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],c=u.concat(["button"]),l=["dd","dt","li","option","optgroup","p","rp","rt"],p={parentTag:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null},f=function(e,t,n){var o=r({},e||p),i={tag:t,instance:n};return u.indexOf(t)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),c.indexOf(t)!==-1&&(o.pTagInButtonScope=null),s.indexOf(t)!==-1&&"address"!==t&&"div"!==t&&"p"!==t&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.parentTag=i,"form"===t&&(o.formTag=i),"a"===t&&(o.aTagInScope=i),"button"===t&&(o.buttonTagInScope=i),"nobr"===t&&(o.nobrTagInScope=i),"p"===t&&(o.pTagInButtonScope=i),"li"===t&&(o.listItemTagAutoclosing=i),"dd"!==t&&"dt"!==t||(o.dlItemTagAutoclosing=i),o},d=function(e,t){switch(t){case"select":return"option"===e||"optgroup"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":return"head"===e||"body"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return l.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frame":case"head":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t}return!0},h=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},g=function(e){if(!e)return[];var t=[];do t.push(e);while(e=e._currentElement._owner);return t.reverse(),t},m={};a=function(e,t,r){r=r||p;var o=r.parentTag,a=o&&o.tag,s=d(e,a)?null:o,u=s?null:h(e,r),c=s||u;if(c){var l,f=c.tag,y=c.instance,v=t&&t._currentElement._owner,_=y&&y._currentElement._owner,b=g(v),E=g(_),x=Math.min(b.length,E.length),C=-1;for(l=0;l<x&&b[l]===E[l];l++)C=l;var w="(unknown)",S=b.slice(C+1).map(function(e){return e.getName()||w}),O=E.slice(C+1).map(function(e){return e.getName()||w}),T=[].concat(C!==-1?b[C].getName()||w:[],O,f,u?["..."]:[],S,e).join(" > "),P=!!s+"|"+e+"|"+f+"|"+T;if(m[P])return;if(m[P]=!0,s){var R="";"table"===f&&"tr"===e&&(R+=" Add a <tbody> to your code to match the DOM tree generated by the browser."),"production"!==n.env.NODE_ENV?i(!1,"validateDOMNesting(...): <%s> cannot appear as a child of <%s>. See %s.%s",e,f,T,R):void 0}else"production"!==n.env.NODE_ENV?i(!1,"validateDOMNesting(...): <%s> cannot appear as a descendant of <%s>. See %s.",e,f,T):void 0}},a.ancestorInfoContextKey="__validateDOMNesting_ancestorInfo$"+Math.random().toString(36).slice(2),a.updatedAncestorInfo=f,a.isTagValidInContext=function(e,t){t=t||p;var n=t.parentTag,r=n&&n.tag;return d(e,r)&&!h(e,t)}}t.exports=a}).call(this,e("_process"))},{"./Object.assign":369,_process:2,"fbjs/lib/emptyFunction":489,"fbjs/lib/warning":508}],481:[function(e,t,n){(function(n){"use strict";var r=e("./invariant"),o={addClass:function(e,t){return/\s/.test(t)?"production"!==n.env.NODE_ENV?r(!1,'CSSCore.addClass takes only a single class name. "%s" contains multiple classes.',t):r(!1):void 0,t&&(e.classList?e.classList.add(t):o.hasClass(e,t)||(e.className=e.className+" "+t)),e},removeClass:function(e,t){return/\s/.test(t)?"production"!==n.env.NODE_ENV?r(!1,'CSSCore.removeClass takes only a single class name. "%s" contains multiple classes.',t):r(!1):void 0,t&&(e.classList?e.classList.remove(t):o.hasClass(e,t)&&(e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,""))),e},conditionClass:function(e,t,n){return(n?o.addClass:o.removeClass)(e,t)},hasClass:function(e,t){return/\s/.test(t)?"production"!==n.env.NODE_ENV?r(!1,"CSS.hasClass takes only a single class name."):r(!1):void 0,e.classList?!!t&&e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}};t.exports=o}).call(this,e("_process"))},{"./invariant":497,_process:2}],482:[function(e,t,n){(function(n){"use strict";var r=e("./emptyFunction"),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,o){return e.addEventListener?(e.addEventListener(t,o,!0),{remove:function(){e.removeEventListener(t,o,!0)}}):("production"!==n.env.NODE_ENV&&console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:r})},registerDefault:function(){}};t.exports=o}).call(this,e("_process"))},{"./emptyFunction":489,_process:2}],483:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},{}],484:[function(e,t,n){"use strict";function r(e){return e.replace(o,function(e,t){return t.toUpperCase()})}var o=/-(.)/g;t.exports=r},{}],485:[function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=e("./camelize"),i=/^-ms-/;t.exports=r},{"./camelize":484}],486:[function(e,t,n){"use strict";function r(e,t){var n=!0;e:for(;n;){var r=e,i=t;if(n=!1,r&&i){if(r===i)return!0;if(o(r))return!1;if(o(i)){e=r,t=i.parentNode,n=!0;continue e}return r.contains?r.contains(i):!!r.compareDocumentPosition&&!!(16&r.compareDocumentPosition(i))}return!1}}var o=e("./isTextNode");t.exports=r},{"./isTextNode":499}],487:[function(e,t,n){"use strict";function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function o(e){return r(e)?Array.isArray(e)?e.slice():i(e):[e]}var i=e("./toArray");t.exports=o},{"./toArray":507}],488:[function(e,t,n){(function(n){"use strict";function r(e){var t=e.match(l);return t&&t[1].toLowerCase()}function o(e,t){var o=c;c?void 0:"production"!==n.env.NODE_ENV?u(!1,"createNodesFromMarkup dummy not initialized"):u(!1);var i=r(e),l=i&&s(i);if(l){o.innerHTML=l[1]+e+l[2];for(var p=l[0];p--;)o=o.lastChild}else o.innerHTML=e;var f=o.getElementsByTagName("script");f.length&&(t?void 0:"production"!==n.env.NODE_ENV?u(!1,"createNodesFromMarkup(...): Unexpected <script> element rendered."):u(!1),a(f).forEach(t));for(var d=a(o.childNodes);o.lastChild;)o.removeChild(o.lastChild);return d}var i=e("./ExecutionEnvironment"),a=e("./createArrayFromMixed"),s=e("./getMarkupWrap"),u=e("./invariant"),c=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;t.exports=o}).call(this,e("_process"))},{"./ExecutionEnvironment":483,"./createArrayFromMixed":487,"./getMarkupWrap":493,"./invariant":497,_process:2}],489:[function(e,t,n){"use strict";function r(e){return function(){return e}}function o(){}o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},t.exports=o},{}],490:[function(e,t,n){(function(e){"use strict";var n={};"production"!==e.env.NODE_ENV&&Object.freeze(n),t.exports=n}).call(this,e("_process"))},{_process:2}],491:[function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}t.exports=r},{}],492:[function(e,t,n){"use strict";function r(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}t.exports=r},{}],493:[function(e,t,n){(function(n){"use strict";function r(e){return a?void 0:"production"!==n.env.NODE_ENV?i(!1,"Markup wrapping node not initialized"):i(!1),f.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?a.innerHTML="<link />":a.innerHTML="<"+e+"></"+e+">",s[e]=!a.firstChild),s[e]?f[e]:null}var o=e("./ExecutionEnvironment"),i=e("./invariant"),a=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'<select multiple="true">',"</select>"],c=[1,"<table>","</table>"],l=[3,"<table><tbody><tr>","</tr></tbody></table>"],p=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],f={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:u,option:u,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l},d=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];d.forEach(function(e){f[e]=p,s[e]=!0}),t.exports=r}).call(this,e("_process"))},{"./ExecutionEnvironment":483,"./invariant":497,_process:2}],494:[function(e,t,n){"use strict";function r(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=r},{}],495:[function(e,t,n){"use strict";function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;t.exports=r},{}],496:[function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=e("./hyphenate"),i=/^ms-/;t.exports=r},{"./hyphenate":495}],497:[function(e,t,n){(function(e){"use strict";function n(t,n,r,o,i,a,s,u){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,s,u],p=0;c=new Error(n.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}t.exports=n}).call(this,e("_process"))},{_process:2}],498:[function(e,t,n){"use strict";function r(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=r},{}],499:[function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=e("./isNode");t.exports=r},{"./isNode":498}],500:[function(e,t,n){(function(n){"use strict";var r=e("./invariant"),o=function(e){var t,o={};e instanceof Object&&!Array.isArray(e)?void 0:"production"!==n.env.NODE_ENV?r(!1,"keyMirror(...): Argument must be an object."):r(!1);for(t in e)e.hasOwnProperty(t)&&(o[t]=t);return o};t.exports=o}).call(this,e("_process"))},{"./invariant":497,_process:2}],501:[function(e,t,n){"use strict";var r=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=r},{}],502:[function(e,t,n){"use strict";function r(e,t,n){if(!e)return null;var r={};for(var i in e)o.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}var o=Object.prototype.hasOwnProperty;t.exports=r},{}],503:[function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=r},{}],504:[function(e,t,n){"use strict";var r,o=e("./ExecutionEnvironment");o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),t.exports=r||{}},{"./ExecutionEnvironment":483}],505:[function(e,t,n){"use strict";var r,o=e("./performance");r=o.now?function(){return o.now()}:function(){return Date.now()},t.exports=r},{"./performance":504}],506:[function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=o.bind(t),a=0;a<n.length;a++)if(!i(n[a])||e[n[a]]!==t[n[a]])return!1;return!0}var o=Object.prototype.hasOwnProperty;t.exports=r},{}],507:[function(e,t,n){(function(n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?"production"!==n.env.NODE_ENV?o(!1,"toArray: Array-like object expected"):o(!1):void 0,"number"!=typeof t?"production"!==n.env.NODE_ENV?o(!1,"toArray: Object needs a length property"):o(!1):void 0,0===t||t-1 in e?void 0:"production"!==n.env.NODE_ENV?o(!1,"toArray: Object should have keys for indices"):o(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var r=Array(t),i=0;i<t;i++)r[i]=e[i];return r}var o=e("./invariant");t.exports=r}).call(this,e("_process"))},{"./invariant":497,_process:2}],508:[function(e,t,n){(function(n){"use strict";var r=e("./emptyFunction"),o=r;"production"!==n.env.NODE_ENV&&(o=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return r[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}}),t.exports=o}).call(this,e("_process"))},{"./emptyFunction":489,_process:2}],509:[function(e,t,n){"use strict";t.exports=e("./lib/React")},{"./lib/React":371}],510:[function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function i(e,t,n,i){switch("undefined"==typeof e?"undefined":o(e)){case"object":return"function"==typeof e[i]?e[i].apply(e,r(n)):e[i];case"function":return e(t);default:return e}}function a(){function e(){O.forEach(function(e,t){var n=e.started,o=e.startedTime,s=e.action,u=e.prevState,l=e.error,f=e.took,d=e.nextState,g=O[t+1];g&&(d=g.prevState,f=g.started-n);var y=E(s),v="function"==typeof p?p(function(){return d},s):p,_=c(o),b=S.title?"color: "+S.title(y)+";":null,x="action "+(m?_:"")+" "+y.type+" "+(h?"(in "+f.toFixed(2)+" ms)":"");try{v?S.title?a.groupCollapsed("%c "+x,b):a.groupCollapsed(x):S.title?a.group("%c "+x,b):a.group(x);
|
30 |
-
}catch(e){a.log(x)}var C=i(r,y,[u],"prevState"),w=i(r,y,[y],"action"),T=i(r,y,[l,u],"error"),P=i(r,y,[d],"nextState");C&&(S.prevState?a[C]("%c prev state","color: "+S.prevState(u)+"; font-weight: bold",u):a[C]("prev state",u)),w&&(S.action?a[w]("%c action","color: "+S.action(y)+"; font-weight: bold",y):a[w]("action",y)),l&&T&&(S.error?a[T]("%c error","color: "+S.error(l,u)+"; font-weight: bold",l):a[T]("error",l)),P&&(S.nextState?a[P]("%c next state","color: "+S.nextState(d)+"; font-weight: bold",d):a[P]("next state",d));try{a.groupEnd()}catch(e){a.log("—— log end ——")}}),O.length=0}var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=t.level,r=void 0===n?"log":n,o=t.logger,a=void 0===o?console:o,s=t.logErrors,u=void 0===s||s,p=t.collapsed,f=t.predicate,d=t.duration,h=void 0!==d&&d,g=t.timestamp,m=void 0===g||g,y=t.transformer,v=t.stateTransformer,_=void 0===v?function(e){return e}:v,b=t.actionTransformer,E=void 0===b?function(e){return e}:b,x=t.errorTransformer,C=void 0===x?function(e){return e}:x,w=t.colors,S=void 0===w?{title:function(){return"#000000"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}}:w;if("undefined"==typeof a)return function(){return function(e){return function(t){return e(t)}}};y&&console.error("Option 'transformer' is deprecated, use stateTransformer instead");var O=[];return function(t){var n=t.getState;return function(t){return function(r){if("function"==typeof f&&!f(n,r))return t(r);var o={};O.push(o),o.started=l.now(),o.startedTime=new Date,o.prevState=_(n()),o.action=r;var i=void 0;if(u)try{i=t(r)}catch(e){o.error=C(e)}else i=t(r);if(o.took=l.now()-o.started,o.nextState=_(n()),e(),o.error)throw o.error;return i}}}}var s=function(e,t){return new Array(t+1).join(e)},u=function(e,t){return s("0",t-e.toString().length)+e},c=function(e){return"@ "+u(e.getHours(),2)+":"+u(e.getMinutes(),2)+":"+u(e.getSeconds(),2)+"."+u(e.getMilliseconds(),3)},l="undefined"!=typeof performance&&"function"==typeof performance.now?performance:Date;t.exports=a},{}],511:[function(e,t,n){"use strict";function r(e){return function(t){return{type:u,payload:{method:e,arg:t}}}}function o(e){return{type:c,payload:e}}function i(){var e=arguments.length<=0||void 0===arguments[0]?p:arguments[0],t=arguments[1],n=t.type,r=t.payload;return n!==c?e:s({},e,{location:r})}function a(e){function t(t){return n=e.listen(function(e){r=e.key,s||t.dispatch(o(e))}),a=!0,function(t){return function(n){if(n.type!==u||!a)return t(n);var r=n.payload,o=r.method,i=r.arg;e[o](i)}}}var n=void 0,r=void 0,i=void 0,a=!1,s=!1;return t.listenForReplays=function(t){var n=arguments.length<=1||void 0===arguments[1]?l:arguments[1],o=function(){return n(t.getState())},a=o(),u=a.location;i=t.subscribe(function(){var t=o(),n=t.location;return n?void(n.key!==r&&(s=!0,e.transitionTo(n),s=!1)):void e.transitionTo(u)})},t.unsubscribe=function(){n(),i&&i(),a=!1},t}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};Object.defineProperty(n,"__esModule",{value:!0}),n.routeReducer=i,n.syncHistory=a;var u=n.TRANSITION="@@router/TRANSITION",c=n.UPDATE_LOCATION="@@router/UPDATE_LOCATION",l=function(e){return e.routing},p=(n.routeActions={push:r("push"),replace:r("replace"),go:r("go"),goBack:r("goBack"),goForward:r("goForward")},{location:void 0})},{}],512:[function(e,t,n){"use strict";function r(e){var t=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(t,n):e(r)}}}t.exports=r},{}],513:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var a=e(n,r,o),u=a.dispatch,c=[],l={getState:a.getState,dispatch:function(e){return u(e)}};return c=t.map(function(e){return e(l)}),u=s.default.apply(void 0,c)(a.dispatch),i({},a,{dispatch:u})}}}n.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n.default=o;var a=e("./compose"),s=r(a)},{"./compose":516}],514:[function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}function o(e,t){if("function"==typeof e)return r(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),o={},i=0;i<n.length;i++){var a=n[i],s=e[a];"function"==typeof s&&(o[a]=r(s,t))}return o}n.__esModule=!0,n.default=o},{}],515:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=t&&t.type,r=n&&'"'+n.toString()+'"'||"an action";return"Given action "+r+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function i(e,t,n,r){var o=Object.keys(t),i=n&&n.type===u.ActionTypes.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===o.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!(0,l.default)(e))return"The "+i+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var a=Object.keys(e).filter(function(e){return!t.hasOwnProperty(e)&&!r[e]});return a.forEach(function(e){r[e]=!0}),a.length>0?"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.'):void 0}function a(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:u.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+u.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function s(e){for(var n=Object.keys(e),r={},s=0;s<n.length;s++){var u=n[s];"production"!==t.env.NODE_ENV&&"undefined"==typeof e[u]&&(0,f.default)('No reducer provided for key "'+u+'"'),"function"==typeof e[u]&&(r[u]=e[u])}var c=Object.keys(r);if("production"!==t.env.NODE_ENV)var l={};var p;try{a(r)}catch(e){p=e}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments[1];if(p)throw p;if("production"!==t.env.NODE_ENV){var a=i(e,r,n,l);a&&(0,f.default)(a)}for(var s=!1,u={},d=0;d<c.length;d++){var h=c[d],g=r[h],m=e[h],y=g(m,n);if("undefined"==typeof y){var v=o(h,n);throw new Error(v)}u[h]=y,s=s||y!==m}return s?u:e}}n.__esModule=!0,n.default=s;var u=e("./createStore"),c=e("lodash/isPlainObject"),l=r(c),p=e("./utils/warning"),f=r(p)}).call(this,e("_process"))},{"./createStore":517,"./utils/warning":519,_process:2,"lodash/isPlainObject":524}],516:[function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};if(1===t.length)return t[0];var r=t[t.length-1],o=t.slice(0,-1);return function(){return o.reduceRight(function(e,t){return t(e)},r.apply(void 0,arguments))}}n.__esModule=!0,n.default=r},{}],517:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){function r(){y===m&&(y=m.slice())}function i(){return g}function s(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),y.push(e),function(){if(t){t=!1,r();var n=y.indexOf(e);y.splice(n,1)}}}function l(e){if(!(0,a.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(v)throw new Error("Reducers may not dispatch actions.");try{v=!0,g=h(g,e)}finally{v=!1}for(var t=m=y,n=0;n<t.length;n++)t[n]();return e}function p(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,l({type:c.INIT})}function f(){var e,t=s;return e={subscribe:function(e){function n(){e.next&&e.next(i())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");n();var r=t(n);return{unsubscribe:r}}},e[u.default]=function(){return this},e}var d;if("function"==typeof t&&"undefined"==typeof n&&(n=t,t=void 0),"undefined"!=typeof n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var h=e,g=t,m=[],y=m,v=!1;return l({type:c.INIT}),d={dispatch:l,subscribe:s,getState:i,replaceReducer:p},d[u.default]=f,d}n.__esModule=!0,n.ActionTypes=void 0,n.default=o;var i=e("lodash/isPlainObject"),a=r(i),s=e("symbol-observable"),u=r(s),c=n.ActionTypes={INIT:"@@redux/INIT"}},{"lodash/isPlainObject":524,"symbol-observable":525}],518:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){}n.__esModule=!0,n.compose=n.applyMiddleware=n.bindActionCreators=n.combineReducers=n.createStore=void 0;var i=e("./createStore"),a=r(i),s=e("./combineReducers"),u=r(s),c=e("./bindActionCreators"),l=r(c),p=e("./applyMiddleware"),f=r(p),d=e("./compose"),h=r(d),g=e("./utils/warning"),m=r(g);"production"!==t.env.NODE_ENV&&"string"==typeof o.name&&"isCrushed"!==o.name&&(0,m.default)("You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) to ensure you have the correct code for your production build."),n.createStore=a.default,n.combineReducers=u.default,n.bindActionCreators=l.default,n.applyMiddleware=f.default,n.compose=h.default}).call(this,e("_process"))},{"./applyMiddleware":513,"./bindActionCreators":514,"./combineReducers":515,"./compose":516,"./createStore":517,"./utils/warning":519,_process:2}],519:[function(e,t,n){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}n.__esModule=!0,n.default=r},{}],520:[function(e,t,n){arguments[4][317][0].apply(n,arguments)},{"./_overArg":522,dup:317}],521:[function(e,t,n){arguments[4][228][0].apply(n,arguments)},{dup:228}],522:[function(e,t,n){arguments[4][35][0].apply(n,arguments)},{dup:35}],523:[function(e,t,n){arguments[4][44][0].apply(n,arguments)},{dup:44}],524:[function(e,t,n){arguments[4][321][0].apply(n,arguments)},{"./_getPrototype":520,"./_isHostObject":521,"./isObjectLike":523,dup:321}],525:[function(e,t,n){t.exports=e("./lib/index")},{"./lib/index":526}],526:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("./ponyfill"),i=r(o),a=void 0;"undefined"!=typeof t?a=t:"undefined"!=typeof window&&(a=window);var s=(0,i.default)(a);n.default=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ponyfill":527}],527:[function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},{}],528:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return{type:u.ZONES_SET_ACTIVE_ZONE,zone:e}}function i(e){return function(t){t(o(e)),"undefined"!=typeof e.id&&("active"===e.status&&(t((0,c.asyncDNSRecordFetchList)(e.id)),t((0,p.asyncZoneRailgunFetchAll)(e.id)),t((0,d.asyncPluginFetchSettings)(e.id))),t((0,f.asyncZoneFetchSettings)(e.id)),t((0,l.asyncZoneFetchAnalytics)(e.id)))}}function a(e){return function(t,n){""===n().activeZone.name&&t(i(e))}}n.__esModule=!0,n.zoneSetActiveZone=o,n.asyncZoneSetActiveZone=i,n.zoneSetActiveZoneIfEmpty=a;var s=e("../constants/ActionTypes"),u=r(s),c=e("./zoneDnsRecords"),l=e("./zoneAnalytics"),p=e("./zoneRailgun"),f=e("./zoneSettings"),d=e("./pluginSettings")},{"../constants/ActionTypes":548,"./pluginSettings":533,"./zoneAnalytics":535,"./zoneDnsRecords":536,"./zoneRailgun":539,"./zoneSettings":540}],529:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:a.APPLICATION_INIT}}n.__esModule=!0,n.applicationInit=o;var i=e("../constants/ActionTypes"),a=r(i)},{"../constants/ActionTypes":548}],530:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(){return{type:d.CONFIG_FETCH}}function a(e){return{type:d.CONFIG_FETCH_SUCCESS,config:e}}function s(){return{type:d.CONFIG_FETCH_ERROR}}function u(){return function(e){e(i());var t={};t.headers={Accept:"text/javascript"},p.default.get("./config.js",t,function(t,n){if(n){var r=JSON.parse(n.text);e(a(r)),"undefined"!=typeof absoluteUrlBase&&e(c(v.ABSOLUTE_URL_BASE_KEY,absoluteUrlBase)),e((0,h.asyncIntlFetchTranslations)(r.locale)),(0,m.isLoggedIn)()&&e((0,y.asyncUserLoginSuccess)((0,m.getEmail)()))}else e(s()),e((0,g.notificationAddError)(t))})}}function c(e,t){return{type:d.CONFIG_UPDATE_BY_KEY,key:e,value:t}}n.__esModule=!0,n.configFetch=i,n.configFetchSuccess=a,n.configFetchError=s,n.asyncConfigFetch=u,n.configUpdateByKey=c;var l=e("cf-util-http"),p=o(l),f=e("../constants/ActionTypes"),d=r(f),h=e("./intl"),g=e("./notifications"),m=e("../utils/Auth/Auth"),y=e("../actions/user"),v=e("../reducers/config")},{"../actions/user":534,"../constants/ActionTypes":548,"../reducers/config":594,"../utils/Auth/Auth":613,"./intl":531,"./notifications":532,"cf-util-http":148}],531:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(){return{type:f.INTL_FETCH_TRANSLATIONS}}function a(e,t){return{type:f.INTL_FETCH_TRANSLATIONS_SUCCESS,locale:e,translations:t}}function s(e){return{type:f.INTL_FETCH_TRANSLATIONS_ERROR,error:e}}function u(e){return function(t){t(i());var n={};n.headers={Accept:"text/javascript"},l.default.get("./lang/"+e+".js",n,function(n,r){if(r){var o=JSON.parse(r.text);t(a(e,o)),t((0,d.applicationInit)())}else t((0,h.notificationAddError)(n))})}}n.__esModule=!0,n.intlFetchTranslations=i,n.intlFetchTranslationsSuccess=a,n.intlFetchTranslationsError=s,n.asyncIntlFetchTranslations=u;var c=e("cf-util-http"),l=o(c),p=e("../constants/ActionTypes"),f=r(p),d=e("./app"),h=e("./notifications")},{"../constants/ActionTypes":548,"./app":529,"./notifications":532,"cf-util-http":148}],532:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t){var n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3],o=arguments.length<=4||void 0===arguments[4]?5e3:arguments[4];return{type:h.NOTIFICATION_ADD,level:e,message:t,localized:n,persistant:r,delay:o}}function a(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],r=arguments.length<=3||void 0===arguments[3]?5e3:arguments[3];return i("success",e,t,n,r)}function s(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],r=arguments.length<=3||void 0===arguments[3]?5e3:arguments[3];return i("info",e,t,n,r)}function u(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],r=arguments.length<=3||void 0===arguments[3]?5e3:arguments[3];return i("warning",e,t,n,r)}function c(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],r=arguments.length<=3||void 0===arguments[3]?5e3:arguments[3];return i("error",e,t,n,r)}function l(e){return{type:h.NOTIFICATION_REMOVE,key:e}}function p(e,t){return function(n){n(e),"string"==typeof errorMesages?n(c(errorMessages)):t.body.errors.forEach(function(e){n(c(e.message))})}}function f(e){return function(t,n){var r=n().notifications,o=(0,g.getZoneSettingsValueForZoneId)(e,"development_mode",n()),i=null;y.default.forEach(r,function(e){"warning"===e.level&&"warning.developmentmode"===e.message&&(i=e.key)}),"on"===o&&null===i&&t(u("warning.developmentmode",!0,!0)),"off"===o&&null!==i&&t(l(i))}}n.__esModule=!0,n.notificationAdd=i,n.notificationAddSuccess=a,n.notificationAddInfo=s,n.notificationAddWarning=u,n.notificationAddError=c,n.notificationRemove=l,n.notificationAddClientAPIError=p,n.notificationHandleDevelopmentMode=f;var d=e("../constants/ActionTypes"),h=o(d),g=e("../selectors/zoneSettings"),m=e("lodash"),y=r(m)},{"../constants/ActionTypes":548,"../selectors/zoneSettings":610,lodash:186}],533:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:g.PLUGIN_SETTINGS_FETCH}}function i(e,t){return{type:g.PLUGIN_SETTINGS_FETCH_SUCCESS,zoneId:e,setting:t}}function a(){return{type:g.PLUGIN_SETTINGS_FETCH_ERROR}}function s(e,t){return{type:g.PLUGIN_SETTING_UPDATE,zoneId:e,setting:t}}function u(e,t){return{type:g.PLUGIN_SETTING_UPDATE_SUCCESS,zoneId:e,setting:t}}function c(e,t){return{type:g.PLUGIN_SETTING_UPDATE_ERROR,zoneId:e,setting:t}}function l(e){return function(t){t(o()),(0,f.pluginSettingListGet)({zoneId:e},function(n,r){t((0,f.pluginResponseOk)(r)?i(e,r.body.result):(0,d.notificationAddClientAPIError)(a(),r))})}}function p(e,t,n){return function(r,o){var i=o().pluginSettings.entities[t][e];r(s(t,{id:e,value:n})),(0,f.pluginSettingPatch)(t,e,n,function(n,o){(0,f.pluginResponseOk)(o)?(r(u(t,o.body.result)),"default_settings"==e&&r((0,d.notificationAddSuccess)("container.applydefaultsettingscard.success",!0))):r((0,d.notificationAddClientAPIError)(c(t,i),o))})}}n.__esModule=!0,n.pluginFetchSettings=o,n.pluginFetchSettingsSuccess=i,n.pluginFetchSettingsError=a,n.pluginUpdateSetting=s,n.pluginUpdateSettingSuccess=u,n.pluginUpdateSettingError=c,n.asyncPluginFetchSettings=l,n.asyncPluginUpdateSetting=p;var f=e("../utils/PluginAPI/PluginAPI"),d=e("./notifications"),h=e("../constants/ActionTypes"),g=r(h)},{"../constants/ActionTypes":548,"../utils/PluginAPI/PluginAPI":617,"./notifications":532}],534:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:b.USER_LOGIN}}function i(e){return{type:b.USER_LOGIN_SUCCESS,email:e}}function a(e){return function(t){t(i(e)),t((0,C.asyncFetchZones)()),t(g.routeActions.push(x.HOME_PAGE))}}function s(e){return{type:b.USER_LOGIN_ERROR,error:e}}function u(e,t){return function(n){n(o()),(0,m.userAuth)({cloudflare_email:e,cloudflare_pass:t},function(e,t){(0,m.hostAPIResponseOk)(t)?n(a(t.body.response.cloudflare_email)):(n(s()),n((0,v.notificationAddError)(t)))})}}function c(e,t){return function(n){n(o()),(0,y.pluginAccountPost)(e,t,function(t,r){(0,y.pluginResponseOk)(r)?n(a(e)):(n(s()),n((0,v.notificationAddClientAPIError)(s(),r)))})}}function l(){return{type:b.USER_LOGOUT}}function p(){return{type:b.USER_SIGNUP}}function f(){return{type:b.USER_SIGNUP_SUCCESS}}function d(){return{type:b.USER_SIGNUP_ERROR}}function h(e,t){return function(n){n(p()),(0,m.userCreate)({cloudflare_email:e,cloudflare_pass:t},function(r,o){(0,m.hostAPIResponseOk)(o)?(n(f()),n(u(e,t))):(n(d()),n((0,v.notificationAddError)(o)))})}}n.__esModule=!0,n.userLogin=o,n.userLoginSuccess=i,n.asyncUserLoginSuccess=a,n.userLoginError=s,n.asyncLogin=u,n.asyncAPILogin=c,n.userLogout=l,n.userSignup=p,n.userSignupSuccess=f,n.userSignupError=d,n.asyncUserSignup=h;var g=e("redux-simple-router"),m=e("../utils/CFHostAPI/CFHostAPI"),y=e("../utils/PluginAPI/PluginAPI"),v=e("./notifications"),_=e("../constants/ActionTypes"),b=r(_),E=e("../constants/UrlPaths"),x=r(E),C=e("./zones")},{"../constants/ActionTypes":548,"../constants/UrlPaths":551,"../utils/CFHostAPI/CFHostAPI":615,"../utils/PluginAPI/PluginAPI":617,"./notifications":532,"./zones":541,"redux-simple-router":511}],535:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:p.ZONE_FETCH_ANALYTICS}}function i(e,t){return{type:p.ZONE_FETCH_ANALYTICS_SUCCESS,zoneId:e,zoneAnalytics:t}}function a(){return{type:p.ZONE_FETCH_ANALYTICS_ERROR}}function s(e){return function(t){t(o()),(0,u.zoneAnalyticsDashboardGet)({zoneId:e},function(n,r){t((0,u.v4ResponseOk)(r)?i(e,r.body.result):(0,c.notificationAddClientAPIError)(a(),r))})}}n.__esModule=!0,n.zoneFetchAnalytics=o,n.zoneFetchAnalyticsSuccess=i,n.zoneFetchAnalyticsError=a,n.asyncZoneFetchAnalytics=s;var u=e("../utils/CFClientV4API/CFClientV4API"),c=e("./notifications"),l=e("../constants/ActionTypes"),p=r(l)},{"../constants/ActionTypes":548,"../utils/CFClientV4API/CFClientV4API":614,"./notifications":532}],536:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return{type:v.DNS_RECORD_CLEAR_ALL,zoneId:e}}function i(e){return{type:v.DNS_RECORD_CREATE,name:e}}function a(e,t){return{type:v.DNS_RECORD_CREATE_SUCCESS,zoneId:e,dnsRecord:t}}function s(){return{type:v.DNS_RECORD_CREATE_ERROR}}function u(e,t,n,r){return function(o){o(i(n)),(0,_.zoneDNSRecordPostNew)({zoneId:e,type:t,name:n,content:r},function(t,n){(0,_.v4ResponseOk)(n)?(o(a(e,n.body.result)),o(m(e,n.body.result,!0))):o((0,b.notificationAddClientAPIError)(s(),n))})}}function c(){return{type:v.DNS_RECORD_FETCH_LIST}}function l(e,t){return{type:v.DNS_RECORD_FETCH_LIST_SUCCESS,zoneId:e,dnsRecords:t}}function p(){return{type:v.DNS_RECORD_FETCH_LIST_SUCCESS}}function f(e){return function(t){t(c()),(0,_.zoneDNSRecordGetAll)(e,function(n,r){t((0,_.v4ResponseOk)(r)?l(e,r.body.result):(0,b.notificationAddClientAPIError)(p(),r))})}}function d(e){return{type:v.DNS_RECORD_UPDATE,name:e}}function h(e,t){return{type:v.DNS_RECORD_UPDATE_SUCCESS,zoneId:e,dnsRecord:t}}function g(){return{type:v.DNS_RECORD_UPDATE_ERROR}}function m(e,t,n){return function(r){r(d(t.name)),(0,_.zoneDNSRecordPatch)({zoneId:e,dnsRecordId:t.id,proxied:n},function(t,n){r((0,_.v4ResponseOk)(n)?h(e,n.body.result):(0,b.notificationAddClientAPIError)(g,n))})}}n.__esModule=!0,n.dnsRecordClearAll=o,n.dnsRecordCreate=i,n.dnsRecordCreateSuccess=a,n.dnsRecordCreateError=s,n.asyncDNSRecordCreate=u,n.dnsRecordFetchList=c,n.dnsRecordFetchListSuccess=l,n.dnsRecordFetchListError=p,n.asyncDNSRecordFetchList=f,n.dnsRecordUpdate=d,n.dnsRecordUpdateSuccess=h,n.dnsRecordUpdateError=g,n.asyncDNSRecordUpdate=m;var y=e("../constants/ActionTypes"),v=r(y),_=e("../utils/CFClientV4API/CFClientV4API"),b=e("./notifications")},{"../constants/ActionTypes":548,"../utils/CFClientV4API/CFClientV4API":614,"./notifications":532}],537:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:E.ZONE_ACTIVATION_CHECK}}function i(){return{type:E.ZONE_ACTIVATION_CHECK_SUCCESS}}function a(){return{type:E.ZONE_ACTIVATION_CHECK_ERROR}}function s(e){return function(t){t(o()),(0,y.zoneActivationCheckPutNew)(e,function(e,n){(0,y.v4ResponseOk)(n)?(t(i()),t((0,_.notificationAddSuccess)("container.activationCheckCard.success",!0))):t(notificationAddClientAPIError(a(),n))})}}function u(){return{type:E.ZONES_PROVISION_CNAME}}function c(){return{type:E.ZONES_PROVISION_CNAME_SUCCESS}}function l(){return{type:E.ZONES_PROVISION_CNAME_ERROR}}function p(e){return function(t){t(u()),(0,v.partialZoneSet)({zone_name:e},function(n,r){(0,v.hostAPIResponseOk)(r)?(t(c()),t(m(e))):(t(l()),t((0,_.notificationAddError)(r)))})}}function f(){return{type:E.ZONES_PROVISION_FULL}}function d(){return{type:E.ZONES_PROVISION_FULL_SUCCESS}}function h(){return{type:E.ZONES_PROVISION_FULL_ERROR}}function g(e){return function(t){t(f()),(0,v.fullZoneSet)({zone_name:e},function(n,r){(0,v.hostAPIResponseOk)(r)?(t(d()),t(m(e))):(t(h()),t((0,_.notificationAddError)(r)))})}}function m(e){return function(t){t((0,w.zoneFetch)()),(0,y.zoneGetAll)(function(n,r){if((0,y.v4ResponseOk)(r)){t((0,w.zoneFetchSuccess)(r.body.result));var o=(0,C.normalizeZoneGetAll)(r.body.result);t((0,x.asyncZoneSetActiveZone)(o.entities.zones[e]))}else t((0,_.notificationAddError)(r))})}}n.__esModule=!0,n.zoneActivationCheck=o,n.zoneActivationCheckSuccess=i,n.zoneActivationCheckError=a,n.asyncZoneActivationCheck=s,n.zonesProvisionCname=u,n.zoneProvisionCnameSuccess=c,n.zoneProvisionCnameError=l,n.asyncZoneProvisionCname=p,n.zoneProvisionFull=f,n.zoneProvisionFullSuccess=d,n.zoneProvisionFullError=h,n.asyncZoneProvisionFull=g;var y=e("../utils/CFClientV4API/CFClientV4API"),v=e("../utils/CFHostAPI/CFHostAPI"),_=e("./notifications"),b=e("../constants/ActionTypes"),E=r(b),x=e("./activeZone"),C=e("../constants/Schemas"),w=e("./zones")},{"../constants/ActionTypes":548,"../constants/Schemas":550,"../utils/CFClientV4API/CFClientV4API":614,"../utils/CFHostAPI/CFHostAPI":615,"./activeZone":528,"./notifications":532,"./zones":541}],538:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:f.ZONE_PURGE_CACHE}}function i(){return{type:f.ZONE_PURGE_CACHE_SUCCESS}}function a(){return{type:f.ZONE_PURGE_CACHE_ERROR}}function s(e,t){return function(n){n(o());var r=t.replace(/^\s+|\s+$/g,"").split(/\s+/);(0,c.zonePurgeCache)({zoneId:e,files:r},function(e,t){(0,c.v4ResponseOk)(t)?(n(i()),n((0,l.notificationAddSuccess)("container.purgeCacheCard.success",!0))):n((0,l.notificationAddClientAPIError)(a(),t))})}}function u(e){return function(t){t(o()),(0,c.zonePurgeCache)({zoneId:e,purge_everything:!0},function(e,n){(0,c.v4ResponseOk)(n)?(t(i()),t((0,l.notificationAddSuccess)("container.purgeCacheByURLCard.success",!0))):t((0,l.notificationAddClientAPIError)(a(),n))})}}n.__esModule=!0,n.zonePurgeCache=o,n.zonePurgeCacheSuccess=i,n.zonePurgeCacheError=a,n.asyncZonePurgeCacheIndividualFiles=s,n.asyncZonePurgeCacheEverything=u;var c=e("../utils/CFClientV4API/CFClientV4API"),l=e("./notifications"),p=e("../constants/ActionTypes"),f=r(p)},{"../constants/ActionTypes":548,"../utils/CFClientV4API/CFClientV4API":614,"./notifications":532}],539:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:m.ZONE_RAILGUNS_FETCH_ALL}}function i(e,t){return{type:m.ZONE_RAILGUNS_FETCH_ALL_SUCCESS,zoneId:e,zoneRailguns:t}}function a(){return{type:m.ZONE_RAILGUNS_FETCH_ALL_ERROR}}function s(e){return function(t){t(o()),(0,d.zoneRailgunGetAll)(e,function(n,r){t((0,d.v4ResponseOk)(r)?i(e,r.body.result):(0,h.notificationAddClientAPIError)(a(),r))})}}function u(e,t){return{type:m.ZONE_RAILGUNS_CONNECTION_UPDATE,zoneId:e,zoneRailgun:t}}function c(e,t){return{type:m.ZONE_RAILGUNS_CONNECTION_UPDATE_SUCCESSS,zoneId:e,zoneRailgun:t}}function l(e,t){return{type:m.ZONE_RAILGUNS_CONNECTION_UPDATE_ERROR,zoneId:e,zoneRailgun:t}}function p(e,t,n){return function(r){var o=f({},t);r(u(e,f({},t,{connected:n}))),(0,d.zoneRailgunPatch)(e,t.id,n,function(t,n){r((0,d.v4ResponseOk)(n)?c(e,n.body.result):(0,h.notificationAddClientAPIError)(l(e,o),n))})}}n.__esModule=!0;var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n.zoneRailgunFetchAll=o,n.zoneRailgunFetchAllSuccess=i,n.zoneRailgunFetchAllError=a,n.asyncZoneRailgunFetchAll=s,n.zoneRailgunConnectionUpdate=u,n.zoneRailgunConnectionUpdateSuccess=c,n.zoneRailgunConnectionUpdateError=l,n.asyncZoneRailgunConnectionUpdate=p;var d=e("../utils/CFClientV4API/CFClientV4API"),h=e("./notifications"),g=e("../constants/ActionTypes"),m=r(g)},{"../constants/ActionTypes":548,"../utils/CFClientV4API/CFClientV4API":614,"./notifications":532}],540:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:g.ZONE_FETCH_SETTINGS}}function i(e,t){return{type:g.ZONE_FETCH_SETTINGS_SUCCESS,zoneId:e,zoneSettings:t}}function a(){return{type:g.ZONE_FETCH_SETTINGS_ERROR}}function s(e){return function(t){t(o()),(0,f.zoneGetSettings)(e,function(n,r){(0,f.v4ResponseOk)(r)?(t(i(e,r.body.result)),t((0,d.notificationHandleDevelopmentMode)(e))):t((0,d.notificationAddClientAPIError)(a(),r))})}}function u(e,t){return{type:g.ZONE_UPDATE_SETTING,zoneId:e,setting:t}}function c(e,t){return{type:g.ZONE_UPDATE_SETTING_SUCCESS,zoneId:e,setting:t}}function l(e,t){return{type:g.ZONE_UPDATE_SETTING_ERROR,zoneId:e,setting:t}}function p(e,t,n){return function(r,o){var i=o().zoneSettings.entities[t][e];r(u(t,{id:e,value:n})),(0,f.zonePatchSetting)(e,t,n,function(e,n){(0,f.v4ResponseOk)(n)?(r(c(t,n.body.result)),r((0,d.notificationHandleDevelopmentMode)(t))):r((0,d.notificationAddClientAPIError)(l(t,i),n))})}}n.__esModule=!0,n.zoneFetchSettings=o,n.zoneFetchSettingsSuccess=i,n.zoneFetchSettingsError=a,n.asyncZoneFetchSettings=s,n.zoneUpdateSetting=u,n.zoneUpdateSettingSuccess=c,n.zoneUpdateSettingError=l,n.asyncZoneUpdateSetting=p;var f=e("../utils/CFClientV4API/CFClientV4API"),d=e("./notifications"),h=e("../constants/ActionTypes"),g=r(h)},{"../constants/ActionTypes":548,"../utils/CFClientV4API/CFClientV4API":614,"./notifications":532}],541:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:g.ZONES_DELETE_ZONE}}function i(){return{type:g.ZONES_DELETE_ZONE_SUCCESS}}function a(e){return{type:g.ZONES_DELETE_ZONE_ERROR,error:e}}function s(e){return function(t){t(o(e)),(0,f.zoneDeleteZone)(e,function(n,r){
|
31 |
-
(0,f.v4ResponseOk)(r)?(t(i()),t((0,y.dnsRecordClearAll)(e)),t(p())):(t(a()),t((0,d.notificationAddError)(r)))})}}function u(){return{type:g.ZONES_FETCH}}function c(e){return{type:g.ZONES_FETCH_SUCCESS,zoneList:e}}function l(e){return{type:g.ZONES_FETCH_ERROR,error:e}}function p(){return function(e){e(u()),(0,f.zoneGetAll)(function(t,n){(0,f.v4ResponseOk)(n)?(e(c(n.body.result)),n.body.result[0]&&e((0,m.zoneSetActiveZoneIfEmpty)(n.body.result[0]))):(e(l()),e((0,d.notificationAddError)(n)))})}}n.__esModule=!0,n.zoneDelete=o,n.zoneDeleteSuccess=i,n.zoneDeleteError=a,n.asyncZoneDelete=s,n.zoneFetch=u,n.zoneFetchSuccess=c,n.zoneFetchError=l,n.asyncFetchZones=p;var f=e("../utils/CFClientV4API/CFClientV4API"),d=e("./notifications"),h=e("../constants/ActionTypes"),g=r(h),m=e("./activeZone"),y=e("./zoneDnsRecords")},{"../constants/ActionTypes":548,"../utils/CFClientV4API/CFClientV4API":614,"./activeZone":528,"./notifications":532,"./zoneDnsRecords":536}],542:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=e("react-intl"),l=e("cf-component-link"),p=r(l),f=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e={fontSize:"1rem",textAlign:"center",width:"4.2rem",whiteSpace:"normal",display:"inline-block",verticalAlign:"top"},t={backgroundColor:"#2f7bbf",borderColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",border:"4px solid transparent",color:"#FFF",display:"block",fontSize:"2.02666rem",height:"3.2rem",lineHeight:"2.8rem",margin:"0 auto 0.8rem auto",overflow:"hidden",width:"3.2rem"},n={transition:"all 0.2s ease-in-out",boxSizing:"border-box",color:"#FFF",fontSize:"2.02666rem",lineHeight:"2.8rem"},r={color:"#333",textAlign:"center",whiteSpace:"normal"};return u.default.createElement("li",{style:e},u.default.createElement(p.default,{onClick:this.props.onClick},u.default.createElement("span",{style:t},u.default.createElement("svg",{style:n,version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",viewBox:"0 0 40 40"},this.props.children)),u.default.createElement("span",{style:r},u.default.createElement(c.FormattedMessage,{id:this.props.title}))))},t}(s.Component);n.default=f,f.propTypes={onClick:s.PropTypes.func.isRequired,title:s.PropTypes.string.isRequired}},{"cf-component-link":79,react:509,"react-intl":288}],543:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){this.props.onChange(e.target.checked)},t.prototype.render=function(){var e="proxy";return u.default.createElement("label",{htmlFor:this.props.name,className:e},u.default.createElement("input",{type:"checkbox",id:this.props.name,name:this.props.name,checked:this.props.value,onChange:this.handleChange.bind(this),onFocus:this.props.onFocus,onBlur:this.props.onBlur}),u.default.createElement("span",{className:"cloud"},this.props.label))},t}(s.Component);n.default=c,c.propTypes={label:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.oneOf([!1])]).isRequired,name:s.PropTypes.string,value:s.PropTypes.bool,onChange:s.PropTypes.func,onFocus:s.PropTypes.func,onBlur:s.PropTypes.func}},{react:509}],544:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{integrationName:(0,m.getConfigValue)(e.config,"integrationName"),activeZone:e.activeZone}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-card"),d=e("cf-component-button"),h=e("../../constants/UrlPaths.js"),g=e("../../constants/Plans.js"),m=e("../../selectors/config.js"),y=e("../../selectors/generateUTMLink.js"),v=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.openUpgradePlanLink=function(e){window.open(e,"wordpress","toolbar=0,status=0,width=548,height=325")},t.prototype.render=function(){var e=this.props,t=e.integrationName,n=e.activeZone,r=this.props.hasOwnProperty("currentPlan")?this.props.currentPlan:g.FREE_PLAN,o=this.props.hasOwnProperty("minimumPlan")?this.props.minimumPlan:g.FREE_PLAN,i=(0,g.planNeedsUpgrade)(r,o),a=(0,g.getLocalizedPlanId)(o),s=(0,y.generateUTMLink)(h.CLOUDFLARE_DASHBOARD_PAGE+n.name,t,t,this.props.indentifier);return c.default.createElement(f.CardControl,null,i?c.default.createElement(d.Button,{type:"primary",onClick:this.openUpgradePlanLink.bind(this,s)},c.default.createElement(p.FormattedMessage,{id:"component.customcardcontrol.upgrade"})," ",c.default.createElement(p.FormattedMessage,{id:a})):this.props.children)},t}(u.Component);v.propTypes={name:u.PropTypes.string,indentifier:u.PropTypes.string.isRequired},n.default=(0,p.injectIntl)((0,l.connect)(s)(v))},{"../../constants/Plans.js":549,"../../constants/UrlPaths.js":551,"../../selectors/config.js":607,"../../selectors/generateUTMLink.js":608,"cf-component-button":5,"cf-component-card":16,react:509,"react-intl":288,"react-redux":310}],545:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return u.default.createElement("div",null,this.props.isEnabled&&this.props.children,!this.props.isEnabled&&this.props.error&&this.props.error)},t}(s.Component);n.default=c,c.propTypes={isEnabled:u.default.PropTypes.bool.isRequired,error:u.default.PropTypes.string}},{react:509}],546:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=e("react-intl"),l=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e={padding:"5px"},t={display:"block",width:"40px",height:"auto",maxWidth:"100px",margin:"0 auto"},n={padding:"20px 0 0 0",textAlign:"center",fontSize:"16px",color:"#2f7bbf",width:"100%",display:"block"},r={padding:"10px 0 0 0",fontSize:"12px",textAlign:"center"};return u.default.createElement("div",{style:e},u.default.createElement("img",{src:this.props.imgSrc,style:t}),u.default.createElement("span",{style:n,href:"#"},u.default.createElement(c.FormattedMessage,{id:this.props.titleKey})),u.default.createElement("p",{style:r},u.default.createElement(c.FormattedMessage,{id:this.props.descriptionKey})))},t}(s.Component);n.default=l,l.propTypes={imgSrc:s.PropTypes.string.isRequired,titleKey:s.PropTypes.string.isRequired,descriptionKey:s.PropTypes.string.isRequired}},{react:509,"react-intl":288}],547:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return u.default.map(e,function(e,t){return a.default.createElement(c.cardMapper[e],{key:t})})}n.__esModule=!0,n.renderCards=o;var i=e("react"),a=r(i),s=e("lodash"),u=r(s),c=e("../../utils/ImportCards")},{"../../utils/ImportCards":616,lodash:186,react:509}],548:[function(e,t,n){"use strict";n.__esModule=!0;n.APPLICATION_INIT="APPLICATION_INIT",n.CONFIG_FETCH="CONFIG_FETCH",n.CONFIG_FETCH_SUCCESS="CONFIG_FETCH_SUCCESS",n.CONFIG_FETCH_ERROR="CONFIG_FETCH_ERROR",n.CONFIG_UPDATE_BY_KEY="CONFIG_UPDATE_BY_KEY",n.DNS_RECORD_CLEAR_ALL="DNS_RECORD_CLEAR_ALL",n.DNS_RECORD_CREATE="DNS_RECORD_CREATE",n.DNS_RECORD_CREATE_SUCCESS="DNS_RECORD_CREATE_SUCCESS",n.DNS_RECORD_CREATE_ERROR="DNS_RECORD_CREATE_ERROR",n.DNS_RECORD_FETCH_LIST="DNS_RECORD_FETCH_LIST",n.DNS_RECORD_FETCH_LIST_SUCCESS="DNS_RECORD_FETCH_LIST_SUCCESS",n.DNS_RECORD_FETCH_LIST_ERROR="DNS_RECORD_FETCH_LIST_ERROR",n.DNS_RECORD_UPDATE="DNS_RECORD_UPDATE",n.DNS_RECORD_UPDATE_SUCCESS="DNS_RECORD_UPDATE_SUCCESS",n.DNS_RECORD_UPDATE_ERROR="DNS_RECORD_UPDATE_ERROR",n.INTL_FETCH_TRANSLATIONS="INTL_FETCH_TRANSLATIONS",n.INTL_FETCH_TRANSLATIONS_SUCCESS="INTL_FETCH_TRANSLATIONS_SUCCESS",n.INTL_FETCH_TRANSLATIONS_ERROR="INTL_FETCH_TRANSLATIONS_ERROR",n.NOTIFICATION_ADD="NOTIFICATION_ADD",n.NOTIFICATION_REMOVE="NOTIFICATION_REMOVE",n.PLUGIN_SETTINGS_FETCH="PLUGIN_SETTINGS_FETCH",n.PLUGIN_SETTINGS_FETCH_SUCCESS="PLUGIN_SETTINGS_FETCH_SUCCESS",n.PLUGIN_SETTINGS_FETCH_ERROR="PLUGIN_SETTINGS_FETCH_ERROR",n.PLUGIN_SETTING_UPDATE="PLUGIN_SETTING_UPDATE",n.PLUGIN_SETTING_UPDATE_SUCCESS="PLUGIN_SETTING_UPDATE_SUCCESS",n.PLUGIN_SETTING_UPDATE_ERROR="PLUGIN_SETTING_UPDATE_ERROR",n.USER_LOGIN="USER_LOGIN",n.USER_LOGIN_SUCCESS="USER_LOGIN_SUCCESS",n.USER_LOGIN_ERROR="USER_LOGIN_ERROR",n.USER_LOGOUT="USER_LOGOUT",n.USER_SIGNUP="USER_SIGNUP",n.USER_SIGNUP_SUCCESS="USER_SIGNUP_SUCCESS",n.USER_SIGNUP_ERROR="USER_SIGNUP_ERROR",n.ZONE_ACTIVATION_CHECK="ZONE_ACTIVATION_CHECK",n.ZONE_ACTIVATION_CHECK_SUCCESS="ZONE_ACTIVATION_CHECK_SUCCESS",n.ZONE_ACTIVATION_CHECK_ERROR="ZONE_ACTIVATION_CHECK_ERROR",n.ZONE_FETCH_ANALYTICS="ZONE_FETCH_ANALYTICS",n.ZONE_FETCH_ANALYTICS_SUCCESS="ZONE_FETCH_ANALYTICS_SUCCESS",n.ZONE_FETCH_ANALYTICS_ERROR="ZONE_FETCH_ANALYTICS_ERROR",n.ZONE_FETCH_SETTINGS="ZONE_FETCH_SETTINGS",n.ZONE_FETCH_SETTINGS_SUCCESS="ZONE_FETCH_SETTINGS_SUCCESS",n.ZONE_FETCH_SETTINGS_ERROR="ZONE_FETCH_SETTINGS_ERROR",n.ZONE_PURGE_CACHE="ZONE_PURGE_CACHE",n.ZONE_PURGE_CACHE_SUCCESS="ZONE_PURGE_CACHE_SUCCESS",n.ZONE_PURGE_CACHE_ERROR="ZONE_PURGE_CACHE_ERROR",n.ZONE_UPDATE_SETTING="ZONE_UPDATE_SETTING",n.ZONE_UPDATE_SETTING_SUCCESS="ZONE_UPDATE_SETTING_SUCCESS",n.ZONE_UPDATE_SETTING_ERROR="ZONE_UPDATE_SETTING_ERROR",n.ZONE_FETCH_SCAN="ZONE_FETCH_SCAN",n.ZONE_FETCH_SCAN_SUCCESS="ZONE_FETCH_SCAN_SUCCESS",n.ZONE_FETCH_SCAN_ERROR="ZONE_FETCH_SCAN_ERROR",n.ZONE_UPDATE_SCAN="ZONE_UPDATE_SCAN",n.ZONE_UPDATE_SCAN_SUCCESS="ZONE_UPDATE_SCAN_SUCCESS",n.ZONE_UPDATE_SCAN_ERROR="ZONE_UPDATE_SCAN_ERROR",n.ZONES_DELETE_ZONE="ZONES_DELETE_ZONE",n.ZONES_DELETE_ZONE_SUCCESS="ZONES_DELETE_ZONE_SUCCESS",n.ZONES_DELETE_ZONE_ERROR="ZONES_DELETE_ZONE_ERROR",n.ZONES_FETCH="ZONES_FETCH",n.ZONES_FETCH_SUCCESS="ZONES_FETCH_SUCCESS",n.ZONES_FETCH_ERROR="ZONES_FETCH_ERROR",n.ZONES_SET_ACTIVE_ZONE="ZONE_SET_ACTIVE_ZONE",n.ZONES_PROVISION_CNAME="ZONES_PROVISION_CNAME",n.ZONES_PROVISION_CNAME_SUCCESS="ZONES_PROVISION_CNAME_SUCCESS",n.ZONES_PROVISION_CNAME_ERROR="ZONES_PROVISION_CNAME_ERROR",n.ZONES_PROVISION_FULL="ZONES_PROVISION_FULL_ZONE",n.ZONES_PROVISION_FULL_SUCCESS="ZONES_PROVISION_FULL_ZONE_SUCCESS",n.ZONES_PROVISION_FULL_ERROR="ZONES_PROVISION_FULL_ZONE_ERROR",n.ZONE_RAILGUNS_FETCH_ALL="ZONES_RAILGUNS_FETCH_ALL",n.ZONE_RAILGUNS_FETCH_ALL_SUCCESS="ZONES_RAILGUNS_FETCH_ALL_SUCCESS",n.ZONE_RAILGUNS_FETCH_ALL_ERROR="ZONES_RAILGUNS_FETCH_ALL_ERROR",n.ZONE_RAILGUNS_CONNECTION_UPDATE="ZONES_RAILGUNS_CONNECTION_UPDATE",n.ZONE_RAILGUNS_CONNECTION_UPDATE_SUCCESSS="ZONES_RAILGUNS_CONNECTION_UPDATE__SUCCESS",n.ZONE_RAILGUNS_CONNECTION_UPDATE_ERROR="ZONES_RAILGUNS_CONNECTION_UPDATE_ERROR"},{}],549:[function(e,t,n){"use strict";function r(e,t){var n={};return n[u]=0,n[c]=1,n[l]=2,n[p]=3,n[e]<n[t]}function o(e){var t=e;switch(e){case c:t=i;break;case l:t=a;break;case p:t=s}return t}n.__esModule=!0,n.planNeedsUpgrade=r,n.getLocalizedPlanId=o;var i="constants.plans.pro",a="constants.plans.biz",s="constants.plans.ent",u=n.FREE_PLAN="free",c=n.PRO_PLAN="pro",l=n.BIZ_PLAN="business",p=n.ENT_PLAN="enterprise"},{}],550:[function(e,t,n){"use strict";function r(e,t){var n=new a.Schema(e,{idAttribute:"id"});return(0,a.normalize)(t,(0,a.arrayOf)(n))}function o(e){return(0,a.normalize)(e,(0,a.arrayOf)(s))}function i(e){return(0,a.normalize)(e,(0,a.arrayOf)(u))}n.__esModule=!0,n.normalizeZoneByIdGetAll=r,n.normalizeZoneGetAll=o,n.normalizeZoneRailgunGetAll=i;var a=e("normalizr"),s=new a.Schema("zones",{idAttribute:"name"}),u=new a.Schema("railguns",{idAttribute:"id"})},{normalizr:190}],551:[function(e,t,n){"use strict";n.__esModule=!0;n.ANALYTICS_PAGE="/analytics",n.CLOUDFLARE_API_KB_ARTICLE_PAGE="https://support.cloudflare.com/hc/en-us/articles/200167836-Where-do-I-find-my-CloudFlare-API-key-",n.CLOUDFLARE_FORGOT_PASSWORD_PAGE="https://cloudflare.com/a/forgot-password",n.CLOUDFLARE_SIGNUP_PAGE="https://www.cloudflare.com/a/sign-up",n.CLOUDFLARE_UPGRADE_PAGE="http://cloudflare.com/plans",n.CLOUDFLARE_DASHBOARD_PAGE="http://cloudflare.com/a/overview/",n.DOMAINS_OVERVIEW_PAGE="/zones",n.HOME_PAGE="/home",n.MORE_SETTINGS_PAGE="/more-settings",n.LOGIN_PAGE="/login",n.PERFORMANCE_PAGE="/performance",n.SECURITY_PAGE="/security",n.SIGN_UP_PAGE="/sign-up",n.SUPPORT_PAGE="https://support.cloudflare.com/hc/en-us/",n.TERMS_AND_CONDITIONS_PAGE="https://www.cloudflare.com/terms",n.PRIVACY_POLICY_PAGE="https://www.cloudflare.com/security-policy"},{}],552:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZone:e.activeZone,zone:e.zones.entities.zones[e.activeZone.name]}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("../../actions/zoneProvision"),d=e("cf-component-card"),h=e("cf-component-button"),g=e("cf-component-list"),m=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleButtonClick=function(){var e=this.props,t=e.activeZone,n=e.dispatch;n((0,f.asyncZoneActivationCheck)(t.id))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.zone;return c.default.createElement("div",null,c.default.createElement(d.Card,null,c.default.createElement(d.CardSection,null,c.default.createElement(d.CardContent,{title:e({id:"container.activationCheckCard.title"})},c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.activationCheckCard.status",values:{status:t.status}})),c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.activationCheckCard.nameServers"})),c.default.createElement(g.List,null,t.name_servers.map(function(e){return c.default.createElement(g.ListItem,{key:e},e)})),c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.activationCheckCard.description"}))),c.default.createElement(d.CardControl,null,c.default.createElement(h.Button,{type:"success",onClick:this.handleButtonClick.bind(this)},c.default.createElement(p.FormattedMessage,{id:"container.activationCheckCard.button"}))))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(m))},{"../../actions/zoneProvision":537,"cf-component-button":5,"cf-component-card":16,"cf-component-list":83,react:509,"react-intl":288,"react-redux":310}],553:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZone:e.activeZone,zoneList:e.zones.entities.zones,config:e.config}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("lodash"),d=r(f),h=e("cf-component-select"),g=r(h),m=e("../../actions/notifications"),y=e("../../selectors/config"),v=e("../../actions/activeZone"),_=e("../../utils/utils"),b=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.state={subdomainChecked:!1},r}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.dispatch,r=t.zoneList;d.default.values(r).forEach(function(t){t.name===e&&n((0,v.asyncZoneSetActiveZone)(t))})},t.prototype.componentWillReceiveProps=function(){var e=this.props,t=e.activeZone,n=e.config,r=e.dispatch,o=(0,y.getConfigValue)(n,"isSubdomainCheckEnabled");o&&!this.state.subdomainChecked&&(0,_.isSubdomain)(t.name)&&(this.setState({subdomainChecked:!0}),r((0,m.notificationAddWarning)("warning.usingSubdomain",!0,!0)))},t.prototype.render=function(){var e=this.props,t=e.activeZone,n=e.intl,r=e.zoneList,o=d.default.values(r).map(function(e){return{value:e.name,label:e.name}});return c.default.createElement("div",null,c.default.createElement(g.default,{label:n.formatMessage({id:"container.activeZoneSelector.activeZone"}),value:t.name,options:o,onChange:this.handleChange.bind(this)}))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(b))},{"../../actions/activeZone":528,"../../actions/notifications":532,"../../selectors/config":607,"../../utils/utils":618,"cf-component-select":114,lodash:186,react:509,"react-intl":288,"react-redux":310}],554:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZone:e.activeZone,zones:e.zones.entities.zones}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-card"),d=e("../../components/CustomCardControl/CustomCardControl"),h=r(d),g=e("../../constants/Plans.js"),m="advanceddos",y=g.BIZ_PLAN,v=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.activeZone,n=e.zones,r=n[t.name],o=this.props.intl.formatMessage;return(0,g.planNeedsUpgrade)(r.plan.legacy_id,y)?c.default.createElement(f.Card,null,c.default.createElement(f.CardSection,null,c.default.createElement(f.CardContent,{title:o({id:"container.advanceddos.title"})},c.default.createElement(p.FormattedMessage,{id:"container.advanceddos.description"})),c.default.createElement(h.default,{minimumPlan:y,currentPlan:r.plan.legacy_id,indentifier:m},c.default.createElement(p.FormattedMessage,{id:"container.advanceddos.value"})))):null},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(v))},{"../../components/CustomCardControl/CustomCardControl":544,"../../constants/Plans.js":549,"cf-component-card":16,react:509,"react-intl":288,"react-redux":310}],555:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,alwaysOnlineValue:(0,y.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,y.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-toggle"),d=r(f),h=e("cf-component-card"),g=e("../../actions/zoneSettings"),m=e("../../utils/utils"),y=e("../../selectors/zoneSettings"),v="always_online",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,g.asyncZoneUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(h.Card,null,c.default.createElement(h.CardSection,null,c.default.createElement(h.CardContent,{title:e({id:"container.alwaysOnlineCard.title"}),footerMessage:(0,m.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.alwaysOnlineCard.description"}))),c.default.createElement(h.CardControl,null,c.default.createElement(d.default,{label:"",value:"on"===this.props.alwaysOnlineValue,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":540,"../../selectors/zoneSettings":610,"../../utils/utils":618,"cf-component-card":16,"cf-component-toggle":146,react:509,"react-intl":288,"react-redux":310}],556:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,allZoneAnalytics:e.zoneAnalytics.entities}}n.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=e("react"),l=r(c),p=e("react-redux"),f=e("react-intl"),d=e("cf-component-tabs"),h=e("cf-component-layout"),g=e("cf-component-heading"),m=e("d3-format"),y=e("react-c3-wrapper"),v=r(y),_=e("lodash"),b=r(_),E=e("../../utils/utils"),x="requests",C="bandwidth",w="uniques",S="threats",O=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n)),a=function(e){var t=(0,m.format)(".0f"),n=(0,E.humanFileSize)(e).split(" "),r=n[1],o=n[0];return t(o)+r};return r.state={activeTab:x,bytesToString:a},r}return a(t,e),t.prototype.handleTabChange=function(e){this.setState({activeTab:e})},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props,n=t.activeZoneId,r=t.allZoneAnalytics,o=u({},r[n]),i=b.default.isEmpty(o),a=e({id:"containers.analyticsPage.cached"}),s=e({id:"containers.analyticsPage.uncached"}),c=e({id:"containers.analyticsPage.threats"}),p=e({id:"containers.analyticsPage.uniques"});if(!i){var m="N/A",y=0;b.default.forEach(o.totals.threats.country,function(e,t){y<e&&(y=e,m=t)});var _="N/A",O=0;b.default.forEach(o.totals.threats.country,function(e,t){O<e&&(O=e,_=t)})}var T="%m/%d";return l.default.createElement("div",null,i&&l.default.createElement(f.FormattedMessage,{id:"errors.noActiveZoneSelected"}),!i&&l.default.createElement("div",null,l.default.createElement(g.Heading,{size:1},l.default.createElement(f.FormattedMessage,{id:"container.analyticsPage.title"})),l.default.createElement(d.Tabs,{activeTab:this.state.activeTab,tabs:[{id:x,label:e({id:"container.analyticsPage.tabs.requests"})},{id:C,label:e({id:"container.analyticsPage.tabs.bandwidth"})},{id:w,label:e({id:"container.analyticsPage.tabs.uniques"})},{id:S,label:e({id:"container.analyticsPage.tabs.threats"})}],onChange:this.handleTabChange.bind(this)},l.default.createElement(d.TabsPanel,{id:x},l.default.createElement(h.LayoutContainer,null,l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1},l.default.createElement("h3",null,e({id:"container.analyticsPage.tabs.requests.title"})))),l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.requests.total"})),o.totals.requests.all),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.requests.cached"})),o.totals.requests.cached),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.requests.uncached"})),o.totals.requests.uncached)),l.default.createElement(h.LayoutRow,null,l.default.createElement(v.default,{config:{data:{x:"x",xFormat:T,columns:[["x"].concat(o.timeSeries),[a].concat(o.requests[0]),[s].concat(o.requests[1])]},axis:{x:{type:"timeseries",tick:{format:T}},y:{label:e({id:"container.analyticsPage.tabs.requests"})}}}})))),l.default.createElement(d.TabsPanel,{id:C},l.default.createElement(h.LayoutContainer,null,l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1},l.default.createElement("h3",null,e({id:"container.analyticsPage.tabs.bandwidth.title"})))),l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.bandwidth.total"})),(0,E.humanFileSize)(o.totals.bandwidth.all)),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.bandwidth.cached"})),(0,E.humanFileSize)(o.totals.bandwidth.cached)),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.bandwidth.uncached"})),(0,E.humanFileSize)(o.totals.bandwidth.uncached))),l.default.createElement(h.LayoutRow,null,l.default.createElement(v.default,{config:{data:{x:"x",xFormat:T,columns:[["x"].concat(o.timeSeries),[a].concat(o.bandwidth[0]),[s].concat(o.bandwidth[1])]},axis:{x:{type:"timeseries",tick:{format:T}},y:{label:e({id:"container.analyticsPage.tabs.bandwidth"}),tick:{format:this.state.bytesToString}}}}})))),l.default.createElement(d.TabsPanel,{id:w},l.default.createElement(h.LayoutContainer,null,l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1},l.default.createElement("h3",null,e({id:"container.analyticsPage.tabs.uniques.title"})))),l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.uniques.total"})),o.totals.uniques.all),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.uniques.maximum"})),b.default.max(o.uniques[0])),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.uniques.minimum"})),b.default.min(o.uniques[0]))),l.default.createElement(h.LayoutRow,null,l.default.createElement(v.default,{config:{data:{x:"x",xFormat:T,columns:[["x"].concat(o.timeSeries),[p].concat(o.uniques[0])]},axis:{x:{type:"timeseries",tick:{format:T}},y:{label:e({id:"container.analyticsPage.tabs.uniques"})}}}})))),l.default.createElement(d.TabsPanel,{id:S},l.default.createElement(h.LayoutContainer,null,l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1},l.default.createElement("h3",null,e({id:"container.analyticsPage.tabs.threats.title"})))),l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.threats.total"})),o.totals.threats.total?o.totals.threats.total:0),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.threats.country"})),m),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.threats.type"})),_)),l.default.createElement(h.LayoutRow,null,l.default.createElement(v.default,{config:{data:{x:"x",xFormat:T,columns:[["x"].concat(o.timeSeries),[c].concat(o.threats[0])]},axis:{x:{type:"timeseries",tick:{format:T}},y:{label:e({id:"container.analyticsPage.tabs.threats"})}}}})))))))},t}(c.Component);n.default=(0,f.injectIntl)((0,p.connect)(s)(O))},{"../../utils/utils":618,"cf-component-heading":71,"cf-component-layout":77,"cf-component-tabs":131,"d3-format":160,lodash:186,react:509,"react-c3-wrapper":271,"react-intl":288,"react-redux":310}],557:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
32 |
-
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{state:e}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("react-gateway"),d=e("cf-component-layout"),h=e("../../containers/ActiveZoneSelector/ActiveZoneSelector"),g=r(h),m=e("../../containers/AppNavigation/AppNavigation"),y=r(m),v=e("../../utils/Auth/Auth"),_=e("../../actions/config"),b=e("../../containers/GlobalNotifications/GlobalNotifications"),E=r(b),x=e("../../containers/UnderAttackButton/UnderAttackButton"),C=r(x),w=e("../../selectors/config");t.Intl||e("intl");var S=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props.state.config;return c.default.createElement("div",null,c.default.createElement(d.LayoutContainer,null,c.default.createElement(d.LayoutRow,null,c.default.createElement(d.LayoutColumn,{width:1/3}," "),c.default.createElement(d.LayoutColumn,{width:1/3},c.default.createElement("img",{src:(0,w.getAbsoluteUrl)(e,"assets/logo.svg")})),c.default.createElement(d.LayoutColumn,{width:1/3}," ")),c.default.createElement(d.LayoutRow,null,c.default.createElement(d.LayoutColumn,{width:.25},(0,v.isLoggedIn)()?c.default.createElement(g.default,null):c.default.createElement("noscript",null)),c.default.createElement(d.LayoutColumn,{width:.5}," "),c.default.createElement(d.LayoutColumn,{width:.25},(0,v.isLoggedIn)()&&this.props.state.zoneSettings.entities[this.props.state.activeZone.id]?c.default.createElement(C.default,null):c.default.createElement("noscript",null))),c.default.createElement(d.LayoutRow,null,c.default.createElement(d.LayoutColumn,{width:1/3}," "),c.default.createElement(d.LayoutColumn,{width:1/3},c.default.createElement(y.default,null)),c.default.createElement(d.LayoutColumn,{width:1/3}," ")),c.default.createElement(d.LayoutRow,null,c.default.createElement(d.LayoutColumn,{width:.2}," "),c.default.createElement(d.LayoutColumn,{width:.6},this.props.children),c.default.createElement(d.LayoutColumn,{width:.2}," ")),c.default.createElement(d.LayoutRow,null,c.default.createElement(d.LayoutColumn,{width:1},c.default.createElement("p",{style:{textAlign:"center"}},c.default.createElement(p.FormattedMessage,{id:"container.App.version",values:{version:this.props.state.config.config.version}}))))),c.default.createElement(f.GatewayDest,{name:"modal"}),c.default.createElement(E.default,null))},t}(u.Component),O=(0,p.injectIntl)((0,l.connect)(s)(S)),T=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.componentWillMount=function(){var e=this.props.dispatch;e((0,_.asyncConfigFetch)())},t.prototype.render=function(){return this.props.state.app.isInitialized?c.default.createElement(p.IntlProvider,{locale:this.props.state.intl.locale,messages:this.props.state.intl.translations},c.default.createElement(f.GatewayProvider,null,c.default.createElement(O,null,this.props.children))):c.default.createElement("noscript",null)},t}(c.default.Component);n.default=(0,l.connect)(s)(T)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../actions/config":530,"../../containers/ActiveZoneSelector/ActiveZoneSelector":553,"../../containers/AppNavigation/AppNavigation":558,"../../containers/GlobalNotifications/GlobalNotifications":569,"../../containers/UnderAttackButton/UnderAttackButton":588,"../../selectors/config":607,"../../utils/Auth/Auth":613,"cf-component-layout":77,intl:184,react:509,"react-gateway":279,"react-intl":288,"react-redux":310}],558:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){return{config:e.config}}n.__esModule=!0;var c=e("react"),l=o(c),p=e("react-redux"),f=e("react-intl"),d=e("redux-simple-router"),h=e("../../components/AppNavigationLiNode/AppNavigationLiNode"),g=o(h),m=e("../../constants/UrlPaths"),y=r(m),v=e("../../utils/Auth/Auth"),_=e("../../selectors/config"),b=function(e){function t(){return i(this,t),a(this,e.apply(this,arguments))}return s(t,e),t.prototype.handleClick=function(e){var t=this.props.dispatch;t(d.routeActions.push(e))},t.prototype.render=function(){var e=this,t={listStyle:"none",margin:"0",tableLayout:"fixed",width:"100%",textAlign:"center"},n={fill:"#FFF",transition:"all 0.2s ease"},r=this.props.config;return(0,v.isLoggedIn)()&&l.default.createElement("ul",{style:t},l.default.createElement(g.default,{onClick:function(){return e.handleClick(y.HOME_PAGE)},title:"container.appNavigation.home"},l.default.createElement("path",{style:n,stroke:"white",d:"M36 21.451l-16-12.42-16 12.42v-5.064l16-12.42 16 12.42zM32 21v12h-8v-8h-8v8h-8v-12l12-9z"})),(0,_.isDNSPageEnabled)(r)?l.default.createElement(g.default,{onClick:function(){return e.handleClick(y.DOMAINS_OVERVIEW_PAGE)},title:"container.appNavigation.domainsOverview"},l.default.createElement("path",{style:n,d:"M24,12h-8v-2h8V12z M30,12v18H10V12h4v2h12v-2H30z M16,23h-3v3h3V23z M16,18h-3v3h3V18z M27,23h-9v3h9V23z M27,18h-9v3h9V18z"})):null,l.default.createElement(g.default,{onClick:function(){return e.handleClick(y.MORE_SETTINGS_PAGE)},title:"container.appNavigation.moresettings"},l.default.createElement("path",{style:n,d:"M30,13l-6,6l-3-3l6-6h-7l-4,4v5l-6,6.1l4.9,4.9l6.1-6h5l4-4V13z"})),l.default.createElement(g.default,{onClick:function(){return e.handleClick(y.ANALYTICS_PAGE)},title:"container.appNavigation.analytics"},l.default.createElement("path",{style:n,d:"M21,12.7V21h-8.3c0,5,3.9,8.9,8.7,8.9c4.8,0,8.5-3.8,8.5-8.6C29.9,16.5,26,12.7,21,12.7z"}),l.default.createElement("path",{style:n,d:"M19,19v-8.9c-5,0.5-8.4,4.5-8.9,8.9H19z"})))},t}(c.Component);b.propTypes={dispatch:c.PropTypes.func.isRequired},n.default=(0,f.injectIntl)((0,p.connect)(u)(b))},{"../../components/AppNavigationLiNode/AppNavigationLiNode":542,"../../constants/UrlPaths":551,"../../selectors/config":607,"../../utils/Auth/Auth":613,react:509,"react-intl":288,"react-redux":310,"redux-simple-router":511}],559:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,modifiedDate:(0,h.getPluginSettingsModifiedDateForZoneId)(e.activeZone.id,_,e),isFetching:(0,h.getPluginSettingsIsFetching)(e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-card"),d=e("cf-component-button"),h=e("../../selectors/pluginSettings"),g=e("../../actions/pluginSettings"),m=e("cf-component-loading"),y=r(m),v=e("../../utils/utils"),_="default_settings",b=!0,E=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.onButtonClick=function(){var e=this.props,t=e.activeZoneId,n=e.dispatch;n((0,g.asyncPluginUpdateSetting)(_,t,b))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(f.Card,null,c.default.createElement(f.CardSection,null,c.default.createElement(f.CardContent,{title:e({id:"container.applydefaultsettingscard.title"}),footerMessage:(0,v.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.applydefaultsettingscard.description"}))),c.default.createElement(f.CardControl,null,this.props.isFetching===_?c.default.createElement(y.default,null):c.default.createElement(d.Button,{type:"primary",onClick:this.onButtonClick.bind(this)},c.default.createElement(p.FormattedMessage,{id:"container.applydefaultsettingscard.button"}))))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(E))},{"../../actions/pluginSettings":533,"../../selectors/pluginSettings":609,"../../utils/utils":618,"cf-component-button":5,"cf-component-card":16,"cf-component-loading":85,react:509,"react-intl":288,"react-redux":310}],560:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,rewriteValue:(0,y.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,y.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-toggle"),d=r(f),h=e("cf-component-card"),g=e("../../actions/zoneSettings"),m=e("../../utils/utils"),y=e("../../selectors/zoneSettings"),v="automatic_https_rewrites",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,g.asyncZoneUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(h.Card,null,c.default.createElement(h.CardSection,null,c.default.createElement(h.CardContent,{title:e({id:"container.automatichttprewrites.title"}),footerMessage:(0,m.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.automatichttprewrites.description"}))),c.default.createElement(h.CardControl,null,c.default.createElement(d.default,{label:"",value:"on"===this.props.rewriteValue,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":540,"../../selectors/zoneSettings":610,"../../utils/utils":618,"cf-component-card":16,"cf-component-toggle":146,react:509,"react-intl":288,"react-redux":310}],561:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,browserCacheTTLValue:(0,y.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,y.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e),isFetching:e.zoneSettings.isFetching}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-card"),d=e("cf-component-select"),h=r(d),g=e("../../actions/zoneSettings"),m=e("../../utils/utils"),y=e("../../selectors/zoneSettings"),v="browser_cache_ttl",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props.dispatch;t((0,g.asyncZoneUpdateSetting)(v,this.props.activeZoneId,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(f.Card,null,c.default.createElement(f.CardSection,null,c.default.createElement(f.CardContent,{title:e({id:"container.browserCacheTTLCard.title"}),footerMessage:(0,m.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.browserCacheTTLCard.description"}))),c.default.createElement(f.CardControl,null,c.default.createElement(h.default,{label:"",value:this.props.browserCacheTTLValue,options:[{value:7200,label:e({id:"container.browserIntegrityCheckCard.twoHours"})},{value:10800,label:e({id:"container.browserIntegrityCheckCard.threeHours"})},{value:14400,label:e({id:"container.browserIntegrityCheckCard.fourHours"})},{value:18e3,label:e({id:"container.browserIntegrityCheckCard.fiveHours"})},{value:28800,label:e({id:"container.browserIntegrityCheckCard.eightHours"})},{value:43200,label:e({id:"container.browserIntegrityCheckCard.twelveHours"})},{value:57600,label:e({id:"container.browserIntegrityCheckCard.sixteenHours"})},{value:72e3,label:e({id:"container.browserIntegrityCheckCard.twentyHours"})},{value:86400,label:e({id:"container.browserIntegrityCheckCard.oneDay"})},{value:172800,label:e({id:"container.browserIntegrityCheckCard.twoDays"})},{value:259200,label:e({id:"container.browserIntegrityCheckCard.threeDays"})},{value:345600,label:e({id:"container.browserIntegrityCheckCard.fourDays"})},{value:432e3,label:e({id:"container.browserIntegrityCheckCard.fiveDays"})},{value:691200,label:e({id:"container.browserIntegrityCheckCard.eightDays"})},{value:1382400,label:e({id:"container.browserIntegrityCheckCard.sixteenDays"})},{value:2073600,label:e({id:"container.browserIntegrityCheckCard.twentyFourDays"})},{value:2592e3,label:e({id:"container.browserIntegrityCheckCard.oneMonth"})},{value:5184e3,label:e({id:"container.browserIntegrityCheckCard.twoMonths"})},{value:15552e3,label:e({id:"container.browserIntegrityCheckCard.sixMonths"})},{value:31536e3,label:e({id:"container.browserIntegrityCheckCard.oneYear"})}],onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":540,"../../selectors/zoneSettings":610,"../../utils/utils":618,"cf-component-card":16,"cf-component-select":114,react:509,"react-intl":288,"react-redux":310}],562:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,browserIntegrityCheckValue:(0,y.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,y.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-toggle"),d=r(f),h=e("cf-component-card"),g=e("../../actions/zoneSettings"),m=e("../../utils/utils"),y=e("../../selectors/zoneSettings"),v="browser_check",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,g.asyncZoneUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(h.Card,null,c.default.createElement(h.CardSection,null,c.default.createElement(h.CardContent,{title:e({id:"container.browserIntegrityCheckCard.title"}),footerMessage:(0,m.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.browserIntegrityCheckCard.description"}))),c.default.createElement(h.CardControl,null,c.default.createElement(d.default,{label:"",value:"on"===this.props.browserIntegrityCheckValue,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":540,"../../selectors/zoneSettings":610,"../../utils/utils":618,"cf-component-card":16,"cf-component-toggle":146,react:509,"react-intl":288,"react-redux":310}],563:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,cacheLevelValue:(0,m.getZoneSettingsValueForZoneId)(e.activeZone.id,y,e),modifiedDate:(0,m.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,y,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-card"),d=e("cf-component-radio"),h=e("../../actions/zoneSettings"),g=e("../../utils/utils"),m=e("../../selectors/zoneSettings"),y="cache_level",v=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleRadioChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;r((0,h.asyncZoneUpdateSetting)(y,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(f.Card,null,c.default.createElement(f.CardSection,null,c.default.createElement(f.CardContent,{title:e({id:"container.cacheLevelCard.title"}),footerMessage:(0,g.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.cacheLevelCard.description"}))),c.default.createElement(f.CardControl,null,c.default.createElement(d.RadioGroup,{value:this.props.cacheLevelValue,onChange:this.handleRadioChange.bind(this),options:[{label:e({id:"container.cacheLevelCard.simplified"}),name:"cache_level_simplified",value:"simplified"},{label:e({id:"container.cacheLevelCard.basic"}),name:"cache_level_basic",value:"basic"},{label:e({id:"container.cacheLevelCard.aggressive"}),name:"cache_level_aggressive",value:"aggressive"}]})))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(v))},{"../../actions/zoneSettings":540,"../../selectors/zoneSettings":610,"../../utils/utils":618,"cf-component-card":16,"cf-component-radio":112,react:509,"react-intl":288,"react-redux":310}],564:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,challengePassageValue:(0,y.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,y.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-select"),d=r(f),h=e("cf-component-card"),g=e("../../actions/zoneSettings"),m=e("../../utils/utils"),y=e("../../selectors/zoneSettings"),v="challenge_ttl",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;r((0,g.asyncZoneUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(h.Card,null,c.default.createElement(h.CardSection,null,c.default.createElement(h.CardContent,{title:e({id:"container.challengePassageCard.title"}),footerMessage:(0,m.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.challengePassageCard.description"}))),c.default.createElement(h.CardControl,null,c.default.createElement(d.default,{label:"",value:this.props.challengePassageValue,options:[{value:300,label:e({id:"container.challengePassageCard.select.fiveMinutes"})},{value:900,label:e({id:"container.challengePassageCard.select.fifteenMinutes"})},{value:1800,label:e({id:"container.challengePassageCard.select.thirtyMinutes"})},{value:2700,label:e({id:"container.challengePassageCard.select.fortyFiveMinutes"})},{value:3600,label:e({id:"container.challengePassageCard.select.oneHour"})},{value:7200,label:e({id:"container.challengePassageCard.select.twoHours"})},{value:10800,label:e({id:"container.challengePassageCard.select.threeHours"})},{value:14440,label:e({id:"container.challengePassageCard.select.fourHours"})},{value:28800,label:e({id:"container.challengePassageCard.select.eightHours"})},{value:57600,label:e({id:"container.challengePassageCard.select.sixteenHours"})},{value:86400,label:e({id:"container.challengePassageCard.select.oneDay"})},{value:604800,label:e({id:"container.challengePassageCard.select.oneWeek"})},{value:2592e3,label:e({id:"container.challengePassageCard.select.oneMonth"})},{value:31536e3,label:e({id:"container.challengePassageCard.select.oneYear"})}],onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":540,"../../selectors/zoneSettings":610,"../../utils/utils":618,"cf-component-card":16,"cf-component-select":114,react:509,"react-intl":288,"react-redux":310}],565:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{config:e.config.config}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-button"),d=e("cf-component-form"),h=e("cf-component-input"),g=r(h),m=e("cf-component-layout"),y=e("../../containers/MarketingFeatureCollection/MarketingFeatureCollection"),v=r(y),_=e("../../actions/user"),b=e("../../constants/UrlPaths.js"),E=e("../../selectors/generateUTMLink.js"),x="signup_now",C=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.state={email:"",apiKey:""},r}return a(t,e),t.prototype.handleEmailChange=function(e){this.setState({email:e})},t.prototype.handleApiKeyChange=function(e){this.setState({apiKey:e})},t.prototype.handleLoginSubmit=function(e){e.preventDefault();var t=this.props.dispatch;t((0,_.asyncAPILogin)(this.state.email,this.state.apiKey))},t.prototype.render=function(){var e=this,t=this.props.intl.formatMessage,n=this.props.config,r=(0,E.generateUTMLink)(b.CLOUDFLARE_SIGNUP_PAGE,n.integrationName,n.integrationName,x),o={overflow:"hidden"};return c.default.createElement("div",null,c.default.createElement("div",{id:"cf-login-page"},c.default.createElement(d.Form,{layout:"vertical",onSubmit:function(t){return e.handleLoginSubmit(t)}},c.default.createElement(m.LayoutContainer,null,c.default.createElement("div",{style:o},c.default.createElement(m.LayoutRow,null,c.default.createElement(m.LayoutColumn,{width:1},c.default.createElement(d.FormHeader,{title:t({id:"component.clientLogin.form.title"}),style:{textAlign:"center"}})))),c.default.createElement(d.FormFieldset,{legend:""},c.default.createElement("div",{style:o},c.default.createElement(m.LayoutRow,{style:{overflow:"hidden"}},c.default.createElement(m.LayoutColumn,{width:1},c.default.createElement(d.FormLabel,{hidden:!0},c.default.createElement(p.FormattedMessage,{id:"component.clientLogin.form.email"})),c.default.createElement(g.default,{name:"email",type:"text",value:this.state.email,onChange:this.handleEmailChange.bind(this),placeholder:t({id:"component.clientLogin.form.email"})})))),c.default.createElement("div",{style:o},c.default.createElement(m.LayoutRow,null,c.default.createElement(m.LayoutColumn,{width:1},c.default.createElement(d.FormLabel,{hidden:!0},c.default.createElement(p.FormattedMessage,{id:"component.clientLogin.form.apiKey"})),c.default.createElement(g.default,{name:"apiKey",type:"text",value:this.state.apiKey,onChange:this.handleApiKeyChange.bind(this),placeholder:t({id:"component.clientLogin.form.apiKey"})})))),c.default.createElement("div",{style:o},c.default.createElement(m.LayoutRow,null,c.default.createElement(m.LayoutColumn,{width:1},c.default.createElement(f.Button,{submit:!0,type:"success",onClick:function(t){return e.handleLoginSubmit(t)}},c.default.createElement(p.FormattedMessage,{id:"component.clientLogin.form.button"})))))),c.default.createElement("div",{style:o},c.default.createElement(m.LayoutRow,null,c.default.createElement(m.LayoutColumn,{width:1},c.default.createElement("p",{style:{textAlign:"center",marginBottom:"2.5rem"}},c.default.createElement(p.FormattedMessage,{id:"component.clientLogin.cloudflare.description"})," ",c.default.createElement("a",{href:r,target:"_blank"},"CloudFlare.com"),"."))))))),c.default.createElement(v.default,null))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(C))},{"../../actions/user":534,"../../constants/UrlPaths.js":551,"../../containers/MarketingFeatureCollection/MarketingFeatureCollection":576,"../../selectors/generateUTMLink.js":608,"cf-component-button":5,"cf-component-form":68,"cf-component-input":73,"cf-component-layout":77,react:509,"react-intl":288,"react-redux":310}],566:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZone:e.activeZone,config:e.config.config,zones:e.zones.entities.zones,dnsRecords:e.zoneDnsRecords.entities,zoneDeleteIsFetching:e.zones.zoneDeleteIsFetching,zoneProvisionCnameIsFetching:e.zones.zoneProvisionCnameIsFetching,zoneProvisionFullIsFetching:e.zones.zoneProvisionFullIsFetching}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("lodash"),d=r(f),h=e("cf-component-table"),g=e("cf-component-heading"),m=e("cf-component-button"),y=e("../../containers/ActivationCheckCard/ActivationCheckCard"),v=r(y),_=e("../../containers/DNSRecordEditor/DNSRecordEditor"),b=r(_),E=e("../../containers/ZoneProvisionContainer/ZoneProvisionContainer"),x=r(E),C=e("../../constants/UrlPaths.js"),w=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.activeZone,n=e.config,r=e.dnsRecords,o=e.zones,i=d.default.isEmpty(t.name),a=d.default.isEmpty(r[t.id]),s=!1;o&&t.name&&(s="pending"===o[t.name].status);var u=void 0;i||(u=o[t.name]);var l=C.CLOUDFLARE_UPGRADE_PAGE+"?utm_source=pi-"+n.integrationName+"&utm_medium=plugin&utm_campaign="+n.integrationName,f=c.default.createElement(m.Button,{type:"success",onClick:function(){return window.open(l),!1}},c.default.createElement(p.FormattedMessage,{id:"container.dnsManagementPage.thead.changePlan"}));return c.default.createElement("div",null,c.default.createElement(g.Heading,{size:1},c.default.createElement(p.FormattedMessage,{id:"container.dnsManagementPage.title"})),!i&&c.default.createElement("div",null,c.default.createElement(h.Table,null,c.default.createElement(h.TableHead,null,c.default.createElement(h.TableRow,null,c.default.createElement(h.TableHeadCell,null,c.default.createElement(p.FormattedMessage,{id:"container.dnsManagementPage.thead.domain"})),c.default.createElement(h.TableHeadCell,null,c.default.createElement(p.FormattedMessage,{id:"container.dnsManagementPage.thead.cloudflarePlan"})),c.default.createElement(h.TableHeadCell,null,c.default.createElement(p.FormattedMessage,{id:"container.dnsManagementPage.thead.zoneType"})),c.default.createElement(h.TableHeadCell,null,c.default.createElement(p.FormattedMessage,{id:"container.dnsManagementPage.thead.status"})))),c.default.createElement(h.TableBody,null,c.default.createElement(h.TableRow,null,c.default.createElement(h.TableCell,null,u.name),c.default.createElement(h.TableCell,null,u.plan.name," ",""!=u.plan.name?f:null),c.default.createElement(h.TableCell,null,u.type),c.default.createElement(h.TableCell,null,u.status)))),s?c.default.createElement(v.default,null):null,a?null:c.default.createElement(b.default,null),c.default.createElement(x.default,null)))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(w))},{"../../constants/UrlPaths.js":551,"../../containers/ActivationCheckCard/ActivationCheckCard":552,"../../containers/DNSRecordEditor/DNSRecordEditor":567,"../../containers/ZoneProvisionContainer/ZoneProvisionContainer":590,"cf-component-button":5,"cf-component-heading":71,"cf-component-table":128,lodash:186,react:509,"react-intl":288,"react-redux":310}],567:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");
|
33 |
-
}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,dnsRecords:e.zoneDnsRecords.entities[e.activeZone.id],updateIsFetching:e.zoneDnsRecords.updateIsFetching}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-table"),d=e("../../components/CloudToggle/CloudToggle"),h=r(d),g=e("lodash"),m=r(g),y=e("cf-component-loading"),v=r(y),_=e("../../actions/zoneDnsRecords"),b=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleToggle=function(e,t){var n=this.props.dispatch;n(t.id?(0,_.asyncDNSRecordUpdate)(t.zone_id,t,e):(0,_.asyncDNSRecordCreate)(t.zone_id,t.type,t.name,t.content))},t.prototype.render=function(){var e=this;return c.default.createElement("div",null,c.default.createElement(f.Table,null,c.default.createElement(f.TableHead,null,c.default.createElement(f.TableRow,null,c.default.createElement(f.TableHeadCell,null,c.default.createElement(p.FormattedMessage,{id:"container.dnsRecordEditor.thead.type"})),c.default.createElement(f.TableHeadCell,null,c.default.createElement(p.FormattedMessage,{id:"container.dnsRecordEditor.thead.name"})),c.default.createElement(f.TableHeadCell,null,c.default.createElement(p.FormattedMessage,{id:"container.dnsRecordEditor.thead.value"})),c.default.createElement(f.TableHeadCell,null,c.default.createElement(p.FormattedMessage,{id:"container.dnsRecordEditor.thead.ttl"})),c.default.createElement(f.TableHeadCell,null,c.default.createElement(p.FormattedMessage,{id:"container.dnsRecordEditor.thead.status"})))),c.default.createElement(f.TableBody,null,m.default.sortBy(m.default.values(this.props.dnsRecords),function(e){return e.name}).map(function(t){return c.default.createElement(f.TableRow,{key:t.name},c.default.createElement(f.TableCell,null,t.type),c.default.createElement(f.TableCell,null,t.name),c.default.createElement(f.TableCell,null,t.content),c.default.createElement(f.TableCell,null,t.ttl),c.default.createElement(f.TableCell,null,e.props.updateIsFetching===t.name?c.default.createElement(v.default,null):c.default.createElement(h.default,{label:"CloudFlare Provisioned",name:t.name+"_provisioned",value:t.proxied,onChange:function(n){return e.handleToggle(n,t)}})))}))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(b))},{"../../actions/zoneDnsRecords":536,"../../components/CloudToggle/CloudToggle":543,"cf-component-loading":85,"cf-component-table":128,lodash:186,react:509,"react-intl":288,"react-redux":310}],568:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,developmentModeValue:(0,y.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,y.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-card"),d=e("cf-component-toggle"),h=r(d),g=e("../../actions/zoneSettings"),m=e("../../utils/utils"),y=e("../../selectors/zoneSettings"),v="development_mode",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,g.asyncZoneUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(f.Card,null,c.default.createElement(f.CardSection,null,c.default.createElement(f.CardContent,{title:e({id:"container.developmentModeCard.title"}),footerMessage:(0,m.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.developmentModeCard.description"}))),c.default.createElement(f.CardControl,null,c.default.createElement(h.default,{label:"",value:"on"===this.props.developmentModeValue,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":540,"../../selectors/zoneSettings":610,"../../utils/utils":618,"cf-component-card":16,"cf-component-toggle":146,react:509,"react-intl":288,"react-redux":310}],569:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){return{notifications:e.notifications}}n.__esModule=!0;var c=e("react"),l=o(c),p=e("react-redux"),f=e("react-intl"),d=e("cf-component-notifications"),h=e("../../actions/notifications"),g=r(h),m=function(e){function t(){return i(this,t),a(this,e.apply(this,arguments))}return s(t,e),t.prototype.handleClose=function(e){var t=this.props.dispatch;t(g.notificationRemove(e))},t.prototype.render=function(){var e=this,t=this.props.notifications,n=this.props.intl.formatMessage,r=t.map(function(t){return l.default.createElement(d.Notification,{key:t.key,type:t.level,message:t.localized?n({id:t.message}):t.message,delay:t.delay,persist:t.persistant,onClose:e.handleClose.bind(e,t.key)})});return l.default.createElement(d.NotificationGlobalContainer,null,l.default.createElement(d.NotificationList,null,r))},t}(c.Component);n.default=(0,f.injectIntl)((0,p.connect)(u)(m))},{"../../actions/notifications":532,"cf-component-notifications":107,react:509,"react-intl":288,"react-redux":310}],570:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,config:e.config.config,zoneSettings:e.zoneSettings.entities}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("lodash"),d=r(f),h=e("cf-component-heading"),g=e("../../selectors/pluginSettings"),m=e("../../components/RenderCardsDynamically/RenderCardsDynamically"),y=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.activeZoneId,n=e.config,r=e.zoneSettings,o=d.default.isEmpty(r[t])&&d.default.isEmpty((0,g.getPluginSettingsForZoneId)(t,this.state));return c.default.createElement("div",null,o&&c.default.createElement(p.FormattedMessage,{id:"errors.noActiveZoneSelected"}),!o&&c.default.createElement("div",null,c.default.createElement(h.Heading,{size:1},c.default.createElement(p.FormattedMessage,{id:"container.appNavigation.home"})),(0,m.renderCards)(n.homePageCards)))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(y))},{"../../components/RenderCardsDynamically/RenderCardsDynamically":547,"../../selectors/pluginSettings":609,"cf-component-heading":71,lodash:186,react:509,"react-intl":288,"react-redux":310}],571:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e("react"),c=o(u),l=e("react-redux"),p=e("react-intl"),f=e("react-router"),d=e("../../containers/MarketingFeatureCollection/MarketingFeatureCollection"),h=o(d),g=e("../../actions/user"),m=r(g),y=e("../../constants/UrlPaths.js"),v=function(e){function t(){return i(this,t),a(this,e.apply(this,arguments))}return s(t,e),t.prototype.handleLoginSubmit=function(e){e.preventDefault();var t=this.props.dispatch,n=this.refs.email.value,r=this.refs.password.value;t(m.asyncLogin(n,r))},t.prototype.handleLogout=function(){var e=this.props.dispatch;e(m.logout())},t.prototype.render=function(){var e=this.props.intl.formatMessage;return c.default.createElement("div",null,c.default.createElement("section",{className:"center login-form"},c.default.createElement("div",{className:"login-container"},c.default.createElement("form",{className:"form",onSubmit:this.handleLoginSubmit.bind(this)},c.default.createElement("legend",null,c.default.createElement("h3",{className:"form-title"},c.default.createElement(p.FormattedMessage,{id:"component.login.form.title"}))),c.default.createElement("fieldset",null,c.default.createElement("div",{className:"control-group"},c.default.createElement("div",{className:"control-label"},c.default.createElement("label",{className:"assistive-text"},c.default.createElement(p.FormattedMessage,{id:"component.login.form.email"}))),c.default.createElement("div",{className:"controls"},c.default.createElement("input",{ref:"email",type:"text",placeholder:e({id:"component.login.form.email"}),className:"width-full"}))),c.default.createElement("div",{className:"control-group"},c.default.createElement("div",{className:"control-label"},c.default.createElement("label",{className:"assistive-text"},c.default.createElement(p.FormattedMessage,{id:"component.login.form.password"}))),c.default.createElement("div",{className:"controls"},c.default.createElement("input",{ref:"password",type:"password",placeholder:e({id:"component.login.form.password"}),className:"width-full"}))),c.default.createElement("div",{className:"control-group"},c.default.createElement("div",{className:"controls"},c.default.createElement("button",{type:"submit",className:"btn btn-success btn-large width-full"},c.default.createElement(p.FormattedMessage,{id:"component.login.form.button"})))),c.default.createElement("div",{className:"control-group"},c.default.createElement("div",{className:"row"},c.default.createElement(f.Link,{className:"pull-left",to:y.SIGN_UP_PAGE},c.default.createElement(p.FormattedMessage,{id:"component.login.form.signUp"})),c.default.createElement("a",{className:"pull-right",href:y.CLOUDFLARE_FORGOT_PASSWORD_PAGE,target:"_blank"},c.default.createElement(p.FormattedMessage,{id:"component.login.form.forgotPassword"})))))))),c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-16"},c.default.createElement("p",{style:{textAlign:"center",marginBottom:"2.5rem"}},c.default.createElement(p.FormattedMessage,{id:"component.login.cloudflare.description"})))),c.default.createElement(h.default,null))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)()(v))},{"../../actions/user":534,"../../constants/UrlPaths.js":551,"../../containers/MarketingFeatureCollection/MarketingFeatureCollection":576,react:509,"react-intl":288,"react-redux":310,"react-router":341}],572:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,ipv6Value:(0,y.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,y.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-toggle"),d=r(f),h=e("cf-component-card"),g=e("../../actions/zoneSettings"),m=e("../../utils/utils"),y=e("../../selectors/zoneSettings"),v="ipv6",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,g.asyncZoneUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(h.Card,null,c.default.createElement(h.CardSection,null,c.default.createElement(h.CardContent,{title:e({id:"container.ipv6Card.title"}),footerMessage:(0,m.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.ipv6Card.description"}))),c.default.createElement(h.CardControl,null,c.default.createElement(d.default,{label:"",value:"on"===this.props.ipv6Value,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":540,"../../selectors/zoneSettings":610,"../../utils/utils":618,"cf-component-card":16,"cf-component-toggle":146,react:509,"react-intl":288,"react-redux":310}],573:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,mirageValue:(0,v.getZoneSettingsValueForZoneId)(e.activeZone.id,E,e),polishValue:(0,v.getZoneSettingsValueForZoneId)(e.activeZone.id,x,e),modifiedDate:(0,v.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,C,e),activeZone:e.activeZone,zones:e.zones.entities.zones}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-card"),d=e("../../components/CustomCardControl/CustomCardControl"),h=r(d),g=e("../../actions/zoneSettings"),m=e("../../constants/Plans.js"),y=e("../../utils/utils"),v=e("../../selectors/zoneSettings"),_=e("cf-component-toggle"),b=r(_),E="mirage",x="polish",C="image_optimization",w=m.PRO_PLAN,S=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e===!0?(r((0,g.asyncZoneUpdateSetting)(E,n,"on")),r((0,g.asyncZoneUpdateSetting)(x,n,"lossless"))):(r((0,g.asyncZoneUpdateSetting)(E,n,"off")),r((0,g.asyncZoneUpdateSetting)(x,n,"off")))},t.prototype.render=function(){var e=this.props,t=e.activeZone,n=e.zones,r=e.modifiedDate,o=n[t.name],i="on"===this.props.mirageValue&&("lossless"===this.props.polishValue||"lossy"===this.props.polishValue),a=this.props.intl.formatMessage;return c.default.createElement("div",null,c.default.createElement(f.Card,null,c.default.createElement(f.CardSection,null,c.default.createElement(f.CardContent,{title:a({id:"container.imageOptimization.title"}),footerMessage:(0,y.getLastModifiedDate)(this.props.intl,r)},c.default.createElement(p.FormattedMessage,{id:"container.imageOptimization.description"})),c.default.createElement(h.default,{minimumPlan:w,currentPlan:o.plan.legacy_id,indentifier:C},c.default.createElement(b.default,{label:"",value:i,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(S))},{"../../actions/zoneSettings":540,"../../components/CustomCardControl/CustomCardControl":544,"../../constants/Plans.js":549,"../../selectors/zoneSettings":610,"../../utils/utils":618,"cf-component-card":16,"cf-component-toggle":146,react:509,"react-intl":288,"react-redux":310}],574:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,ipRewriteValue:(0,m.getPluginSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,m.getPluginSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-card"),d=e("cf-component-toggle"),h=r(d),g=e("../../actions/pluginSettings"),m=e("../../selectors/pluginSettings"),y=e("../../utils/utils"),v="ip_rewrite",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,g.asyncPluginUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(f.Card,null,c.default.createElement(f.CardSection,null,c.default.createElement(f.CardContent,{title:e({id:"container.ipRewrite.title"}),footerMessage:(0,y.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.ipRewrite.description"}))),c.default.createElement(f.CardControl,null,c.default.createElement(h.default,{label:"",value:"on"===this.props.ipRewriteValue,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(_))},{"../../actions/pluginSettings":533,"../../selectors/pluginSettings":609,"../../utils/utils":618,"cf-component-card":16,"cf-component-toggle":146,react:509,"react-intl":288,"react-redux":310}],575:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{config:e.config}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("redux-simple-router"),f=e("../../utils/Auth/Auth"),d=e("../../constants/UrlPaths.js"),h=e("../../selectors/config"),g=e("../../containers/ClientLoginPage/ClientLoginPage"),m=r(g),y=e("../../containers/HostLoginPage/HostLoginPage"),v=r(y),_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.componentWillMount=function(){var e=this.props.dispatch;(0,f.isLoggedIn)()&&e(p.routeActions.push(d.HOME_PAGE))},t.prototype.render=function(){var e=this.props.config,t=(0,h.getConfigValue)(e,"useHostAPILogin");return c.default.createElement("div",null,t?c.default.createElement(v.default,null):c.default.createElement(m.default,null))},t}(u.Component);n.default=(0,l.connect)(s)(_)},{"../../constants/UrlPaths.js":551,"../../containers/ClientLoginPage/ClientLoginPage":565,"../../containers/HostLoginPage/HostLoginPage":571,"../../selectors/config":607,"../../utils/Auth/Auth":613,react:509,"react-redux":310,"redux-simple-router":511}],576:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{config:e.config}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("cf-component-layout"),f=e("../../components/MarketingFeature/MarketingFeature"),d=r(f),h=e("../../selectors/config"),g=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props.config;return c.default.createElement(p.LayoutContainer,null,c.default.createElement(p.LayoutRow,null,c.default.createElement(p.LayoutColumn,{width:.25},c.default.createElement(d.default,{imgSrc:(0,h.getAbsoluteUrl)(e,"assets/icon-pin.svg"),titleKey:"component.marketingFeature.cdn.title",descriptionKey:"component.marketingFeature.cdn.description"})),c.default.createElement(p.LayoutColumn,{width:.25},c.default.createElement(d.default,{imgSrc:(0,h.getAbsoluteUrl)(e,"assets/icon-bolt.svg"),titleKey:"component.marketingFeature.optimization.title",descriptionKey:"component.marketingFeature.optimization.description"})),c.default.createElement(p.LayoutColumn,{width:.25},c.default.createElement(d.default,{imgSrc:(0,h.getAbsoluteUrl)(e,"assets/icon-shield.svg"),titleKey:"component.marketingFeature.security.title",descriptionKey:"component.marketingFeature.security.description"})),c.default.createElement(p.LayoutColumn,{width:.25},c.default.createElement(d.default,{imgSrc:(0,h.getAbsoluteUrl)(e,"assets/icon-lock.svg"),titleKey:"component.marketingFeature.ddos.title",descriptionKey:"component.marketingFeature.ddos.description"}))))},t}(u.Component);n.default=(0,l.connect)(s)(g)},{"../../components/MarketingFeature/MarketingFeature":546,"../../selectors/config":607,"cf-component-layout":77,react:509,"react-redux":310}],577:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,minifyValues:(0,m.getZoneSettingsValueForZoneId)(e.activeZone.id,y,e),modifiedDate:(0,m.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,y,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("cf-component-card"),d=e("cf-component-checkbox"),h=e("../../actions/zoneSettings"),g=e("../../utils/utils"),m=e("../../selectors/zoneSettings"),y="minify",v=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.state={checkboxValues:[]},r}return a(t,e),t.prototype.componentWillMount=function(){var e=[];for(var t in this.props.minifyValues)"on"===this.props.minifyValues[t]&&e.push(t);this.setState({checkboxValues:e})},t.prototype.handleCheckboxChange=function(e){var t={js:"off",css:"off",html:"off"};e.forEach(function(e){t[e]="on"});var n=this.props,r=n.activeZoneId,o=n.dispatch;this.setState({checkboxValues:e}),o((0,h.asyncZoneUpdateSetting)(y,r,t))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(f.Card,null,c.default.createElement(f.CardSection,null,c.default.createElement(f.CardContent,{title:e({id:"container.minifyCard.title"}),footerMessage:(0,g.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(p.FormattedMessage,{id:"container.minifyCard.description"}))),c.default.createElement(f.CardControl,null,c.default.createElement(d.CheckboxGroup,{values:this.state.checkboxValues,onChange:this.handleCheckboxChange.bind(this),options:[{label:e({id:"container.minifyCard.javascript"}),name:"minify_js",value:"js"},{label:e({id:"container.minifyCard.css"}),name:"minify_css",value:"css"},{label:e({id:"container.minifyCard.html"}),name:"minify_html",value:"html"}]})))))},t}(u.Component);n.default=(0,p.injectIntl)((0,l.connect)(s)(v))},{"../../actions/zoneSettings":540,"../../selectors/zoneSettings":610,"../../utils/utils":618,"cf-component-card":16,"cf-component-checkbox":23,react:509,"react-intl":288,"react-redux":310}],578:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeZoneId:e.activeZone.id,config:e.config.config,zoneSettings:e.zoneSettings.entities}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),p=e("react-intl"),f=e("lodash"),d=r(f),h=e("cf-component-heading"),g=e("../../selectors/pluginSettings"),m=e("../../comp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|