<NME> probe.php
<BEF> ADDFILE
<MSG> Continuous integration.

<DFF> @@ -0,0 +1,1067 @@
+<?php
+if (!empty($_GET["file"]) && $_GET["file"] == "api.php"):
+?><?php
+/*
+ * Carbon-Probe
+ * https://github.com/lincanbin/Carbon-Probe
+ *
+ * Copyright 2016 Canbin Lin (lincanbin@hotmail.com)
+ * http://www.94cb.com/
+ *
+ * Licensed under the MIT License:
+ * https://opensource.org/licenses/MIT
+ * 
+ * A Linux environmental probe.
+ */
+header('Content-type: application/json');
+
+define('SAMPLING_TIME', 250000); // 250ms
+
+// load
+$system_info = array(
+'load' => array(0, 0, 0),
+'uptime' => '0',
+'cpu_usage' => 0,
+'logic_cpu_usage' => array()
+);
+$system_info['load'] = sys_getloadavg();
+
+//uptime
+$uptime = array();
+exec("uptime | awk -F ',' '{print $1 $2}' | awk -F 'up' '{print $2}'", $uptime);
+if (!empty($uptime)){
+$system_info['uptime'] = $uptime[0];
+}
+unset($uptime);
+
+// cpu: % and disk and network
+$cpu_usage1 = array();
+$cpu_usage2 = array();
+$disk_usage1 = array();
+$disk_usage2 = array();
+$network_status1 = array();
+$network_status2 = array();
+// Deprecated Code: Low performance
+// exec("top -b -n2 | grep \"Cpu(s)\"|tail -n 1 | awk '{print $2 + $4}'", $cpu_usage);
+exec("grep 'cpu' /proc/stat | awk '{print $2+$3+$4+$5+$6+$7+$8+$9+$10\"\\n\" $5}'", $cpu_usage1);
+exec("cat /proc/diskstats | grep \"da\" | head -n1 | awk -F 'da' '{print $2}' | awk '{print $3 \"\\n\" $4 \"\\n\" $7 \"\\n\" $8}'", $disk_usage1);
+exec("cat /proc/net/dev | grep \":\" | awk '{print $1 $2 \":\"  $3 \":\" $10 \":\" $11}'", $network_status1);
+usleep(SAMPLING_TIME);
+exec("cat /proc/diskstats | grep \"da\" | head -n1 | awk -F 'da' '{print $2}' | awk '{print $3 \"\\n\" $4 \"\\n\" $7 \"\\n\" $8}'", $disk_usage2);
+exec("cat /proc/net/dev | grep \":\" | awk '{print $1 $2 \":\"  $3 \":\" $10 \":\" $11}'", $network_status2);
+exec("grep 'cpu' /proc/stat | awk '{print $2+$3+$4+$5+$6+$7+$8+$9+$10\"\\n\" $5}'", $cpu_usage2);
+// CPU
+if (!empty($cpu_usage1)) {
+foreach (range(0, count($cpu_usage1) / 2 - 1) as $offset) {
+$cpu_usage = round((($cpu_usage2[0 + $offset * 2] - $cpu_usage1[0 + $offset * 2]) - ($cpu_usage2[1 + $offset * 2] - $cpu_usage1[1 + $offset * 2])) / ($cpu_usage2[0 + $offset * 2] - $cpu_usage1[0 + $offset * 2]) * 100, 1);
+if ($offset === 0) {
+$system_info['cpu_usage'] = $cpu_usage;
+} else {
+$system_info['logic_cpu_usage'][$offset - 1] = $cpu_usage;
+}
+}
+}
+
+//Disk: KiB per second
+if (!empty($disk_usage1)) {
+$system_info['disk_read_speed'] = round(($disk_usage2[0] - $disk_usage1[0]) / 2 / (SAMPLING_TIME / 1000000), 1);
+$system_info['disk_read_active_time'] = round(($disk_usage2[1] - $disk_usage1[1]) / (SAMPLING_TIME / 1000000), 1);
+$system_info['disk_write_speed'] = round(($disk_usage2[2] - $disk_usage1[2]) / 2 / (SAMPLING_TIME / 1000000), 1);
+$system_info['disk_write_active_time'] = round(($disk_usage2[3] - $disk_usage1[3]) / (SAMPLING_TIME / 1000000), 1);
+}
+unset($cpu_usage1);
+unset($cpu_usage2);
+unset($disk_usage1);
+unset($disk_usage2);
+
+//Network: Bytes per second
+$network_usage = array();
+if (!empty($network_status2)) {
+foreach ($network_status2 as $key => $eth) {
+$eth_previous = explode(":", $network_status1[$key]);
+$eth = explode(":", $eth);
+$network_card_name = $eth[0];
+unset($eth_previous[0]);
+unset($eth[0]);
+$network_usage[$network_card_name] = array(
+"receive_bytes" => $eth[1],
+"receive_packets" => $eth[2],
+"receive_speed" => ($eth[1] - $eth_previous[1]) / (SAMPLING_TIME / 1000000),
+"transmit_bytes" => $eth[3],
+"transmit_packets" => $eth[4],
+"transmit_speed" => ($eth[3] - $eth_previous[3]) / (SAMPLING_TIME / 1000000)
+);
+}
+$system_info['network'] = $network_usage;
+}
+unset($network_status1);
+unset($network_status2);
+unset($network_usage);
+
+// memory: KiB
+$memory_usage_total = array();
+exec("free | grep \"Mem\" | awk '{print $2}'", $memory_usage_total);
+$system_info['memory_usage_total'] = $memory_usage_total[0];
+unset($memory_usage_total);
+
+$memory_usage_used = array();
+exec("free | grep \"Mem\" | awk '{print $3}'", $memory_usage_used);
+$system_info['memory_usage_used'] = $memory_usage_used[0];
+unset($memory_usage_used);
+
+$memory_usage_free = array();
+exec("free | grep \"Mem\" | awk '{print $4}'", $memory_usage_free);
+$system_info['memory_usage_free'] = $memory_usage_free[0];
+unset($memory_usage_free);
+
+$memory_usage_swap_total = array();
+exec("free | grep \"Swap\" | awk '{print $2}'", $memory_usage_swap_total);
+$system_info['memory_usage_swap_total'] = $memory_usage_swap_total[0];
+unset($memory_usage_swap_total);
+
+$memory_usage_swap_used = array();
+exec("free | grep \"Swap\" | awk '{print $3}'", $memory_usage_swap_used);
+$system_info['memory_usage_swap_used'] = $memory_usage_swap_used[0];
+unset($memory_usage_swap_used);
+
+$memory_usage_swap_free = array();
+exec("free | grep \"Swap\" | awk '{print $4}'", $memory_usage_swap_free);
+$system_info['memory_usage_swap_free'] = $memory_usage_swap_free[0];
+unset($memory_usage_swap_free);
+
+// process
+$process_list = array();
+exec("ps auxw --sort=time", $process_list);
+if (!empty($process_list)) {
+unset($process_list[0]);
+$process_map = array();
+foreach (array_reverse($process_list) as $key => $value) {
+$process_map[] = explode(" ", preg_replace("/\s(?=\s)/","\\1", $value), 11);
+}
+$system_info['process'] = $process_map;
+}
+unset($process_list);
+
+echo json_encode($system_info, JSON_PRETTY_PRINT);
+?><?php
+exit();
+endif;
+?><?php
+if (!empty($_GET["file"]) && $_GET["file"] == "init.php"):
+?><?php
+/*
+ * Carbon-Probe
+ * https://github.com/lincanbin/Carbon-Probe
+ *
+ * Copyright 2016 Canbin Lin (lincanbin@hotmail.com)
+ * http://www.94cb.com/
+ *
+ * Licensed under the MIT License:
+ * https://opensource.org/licenses/MIT
+ * 
+ * A Linux environmental probe.
+ */
+header('Content-type: application/json');
+
+exec("cat /proc/net/dev | grep \":\" | awk '{gsub(\":\", \"\");print $1}'", $network_cards);
+
+$system_env = array(
+'cpu' => [],
+'memory' => [],
+'network' => $network_cards
+);
+echo json_encode($system_env, JSON_PRETTY_PRINT);
+?><?php
+exit();
+endif;
+?><?php
+if (!empty($_GET["file"]) && $_GET["file"] == "static/css/style.css"):
+header("Content-type: text/css");?>﻿html, #MainTab {
+height:100%;
+}
+body {
+height:100%;
+margin: 0;
+padding: 0;
+background: #f5f5f5;
+font-family: 'Segoe UI';
+}
+table {
+width: 100%;
+border-collapse: collapse;
+margin: 0 auto;
+}
+tr:nth-of-type(odd) {
+background: #eee;
+}
+th {
+background: #3498db;
+color: white;
+font-weight: bold;
+cursor: pointer;
+max-width: 400px;
+}
+.selected-col-desc:after {
+content: "▼";
+float: right;
+}
+.selected-col-asc:after {
+content: "▲";
+float: right;
+}
+td, th {
+padding: 10px;
+border: 1px solid #ccc;
+text-align: left;
+font-size: 18px;
+max-width: 400px;
+}
+ul.resp-tabs-list, p {
+margin: 0;
+padding: 0;
+}
+.resp-tabs-list li {
+font-weight: 600;
+font-size: 13px;
+display: inline-block;
+padding: 20px 145px;
+margin: 0 4px 0 0;
+list-style: none;
+cursor: pointer;
+float: left;
+}
+.resp-tabs-list .tab-label {
+font-size: 11px;
+}
+.resp-tabs-container {
+padding: 0;
+background-color: #fff;
+clear: left;
+}
+h2.resp-accordion {
+cursor: pointer;
+padding: 5px;
+display: none;
+}
+.resp-tab-content {
+display: none;
+padding: 15px;
+}
+.resp-tab-active {
+border: 1px solid #5AB1D0 !important;
+border-bottom: none;
+margin-bottom: -1px !important;
+padding: 19px 144px 21px 144px !important;
+border-top: 4px solid #5AB1D0 !important;
+border-bottom: 0 #fff solid !important;
+}
+.resp-tab-active {
+border-bottom: none;
+background-color: #fff;
+}
+.resp-content-active, .resp-accordion-active {
+display: block;
+}
+.resp-tab-content {
+border: 1px solid #c1c1c1;
+border-top-color: #5AB1D0;
+}
+h2.resp-accordion {
+font-size: 13px;
+border: 1px solid #c1c1c1;
+border-top: 0 solid #c1c1c1;
+margin: 0;
+padding: 10px 15px;
+}
+h2.resp-tab-active {
+border-bottom: 0 solid #c1c1c1 !important;
+margin-bottom: 0 !important;
+padding: 10px 15px !important;
+}
+h2.resp-tab-title:last-child {
+border-bottom: 12px solid #c1c1c1 !important;
+background: blue;
+}
+/*-----------Vertical tabs-----------*/
+.resp-vtabs ul.resp-tabs-list {
+float: left;
+width: 15%;
+min-width: 150px;
+}
+.resp-vtabs .resp-tabs-list li {
+display: block;
+padding: 15px 15px !important;
+margin: 0 0 4px;
+cursor: pointer;
+float: none;
+}
+.resp-vtabs .resp-tabs-container {
+padding: 0;
+background-color: #fff;
+border: 1px solid #c1c1c1;
+float: left;
+width: 83%;
+min-height: 460px;
+border-radius: 4px;
+clear: none;
+}
+.resp-vtabs .resp-tab-content {
+border: none;
+word-wrap: break-word;
+}
+.resp-vtabs li.resp-tab-active {
+position: relative;
+z-index: 1;
+margin-right: -1px !important;
+padding: 14px 15px 15px 14px !important;
+border-top: 1px solid;
+border: 1px solid #5AB1D0 !important;
+border-left: 4px solid #5AB1D0 !important;
+margin-bottom: 4px !important;
+border-right: 1px #FFF solid !important;
+}
+.resp-arrow {
+width: 0;
+height: 0;
+float: right;
+margin-top: 3px;
+border-left: 6px solid transparent;
+border-right: 6px solid transparent;
+border-top: 12px solid #c1c1c1;
+}
+h2.resp-tab-active span.resp-arrow {
+border: none;
+border-left: 6px solid transparent;
+border-right: 6px solid transparent;
+border-bottom: 12px solid #9B9797;
+}
+/*-----------Accordion styles-----------*/
+h2.resp-tab-active {
+background: #DBDBDB;
+/* !important;*/
+}
+.resp-easy-accordion h2.resp-accordion {
+display: block;
+}
+.resp-easy-accordion .resp-tab-content {
+border: 1px solid #c1c1c1;
+}
+.resp-easy-accordion .resp-tab-content:last-child {
+border-bottom: 1px solid #c1c1c1;
+/* !important;*/
+}
+.resp-jfit {
+width: 100%;
+margin: 0;
+}
+.resp-tab-content-active {
+display: block;
+}
+h2.resp-accordion:first-child {
+border-top: 1px solid #c1c1c1;
+/* !important;*/
+}
+/*Here your can change the breakpoint to set the accordion, when screen resolution changed*/
+@media only screen and (max-width: 768px) {
+ul.resp-tabs-list {
+display: none;
+}
+h2.resp-accordion {
+display: block;
+}
+.resp-vtabs .resp-tab-content {
+border: 1px solid #C1C1C1;
+}
+.resp-vtabs .resp-tabs-container {
+border: none;
+float: none;
+width: 100%;
+min-height: 100px;
+clear: none;
+}
+.resp-accordion-closed {
+display: none !important;
+}
+.resp-vtabs .resp-tab-content:last-child {
+border-bottom: 1px solid #c1c1c1 !important;
+}
+}<?php
+exit();
+endif;
+?><?php
+if (!empty($_GET["file"]) && $_GET["file"] == "static/js/common.js"):
+header("Content-type: text/javascript");?>/*
+ * Carbon-Probe
+ * https://github.com/lincanbin/Carbon-Probe
+ *
+ * Copyright 2016 Canbin Lin (lincanbin@hotmail.com)
+ * http://www.94cb.com/
+ *
+ * Licensed under the MIT License:
+ * https://opensource.org/licenses/MIT
+ * 
+ * A Linux environmental probe.
+ */
+var numberOfRecords  = 360; // points
+var intervalTime = 3000; // ms
+var password = 12345678; // ms
+
+
+function cloneObject(obj) {
+var copy;
+// Handle the 3 simple types, and null or undefined
+if (null === obj || "object" != typeof obj) return obj;
+// Handle Date
+if (obj instanceof Date) {
+copy = new Date();
+copy.setTime(obj.getTime());
+return copy;
+}
+// Handle Array
+if (obj instanceof Array) {
+copy = [];
+for (var i = 0, len = obj.length; i < len; i++) {
+copy[i] = cloneObject(obj[i]);
+}
+return copy;
+}
+// Handle Object
+if (obj instanceof Object) {
+copy = {};
+for (var attr in obj) {
+if (obj.hasOwnProperty(attr)) copy[attr] = cloneObject(obj[attr]);
+}
+return copy;
+}
+throw new Error("Unable to copy obj! Its type isn't supported.");
+}
+
+function listSort(arr, field, order){ 
+var refer = [], result = [], index; 
+order = order == 'asc' ? 'asc' : 'desc';
+for(i = 0; i < arr.length; i++){ 
+refer[i] = arr[i][field] + '|' + i; 
+} 
+refer = refer.sort(function(a, b) {
+return +/\d+/.exec(a)[0] - +/\d+/.exec(b)[0];
+}); 
+if(order=='desc') refer.reverse(); 
+for(i = 0;i < refer.length;i++){ 
+index = refer[i].split('|')[1]; 
+result[i] = arr[index]; 
+} 
+return result; 
+}
+
+function kibiBytesToSize(bytes) {
+if (bytes == 0) return '0 B';
+var kibi = 1024, // or 1000
+sizes = ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'],
+i = Math.floor(Math.log(bytes) / Math.log(kibi));
+sizes[-1] = 'B';
+return (bytes / Math.pow(kibi, i)).toPrecision(3) + ' ' + sizes[i];
+}
+
+function resizeChart() {
+window.cpuUsageChart.resize();
+window.memoryUsageChart.resize();
+window.diskUsageChart.resize();
+window.diskSpeedChart.resize();
+for (var eth in window.env.network) {
+window.networkUsageChart[window.env.network[eth]].resize();
+}
+}
+
+function init(data) {
+window.env = data;
+window.processSortedBy = 2;
+window.processOrder = 'desc';
+console.log(data);
+for (var eth in data.network) {
+$("#PerformanceList").append('<li>网卡' + data.network[eth] + '<p><span class="tab-label" id="network_' + data.network[eth] + '_usage_label"></span></p></li>');
+$("#PerformanceContainer").append('<div><div id="network_' + data.network[eth] + '_usage" style="width: 100%; height:100%; min-height: 760px;"></div></div>');
+}
+$('#MainTab').easyResponsiveTabs({
+type: 'default', //Types: default, vertical, accordion
+width: 'auto', //auto or any width like 600px
+fit: true, // 100% fit in a container
+closed: 'accordion', // Start closed if in accordion view
+tabidentify: 'main', // The tab groups identifier
+activate: function() {
+resizeChart();
+}
+});
+
+$('#PerformanceTab').easyResponsiveTabs({
+type: 'vertical',
+width: 'auto',
+fit: true,
+tabidentify: 'performance', // The tab groups identifier
+activetab_bg: '#fff', // background color for active tabs in this group
+inactive_bg: '#F5F5F5', // background color for inactive tabs in this group
+active_border_color: '#c1c1c1', // border color for active tabs heads in this group
+active_content_border_color: '#5AB1D0', // border color for active tabs contect in this group so that it matches the tab head border
+activate: function() {
+resizeChart();
+}  // Callback function, gets called if tab is switched
+});
+
+window.cpuUsageChart = echarts.init(document.getElementById('cpu_usage'));
+window.cpuUsageChartoption = {
+title: {},
+tooltip: {},
+xAxis: {
+data: (function (){
+var res = [];
+var len = 1;
+while (len <= numberOfRecords) {
+res.push((new Date()).toLocaleTimeString().replace(/^\D*/,''));
+len++;
+}
+return res;
+})()
+},
+yAxis: {
+type: 'value',
+name: 'CPU利用率 %',
+max: 100,
+min: 0
+},
+color: ['#117DBB'],
+series: [
+{
+name:'CPU Usage',
+type:'line',
+areaStyle: {normal: {}},
+data:(function (){
+var res = [];
+var len = 1;
+while (len <= numberOfRecords) {
+res.push(0);
+len++;
+}
+return res;
+})()
+}
+]
+};
+
+window.memoryUsageChart = echarts.init(document.getElementById('memory_usage'));
+window.memoryUsageChartoption = cloneObject(window.cpuUsageChartoption);
+memoryUsageChartoption.yAxis.name = '内存使用量 MiB';
+memoryUsageChartoption.color = ['#8B12AE'];
+memoryUsageChartoption.series[0].name = 'Memory Usage';
+
+
+window.diskUsageChart = echarts.init(document.getElementById('disk_usage'));
+window.diskUsageChartoption = cloneObject(window.cpuUsageChartoption);
+diskUsageChartoption.yAxis.name = '活动时间 %';
+diskUsageChartoption.color = ['#4DA60C'];
+diskUsageChartoption.series[0].name = 'Disk Usage';
+
+window.diskSpeedChart = echarts.init(document.getElementById('disk_speed'));
+window.diskSpeedChartoption = cloneObject(window.cpuUsageChartoption);
+diskSpeedChartoption.yAxis.name = '磁盘传输速率  read(+) / write(-) KiB/s';
+diskSpeedChartoption.yAxis.max = null;
+diskSpeedChartoption.yAxis.min = null;
+diskSpeedChartoption.color = ['#4DA60C'];
+diskSpeedChartoption.series[0].name = 'Disk Speed';
+diskSpeedChartoption.series[1] = cloneObject(diskSpeedChartoption.series[0]);
+
+window.networkUsageChart = [];
+window.networkUsageChartoption = [];
+for (var eth in data.network) {
+window.networkUsageChart[data.network[eth]] = echarts.init(document.getElementById('network_' + data.network[eth] + '_usage'));
+window.networkUsageChartoption[data.network[eth]] = cloneObject(window.cpuUsageChartoption);
+networkUsageChartoption[data.network[eth]].yAxis.name = '吞吐量 out(+) / in(-) KiB/s';
+networkUsageChartoption[data.network[eth]].yAxis.max = null;
+networkUsageChartoption[data.network[eth]].yAxis.min = null;
+networkUsageChartoption[data.network[eth]].color = ['#A74F01'];
+networkUsageChartoption[data.network[eth]].series[0].name = 'Network Usage';
+networkUsageChartoption[data.network[eth]].series[1] = cloneObject(networkUsageChartoption[data.network[eth]].series[0]);
+}
+
+refreshChart();
+}
+
+function drawProcessTable(processData, formatData) {
+// Process
+$("#Process").empty();
+processData = listSort(processData, window.processSortedBy, window.processOrder);
+if (formatData) {
+for (var key in processData) {
+processData[key][2] = processData[key][2] + "%";
+processData[key][3] = processData[key][3] + "%";
+processData[key][4] = kibiBytesToSize(processData[key][4]);
+processData[key][5] = kibiBytesToSize(processData[key][5]);
+processData[key][6] = processData[key][6].replace("?", "").replace("tty", "终端");
+processData[key][7] = processData[key][7].split("");
+var tempState = processData[key][7];
+var tempStateList = [];
+var stateDict = {
+"D": "正在等待磁盘",
+"R": "正在运行",
+"S": "处于休眠状态",
+"T": "正在被跟踪或被停止",
+"W": "进入内存交换",
+"X": "进程已退出",
+"Z": "僵进程", // 进程已终止, 但进程描述符存在
+"<": "高优先级",
+"N": "低优先级",
+"L": "有些页面被锁在内存中",
+"s": "主进程",
+"l": "多线程进程",
+"+": "前台进程"
+};
+for (var i = 0; i < tempState.length; i++) {
+tempStateList.push(stateDict[tempState[i]]);
+}
+processData[key][7] = tempStateList.join("<br />");
+}
+}
+processData.unshift([
+"用户",
+"进程ID",
+"CPU",
+"内存",
+"虚拟内存",
+"常驻内存",
+"终端位置",
+"状态",
+"启动时间",
+"使用的CPU时间",
+"命令"
+]);
+$.jsontotable(processData, { id: '#Process', header: true });
+$("th").each(function(key){
+$(this).attr("data-code", key);
+});
+$("th").bind("click", function() {
+var tempProcessSortedBy = $(this).attr("data-code");
+if (tempProcessSortedBy == window.processSortedBy) {
+window.processOrder = window.processOrder == "desc" ? "asc" : "desc";
+} else {
+window.processSortedBy = tempProcessSortedBy;
+window.processOrder = "desc";
+}
+processData.shift();
+$("th").unbind("click");
+drawProcessTable(processData ,false);
+});
+$("th:eq(" + window.processSortedBy + ")").attr("class", "selected-col-" + window.processOrder);
+}
+
+function refreshChart() {
+$.ajax({
+type: "POST",
+url: "probe.php?file=api.php",
+data: {
+password: password
+},
+dataType: "json",
+success: function(data){
+axisData = (new Date()).toLocaleTimeString().replace(/^\D*/,'');
+// CPU
+$("#cpu_usage_label").text(data.cpu_usage + "%");
+cpuUsageChartoption.series[0].data.shift();
+cpuUsageChartoption.series[0].data.push(data.cpu_usage);
+cpuUsageChartoption.xAxis.data.shift();
+cpuUsageChartoption.xAxis.data.push(axisData);
+cpuUsageChart.setOption(cpuUsageChartoption);
+// Memory
+$("#memory_usage_label").text(kibiBytesToSize(data.memory_usage_used) + " / " + kibiBytesToSize(data.memory_usage_total) + " (" + Math.round(data.memory_usage_used * 100 / data.memory_usage_total) + "%)");
+memoryUsageChartoption.yAxis.max = Math.round(data.memory_usage_total / 1024);
+memoryUsageChartoption.series[0].data.shift();
+memoryUsageChartoption.series[0].data.push(Math.round(data.memory_usage_used / 1024));
+memoryUsageChartoption.xAxis.data.shift();
+memoryUsageChartoption.xAxis.data.push(axisData);
+memoryUsageChart.setOption(memoryUsageChartoption);
+// Disk Usage
+var disk_usage_percent = Math.min((data.disk_read_active_time + data.disk_write_active_time) / 10, 100);
+$("#disk_usage_label").text(disk_usage_percent + "%");
+diskUsageChartoption.series[0].data.shift();
+diskUsageChartoption.series[0].data.push(disk_usage_percent);
+diskUsageChartoption.xAxis.data.shift();
+diskUsageChartoption.xAxis.data.push(axisData);
+diskUsageChart.setOption(diskUsageChartoption);
+// Disk Speed
+diskSpeedChartoption.series[0].data.shift();
+diskSpeedChartoption.series[0].data.push(data.disk_read_speed);
+diskSpeedChartoption.series[1].data.shift();
+diskSpeedChartoption.series[1].data.push(-data.disk_write_speed);
+diskSpeedChartoption.xAxis.data.shift();
+diskSpeedChartoption.xAxis.data.push(axisData);
+diskSpeedChart.setOption(diskSpeedChartoption);
+// Network
+for (var eth in window.env.network) {
+$("#network_" + window.env.network[eth] + "_usage_label").text("发送：" + kibiBytesToSize(data.network[window.env.network[eth]].transmit_speed / 1024) + "/s 接收：" + kibiBytesToSize(data.network[window.env.network[eth]].receive_speed / 1024) + "/s");
+// networkUsageChartoption[window.env.network[eth]].yAxis.max = Math.max(data.network[window.env.network[eth]].transmit_speed, data.network[window.env.network[eth]].receive_speed / 1024);
+networkUsageChartoption[window.env.network[eth]].series[0].data.shift();
+networkUsageChartoption[window.env.network[eth]].series[0].data.push(-Math.round(data.network[window.env.network[eth]].receive_speed / 1024));
+networkUsageChartoption[window.env.network[eth]].series[1].data.shift();
+networkUsageChartoption[window.env.network[eth]].series[1].data.push(Math.round(data.network[window.env.network[eth]].transmit_speed / 1024));
+networkUsageChartoption[window.env.network[eth]].xAxis.data.shift();
+networkUsageChartoption[window.env.network[eth]].xAxis.data.push(axisData);
+window.networkUsageChart[window.env.network[eth]].setOption(networkUsageChartoption[window.env.network[eth]]);
+}
+// Process
+drawProcessTable(data.process, true);
+// Callback
+setTimeout(function(){refreshChart();}, intervalTime);
+},
+error: function (data, e) {
+// Callback
+setTimeout(function(){refreshChart();}, intervalTime);
+}
+});
+}
+
+$(document).ready(function () {
+$.ajax({
+type: "POST",
+url: "probe.php?file=init.php",
+data: {
+password: password
+},
+dataType: "json",
+success: function(data){
+init(data);
+}
+});
+});<?php
+exit();
+endif;
+?><?php
+if (!empty($_GET["file"]) && $_GET["file"] == "static/js/easyResponsiveTabs.js"):
+header("Content-type: text/javascript");?>// Easy Responsive Tabs Plugin
+// Author: Samson.Onna <Email : samson3d@gmail.com> 
+
+(function ($) {
+$.fn.extend({
+easyResponsiveTabs: function (options) {
+//Set the default values, use comma to separate the settings, example:
+var defaults = {
+type: 'default', //default, vertical, accordion;
+width: 'auto',
+fit: true,
+closed: false,
+tabidentify: '',
+activetab_bg: 'white',
+inactive_bg: '#F5F5F5',
+active_border_color: '#c1c1c1',
+active_content_border_color: '#c1c1c1',
+activate: function () {
+}
+}
+//Variables
+var options = $.extend(defaults, options);
+var opt = options, jtype = opt.type, jfit = opt.fit, jwidth = opt.width, vtabs = 'vertical', accord = 'accordion';
+var hash = window.location.hash;
+var historyApi = !!(window.history && history.replaceState);
+
+//Events
+$(this).bind('tabactivate', function (e, currentTab) {
+if (typeof options.activate === 'function') {
+options.activate.call(currentTab, e)
+}
+});
+
+//Main function
+this.each(function () {
+var $respTabs = $(this);
+var $respTabsList = $respTabs.find('ul.resp-tabs-list.' + options.tabidentify);
+var respTabsId = $respTabs.attr('id');
+$respTabs.find('ul.resp-tabs-list.' + options.tabidentify + ' li').addClass('resp-tab-item').addClass(options.tabidentify);
+$respTabs.css({
+'display': 'block',
+'width': jwidth
+});
+
+if (options.type == 'vertical')
+$respTabsList.css('margin-top', '3px');
+
+$respTabs.find('.resp-tabs-container.' + options.tabidentify).css('border-color', options.active_content_border_color);
+$respTabs.find('.resp-tabs-container.' + options.tabidentify + ' > div').addClass('resp-tab-content').addClass(options.tabidentify);
+jtab_options();
+//Properties Function
+function jtab_options() {
+if (jtype == vtabs) {
+$respTabs.addClass('resp-vtabs').addClass(options.tabidentify);
+}
+if (jfit == true) {
+$respTabs.css({ width: '100%', margin: '0px' });
+}
+if (jtype == accord) {
+$respTabs.addClass('resp-easy-accordion').addClass(options.tabidentify);
+$respTabs.find('.resp-tabs-list').css('display', 'none');
+}
+}
+
+
+//Assigning the h2 markup to accordion title
+var $tabItemh2;
+$respTabs.find('.resp-tab-content.' + options.tabidentify).before("<h2 class='resp-accordion " + options.tabidentify + "' role='tab'><span class='resp-arrow'></span></h2>");
+
+$respTabs.find('.resp-tab-content.' + options.tabidentify).prev("h2").css({
+'background-color': options.inactive_bg,
+'border-color': options.active_border_color
+});
+
+var itemCount = 0;
+$respTabs.find('.resp-accordion').each(function () {
+$tabItemh2 = $(this);
+var $tabItem = $respTabs.find('.resp-tab-item:eq(' + itemCount + ')');
+var $accItem = $respTabs.find('.resp-accordion:eq(' + itemCount + ')');
+$accItem.append($tabItem.html());
+$accItem.data($tabItem.data());
+$tabItemh2.attr('aria-controls', options.tabidentify + '_tab_item-' + (itemCount));
+itemCount++;
+});
+
+//Assigning the 'aria-controls' to Tab items
+var count = 0,
+$tabContent;
+$respTabs.find('.resp-tab-item').each(function () {
+$tabItem = $(this);
+$tabItem.attr('aria-controls', options.tabidentify + '_tab_item-' + (count));
+$tabItem.attr('role', 'tab');
+$tabItem.css({
+'background-color': options.inactive_bg,
+'border-color': 'none'
+});
+
+//Assigning the 'aria-labelledby' attr to tab-content
+var tabcount = 0;
+$respTabs.find('.resp-tab-content.' + options.tabidentify).each(function () {
+$tabContent = $(this);
+$tabContent.attr('aria-labelledby', options.tabidentify + '_tab_item-' + (tabcount)).css({
+'border-color': options.active_border_color
+});
+tabcount++;
+});
+count++;
+});
+
+// Show correct content area
+var tabNum = 0;
+if (hash != '') {
+var matches = hash.match(new RegExp(respTabsId + "([0-9]+)"));
+if (matches !== null && matches.length === 2) {
+tabNum = parseInt(matches[1], 10) - 1;
+if (tabNum > count) {
+tabNum = 0;
+}
+}
+}
+
+//Active correct tab
+$($respTabs.find('.resp-tab-item.' + options.tabidentify)[tabNum]).addClass('resp-tab-active').css({
+'background-color': options.activetab_bg,
+'border-color': options.active_border_color
+});
+
+//keep closed if option = 'closed' or option is 'accordion' and the element is in accordion mode
+if (options.closed !== true && !(options.closed === 'accordion' && !$respTabsList.is(':visible')) && !(options.closed === 'tabs' && $respTabsList.is(':visible'))) {
+$($respTabs.find('.resp-accordion.' + options.tabidentify)[tabNum]).addClass('resp-tab-active').css({
+'background-color': options.activetab_bg + ' !important',
+'border-color': options.active_border_color,
+'background': 'none'
+});
+
+
+$($respTabs.find('.resp-tab-content.' + options.tabidentify)[tabNum]).addClass('resp-tab-content-active').addClass(options.tabidentify).attr('style', 'display:block');
+}
+//assign proper classes for when tabs mode is activated before making a selection in accordion mode
+else {
+   // $($respTabs.find('.resp-tab-content.' + options.tabidentify)[tabNum]).addClass('resp-accordion-closed'); //removed resp-tab-content-active
+}
+
+//Tab Click action function
+$respTabs.find("[role=tab]").each(function () {
+
+var $currentTab = $(this);
+$currentTab.click(function () {
+
+var $currentTab = $(this);
+var $tabAria = $currentTab.attr('aria-controls');
+
+if ($currentTab.hasClass('resp-accordion') && $currentTab.hasClass('resp-tab-active')) {
+$respTabs.find('.resp-tab-content-active.' + options.tabidentify).slideUp('', function () {
+$(this).addClass('resp-accordion-closed');
+});
+$currentTab.removeClass('resp-tab-active').css({
+'background-color': options.inactive_bg,
+'border-color': 'none'
+});
+return false;
+}
+if (!$currentTab.hasClass('resp-tab-active') && $currentTab.hasClass('resp-accordion')) {
+$respTabs.find('.resp-tab-active.' + options.tabidentify).removeClass('resp-tab-active').css({
+'background-color': options.inactive_bg,
+'border-color': 'none'
+});
+$respTabs.find('.resp-tab-content-active.' + options.tabidentify).slideUp().removeClass('resp-tab-content-active resp-accordion-closed');
+$respTabs.find("[aria-controls=" + $tabAria + "]").addClass('resp-tab-active').css({
+'background-color': options.activetab_bg,
+'border-color': options.active_border_color
+});
+
+$respTabs.find('.resp-tab-content[aria-labelledby = ' + $tabAria + '].' + options.tabidentify).slideDown().addClass('resp-tab-content-active');
+} else {
+console.log('here');
+$respTabs.find('.resp-tab-active.' + options.tabidentify).removeClass('resp-tab-active').css({
+'background-color': options.inactive_bg,
+'border-color': 'none'
+});
+
+
+$respTabs.find('.resp-tab-content-active.' + options.tabidentify).removeAttr('style').removeClass('resp-tab-content-active').removeClass('resp-accordion-closed');
+
+
+$respTabs.find("[aria-controls=" + $tabAria + "]").addClass('resp-tab-active').css({
+'background-color': options.activetab_bg,
+'border-color': options.active_border_color
+});
+
+
+$respTabs.find('.resp-tab-content[aria-labelledby = ' + $tabAria + '].' + options.tabidentify).addClass('resp-tab-content-active').attr('style', 'display:block');
+}
+//Trigger tab activation event
+$currentTab.trigger('tabactivate', $currentTab);
+
+//Update Browser History
+if (historyApi) {
+var currentHash = window.location.hash;
+var tabAriaParts = $tabAria.split('tab_item-');
+// var newHash = respTabsId + (parseInt($tabAria.substring(9), 10) + 1).toString();
+var newHash = respTabsId + (parseInt(tabAriaParts[1], 10) + 1).toString();
+if (currentHash != "") {
+var re = new RegExp(respTabsId + "[0-9]+");
+if (currentHash.match(re) != null) {
+newHash = currentHash.replace(re, newHash);
+}
+else {
+newHash = currentHash + "|" + newHash;
+}
+}
+else {
+newHash = '#' + newHash;
+}
+
+history.replaceState(null, null, newHash);
+}
+});
+
+});
+
+//Window resize function                   
+$(window).resize(function () {
+$respTabs.find('.resp-accordion-closed').removeAttr('style');
+});
+});
+}
+});
+})(jQuery);
+<?php
+exit();
+endif;
+?><?php
+if (!empty($_GET["file"]) && $_GET["file"] == "static/js/echarts.min.js"):
+header("Content-type: text/javascript");?>!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var u=0;a>u;u++)switch(n[u]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],u=o[r],l=0,c=Math.min(e.length,n.length);c>l;l++){var h,f=i(e[l],r);switch(f){case"require":h=u&&u.require||t;break;case"exports":h=u.exports;break;case"module":h=u;break;default:h=a(f)}s.push(h)}return s}function a(t){var e=o[t];if(!e)throw new Error("No "+t);if(!e.defined){var i=e.factory,n=i.apply(this,r(e.deps||[],i,t));"undefined"!=typeof n&&(e.exports=n),e.defined=1}return e.exports}var o={};e=function(t,e,i){o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:n(t)}},t=n("")}();var i="undefined",n="getBoundingRect",r="center",a="ordinal",o="position",s="animation",u="getShallow",l="inherits",c="indexOf",h="function",f="isArray",d="replace",p="zlevel",m="dataIndex",v="splice",g="isObject",y="getData",_="height",x="bottom",b="ignore",w="getHeight",M="getWidth",T="getModel",S="string",C="toLowerCase",A="zrender/core/vector",L="length",P="create",k="contain",z="getExtent",I="extend",D="prototype",O="zrender/core/util",E="require";e("echarts/chart/line",[E,O,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points","../processor/dataSample","../component/grid"],function(t){var e=t(O),i=t("../echarts"),n=i.PRIORITY;t("./line/LineSeries"),t("./line/LineView"),i.registerVisual(e.curry(t("../visual/symbol"),"line","circle","line")),i.registerLayout(e.curry(t("../layout/points"),"line")),i.registerProcessor(n.PROCESSOR.STATISTIC,e.curry(t("../processor/dataSample"),"line")),t("../component/grid")}),e("echarts/component/grid",[E,"../util/graphic",O,"../coord/cartesian/Grid","./axis","../echarts"],function(t){var e=t("../util/graphic"),i=t(O);t("../coord/cartesian/Grid"),t("./axis"),t("../echarts").extendComponentView({type:"grid",render:function(t){this.group.removeAll(),t.get("show")&&this.group.add(new e.Rect({shape:t.coordinateSystem.getRect(),style:i.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0}))}})}),e("echarts/scale/Log",[E,O,"./Scale","../util/number","./Interval"],function(t){var e=t(O),i=t("./Scale"),n=t("../util/number"),r=t("./Interval"),a=i[D],o=r[D],s=Math.floor,u=Math.ceil,l=Math.pow,c=10,h=Math.log,f=i[I]({type:"log",getTicks:function(){return e.map(o.getTicks.call(this),function(t){return n.round(l(c,t))})},getLabel:o.getLabel,scale:function(t){return t=a.scale.call(this,t),l(c,t)},setExtent:function(t,e){t=h(t)/h(c),e=h(e)/h(c),o.setExtent.call(this,t,e)},getExtent:function(){var t=a[z].call(this);return t[0]=l(c,t[0]),t[1]=l(c,t[1]),t},unionExtent:function(t){t[0]=h(t[0])/h(c),t[1]=h(t[1])/h(c),a.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var r=l(10,s(h(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(u(e[0]/r)*r),n.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([k,"normalize"],function(t){f[D][t]=function(e){return e=h(e)/h(c),a[t].call(this,e)}}),f[P]=function(){return new f},f}),e("echarts/scale/Time",[E,O,"../util/number","../util/format","./Interval"],function(t){var e=t(O),i=t("../util/number"),n=t("../util/format"),r=t("./Interval"),a=r[D],o=Math.ceil,s=Math.floor,u=1e3,l=60*u,c=60*l,h=24*c,f=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},d=r[I]({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return n.formatTime(e[0],i)},niceExtent:function(t,e,n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=h,r[1]+=h),r[1]===-1/0&&1/0===r[0]){var a=new Date;r[1]=new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-h}this.niceTicks(t);var u=this._interval;e||(r[0]=i.round(s(r[0]/u)*u)),n||(r[1]=i.round(o(r[1]/u)*u))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0],r=n/t,a=p[L],u=f(p,r,0,a),l=p[Math.min(u,a-1)],c=l[2];if("year"===l[0]){var h=n/c,d=i.nice(h/t,!0);c*=d}var m=[o(e[0]/c)*c,s(e[1]/c)*c];this._stepLvl=l,this._interval=c,this._niceExtent=m},parse:function(t){return+i.parseDate(t)}});e.each([k,"normalize"],function(t){d[D][t]=function(e){return a[t].call(this,this.parse(e))}});var p=[["hh:mm:ss",1,u],["hh:mm:ss",5,5*u],["hh:mm:ss",10,10*u],["hh:mm:ss",15,15*u],["hh:mm:ss",30,30*u],["hh:mm\nMM-dd",1,l],["hh:mm\nMM-dd",5,5*l],["hh:mm\nMM-dd",10,10*l],["hh:mm\nMM-dd",15,15*l],["hh:mm\nMM-dd",30,30*l],["hh:mm\nMM-dd",1,c],["hh:mm\nMM-dd",2,2*c],["hh:mm\nMM-dd",6,6*c],["hh:mm\nMM-dd",12,12*c],["MM-dd\nyyyy",1,h],["week",7,7*h],["month",1,31*h],["quarter",3,380*h/4],["half-year",6,380*h/2],["year",1,380*h]];return d[P]=function(){return new d},d}),e("echarts/echarts",[E,"zrender/core/env","./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",O,"zrender/tool/color","zrender/mixin/Eventful","zrender/core/timsort","./loading/default","./visual/seriesColor","./preprocessor/backwardCompat","./data/List","./model/Model","./util/number","./util/format","zrender/core/matrix",A],function(t){function e(t){return function(e,i,n){e=e&&e[C](),J[D][t].call(this,e,i,n)}}function i(){J.call(this)}function n(t,e,n){function r(t,e){return t.prio-e.prio}n=n||{},typeof e===S&&(e=xe[e]),this.id,this.group,this._dom=t,this._zr=$.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio}),this._theme=Q.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new q(this),this._coordSysMgr=new H,J.call(this),this._messageCenter=new i,this._initEvents(),this.resize=Q.bind(this.resize,this),this._pendingActions=[],te(_e,r),te(ge,r)}function r(t,e){var i=this._model;i&&i.eachComponent({mainType:"series",query:e},function(n){var r=this._chartsMap[n.__viewId];r&&r.__alive&&r[t](n,i,this._api,e)},this)}function a(t,e,i){var n=this._api;ee(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),N(a,r)},this),e.eachSeries(function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,n,i),N(r,a),B(r,a)},this),R(this._zr,e)}function o(t,e){for(var i="component"===t,n=i?this._componentsViews:this._chartsViews,r=i?this._componentsMap:this._chartsMap,a=this._zr,o=0;o<n[L];o++)n[o].__alive=!1;e[i?"eachComponent":"eachSeries"](function(t,o){if(i){if("series"===t)return}else o=t;var s=o.id+"_"+o.type,u=r[s];if(!u){var l=Z.parseClassType(o.type),c=i?j.getClass(l.main,l.sub):X.getClass(l.sub);if(!c)return;u=new c,u.init(e,this._api),r[s]=u,n.push(u),a.add(u.group)}o.__viewId=s,u.__alive=!0,u.__id=s,u.__model=o},this);for(var o=0;o<n[L];){var s=n[o];s.__alive?o++:(a.remove(s.group),s.dispose(e,this._api),n[v](o,1),delete r[s.__id])}}function s(t,e){ee(ge,function(i){i.func(t,e)})}function u(t){var e={};t.eachSeries(function(t){var i=t.get("stack"),n=t[y]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function k(t,e){var i=this._api;ee(_e,function(n){n.isLayout&&n.func(t,i,e)})}function z(t,e){var i=this._api;t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()}),ee(_e,function(n){n.func(t,i,e)})}function E(t,e){var i=this._api;ee(this._componentsViews,function(n){var r=n.__model;n.render(r,t,i,e),N(r,n)},this),ee(this._chartsViews,function(t){t.__alive=!1},this),t.eachSeries(function(n){var r=this._chartsMap[n.__viewId];r.__alive=!0,r.render(n,t,i,e),r.group.silent=!!n.get("silent"),N(n,r),B(n,r)},this),R(this._zr,t),ee(this._chartsViews,function(e){e.__alive||e.remove(t,i)},this)}function R(t,e){var i=t.storage,n=0;i.traverse(function(t){t.isGroup||n++}),n>e.get("hoverLayerThreshold")&&!G.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function B(t,e){var i=0;e.group.traverse(function(t){"group"===t.type||t[b]||i++});var n=+t.get("progressive"),r=i>t.get("progressiveThreshold")&&n&&!G.node;r&&e.group.traverse(function(t){t.isGroup||(t.progressive=r?Math.floor(i++/n):-1,r&&t.stopAnimation(!0))});var a=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.setStyle("blend",a)})}function N(t,e){var i=t.get("z"),n=t.get(p);e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t[p]=n))})}function F(t){function e(t,e){for(var i=0;i<t[L];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";Q.each(ve,function(o,s){t._messageCenter.on(s,function(o){if(we[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),u=[];for(var l in be){var c=be[l];c!==t&&c.group===t.group&&u.push(c)}e(u,i),ee(u,function(t){t[a]!==n&&t.dispatchAction(s)}),e(u,r)}})})}var G=t("zrender/core/env"),V=t("./model/Global"),q=t("./ExtensionAPI"),H=t("./CoordinateSystem"),W=t("./model/OptionManager"),Z=t("./model/Component"),U=t("./model/Series"),j=t("./view/Component"),X=t("./view/Chart"),Y=t("./util/graphic"),$=t("zrender"),Q=t(O),K=t("zrender/tool/color"),J=t("zrender/mixin/Eventful"),te=t("zrender/core/timsort"),ee=Q.each,ie=1e3,ne=5e3,re=1e3,ae=2e3,oe=3e3,se=4e3,ue=5e3,le="__flag_in_main_process",ce="_hasGradientOrPatternBg";i[D].on=e("on"),i[D].off=e("off"),i[D].one=e("one"),Q.mixin(i,J);var he=n[D];he.getDom=function(){return this._dom},he.getZr=function(){return this._zr},he.setOption=function(t,e,i){if(this[le]=!0,!this._model||e){var n=new W(this._api),r=this._theme,a=this._model=new V(null,null,r,n);a.init(null,null,r,n)}this._model.setOption(t,ye),fe.prepareAndUpdate.call(this),this[le]=!1,this._flushPendingActions(),!i&&this._zr.refreshImmediately()},he.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},he[T]=function(){return this._model},he.getOption=function(){return this._model.getOption()},he[M]=function(){return this._zr[M]()},he[w]=function(){return this._zr[w]()},he.getRenderedCanvas=function(t){if(G.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,i=e.storage.getDisplayList();return Q.each(i,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},he.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;ee(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[b]||(n.push(e),e.group[b]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return ee(n,function(t){t.group[b]=!1}),a},he.getConnectedDataURL=function(t){if(G.canvasSupported){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(we[e]){var a=r,o=r,s=-r,u=-r,l=[],c=t&&t.pixelRatio||1;for(var h in be){var f=be[h];if(f.group===e){var d=f.getRenderedCanvas(Q.clone(t)),p=f.getDom().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=n(p.right,s),u=n(p[x],u),l.push({dom:d,left:p.left,top:p.top})}}a*=c,o*=c,s*=c,u*=c;var m=s-a,v=u-o,g=Q.createCanvas();g.width=m,g[_]=v;var y=$.init(g);return ee(l,function(t){var e=new Y.Image({style:{x:t.left*c-a,y:t.top*c-o,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var fe={update:function(t){var e=this._model,i=this._api,n=this._coordSysMgr,r=this._zr;if(e){e.restoreData(),n[P](this._model,this._api),s.call(this,e,i),u.call(this,e),n.update(e,i),z.call(this,e,t),E.call(this,e,t);var a=e.get("backgroundColor")||"transparent",o=r.painter;if(o.isSingleCanvas&&o.isSingleCanvas())r.configLayer(0,{clearColor:a});else{if(!G.canvasSupported){var l=K.parse(a);a=K.stringify(l,"rgb"),0===l[3]&&(a="transparent")}a.colorStops||a.image?(r.configLayer(0,{clearColor:a}),this[ce]=!0,this._dom.style.background="transparent"):(this[ce]&&r.configLayer(0,{clearColor:null}),this[ce]=!1,this._dom.style.background=a)}}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[y]().clearAllVisual()}),z.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[y]().clearAllVisual()}),z.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(k.call(this,e,t),a.call(this,"updateLayout",e,t))},highlight:function(t){r.call(this,"highlight",t)},downplay:function(t){r.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;o.call(this,"component",e),o.call(this,"chart",e),fe.update.call(this,t)}};he.resize=function(){this[le]=!0,this._zr.resize();var t=this._model&&this._model.resetOption("media");fe[t?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize(),this[le]=!1,this._flushPendingActions()};var de=t("./loading/default");he.showLoading=function(t,e){Q[g](t)&&(e=t,t="default"),this.hideLoading();var i=de(this._api,e),n=this._zr;this._loadingFX=i,n.add(i)},he.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},he.makeActionFromEvent=function(t){var e=Q[I]({},t);return e.type=ve[t.type],e},he.dispatchAction=function(t,e){var i=me[t.type];if(i){var n=i.actionInfo,r=n.update||"update";if(this[le])return void this._pendingActions.push(t);this[le]=!0;var a=[t],o=!1;t.batch&&(o=!0,a=Q.map(t.batch,function(e){return e=Q.defaults(Q[I]({},e),t),e.batch=null,e}));for(var s,u=[],l="highlight"===t.type||"downplay"===t.type,c=0;c<a[L];c++){var h=a[c];s=i.action(h,this._model),s=s||Q[I]({},h),s.type=n.event||s.type,u.push(s),l&&fe[r].call(this,h)}"none"!==r&&!l&&fe[r].call(this,t),s=o?{type:n.event||t.type,batch:u}:u[0],this[le]=!1,!e&&this._messageCenter.trigger(s.type,s),this._flushPendingActions()}},he._flushPendingActions=function(){for(var t=this._pendingActions;t[L];){var e=t.shift();this.dispatchAction(e)}},he.on=e("on"),he.off=e("off"),he.one=e("one");var pe=["click","dblclick","mouseover","mouseout","mousedown","mouseup","globalout"];he._initEvents=function(){ee(pe,function(t){this._zr.on(t,function(e){var i=this[T](),n=e.target;if(n&&null!=n[m]){var r=n.dataModel||i.getSeriesByIndex(n.seriesIndex),a=r&&r.getDataParams(n[m],n.dataType)||{};a.event=e,a.type=t,this.trigger(t,a)}else n&&n.eventData&&this.trigger(t,n.eventData)},this)},this),ee(ve,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},he.isDisposed=function(){return this._disposed},he.clear=function(){this.setOption({},!0)},he.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;ee(this._componentsViews,function(i){i.dispose(e,t)}),ee(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete be[this.id]}},Q.mixin(n,J);var me=[],ve={},ge=[],ye=[],_e=[],xe={},be={},we={},Me=new Date-0,Te=new Date-0,Se="_echarts_instance_",Ce={version:"3.2.2",dependencies:{zrender:"3.1.2"}};Ce.init=function(t,e,i){var r=new n(t,e,i);return r.id="ec_"+Me++,be[r.id]=r,t.setAttribute&&t.setAttribute(Se,r.id),F(r),r},Ce.connect=function(t){if(Q[f](t)){var e=t;t=null,Q.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+Te++,Q.each(e,function(e){e.group=t})}return we[t]=!0,t},Ce.disConnect=function(t){we[t]=!1},Ce.dispose=function(t){Q.isDom(t)?t=Ce.getInstanceByDom(t):typeof t===S&&(t=be[t]),t instanceof n&&!t.isDisposed()&&t.dispose()},Ce.getInstanceByDom=function(t){var e=t.getAttribute(Se);return be[e]},Ce.getInstanceById=function(t){return be[t]},Ce.registerTheme=function(t,e){xe[t]=e},Ce.registerPreprocessor=function(t){ye.push(t)},Ce.registerProcessor=function(t,e){typeof t===h&&(e=t,t=ie),ge.push({prio:t,func:e})},Ce.registerAction=function(t,e,i){typeof e===h&&(i=e,e="");var n=Q[g](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[C](),e=t.event,me[n]||(me[n]={action:i,actionInfo:t}),ve[e]=n},Ce.registerCoordinateSystem=function(t,e){H.register(t,e)},Ce.registerLayout=function(t,e){typeof t===h&&(e=t,t=re),_e.push({prio:t,func:e,isLayout:!0})},Ce.registerVisual=function(t,e){typeof t===h&&(e=t,t=oe),_e.push({prio:t,func:e})};var Ae=Z.parseClassType;return Ce.extendComponentModel=function(t,e){var i=Z;if(e){var n=Ae(e);i=Z.getClass(n.main,n.sub,!0)}return i[I](t)},Ce.extendComponentView=function(t,e){var i=j;if(e){var n=Ae(e);i=j.getClass(n.main,n.sub,!0)}return i[I](t)},Ce.extendSeriesModel=function(t,e){var i=U;if(e){e="series."+e[d]("series.","");var n=Ae(e);i=U.getClass(n.main,n.sub,!0)}return i[I](t)},Ce.extendChartView=function(t,e){var i=X;if(e){e[d]("series.","");var n=Ae(e);i=X.getClass(n.main,!0)}return X[I](t)},Ce.setCanvasCreator=function(t){Q.createCanvas=t},Ce.registerVisual(ae,t("./visual/seriesColor")),Ce.registerPreprocessor(t("./preprocessor/backwardCompat")),Ce.registerAction({type:"highlight",event:"highlight",update:"highlight"},Q.noop),Ce.registerAction({type:"downplay",event:"downplay",update:"downplay"},Q.noop),Ce.List=t("./data/List"),Ce.Model=t("./model/Model"),Ce.graphic=t("./util/graphic"),Ce.number=t("./util/number"),Ce.format=t("./util/format"),Ce.matrix=t("zrender/core/matrix"),Ce.vector=t(A),Ce.color=t("zrender/tool/color"),Ce.util={},ee(["map","each","filter",c,l,"reduce","filter","bind","curry",f,"isString",g,"isFunction",I,"defaults"],function(t){Ce.util[t]=Q[t]}),Ce.PRIORITY={PROCESSOR:{FILTER:ie,STATISTIC:ne},VISUAL:{LAYOUT:re,GLOBAL:ae,CHART:oe,COMPONENT:se,BRUSH:ue}},Ce}),e("echarts/visual/symbol",[E],function(){return function(t,e,i,n){n.eachRawSeriesByType(t,function(t){var r=t[y](),a=t.get("symbol")||e,o=t.get("symbolSize");r.setVisual({legendSymbol:i||a,symbol:a,symbolSize:o}),n.isSeriesFiltered(t)||(typeof o===h&&r.each(function(e){var i=t.getRawValue(e),n=t.getDataParams(e);r.setItemVisual(e,"symbolSize",o(i,n))}),r.each(function(t){var e=r.getItemModel(t),i=e[u]("symbol",!0),n=e[u]("symbolSize",!0);null!=i&&r.setItemVisual(t,"symbol",i),null!=n&&r.setItemVisual(t,"symbolSize",n)}))})}}),e("echarts/chart/line/LineSeries",[E,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[I]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,i){return e(t.data,this,i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})}),e(O,[E],function(){function t(e){if("object"==typeof e&&null!==e){var i=e;if(e instanceof Array){i=[];for(var n=0,r=e[L];r>n;n++)i[n]=t(e[n])}else if(!T(e)&&!C(e)){i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]=t(e[a]))}return i}return e}function e(i,n,r){if(!M(n)||!M(i))return r?t(n):i;for(var a in n)if(n.hasOwnProperty(a)){var o=i[a],s=n[a];!M(s)||!M(o)||x(s)||x(o)||C(s)||C(o)||T(s)||T(o)?!r&&a in i||(i[a]=t(n[a],!0)):e(o,s,r)}return i}function i(t,i){for(var n=t[0],r=1,a=t[L];a>r;r++)n=e(n,t[r],i);return n}function n(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function r(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function a(){return document.createElement("canvas")}function o(){return z||(z=V.createCanvas().getContext("2d")),z}function s(t,e){if(t){if(t[c])return t[c](e);for(var i=0,n=t[L];n>i;i++)if(t[i]===e)return i}return-1}function u(t,e){function i(){}var n=t[D];i[D]=e[D],t[D]=new i;for(var r in n)t[D][r]=n[r];t[D].constructor=t,t.superClass=e}function l(t,e,i){t=D in t?t[D]:t,e=D in e?e[D]:e,r(t,e,i)}function f(t){return t?typeof t==S?!1:"number"==typeof t[L]:void 0}function d(t,e,i){if(t&&e)if(t.forEach&&t.forEach===R)t.forEach(e,i);else if(t[L]===+t[L])for(var n=0,r=t[L];r>n;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function p(t,e,i){if(t&&e){if(t.map&&t.map===F)return t.map(e,i);for(var n=[],r=0,a=t[L];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function m(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===G)return t.reduce(e,i,n);for(var r=0,a=t[L];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function v(t,e,i){if(t&&e){if(t.filter&&t.filter===B)return t.filter(e,i);for(var n=[],r=0,a=t[L];a>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function g(t,e,i){if(t&&e)for(var n=0,r=t[L];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function y(t,e){var i=N.call(arguments,2);return function(){return t.apply(e,i.concat(N.call(arguments)))}}function _(t){var e=N.call(arguments,1);return function(){return t.apply(this,e.concat(N.call(arguments)))}}function x(t){return"[object Array]"===O.call(t)}function b(t){return typeof t===h}function w(t){return"[object String]"===O.call(t)}function M(t){var e=typeof t;return e===h||!!t&&"object"==e}function T(t){return!!I[O.call(t)]}function C(t){return t&&1===t.nodeType&&typeof t.nodeName==S}function A(){for(var t=0,e=arguments[L];e>t;t++)if(null!=arguments[t])return arguments[t]}function P(){return Function.call.apply(N,arguments)}function k(t,e){if(!t)throw new Error(e)}var z,I={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1},O=Object[D].toString,E=Array[D],R=E.forEach,B=E.filter,N=E.slice,F=E.map,G=E.reduce,V={inherits:u,mixin:l,clone:t,merge:e,mergeAll:i,extend:n,defaults:r,getContext:o,createCanvas:a,indexOf:s,slice:P,find:g,isArrayLike:f,each:d,map:p,reduce:m,filter:v,bind:y,curry:_,isArray:x,isString:w,isObject:M,isFunction:b,isBuildInObject:T,isDom:C,retrieve:A,assert:k,noop:function(){}};return V}),e("echarts/layout/points",[E],function(){return function(t,e){e.eachSeriesByType(t,function(t){var e=t[y](),i=t.coordinateSystem;if(i){var n=i.dimensions;"singleAxis"===i.type?e.each(n[0],function(t,n){e.setItemLayout(n,isNaN(t)?[0/0,0/0]:i.dataToPoint(t))}):e.each(n,function(t,n,r){e.setItemLayout(r,isNaN(t)||isNaN(n)?[0/0,0/0]:i.dataToPoint([t,n]))},!0)}})}}),e("echarts/chart/line/LineView",[E,O,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff","../../util/graphic","./poly","../../view/Chart"],function(t){function e(t,e){if(t[L]===e[L]){for(var i=0;i<t[L];i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function i(t){return"number"==typeof t?t:t?.3:0}function n(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function u(t,e){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=i.onZero?0:n.scale[z]()[0],o=n.dim,s="x"===o||"radius"===o?1:0;return e.mapArray([o],function(n,u){for(var l,c=e.stackedOn;c&&r(c.get(o,u))===r(n);){l=c;break}var h=[];return h[s]=e.get(i.dim,u),h[1-s]=l?l.get(o,u,!0):a,t.dataToPoint(h)},!0)}function l(t,e){return null!=e[m]?e[m]:null!=e.name?t.indexOfName(e.name):void 0}function c(t,e,i){var r=n(t.getAxis("x")),a=n(t.getAxis("y")),o=t.getBaseAxis().isHorizontal(),s=Math.min(r[0],r[1]),u=Math.min(a[0],a[1]),l=Math.max(r[0],r[1])-s,c=Math.max(a[0],a[1])-u,h=i.get("lineStyle.normal.width")||2,f=i.get("clipOverflow")?h/2:Math.max(l,c);o?(u-=f,c+=2*f):(s-=f,l+=2*f);var d=new C.Rect({shape:{x:s,y:u,width:l,height:c}});return e&&(d.shape[o?"width":_]=0,C.initProps(d,{shape:{width:l,height:c}},i)),d}function h(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[z](),o=n[z](),s=Math.PI/180,u=new C.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:n.inverse}});return e&&(u.shape.endAngle=-o[0]*s,C.initProps(u,{shape:{endAngle:-o[1]*s}},i)),u}function f(t,e,i){return"polar"===t.type?h(t,e,i):c(t,e,i)}function d(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||"radius"===n.dim?0:1,a=[],o=0;o<t[L]-1;o++){var s=t[o+1],u=t[o];a.push(u);var l=[];switch(i){case"end":l[r]=s[r],l[1-r]=u[1-r],a.push(l);break;case"middle":var c=(u[r]+s[r])/2,h=[];l[r]=h[r]=c,l[1-r]=u[1-r],h[1-r]=s[1-r],a.push(l),a.push(h);break;default:l[r]=u[r],l[1-r]=s[1-r],a.push(l)}}return t[o]&&a.push(t[o]),a}function v(t,e){return Math.max(Math.min(t,e[1]),e[0])}function g(t,e){var i=t.getVisual("visualMeta");if(i&&i[L]){for(var n,r=i[L]-1;r>=0;r--)if(i[r].dimension<2){n=i[r];break}if(n&&"cartesian2d"===e.type){var a=n.dimension,o=t.dimensions[a],s=t.getDataExtent(o),u=n.stops,l=[];u[0].interval&&u.sort(function(t,e){return t.interval[0]-e.interval[0]});var c=u[0],h=u[u[L]-1],f=c.interval?v(c.interval[0],s):c.value,d=h.interval?v(h.interval[1],s):h.value,p=d-f;if(0===p)return t.getItemVisual(0,"color");for(var r=0;r<u[L];r++)if(u[r].interval){if(u[r].interval[1]===u[r].interval[0])continue;l.push({offset:(v(u[r].interval[0],s)-f)/p,color:u[r].color},{offset:(v(u[r].interval[1],s)-f)/p,color:u[r].color})}else l.push({offset:(u[r].value-f)/p,color:u[r].color});var m=new C.LinearGradient(0,0,0,0,l,!0),g=e.getAxis(o),y=Math.round(g.toGlobalCoord(g.dataToCoord(f))),_=Math.round(g.toGlobalCoord(g.dataToCoord(d)));return m[o]=y,m[o+"2"]=_,m}}}var x=t(O),w=t("../helper/SymbolDraw"),M=t("../helper/Symbol"),S=t("./lineAnimationDiff"),C=t("../../util/graphic"),A=t("./poly"),P=t("../../view/Chart");return P[I]({type:"line",init:function(){var t=new C.Group,e=new w;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,n,r){var a=t.coordinateSystem,o=this.group,l=t[y](),c=t[T]("lineStyle.normal"),h=t[T]("areaStyle.normal"),p=l.mapArray(l.getItemLayout,!0),m="polar"===a.type,v=this._coordSys,_=this._symbolDraw,b=this._polyline,w=this._polygon,M=this._lineGroup,S=t.get(s),C=!h.isEmpty(),A=u(a,l),L=t.get("showSymbol"),P=L&&!m&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,a),k=this._data;k&&k.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),k.setItemGraphicEl(e,null))}),L||_.remove(),o.add(M);var z=!m&&t.get("step");b&&v.type===a.type&&z===this._step?(C&&!w?w=this._newPolygon(p,A,a,S):w&&!C&&(M.remove(w),w=this._polygon=null),M.setClipPath(f(a,!1,t)),L&&_.updateData(l,P),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),e(this._stackedOnPoints,A)&&e(this._points,p)||(S?this._updateAnimation(l,A,a,r,z):(b.setShape({points:p}),w&&w.setShape({points:p,stackedOnPoints:A})))):(L&&_.updateData(l,P),z&&(p=d(p,a,z),A=d(A,a,z)),b=this._newPolyline(p,a,S),C&&(w=this._newPolygon(p,A,a,S)),M.setClipPath(f(a,!0,t)));var I=g(l,a)||l.getVisual("color");b.useStyle(x.defaults(c.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"}));var D=t.get("smooth");if(D=i(t.get("smooth")),b.setShape({smooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),w){var O=l.stackedOn,E=0;if(w.useStyle(x.defaults(h.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel"})),O){var R=O.hostModel;E=i(R.get("smooth"))}w.setShape({smooth:D,stackedOnSmooth:E,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=l,this._coordSys=a,this._stackedOnPoints=A,this._points=p,this._step=z},highlight:function(t,e,i,n){var r=t[y](),a=l(r,n);if(!(a instanceof Array)&&null!=a&&a>=0){var s=r.getItemGraphicEl(a);if(!s){var u=r.getItemLayout(a);s=new M(r,a),s[o]=u,s.setZ(t.get(p),t.get("z")),s[b]=isNaN(u[0])||isNaN(u[1]),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else P[D].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[y](),a=l(r,n);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else P[D].downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new A.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new A.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(a)[0];return i&&i.isLabelIgnored?x.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,n,r){var a=this._polyline,s=this._polygon,u=t.hostModel,l=S(this._data,t,this._stackedOnPoints,e,this._coordSys,i),c=l.current,h=l.stackedOnCurrent,f=l.next,p=l.stackedOnNext;r&&(c=d(l.current,i,r),h=d(l.stackedOnCurrent,i,r),f=d(l.next,i,r),p=d(l.stackedOnNext,i,r)),a.shape.__points=l.current,a.shape.points=c,C.updateProps(a,{shape:{points:f}},u),s&&(s.setShape({points:c,stackedOnPoints:h}),C.updateProps(s,{shape:{points:f,stackedOnPoints:p,__points:l.next}},u));for(var m=[],v=l.status,g=0;g<v[L];g++){var y=v[g].cmd;if("="===y){var _=t.getItemGraphicEl(v[g].idx1);_&&m.push({el:_,ptIdx:g})}}a.animators&&a.animators[L]&&a.animators[0].during(function(){for(var t=0;t<m[L];t++){var e=m[t].el;e.attr(o,a.shape.__points[m[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(i,n){i.__temp&&(t.remove(i),e.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})}),e("echarts/processor/dataSample",[],function(){var t={average:function(t){for(var e=0,i=0,n=0;n<t[L];n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?0/0:e/i},sum:function(t){for(var e=0,i=0;i<t[L];i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t[L];i++)t[i]>e&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i<t[L];i++)t[i]<e&&(e=t[i]);return e},nearest:function(t){return t[0]}},e=function(t){return Math.round(t[L]/2)};return function(i,n){n.eachSeriesByType(i,function(i){var n=i[y](),r=i.get("sampling"),a=i.coordinateSystem;if("cartesian2d"===a.type&&r){var o=a.getBaseAxis(),s=a.getOtherAxis(o),u=o[z](),l=u[1]-u[0],c=Math.round(n.count()/l);if(c>1){var f;typeof r===S?f=t[r]:typeof r===h&&(f=r),f&&(n=n.downSample(s.dim,1/c,f,e),i.setData(n))}}},this)}}),e("echarts/component/axis",[E,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/scale/Scale",[E,"../util/clazz"],function(t){function e(){this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}var i=t("../util/clazz"),n=e[D];return n.parse=function(t){return t},n[k]=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},n.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},n.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},n.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n[z]=function(){return this._extent.slice()},n.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.getTicksLabels=function(){for(var t=[],e=this.getTicks(),i=0;i<e[L];i++)t.push(this.getLabel(e[i]));return t},i.enableClassExtend(e),i.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/coord/cartesian/Grid",[E,"exports","../../util/layout","../../coord/axisHelper",O,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e,i){return i.getComponent("grid",t.get("gridIndex"))===e}function i(t){var e,i=t.model,n=i.getFormattedLabels(),r=1,a=n[L];a>40&&(r=Math.ceil(a/40));for(var o=0;a>o;o+=r)if(!t.isLabelIgnored(o)){var s=i.getTextRect(n[o]);e?e.union(s):e=s}return e}function n(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this._model=t}function r(t,e){var i=t[z](),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}var s=t("../../util/layout"),u=t("../../coord/axisHelper"),l=t(O),c=t("./Cartesian2D"),h=t("./Axis2D"),f=l.each,d=u.ifAxisCrossZero,p=u.niceScaleExtent;
+t("./GridModel");var m=n[D];return m.type="grid",m.getRect=function(){return this._rect},m.update=function(t,e){function i(t){var e=n[t];for(var i in e){var r=e[i];if(r&&("category"===r.type||!d(r)))return!0}return!1}var n=this._axesMap;this._updateScale(t,this._model),f(n.x,function(t){p(t,t.model)}),f(n.y,function(t){p(t,t.model)}),f(n.x,function(t){i("y")&&(t.onZero=!1)}),f(n.y,function(t){i("x")&&(t.onZero=!1)}),this.resize(this._model,e)},m.resize=function(t,e){function n(){f(u,function(t){var e=t.isHorizontal(),i=e?[0,a.width]:[0,a[_]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),r(t,e?a.x:a.y)})}var a=s.getLayoutRect(t.getBoxLayoutParams(),{width:e[M](),height:e[w]()});this._rect=a;var u=this._axesList;n(),t.get("containLabel")&&(f(u,function(t){if(!t.model.get("axisLabel.inside")){var e=i(t);if(e){var n=t.isHorizontal()?_:"width",r=t.model.get("axisLabel.margin");a[n]-=e[n]+r,"top"===t[o]?a.y+=e[_]+r:"left"===t[o]&&(a.x+=e.width+r)}}}),n())},m.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)return i[n];return i[e]}},m.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}for(var n=0,r=this._coordsList;n<r[L];n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},m._initCartesian=function(t,i){function n(n){return function(l,c){if(e(l,t,i)){var f=l.get(o);"x"===n?"top"!==f&&f!==x&&(f=x,r[f]&&(f="top"===f?x:"top")):"left"!==f&&"right"!==f&&(f="left",r[f]&&(f="left"===f?"right":"left")),r[f]=!0;var d=new h(n,u.createScaleByModel(l),[0,0],l.get("type"),f),p="category"===d.type;d.onBand=p&&l.get("boundaryGap"),d.inverse=l.get("inverse"),d.onZero=l.get("axisLine.onZero"),l.axis=d,d.model=l,d.grid=this,d.index=c,this._axesList.push(d),a[n][c]=d,s[n]++}}}var r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return i.eachComponent("xAxis",n("x"),this),i.eachComponent("yAxis",n("y"),this),s.x&&s.y?(this._axesMap=a,void f(a.x,function(t,e){f(a.y,function(i,n){var r="x"+e+"y"+n,a=new c(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this)):(this._axesMap={},void(this._axesList=[]))},m._updateScale=function(t,i){function n(t,e,i){f(i.coordDimToDataDim(e.dim),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==a))})}l.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(r){if("cartesian2d"===r.get("coordinateSystem")){var a=r.get("xAxisIndex"),o=r.get("yAxisIndex"),s=t.getComponent("xAxis",a),u=t.getComponent("yAxis",o);if(!e(s,i,t)||!e(u,i,t))return;var l=this.getCartesian(a,o),c=r[y](),h=l.getAxis("x"),f=l.getAxis("y");"list"===c.type&&(n(c,h,r),n(c,f,r))}},this)},n[P]=function(t,e){var i=[];return t.eachComponent("grid",function(r,a){var o=new n(r,t,e);o.name="grid_"+a,o.resize(r,e),r.coordinateSystem=o,i.push(o)}),t.eachSeries(function(e){if("cartesian2d"===e.get("coordinateSystem")){var n=e.get("xAxisIndex"),r=e.get("yAxisIndex"),a=t.getComponent("xAxis",n),o=i[a.get("gridIndex")];e.coordinateSystem=o.getCartesian(n,r)}}),i},n.dimensions=c[D].dimensions,t("../../CoordinateSystem").register("cartesian2d",n),n}),e("echarts/util/number",[E],function(){function t(t){return t[d](/^\s+/,"")[d](/\s+$/,"")}var e={},i=1e-4;return e.linearMap=function(t,e,i,n){var r=e[1]-e[0],a=i[1]-i[0];if(0===r)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*a+i[0]},e.parsePercent=function(e,i){switch(e){case r:case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case x:e="100%"}return typeof e===S?t(e).match(/%$/)?parseFloat(e)/100*i:parseFloat(e):null==e?0/0:+e},e.round=function(t){return+(+t).toFixed(10)},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n);return Math.max(-r+a,0)},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-i&&i>t},e.parseDate=function(t){return t instanceof Date?t:new Date(typeof t===S?new Date(t[d](/-/g,"/"))-new Date("1970/01/01"):Math.round(t))},e.quantity=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},e.nice=function(t,i){var n,r=e.quantity(t),a=t/r;return n=i?1.5>a?1:2.5>a?2:4>a?3:7>a?5:10:1>a?1:2>a?2:3>a?3:5>a?5:10,n*r},e}),e("echarts/scale/Interval",[E,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),i=t("../util/format"),n=t("./Scale"),r=Math.floor,a=Math.ceil,o=n[I]({type:"interval",_interval:0,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),o[D].setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,i=this._extent,n=[],r=1e4;if(t){var a=this._niceExtent;i[0]<a[0]&&n.push(i[0]);for(var o=a[0];o<=a[1];)if(n.push(o),o=e.round(o+t),n[L]>r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;i<e[L];i++)t.push(this.getLabel(e[i]));return t},getLabel:function(t){return i.addCommas(t)},niceTicks:function(t){t=t||5;var i=this._extent,n=i[1]-i[0];if(isFinite(n)){0>n&&(n=-n,i.reverse());var o=e.nice(n/t,!0),s=[e.round(a(i[0]/o)*o),e.round(r(i[1]/o)*o)];this._interval=o,this._niceExtent=s}},niceExtent:function(t,i,n){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var s=o[0];n?o[0]-=s/2:(o[1]+=s/2,o[0]-=s/2)}else o[1]=1;var u=o[1]-o[0];isFinite(u)||(o[0]=0,o[1]=1),this.niceTicks(t);var l=this._interval;i||(o[0]=e.round(r(o[0]/l)*l)),n||(o[1]=e.round(a(o[1]/l)*l))}});return o[P]=function(){return new o},o}),e("echarts/util/graphic",[E,O,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix",A,"zrender/graphic/Gradient","zrender/container/Group","zrender/graphic/Image","zrender/graphic/Text","zrender/graphic/shape/Circle","zrender/graphic/shape/Sector","zrender/graphic/shape/Ring","zrender/graphic/shape/Polygon","zrender/graphic/shape/Polyline","zrender/graphic/shape/Rect","zrender/graphic/shape/Line","zrender/graphic/shape/BezierCurve","zrender/graphic/shape/Arc","zrender/graphic/CompoundPath","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient","zrender/core/BoundingRect"],function(t){function e(t){return null!=t&&"none"!=t}function i(t){return typeof t===S?z.lift(t,-.1):t}function a(t){if(t.__hoverStlDirty){var n=t.style.stroke,r=t.style.fill,a=t.__hoverStl;a.fill=a.fill||(e(r)?i(r):null),a.stroke=a.stroke||(e(n)?i(n):null);var o={};for(var s in a)a.hasOwnProperty(s)&&(o[s]=t.style[s]);t.__normalStl=o,t.__hoverStlDirty=!1}}function l(t){t.__isHover||(a(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t.setStyle(t.__hoverStl),t.z2+=1),t.__isHover=!0)}function f(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),t.z2-=1),t.__isHover=!1}}function d(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&l(t)}):l(t)}function p(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&f(t)}):f(t)}function v(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&a(t)}function g(){!this.__isEmphasis&&d(this)}function y(){!this.__isEmphasis&&p(this)}function b(){this.__isEmphasis=!0,d(this)}function w(){this.__isEmphasis=!1,p(this)}function M(t,e,i,n,r,a){typeof r===h&&(a=r,r=null);var o=n&&(n.ifEnableAnimation?n.ifEnableAnimation():n[u](s));if(o){var l=t?"Update":"",c=n&&n[u]("animationDuration"+l),f=n&&n[u]("animationEasing"+l),d=n&&n[u]("animationDelay"+l);typeof d===h&&(d=d(r)),c>0?e.animateTo(i,c,d||0,f,a):(e.attr(i),a&&a())}else e.attr(i),a&&a()}var C=t(O),L=t("zrender/tool/path"),P=Math.round,k=t("zrender/graphic/Path"),z=t("zrender/tool/color"),D=t("zrender/core/matrix"),E=t(A),R=(t("zrender/graphic/Gradient"),{});return R.Group=t("zrender/container/Group"),R.Image=t("zrender/graphic/Image"),R.Text=t("zrender/graphic/Text"),R.Circle=t("zrender/graphic/shape/Circle"),R.Sector=t("zrender/graphic/shape/Sector"),R.Ring=t("zrender/graphic/shape/Ring"),R.Polygon=t("zrender/graphic/shape/Polygon"),R.Polyline=t("zrender/graphic/shape/Polyline"),R.Rect=t("zrender/graphic/shape/Rect"),R.Line=t("zrender/graphic/shape/Line"),R.BezierCurve=t("zrender/graphic/shape/BezierCurve"),R.Arc=t("zrender/graphic/shape/Arc"),R.CompoundPath=t("zrender/graphic/CompoundPath"),R.LinearGradient=t("zrender/graphic/LinearGradient"),R.RadialGradient=t("zrender/graphic/RadialGradient"),R.BoundingRect=t("zrender/core/BoundingRect"),R.extendShape=function(t){return k[I](t)},R.extendPath=function(t,e){return L.extendFromString(t,e)},R.makePath=function(t,e,i,a){var o=L.createFromString(t,e),s=o[n]();if(i){var u=s.width/s[_];if(a===r){var l,c=i[_]*u;c<=i.width?l=i[_]:(c=i.width,l=c/u);var h=i.x+i.width/2,f=i.y+i[_]/2;i.x=h-c/2,i.y=f-l/2,i.width=c,i[_]=l}this.resizePath(o,i)}return o},R.mergePath=L.mergePath,R.resizePath=function(t,e){if(t.applyTransform){var i=t[n](),r=i.calculateTransform(e);t.applyTransform(r)}},R.subPixelOptimizeLine=function(t){var e=R.subPixelOptimize,i=t.shape,n=t.style.lineWidth;return P(2*i.x1)===P(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),P(2*i.y1)===P(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},R.subPixelOptimizeRect=function(t){var e=R.subPixelOptimize,i=t.shape,n=t.style.lineWidth,r=i.x,a=i.y,o=i.width,s=i[_];return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=Math.max(e(r+o,n,!1)-i.x,0===o?0:1),i[_]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},R.subPixelOptimize=function(t,e,i){var n=P(2*t);return(n+P(e))%2===0?n/2:(n+(i?1:-1))/2},R.setHoverStyle=function(t,e){"group"===t.type?t.traverse(function(t){"group"!==t.type&&v(t,e)}):v(t,e),t.on("mouseover",g).on("mouseout",y),t.on("emphasis",b).on("normal",w)},R.setText=function(t,e,i){var n=e[u](o)||"inside",r=n[c]("inside")>=0?"white":i,a=e[T]("textStyle");C[I](t,{textDistance:e[u]("distance")||5,textFont:a.getFont(),textPosition:n,textFill:a.getTextColor()||r})},R.updateProps=function(t,e,i,n,r){M(!0,t,e,i,n,r)},R.initProps=function(t,e,i,n,r){M(!1,t,e,i,n,r)},R.getTransform=function(t,e){for(var i=D.identity([]);t&&t!==e;)D.mul(i,t.getLocalTransform(),i),t=t.parent;return i},R.applyTransform=function(t,e,i){return i&&(e=D.invert([],e)),E.applyTransform([],t,e)},R.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-r:t===x?r:0];return a=R.applyTransform(a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?x:"top"},R.groupTransition=function(t,e,i){function n(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:E.clone(t[o]),rotation:t.rotation};return t.shape&&(e.shape=C[I]({},t.shape)),e}if(t&&e){var a=n(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var n=r(t);t.attr(r(e)),R.updateProps(t,n,i,t[m])}}})}},R}),e("echarts/ExtensionAPI",[E,O],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(O),n=["getDom","getZr",M,w,"dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL",T,"getOption"];return e}),e("zrender/core/env",[],function(){function t(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),r&&(i.ie=!0,i.version=r[1]),a&&(i.edge=!0,i.version=a[1]),{browser:i,os:e,node:!1,canvasSupported:document.createElement("canvas").getContext?!0:!1,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=10)}}var e={};return e=typeof navigator===i?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("echarts/util/format",[E,O,"./number","zrender/contain/text"],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][d](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[L]>1?"."+t[1]:""))}function i(t){return t[C]()[d](/-(.)/g,function(t,e){return e.toUpperCase()})}function n(t){var e=t[L];return"number"==typeof t?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function r(t){return String(t)[d](/&/g,"&amp;")[d](/</g,"&lt;")[d](/>/g,"&gt;")[d](/"/g,"&quot;")[d](/'/g,"&#39;")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){l[f](e)||(e=[e]);var i=e[L];if(!i)return"";for(var n=e[0].$vars||[],r=0;r<n[L];r++){var o=p[r];t=t[d](a(o),a(o,0))}for(var s=0;i>s;s++)for(var u=0;u<n[L];u++)t=t[d](a(p[u],s),e[s][n[u]]);return t}function s(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=c.parseDate(e),n=i.getFullYear(),r=i.getMonth()+1,a=i.getDate(),o=i.getHours(),s=i.getMinutes(),l=i.getSeconds();return t=t[d]("MM",u(r))[C]()[d]("yyyy",n)[d]("yy",n%100)[d]("dd",u(a))[d]("d",a)[d]("hh",u(o))[d]("h",o)[d]("mm",u(s))[d]("m",s)[d]("ss",u(l))[d]("s",l)}function u(t){return 10>t?"0"+t:t}var l=t(O),c=t("./number"),h=t("zrender/contain/text"),p=["a","b","c","d","e","f","g"];return{normalizeCssArray:n,addCommas:e,toCamelCase:i,encodeHTML:r,formatTpl:o,formatTime:s,truncateText:h.truncateText}}),e("echarts/CoordinateSystem",[E],function(){function t(){this._coordinateSystems=[]}var e={};return t[D]={constructor:t,create:function(t,i){var n=[];for(var r in e){var a=e[r][P](t,i);a&&(n=n.concat(a))}this._coordinateSystems=n},update:function(t,e){for(var i=this._coordinateSystems,n=0;n<i[L];n++)i[n].update&&i[n].update(t,e)}},t.register=function(t,i){e[t]=i},t.get=function(t){return e[t]},t}),e("echarts/model/Global",[E,O,"../util/model","./Model","./Component","./globalDefault","./mixin/colorPalette"],function(t){function e(t,e){for(var i in e)M.hasClass(i)||("object"==typeof e[i]?t[i]=t[i]?l.merge(t[i],e[i],!1):l.clone(e[i]):null==t[i]&&(t[i]=e[i]))}function i(t){t=t,this.option={},this.option[S]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme.option),l.merge(t,T,!1),this.mergeOption(t)}function n(t,e){l[f](e)||(e=e?[e]:[]);var i={};return m(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e){var i={};m(e,function(t){var e=t.exist;e&&(i[e.id]=t)}),m(e,function(e){var n=e.option;if(l.assert(!n||null==n.id||!i[n.id]||i[n.id]===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&(i[n.id]=e),w(n)){var r=a(t,n,e.exist);e.keyInfo={mainType:t,subType:r}}}),m(e,function(t){var e=t.exist,n=t.option,r=t.keyInfo;if(w(n)){if(r.name=null!=n.name?n.name+"":e?e.name:"\x00-",e)r.id=e.id;else if(null!=n.id)r.id=n.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(i[r.id])}i[r.id]=t}})}function a(t,e,i){var n=e.type?e.type:i?i.subType:M.determineSubType(t,e);return n}function o(t){return _(t,function(t){return t.componentIndex})||[]}function s(t,e){return e.hasOwnProperty("subType")?y(t,function(t){return t.subType===e.subType}):t}function u(t){}var l=t(O),d=t("../util/model"),p=t("./Model"),m=l.each,y=l.filter,_=l.map,x=l[f],b=l[c],w=l[g],M=t("./Component"),T=t("./globalDefault"),S="\x00_ec_inner",C=p[I]({constructor:C,init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new p(i),this._optionManager=n},setOption:function(t,e){l.assert(!(S in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(r)):i.call(this,r),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=n.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o[L]&&m(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var u=d.normalizeToArray(t[e]),c=d.mappingToExists(a[e],u);r(e,c);var h=n(a,s);i[e]=[],a[e]=[],m(c,function(t,n){var r=t.exist,o=t.option;if(l.assert(w(o)||r,"Empty component definition"),o){var s=M.getClass(e,t.keyInfo.subType,!0);if(r&&r instanceof s)r.mergeOption(o,this),r.optionUpdated(o,!1);else{var u=l[I]({dependentModels:h,componentIndex:n},t.keyInfo);r=new s(o,this,this,u),r.init(o,this,this,u),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);a[e][n]=r,i[e][n]=r.option},this),"series"===e&&(this._seriesIndices=o(a.series))}var i=this.option,a=this._componentsMap,s=[];m(t,function(t,e){null!=t&&(M.hasClass(e)?s.push(e):i[e]=null==i[e]?l.clone(t):l.merge(i[e],t,!0))}),M.topologicalTravel(s,M.getAllClassMainTypes(),e,this)},getOption:function(){var t=l.clone(this.option);return m(t,function(e,i){if(M.hasClass(i)){for(var e=d.normalizeToArray(e),n=e[L]-1;n>=0;n--)d.isIdInner(e[n])&&e[v](n,1);t[i]=e}}),delete t[S],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap[t];return i?i[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,a=this._componentsMap[e];if(!a||!a[L])return[];var o;if(null!=i)x(i)||(i=[i]),o=y(_(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var u=x(n);o=y(a,function(t){return u&&b(n,t.id)>=0||!u&&t.id===n})}else if(null!=r){var l=x(r);o=y(a,function(t){return l&&b(r,t.name)>=0||!l&&t.name===r})}return s(o,t)},findComponents:function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(i)||t.hasOwnProperty(n))?{mainType:r,index:t[e],id:t[i],name:t[n]}:null}function i(e){return t.filter?y(e,t.filter):e}var n=t.query,r=t.mainType,a=e(n),o=a?this.queryComponents(a):this._componentsMap[r];return i(s(o,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===h)i=e,e=t,m(n,function(t,n){m(t,function(t,r){e.call(i,n,t,r)})});else if(l.isString(t))m(n[t],e,i);else if(w(t)){var r=this.findComponents(t);m(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.series;return y(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.series[t]},getSeriesByType:function(t){var e=this._componentsMap.series;return y(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(t,e){u(this),m(this._seriesIndices,function(i){var n=this._componentsMap.series[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){m(this._componentsMap.series,t,e)},eachSeriesByType:function(t,e,i){u(this),m(this._seriesIndices,function(n){var r=this._componentsMap.series[n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return m(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return u(this),l[c](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){u(this);var i=y(this._componentsMap.series,t,e);this._seriesIndices=o(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=o(t.series);var e=[];m(t,function(t,i){e.push(i)}),M.topologicalTravel(e,M.getAllClassMainTypes(),function(e){m(t[e],function(t){t.restoreData()})})}});return l.mixin(C,t("./mixin/colorPalette")),C}),e("echarts/model/OptionManager",[E,O,"../util/model","./Component"],function(t){function e(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function i(t,e,i){var n,r,a=[],o=[],u=t.timeline;if(t.baseOption&&(r=t.baseOption),(u||t.options)&&(r=r||{},a=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;c(l,function(t){t&&t.option&&(t.query?o.push(t):n||(n=t))})}return r||(r=t),r.timeline||(r.timeline=u),c([r].concat(a).concat(s.map(o,function(t){return t.option})),function(t){c(e,function(e){e(t,i)})}),{baseOption:r,timelineOptions:a,mediaDefault:n,mediaList:o}}function n(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return s.each(t,function(t,e){var i=e.match(p);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][C]();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},c(e,function(e,i){if(null!=e){var n=t[i];if(l.hasClass(i)){e=u.normalizeToArray(e),n=u.normalizeToArray(n);var r=u.mappingToExists(n,e);t[i]=f(r,function(t){return t.option&&t.exist?d(t.exist,t.option,!0):t.exist||t.option})}else t[i]=d(n,e,!0)}})}var s=t(O),u=t("../util/model"),l=t("./Component"),c=s.each,h=s.clone,f=s.map,d=s.merge,p=/^(min|max)?(.+)$/;return e[D]={constructor:e,setOption:function(t,e){t=h(t,!0);var n=this._optionBackup,r=i.call(this,t,e,!n);this._newBaseOption=r.baseOption,n?(o(n.baseOption,r.baseOption),r.timelineOptions[L]&&(n.timelineOptions=r.timelineOptions),r.mediaList[L]&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=f(e.timelineOptions,h),this._mediaList=f(e.mediaList,h),this._mediaDefault=h(e.mediaDefault),this._currentMediaIndices=[],h(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[L]){var n=t.getComponent("timeline");n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[M](),e=this._api[w](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[L]&&!r)return s;for(var u=0,l=i[L];l>u;u++)n(i[u].query,t,e)&&o.push(u);return!o[L]&&r&&(o=[-1]),o[L]&&!a(o,this._currentMediaIndices)&&(s=f(o,function(t){return h(-1===t?r.option:i[t].option)})),this._currentMediaIndices=o,s}},e}),e("echarts/model/Component",[E,"./Model",O,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(u.getClassesByMainType(t),function(t){r.apply(e,t[D].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(O),r=Array[D].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),u=i[I]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,r,o){i.call(this,t,e,r,o),n[I](this,o),this.uid=a.getUID("componentModel")},init:function(t,e,i){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?s.getLayoutParams(t):{},a=e.getTheme();n.merge(t,a.get(this.mainType)),n.merge(t,this.getDefaultOption()),i&&s.mergeLayoutParam(t,r,i)},mergeOption:function(t){n.merge(this.option,t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this.option,t,e)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[D].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[L]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o.enableClassManagement(u,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(u),a.enableTopologicalTravel(u,e),n.mixin(u,t("./mixin/boxLayout")),u}),e("echarts/model/Series",[E,O,"../util/format","../util/model","./Component","./mixin/colorPalette","zrender/core/env"],function(t){var e=t(O),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),o=t("./mixin/colorPalette"),l=t("zrender/core/env"),c=i.encodeHTML,h=i.addCommas,d=r[I]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",init:function(t,e,i){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),n.defaultEmphasis(t.label,n.LABEL_OPTIONS),this.fillDataTextStyle(t.data)},mergeOption:function(t,i){t=e.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.getInitialData(t,i);n&&(this._data=n,this._dataBeforeProcessed=n.cloneShallow())},fillDataTextStyle:function(t){if(t)for(var e=0;e<t[L];e++)t[e]&&t[e].label&&n.defaultEmphasis(t[e].label,n.LABEL_OPTIONS)},getInitialData:function(){},getData:function(t){return null==t?this._data:this._data.getLinkedData(t)},setData:function(t){this._data=t},getRawData:function(){return this._dataBeforeProcessed},coordDimToDataDim:function(t){return[t]},dataDimToCoordDim:function(t){return t},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,n){function r(t){return e.map(t,function(t,e){var r=o.getDimensionInfo(e),s=r&&r.type;return s===a?t:"time"===s?n?"":i.formatTime("yyyy/mm/dd hh:mm:ss",t):h(t)}).filter(function(t){return!!t}).join(", ")}var o=this._data,s=this.getRawValue(t),u=e[f](s)?r(s):h(s),l=o.getName(t),d=o.getItemVisual(t,"color"),p='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+d+'"></span>',m=this.name;return"\x00-"===m&&(m=""),n?p+c(this.name)+" : "+u:(m&&c(m)+"<br />")+p+(l?c(l)+" : "+u:u)},ifEnableAnimation:function(){if(l.node)return!1;var t=this[u](s);return t&&this[y]().count()>this[u]("animationThreshold")&&(t=!1),t},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getColorFromPalette:function(t,e){var i=this.ecModel,n=o.getColorFromPalette.call(this,t,e);return n||(n=i.getColorFromPalette(t,e)),n},getAxisTooltipDataIndex:null});return e.mixin(d,n.dataFormatMixin),e.mixin(d,o),d}),e("echarts/view/Chart",[E,"zrender/container/Group","../util/component","../util/clazz"],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t.childAt(n),e)}function n(t,e,n){var r=e&&e[m],a=e&&e.name;if(null!=r)for(var o=r instanceof Array?r:[r],s=0,u=o[L];u>s;s++)i(t.getItemGraphicEl(o[s]),n);else if(a)for(var l=a instanceof Array?a:[a],s=0,u=l[L];u>s;s++){var r=t.indexOfName(l[s]);i(t.getItemGraphicEl(r),n)}else t.eachItemGraphicEl(function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t("../util/clazz");e[D]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[y](),r,"emphasis")},downplay:function(t,e,i,r){n(t[y](),r,"normal")},remove:function(){this.group.removeAll()},dispose:function(){}};var s=e[D];return s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(e),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/view/Component",[E,"zrender/container/Group","../util/component","../util/clazz"],function(t){var e=t("zrender/container/Group"),i=t("../util/component"),n=t("../util/clazz"),r=function(){this.group=new e,this.uid=i.getUID("viewComponent")};r[D]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[D];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("zrender/zrender",[E,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./dom/HandlerProxy","./Painter"],function(t){function e(t){delete h[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),u=t("./dom/HandlerProxy"),l=!n.canvasSupported,c={canvas:t("./Painter")},h={},f={};f.version="3.1.2",f.init=function(t,e){var n=new d(i(),t,e);return h[n.id]=n,n},f.dispose=function(t){if(t)t.dispose();else{for(var e in h)h[e].dispose();h={}}return f},f.getInstance=function(t){return h[t]},f.registerPainter=function(t,e){c[t]=e};var d=function(t,e,i){i=i||{},this.dom=e,this.id=t;var h=this,f=new a,d=i.renderer;if(l){if(!c.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");d="vml"}else d&&c[d]||(d="canvas");var p=new c[d](e,f,i);this.storage=f,this.painter=p;var m=n.node?null:new u(p.getViewportRoot());this.handler=new r(f,p,m),this[s]=new o({stage:{update:function(){h._needsRefresh&&h.refreshImmediately(),h._needsRefreshHover&&h.refreshHoverImmediately()}}}),this[s].start(),this._needsRefresh;var v=f.delFromMap,g=f.addToMap;f.delFromMap=function(t){var e=f.get(t);v.call(f,t),e&&e.removeSelfFromZr(h)},f.addToMap=function(t){g.call(f,t),t.addSelfToZr(h)}};return d[D]={constructor:d,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(){this.painter.resize(),this.handler.resize()},clearAnimation:function(){this[s].clear()},getWidth:function(){return this.painter[M]()},getHeight:function(){return this.painter[w]()},pathToImage:function(t,e,n){var r=i();return this.painter.pathToImage(r,t,e,n)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this[s].stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this[s]=this.storage=this.painter=this.handler=null,e(this.id)}},f}),e("zrender/tool/color",[E],function(){function t(t){return t=Math.round(t),0>t?0:t>255?255:t}function e(t){return t=Math.round(t),0>t?0:t>360?360:t}function i(t){return 0>t?0:t>1?1:t}function n(e){return t(e[L]&&"%"===e.charAt(e[L]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[L]&&"%"===t.charAt(t[L]-1)?parseFloat(t)/100:parseFloat(t))}function a(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function o(t,e,i){return t+(e-t)*i}function s(t){if(t){t+="";var e=t[d](/ /g,"")[C]();if(e in _)return _[e].slice();if("#"!==e.charAt(0)){var i=e[c]("("),a=e[c](")");if(-1!==i&&a+1===e[L]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),l=1;switch(o){case"rgba":if(4!==s[L])return;l=r(s.pop());case"rgb":if(3!==s[L])return;return[n(s[0]),n(s[1]),n(s[2]),l];case"hsla":if(4!==s[L])return;return s[3]=r(s[3]),u(s);case"hsl":if(3!==s[L])return;return u(s);default:return}}}else{if(4===e[L]){var h=parseInt(e.substr(1),16);if(!(h>=0&&4095>=h))return;return[(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,1]}if(7===e[L]){var h=parseInt(e.substr(1),16);if(!(h>=0&&16777215>=h))return;return[(16711680&h)>>16,(65280&h)>>8,255&h,1]}}}}function u(e){var i=(parseFloat(e[0])%360+360)%360/360,n=r(e[1]),o=r(e[2]),s=.5>=o?o*(n+1):o+n-o*n,u=2*o-s,l=[t(255*a(u,s,i+1/3)),t(255*a(u,s,i)),t(255*a(u,s,i-1/3))];return 4===e[L]&&(l[3]=e[3]),l}function l(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),u=s-o,l=(s+o)/2;if(0===u)e=0,i=0;else{i=.5>l?u/(s+o):u/(2-s-o);var c=((s-n)/6+u/2)/u,h=((s-r)/6+u/2)/u,f=((s-a)/6+u/2)/u;
+n===s?e=f-h:r===s?e=1/3+c-f:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,i,l];return null!=t[3]&&d.push(t[3]),d}}function h(t,e){var i=s(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0;return y(i,4===i[L]?"rgba":"rgb")}}function f(t){var e=s(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function p(e,i,n){if(i&&i[L]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[L]-1),a=Math.floor(r),s=Math.ceil(r),u=i[a],l=i[s],c=r-a;return n[0]=t(o(u[0],l[0],c)),n[1]=t(o(u[1],l[1],c)),n[2]=t(o(u[2],l[2],c)),n[3]=t(o(u[3],l[3],c)),n}}function m(e,n,r){if(n&&n[L]&&e>=0&&1>=e){var a=e*(n[L]-1),u=Math.floor(a),l=Math.ceil(a),c=s(n[u]),h=s(n[l]),f=a-u,d=y([t(o(c[0],h[0],f)),t(o(c[1],h[1],f)),t(o(c[2],h[2],f)),i(o(c[3],h[3],f))],"rgba");return r?{color:d,leftIndex:u,rightIndex:l,value:a}:d}}function v(t,i,n,a){return t=s(t),t?(t=l(t),null!=i&&(t[0]=e(i)),null!=n&&(t[1]=r(n)),null!=a&&(t[2]=r(a)),y(u(t),"rgba")):void 0}function g(t,e){return t=s(t),t&&null!=e?(t[3]=i(e),y(t,"rgba")):void 0}function y(t,e){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}var _={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};return{parse:s,lift:h,toHex:f,fastMapToColor:p,mapToColor:m,modifyHSL:v,modifyAlpha:g,stringify:y}}),e("echarts/visual/seriesColor",[E,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t){function i(i){var n=(i.visualColorAccessPath||"itemStyle.normal.color").split("."),r=i[y](),a=i.get(n)||i.getColorFromPalette(i.get("name"));r.setVisual("color",a),t.isSeriesFiltered(i)||(typeof a!==h||a instanceof e||r.each(function(t){r.setItemVisual(t,"color",a(i.getDataParams(t)))}),r.each(function(t){var e=r.getItemModel(t),i=e.get(n,!0);null!=i&&r.setItemVisual(t,"color",i)}))}t.eachRawSeries(i)}}),e("echarts/loading/default",[E,"../util/graphic",O],function(t){var e=t("../util/graphic"),i=t(O),n=Math.PI;return function(t,r){r=r||{},i.defaults(r,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var a=new e.Rect({style:{fill:r.maskColor},zlevel:r[p],z:1e4}),o=new e.Arc({shape:{startAngle:-n/2,endAngle:-n/2+.1,r:10},style:{stroke:r.color,lineCap:"round",lineWidth:5},zlevel:r[p],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[p],z:10001});o.animateShape(!0).when(1e3,{endAngle:3*n/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*n/2}).delay(300).start("circularInOut");var u=new e.Group;return u.add(o),u.add(s),u.add(a),u.resize=function(){var e=t[M]()/2,i=t[w]()/2;o.setShape({cx:e,cy:i});var n=o.shape.r;s.setShape({x:e-n,y:i-n,width:2*n,height:2*n}),a.setShape({x:0,y:0,width:t[M](),height:t[w]()})},u.resize(),u}}),e("zrender/core/timsort",[],function(){function t(t){for(var e=0;t>=u;)e|=1&t,t>>=1;return t+e}function e(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;n>a&&r(t[a],t[a-1])<0;)a++;i(t,e,a)}else for(;n>a&&r(t[a],t[a-1])>=0;)a++;return a-e}function i(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function n(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var a,o=t[n],s=e,u=n;u>s;)a=s+u>>>1,r(o,t[a])<0?u=a:s=a+1;var l=n-s;switch(l){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;l>0;)t[s+l]=t[s+l-1],l--}t[s]=o}}function r(t,e,i,n,r,a){var o=0,s=0,u=1;if(a(t,e[i+r])>0){for(s=n-r;s>u&&a(t,e[i+r+u])>0;)o=u,u=(u<<1)+1,0>=u&&(u=s);u>s&&(u=s),o+=r,u+=r}else{for(s=r+1;s>u&&a(t,e[i+r-u])<=0;)o=u,u=(u<<1)+1,0>=u&&(u=s);u>s&&(u=s);var l=o;o=r-u,u=r-l}for(o++;u>o;){var c=o+(u-o>>>1);a(t,e[i+c])>0?o=c+1:u=c}return u}function a(t,e,i,n,r,a){var o=0,s=0,u=1;if(a(t,e[i+r])<0){for(s=r+1;s>u&&a(t,e[i+r-u])<0;)o=u,u=(u<<1)+1,0>=u&&(u=s);u>s&&(u=s);var l=o;o=r-u,u=r-l}else{for(s=n-r;s>u&&a(t,e[i+r+u])>=0;)o=u,u=(u<<1)+1,0>=u&&(u=s);u>s&&(u=s),o+=r,u+=r}for(o++;u>o;){var c=o+(u-o>>>1);a(t,e[i+c])<0?u=c:o=c+1}return u}function o(t,e){function i(t,e){f[y]=t,d[y]=e,y+=1}function n(){for(;y>1;){var t=y-2;if(t>=1&&d[t-1]<=d[t]+d[t+1]||t>=2&&d[t-2]<=d[t]+d[t-1])d[t-1]<d[t+1]&&t--;else if(d[t]>d[t+1])break;s(t)}}function o(){for(;y>1;){var t=y-2;t>0&&d[t-1]<d[t+1]&&t--,s(t)}}function s(i){var n=f[i],o=d[i],s=f[i+1],l=d[i+1];d[i]=o+l,i===y-3&&(f[i+1]=f[i+2],d[i+1]=d[i+2]),y--;var c=a(t[s],t,n,o,0,e);n+=c,o-=c,0!==o&&(l=r(t[n+o-1],t,s,l,l-1,e),0!==l&&(l>=o?u(n,o,s,l):h(n,o,s,l)))}function u(i,n,o,s){var u=0;for(u=0;n>u;u++)_[u]=t[i+u];var c=0,h=o,f=i;if(t[f++]=t[h++],0!==--s){if(1===n){for(u=0;s>u;u++)t[f+u]=t[h+u];return void(t[f+s]=_[c])}for(var d,m,v,g=p;;){d=0,m=0,v=!1;do if(e(t[h],_[c])<0){if(t[f++]=t[h++],m++,d=0,0===--s){v=!0;break}}else if(t[f++]=_[c++],d++,m=0,1===--n){v=!0;break}while(g>(d|m));if(v)break;do{if(d=a(t[h],_,c,n,0,e),0!==d){for(u=0;d>u;u++)t[f+u]=_[c+u];if(f+=d,c+=d,n-=d,1>=n){v=!0;break}}if(t[f++]=t[h++],0===--s){v=!0;break}if(m=r(_[c],t,h,s,0,e),0!==m){for(u=0;m>u;u++)t[f+u]=t[h+u];if(f+=m,h+=m,s-=m,0===s){v=!0;break}}if(t[f++]=_[c++],1===--n){v=!0;break}g--}while(d>=l||m>=l);if(v)break;0>g&&(g=0),g+=2}if(p=g,1>p&&(p=1),1===n){for(u=0;s>u;u++)t[f+u]=t[h+u];t[f+s]=_[c]}else{if(0===n)throw new Error;for(u=0;n>u;u++)t[f+u]=_[c+u]}}else for(u=0;n>u;u++)t[f+u]=_[c+u]}function h(i,n,o,s){var u=0;for(u=0;s>u;u++)_[u]=t[o+u];var c=i+n-1,h=s-1,f=o+s-1,d=0,m=0;if(t[f--]=t[c--],0!==--n){if(1===s){for(f-=n,c-=n,m=f+1,d=c+1,u=n-1;u>=0;u--)t[m+u]=t[d+u];return void(t[f]=_[h])}for(var v=p;;){var g=0,y=0,x=!1;do if(e(_[h],t[c])<0){if(t[f--]=t[c--],g++,y=0,0===--n){x=!0;break}}else if(t[f--]=_[h--],y++,g=0,1===--s){x=!0;break}while(v>(g|y));if(x)break;do{if(g=n-a(_[h],t,i,n,n-1,e),0!==g){for(f-=g,c-=g,n-=g,m=f+1,d=c+1,u=g-1;u>=0;u--)t[m+u]=t[d+u];if(0===n){x=!0;break}}if(t[f--]=_[h--],1===--s){x=!0;break}if(y=s-r(t[c],_,0,s,s-1,e),0!==y){for(f-=y,h-=y,s-=y,m=f+1,d=h+1,u=0;y>u;u++)t[m+u]=_[d+u];if(1>=s){x=!0;break}}if(t[f--]=t[c--],0===--n){x=!0;break}v--}while(g>=l||y>=l);if(x)break;0>v&&(v=0),v+=2}if(p=v,1>p&&(p=1),1===s){for(f-=n,c-=n,m=f+1,d=c+1,u=n-1;u>=0;u--)t[m+u]=t[d+u];t[f]=_[h]}else{if(0===s)throw new Error;for(d=f-(s-1),u=0;s>u;u++)t[d+u]=_[u]}}else for(d=f-(s-1),u=0;s>u;u++)t[d+u]=_[u]}var f,d,p=l,m=0,v=c,g=0,y=0;m=t[L],2*c>m&&(v=m>>>1);var _=[];g=120>m?5:1542>m?10:119151>m?19:40,f=[],d=[],this.mergeRuns=n,this.forceMergeRuns=o,this.pushRun=i}function s(i,r,a,s){a||(a=0),s||(s=i[L]);var l=s-a;if(!(2>l)){var c=0;if(u>l)return c=e(i,a,s,r),void n(i,a,s,a+c,r);var h=new o(i,r),f=t(l);do{if(c=e(i,a,s,r),f>c){var d=l;d>f&&(d=f),n(i,a,a+d,a+c,r),c=d}h.pushRun(a,c),h.mergeRuns(),l-=c,a+=c}while(0!==l);h.forceMergeRuns()}}var u=32,l=7,c=256;return s}),e("zrender/mixin/Eventful",[E],function(){var t=Array[D].slice,e=function(){this._$handlers={}};return e[D]={constructor:e,one:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t][L];r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!0,ctx:i||this}),this},on:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t][L];r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!1,ctx:i||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][L]},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,a=i[t][L];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][L]&&delete i[t]}else delete i[t];return this},trigger:function(e){if(this._$handlers[e]){var i=arguments,n=i[L];n>3&&(i=t.call(i,1));for(var r=this._$handlers[e],a=r[L],o=0;a>o;){switch(n){case 1:r[o].h.call(r[o].ctx);break;case 2:r[o].h.call(r[o].ctx,i[1]);break;case 3:r[o].h.call(r[o].ctx,i[1],i[2]);break;default:r[o].h.apply(r[o].ctx,i)}r[o].one?(r[v](o,1),a--):o++}}return this},triggerWithContext:function(e){if(this._$handlers[e]){var i=arguments,n=i[L];n>4&&(i=t.call(i,1,i[L]-1));for(var r=i[i[L]-1],a=this._$handlers[e],o=a[L],s=0;o>s;){switch(n){case 1:a[s].h.call(r);break;case 2:a[s].h.call(r,i[1]);break;case 3:a[s].h.call(r,i[1],i[2]);break;default:a[s].h.apply(r,i)}a[s].one?(a[v](s,1),o--):s++}}return this}},e}),e("echarts/preprocessor/backwardCompat",[E,O,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[L]&&(i=i&&i[e[n]],null!=i);n++);return i}function i(t,e,i,n){e=e.split(",");for(var r,a=t,o=0;o<e[L]-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}function n(t){l(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(O),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",x]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],u=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],l=r.each;return function(t){l(t.series,function(t){if(r[g](t)){var o=t.type;if(a(t),("pie"===o||"gauge"===o)&&null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===o){var s=e(t,"pointer.color");null!=s&&i(t,"itemStyle.normal.color",s)}for(var l=0;l<u[L];l++)if(u[l]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),l(s,function(e){var i=t[e];i&&(r[f](i)||(i=[i]),l(i,function(t){n(t)}))})}}),e("echarts/data/List",[E,"../model/Model","./DataDiffer",O,"../util/model"],function(t){function e(t){return v[f](t)||(t=[t]),t}function n(t,e){var i=t.dimensions,n=new w(v.map(i,t.getDimensionInfo,t),t.hostModel);b(n,t);for(var r=n._storage={},a=t._storage,o=0;o<i[L];o++){var s=i[o],u=a[s];r[s]=v[c](e,s)>=0?new u.constructor(a[s][L]):a[s]}return n}var r=i,o=typeof window===i?global:window,s=typeof o.Float64Array===r?Array:o.Float64Array,u=typeof o.Int32Array===r?Array:o.Int32Array,l={"float":s,"int":u,ordinal:Array,number:Array,time:Array},d=t("../model/Model"),p=t("./DataDiffer"),v=t(O),y=t("../util/model"),_=v[g],x=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],b=function(t,e){v.each(x.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods},w=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[L];r++){var a,o={};typeof t[r]===S?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||"number"),n.push(a),i[a]=o}this.dimensions=n,this._dimensionInfos=i,this.hostModel=e,this.dataType,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData,this._extent},M=w[D];M.type="list",M.hasItemOption=!0,M.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},M.getDimensionInfo=function(t){return v.clone(this._dimensionInfos[this.getDimension(t)])},M.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this.dimensions,o=t[L],s=this._dimensionInfos,u=[],c={};e=e||[];for(var h=0;h<a[L];h++){var f=s[a[h]],d=l[f.type];n[a[h]]=new d(o)}var p=this;i||(p.hasItemOption=!1),i=i||function(t,e,i,n){var r=y.getDataItemValue(t);return y.isDataItemOption(t)&&(p.hasItemOption=!0),y.converDataValue(r instanceof Array?r[n]:r,s[e])};for(var m=0;m<t[L];m++){for(var v=t[m],g=0;g<a[L];g++){var _=a[g],x=n[_];x[m]=i(v,_,m,g)}r.push(m)}for(var h=0;h<t[L];h++){e[h]||t[h]&&null!=t[h].name&&(e[h]=t[h].name);var b=e[h]||"",w=t[h]&&t[h].id;!w&&b&&(c[b]=c[b]||0,w=b,c[b]>0&&(w+="__ec__"+c[b]),c[b]++),w&&(u[h]=w)}this._nameList=e,this._idList=u},M.count=function(){return this.indices[L]},M.get=function(t,e,i){var n=this._storage,r=this.indices[e];if(null==r)return 0/0;var a=n[t]&&n[t][r];if(i){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var u=s.get(t,e);(a>=0&&u>0||0>=a&&0>u)&&(a+=u),s=s.stackedOn}}return a},M.getValues=function(t,e,i){var n=[];v[f](t)||(i=e,e=t,t=this.dimensions);for(var r=0,a=t[L];a>r;r++)n.push(this.get(t[r],e,i));return n},M.hasValue=function(t){for(var e=this.dimensions,i=this._dimensionInfos,n=0,r=e[L];r>n;n++)if(i[e[n]].type!==a&&isNaN(this.get(e[n],t)))return!1;return!0},M.getDataExtent=function(t,e){t=this.getDimension(t);var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-1/0,u=0,l=this.count();l>u;u++)r=this.get(t,u,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+!!e]=[o,s]}return[1/0,-1/0]},M.getSum=function(t,e){var i=this._storage[t],n=0;if(i)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(n+=o)}return n},M[c]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[L];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},M.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[L];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},M.indexOfRawIndex=function(t){for(var e=this.indices,i=0,n=e[L]-1;n>=i;){var r=(i+n)/2|0;if(e[r]<t)i=r+1;else{if(!(e[r]>t))return r;n=r-1}}return-1},M.indexOfNearest=function(t,e,i,n){var r=this._storage,a=r[t];null==n&&(n=1/0);var o=-1;if(a)for(var s=Number.MAX_VALUE,u=0,l=this.count();l>u;u++){var c=e-this.get(t,u,i),h=Math.abs(c);n>=c&&(s>h||h===s&&c>0)&&(s=h,o=u)}return o},M.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},M.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},M.getName=function(t){return this._nameList[this.indices[t]]||""},M.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},M.each=function(t,i,n,r){typeof t===h&&(r=n,n=i,i=t,t=[]),t=v.map(e(t),this.getDimension,this);var a=[],o=t[L],s=this.indices;r=r||this;for(var u=0;u<s[L];u++)switch(o){case 0:i.call(r,u);break;case 1:i.call(r,this.get(t[0],u,n),u);break;case 2:i.call(r,this.get(t[0],u,n),this.get(t[1],u,n),u);break;default:for(var l=0;o>l;l++)a[l]=this.get(t[l],u,n);a[l]=u,i.apply(r,a)}},M.filterSelf=function(t,i,n,r){typeof t===h&&(r=n,n=i,i=t,t=[]),t=v.map(e(t),this.getDimension,this);var a=[],o=[],s=t[L],u=this.indices;r=r||this;for(var l=0;l<u[L];l++){var c;if(1===s)c=i.call(r,this.get(t[0],l,n),l);else{for(var f=0;s>f;f++)o[f]=this.get(t[f],l,n);o[f]=l,c=i.apply(r,o)}c&&a.push(u[l])}return this.indices=a,this._extent={},this},M.mapArray=function(t,e,i,n){typeof t===h&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},M.map=function(t,i,r,a){t=v.map(e(t),this.getDimension,this);var o=n(this,t),s=o.indices=this.indices,u=o._storage,l=[];return this.each(t,function(){var e=arguments[arguments[L]-1],n=i&&i.apply(this,arguments);if(null!=n){"number"==typeof n&&(l[0]=n,n=l);for(var r=0;r<n[L];r++){var a=t[r],o=u[a],c=s[e];o&&(o[c]=n[r])}}},r,a),o},M.downSample=function(t,e,i,r){for(var a=n(this,[t]),o=this._storage,s=a._storage,u=this.indices,l=a.indices=[],c=[],h=[],f=Math.floor(1/e),d=s[t],p=this.count(),m=0;m<o[t][L];m++)s[t][m]=o[t][m];for(var m=0;p>m;m+=f){f>p-m&&(f=p-m,c[L]=f);for(var v=0;f>v;v++){var g=u[m+v];c[v]=d[g],h[v]=g}var y=i(c),g=h[r(c,y)||0];d[g]=y,l.push(g)}return a},M.getItemModel=function(t){var e=this.hostModel;return t=this.indices[t],new d(this._rawData[t],e,e&&e.ecModel)},M.diff=function(t){var e=this._idList,i=t&&t._idList;return new p(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},M.getVisual=function(t){var e=this._visual;return e&&e[t]},M.setVisual=function(t,e){if(_(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},M.setLayout=function(t,e){if(_(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},M.getLayout=function(t){return this._layout[t]},M.getItemLayout=function(t){return this._itemLayouts[t]},M.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?v[I](this._itemLayouts[t]||{},e):e},M.clearItemLayouts=function(){this._itemLayouts[L]=0},M.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},M.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,_(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i},M.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var T=function(t){t.seriesIndex=this.seriesIndex,t[m]=this[m],t.dataType=this.dataType};return M.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e[m]=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(T,e)),this._graphicEls[t]=e},M.getItemGraphicEl=function(t){return this._graphicEls[t]},M.eachItemGraphicEl=function(t,e){v.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},M.cloneShallow=function(){var t=v.map(this.dimensions,this.getDimensionInfo,this),e=new w(t,this.hostModel);return e._storage=this._storage,b(e,this),e.indices=this.indices.slice(),this._extent&&(e._extent=v[I]({},this._extent)),e},M.wrapMethod=function(t,e){var i=this[t];typeof i===h&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(v.slice(arguments)))})},M.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],M.CHANGABLE_METHODS=["filterSelf"],w}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===i?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],u=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],u=e[5],l=Math.sin(i),c=Math.cos(i);return t[0]=n*c+o*l,t[1]=-n*l+o*c,t[2]=r*c+s*l,t[3]=-r*l+c*s,t[4]=c*a+l*u,t[5]=c*u-l*a,t},scale:function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],u=i*o-a*n;return u?(u=1/u,t[0]=o*u,t[1]=-a*u,t[2]=-n*u,t[3]=i*u,t[4]=(n*s-o*r)*u,t[5]=(a*r-i*s)*u,t):null}};return e}),e("echarts/model/Model",[E,O,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}var i=t(O),n=t("../util/clazz");e[D]={constructor:e,init:null,mergeOption:function(t){i.merge(this.option,t,!0)},get:function(t,e){if(!t)return this.option;typeof t===S&&(t=t.split("."));for(var i=this.option,n=this.parentModel,r=0;r<t[L]&&(!t[r]||(i=i&&"object"==typeof i?i[t[r]]:null,null!=i));r++);return null==i&&n&&!e&&(i=n.get(t)),i},getShallow:function(t,e){var i=this.option,n=i&&i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r[u](t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[T](t),this.ecModel);return a},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this.option))},setReadOnly:function(t){n.setReadOnly(this,t)}},n.enableClassExtend(e);var r=i.mixin;return r(e,t("./mixin/lineStyle")),r(e,t("./mixin/areaStyle")),r(e,t("./mixin/textStyle")),r(e,t("./mixin/itemStyle")),e}),e(A,[],function(){var t=typeof Float32Array===i?Array:Float32Array,e={create:function(e,i){var n=new t(2);return null==e&&(e=0),null==i&&(i=0),n[0]=e,n[1]=i,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var i=new t(2);return i[0]=e[0],i[1]=e[1],i},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,i){var n=e.len(i);return 0===n?(t[0]=0,t[1]=0):(t[0]=i[0]/n,t[1]=i[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t},applyTransform:function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}};return e[L]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("echarts/util/clazz",[E,O],function(t){function e(t,e){var i=n.slice(arguments,2);return this.superClass[D][e].apply(t,i)}function i(t,e,i){return this.superClass[D][e].apply(t,i)}var n=t(O),r={},a=".",o="___EC__COMPONENT__CONTAINER___",s=r.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split(a),e.main=t[0]||"",e.sub=t[1]||""),e};return r.enableClassExtend=function(t){t.$constructor=t,t[I]=function(t){var r=this,a=function(){t.$constructor?t.$constructor.apply(this,arguments):r.apply(this,arguments)};return n[I](a[D],t),a[I]=this[I],a.superCall=e,a.superApply=i,n[l](a,this),a.superClass=r,a}},r.enableClassManagement=function(t,e){function i(t){var e=r[t.main];return e&&e[o]||(e=r[t.main]={},e[o]=!0),e}e=e||{};var r={};if(t.registerClass=function(t,e){if(e)if(e=s(e),e.sub){if(e.sub!==o){var n=i(e);n[e.sub]=t}}else r[e.main]=t;return t},t.getClass=function(t,e,i){var n=r[t];if(n&&n[o]&&(n=e?n[e]:null),i&&!n)throw new Error("Component "+t+"."+(e||"")+" not exists. Load it first.");return n},t.getClassesByMainType=function(t){t=s(t);var e=[],i=r[t.main];return i&&i[o]?n.each(i,function(t,i){i!==o&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=s(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return n.each(r,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=s(t);var e=r[t.main];return e&&e[o]},t.parseClassType=s,e.registerWhenExtend){var a=t[I];a&&(t[I]=function(e){var i=a.call(this,e);return t.registerClass(i,e.type)})}return t},r.setReadOnly=function(){},r}),e("zrender/graphic/Path",[E,"./Displayable","../core/util","../core/PathProxy","../contain/path","./Pattern"],function(t){function e(t){i.call(this,t),this.path=new a}var i=t("./Displayable"),r=t("../core/util"),a=t("../core/PathProxy"),o=t("../contain/path"),s=t("./Pattern"),u=s[D].getCanvasPattern,c=Math.abs;return e[D]={constructor:e,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i=this.style,r=this.path,a=i.hasStroke(),o=i.hasFill(),s=i.fill,l=i.stroke,c=o&&!!s.colorStops,h=a&&!!l.colorStops,f=o&&!!s.image,d=a&&!!l.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var p=this[n]();c&&(this._fillGradient=i.getGradient(t,s,p)),h&&(this._strokeGradient=i.getGradient(t,l,p))}c?t.fillStyle=this._fillGradient:f&&(t.fillStyle=u.call(s,t)),h?t.strokeStyle=this._strokeGradient:d&&(t.strokeStyle=u.call(l,t));var m=i.lineDash,v=i.lineDashOffset,g=!!t.setLineDash,y=this.getGlobalScale();r.setScale(y[0],y[1]),this.__dirtyPath||m&&!g&&a?(r=this.path.beginPath(t),m&&!g&&(r.setLineDash(m),r.setLineDashOffset(v)),this.buildPath(r,this.shape,!1),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),o&&r.fill(t),m&&g&&(t.setLineDash(m),t.lineDashOffset=v),a&&r.stroke(t),m&&g&&t.setLineDash([]),this.restoreTransform(t),(i.text||0===i.text)&&this.drawRectText(t,this[n]())},buildPath:function(){},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var r=this.path;this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),t=r[n]()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){a.copy(t);var o=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(a.width+=o/s,a[_]+=o/s,a.x-=o/s/2,a.y-=o/s/2)}return a}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),r=this[n](),a=this.style;if(t=i[0],e=i[1],r[k](t,e)){var s=this.path.data;if(a.hasStroke()){var u=a.lineWidth,l=a.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(a.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),o.containStroke(s,u/l,t,e)))return!0}if(a.hasFill())return o[k](s,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):i[D].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(r[g](t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},e[I]=function(t){var i=function(i){e.call(this,i),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var r=this.shape;for(var a in n)!r.hasOwnProperty(a)&&n.hasOwnProperty(a)&&(r[a]=n[a])}t.init&&t.init.call(this,i)};r[l](i,e);for(var n in t)"style"!==n&&"shape"!==n&&(i[D][n]=t[n]);return i},r[l](e,i),e}),e("zrender/graphic/Gradient",[E],function(){var t=function(t){this.colorStops=t||[]};return t[D]={constructor:t,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t}),e("zrender/tool/path",[E,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,u,d,p){var g=u*(f/180),y=h(g)*(t-i)/2+c(g)*(e-n)/2,_=-1*c(g)*(t-i)/2+h(g)*(e-n)/2,x=y*y/(o*o)+_*_/(s*s);x>1&&(o*=l(x),s*=l(x));var b=(r===a?-1:1)*l((o*o*s*s-o*o*_*_-s*s*y*y)/(o*o*_*_+s*s*y*y))||0,w=b*o*_/s,M=b*-s*y/o,T=(t+i)/2+h(g)*w-c(g)*M,S=(e+n)/2+c(g)*w+h(g)*M,C=v([1,0],[(y-w)/o,(_-M)/s]),A=[(y-w)/o,(_-M)/s],L=[(-1*y-w)/o,(-1*_-M)/s],P=v(A,L);m(A,L)<=-1&&(P=f),m(A,L)>=1&&(P=0),0===a&&P>0&&(P-=2*f),1===a&&0>P&&(P+=2*f),p.addData(d,T,S,o,s,C,P,g,a)}function i(t){if(!t)return[];var i,n=t[d](/-/g," -")[d](/  /g," ")[d](/ /g,",")[d](/,,/g,",");for(i=0;i<u[L];i++)n=n[d](new RegExp(u[i],"g"),"|"+u[i]);var r,o=n.split("|"),s=0,l=0,c=new a,h=a.CMD;for(i=1;i<o[L];i++){var f,p=o[i],m=p.charAt(0),v=0,g=p.slice(1)[d](/e,-/g,"e-").split(",");g[L]>0&&""===g[0]&&g.shift();for(var y=0;y<g[L];y++)g[y]=parseFloat(g[y]);for(;v<g[L]&&!isNaN(g[v])&&!isNaN(g[0]);){var _,x,b,w,M,T,S,C=s,A=l;switch(m){case"l":s+=g[v++],l+=g[v++],f=h.L,c.addData(f,s,l);break;case"L":s=g[v++],l=g[v++],f=h.L,c.addData(f,s,l);break;case"m":s+=g[v++],l+=g[v++],f=h.M,c.addData(f,s,l),m="l";break;case"M":s=g[v++],l=g[v++],f=h.M,c.addData(f,s,l),m="L";break;case"h":s+=g[v++],f=h.L,c.addData(f,s,l);break;case"H":s=g[v++],f=h.L,c.addData(f,s,l);break;case"v":l+=g[v++],f=h.L,c.addData(f,s,l);break;case"V":l=g[v++],f=h.L,c.addData(f,s,l);break;case"C":f=h.C,c.addData(f,g[v++],g[v++],g[v++],g[v++],g[v++],g[v++]),s=g[v-2],l=g[v-1];break;case"c":f=h.C,c.addData(f,g[v++]+s,g[v++]+l,g[v++]+s,g[v++]+l,g[v++]+s,g[v++]+l),s+=g[v-2],l+=g[v-1];break;case"S":_=s,x=l;var P=c.len(),k=c.data;r===h.C&&(_+=s-k[P-4],x+=l-k[P-3]),f=h.C,C=g[v++],A=g[v++],s=g[v++],l=g[v++],c.addData(f,_,x,C,A,s,l);break;case"s":_=s,x=l;var P=c.len(),k=c.data;r===h.C&&(_+=s-k[P-4],x+=l-k[P-3]),f=h.C,C=s+g[v++],A=l+g[v++],s+=g[v++],l+=g[v++],c.addData(f,_,x,C,A,s,l);break;case"Q":C=g[v++],A=g[v++],s=g[v++],l=g[v++],f=h.Q,c.addData(f,C,A,s,l);break;case"q":C=g[v++]+s,A=g[v++]+l,s+=g[v++],l+=g[v++],f=h.Q,c.addData(f,C,A,s,l);break;case"T":_=s,x=l;var P=c.len(),k=c.data;r===h.Q&&(_+=s-k[P-4],x+=l-k[P-3]),s=g[v++],l=g[v++],f=h.Q,c.addData(f,_,x,s,l);break;case"t":_=s,x=l;var P=c.len(),k=c.data;r===h.Q&&(_+=s-k[P-4],x+=l-k[P-3]),s+=g[v++],l+=g[v++],f=h.Q,c.addData(f,_,x,s,l);break;case"A":b=g[v++],w=g[v++],M=g[v++],T=g[v++],S=g[v++],C=s,A=l,s=g[v++],l=g[v++],f=h.A,e(C,A,s,l,T,S,b,w,M,f,c);
+break;case"a":b=g[v++],w=g[v++],M=g[v++],T=g[v++],S=g[v++],C=s,A=l,s+=g[v++],l+=g[v++],f=h.A,e(C,A,s,l,T,S,b,w,M,f,c)}}("z"===m||"Z"===m)&&(f=h.Z,c.addData(f)),r=f}return c.toStatic(),c}function n(t,e){var n,r=i(t);return e=e||{},e.buildPath=function(t){t.setData(r.data),n&&o(t,n);var e=t.getContext();e&&t.rebuildPath(e)},e.applyTransform=function(t){n||(n=s[P]()),s.mul(n,t,n)},e}var r=t("../graphic/Path"),a=t("../core/PathProxy"),o=t("./transformPath"),s=t("../core/matrix"),u=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],l=Math.sqrt,c=Math.sin,h=Math.cos,f=Math.PI,p=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},m=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(p(t)*p(e))},v=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(m(t,e))};return{createFromString:function(t,e){return new r(n(t,e))},extendFromString:function(t,e){return r[I](n(t,e))},mergePath:function(t,e){for(var i=[],n=t[L],a=0;n>a;a++){var o=t[a];o.__dirty&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var s=new r(e);return s.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},s}}}),e("zrender/container/Group",[E,"../core/util","../Element","../core/BoundingRect"],function(t){var e=t("../core/util"),i=t("../Element"),r=t("../core/BoundingRect"),a=function(t){t=t||{},i.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this.__dirty=!0};return a[D]={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e[L];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[L]},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i[c](e);n>=0&&(i[v](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof a&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var i=this.__zr,n=this.__storage,r=this._children,o=e[c](r,t);return 0>o?this:(r[v](o,1),t.parent=null,n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),i&&i.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i[L];e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),t.parent=null;return i[L]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[L];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[L];i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[L];e++){var i=this._children[e];t.addToMap(i),i instanceof a&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[L];e++){var i=this._children[e];t.delFromMap(i.id),i instanceof a&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new r(0,0,0,0),a=t||this._children,o=[],s=0;s<a[L];s++){var u=a[s];if(!u[b]&&!u.invisible){var l=u[n](),c=u.getLocalTransform(o);c?(i.copy(l),i.applyTransform(c),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},e[l](a,i),a}),e("zrender/graphic/Image",[E,"./Displayable","../core/BoundingRect","../core/util","../core/LRU"],function(t){function e(t){i.call(this,t)}var i=t("./Displayable"),r=t("../core/BoundingRect"),a=t("../core/util"),o=t("../core/LRU"),s=new o(50);return e[D]={constructor:e,type:"image",brush:function(t,e){var i,r=this.style,a=r.image;if(r.bind(t,this,e),i=typeof a===S?this._image:a,!i&&a){var o=s.get(a);if(!o)return i=new Image,i.onload=function(){i.onload=null;for(var t=0;t<o.pending[L];t++)o.pending[t].dirty()},o={image:i,pending:[this]},i.src=a,s.put(a,o),void(this._image=i);if(i=o.image,this._image=i,!i.width||!i[_])return void o.pending.push(this)}if(i){var u=r.width||i.width,l=r[_]||i[_],c=r.x||0,h=r.y||0;if(!i.width||!i[_])return;if(this.setTransform(t),r.sWidth&&r.sHeight){var f=r.sx||0,d=r.sy||0;t.drawImage(i,f,d,r.sWidth,r.sHeight,c,h,u,l)}else if(r.sx&&r.sy){var f=r.sx,d=r.sy,p=u-f,m=l-d;t.drawImage(i,f,d,p,m,c,h,u,l)}else t.drawImage(i,c,h,u,l);null==r.width&&(r.width=u),null==r[_]&&(r[_]=l),this.restoreTransform(t),null!=r.text&&this.drawRectText(t,this[n]())}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t[_]||0)),this._rect}},a[l](e,i),e}),e("zrender/graphic/shape/Sector",[E,"../Path"],function(t){return t("../Path")[I]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,u=e.clockwise,l=Math.cos(o),c=Math.sin(o);t.moveTo(l*r+i,c*r+n),t.lineTo(l*a+i,c*a+n),t.arc(i,n,a,o,s,!u),t.lineTo(Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,o,u),t.closePath()}})}),e("zrender/graphic/Text",[E,"./Displayable","../core/util","../contain/text"],function(t){var e=t("./Displayable"),i=t("../core/util"),r=t("../contain/text"),a=function(t){e.call(this,t)};return a[D]={constructor:a,type:"text",brush:function(t,e){var i=this.style,a=i.x||0,o=i.y||0,s=i.text;if(null!=s&&(s+=""),i.bind(t,this,e),s){this.setTransform(t);var u,l=i.textAlign,c=i.textFont||i.font;if(i.textVerticalAlign){var h=r[n](s,c,i.textAlign,"top");switch(u="middle",i.textVerticalAlign){case"middle":o-=h[_]/2-h.lineHeight/2;break;case x:o-=h[_]-h.lineHeight/2;break;default:o+=h.lineHeight/2}}else u=i.textBaseline;t.font=c,t.textAlign=l||"left",t.textAlign!==l&&(t.textAlign="left"),t.textBaseline=u||"alphabetic",t.textBaseline!==u&&(t.textBaseline="alphabetic");for(var f=r.measureText("国",t.font).width,d=s.split("\n"),p=0;p<d[L];p++)i.hasFill()&&t.fillText(d[p],a,o),i.hasStroke()&&t.strokeText(d[p],a,o),o+=f;this.restoreTransform(t)}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,i=r[n](t.text+"",t.textFont||t.font,t.textAlign,e?"top":t.textBaseline);switch(e){case"middle":i.y-=i[_]/2;break;case x:i.y-=i[_]}i.x+=t.x||0,i.y+=t.y||0,this._rect=i}return this._rect}},i[l](a,e),a}),e("zrender/graphic/shape/Ring",[E,"../Path"],function(t){return t("../Path")[I]({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)}})}),e("zrender/graphic/shape/Polygon",[E,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[I]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e.buildPath(t,i,!0)}})}),e("zrender/graphic/shape/Circle",[E,"../Path"],function(t){return t("../Path")[I]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})}),e("zrender/graphic/shape/Polyline",[E,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[I]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,i){e.buildPath(t,i,!1)}})}),e("zrender/graphic/shape/Line",[E,"../Path"],function(t){return t("../Path")[I]({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,a=e.y2,o=e.percent;0!==o&&(t.moveTo(i,n),1>o&&(r=i*(1-o)+r*o,a=n*(1-o)+a*o),t.lineTo(r,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/graphic/shape/Rect",[E,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[I]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,i){var n=i.x,r=i.y,a=i.width,o=i[_];i.r?e.buildPath(t,i):t.rect(n,r,a,o),t.closePath()}})}),e("zrender/graphic/shape/BezierCurve",[E,"../../core/curve","../../core/vector","../Path"],function(t){function e(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?l:s)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?l:s)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?u:o)(t.x1,t.cpx1,t.x2,e),(i?u:o)(t.y1,t.cpy1,t.y2,e)]}var i=t("../../core/curve"),n=t("../../core/vector"),r=i.quadraticSubdivide,a=i.cubicSubdivide,o=i.quadraticAt,s=i.cubicAt,u=i.quadraticDerivativeAt,l=i.cubicDerivativeAt,c=[];return t("../Path")[I]({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,o=e.x2,s=e.y2,u=e.cpx1,l=e.cpy1,h=e.cpx2,f=e.cpy2,d=e.percent;0!==d&&(t.moveTo(i,n),null==h||null==f?(1>d&&(r(i,u,o,d,c),u=c[1],o=c[2],r(n,l,s,d,c),l=c[1],s=c[2]),t.quadraticCurveTo(u,l,o,s)):(1>d&&(a(i,u,h,o,d,c),u=c[1],h=c[2],o=c[3],a(n,l,f,s,d,c),l=c[1],f=c[2],s=c[3]),t.bezierCurveTo(u,l,h,f,o,s)))},pointAt:function(t){return e(this.shape,t,!1)},tangentAt:function(t){var i=e(this.shape,t,!0);return n.normalize(i,i)}})}),e("zrender/graphic/shape/Arc",[E,"../Path"],function(t){return t("../Path")[I]({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,u=Math.cos(a),l=Math.sin(a);t.moveTo(u*r+i,l*r+n),t.arc(i,n,r,a,o,!s)}})}),e("zrender/graphic/LinearGradient",[E,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),n=function(t,e,n,r,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,this.type="linear",this.global=o||!1,i.call(this,a)};return n[D]={constructor:n},e[l](n,i),n}),e("zrender/graphic/CompoundPath",[E,"./Path"],function(t){var e=t("./Path");return e[I]({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e[L];i++)t=t||e[i].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t[L];i++)t[i].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i[L];n++)i[n].buildPath(t,i[n].shape,!0)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t[L];e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),e[D][n].call(this)}})}),e("zrender/core/BoundingRect",[E,"./vector","./matrix"],function(t){function e(t,e,i,n){this.x=t,this.y=e,this.width=i,this[_]=n}var i=t("./vector"),n=t("./matrix"),r=i.applyTransform,a=Math.min,o=Math.abs,s=Math.max;return e[D]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this[_]=s(t.y+t[_],this.y+this[_])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[];return function(i){i&&(t[0]=this.x,t[1]=this.y,e[0]=this.x+this.width,e[1]=this.y+this[_],r(t,t,i),r(e,e,i),this.x=a(t[0],e[0]),this.y=a(t[1],e[1]),this.width=o(e[0]-t[0]),this[_]=o(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[_]/e[_],a=n[P]();return n.translate(a,a,[-e.x,-e.y]),n.scale(a,a,[i,r]),n.translate(a,a,[t.x,t.y]),a},intersect:function(t){var e=this,i=e.x,n=e.x+e.width,r=e.y,a=e.y+e[_],o=t.x,s=t.x+t.width,u=t.y,l=t.y+t[_];return!(o>n||i>s||u>a||r>l)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[_]},clone:function(){return new e(this.x,this.y,this.width,this[_])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[_]=t[_]}},e}),e("zrender/graphic/RadialGradient",[E,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=a||!1,i.call(this,r)};return n[D]={constructor:n},e[l](n,i),n}),e("zrender/contain/text",[E,"../core/util","../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(s[i])return s[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n[L];o>a;a++)r=Math.max(d.measureText(n[a],e).width,r);return u>l&&(u=0,s={}),u++,s[i]=r,r}function i(t,i,n,a){var o=((t||"")+"").split("\n")[L],s=e(t,i),u=e("国",i),l=o*u,c=new h(0,0,s,l);switch(c.lineHeight=u,a){case x:case"alphabetic":c.y-=u;break;case"middle":c.y-=u/2}switch(n){case"end":case"right":c.x-=c.width;break;case r:c.x-=c.width/2}return c}function n(t,e,i,n){var a=e.x,o=e.y,s=e[_],u=e.width,l=i[_],c=s/2-l/2,h="left";switch(t){case"left":a-=n,o+=c,h="right";break;case"right":a+=n+u,o+=c,h="left";break;case"top":a+=u/2,o-=n+l,h=r;break;case x:a+=u/2,o+=s+n,h=r;break;case"inside":a+=u/2,o+=c,h=r;break;case"insideLeft":a+=n,o+=c,h="left";break;case"insideRight":a+=u-n,o+=c,h="right";break;case"insideTop":a+=u/2,o+=n,h=r;break;case"insideBottom":a+=u/2,o+=s-l-n,h=r;break;case"insideTopLeft":a+=n,o+=n,h="left";break;case"insideTopRight":a+=u-n,o+=n,h="right";break;case"insideBottomLeft":a+=n,o+=s-l-n;break;case"insideBottomRight":a+=u-n,o+=s-l-n,h="right"}return{x:a,y:o,textAlign:h,textBaseline:"top"}}function a(t,i,n,r,a){if(!i)return"";a=a||{},r=f(r,"...");for(var s=f(a.maxIterations,2),u=f(a.minChar,0),l=e("国",n),c=e("a",n),h=f(a.placeholder,""),d=i=Math.max(0,i-1),p=0;u>p&&d>=c;p++)d-=c;var m=e(r);m>d&&(r="",m=0),d=i-m;for(var v=(t+"").split("\n"),p=0,g=v[L];g>p;p++){var y=v[p],_=e(y,n);if(!(i>=_)){for(var x=0;;x++){if(d>=_||x>=s){y+=r;break}var b=0===x?o(y,d,c,l):_>0?Math.floor(y[L]*d/_):0;y=y.substr(0,b),_=e(y,n)}""===y&&(y=h),v[p]=y}}return v.join("\n")}function o(t,e,i,n){for(var r=0,a=0,o=t[L];o>a&&e>r;a++){var s=t.charCodeAt(a);r+=s>=0&&127>=s?i:n}return a}var s={},u=0,l=5e3,c=t("../core/util"),h=t("../core/BoundingRect"),f=c.retrieve,d={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,truncateText:a,measureText:function(t,e){var i=c.getContext();return i.font=e||"12px sans-serif",i.measureText(t)}};return d}),e("echarts/util/model",[E,"./format","./number","../model/Model",O],function(t){var e=t("./format"),i=t("./number"),n=t("../model/Model"),r=t(O),s=["x","y","z","radius","angle"],u={};return u.createNameEach=function(t,e){t=t.slice();var i=r.map(t,u.capitalFirst);e=(e||[]).slice();var n=r.map(e,u.capitalFirst);return function(a,o){r.each(t,function(t,r){for(var s={name:t,capital:i[r]},u=0;u<e[L];u++)s[e[u]]=t+n[u];a.call(o,s)})}},u.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},u.eachAxisDim=u.createNameEach(s,["axisIndex","axis","index"]),u.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},u.createLinkedNodesFinder=function(t,e,i){function n(t,e){return r[c](e.nodes,t)>=0}function a(t,n){var a=!1;return e(function(e){r.each(i(t,e)||[],function(t){n.records[e.name][t]&&(a=!0)})}),a}function o(t,n){n.nodes.push(t),e(function(e){r.each(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){function r(t){!n(t,s)&&a(t,s)&&(o(t,s),u=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var u;do u=!1,t(r);while(u);return s}},u.defaultEmphasis=function(t,e){if(t){var i=t.emphasis=t.emphasis||{},n=t.normal=t.normal||{};r.each(e,function(t){var e=r.retrieve(i[t],n[t]);null!=e&&(i[t]=e)})}},u.LABEL_OPTIONS=[o,"show","textStyle","distance","formatter"],u.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},u.isDataItemOption=function(t){return r[g](t)&&!(t instanceof Array)},u.converDataValue=function(t,e){var n=e&&e.type;return n===a?t:("time"!==n||isFinite(t)||null==t||"-"===t||(t=+i.parseDate(t)),null==t||""===t?0/0:+t)},u.createDataFormatModel=function(t,e){var i=new n;return r.mixin(i,u.dataFormatMixin),i.seriesIndex=e.seriesIndex,i.name=e.name||"",i.mainType=e.mainType,i.subType=e.subType,i[y]=function(){return t},i},u.dataFormatMixin={getDataParams:function(t,e){var i=this[y](e),n=this.seriesIndex,r=this.name,a=this.getRawValue(t,e),o=i.getRawIndex(t),s=i.getName(t,!0),u=i.getRawDataItem(t);return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:n,seriesName:r,name:s,dataIndex:o,data:u,dataType:e,value:a,color:i.getItemVisual(t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,i,n,r){i=i||"normal";var a=this[y](n),o=a.getItemModel(t),s=this.getDataParams(t,n);null!=r&&s.value instanceof Array&&(s.value=s.value[r]);var u=o.get(["label",i,"formatter"]);return typeof u===h?(s.status=i,u(s)):typeof u===S?e.formatTpl(u,s):void 0},getRawValue:function(t,e){var i=this[y](e),n=i.getRawDataItem(t);return null!=n?!r[g](n)||n instanceof Array?n:n.value:void 0},formatTooltip:r.noop},u.mappingToExists=function(t,e){e=(e||[]).slice();var i=r.map(t||[],function(t){return{exist:t}});return r.each(e,function(t,n){if(r[g](t))for(var a=0;a<i[L];a++){var o=i[a].exist;if(!i[a].option&&(null!=t.id&&o.id===t.id+""||null!=t.name&&!u.isIdInner(t)&&!u.isIdInner(o)&&o.name===t.name+"")){i[a].option=t,e[n]=null;break}}}),r.each(e,function(t){if(r[g](t)){for(var e=0;e<i[L];e++){var n=i[e].exist;if(!i[e].option&&!u.isIdInner(n)&&null==t.id){i[e].option=t;break}}e>=i[L]&&i.push({option:t})}}),i},u.isIdInner=function(t){return r[g](t)&&t.id&&0===(t.id+"")[c]("\x00_ec_\x00")},u.compressBatches=function(t,e){function i(t,e,i){for(var n=0,r=t[L];r>n;n++)for(var a=t[n].seriesId,o=u.normalizeToArray(t[n][m]),s=i&&i[a],l=0,c=o[L];c>l;l++){var h=o[l];s&&s[h]?s[h]=null:(e[a]||(e[a]={}))[h]=1}}function n(t,e){var i=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)i.push(+r);else{var a=n(t[r],!0);a[L]&&i.push({seriesId:r,dataIndex:a})}return i}var r={},a={};return i(t||[],r),i(e||[],a,r),[n(r),n(a)]},u}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==i&&(t=navigator.platform||""),{color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],grid:{},textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:!0,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3}}),e("echarts/model/mixin/colorPalette",[],function(){return{clearColorPalette:function(){this._colorIdx=0,this._colorNameMap={}},getColorFromPalette:function(t,e){e=e||this;var i=e._colorIdx||0,n=e._colorNameMap||(e._colorNameMap={});if(n[t])return n[t];var r=this.get("color",!0)||[];if(r[L]){var a=r[i];return t&&(n[t]=a),e._colorIdx=(i+1)%r[L],a}}}}),e("zrender/graphic/Displayable",[E,"../core/util","./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},a.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new r(t.style),this._rect=null,this.__clipPaths=[]}var i=t("../core/util"),r=t("./Style"),a=t("../Element"),o=t("./mixin/RectText");return e[D]={constructor:e,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:-1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),r=this[n]();return r[k](i[0],i[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a[D].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new r(t),this.dirty(!1),this}},i[l](e,a),i.mixin(e,o),e}),e("zrender/core/PathProxy",[E,"./curve","./vector","./bbox","./BoundingRect","../config"],function(t){var e=t("./curve"),n=t("./vector"),r=t("./bbox"),a=t("./BoundingRect"),o=t("../config").devicePixelRatio,s={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],l=[],c=[],h=[],f=Math.min,d=Math.max,p=Math.cos,m=Math.sin,v=Math.sqrt,g=Math.abs,y=typeof Float32Array!=i,_=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._ux=0,this._uy=0};return _[D]={constructor:_,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=g(1/o/t)||0,this._uy=g(1/o/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(s.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=g(t-this._xi)>this._ux||g(e-this._yi)>this._uy||this._len<5;return this.addData(s.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,r,a){return this.addData(s.C,t,e,i,n,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,a):this._ctx.bezierCurveTo(t,e,i,n,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,i,n){return this.addData(s.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,a){return this.addData(s.A,t,e,i,i,n,r-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,a),this._xi=p(r)*i+t,this._xi=m(r)*i+t,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(s.R,t,e,i,n),this},closePath:function(){this.addData(s.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[L];i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t[L];this.data&&this.data[L]==e||!y||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[L],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();y&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;o<a[L];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[L]>e[L]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[L];i++)e[this._len++]=arguments[i];this._prevCmd=t},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,u=this._xi,l=this._yi,c=t-u,h=e-l,p=v(c*c+h*h),m=u,g=l,y=o[L];for(c/=p,h/=p,0>a&&(a=r+a),a%=r,m-=a*c,g-=a*h;c>0&&t>=m||0>c&&m>=t||0==c&&(h>0&&e>=g||0>h&&g>=e);)n=this._dashIdx,i=o[n],m+=c*i,g+=h*i,this._dashIdx=(n+1)%y,c>0&&u>m||0>c&&m>u||h>0&&l>g||0>h&&g>l||s[n%2?"moveTo":"lineTo"](c>=0?f(m,t):d(m,t),h>=0?f(g,e):d(g,e));c=m-t,h=g-e,this._dashOffset=-v(c*c+h*h)},_dashedBezierTo:function(t,i,n,r,a,o){var s,u,l,c,h,f=this._dashSum,d=this._dashOffset,p=this._lineDash,m=this._ctx,g=this._xi,y=this._yi,_=e.cubicAt,x=0,b=this._dashIdx,w=p[L],M=0;for(0>d&&(d=f+d),d%=f,s=0;1>s;s+=.1)u=_(g,t,n,a,s+.1)-_(g,t,n,a,s),l=_(y,i,r,o,s+.1)-_(y,i,r,o,s),x+=v(u*u+l*l);for(;w>b&&(M+=p[b],!(M>d));b++);for(s=(M-d)/x;1>=s;)c=_(g,t,n,a,s),h=_(y,i,r,o,s),b%2?m.moveTo(c,h):m.lineTo(c,h),s+=p[b]/x,b=(b+1)%w;b%2!==0&&m.lineTo(a,o),u=a-c,l=o-h,this._dashOffset=-v(u*u+l*l)},_dashedQuadraticTo:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t[L]=this._len,y&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=c[0]=c[1]=Number.MAX_VALUE,l[0]=l[1]=h[0]=h[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,o=0,f=0,d=0;d<t[L];){var v=t[d++];switch(1==d&&(e=t[d],i=t[d+1],o=e,f=i),v){case s.M:o=t[d++],f=t[d++],e=o,i=f,c[0]=o,c[1]=f,h[0]=o,h[1]=f;break;case s.L:r.fromLine(e,i,t[d],t[d+1],c,h),e=t[d++],i=t[d++];break;case s.C:r.fromCubic(e,i,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],c,h),e=t[d++],i=t[d++];break;case s.Q:r.fromQuadratic(e,i,t[d++],t[d++],t[d],t[d+1],c,h),e=t[d++],i=t[d++];break;case s.A:var g=t[d++],y=t[d++],_=t[d++],x=t[d++],b=t[d++],w=t[d++]+b,M=(t[d++],1-t[d++]);1==d&&(o=p(b)*_+g,f=m(b)*x+y),r.fromArc(g,y,_,x,b,w,M,c,h),e=p(w)*_+g,i=m(w)*x+y;break;case s.R:o=e=t[d++],f=i=t[d++];var T=t[d++],S=t[d++];r.fromLine(o,f,o+T,f+S,c,h);break;case s.Z:e=o,i=f}n.min(u,u,c),n.max(l,l,h)}return 0===d&&(u[0]=u[1]=l[0]=l[1]=0),new a(u[0],u[1],l[0]-u[0],l[1]-u[1])},rebuildPath:function(t){for(var e,i,n,r,a,o,u=this.data,l=this._ux,c=this._uy,h=this._len,f=0;h>f;){var d=u[f++];switch(1==f&&(n=u[f],r=u[f+1],e=n,i=r),d){case s.M:e=n=u[f++],i=r=u[f++],t.moveTo(n,r);break;case s.L:a=u[f++],o=u[f++],(g(a-n)>l||g(o-r)>c||f===h-1)&&(t.lineTo(a,o),n=a,r=o);break;case s.C:t.bezierCurveTo(u[f++],u[f++],u[f++],u[f++],u[f++],u[f++]),n=u[f-2],r=u[f-1];break;case s.Q:t.quadraticCurveTo(u[f++],u[f++],u[f++],u[f++]),n=u[f-2],r=u[f-1];break;case s.A:var v=u[f++],y=u[f++],_=u[f++],x=u[f++],b=u[f++],w=u[f++],M=u[f++],T=u[f++],S=_>x?_:x,C=_>x?1:_/x,A=_>x?x/_:1,L=Math.abs(_-x)>.001,P=b+w;L?(t.translate(v,y),t.rotate(M),t.scale(C,A),t.arc(0,0,S,b,P,1-T),t.scale(1/C,1/A),t.rotate(-M),t.translate(-v,-y)):t.arc(v,y,S,b,P,1-T),1==f&&(e=p(b)*_+v,i=m(b)*x+y),n=p(P)*_+v,r=m(P)*x+y;break;case s.R:e=n=u[f],i=r=u[f+1],t.rect(u[f++],u[f++],u[f++],u[f++]);break;case s.Z:t.closePath(),n=e,r=i}}}},_.CMD=s,_}),e("zrender/graphic/Pattern",[E],function(){var t=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};return t[D].getCanvasPattern=function(t){return this._canvasPattern||(this._canvasPattern=t.createPattern(this.image,this.repeat))},t}),e("echarts/model/mixin/lineStyle",[E,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash();return n&&(i.lineDash=n),i},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("zrender/contain/path",[E,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<g}function i(){var t=_[0];_[0]=_[1],_[1]=t}function n(t,e,n,r,a,o,s,u,l,c){if(c>e&&c>r&&c>o&&c>u||e>c&&r>c&&o>c&&u>c)return 0;var h=d.cubicRootAt(e,r,o,u,c,y);if(0===h)return 0;for(var f,p,m=0,v=-1,g=0;h>g;g++){var x=y[g],b=0===x||1===x?.5:1,w=d.cubicAt(t,n,a,s,x);l>w||(0>v&&(v=d.cubicExtrema(e,r,o,u,_),_[1]<_[0]&&v>1&&i(),f=d.cubicAt(e,r,o,u,_[0]),v>1&&(p=d.cubicAt(e,r,o,u,_[1]))),m+=2==v?x<_[0]?e>f?b:-b:x<_[1]?f>p?b:-b:p>u?b:-b:x<_[0]?e>f?b:-b:f>u?b:-b)}return m}function r(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var u=d.quadraticRootAt(e,n,a,s,y);if(0===u)return 0;var l=d.quadraticExtremum(e,n,a);if(l>=0&&1>=l){for(var c=0,h=d.quadraticAt(e,n,a,l),f=0;u>f;f++){var p=0===y[f]||1===y[f]?.5:1,m=d.quadraticAt(t,i,r,y[f]);o>m||(c+=y[f]<l?e>h?p:-p:h>a?p:-p)}return c}var p=0===y[0]||1===y[0]?.5:1,m=d.quadraticAt(t,i,r,y[0]);return o>m?0:e>a?p:-p}function a(t,e,i,n,r,a,o,s){if(s-=e,s>i||-i>s)return 0;var u=Math.sqrt(i*i-s*s);y[0]=-u,y[1]=u;var l=Math.abs(n-r);if(1e-4>l)return 0;if(1e-4>l%v){n=0,r=v;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var u=n;n=f(r),r=f(u)}else n=f(n),r=f(r);n>r&&(r+=v);for(var h=0,d=0;2>d;d++){var p=y[d];if(p+t>o){var m=Math.atan2(s,p),c=a?1:-1;0>m&&(m=v+m),(m>=n&&r>=m||m+v>=n&&r>=m+v)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}function o(t,i,o,u,f){for(var d=0,v=0,g=0,y=0,_=0,x=0;x<t[L];){var b=t[x++];switch(b===s.M&&x>1&&(o||(d+=p(v,g,y,_,u,f))),1==x&&(v=t[x],g=t[x+1],y=v,_=g),b){case s.M:y=t[x++],_=t[x++],v=y,g=_;break;case s.L:if(o){if(m(v,g,t[x],t[x+1],i,u,f))return!0}else d+=p(v,g,t[x],t[x+1],u,f)||0;v=t[x++],g=t[x++];break;case s.C:if(o){if(l.containStroke(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],i,u,f))return!0}else d+=n(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],u,f)||0;v=t[x++],g=t[x++];break;case s.Q:if(o){if(c.containStroke(v,g,t[x++],t[x++],t[x],t[x+1],i,u,f))return!0}else d+=r(v,g,t[x++],t[x++],t[x],t[x+1],u,f)||0;v=t[x++],g=t[x++];break;case s.A:var w=t[x++],M=t[x++],T=t[x++],S=t[x++],C=t[x++],A=t[x++],P=(t[x++],1-t[x++]),k=Math.cos(C)*T+w,z=Math.sin(C)*S+M;x>1?d+=p(v,g,k,z,u,f):(y=k,_=z);var I=(u-w)*S/T+w;if(o){if(h.containStroke(w,M,S,C,C+A,P,i,I,f))return!0}else d+=a(w,M,S,C,C+A,P,I,f);v=Math.cos(C+A)*T+w,g=Math.sin(C+A)*S+M;break;case s.R:y=v=t[x++],_=g=t[x++];var D=t[x++],O=t[x++],k=y+D,z=_+O;if(o){if(m(y,_,k,_,i,u,f)||m(k,_,k,z,i,u,f)||m(k,z,y,z,i,u,f)||m(y,z,y,_,i,u,f))return!0}else d+=p(k,_,k,z,u,f),d+=p(y,z,y,_,u,f);break;case s.Z:if(o){if(m(v,g,y,_,i,u,f))return!0}else d+=p(v,g,y,_,u,f);v=y,g=_}}return o||e(g,_)||(d+=p(v,g,y,_,u,f)||0),0!==d}var s=t("../core/PathProxy").CMD,u=t("./line"),l=t("./cubic"),c=t("./quadratic"),h=t("./arc"),f=t("./util").normalizeRadian,d=t("../core/curve"),p=t("./windingLine"),m=u.containStroke,v=2*Math.PI,g=1e-4,y=[-1,-1,-1],_=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("zrender/tool/transformPath",[E,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,u,l,c,h,f,d=t.data,p=i.M,m=i.C,v=i.L,g=i.R,y=i.A,_=i.Q;for(l=0,c=0;l<d[L];){switch(n=d[l++],c=l,u=0,n){case p:u=1;break;case v:u=1;break;case m:u=3;break;case _:u=2;break;case y:var x=e[4],b=e[5],w=o(e[0]*e[0]+e[1]*e[1]),M=o(e[2]*e[2]+e[3]*e[3]),T=s(-e[1]/M,e[0]/w);d[l++]+=x,d[l++]+=b,d[l++]*=w,d[l++]*=M,d[l++]+=T,d[l++]+=T,l+=2,c=l;break;case g:f[0]=d[l++],f[1]=d[l++],r(f,f,e),d[c++]=f[0],d[c++]=f[1],f[0]+=d[l++],f[1]+=d[l++],r(f,f,e),d[c++]=f[0],d[c++]=f[1]}for(h=0;u>h;h++){var f=a[h];f[0]=d[l++],f[1]=d[l++],r(f,f,e),d[c++]=f[0],d[c++]=f[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n.applyTransform,a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("echarts/model/mixin/areaStyle",[E,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[E,"zrender/contain/text"],function(t){function e(t,e){return t&&t[u](e)}var i=t("zrender/contain/text");return{getTextColor:function(){var t=this.ecModel;return this[u]("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this.ecModel,i=t&&t[T]("textStyle");return[this[u]("fontStyle")||e(i,"fontStyle"),this[u]("fontWeight")||e(i,"fontWeight"),(this[u]("fontSize")||e(i,"fontSize")||12)+"px",this[u]("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get("textStyle")||{};return i[n](t,this.getFont(),e.align,e.baseline)},truncateText:function(t,e,n,r){return i.truncateText(t,e,this.getFont(),n,r)}}}),e("zrender/Element",[E,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(t){var e=t("./core/guid"),i=t("./mixin/Eventful"),n=t("./mixin/Transformable"),r=t("./mixin/Animatable"),a=t("./core/util"),u=function(t){n.call(this,t),i.call(this,t),r.call(this,t),this.id=t.id||e()};return u[D]={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;
+break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if(t===o||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this[b]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[b]=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===S)this.attrKV(t,e);else if(a[g](t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e[L];i++)t[s].addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e[L];i++)t[s].removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},a.mixin(u,r),a.mixin(u,n),a.mixin(u,i),u}),e("zrender/graphic/Style",[E],function(){function t(t,e,i){var n=e.x,r=e.x2,a=e.y,o=e.y2;e.global||(n=n*i.width+i.x,r=r*i.width+i.x,a=a*i[_]+i.y,o=o*i[_]+i.y);var s=t.createLinearGradient(n,a,r,o);return s}function e(t,e,i){var n=i.width,r=i[_],a=Math.min(n,r),o=e.x,s=e.y,u=e.r;e.global||(o=o*n+i.x,s=s*r+i.y,u*=a);var l=t.createRadialGradient(o,s,0,o,s,u);return l}var i=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],n=function(t){this.extendFrom(t)};n[D]={constructor:n,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,blend:null,bind:function(t,e,n){for(var r=this,a=n&&n.style,o=!a,s=0;s<i[L];s++){var u=i[s],l=u[0];(o||r[l]!==a[l])&&(t[l]=r[l]||u[1])}if((o||r.fill!==a.fill)&&(t.fillStyle=r.fill),(o||r.stroke!==a.stroke)&&(t.strokeStyle=r.stroke),(o||r.opacity!==a.opacity)&&(t.globalAlpha=null==r.opacity?1:r.opacity),(o||r.blend!==a.blend)&&(t.globalCompositeOperation=r.blend||"source-over"),this.hasStroke()){var c=r.lineWidth;t.lineWidth=c/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t){var i=this;for(var n in t)!t.hasOwnProperty(n)||!e&&i.hasOwnProperty(n)||(i[n]=t[n])}},set:function(t,e){typeof t===S?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(i,n,r){for(var a="radial"===n.type?e:t,o=a(i,n,r),s=n.colorStops,u=0;u<s[L];u++)o.addColorStop(s[u].offset,s[u].color);return o}};for(var r=n[D],a=0;a<i[L];a++){var o=i[a];o[0]in r||(r[o[0]]=o[1])}return n.getGradient=r.getGradient,n}),e("echarts/model/mixin/itemStyle",[E,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getItemStyle:function(t){var i=e.call(this,t),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("zrender/graphic/mixin/RectText",[E,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===S?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var i=t("../../contain/text"),r=t("../../core/BoundingRect"),a=new r,o=function(){};return o[D]={constructor:o,drawRectText:function(t,r,o){var s=this.style,u=s.text;if(null!=u&&(u+=""),u){t.save();var l,c,h=s.textPosition,f=s.textDistance,d=s.textAlign,p=s.textFont||s.font,m=s.textBaseline,v=s.textVerticalAlign;o=o||i[n](u,p,d,m);var g=this.transform;if(g&&(a.copy(r),a.applyTransform(g),r=a),h instanceof Array){if(l=r.x+e(h[0],r.width),c=r.y+e(h[1],r[_]),d=d||"left",m=m||"top",v){switch(v){case"middle":c-=o[_]/2-o.lineHeight/2;break;case x:c-=o[_]-o.lineHeight/2;break;default:c+=o.lineHeight/2}m="middle"}}else{var y=i.adjustTextPositionOnRect(h,r,o,f);l=y.x,c=y.y,d=d||y.textAlign,m=m||y.textBaseline}t.textAlign=d||"left",t.textBaseline=m||"alphabetic";var b=s.textFill,w=s.textStroke;b&&(t.fillStyle=b),w&&(t.strokeStyle=w),t.font=p,t.shadowBlur=s.textShadowBlur,t.shadowColor=s.textShadowColor||"transparent",t.shadowOffsetX=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;for(var M=u.split("\n"),T=0;T<M[L];T++)b&&t.fillText(M[T],l,c),w&&t.strokeText(M[T],l,c),c+=o.lineHeight;t.restore()}}},o}),e("echarts/model/mixin/makeStyleMapper",[E,O],function(t){var e=t(O);return function(t){for(var i=0;i<t[L];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[L];r++){var a=t[r][1];if(!(i&&e[c](i,a)>=0)){var o=this[u](a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("zrender/mixin/Transformable",[E,"../core/matrix","../core/vector"],function(t){function e(t){return t>a||-a>t}var i=t("../core/matrix"),n=t("../core/vector"),r=i.identity,a=5e-5,s=function(t){t=t||{},t[o]||(this[o]=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=s[D];u.transform=null,u.needLocalTransform=function(){return e(this.rotation)||e(this[o][0])||e(this[o][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},u.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),a=this.transform;return n||e?(a=a||i[P](),n?this.getLocalTransform(a):r(a),e&&(n?i.mul(a,t.transform,a):i.copy(a,t.transform)),this.transform=a,this.invTransform=this.invTransform||i[P](),void i.invert(this.invTransform,a)):void(a&&r(a))},u.getLocalTransform=function(t){t=t||[],r(t);var e=this.origin,n=this.scale,a=this.rotation,s=this[o];return e&&(t[4]-=e[0],t[5]-=e[1]),i.scale(t,t,n),a&&i.rotate(t,t,a),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=s[0],t[5]+=s[1],t},u.setTransform=function(t){var e=this.transform;e&&t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},u.restoreTransform=function(t){var e=this.invTransform;e&&t.transform(e[0],e[1],e[2],e[3],e[4],e[5])};var l=[];return u.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(i.mul(l,t.invTransform,n),n=l);var r=n[0]*n[0]+n[1]*n[1],a=n[2]*n[2]+n[3]*n[3],s=this[o],u=this.scale;e(r-1)&&(r=Math.sqrt(r)),e(a-1)&&(a=Math.sqrt(a)),n[0]<0&&(r=-r),n[3]<0&&(a=-a),s[0]=n[4],s[1]=n[5],u[0]=r,u[1]=a,this.rotation=Math.atan2(-n[1]/a,n[0]/r)}},u.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},u.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&n.applyTransform(i,i,r),i},u.transformCoordToGlobal=function(t,e){var i=[t,e],r=this.transform;return r&&n.applyTransform(i,i,r),i},s}),e("zrender/core/guid",[],function(){var t=2311;return function(){return t++}}),e("zrender/mixin/Animatable",[E,"../animation/Animator","../core/util","../core/log"],function(t){var e=t("../animation/Animator"),i=t("../core/util"),n=i.isString,r=i.isFunction,a=i[g],o=t("../core/log"),u=function(){this.animators=[]};return u[D]={constructor:u,animate:function(t,n){var r,a=!1,u=this,l=this.__zr;if(t){var h=t.split("."),f=u;a="shape"===h[0];for(var d=0,p=h[L];p>d;d++)f&&(f=f[h[d]]);f&&(r=f)}else r=u;if(!r)return void o('Property "'+t+'" is not existed in element '+u.id);var m=u.animators,g=new e(r,n);return g.during(function(){u.dirty(a)}).done(function(){m[v](i[c](m,g),1)}),m.push(g),l&&l[s].addAnimator(g),g},stopAnimation:function(t){for(var e=this.animators,i=e[L],n=0;i>n;n++)e[n].stop(t);return e[L]=0,this},animateTo:function(t,e,i,a,o){function s(){l--,l||o&&o()}n(i)?(o=a,a=i,i=0):r(a)?(o=a,a="linear",i=0):r(i)?(o=i,i=0):r(e)?(o=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,i,a,o);var u=this.animators.slice(),l=u[L];l||o&&o();for(var c=0;c<u[L];c++)u[c].done(s).start(a)},_animateToShallow:function(t,e,n,r,o){var s={},u=0;for(var l in n)if(null!=e[l])a(n[l])&&!i.isArrayLike(n[l])?this._animateToShallow(t?t+"."+l:l,e[l],n[l],r,o):(s[l]=n[l],u++);else if(null!=n[l])if(t){var c={};c[t]={},c[t][l]=n[l],this.attr(c)}else this.attr(l,n[l]);return u>0&&this.animate(t,!1).when(null==r?500:r,s).delay(o||0),this}},u}),e("echarts/util/component",[E,O,"./clazz"],function(t){var e=t(O),i=t("./clazz"),n=i.parseClassType,r=0,a={},o="_";return a.getUID=function(t){return[t||"",r++,Math.random()].join(o)},a.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=n(t),e[t.main]=i},t.determineSubType=function(i,r){var a=r.type;if(!a){var o=n(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,i){function n(t){var n={},o=[];return e.each(t,function(s){var u=r(n,s),l=u.originalDeps=i(s),h=a(l,t);u.entryCount=h[L],0===u.entryCount&&o.push(s),e.each(h,function(t){e[c](u.predecessor,t)<0&&u.predecessor.push(t);var i=r(n,t);e[c](i.successor,t)<0&&i.successor.push(s)})}),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,i){var n=[];return e.each(t,function(t){e[c](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){l[t].entryCount--,0===l[t].entryCount&&c.push(t)}function s(t){h[t]=!0,o(t)}if(t[L]){var u=n(i),l=u.graph,c=u.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});c[L];){var f=c.pop(),d=l[f],p=!!h[f];p&&(r.call(a,f,d.originalDeps.slice()),delete h[f]),e.each(d.successor,p?s:o)}e.each(h,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/util/layout",[E,O,"zrender/core/BoundingRect","./number","./format"],function(t){function e(t,e,i,r,a){var s=0,u=0;null==r&&(r=1/0),null==a&&(a=1/0);var l=0;e.eachChild(function(c,h){var f,d,p=c[o],m=c[n](),v=e.childAt(h+1),g=v&&v[n]();if("horizontal"===t){var y=m.width+(g?-g.x+m.x:0);f=s+y,f>r||c.newline?(s=0,f=y,u+=l+i,l=m[_]):l=Math.max(l,m[_])}else{var x=m[_]+(g?-g.y+m.y:0);d=u+x,d>a||c.newline?(s+=l+i,u=0,d=x,l=m.width):l=Math.max(l,m.width)}c.newline||(p[0]=s,p[1]=u,"horizontal"===t?s=f+i:u=d+i)})}var i=t(O),a=t("zrender/core/BoundingRect"),s=t("./number"),u=t("./format"),l=s.parsePercent,c=i.each,h={},f=["left","right","top",x,"width",_];return h.box=e,h.vbox=i.curry(e,"vertical"),h.hbox=i.curry(e,"horizontal"),h.getAvailableSize=function(t,e,i){var n=e.width,r=e[_],a=l(t.x,n),o=l(t.y,r),s=l(t.x2,n),c=l(t.y2,r);return(isNaN(a)||isNaN(parseFloat(t.x)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.y)))&&(o=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),i=u.normalizeCssArray(i||0),{width:Math.max(s-a-i[1]-i[3],0),height:Math.max(c-o-i[0]-i[2],0)}},h.getLayoutRect=function(t,e,i){i=u.normalizeCssArray(i||0);var n=e.width,o=e[_],s=l(t.left,n),c=l(t.top,o),h=l(t.right,n),f=l(t[x],o),d=l(t.width,n),p=l(t[_],o),m=i[2]+i[0],v=i[1]+i[3],g=t.aspect;switch(isNaN(d)&&(d=n-h-v-s),isNaN(p)&&(p=o-f-m-c),isNaN(d)&&isNaN(p)&&(g>n/o?d=.8*n:p=.8*o),null!=g&&(isNaN(d)&&(d=g*p),isNaN(p)&&(p=d/g)),isNaN(s)&&(s=n-h-d-v),isNaN(c)&&(c=o-f-p-m),t.left||t.right){case r:s=n/2-d/2-i[3];break;case"right":s=n-d-v}switch(t.top||t[x]){case"middle":case r:c=o/2-p/2-i[0];break;case x:c=o-p-m}s=s||0,c=c||0,isNaN(d)&&(d=n-s-(h||0)),isNaN(p)&&(p=o-c-(f||0));var y=new a(s+i[3],c+i[0],d,p);return y.margin=i,y},h.positionGroup=function(t,e,r,a){var s=t[n]();e=i[I](i.clone(e),{width:s.width,height:s[_]}),e=h.getLayoutRect(e,r,a),t.attr(o,[e.x-s.x,e.y-s.y])},h.mergeLayoutParam=function(t,e,n){function r(i){var r={},s=0,u={},l=0,h=n.ignoreSize?1:2;if(c(i,function(e){u[e]=t[e]}),c(i,function(t){a(e,t)&&(r[t]=u[t]=e[t]),o(r,t)&&s++,o(u,t)&&l++}),l!==h&&s){if(s>=h)return r;for(var f=0;f<i[L];f++){var d=i[f];if(!a(r,d)&&a(t,d)){r[d]=t[d];break}}return r}return u}function a(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function s(t,e,i){c(t,function(t){e[t]=i[t]})}!i[g](n)&&(n={});var u=["width","left","right"],l=[_,"top",x],h=r(u),f=r(l);s(u,t,h),s(l,t,f)},h.getLayoutParams=function(t){return h.copyLayoutParams({},t)},h.copyLayoutParams=function(t,e){return e&&t&&c(f,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t},h}),e("zrender/animation/Animator",[E,"./Clip","../tool/color","../core/util"],function(t){function e(t,e){return t[e]}function i(t,e,i){t[e]=i}function n(t,e,i){return(e-t)*i+t}function r(t,e,i){return i>.5?e:t}function a(t,e,i,r,a){var o=t[L];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var u=t[0][L],s=0;o>s;s++)for(var l=0;u>l;l++)r[s][l]=n(t[s][l],e[s][l],i)}function o(t,e,i){var n=t[L],r=e[L];if(n!==r){var a=n>r;if(a)t[L]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:y.call(e[o]))}for(var s=t[0]&&t[0][L],o=0;o<t[L];o++)if(1===i)isNaN(t[o])&&(t[o]=e[o]);else for(var u=0;s>u;u++)isNaN(t[o][u])&&(t[o][u]=e[o][u])}function u(t,e,i){if(t===e)return!0;var n=t[L];if(n!==e[L])return!1;if(1===i){for(var r=0;n>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0][L],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function l(t,e,i,n,r,a,o,s,u){var l=t[L];if(1==u)for(var h=0;l>h;h++)s[h]=c(t[h],e[h],i[h],n[h],r,a,o);else for(var f=t[0][L],h=0;l>h;h++)for(var d=0;f>d;d++)s[h][d]=c(t[h][d],e[h][d],i[h][d],n[h][d],r,a,o)}function c(t,e,i,n,r,a,o){var s=.5*(i-t),u=.5*(n-e);return(2*(e-i)+s+u)*o+(-3*(e-i)-2*s-u)*a+s*r+e}function h(t){if(g(t)){var e=t[L];if(g(t[0])){for(var i=[],n=0;e>n;n++)i.push(y.call(t[n]));return i}return y.call(t)}return t}function f(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function d(t,e,i,s,h){var d=t._getter,v=t._setter,y="spline"===e,_=s[L];if(_){var x,b=s[0].value,w=g(b),M=!1,T=!1,C=w&&g(b[0])?2:1;s.sort(function(t,e){return t.time-e.time}),x=s[_-1].time;for(var A=[],P=[],k=s[0].value,z=!0,I=0;_>I;I++){A.push(s[I].time/x);var D=s[I].value;if(w&&u(D,k,C)||!w&&D===k||(z=!1),k=D,typeof D==S){var O=m.parse(D);O?(D=O,M=!0):T=!0}P.push(D)}if(!z){for(var E=P[_-1],I=0;_-1>I;I++)w?o(P[I],E,C):!isNaN(P[I])||isNaN(E)||T||M||(P[I]=E);w&&o(d(t._target,h),E,C);var R,B,N,F,G,V,q=0,H=0;if(M)var W=[0,0,0,0];var Z=function(t,e){var i;if(H>e){for(R=Math.min(q+1,_-1),i=R;i>=0&&!(A[i]<=e);i--);i=Math.min(i,_-2)}else{for(i=q;_>i&&!(A[i]>e);i++);i=Math.min(i-1,_-2)}q=i,H=e;var o=A[i+1]-A[i];if(0!==o)if(B=(e-A[i])/o,y)if(F=P[i],N=P[0===i?i:i-1],G=P[i>_-2?_-1:i+1],V=P[i>_-3?_-1:i+2],w)l(N,F,G,V,B,B*B,B*B*B,d(t,h),C);else{var s;if(M)s=l(N,F,G,V,B,B*B,B*B*B,W,1),s=f(W);else{if(T)return r(F,G,B);s=c(N,F,G,V,B,B*B,B*B*B)}v(t,h,s)}else if(w)a(P[i],P[i+1],B,d(t,h),C);else{var s;if(M)a(P[i],P[i+1],B,W,1),s=f(W);else{if(T)return r(P[i],P[i+1],B);s=n(P[i],P[i+1],B)}v(t,h,s)}},U=new p({target:t._target,life:x,loop:t._loop,delay:t._delay,onframe:Z,ondestroy:i});return e&&"spline"!==e&&(U.easing=e),U}}}var p=t("./Clip"),m=t("../tool/color"),v=t("../core/util"),g=v.isArrayLike,y=Array[D].slice,_=function(t,n,r,a){this._tracks={},this._target=t,this._loop=n||!1,this._getter=r||e,this._setter=a||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return _[D]={when:function(t,e){var i=this._tracks;for(var n in e){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:h(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[L]=0;for(var t=this._doneList,e=t[L],i=0;e>i;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._doneCallback()};for(var a in this._tracks){var o=d(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[s]&&this[s].addClip(o),e=o)}if(e){var u=e.onframe;e.onframe=function(t,e){u(t,e);for(var n=0;n<i._onframeList[L];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[s],n=0;n<e[L];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[L]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},_}),e("zrender/core/log",[E,"../config"],function(t){var e=t("../config");return function(){if(0!==e.debugMode)if(1==e.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(e.debugMode>1)for(var t in arguments)console.log(arguments[t])}}),e("echarts/model/mixin/boxLayout",[E],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(x),width:this.get("width"),height:this.get(_)}}}}),e("zrender/animation/Clip",[E,"./easing"],function(t){function e(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}var i=t("./easing");return e[D]={constructor:e,step:function(t){this._initialized||(this._startTime=(new Date).getTime()+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(0>e)){e=Math.min(e,1);var n=this.easing,r=typeof n==S?i[n]:n,a=typeof r===h?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(){var t=(new Date).getTime(),e=(t-this._startTime)%this._life;this._startTime=(new Date).getTime()-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("zrender/animation/easing",[],function(){var t={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(e){return.5>e?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}};return t}),e("zrender/config",[],function(){var t=1;typeof window!==i&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/core/curve",[E,"./vector"],function(t){function e(t){return t>-x&&x>t}function i(t){return t>x||-x>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,u=3*(n-2*i+t),l=3*(i-t),c=t-a,h=u*u-3*s*l,f=u*l-9*s*c,d=l*l-3*u*c,p=0;if(e(h)&&e(f))if(e(u))o[0]=0;else{var m=-l/u;m>=0&&1>=m&&(o[p++]=m)}else{var v=f*f-4*h*d;if(e(v)){var g=f/h,m=-u/s+g,x=-g/2;m>=0&&1>=m&&(o[p++]=m),x>=0&&1>=x&&(o[p++]=x)}else if(v>0){var b=_(v),T=h*u+1.5*s*(-f+b),S=h*u+1.5*s*(-f-b);T=0>T?-y(-T,M):y(T,M),S=0>S?-y(-S,M):y(S,M);var m=(-u-(T+S))/(3*s);m>=0&&1>=m&&(o[p++]=m)}else{var C=(2*h*u-3*s*f)/(2*_(h*h*h)),A=Math.acos(C)/3,L=_(h),P=Math.cos(A),m=(-u-2*L*P)/(3*s),x=(-u+L*(P+w*Math.sin(A)))/(3*s),k=(-u+L*(P-w*Math.sin(A)))/(3*s);m>=0&&1>=m&&(o[p++]=m),x>=0&&1>=x&&(o[p++]=x),k>=0&&1>=k&&(o[p++]=k)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,u=9*n+3*a-3*t-9*r,l=3*n-3*t,c=0;if(e(u)){if(i(s)){var h=-l/s;h>=0&&1>=h&&(o[c++]=h)}}else{var f=s*s-4*u*l;if(e(f))o[0]=-s/(2*u);else if(f>0){var d=_(f),h=(-s+d)/(2*u),p=(-s-d)/(2*u);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,u=(n-i)*r+i,l=(s-o)*r+o,c=(u-s)*r+s,h=(c-l)*r+l;a[0]=t,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=c,a[6]=u,a[7]=n}function u(t,e,i,r,a,o,s,u,l,c,h){var f,d,p,m,v,y=.005,x=1/0;T[0]=l,T[1]=c;for(var w=0;1>w;w+=.05)S[0]=n(t,i,a,s,w),S[1]=n(e,r,o,u,w),m=g(T,S),x>m&&(f=w,x=m);x=1/0;for(var M=0;32>M&&!(b>y);M++)d=f-y,p=f+y,S[0]=n(t,i,a,s,d),S[1]=n(e,r,o,u,d),m=g(S,T),d>=0&&x>m?(f=d,x=m):(C[0]=n(t,i,a,s,p),C[1]=n(e,r,o,u,p),v=g(C,T),1>=p&&x>v?(f=p,x=v):y*=.5);return h&&(h[0]=n(t,i,a,s,f),h[1]=n(e,r,o,u,f)),_(x)}function l(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function c(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,u=2*(n-t),l=t-a,c=0;if(e(s)){if(i(u)){var h=-l/u;h>=0&&1>=h&&(o[c++]=h)}}else{var f=u*u-4*s*l;if(e(f)){var h=-u/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(f>0){var d=_(f),h=(-u+d)/(2*s),p=(-u-d)/(2*s);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function f(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function d(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function p(t,e,i,n,r,a,o,s,u){var c,h=.005,f=1/0;T[0]=o,T[1]=s;for(var d=0;1>d;d+=.05){S[0]=l(t,i,r,d),S[1]=l(e,n,a,d);var p=g(T,S);f>p&&(c=d,f=p)}f=1/0;for(var m=0;32>m&&!(b>h);m++){var v=c-h,y=c+h;S[0]=l(t,i,r,v),S[1]=l(e,n,a,v);var p=g(S,T);if(v>=0&&f>p)c=v,f=p;else{C[0]=l(t,i,r,y),C[1]=l(e,n,a,y);var x=g(C,T);1>=y&&f>x?(c=y,f=x):h*=.5}}return u&&(u[0]=l(t,i,r,c),u[1]=l(e,n,a,c)),_(f)}var m=t("./vector"),v=m[P],g=m.distSquare,y=Math.pow,_=Math.sqrt,x=1e-8,b=1e-4,w=_(3),M=1/3,T=v(),S=v(),C=v();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:u,quadraticAt:l,quadraticDerivativeAt:c,quadraticRootAt:h,quadraticExtremum:f,quadraticSubdivide:d,quadraticProjectPoint:p}}),e("zrender/core/bbox",[E,"./vector","./curve"],function(t){var e=t("./vector"),i=t("./curve"),n={},r=Math.min,a=Math.max,o=Math.sin,s=Math.cos,u=e[P](),l=e[P](),c=e[P](),h=2*Math.PI;n.fromPoints=function(t,e,i){if(0!==t[L]){var n,o=t[0],s=o[0],u=o[0],l=o[1],c=o[1];for(n=1;n<t[L];n++)o=t[n],s=r(s,o[0]),u=a(u,o[0]),l=r(l,o[1]),c=a(c,o[1]);e[0]=s,e[1]=l,i[0]=u,i[1]=c}},n.fromLine=function(t,e,i,n,o,s){o[0]=r(t,i),o[1]=r(e,n),s[0]=a(t,i),s[1]=a(e,n)};var f=[],d=[];return n.fromCubic=function(t,e,n,o,s,u,l,c,h,p){var m,v=i.cubicExtrema,g=i.cubicAt,y=v(t,n,s,l,f);for(h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0,m=0;y>m;m++){var _=g(t,n,s,l,f[m]);h[0]=r(_,h[0]),p[0]=a(_,p[0])}for(y=v(e,o,u,c,d),m=0;y>m;m++){var x=g(e,o,u,c,d[m]);h[1]=r(x,h[1]),p[1]=a(x,p[1])}h[0]=r(t,h[0]),p[0]=a(t,p[0]),h[0]=r(l,h[0]),p[0]=a(l,p[0]),h[1]=r(e,h[1]),p[1]=a(e,p[1]),h[1]=r(c,h[1]),p[1]=a(c,p[1])},n.fromQuadratic=function(t,e,n,o,s,u,l,c){var h=i.quadraticExtremum,f=i.quadraticAt,d=a(r(h(t,n,s),1),0),p=a(r(h(e,o,u),1),0),m=f(t,n,s,d),v=f(e,o,u,p);l[0]=r(t,s,m),l[1]=r(e,u,v),c[0]=a(t,s,m),c[1]=a(e,u,v)},n.fromArc=function(t,i,n,r,a,f,d,p,m){var v=e.min,g=e.max,y=Math.abs(a-f);if(1e-4>y%h&&y>1e-4)return p[0]=t-n,p[1]=i-r,m[0]=t+n,void(m[1]=i+r);if(u[0]=s(a)*n+t,u[1]=o(a)*r+i,l[0]=s(f)*n+t,l[1]=o(f)*r+i,v(p,u,l),g(m,u,l),a%=h,0>a&&(a+=h),f%=h,0>f&&(f+=h),a>f&&!d?f+=h:f>a&&d&&(a+=h),d){var _=f;f=a,a=_}for(var x=0;f>x;x+=Math.PI/2)x>a&&(c[0]=s(x)*n+t,c[1]=o(x)*r+i,v(p,c,p),g(m,c,m))},n}),e("zrender/contain/util",[E],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/contain/arc",[E,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,u,l,c){if(0===u)return!1;var h=u;l-=t,c-=n;var f=Math.sqrt(l*l+c*c);if(f-h>r||r>f+h)return!1;if(Math.abs(a-o)%i<1e-4)return!0;if(s){var d=a;a=e(o),o=e(d)}else a=e(a),o=e(o);a>o&&(o+=i);var p=Math.atan2(c,l);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,u=0,l=t;if(o>e+s&&o>n+s||e-s>o&&n-s>o||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return Math.abs(a-t)<=s/2;u=(e-n)/(t-i),l=(t*n-i*e)/(t-i);var c=u*a-o+l,h=c*c/(u*u+1);return s/2*s/2>=h}}}),e("zrender/contain/cubic",[E,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,u,l,c,h){if(0===l)return!1;var f=l;if(h>i+f&&h>r+f&&h>o+f&&h>u+f||i-f>h&&r-f>h&&o-f>h&&u-f>h||c>t+f&&c>n+f&&c>a+f&&c>s+f||t-f>c&&n-f>c&&a-f>c&&s-f>c)return!1;var d=e.cubicProjectPoint(t,i,n,r,a,o,s,u,c,h,null);return f/2>=d}}}),e("zrender/contain/windingLine",[],function(){return function(t,e,i,n,r,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var o=e>n?1:-1,s=(a-e)/(n-e);(1===s||0===s)&&(o=e>n?.5:-.5);var u=s*(i-t)+t;return u>r?o:0}}),e("zrender/contain/quadratic",[E,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,u,l){if(0===s)return!1;var c=s;if(l>i+c&&l>r+c&&l>o+c||i-c>l&&r-c>l&&o-c>l||u>t+c&&u>n+c&&u>a+c||t-c>u&&n-c>u&&a-c>u)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,u,l,null);return c/2>=h}}}),e("zrender/core/LRU",[E],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[D];e.insert=function(t){var e=new i(t);return this.insertEntry(e),e},e.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._len++},e.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},e.len=function(){return this._len};var i=function(t){this.value=t,this.next,this.prev},n=function(e){this._list=new t,this._map={},this._maxSize=e||10},r=n[D];return r.put=function(t,e){var i=this._list,n=this._map;if(null==n[t]){var r=i.len();if(r>=this._maxSize&&r>0){var a=i.head;i.remove(a),delete n[a.key]}var o=i.insert(e);o.key=t,n[t]=o}},r.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("zrender/graphic/helper/poly",[E,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),i=t("./smoothBezier");return{buildPath:function(t,n,r){var a=n.points,o=n.smooth;if(a&&a[L]>=2){if(o&&"spline"!==o){var s=i(a,o,r,n.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var u=a[L],l=0;(r?u:u-1)>l;l++){var c=s[2*l],h=s[2*l+1],f=a[(l+1)%u];t.bezierCurveTo(c[0],c[1],h[0],h[1],f[0],f[1])}}else{"spline"===o&&(a=e(a,r)),t.moveTo(a[0][0],a[0][1]);for(var l=1,d=a[L];d>l;l++)t.lineTo(a[l][0],a[l][1])}r&&t.closePath()}}}}),e("zrender/graphic/helper/smoothBezier",[E,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,u,l){var c,h,f,d,p=[],m=[],v=[],g=[];if(l){f=[1/0,1/0],d=[-1/0,-1/0];for(var y=0,_=t[L];_>y;y++)i(f,f,t[y]),n(d,d,t[y]);i(f,f,l[0]),n(d,d,l[1])}for(var y=0,_=t[L];_>y;y++){var x=t[y];if(u)c=t[y?y-1:_-1],h=t[(y+1)%_];else{if(0===y||y===_-1){p.push(e.clone(t[y]));continue}c=t[y-1],h=t[y+1]}e.sub(m,h,c),r(m,m,s);var b=a(x,c),w=a(x,h),M=b+w;0!==M&&(b/=M,w/=M),r(v,m,-b),r(g,m,w);var T=o([],x,v),S=o([],x,g);l&&(n(T,T,f),i(T,T,d),n(S,S,f),i(S,S,d)),p.push(T),p.push(S)}return u&&p.push(p.shift()),p}}),e("zrender/graphic/helper/smoothSpline",[E,"../../core/vector"],function(t){function e(t,e,i,n,r,a,o){var s=.5*(i-t),u=.5*(n-e);return(2*(e-i)+s+u)*o+(-3*(e-i)-2*s-u)*a+s*r+e}var i=t("../../core/vector");return function(t,n){for(var r=t[L],a=[],o=0,s=1;r>s;s++)o+=i.distance(t[s-1],t[s]);var u=o/2;u=r>u?r:u;for(var s=0;u>s;s++){var l,c,h,f=s/(u-1)*(n?r:r-1),d=Math.floor(f),p=f-d,m=t[d%r];n?(l=t[(d-1+r)%r],c=t[(d+1)%r],h=t[(d+2)%r]):(l=t[0===d?d:d-1],c=t[d>r-2?r-1:d+1],h=t[d>r-3?r-1:d+2]);var v=p*p,g=p*v;a.push([e(l[0],m[0],c[0],h[0],p,v,g),e(l[1],m[1],c[1],h[1],p,v,g)])}return a}}),e("zrender/graphic/helper/roundRect",[E],function(){return{buildPath:function(t,e){var i,n,r,a,o=e.x,s=e.y,u=e.width,l=e[_],c=e.r;0>u&&(o+=u,u=-u),0>l&&(s+=l,l=-l),"number"==typeof c?i=n=r=a=c:c instanceof Array?1===c[L]?i=n=r=a=c[0]:2===c[L]?(i=r=c[0],n=a=c[1]):3===c[L]?(i=c[0],n=a=c[1],r=c[2]):(i=c[0],n=c[1],r=c[2],a=c[3]):i=n=r=a=0;var h;i+n>u&&(h=i+n,i*=u/h,n*=u/h),r+a>u&&(h=r+a,r*=u/h,a*=u/h),n+r>l&&(h=n+r,n*=l/h,r*=l/h),i+a>l&&(h=i+a,i*=l/h,a*=l/h),t.moveTo(o+i,s),t.lineTo(o+u-n,s),0!==n&&t.quadraticCurveTo(o+u,s,o+u,s+n),t.lineTo(o+u,s+l-r),0!==r&&t.quadraticCurveTo(o+u,s+l,o+u-r,s+l),t.lineTo(o+a,s+l),0!==a&&t.quadraticCurveTo(o,s+l,o,s+l-a),t.lineTo(o,s+i),0!==i&&t.quadraticCurveTo(o,s,o+i,s)}}}),e("zrender/Storage",[E,"./core/util","./core/env","./container/Group","./core/timsort"],function(t){function e(t,e){return t[p]===e[p]?t.z===e.z?t.z2-e.z2:t.z-e.z:t[p]-e[p]}var i=t("./core/util"),n=t("./core/env"),r=t("./container/Group"),a=t("./core/timsort"),o=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return o[D]={constructor:o,traverse:function(t,e){for(var i=0;i<this._roots[L];i++)this._roots[i].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var i=this._roots,r=this._displayList,o=0,s=i[L];s>o;o++)this._updateAndAddDisplayable(i[o],null,t);r[L]=this._displayListLen,n.canvasSupported&&a(r,e)},_updateAndAddDisplayable:function(t,e,i){if(!t[b]||i){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var n=t.clipPath;if(n&&(n.parent=t,n.updateTransform(),e?(e=e.slice(),e.push(n)):e=[n]),t.isGroup){for(var r=t._children,a=0;a<r[L];a++){var o=r[a];t.__dirty&&(o.__dirty=!0),this._updateAndAddDisplayable(o,e,i)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof r&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[L];e++){var n=this._roots[e];n instanceof r&&n.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,a=t[L];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==S?this._elements[t]:t;
+var s=i[c](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[v](s,1),o instanceof r&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof r&&(t.__storage=this),t.dirty(),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,i=e[t];return i&&(delete e[t],i instanceof r&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null},displayableSortFunc:e},o}),e("zrender/animation/Animation",[E,"../core/util","../core/event","./requestAnimationFrame","./Animator"],function(t){var e=t("../core/util"),i=t("../core/event").Dispatcher,n=t("./requestAnimationFrame"),r=t("./Animator"),a=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time=0,i.call(this)};return a[D]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[s]=this;for(var e=t.getClips(),i=0;i<e[L];i++)this.addClip(e[i])},removeClip:function(t){var i=e[c](this._clips,t);i>=0&&this._clips[v](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[L];i++)this.removeClip(e[i]);t[s]=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,n=i[L],r=[],a=[],o=0;n>o;o++){var s=i[o],u=s.step(t);u&&(r.push(u),a.push(s))}for(var o=0;n>o;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r[L];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},start:function(){function t(){e._running&&(n(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),n(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new r(t,e.loop,e.getter,e.setter);return i}},e.mixin(a,i),a}),e("echarts/coord/axisHelper",[E,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",O,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var o=t("../scale/Scale"),s=t("../util/number"),u=t(O),l=t("zrender/contain/text"),c={};return c.getScaleExtent=function(t,e){var i=t.scale,n=i[z](),r=n[1]-n[0];if(i.type===a)return isFinite(r)?n:[0,0];var o=e.getMin?e.getMin():e.get("min"),l=e.getMax?e.getMax():e.get("max"),c=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),h=e.get("boundaryGap");u[f](h)||(h=[h||0,h||0]),h[0]=s.parsePercent(h[0],1),h[1]=s.parsePercent(h[1],1);var d=!0,p=!0;return null==o&&(o=n[0]-h[0]*r,d=!1),null==l&&(l=n[1]+h[1]*r,p=!1),"dataMin"===o&&(o=n[0]),"dataMax"===l&&(l=n[1]),c&&(o>0&&l>0&&!d&&(o=0),0>o&&0>l&&!p&&(l=0)),[o,l]},c.niceScaleExtent=function(t,e){var i=t.scale,n=c.getScaleExtent(t,e),r=null!=(e.getMin?e.getMin():e.get("min")),a=null!=(e.getMax?e.getMax():e.get("max")),o=e.get("splitNumber");i.setExtent(n[0],n[1]),i.niceExtent(o,r,a);var s=e.get("minInterval");if(isFinite(s)&&!r&&!a&&"interval"===i.type){var u=i.getInterval(),l=Math.max(Math.abs(u),s)/u;n=i[z](),i.setExtent(l*n[0],n[1]*l),i.niceExtent(o)}var u=e.get("interval");null!=u&&i.setInterval&&i.setInterval(u)},c.createScaleByModel=function(t,n){if(n=n||t.get("type"))switch(n){case"category":return new e(t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(o.getClass(n)||i)[P](t)}},c.ifAxisCrossZero=function(t){var e=t.scale[z](),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},c.getAxisLabelInterval=function(t,e,i,a){var o,s=0,u=0,c=1;e[L]>40&&(c=Math.floor(e[L]/40));for(var h=0;h<t[L];h+=c){var f=t[h],d=l[n](e[h],i,r,"top");d[a?"x":"y"]+=f,d[a?"width":_]*=1.3,o?o.intersect(d)?(u++,s=Math.max(s,u)):(o.union(d),u=0):o=d.clone()}return 0===s&&c>1?c:(s+1)*c-1},c.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i.getTicks();return typeof e===S?(e=function(t){return function(e){return t[d]("{value}",e)}}(e),u.map(n,e)):typeof e===h?u.map(r,function(n,r){return e("category"===t.type?i.getLabel(n):n,r)},this):n},c}),e("zrender/Handler",[E,"./core/util","./mixin/Draggable","./mixin/Eventful"],function(t){function e(t,e,i){return{type:t,event:i,target:e,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta}}function i(){}function n(t,e,i){if(t[t.rectHover?"rectContain":k](e,i)){for(var n=t;n;){if(n.silent||n.clipPath&&!n.clipPath[k](e,i))return!1;n=n.parent}return!0}return!1}var r=t("./core/util"),a=t("./mixin/Draggable"),o=t("./mixin/Eventful");i[D].dispose=function(){};var s=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove"],u=function(t,e,n){o.call(this),this.storage=t,this.painter=e,n=n||new i,this.proxy=n,n.handler=this,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,a.call(this),r.each(s,function(t){n.on&&n.on(t,this[t],this)},this)};return u[D]={constructor:u,mousemove:function(t){var e=t.zrX,i=t.zrY,n=this.findHover(e,i,null),r=this._hovered,a=this.proxy;this._hovered=n,a.setCursor&&a.setCursor(n?n.cursor:"default"),r&&n!==r&&r.__zr&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(n,"mousemove",t),n&&n!==r&&this.dispatchToElement(n,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t),this.trigger("globalout",{event:t})},resize:function(){this._hovered=null},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,i,n){for(var r="on"+i,a=e(i,t,n),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o.trigger(i,a),o=o.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(i,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==h&&t[r].call(t,a),t.trigger&&t.trigger(i,a)}))},findHover:function(t,e,i){for(var r=this.storage.getDisplayList(),a=r[L]-1;a>=0;a--)if(!r[a].silent&&r[a]!==i&&!r[a][b]&&n(r[a],t,e))return r[a]}},r.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){u[D][t]=function(e){var i=this.findHover(e.zrX,e.zrY,null);if("mousedown"===t)this._downel=i,this._upel=i;else if("mosueup"===t)this._upel=i;else if("click"===t&&this._downel!==this._upel)return;this.dispatchToElement(i,t,e)}}),r.mixin(u,o),r.mixin(u,a),u}),e("zrender/dom/HandlerProxy",[E,"../core/event","../core/util","../mixin/Eventful","../core/env","../core/GestureMgr"],function(t){function e(t){return"mousewheel"===t&&c.browser.firefox?"DOMMouseScroll":t}function i(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null),t.dom);if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t.handler.dispatchToElement(r.target,a,r.event)}}function n(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function r(){return c.touchEventsSupported}function a(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var i=0;i<g[L];i++){var n=g[i];t._handlers[n]=u.bind(y[n],t)}for(var i=0;i<v[L];i++){var n=v[i];t._handlers[n]=e(y[n],t)}}function o(t){function i(i,n){u.each(i,function(i){f(t,e(i),n._handlers[i])},n)}l.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new h,this._handlers={},a(this),r()&&i(g,this),i(v,this)}var s=t("../core/event"),u=t("../core/util"),l=t("../mixin/Eventful"),c=t("../core/env"),h=t("../core/GestureMgr"),f=s.addEventListener,d=s.removeEventListener,p=s.normalizeEvent,m=300,v=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove"],g=["touchstart","touchend","touchmove"],y={mousemove:function(t){t=p(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=p(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){t=p(this.dom,t),this._lastTouchMoment=new Date,i(this,t,"start"),y.mousemove.call(this,t),y.mousedown.call(this,t),n(this)},touchmove:function(t){t=p(this.dom,t),i(this,t,"change"),y.mousemove.call(this,t),n(this)},touchend:function(t){t=p(this.dom,t),i(this,t,"end"),y.mouseup.call(this,t),+new Date-this._lastTouchMoment<m&&y.click.call(this,t),n(this)}};u.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){y[t]=function(e){e=p(this.dom,e),this.trigger(t,e)}});var _=o[D];return _.dispose=function(){for(var t=v.concat(g),i=0;i<t[L];i++){var n=t[i];d(this.dom,e(n),this._handlers[n])}},_.setCursor=function(t){this.dom.style.cursor=t||"default"},u.mixin(o,l),o}),e("zrender/Painter",[E,"./config","./core/util","./core/log","./core/BoundingRect","./core/timsort","./Layer","./animation/requestAnimationFrame","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function i(t){return t?t.isBuildin?!0:typeof t.resize!==h||typeof t.refresh!==h?!1:!0:!1}function r(t){t.__unusedCount++}function a(t){1==t.__unusedCount&&t.clear()}function s(t,e,i){return T.copy(t[n]()),t.transform&&T.applyTransform(t.transform),S.width=e,S[_]=i,!T.intersect(S)}function u(t,e){if(t==e)return!1;if(!t||!e||t[L]!==e[L])return!0;for(var i=0;i<t[L];i++)if(t[i]!==e[i])return!0}function l(t,e){for(var i=0;i<t[L];i++){var n,r=t[i];r.transform&&(n=r.transform,e.transform(n[0],n[1],n[2],n[3],n[4],n[5]));var a=r.path;a.beginPath(e),r.buildPath(a,r.shape),e.clip(),r.transform&&(n=r.invTransform,e.transform(n[0],n[1],n[2],n[3],n[4],n[5]))}}function f(t,e){var i=document.createElement("div"),n=i.style;return n[o]="relative",n.overflow="hidden",n.width=t+"px",n[_]=e+"px",i}var d=t("./config"),m=t("./core/util"),g=t("./core/log"),y=t("./core/BoundingRect"),x=t("./core/timsort"),b=t("./Layer"),w=t("./animation/requestAnimationFrame"),M=5,T=new y(0,0,0,0),S=new y(0,0,0,0),C=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();i=i||{},this.dpr=i.devicePixelRatio||d.devicePixelRatio,this._singleCanvas=n,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var a=this._zlevelList=[],o=this._layers={};if(this._layerConfig={},n){var s=t.width,u=t[_];this._width=s,this._height=u;var l=new b(t,this,1);l.initContext(),o[0]=l,a.push(0)}else{this._width=this._getWidth(),this._height=this._getHeight();var c=this._domRoot=f(this._width,this._height);t.appendChild(c)}this.pathToImage=this._createPathToImage(),this._progressiveLayers=[],this._hoverlayer,this._hoverElements=[]};return C[D]={constructor:C,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._paintList(e,t);for(var n=0;n<i[L];n++){var r=i[n],a=this._layers[r];!a.isBuildin&&a.refresh&&a.refresh()}return this.refreshHover(),this._progressiveLayers[L]&&this._startProgessive(),this},addHover:function(t,e){if(!t.__hoverMir){var i=new t.constructor({style:t.style,shape:t.shape});i.__from=t,t.__hoverMir=i,i.setStyle(e),this._hoverElements.push(i)}},removeHover:function(t){var e=t.__hoverMir,i=this._hoverElements,n=m[c](i,e);n>=0&&i[v](n,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;e<t[L];e++){var i=t[e].__from;i&&(i.__hoverMir=null)}t[L]=0},refreshHover:function(){var t=this._hoverElements,e=t[L],i=this._hoverlayer;if(i&&i.clear(),e){x(t,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(1e5));var n={};i.ctx.save();for(var r=0;e>r;){var a=t[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a.transform=o.transform,a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,i,!0,n))):(t[v](r,1),o.__hoverMir=null,e--)}i.ctx.restore()}},_startProgessive:function(){function t(){i===e._progressiveToken&&e.storage&&(e._doPaintList(e.storage.getDisplayList()),e._furtherProgressive?(e._progress++,w(t)):e._progressiveToken=-1)}var e=this;if(e._furtherProgressive){var i=e._progressiveToken=+new Date;e._progress++,w(t)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,m.each(this._progressiveLayers,function(t){t.__dirty&&t.clear()})},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t),this._clearProgressive(),this.eachBuildinLayer(r),this._doPaintList(t,e),this.eachBuildinLayer(a)},_doPaintList:function(t,e){function i(t){a.save(),a.globalAlpha=1,a.shadowBlur=0,n.__dirty=!0,a.drawImage(t.dom,0,0,c,h),a.restore(),n.ctx.restore()}for(var n,r,a,o,s,u,l=0,c=this._width,h=this._height,f=this._progress,d=0,v=t[L];v>d;d++){var y=t[d],_=this._singleCanvas?0:y[p],x=y.__frame;if(0>x&&s&&(i(s),s=null),r!==_&&(a&&a.restore(),o={},r=_,n=this.getLayer(r),n.isBuildin||g("ZLevel "+r+" has been used by unkown layer "+n.id),a=n.ctx,a.save(),n.__unusedCount=0,(n.__dirty||e)&&n.clear()),n.__dirty||e){if(x>=0){if(!s){if(s=this._progressiveLayers[Math.min(l++,M-1)],s.ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){d=s.__nextIdxNotProg-1;continue}u=s.__progress,s.__dirty||(f=u),s.__progress=f+1}x===f&&this._doPaintEl(y,s,!0,s.renderScope)}else this._doPaintEl(y,n,e,o);y.__dirty=!1}}s&&i(s),a&&a.restore(),this._furtherProgressive=!1,m.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,i,n){var r=e.ctx;if((e.__dirty||i)&&!t.invisible&&0!==t.style.opacity&&t.scale[0]&&t.scale[1]&&(!t.culling||!s(t,this._width,this._height))){var a=t.__clipPaths;(n.prevClipLayer!==e||u(a,n.prevElClipPaths))&&(n.prevElClipPaths&&(n.prevClipLayer.ctx.restore(),n.prevClipLayer=n.prevElClipPaths=null,n.prevEl=null),a&&(r.save(),l(a,r),n.prevClipLayer=e,n.prevElClipPaths=a)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,n.prevEl||null),n.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new b("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&m.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var n=this._layers,r=this._zlevelList,a=r[L],o=null,s=-1,u=this._domRoot;if(n[t])return void g("ZLevel "+t+" has been used already");if(!i(e))return void g("Layer of zlevel "+t+" is not valid");if(a>0&&t>r[0]){for(s=0;a-1>s&&!(r[s]<t&&r[s+1]>t);s++);o=n[r[s]]}if(r[v](s+1,0,t),o){var l=o.dom;l.nextSibling?u.insertBefore(e.dom,l.nextSibling):u.appendChild(e.dom)}else u.firstChild?u.insertBefore(e.dom,u.firstChild):u.appendChild(e.dom);n[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r[L];n++)i=r[n],t.call(e,this._layers[i],i)},eachBuildinLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[L];r++)n=a[r],i=this._layers[n],i.isBuildin&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[L];r++)n=a[r],i=this._layers[n],i.isBuildin||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,i=this._progressiveLayers,n={},r={};this.eachBuildinLayer(function(t,e){n[e]=t.elCount,t.elCount=0,t.__dirty=!1}),m.each(i,function(t,e){r[e]=t.elCount,t.elCount=0,t.__dirty=!1});for(var a,o,s=0,u=0,l=0,c=t[L];c>l;l++){var h=t[l],f=this._singleCanvas?0:h[p],d=e[f],v=h.progressive;if(d&&(d.elCount++,d.__dirty=d.__dirty||h.__dirty),v>=0){o!==v&&(o=v,u++);var g=h.__frame=u-1;if(!a){var y=Math.min(s,M-1);a=i[y],a||(a=i[y]=new b("progressive",this,this.dpr),a.initContext()),a.__maxProgress=0}a.__dirty=a.__dirty||h.__dirty,a.elCount++,a.__maxProgress=Math.max(a.__maxProgress,g),a.__maxProgress>=a.__progress&&(d.__dirty=!0)}else h.__frame=-1,a&&(a.__nextIdxNotProg=l,s++,a=null)}a&&(s++,a.__nextIdxNotProg=l),this.eachBuildinLayer(function(t,e){n[e]!==t.elCount&&(t.__dirty=!0)}),i[L]=Math.min(s,M),m.each(i,function(t,e){r[e]!==t.elCount&&(h.__dirty=!0),t.__dirty&&(t.__progress=0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?m.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&m.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i[v](m[c](i,t),1))},resize:function(t,e){var i=this._domRoot;if(i.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[_]=e+"px";for(var n in this._layers)this._layers[n].resize(t,e);this.refresh(!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new b("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clearColor=t.backgroundColor,e.clear();for(var i=this.storage.getDisplayList(!0),n={},r=0;r<i[L];r++){var a=i[r];this._doPaintEl(a,e,!0,n)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientWidth||e(i.width)||e(t.style.width))-(e(i.paddingLeft)||0)-(e(i.paddingRight)||0)|0},_getHeight:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientHeight||e(i[_])||e(t.style[_]))-(e(i.paddingTop)||0)-(e(i.paddingBottom)||0)|0},_pathToImage:function(e,i,n,r,a){var s=document.createElement("canvas"),u=s.getContext("2d");s.width=n*a,s[_]=r*a,u.clearRect(0,0,n*a,r*a);var l={position:i[o],rotation:i.rotation,scale:i.scale};i[o]=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(u);var c=t("./graphic/Image"),h=new c({id:e,style:{x:0,y:0,image:s}});return null!=l[o]&&(h[o]=i[o]=l[o]),null!=l.rotation&&(h.rotation=i.rotation=l.rotation),null!=l.scale&&(h.scale=i.scale=l.scale),h},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},C}),e("echarts/coord/cartesian/Cartesian2D",[E,O,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(O),n=t("./Cartesian");return e[D]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(a)[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e[k](e.toLocalCoord(t[0]))&&i[k](i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoints:function(t,e){return t.mapArray(["x","y"],function(t,e){return this.dataToPoint([t,e])},e,this)},dataToPoint:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.toGlobalCoord(i.dataToCoord(t[0],e)),n.toGlobalCoord(n.dataToCoord(t[1],e))]},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},i[l](e,n),e}),e("echarts/coord/cartesian/GridModel",[E,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[I]({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}})}),e("echarts/scale/Ordinal",[E,O,"./Scale"],function(t){var e=t(O),i=t("./Scale"),n=i[D],r=i[I]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[L]-1]},parse:function(t){return typeof t===S?e[c](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),n[k].call(this,t)&&null!=this._data[t]},normalize:function(t){return n.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(n.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},niceTicks:e.noop,niceExtent:e.noop});return r[P]=function(){return new r},r}),e("zrender/mixin/Draggable",[E],function(){function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}return t[D]={constructor:t,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(r,a,t),this.dispatchToElement(e,"drag",t.event);var o=this.findHover(i,n,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this.dispatchToElement(s,"dragleave",t.event),o&&o!==s&&this.dispatchToElement(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(e,"dragend",t.event),this._dropTarget&&this.dispatchToElement(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t}),e("echarts/coord/cartesian/Axis2D",[E,O,"../Axis","./axisLabelInterval"],function(t){var e=t(O),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[o]=a||x};return r[D]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[o];return"top"===t||t===x},getGlobalExtent:function(){var t=this[z]();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),t},getLabelInterval:function(){var t=this._labelInterval;return t||(t=this._labelInterval=n(this)),t},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return typeof e===h&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[l](r,i),r}),e("echarts/coord/cartesian/Cartesian",[E,O],function(t){function e(t){return this._axes[t]}var i=t(O),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[D]={constructor:n,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return i.map(this._dimList,e,this)},getAxesByScale:function(t){return t=t[C](),i.filter(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i[L];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("zrender/animation/requestAnimationFrame",[E],function(){return typeof window!==i&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)}}),e("zrender/core/event",[E,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function n(t,i,n){var r=e(t);return n=n||{},n.zrX=i.clientX-r.left,n.zrY=i.clientY-r.top,n}function r(t,e){if(e=e||window.event,null!=e.zrX)return e;var i=e.type,r=i&&i[c]("touch")>=0;if(r){var a="touchend"!=i?e.targetTouches[0]:e.changedTouches[0];a&&n(t,a,e)}else n(t,e,e),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;return e}function a(t,e,i){u?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function o(t,e,i){u?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var s=t("../mixin/Eventful"),u=typeof window!==i&&!!window.addEventListener,l=u?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{clientToLocal:n,normalizeEvent:r,addEventListener:a,removeEventListener:o,stop:l,Dispatcher:s}}),e("echarts/coord/cartesian/axisLabelInterval",[E,O,"../axisHelper"],function(t){var e=t(O),i=t("../axisHelper");return function(t){var n=t.model,r=n[T]("axisLabel"),a=r.get("interval");return"category"!==t.type||"auto"!==a?"auto"===a?0:a:i.getAxisLabelInterval(e.map(t.scale.getTicks(),t.dataToCoord,t),n.getFormattedLabels(),r[T]("textStyle").getFont(),t.isHorizontal())}}),e("echarts/coord/Axis",[E,"../util/number",O],function(t){function e(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}var i=t("../util/number"),n=i.linearMap,r=t(O),o=[0,1],s=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return s[D]={constructor:s,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this[k](this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[z](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){var r=this._extent,s=this.scale;return t=s.normalize(t),this.onBand&&s.type===a&&(r=r.slice(),e(r,s.count())),n(t,o,r,i)},coordToData:function(t,i){var r=this._extent,s=this.scale;this.onBand&&s.type===a&&(r=r.slice(),e(r,s.count()));var u=n(t,r,o,i);return this.scale.scale(u)},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),i=[],n=0;n<e[L];n++)i.push(e[n][0]);return e[n-1]&&i.push(e[n-1][1]),i}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){return r.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this[z](),e=[],i=this.scale.count(),n=t[0],r=t[1],a=r-n,o=0;i>o;o++)e.push([a*o/i+n,a*(o+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale[z](),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},s}),e("zrender/core/GestureMgr",[E,"./event"],function(t){function e(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function i(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var n=t("./event"),r=function(){this._track=[]};r[D]={constructor:r,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track[L]=0,this},_doTrack:function(t,e,i){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r[L];s>o;o++){var u=r[o],l=n.clientToLocal(i,u);a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},_recognize:function(t){for(var e in a)if(a.hasOwnProperty(e)){var i=a[e](this._track,t);if(i)return i}}};var a={pinch:function(t,n){var r=t[L];if(r){var a=(t[r-1]||{}).points,o=(t[r-2]||{}).points||a;if(o&&o[L]>1&&a&&a[L]>1){var s=e(a)/e(o);!isFinite(s)&&(s=1),n.pinchScale=s;var u=i(a);return n.pinchX=u[0],n.pinchY=u[1],{type:"pinch",target:t[0].target,event:n}}}}};return r}),e("echarts/coord/cartesian/AxisModel",[E,"../../model/Component",O,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?"category":"value")}var i=t("../../model/Component"),n=t(O),r=t("../axisModelCreator"),a=i[I]({type:"cartesian2dAxis",axis:null,init:function(){a.superApply(this,"init",arguments),this._resetRange()},mergeOption:function(){a.superApply(this,"mergeOption",arguments),this._resetRange()},restoreData:function(){a.superApply(this,"restoreData",arguments),this._resetRange()},setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},getMin:function(){var t=this.option;return null!=t.rangeStart?t.rangeStart:t.min},getMax:function(){var t=this.option;return null!=t.rangeEnd?t.rangeEnd:t.max},getNeedCrossZero:function(){var t=this.option;return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},_resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}});n.merge(a[D],t("../axisModelCommonMixin"));var o={gridIndex:0,offset:0};return r("x",a,e,o),r("y",a,e,o),a}),e("zrender/Layer",[E,"./core/util","./config","./graphic/Style","./graphic/Pattern"],function(t){function e(){return!1}function i(t,e,i,n){var r=document.createElement(e),a=i[M](),s=i[w](),u=r.style;return u[o]="absolute",u.left=0,u.top=0,u.width=a+"px",u[_]=s+"px",r.width=a*n,r[_]=s*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=t("./graphic/Style"),s=t("./graphic/Pattern"),u=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===S?s=i(t,"canvas",a,o):n[g](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var u=s.style;u&&(s.onselectstart=e,u["-webkit-user-select"]="none",u["user-select"]="none",u["-webkit-touch-callout"]="none",u["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return u[D]={constructor:u,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r.width=t+"px",r[_]=e+"px",n.width=t*i,n[_]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[_]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[_],o=this.clearColor,u=this.motionBlur&&!t,l=this.lastFrameAlpha,c=this.dpr;if(u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/c,r/c)),i.clearRect(0,0,n/c,r/c),o){var h;o.colorStops?(h=o.__canvasGradient||a.getGradient(i,o,{x:0,y:0,width:n/c,height:r/c}),o.__canvasGradient=h):o.image&&(h=s[D].getCanvasPattern.call(o,i)),i.save(),i.fillStyle=h||o,i.fillRect(0,0,n/c,r/c),i.restore()}if(u){var f=this.domBack;i.save(),i.globalAlpha=l,i.drawImage(f,0,0,n/c,r/c),i.restore()}}},u}),e("echarts/coord/axisModelCreator",[E,"./axisDefault",O,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),i=t(O),n=t("../model/Component"),r=t("../util/layout"),a=["value","category","time","log"];return function(t,o,s,u){i.each(a,function(n){o[I]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,u=o?r.getLayoutParams(e):{},l=a.getTheme();i.merge(e,l.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&r.mergeLayoutParam(e,u,o)},defaultOption:i.mergeAll([{},e[n+"Axis"],u],!0)})}),n.registerSubTypeDefaulter(t+"Axis",i.curry(s,t))}}),e("echarts/coord/axisModelCommonMixin",[E,O,"./axisHelper"],function(t){function e(t){return r[g](t)&&null!=t.value?t.value:t}function i(){return"category"===this.get("type")&&r.map(this.get("data"),e)}function n(){return a.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(O),a=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("echarts/preprocessor/helper/compatStyle",[E,O],function(t){function e(t){var e=t&&t.itemStyle;e&&i.each(n,function(n){var r=e.normal,a=e.emphasis;r&&r[n]&&(t[n]=t[n]||{},t[n].normal?i.merge(t[n].normal,r[n]):t[n].normal=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n].emphasis?i.merge(t[n].emphasis,a[n]):t[n].emphasis=a[n],a[n]=null)})}var i=t(O),n=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(t){if(t){e(t),e(t.markPoint),e(t.markLine);var n=t.data;if(n){for(var r=0;r<n[L];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[L];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var u=s.data,r=0;r<u[L];r++)i[f](u[r])?(e(u[r][0]),e(u[r][1])):e(u[r])}}}}),e("echarts/coord/axisDefault",[E,O],function(t){var e=t(O),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},n=e.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),r=e.merge({boundaryGap:[0,0],splitNumber:5},i),a=e.defaults({scale:!0,min:"dataMin",max:"dataMax"},r),o=e.defaults({},r);
+return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/component/axis/AxisView",[E,O,"../../util/graphic","./AxisBuilder","../../echarts"],function(t){function e(t,e){function i(t){var e=n.getAxis(t);return e.toGlobalCoord(e.dataToCoord(0))}var n=t.coordinateSystem,r=e.axis,a={},s=r[o],u=r.onZero?"onZero":s,l=r.dim,c=n.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c[_]],f=e.get("offset")||0,d={x:{top:h[2]-f,bottom:h[3]+f},y:{left:h[0]-f,right:h[1]+f}};d.x.onZero=Math.max(Math.min(i("y"),d.x[x]),d.x.top),d.y.onZero=Math.max(Math.min(i("x"),d.y.right),d.y.left),a[o]=["y"===l?d.y[u]:h[0],"x"===l?d.x[u]:h[3]],a.rotation=Math.PI/2*("x"===l?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],r.onZero&&(a.labelOffset=d[l][s]-d[l].onZero),e[T]("axisTick").get("inside")&&(a.tickDirection=-a.tickDirection),e[T]("axisLabel").get("inside")&&(a.labelDirection=-a.labelDirection);var m=e[T]("axisLabel").get("rotate");return a.labelRotation="top"===u?-m:m,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(O),n=t("../../util/graphic"),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,s=r.getInterval,u=["axisLine","axisLabel","axisTick","axisName"],l=["splitArea","splitLine"],c=t("../../echarts").extendComponentView({type:"axis",render:function(t,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new n.Group,this.group.add(this._axisGroup),t.get("show")){var s=a.getComponent("grid",t.get("gridIndex")),c=e(s,t),h=new r(t,c);i.each(u,h.add,h),this._axisGroup.add(h.getGroup()),i.each(l,function(e){t.get(e+".show")&&this["_"+e](t,s,c.labelInterval)},this),n.groupTransition(o,this._axisGroup,t)}},_splitLine:function(t,e,r){var o=t.axis,u=t[T]("splitLine"),l=u[T]("lineStyle"),c=l.get("color"),h=s(u,r);c=i[f](c)?c:[c];for(var d=e.coordinateSystem.getRect(),p=o.isHorizontal(),m=0,v=o.getTicksCoords(),g=o.scale.getTicks(),y=[],x=[],b=l.getLineStyle(),w=0;w<v[L];w++)if(!a(o,w,h)){var M=o.toGlobalCoord(v[w]);p?(y[0]=M,y[1]=d.y,x[0]=M,x[1]=d.y+d[_]):(y[0]=d.x,y[1]=M,x[0]=d.x+d.width,x[1]=M);var S=m++%c[L];this._axisGroup.add(new n.Line(n.subPixelOptimizeLine({anid:"line_"+g[w],shape:{x1:y[0],y1:y[1],x2:x[0],y2:x[1]},style:i.defaults({stroke:c[S]},b),silent:!0})))}},_splitArea:function(t,e,r){var o=t.axis,u=t[T]("splitArea"),l=u[T]("areaStyle"),c=l.get("color"),h=e.coordinateSystem.getRect(),d=o.getTicksCoords(),p=o.scale.getTicks(),m=o.toGlobalCoord(d[0]),v=o.toGlobalCoord(d[0]),g=0,y=s(u,r),x=l.getAreaStyle();c=i[f](c)?c:[c];for(var b=1;b<d[L];b++)if(!a(o,b,y)){var w,M,S,C,A=o.toGlobalCoord(d[b]);o.isHorizontal()?(w=m,M=h.y,S=A-w,C=h[_]):(w=h.x,M=v,S=h.width,C=A-M);var P=g++%c[L];this._axisGroup.add(new n.Rect({anid:"area_"+p[b],shape:{x:w,y:M,width:S,height:C},style:i.defaults({fill:c[P]},x),silent:!0})),m=w+S,v=M+C}}});c[I]({type:"xAxis"}),c[I]({type:"yAxis"})}),e("echarts/component/axis/AxisBuilder",[E,O,"../../util/format","../../util/graphic","../../model/Model","../../util/number",A],function(t){function e(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function i(t,e,i){var n,a,o=m(e-t.rotation);return v(o)?(a=i>0?"top":x,n=r):v(o-w)?(a=i>0?x:"top",n=r):(a="middle",n=o>0&&w>o?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,verticalAlign:a}}function s(t,e,i,n){var a,o,s=m(i-t.rotation),u=n[0]>n[1],l="start"===e&&!u||"start"!==e&&u;return v(s-w/2)?(o=l?x:"top",a=r):v(s-1.5*w)?(o=l?"top":x,a=r):(o="middle",a=1.5*w>s&&s>w/2?l?"left":"right":l?"right":"left"),{rotation:s,textAlign:a,verticalAlign:o}}function u(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}var l=t(O),c=t("../../util/format"),f=t("../../util/graphic"),d=t("../../model/Model"),p=t("../../util/number"),m=p.remRadian,v=p.isRadianAroundZero,g=t(A),y=g.applyTransform,_=l.retrieve,w=Math.PI,M=function(t,e){this.opt=e,this.axisModel=t,l.defaults(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new f.Group;var i=new f.Group({position:e[o].slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};M[D]={constructor:M,hasBuilder:function(t){return!!S[t]},add:function(t){S[t].call(this)},getGroup:function(){return this.group}};var S={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[z](),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(y(r,r,n),y(a,a,n)),this.group.add(new f.Line(f.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l[I]({lineCap:"round"},e[T]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show"))for(var e=t.axis,i=t[T]("axisTick"),n=this.opt,r=i[T]("lineStyle"),a=i.get(L),o=P(i,n.labelInterval),s=e.getTicksCoords(i.get("alignWithLabel")),u=e.scale.getTicks(),c=[],h=[],d=this._transform,p=0;p<s[L];p++)if(!C(e,p,o)){var m=s[p];c[0]=m,c[1]=0,h[0]=m,h[1]=n.tickDirection*a,d&&(y(c,c,d),y(h,h,d)),this.group.add(new f.Line(f.subPixelOptimizeLine({anid:"tick_"+u[p],shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:l.defaults(r.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),z2:2,silent:!0})))}},axisLabel:function(){function t(t,e){var i=t&&t[n]().clone(),r=e&&e[n]().clone();return i&&r?(i.applyTransform(t.getLocalTransform()),r.applyTransform(e.getLocalTransform()),i.intersect(r)):void 0}var r=this.opt,a=this.axisModel,o=_(r.axisLabelShow,a.get("axisLabel.show"));if(o){var s=a.axis,l=a[T]("axisLabel"),c=l[T]("textStyle"),p=l.get("margin"),m=s.scale.getTicks(),v=a.getFormattedLabels(),g=_(r.labelRotation,l.get("rotate"))||0;g=g*w/180;for(var y=i(r,g,r.labelDirection),x=a.get("data"),M=[],S=u(a),A=a.get("triggerEvent"),P=0;P<m[L];P++)if(!C(s,P,r.labelInterval)){var k=c;x&&x[P]&&x[P].textStyle&&(k=new d(x[P].textStyle,c,a.ecModel));var z=k.getTextColor()||a.get("axisLine.lineStyle.color"),I=s.dataToCoord(m[P]),D=[I,r.labelOffset+r.labelDirection*p],O=s.scale.getLabel(m[P]),E=new f.Text({anid:"label_"+m[P],style:{text:v[P],textAlign:k.get("align",!0)||y.textAlign,textVerticalAlign:k.get("baseline",!0)||y.verticalAlign,textFont:k.getFont(),fill:typeof z===h?z(O):z},position:D,rotation:y.rotation,silent:S,z2:10});A&&(E.eventData=e(a),E.eventData.targetType="axisLabel",E.eventData.value=O),this._dumbGroup.add(E),E.updateTransform(),M.push(E),this.group.add(E),E.decomposeTransform()}if("category"!==s.type){if(a.getMin?a.getMin():a.get("min")){var R=M[0],B=M[1];t(R,B)&&(R[b]=!0)}if(a.getMax?a.getMax():a.get("max")){var N=M[M[L]-1],F=M[M[L]-2];t(F,N)&&(N[b]=!0)}}}},axisName:function(){var t=this.opt,n=this.axisModel,r=_(t.axisName,n.get("name"));if(r){var a,o=n.get("nameLocation"),h=t.nameDirection,d=n[T]("nameTextStyle"),p=n.get("nameGap")||0,m=this.axisModel.axis[z](),v=m[0]>m[1]?-1:1,g=["start"===o?m[0]-v*p:"end"===o?m[1]+v*p:(m[0]+m[1])/2,"middle"===o?t.labelOffset+h*p:0],y=n.get("nameRotate");null!=y&&(y=y*w/180);var x;"middle"===o?a=i(t,null!=y?y:t.rotation,h):(a=s(t,o,y||0,m),x=t.axisNameAvailableWidth,null!=x&&(x=Math.abs(x/Math.sin(a.rotation)),!isFinite(x)&&(x=null)));var b=d.getFont(),M=n.get("nameTruncate",!0)||{},S=M.ellipsis,C=_(M.maxWidth,x),A=null!=S&&null!=C?c.truncateText(r,C,b,S,{minChar:2,placeholder:M.placeholder}):r,L=n.get("tooltip",!0),P=n.mainType,k={componentType:P,name:r,$vars:["name"]};k[P+"Index"]=n.componentIndex;var D=new f.Text({anid:"name",__fullText:r,__truncatedText:A,style:{text:A,textFont:b,fill:d.getTextColor()||n.get("axisLine.lineStyle.color"),textAlign:a.textAlign,textVerticalAlign:a.verticalAlign},position:g,rotation:a.rotation,silent:u(n),z2:1,tooltip:L&&L.show?l[I]({content:r,formatter:function(){return r},formatterParams:k},L):null});n.get("triggerEvent")&&(D.eventData=e(n),D.eventData.targetType="axisName",D.eventData.name=r),this._dumbGroup.add(D),D.updateTransform(),this.group.add(D),D.decomposeTransform()}}},C=M.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===a&&(typeof i===h?(n=r.getTicks()[e],!i(n,r.getLabel(n))):e%(i+1))},P=M.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return M}),e("echarts/data/DataDiffer",[E],function(){function t(t){return t}function e(e,i,n,r){this._old=e,this._new=i,this._oldKeyGetter=n||t,this._newKeyGetter=r||t}function i(t,e,i,n){for(var r=0;r<t[L];r++){var a=n(t[r],r),o=e[a];null==o?(i.push(a),e[a]=r):(o[L]||(e[a]=o=[o]),o.push(r))}}return e[D]={constructor:e,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,n=this._new,r=this._oldKeyGetter,a=this._newKeyGetter,o={},s={},u=[],l=[];for(i(e,o,u,r),i(n,s,l,a),t=0;t<e[L];t++){var c=u[t],h=s[c];if(null!=h){var f=h[L];f?(1===f&&(s[c]=null),h=h.unshift()):s[c]=null,this._update&&this._update(h,t)}else this._remove&&this._remove(t)}for(var t=0;t<l[L];t++){var c=l[t];if(s.hasOwnProperty(c)){var h=s[c];if(null==h)continue;if(h[L])for(var d=0,f=h[L];f>d;d++)this._add&&this._add(h[d]);else this._add&&this._add(h)}}}},e}),e("echarts/chart/helper/createListFromArray",[E,"../../data/List","../../data/helper/completeDimensions",O,"../../util/model","../../CoordinateSystem"],function(t){function e(t){for(var e=0;e<t[L]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!h[f](m(i))}function n(t,e,n){t=t||[];var r=e.get("coordinateSystem"),a=g[r],o=p.get(r),f=a&&a(t,e,n),y=f&&f.dimensions;y||(y=o&&o.dimensions||["x","y"],y=l(y,t,y.concat(["value"])));var _=f?f.categoryIndex:-1,x=new u(y,e),b=s(f,t),w={},M=_>=0&&i(t)?function(t,e,i,n){return d.isDataItemOption(t)&&(x.hasItemOption=!0),n===_?i:v(m(t),y[n])}:function(t,e,i,n){var r=m(t),a=v(r&&r[n],y[n]);d.isDataItemOption(t)&&(x.hasItemOption=!0);var o=f&&f.categoryAxesModels;return o&&o[e]&&typeof a===S&&(w[e]=w[e]||o[e].getCategories(),a=h[c](w[e],a),0>a&&!isNaN(a)&&(a=+a)),a};return x.hasItemOption=!1,x.initData(t,b,M),x}function r(t){return"category"!==t&&"time"!==t}function o(t){return"category"===t?a:"time"===t?"time":"float"}function s(t,e){var i,n=[],r=t&&t.dimensions[t.categoryIndex];if(r&&(i=t.categoryAxesModels[r.name]),i){var a=i.getCategories();if(a){var o=e[L];if(h[f](e[0])&&e[0][L]>1){n=[];for(var s=0;o>s;s++)n[s]=a[e[s][t.categoryIndex||0]]}else n=a.slice(0)}}return n}var u=t("../../data/List"),l=t("../../data/helper/completeDimensions"),h=t(O),d=t("../../util/model"),p=t("../../CoordinateSystem"),m=d.getDataItemValue,v=d.converDataValue,g={cartesian2d:function(t,e,i){var n=i.getComponent("xAxis",e.get("xAxisIndex")),a=i.getComponent("yAxis",e.get("yAxisIndex")),s=n.get("type"),u=a.get("type"),c=[{name:"x",type:o(s),stackable:r(s)},{name:"y",type:o(u),stackable:r(u)}],h="category"===s,f="category"===u;l(c,t,["x","y","z"]);var d={};return h&&(d.x=n),f&&(d.y=a),{dimensions:c,categoryIndex:h?0:f?1:-1,categoryAxesModels:d}},polar:function(t,e,i){var n=e.get("polarIndex")||0,a=function(t){return t.get("polarIndex")===n},s=i.findComponents({mainType:"angleAxis",filter:a})[0],u=i.findComponents({mainType:"radiusAxis",filter:a})[0],c=u.get("type"),h=s.get("type"),f=[{name:"radius",type:o(c),stackable:r(c)},{name:"angle",type:o(h),stackable:r(h)}],d="category"===h,p="category"===c;l(f,t,["radius","angle","value"]);var m={};return p&&(m.radius=u),d&&(m.angle=s),{dimensions:f,categoryIndex:d?1:p?0:-1,categoryAxesModels:m}},geo:function(t){return{dimensions:l([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("echarts/data/helper/completeDimensions",[E,O],function(t){function e(t,e,a,o){if(!e)return t;var s=i(e[0]),u=n[f](s)&&s[L]||1;a=a||[],o=o||"extra";for(var l=0;u>l;l++)if(!t[l]){var c=a[l]||o+(l-a[L]);t[l]=r(e,l)?{type:"ordinal",name:c}:c}return t}function i(t){return n[f](t)?t:n[g](t)?t.value:t}var n=t(O),r=e.guessOrdinal=function(t,e){for(var r=0,a=t[L];a>r;r++){var o=i(t[r]);if(!n[f](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(n.isString(o)&&"-"!==o)return!0}return!1};return e}),e("echarts/chart/helper/Symbol",[E,O,"../../util/symbol","../../util/graphic","../../util/number"],function(t){function e(t){return t instanceof Array||(t=[+t,+t]),t}function i(t,e,i){c.Group.call(this),this.updateData(t,e,i)}function n(t,e){this.parent.drift(t,e)}var r=t(O),s=t("../../util/symbol"),c=t("../../util/graphic"),h=t("../../util/number"),f=i[D];f._createSymbol=function(t,i,r){this.removeAll();var a=i.hostModel,o=i.getItemVisual(r,"color"),u=s.createSymbol(t,-.5,-.5,1,1,o);u.attr({z2:100,culling:!0,scale:[0,0]}),u.drift=n;var l=e(i.getItemVisual(r,"symbolSize"));c.initProps(u,{scale:l},a,r),this._symbolType=t,this.add(u)},f.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},f.getScale=function(){return this.childAt(0).scale},f.highlight=function(){this.childAt(0).trigger("emphasis")},f.downplay=function(){this.childAt(0).trigger("normal")},f.setZ=function(t,e){var i=this.childAt(0);i[p]=t,i.z=e},f.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},f.updateData=function(t,i,n){this.silent=!1;var r=t.getItemVisual(i,"symbol")||"circle",a=t.hostModel,o=e(t.getItemVisual(i,"symbolSize"));if(r!==this._symbolType)this._createSymbol(r,t,i);else{var s=this.childAt(0);c.updateProps(s,{scale:o},a,i)}this._updateCommon(t,i,o,n),this._seriesModel=a};var d=["itemStyle","normal"],v=["itemStyle","emphasis"],g=["label","normal"],y=["label","emphasis"];return f._updateCommon=function(t,i,n,s){var l=this.childAt(0),f=t.hostModel,p=t.getItemVisual(i,"color");"image"!==l.type&&l.useStyle({strokeNoScale:!0}),s=s||null;var m=s&&s.itemStyle,_=s&&s.hoverItemStyle,x=s&&s.symbolRotate,b=s&&s.symbolOffset,w=s&&s.labelModel,M=s&&s.hoverLabelModel,S=s&&s.hoverAnimation;if(!s||t.hasItemOption){var C=t.getItemModel(i);m=C[T](d).getItemStyle(["color"]),_=C[T](v).getItemStyle(),x=C[u]("symbolRotate"),b=C[u]("symbolOffset"),w=C[T](g),M=C[T](y),S=C[u]("hoverAnimation")}else _=r[I]({},_);var A=l.style;l.rotation=(x||0)*Math.PI/180||0,b&&l.attr(o,[h.parsePercent(b[0],n[0]),h.parsePercent(b[1],n[1])]),l.setColor(p),l.setStyle(m);var P=t.getItemVisual(i,"opacity");null!=P&&(A.opacity=P);for(var k,z,D=t.dimensions.slice();D[L]&&(k=D.pop(),z=t.getDimensionInfo(k).type,z===a||"time"===z););null!=k&&w[u]("show")?(c.setText(A,w,p),A.text=r.retrieve(f.getFormattedLabel(i,"normal"),t.get(k,i))):A.text="",null!=k&&M[u]("show")?(c.setText(_,M,p),_.text=r.retrieve(f.getFormattedLabel(i,"emphasis"),t.get(k,i))):_.text="";var O=e(t.getItemVisual(i,"symbolSize"));if(l.off("mouseover").off("mouseout").off("emphasis").off("normal"),c.setHoverStyle(l,_),S&&f.ifEnableAnimation()){var E=function(){var t=O[1]/O[0];this.animateTo({scale:[Math.max(1.1*O[0],O[0]+3),Math.max(1.1*O[1],O[1]+3*t)]},400,"elasticOut")},R=function(){this.animateTo({scale:O},400,"elasticOut")};l.on("mouseover",E).on("mouseout",R).on("emphasis",E).on("normal",R)}},f.fadeOut=function(t){var e=this.childAt(0);this.silent=!0,e.style.text="",c.updateProps(e,{scale:[0,0]},this._seriesModel,this[m],t)},r[l](i,c.Group),i}),e("echarts/chart/helper/SymbolDraw",[E,"../../util/graphic","./Symbol"],function(t){function e(t){this.group=new n.Group,this._symbolCtor=t||r}function i(t,e,i){var n=t.getItemLayout(e);return!(!n||isNaN(n[0])||isNaN(n[1])||i&&i(e)||"none"===t.getItemVisual(e,"symbol"))}var n=t("../../util/graphic"),r=t("./Symbol"),a=e[D];return a.updateData=function(t,e){var r=this.group,a=t.hostModel,s=this._data,u=this._symbolCtor,l={itemStyle:a[T]("itemStyle.normal").getItemStyle(["color"]),hoverItemStyle:a[T]("itemStyle.emphasis").getItemStyle(),symbolRotate:a.get("symbolRotate"),symbolOffset:a.get("symbolOffset"),hoverAnimation:a.get("hoverAnimation"),labelModel:a[T]("label.normal"),hoverLabelModel:a[T]("label.emphasis")};t.diff(s).add(function(n){var a=t.getItemLayout(n);if(i(t,n,e)){var s=new u(t,n,l);s.attr(o,a),t.setItemGraphicEl(n,s),r.add(s)}}).update(function(c,h){var f=s.getItemGraphicEl(h),d=t.getItemLayout(c);return i(t,c,e)?(f?(f.updateData(t,c,l),n.updateProps(f,{position:d},a)):(f=new u(t,c),f.attr(o,d)),r.add(f),void t.setItemGraphicEl(c,f)):void r.remove(f)}).remove(function(t){var e=s.getItemGraphicEl(t);e&&e.fadeOut(function(){r.remove(e)})}).execute(),this._data=t},a.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){var n=t.getItemLayout(i);e.attr(o,n)})},a.remove=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll())},e}),e("echarts/chart/line/lineAnimationDiff",[E],function(){function t(t){return t>=0?1:-1}function e(e,i,n){for(var r,a=e.getBaseAxis(),o=e.getOtherAxis(a),s=a.onZero?0:o.scale[z]()[0],u=o.dim,l="x"===u||"radius"===u?1:0,c=i.stackedOn,h=i.get(u,n);c&&t(c.get(u,n))===t(h);){r=c;break}var f=[];return f[l]=i.get(a.dim,n),f[1-l]=r?r.get(u,n,!0):s,e.dataToPoint(f)}function i(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}return function(t,n,r,a,o,s){for(var u=i(t,n),l=[],c=[],h=[],f=[],d=[],p=[],m=[],v=s.dimensions,g=0;g<u[L];g++){var y=u[g],_=!0;switch(y.cmd){case"=":var x=t.getItemLayout(y.idx),b=n.getItemLayout(y.idx1);(isNaN(x[0])||isNaN(x[1]))&&(x=b.slice()),l.push(x),c.push(b),h.push(r[y.idx]),f.push(a[y.idx1]),m.push(n.getRawIndex(y.idx1));break;case"+":var w=y.idx;l.push(o.dataToPoint([n.get(v[0],w,!0),n.get(v[1],w,!0)])),c.push(n.getItemLayout(w).slice()),h.push(e(o,n,w)),f.push(a[w]),m.push(n.getRawIndex(w));break;case"-":var w=y.idx,M=t.getRawIndex(w);M!==w?(l.push(t.getItemLayout(w)),c.push(s.dataToPoint([t.get(v[0],w,!0),t.get(v[1],w,!0)])),h.push(r[w]),f.push(e(s,t,w)),m.push(M)):_=!1}_&&(d.push(y),p.push(p[L]))}p.sort(function(t,e){return m[t]-m[e]});for(var T=[],S=[],C=[],A=[],P=[],g=0;g<p[L];g++){var w=p[g];T[g]=l[w],S[g]=c[w],C[g]=h[w],A[g]=f[w],P[g]=d[w]}return{current:T,next:S,stackedOnCurrent:C,stackedOnNext:A,status:P}}}),e("echarts/chart/line/poly",[E,"zrender/graphic/Path",A],function(t){function e(t){return isNaN(t[0])||isNaN(t[1])}function i(t,i,n,r,d,p,m,v,g,y,_){for(var x=0,b=n,w=0;r>w;w++){var M=i[b];if(b>=d||0>b)break;if(e(M)){if(_){b+=p;continue}break}if(b===n)t[p>0?"moveTo":"lineTo"](M[0],M[1]),l(h,M);else if(g>0){var T=b+p,S=i[T];if(_)for(;S&&e(i[T]);)T+=p,S=i[T];var C=.5,A=i[x],S=i[T];if(!S||e(S))l(f,M);else{e(S)&&!_&&(S=M),a.sub(c,S,A);var L,P;if("x"===y||"y"===y){var k="x"===y?0:1;L=Math.abs(M[k]-A[k]),P=Math.abs(M[k]-S[k])}else L=a.dist(M,A),P=a.dist(M,S);C=P/(P+L),u(f,M,c,-g*(1-C))}o(h,h,v),s(h,h,m),o(f,f,v),s(f,f,m),t.bezierCurveTo(h[0],h[1],f[0],f[1],M[0],M[1]),u(h,M,c,g*C)}else t.lineTo(M[0],M[1]);x=b,b+=p}return w}function n(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;r<t[L];r++){var a=t[r];a[0]<i[0]&&(i[0]=a[0]),a[1]<i[1]&&(i[1]=a[1]),a[0]>n[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}var r=t("zrender/graphic/Path"),a=t(A),o=a.min,s=a.max,u=a.scaleAndAdd,l=a.copy,c=[],h=[],f=[];return{Polyline:r[I]({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(t,r){var a=r.points,o=0,s=a[L],u=n(a,r.smoothConstraint);if(r.connectNulls){for(;s>0&&e(a[s-1]);s--);for(;s>o&&e(a[o]);o++);}for(;s>o;)o+=i(t,a,o,s,s,1,u.min,u.max,r.smooth,r.smoothMonotone,r.connectNulls)+1}}),Polygon:r[I]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},buildPath:function(t,r){var a=r.points,o=r.stackedOnPoints,s=0,u=a[L],l=r.smoothMonotone,c=n(a,r.smoothConstraint),h=n(o,r.smoothConstraint);if(r.connectNulls){for(;u>0&&e(a[u-1]);u--);for(;u>s&&e(a[s]);s++);}for(;u>s;){var f=i(t,a,s,u,u,1,c.min,c.max,r.smooth,l,r.connectNulls);i(t,o,s+f-1,f,u,-1,h.min,h.max,r.stackedOnSmooth,l,r.connectNulls),s+=f+1,t.closePath()}}})}}),e("echarts/util/symbol",[E,"./graphic","zrender/core/BoundingRect"],function(t){var e=t("./graphic"),i=t("zrender/core/BoundingRect"),n=e.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[_]/2;t.moveTo(i,n-a),t.lineTo(i+r,n+a),t.lineTo(i-r,n+a),t.closePath()}}),a=e.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[_]/2;t.moveTo(i,n-a),t.lineTo(i+r,n),t.lineTo(i,n+a),t.lineTo(i-r,n),t.closePath()}}),o=e.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=Math.max(r,e[_]),o=r/2,s=o*o/(a-o),u=n-a+o+s,l=Math.asin(s/o),c=Math.cos(l)*o,h=Math.sin(l),f=Math.cos(l);t.arc(i,u,o,Math.PI-l,2*Math.PI+l);var d=.6*o,p=.7*o;t.bezierCurveTo(i+c-h*d,u+s+f*d,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+h*d,u+s+f*d,i-c,u+s),t.closePath()}}),s=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e[_],n=e.width,r=e.x,a=e.y,o=n/3*2;t.moveTo(r,a),t.lineTo(r+o,a+i),t.lineTo(r,a+i/4*3),t.lineTo(r-o,a+i),t.lineTo(r,a),t.closePath()}}),u={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:a,pin:o,arrow:s,triangle:n},l={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[_]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[_]=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r[_]=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[_]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[_]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[_]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[_]=n}},h={};for(var f in u)h[f]=new u[f];var d=e.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign=r,t.textVerticalAlign="middle")},buildPath:function(t,e,i){var n=e.symbolType,r=h[n];"none"!==e.symbolType&&(r||(n="rect",r=h[n]),l[n](e.x,e.y,e.width,e[_],r.shape),r.buildPath(t,r.shape,i))}}),p=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e.stroke=t:this.__isEmptyBrush?(e.stroke=t,e.fill="#fff"):(e.fill&&(e.fill=t),e.stroke&&(e.stroke=t)),this.dirty(!1)}},m={createSymbol:function(t,n,r,a,o,s){var u=0===t[c]("empty");u&&(t=t.substr(5,1)[C]()+t.substr(6));var l;return l=0===t[c]("image://")?new e.Image({style:{image:t.slice(8),x:n,y:r,width:a,height:o}}):0===t[c]("path://")?e.makePath(t.slice(7),{},new i(n,r,a,o)):new d({shape:{symbolType:t,x:n,y:r,width:a,height:o}}),l.__isEmptyBrush=u,l.setColor=p,l.setColor(s),l}};return m}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var R=t("echarts");return R.graphic=t("echarts/util/graphic"),R.number=t("echarts/util/number"),R.format=t("echarts/util/format"),t("echarts/chart/line"),t("echarts/component/grid"),R});<?php
+exit();
+endif;
+?><?php
+if (!empty($_GET["file"]) && $_GET["file"] == "static/js/jquery.jsontotable.min.js"):
+header("Content-type: text/javascript");?>/*! jQuery JSON to Table - v1.1.3 - 2014-10-11
+* https://github.com/jongha/jquery-jsontotable
+* Copyright (c) 2014 Jong-Ha Ahn; Licensed MIT */
+!function(a){a.jsontotable=function(b,c){var d=a.extend({id:null,header:!0,className:null},c);c=a.extend(d,c);var e=b;if("string"==typeof e&&(e=a.parseJSON(e)),c.id&&e.length){var f,g,h=a("<table></table>");c.className&&h.addClass(c.className),a.fn.appendTr=function(b,c){var d,e,f,h,i,j=c?"thead":"tbody",k=c?"th":"td";if(a.isPlainObject(b)&&b._data){g="<tr";for(d in b)"_data"!==d&&(g+=" "+d+'="'+b[d]+'"');g+="></tr>",b=b._data}else g="<tr></tr>";g=a(g);for(e in b)if(f=b[e],"function"!=typeof f){if(h="",a.isPlainObject(f)&&f._data){h="<"+k;for(i in f)"_data"!==i&&(h+=" "+i+'="'+f[i]+'"');f=f._data,h+=">"+f+"</"+k+">"}else h="<"+k+">"+f+"</"+k+">";g.append(h)}if(c)a(this).append(a("<"+j+"></"+j+">").append(g));else{var l=a(this).find("tbody");0===l.length&&(l=a(this).append("<tbody></tbody>")),l.append(g)}return this};var i=function(a){if(null==a||"object"!=typeof a)return a;var b=a.constructor();for(var c in a)a.hasOwnProperty(c)&&(b[c]=i(a[c]));return b},j=!1,k={},l=null;if(c.header){if(k=i(e[0]._data?e[0]._data:e[0]),"[object Object]"===k.toString()){j=!0;for(l in k)k[l]=l}h.appendTr(k,!0)}for(f=c.header?1:0;f<e.length;f++)if(j&&k){var m={};for(l in k)m[l]=e[f]&&null!=e[f][l]?e[f][l]:"";h.appendTr(m,!1)}else h.appendTr(e[f],!1);a(c.id).append(h)}return this}}(jQuery);<?php
+exit();
+endif;
+?><?php
+if (!empty($_GET["file"]) && $_GET["file"] == "static/js/jquery.min.js"):
+header("Content-type: text/javascript");?>/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
+//@ sourceMappingURL=jquery.min.map
+*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return new b.fn.init(e,t,r)},x=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^[\],:{}\s]*$/,E=/(?:^|:|,)(?:\s*\[)+/g,S=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,A=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,j=/^-ms-/,D=/-([\da-z])/gi,L=function(e,t){return t.toUpperCase()},H=function(e){(o.addEventListener||"load"===e.type||"complete"===o.readyState)&&(q(),b.ready())},q=function(){o.addEventListener?(o.removeEventListener("DOMContentLoaded",H,!1),e.removeEventListener("load",H,!1)):(o.detachEvent("onreadystatechange",H),e.detachEvent("onload",H))};b.fn=b.prototype={jquery:p,constructor:b,init:function(e,n,r){var i,a;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof b?n[0]:n,b.merge(this,b.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:o,!0)),C.test(i[1])&&b.isPlainObject(n))for(i in n)b.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(a=o.getElementById(i[2]),a&&a.parentNode){if(a.id!==i[2])return r.find(e);this.length=1,this[0]=a}return this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):b.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),b.makeArray(e,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return h.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return b.each(this,e,t)},ready:function(e){return b.ready.promise().done(e),this},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(b.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:[].sort,splice:[].splice},b.fn.init.prototype=b.fn,b.extend=b.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"==typeof s||b.isFunction(s)||(s={}),l===u&&(s=this,--u);l>u;u++)if(null!=(o=arguments[u]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(b.isPlainObject(r)||(n=b.isArray(r)))?(n?(n=!1,a=e&&b.isArray(e)?e:[]):a=e&&b.isPlainObject(e)?e:{},s[i]=b.extend(c,a,r)):r!==t&&(s[i]=r));return s},b.extend({noConflict:function(t){return e.$===b&&(e.$=u),t&&e.jQuery===b&&(e.jQuery=s),b},isReady:!1,readyWait:1,holdReady:function(e){e?b.readyWait++:b.ready(!0)},ready:function(e){if(e===!0?!--b.readyWait:!b.isReady){if(!o.body)return setTimeout(b.ready);b.isReady=!0,e!==!0&&--b.readyWait>0||(n.resolveWith(o,[b]),b.fn.trigger&&b(o).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===b.type(e)},isArray:Array.isArray||function(e){return"array"===b.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==b.type(e)||e.nodeType||b.isWindow(e))return!1;try{if(e.constructor&&!y.call(e,"constructor")&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||y.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=b.buildFragment([e],t,i),i&&b(i).remove(),b.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=b.trim(n),n&&k.test(n.replace(S,"@").replace(A,"]").replace(E,"")))?Function("return "+n)():(b.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&b.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(j,"ms-").replace(D,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:v&&!v.call("\ufeff\u00a0")?function(e){return null==e?"":v.call(e)}:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?b.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(g)return g.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return f.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),b.isFunction(e)?(r=h.call(arguments,2),i=function(){return e.apply(n||this,r.concat(h.call(arguments)))},i.guid=e.guid=e.guid||b.guid++,i):t},access:function(e,n,r,i,o,a,s){var u=0,l=e.length,c=null==r;if("object"===b.type(r)){o=!0;for(u in r)b.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,b.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(b(e),n)})),n))for(;l>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?n(e[0],r):a},now:function(){return(new Date).getTime()}}),b.ready.promise=function(t){if(!n)if(n=b.Deferred(),"complete"===o.readyState)setTimeout(b.ready);else if(o.addEventListener)o.addEventListener("DOMContentLoaded",H,!1),e.addEventListener("load",H,!1);else{o.attachEvent("onreadystatechange",H),e.attachEvent("onload",H);var r=!1;try{r=null==e.frameElement&&o.documentElement}catch(i){}r&&r.doScroll&&function a(){if(!b.isReady){try{r.doScroll("left")}catch(e){return setTimeout(a,50)}q(),b.ready()}}()}return n.promise(t)},b.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=b.type(e);return b.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=b(o);var _={};function F(e){var t=_[e]={};return b.each(e.match(w)||[],function(e,n){t[n]=!0}),t}b.Callbacks=function(e){e="string"==typeof e?_[e]||F(e):b.extend({},e);var n,r,i,o,a,s,u=[],l=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&o>a;a++)if(u[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,u&&(l?l.length&&c(l.shift()):r?u=[]:p.disable())},p={add:function(){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this},remove:function(){return u&&b.each(arguments,function(e,t){var r;while((r=b.inArray(t,u,r))>-1)u.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?b.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],this},disable:function(){return u=l=r=t,this},disabled:function(){return!u},lock:function(){return l=t,r||p.disable(),this},locked:function(){return!l},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!u||i&&!l||(n?l.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},b.extend({Deferred:function(e){var t=[["resolve","done",b.Callbacks("once memory"),"resolved"],["reject","fail",b.Callbacks("once memory"),"rejected"],["notify","progress",b.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return b.Deferred(function(n){b.each(t,function(t,o){var a=o[0],s=b.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&b.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?b.extend(e,r):r}},i={};return r.pipe=r.then,b.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=h.call(arguments),r=n.length,i=1!==r||e&&b.isFunction(e.promise)?r:0,o=1===i?e:b.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?h.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,u,l;if(r>1)for(s=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&b.isFunction(n[t].promise)?n[t].promise().done(a(t,l,n)).fail(o.reject).progress(a(t,u,s)):--i;return i||o.resolveWith(l,n),o.promise()}}),b.support=function(){var t,n,r,a,s,u,l,c,p,f,d=o.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*"),r=d.getElementsByTagName("a")[0],!n||!r||!n.length)return{};s=o.createElement("select"),l=s.appendChild(o.createElement("option")),a=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={getSetAttribute:"t"!==d.className,leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:!!a.value,optSelected:l.selected,enctype:!!o.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==o.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===o.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!l.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}a=o.createElement("input"),a.setAttribute("value",""),t.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","t"),a.setAttribute("name","t"),u=o.createDocumentFragment(),u.appendChild(a),t.appendChecked=a.checked,t.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;return d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip,b(function(){var n,r,a,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",u=o.getElementsByTagName("body")[0];u&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",u.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",a=d.getElementsByTagName("td"),a[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===a[0].offsetHeight,a[0].style.display="",a[1].style.display="none",t.reliableHiddenOffsets=p&&0===a[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===d.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==u.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(o.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(u.style.zoom=1)),u.removeChild(n),n=d=a=r=null)}),n=s=u=l=r=a=null,t}();var O=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,B=/([A-Z])/g;function P(e,n,r,i){if(b.acceptData(e)){var o,a,s=b.expando,u="string"==typeof n,l=e.nodeType,p=l?b.cache:e,f=l?e[s]:e[s]&&s;if(f&&p[f]&&(i||p[f].data)||!u||r!==t)return f||(l?e[s]=f=c.pop()||b.guid++:f=s),p[f]||(p[f]={},l||(p[f].toJSON=b.noop)),("object"==typeof n||"function"==typeof n)&&(i?p[f]=b.extend(p[f],n):p[f].data=b.extend(p[f].data,n)),o=p[f],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[b.camelCase(n)]=r),u?(a=o[n],null==a&&(a=o[b.camelCase(n)])):a=o,a}}function R(e,t,n){if(b.acceptData(e)){var r,i,o,a=e.nodeType,s=a?b.cache:e,u=a?e[b.expando]:b.expando;if(s[u]){if(t&&(o=n?s[u]:s[u].data)){b.isArray(t)?t=t.concat(b.map(t,b.camelCase)):t in o?t=[t]:(t=b.camelCase(t),t=t in o?[t]:t.split(" "));for(r=0,i=t.length;i>r;r++)delete o[t[r]];if(!(n?$:b.isEmptyObject)(o))return}(n||(delete s[u].data,$(s[u])))&&(a?b.cleanData([e],!0):b.support.deleteExpando||s!=s.window?delete s[u]:s[u]=null)}}}b.extend({cache:{},expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?b.cache[e[b.expando]]:e[b.expando],!!e&&!$(e)},data:function(e,t,n){return P(e,t,n)},removeData:function(e,t){return R(e,t)},_data:function(e,t,n){return P(e,t,n,!0)},_removeData:function(e,t){return R(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&b.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),b.fn.extend({data:function(e,n){var r,i,o=this[0],a=0,s=null;if(e===t){if(this.length&&(s=b.data(o),1===o.nodeType&&!b._data(o,"parsedAttrs"))){for(r=o.attributes;r.length>a;a++)i=r[a].name,i.indexOf("data-")||(i=b.camelCase(i.slice(5)),W(o,i,s[i]));b._data(o,"parsedAttrs",!0)}return s}return"object"==typeof e?this.each(function(){b.data(this,e)}):b.access(this,function(n){return n===t?o?W(o,e,b.data(o,e)):null:(this.each(function(){b.data(this,e,n)}),t)},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function W(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(B,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:O.test(r)?b.parseJSON(r):r}catch(o){}b.data(e,n,r)}else r=t}return r}function $(e){var t;for(t in e)if(("data"!==t||!b.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}b.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=b._data(e,n),r&&(!i||b.isArray(r)?i=b._data(e,n,b.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t),a=function(){b.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),o.cur=i,i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return b._data(e,n)||b._data(e,n,{empty:b.Callbacks("once memory").add(function(){b._removeData(e,t+"queue"),b._removeData(e,n)})})}}),b.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?b.queue(this[0],e):n===t?this:this.each(function(){var t=b.queue(this,e,n);b._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(e,t){return e=b.fx?b.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=b.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=b._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var I,z,X=/[\t\r\n]/g,U=/\r/g,V=/^(?:input|select|textarea|button|object)$/i,Y=/^(?:a|area)$/i,J=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,G=/^(?:checked|selected)$/i,Q=b.support.getSetAttribute,K=b.support.input;b.fn.extend({attr:function(e,t){return b.access(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,t){return b.access(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return e=b.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,u="string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=b.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?b.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return b.isFunction(e)?this.each(function(n){b(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var o,a=0,s=b(this),u=t,l=e.match(w)||[];while(o=l[a++])u=r?u:!s.hasClass(o),s[u?"addClass":"removeClass"](o)}else(n===i||"boolean"===n)&&(this.className&&b._data(this,"__className__",this.className),this.className=this.className||e===!1?"":b._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(X," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=b.isFunction(e),this.each(function(n){var o,a=b(this);1===this.nodeType&&(o=i?e.call(this,n,a.val()):e,null==o?o="":"number"==typeof o?o+="":b.isArray(o)&&(o=b.map(o,function(e){return null==e?"":e+""})),r=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=b.valHooks[o.type]||b.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(U,""):null==n?"":n)}}}),b.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;for(;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(b.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&b.nodeName(n.parentNode,"optgroup"))){if(t=b(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n=b.makeArray(t);return b(e).find("option").each(function(){this.selected=b.inArray(b(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attr:function(e,n,r){var o,a,s,u=e.nodeType;if(e&&3!==u&&8!==u&&2!==u)return typeof e.getAttribute===i?b.prop(e,n,r):(a=1!==u||!b.isXMLDoc(e),a&&(n=n.toLowerCase(),o=b.attrHooks[n]||(J.test(n)?z:I)),r===t?o&&a&&"get"in o&&null!==(s=o.get(e,n))?s:(typeof e.getAttribute!==i&&(s=e.getAttribute(n)),null==s?t:s):null!==r?o&&a&&"set"in o&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r):(b.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=b.propFix[n]||n,J.test(n)?!Q&&G.test(n)?e[b.camelCase("default-"+n)]=e[r]=!1:e[r]=!1:b.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!b.support.radioValue&&"radio"===t&&b.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!b.isXMLDoc(e),a&&(n=b.propFix[n]||n,o=b.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):V.test(e.nodeName)||Y.test(e.nodeName)&&e.href?0:t}}}}),z={get:function(e,n){var r=b.prop(e,n),i="boolean"==typeof r&&e.getAttribute(n),o="boolean"==typeof r?K&&Q?null!=i:G.test(n)?e[b.camelCase("default-"+n)]:!!i:e.getAttributeNode(n);return o&&o.value!==!1?n.toLowerCase():t},set:function(e,t,n){return t===!1?b.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&b.propFix[n]||n,n):e[b.camelCase("default-"+n)]=e[n]=!0,n}},K&&Q||(b.attrHooks.value={get:function(e,n){var r=e.getAttributeNode(n);return b.nodeName(e,"input")?e.defaultValue:r&&r.specified?r.value:t},set:function(e,n,r){return b.nodeName(e,"input")?(e.defaultValue=n,t):I&&I.set(e,n,r)}}),Q||(I=b.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&("id"===n||"name"===n||"coords"===n?""!==r.value:r.specified)?r.value:t},set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},b.attrHooks.contenteditable={get:I.get,set:function(e,t,n){I.set(e,""===t?!1:t,n)}},b.each(["width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}})})),b.support.hrefNormalized||(b.each(["href","src","width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return null==r?t:r}})}),b.each(["href","src"],function(e,t){b.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),b.support.style||(b.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),b.support.optSelected||(b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),b.support.enctype||(b.propFix.enctype="encoding"),b.support.checkOn||b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,n){return b.isArray(n)?e.checked=b.inArray(b(e).val(),n)>=0:t}})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}b.event={global:{},add:function(e,n,r,o,a){var s,u,l,c,p,f,d,h,g,m,y,v=b._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=b.guid++),(u=v.events)||(u=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof b===i||e&&b.event.triggered===e.type?t:b.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(w)||[""],l=n.length;while(l--)s=rt.exec(n[l])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),p=b.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=b.event.special[g]||{},d=b.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&b.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=u[g])||(h=u[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),b.event.global[g]=!0;e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,p,f,d,h,g,m=b.hasData(e)&&b._data(e);if(m&&(c=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(s=rt.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=b.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));u&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||b.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(c)&&(delete m.handle,b._removeData(e,"events"))}},trigger:function(n,r,i,a){var s,u,l,c,p,f,d,h=[i||o],g=y.call(n,"type")?n.type:n,m=y.call(n,"namespace")?n.namespace.split("."):[];if(l=f=i=i||o,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+b.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),u=0>g.indexOf(":")&&"on"+g,n=n[b.expando]?n:new b.Event(g,"object"==typeof n&&n),n.isTrigger=!0,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:b.makeArray(r,[n]),p=b.event.special[g]||{},a||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!a&&!p.noBubble&&!b.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(l=l.parentNode);l;l=l.parentNode)h.push(l),f=l;f===(i.ownerDocument||o)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((l=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(b._data(l,"events")||{})[n.type]&&b._data(l,"handle"),s&&s.apply(l,r),s=u&&l[u],s&&b.acceptData(l)&&s.apply&&s.apply(l,r)===!1&&n.preventDefault();if(n.type=g,!(a||n.isDefaultPrevented()||p._default&&p._default.apply(i.ownerDocument,r)!==!1||"click"===g&&b.nodeName(i,"a")||!b.acceptData(i)||!u||!i[g]||b.isWindow(i))){f=i[u],f&&(i[u]=null),b.event.triggered=g;try{i[g]()}catch(v){}b.event.triggered=t,f&&(i[u]=f)}return n.result}},dispatch:function(e){e=b.event.fix(e);var n,r,i,o,a,s=[],u=h.call(arguments),l=(b._data(this,"events")||{})[e.type]||[],c=b.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=b.event.handlers.call(this,e,l),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((b.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,u),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],u=n.delegateCount,l=e.target;if(u&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(o=[],a=0;u>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?b(r,this).index(l)>=0:b.find(r,this,null,[l]).length),o[r]&&o.push(i);o.length&&s.push({elem:l,handlers:o})}return n.length>u&&s.push({elem:this,handlers:n.slice(u)}),s},fix:function(e){if(e[b.expando])return e;var t,n,r,i=e.type,a=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new b.Event(a),t=r.length;while(t--)n=r[t],e[n]=a[n];return e.target||(e.target=a.srcElement||o),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,a,s=n.button,u=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||o,a=i.documentElement,r=i.body,e.pageX=n.clientX+(a&&a.scrollLeft||r&&r.scrollLeft||0)-(a&&a.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(a&&a.scrollTop||r&&r.scrollTop||0)-(a&&a.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&u&&(e.relatedTarget=u===e.target?n.toElement:u),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){return b.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t}},focus:{trigger:function(){if(this!==o.activeElement&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===o.activeElement&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=b.extend(new b.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?b.event.trigger(i,null,t):b.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},b.removeEvent=o.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},b.Event=function(e,n){return this instanceof b.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&b.extend(this,n),this.timeStamp=e&&e.timeStamp||b.now(),this[b.expando]=!0,t):new b.Event(e,n)},b.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;
+return(!i||i!==r&&!b.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),b.support.submitBubbles||(b.event.special.submit={setup:function(){return b.nodeName(this,"form")?!1:(b.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=b.nodeName(n,"input")||b.nodeName(n,"button")?n.form:t;r&&!b._data(r,"submitBubbles")&&(b.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),b._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&b.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return b.nodeName(this,"form")?!1:(b.event.remove(this,"._submit"),t)}}),b.support.changeBubbles||(b.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(b.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),b.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),b.event.simulate("change",this,e,!0)})),!1):(b.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!b._data(t,"changeBubbles")&&(b.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||b.event.simulate("change",this.parentNode,e,!0)}),b._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return b.event.remove(this,"._change"),!Z.test(this.nodeName)}}),b.support.focusinBubbles||b.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){b.event.simulate(t,e.target,b.event.fix(e),!0)};b.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),b.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return b().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=b.guid++)),this.each(function(){b.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,b(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){b.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?b.event.trigger(e,n,r,!0):t}}),function(e,t){var n,r,i,o,a,s,u,l,c,p,f,d,h,g,m,y,v,x="sizzle"+-new Date,w=e.document,T={},N=0,C=0,k=it(),E=it(),S=it(),A=typeof t,j=1<<31,D=[],L=D.pop,H=D.push,q=D.slice,M=D.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},_="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=F.replace("w","w#"),B="([*^$|!~]?=)",P="\\["+_+"*("+F+")"+_+"*(?:"+B+_+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+O+")|)|)"+_+"*\\]",R=":("+F+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+P.replace(3,8)+")*)|.*)\\)|)",W=RegExp("^"+_+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_+"+$","g"),$=RegExp("^"+_+"*,"+_+"*"),I=RegExp("^"+_+"*([\\x20\\t\\r\\n\\f>+~])"+_+"*"),z=RegExp(R),X=RegExp("^"+O+"$"),U={ID:RegExp("^#("+F+")"),CLASS:RegExp("^\\.("+F+")"),NAME:RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:RegExp("^("+F.replace("w","w*")+")"),ATTR:RegExp("^"+P),PSEUDO:RegExp("^"+R),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_+"*(even|odd|(([+-]|)(\\d*)n|)"+_+"*(?:([+-]|)"+_+"*(\\d+)|))"+_+"*\\)|)","i"),needsContext:RegExp("^"+_+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_+"*((?:-\\d)?\\d*)"+_+"*\\)|)(?=[^-]|$)","i")},V=/[\x20\t\r\n\f]*[+~]/,Y=/^[^{]+\{\s*\[native code/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/'|\\/g,Z=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,et=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,tt=function(e,t){var n="0x"+t-65536;return n!==n?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(55296|n>>10,56320|1023&n)};try{q.call(w.documentElement.childNodes,0)[0].nodeType}catch(nt){q=function(e){var t,n=[];while(t=this[e++])n.push(t);return n}}function rt(e){return Y.test(e+"")}function it(){var e,t=[];return e=function(n,r){return t.push(n+=" ")>i.cacheLength&&delete e[t.shift()],e[n]=r}}function ot(e){return e[x]=!0,e}function at(e){var t=p.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}}function st(e,t,n,r){var i,o,a,s,u,l,f,g,m,v;if((t?t.ownerDocument||t:w)!==p&&c(t),t=t||p,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(!d&&!r){if(i=J.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&y(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return H.apply(n,q.call(t.getElementsByTagName(e),0)),n;if((a=i[3])&&T.getByClassName&&t.getElementsByClassName)return H.apply(n,q.call(t.getElementsByClassName(a),0)),n}if(T.qsa&&!h.test(e)){if(f=!0,g=x,m=t,v=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){l=ft(e),(f=t.getAttribute("id"))?g=f.replace(K,"\\$&"):t.setAttribute("id",g),g="[id='"+g+"'] ",u=l.length;while(u--)l[u]=g+dt(l[u]);m=V.test(e)&&t.parentNode||t,v=l.join(",")}if(v)try{return H.apply(n,q.call(m.querySelectorAll(v),0)),n}catch(b){}finally{f||t.removeAttribute("id")}}}return wt(e.replace(W,"$1"),t,n,r)}a=st.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},c=st.setDocument=function(e){var n=e?e.ownerDocument||e:w;return n!==p&&9===n.nodeType&&n.documentElement?(p=n,f=n.documentElement,d=a(n),T.tagNameNoComments=at(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),T.attributes=at(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),T.getByClassName=at(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",e.getElementsByClassName&&e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),T.getByName=at(function(e){e.id=x+0,e.innerHTML="<a name='"+x+"'></a><div name='"+x+"'></div>",f.insertBefore(e,f.firstChild);var t=n.getElementsByName&&n.getElementsByName(x).length===2+n.getElementsByName(x+0).length;return T.getIdNotName=!n.getElementById(x),f.removeChild(e),t}),i.attrHandle=at(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==A&&"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},T.getIdNotName?(i.find.ID=function(e,t){if(typeof t.getElementById!==A&&!d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){return e.getAttribute("id")===t}}):(i.find.ID=function(e,n){if(typeof n.getElementById!==A&&!d){var r=n.getElementById(e);return r?r.id===e||typeof r.getAttributeNode!==A&&r.getAttributeNode("id").value===e?[r]:t:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){var n=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=T.tagNameNoComments?function(e,n){return typeof n.getElementsByTagName!==A?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},i.find.NAME=T.getByName&&function(e,n){return typeof n.getElementsByName!==A?n.getElementsByName(name):t},i.find.CLASS=T.getByClassName&&function(e,n){return typeof n.getElementsByClassName===A||d?t:n.getElementsByClassName(e)},g=[],h=[":focus"],(T.qsa=rt(n.querySelectorAll))&&(at(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+_+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||h.push(":checked")}),at(function(e){e.innerHTML="<input type='hidden' i=''/>",e.querySelectorAll("[i^='']").length&&h.push("[*^$]="+_+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(T.matchesSelector=rt(m=f.matchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&at(function(e){T.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",R)}),h=RegExp(h.join("|")),g=RegExp(g.join("|")),y=rt(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},v=f.compareDocumentPosition?function(e,t){var r;return e===t?(u=!0,0):(r=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&r||e.parentNode&&11===e.parentNode.nodeType?e===n||y(w,e)?-1:t===n||y(w,t)?1:0:4&r?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return u=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:0;if(o===a)return ut(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?ut(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},u=!1,[0,0].sort(v),T.detectDuplicates=u,p):p},st.matches=function(e,t){return st(e,null,null,t)},st.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&c(e),t=t.replace(Z,"='$1']"),!(!T.matchesSelector||d||g&&g.test(t)||h.test(t)))try{var n=m.call(e,t);if(n||T.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return st(t,p,null,[e]).length>0},st.contains=function(e,t){return(e.ownerDocument||e)!==p&&c(e),y(e,t)},st.attr=function(e,t){var n;return(e.ownerDocument||e)!==p&&c(e),d||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):d||T.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribute(t))&&e[t]===!0?t:n&&n.specified?n.value:null},st.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},st.uniqueSort=function(e){var t,n=[],r=1,i=0;if(u=!T.detectDuplicates,e.sort(v),u){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e};function ut(e,t){var n=t&&e,r=n&&(~t.sourceIndex||j)-(~e.sourceIndex||j);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function lt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pt(e){return ot(function(t){return t=+t,ot(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}o=st.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=st.selectors={cacheLength:50,createPseudo:ot,match:U,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(et,tt),e[3]=(e[4]||e[5]||"").replace(et,tt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||st.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&st.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return U.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&z.test(n)&&(t=ft(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(et,tt).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[e+" "];return t||(t=RegExp("(^|"+_+")"+e+"("+_+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=st.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[x]||(m[x]={}),l=c[e]||[],d=l[0]===N&&l[1],f=l[0]===N&&l[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[N,d,f];break}}else if(v&&(l=(t[x]||(t[x]={}))[e])&&l[0]===N)f=l[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[x]||(p[x]={}))[e]=[N,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||st.error("unsupported pseudo: "+e);return r[x]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ot(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=M.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ot(function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[x]?ot(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:ot(function(e){return function(t){return st(e,t).length>0}}),contains:ot(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ot(function(e){return X.test(e||"")||st.error("unsupported lang: "+e),e=e.replace(et,tt).toLowerCase(),function(t){var n;do if(n=d?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[0>n?n+t:n]}),even:pt(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:pt(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}};for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[n]=lt(n);for(n in{submit:!0,reset:!0})i.pseudos[n]=ct(n);function ft(e,t){var n,r,o,a,s,u,l,c=E[e+" "];if(c)return t?0:c.slice(0);s=e,u=[],l=i.preFilter;while(s){(!n||(r=$.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),u.push(o=[])),n=!1,(r=I.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(W," ")}),s=s.slice(n.length));for(a in i.filter)!(r=U[a].exec(s))||l[a]&&!(r=l[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?st.error(e):E(e,u).slice(0)}function dt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function ht(e,t,n){var i=t.dir,o=n&&"parentNode"===i,a=C++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var u,l,c,p=N+" "+a;if(s){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[x]||(t[x]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,s)||r,l[1]===!0)return!0}}function gt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function mt(e,t,n,r,i){var o,a=[],s=0,u=e.length,l=null!=t;for(;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));return a}function yt(e,t,n,r,i,o){return r&&!r[x]&&(r=yt(r)),i&&!i[x]&&(i=yt(i,o)),ot(function(o,a,s,u){var l,c,p,f=[],d=[],h=a.length,g=o||xt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:mt(g,f,e,s,u),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,u),r){l=mt(y,d),r(l,[],s,u),c=l.length;while(c--)(p=l[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?M.call(o,p):f[c])>-1&&(o[l]=!(a[l]=p))}}else y=mt(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)})}function vt(e){var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],u=a?1:0,c=ht(function(e){return e===t},s,!0),p=ht(function(e){return M.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;o>u;u++)if(n=i.relative[e[u].type])f=[ht(gt(f),n)];else{if(n=i.filter[e[u].type].apply(null,e[u].matches),n[x]){for(r=++u;o>r;r++)if(i.relative[e[r].type])break;return yt(u>1&&gt(f),u>1&&dt(e.slice(0,u-1)).replace(W,"$1"),n,r>u&&vt(e.slice(u,r)),o>r&&vt(e=e.slice(r)),o>r&&dt(e))}f.push(n)}return gt(f)}function bt(e,t){var n=0,o=t.length>0,a=e.length>0,s=function(s,u,c,f,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,T=l,C=s||a&&i.find.TAG("*",d&&u.parentNode||u),k=N+=null==T?1:Math.random()||.1;for(w&&(l=u!==p&&u,r=n);null!=(h=C[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,u,c)){f.push(h);break}w&&(N=k,r=++n)}o&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,o&&b!==v){g=0;while(m=t[g++])m(x,y,u,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=L.call(f));y=mt(y)}H.apply(f,y),w&&!s&&y.length>0&&v+t.length>1&&st.uniqueSort(f)}return w&&(N=k,l=T),x};return o?ot(s):s}s=st.compile=function(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){t||(t=ft(e)),n=t.length;while(n--)o=vt(t[n]),o[x]?r.push(o):i.push(o);o=S(e,bt(i,r))}return o};function xt(e,t,n){var r=0,i=t.length;for(;i>r;r++)st(e,t[r],n);return n}function wt(e,t,n,r){var o,a,u,l,c,p=ft(e);if(!r&&1===p.length){if(a=p[0]=p[0].slice(0),a.length>2&&"ID"===(u=a[0]).type&&9===t.nodeType&&!d&&i.relative[a[1].type]){if(t=i.find.ID(u.matches[0].replace(et,tt),t)[0],!t)return n;e=e.slice(a.shift().value.length)}o=U.needsContext.test(e)?0:a.length;while(o--){if(u=a[o],i.relative[l=u.type])break;if((c=i.find[l])&&(r=c(u.matches[0].replace(et,tt),V.test(a[0].type)&&t.parentNode||t))){if(a.splice(o,1),e=r.length&&dt(a),!e)return H.apply(n,q.call(r,0)),n;break}}}return s(e,p)(r,t,d,n,V.test(e)),n}i.pseudos.nth=i.pseudos.eq;function Tt(){}i.filters=Tt.prototype=i.pseudos,i.setFilters=new Tt,c(),st.attr=b.attr,b.find=st,b.expr=st.selectors,b.expr[":"]=b.expr.pseudos,b.unique=st.uniqueSort,b.text=st.getText,b.isXMLDoc=st.isXML,b.contains=st.contains}(e);var at=/Until$/,st=/^(?:parents|prev(?:Until|All))/,ut=/^.[^:#\[\.,]*$/,lt=b.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({find:function(e){var t,n,r,i=this.length;if("string"!=typeof e)return r=this,this.pushStack(b(e).filter(function(){for(t=0;i>t;t++)if(b.contains(r[t],this))return!0}));for(n=[],t=0;i>t;t++)b.find(e,this[t],n);return n=this.pushStack(i>1?b.unique(n):n),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=b(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(b.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1))},filter:function(e){return this.pushStack(ft(this,e,!0))},is:function(e){return!!e&&("string"==typeof e?lt.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,o=[],a=lt.test(e)||"string"!=typeof e?b(e,t||this.context):0;for(;i>r;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&11!==n.nodeType){if(a?a.index(n)>-1:b.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}}return this.pushStack(o.length>1?b.unique(o):o)},index:function(e){return e?"string"==typeof e?b.inArray(this[0],b(e)):b.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?b(e,t):b.makeArray(e&&e.nodeType?[e]:e),r=b.merge(this.get(),n);return this.pushStack(b.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.fn.andSelf=b.fn.addBack;function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(e,t,n){return b.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(e,t,n){return b.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return b.dir(e,"previousSibling",n)},siblings:function(e){return b.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.merge([],e.childNodes)}},function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return at.test(e)||(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),i=this.length>1&&!ct[e]?b.unique(i):i,this.length>1&&st.test(e)&&(i=i.reverse()),this.pushStack(i)}}),b.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?b.find.matchesSelector(t[0],e)?[t[0]]:[]:b.find.matches(e,t)},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!b(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(t=t||0,b.isFunction(t))return b.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return b.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=b.grep(e,function(e){return 1===e.nodeType});if(ut.test(t))return b.filter(t,r,!n);t=b.filter(t,r)}return b.grep(e,function(e){return b.inArray(e,t)>=0===n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Nt=/^(?:checkbox|radio)$/i,Ct=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:b.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(o),Dt=jt.appendChild(o.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,b.fn.extend({text:function(e){return b.access(this,function(e){return e===t?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(b.isFunction(e))return this.each(function(t){b(this).wrapAll(e.call(this,t))});if(this[0]){var t=b(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return b.isFunction(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))}):this.each(function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=b.isFunction(e);return this.each(function(n){b(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){b.nodeName(this,"body")||b(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=0;for(;null!=(n=this[r]);r++)(!e||b.filter(e,[n]).length>0)&&(t||1!==n.nodeType||b.cleanData(Ot(n)),n.parentNode&&(t&&b.contains(n.ownerDocument,n)&&Mt(Ot(n,"script")),n.parentNode.removeChild(n)));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&b.cleanData(Ot(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&b.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return b.clone(this,e,t)})},html:function(e){return b.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!b.support.htmlSerialize&&mt.test(e)||!b.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(b.cleanData(Ot(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){var t=b.isFunction(e);return t||"string"==typeof e||(e=b(e).not(this).detach()),this.domManip([e],!0,function(e){var t=this.nextSibling,n=this.parentNode;n&&(b(this).remove(),n.insertBefore(e,t))})},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=f.apply([],e);var i,o,a,s,u,l,c=0,p=this.length,d=this,h=p-1,g=e[0],m=b.isFunction(g);if(m||!(1>=p||"string"!=typeof g||b.support.checkClone)&&Ct.test(g))return this.each(function(i){var o=d.eq(i);m&&(e[0]=g.call(this,i,n?o.html():t)),o.domManip(e,n,r)});if(p&&(l=b.buildFragment(e,this[0].ownerDocument,!1,this),i=l.firstChild,1===l.childNodes.length&&(l=i),i)){for(n=n&&b.nodeName(i,"tr"),s=b.map(Ot(l,"script"),Ht),a=s.length;p>c;c++)o=l,c!==h&&(o=b.clone(o,!0,!0),a&&b.merge(s,Ot(o,"script"))),r.call(n&&b.nodeName(this[c],"table")?Lt(this[c],"tbody"):this[c],o,c);if(a)for(u=s[s.length-1].ownerDocument,b.map(s,qt),c=0;a>c;c++)o=s[c],kt.test(o.type||"")&&!b._data(o,"globalEval")&&b.contains(u,o)&&(o.src?b.ajax({url:o.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):b.globalEval((o.text||o.textContent||o.innerHTML||"").replace(St,"")));l=i=null}return this}});function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function Ht(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Mt(e,t){var n,r=0;for(;null!=(n=e[r]);r++)b._data(n,"globalEval",!t||b._data(t[r],"globalEval"))}function _t(e,t){if(1===t.nodeType&&b.hasData(e)){var n,r,i,o=b._data(e),a=b._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)b.event.add(t,n,s[n][r])}a.data&&(a.data=b.extend({},a.data))}}function Ft(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!b.support.noCloneEvent&&t[b.expando]){i=b._data(t);for(r in i.events)b.removeEvent(t,r,i.handle);t.removeAttribute(b.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),b.support.html5Clone&&e.innerHTML&&!b.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Nt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){b.fn[e]=function(e){var n,r=0,i=[],o=b(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),b(o[r])[t](n),d.apply(i,n.get());return this.pushStack(i)}});function Ot(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||b.nodeName(o,n)?s.push(o):b.merge(s,Ot(o,n));return n===t||n&&b.nodeName(e,n)?b.merge([e],s):s}function Bt(e){Nt.test(e.type)&&(e.defaultChecked=e.checked)}b.extend({clone:function(e,t,n){var r,i,o,a,s,u=b.contains(e.ownerDocument,e);if(b.support.html5Clone||b.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(b.support.noCloneEvent&&b.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(r=Ot(o),s=Ot(e),a=0;null!=(i=s[a]);++a)r[a]&&Ft(i,r[a]);if(t)if(n)for(s=s||Ot(e),r=r||Ot(o),a=0;null!=(i=s[a]);a++)_t(i,r[a]);else _t(e,o);return r=Ot(o,"script"),r.length>0&&Mt(r,!u&&Ot(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,u,l,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===b.type(o))b.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),u=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[u]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!b.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!b.support.tbody){o="table"!==u||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)b.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l)
+}b.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),b.support.appendChecked||b.grep(Ot(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===b.inArray(o,r))&&(a=b.contains(o.ownerDocument,o),s=Ot(f.appendChild(o),"script"),a&&Mt(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,u=b.expando,l=b.cache,p=b.support.deleteExpando,f=b.event.special;for(;null!=(n=e[s]);s++)if((t||b.acceptData(n))&&(o=n[u],a=o&&l[o])){if(a.events)for(r in a.events)f[r]?b.event.remove(n,r):b.removeEvent(n,r,a.handle);l[o]&&(delete l[o],p?delete n[u]:typeof n.removeAttribute!==i?n.removeAttribute(u):n[u]=null,c.push(o))}}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+x+")(.*)$","i"),Yt=RegExp("^("+x+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+x+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===b.css(e,"display")||!b.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=b._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=b._data(r,"olddisplay",un(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&b._data(r,"olddisplay",i?n:b.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}b.fn.extend({css:function(e,n){return b.access(this,function(e,n,r){var i,o,a={},s=0;if(b.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=b.css(e,n[s],!1,o);return a}return r!==t?b.style(e,n,r):b.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:nn(this))?b(this).show():b(this).hide()})}}),b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=b.camelCase(n),l=e.style;if(n=b.cssProps[u]||(b.cssProps[u]=tn(l,u)),s=b.cssHooks[n]||b.cssHooks[u],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:l[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(b.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||b.cssNumber[u]||(r+="px"),b.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(l[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{l[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,u=b.camelCase(n);return n=b.cssProps[u]||(b.cssProps[u]=tn(e.style,u)),s=b.cssHooks[n]||b.cssHooks[u],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||b.isNumeric(o)?o||0:a):a},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s.getPropertyValue(n)||s[n]:t,l=e.style;return s&&(""!==u||b.contains(e.ownerDocument,e)||(u=b.style(e,n)),Yt.test(u)&&Ut.test(n)&&(i=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=s.width,l.width=i,l.minWidth=o,l.maxWidth=a)),u}):o.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s[n]:t,l=e.style;return null==u&&l&&l[n]&&(u=l[n]),Yt.test(u)&&!zt.test(n)&&(i=l.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),l.left="fontSize"===n?"1em":u,u=l.pixelLeft+"px",l.left=i,a&&(o.left=a)),""===u?"auto":u});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=b.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=b.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=b.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=b.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=b.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(b.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function un(e){var t=o,n=Gt[e];return n||(n=ln(e,t),"none"!==n&&n||(Pt=(Pt||b("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=ln(e,t),Pt.detach()),Gt[e]=n),n}function ln(e,t){var n=b(t.createElement(e)).appendTo(t.body),r=b.css(n[0],"display");return n.remove(),r}b.each(["height","width"],function(e,n){b.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(b.css(e,"display"))?b.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,i),i):0)}}}),b.support.opacity||(b.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=b.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===b.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),b(function(){b.support.reliableMarginRight||(b.cssHooks.marginRight={get:function(e,n){return n?b.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!b.support.pixelPosition&&b.fn.position&&b.each(["top","left"],function(e,n){b.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?b(e).position()[n]+"px":r):t}}})}),b.expr&&b.expr.filters&&(b.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!b.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||b.css(e,"display"))},b.expr.filters.visible=function(e){return!b.expr.filters.hidden(e)}),b.each({margin:"",padding:"",border:"Width"},function(e,t){b.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(b.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Nt.test(e))}).map(function(e,t){var n=b(this).val();return null==n?null:b.isArray(n)?b.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),b.param=function(e,n){var r,i=[],o=function(e,t){t=b.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=b.ajaxSettings&&b.ajaxSettings.traditional),b.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(b.isArray(t))b.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==b.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}b.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),b.fn.hover=function(e,t){return this.mouseenter(e).mouseleave(t||e)};var mn,yn,vn=b.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Nn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Cn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=b.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=a.href}catch(Ln){yn=o.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(w)||[];if(b.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(u){var l;return o[u]=!0,b.each(e[u]||[],function(e,u){var c=u(n,r,i);return"string"!=typeof c||a||o[c]?a?!(l=c):t:(n.dataTypes.unshift(c),s(c),!1)}),l}return s(n.dataTypes[0])||!o["*"]&&s("*")}function Mn(e,n){var r,i,o=b.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&b.extend(!0,e,r),e}b.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u>=0&&(i=e.slice(u,e.length),e=e.slice(0,u)),b.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&b.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?b("<div>").append(b.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.each(["get","post"],function(e,n){b[n]=function(e,r,i,o){return b.isFunction(r)&&(o=o||i,i=r,r=t),b.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Nn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Mn(Mn(e,b.ajaxSettings),t):Mn(b.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,u,l,c,p=b.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?b(f):b.event,h=b.Deferred(),g=b.Callbacks("once memory"),m=p.statusCode||{},y={},v={},x=0,T="canceled",N={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return x||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)m[t]=[m[t],e[t]];else N.always(e[N.status]);return this},abort:function(e){var t=e||T;return l&&l.abort(t),k(0,t),this}};if(h.promise(N).complete=g.add,N.success=N.done,N.error=N.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=b.trim(p.dataType||"*").toLowerCase().match(w)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?80:443))==(mn[3]||("http:"===mn[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=b.param(p.data,p.traditional)),qn(An,p,n,N),2===x)return N;u=p.global,u&&0===b.active++&&b.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Cn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(b.lastModified[o]&&N.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&N.setRequestHeader("If-None-Match",b.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&N.setRequestHeader("Content-Type",p.contentType),N.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)N.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,N,p)===!1||2===x))return N.abort();T="abort";for(i in{success:1,error:1,complete:1})N[i](p[i]);if(l=qn(jn,p,n,N)){N.readyState=1,u&&d.trigger("ajaxSend",[N,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){N.abort("timeout")},p.timeout));try{x=1,l.send(y,k)}catch(C){if(!(2>x))throw C;k(-1,C)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,C=n;2!==x&&(x=2,s&&clearTimeout(s),l=t,a=i||"",N.readyState=e>0?4:0,r&&(w=_n(p,N,r)),e>=200&&300>e||304===e?(p.ifModified&&(T=N.getResponseHeader("Last-Modified"),T&&(b.lastModified[o]=T),T=N.getResponseHeader("etag"),T&&(b.etag[o]=T)),204===e?(c=!0,C="nocontent"):304===e?(c=!0,C="notmodified"):(c=Fn(p,w),C=c.state,y=c.data,v=c.error,c=!v)):(v=C,(e||!C)&&(C="error",0>e&&(e=0))),N.status=e,N.statusText=(n||C)+"",c?h.resolveWith(f,[y,C,N]):h.rejectWith(f,[N,C,v]),N.statusCode(m),m=t,u&&d.trigger(c?"ajaxSuccess":"ajaxError",[N,p,c?y:v]),g.fireWith(f,[N,C]),u&&(d.trigger("ajaxComplete",[N,p]),--b.active||b.event.trigger("ajaxStop")))}return N},getScript:function(e,n){return b.get(e,t,n,"script")},getJSON:function(e,t,n){return b.get(e,t,n,"json")}});function _n(e,n,r){var i,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(s in c)s in r&&(n[c[s]]=r[s]);while("*"===l[0])l.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in u)if(u[s]&&u[s].test(o)){l.unshift(s);break}if(l[0]in r)a=l[0];else{for(s in r){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==l[0]&&l.unshift(a),r[a]):t}function Fn(e,t){var n,r,i,o,a={},s=0,u=e.dataTypes.slice(),l=u[0];if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u[1])for(i in e.converters)a[i.toLowerCase()]=e.converters[i];for(;r=u[++s];)if("*"!==r){if("*"!==l&&l!==r){if(i=a[l+" "+r]||a["* "+r],!i)for(n in a)if(o=n.split(" "),o[1]===r&&(i=a[l+" "+o[0]]||a["* "+o[0]])){i===!0?i=a[n]:a[n]!==!0&&(r=o[0],u.splice(s--,0,r));break}if(i!==!0)if(i&&e["throws"])t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+l+" to "+r}}}l=r}return{state:"success",data:t}}b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),b.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=o.head||b("head")[0]||o.documentElement;return{send:function(t,i){n=o.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var On=[],Bn=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=On.pop()||b.expando+"_"+vn++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=b.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||b.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,On.push(o)),s&&b.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}b.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=b.ajaxSettings.xhr(),b.support.cors=!!Rn&&"withCredentials"in Rn,Rn=b.support.ajax=!!Rn,Rn&&b.ajaxTransport(function(n){if(!n.crossDomain||b.support.cors){var r;return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,p;try{if(r&&(i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=b.noop,$n&&delete Pn[a]),i)4!==u.readyState&&u.abort();else{p={},s=u.status,l=u.getAllResponseHeaders(),"string"==typeof u.responseText&&(p.text=u.responseText);try{c=u.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,l)},n.async?4===u.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},b(e).unload($n)),Pn[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+x+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n,r,i=this.createTween(e,t),o=Yn.exec(t),a=i.cur(),s=+a||0,u=1,l=20;if(o){if(n=+o[2],r=o[3]||(b.cssNumber[e]?"":"px"),"px"!==r&&s){s=b.css(i.elem,e,!0)||n||1;do u=u||".5",s/=u,b.style(i.elem,e,s+r);while(u!==(u=i.cur()/a)&&1!==u&&--l)}i.unit=r,i.start=s,i.end=o[1]?s+(o[1]+1)*n:n}return i}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=b.now()}function Zn(e,t){b.each(t,function(t,n){var r=(Qn[t]||[]).concat(Qn["*"]),i=0,o=r.length;for(;o>i;i++)if(r[i].call(e,t,n))return})}function er(e,t,n){var r,i,o=0,a=Gn.length,s=b.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;for(;u>a;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),1>o&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(tr(c,l.opts.specialEasing);a>o;o++)if(r=Gn[o].call(l,e,c,l.opts))return r;return Zn(l,c),b.isFunction(l.opts.start)&&l.opts.start.call(e,l),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function tr(e,t){var n,r,i,o,a;for(i in e)if(r=b.camelCase(i),o=t[r],n=e[i],b.isArray(n)&&(o=n[1],n=e[i]=n[0]),i!==r&&(e[r]=n,delete e[i]),a=b.cssHooks[r],a&&"expand"in a){n=a.expand(n),delete e[r];for(i in n)i in e||(e[i]=n[i],t[i]=o)}else t[r]=o}b.Animation=b.extend(er,{tweener:function(e,t){b.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,u,l,c,p,f=this,d=e.style,h={},g=[],m=e.nodeType&&nn(e);n.queue||(c=b._queueHooks(e,"fx"),null==c.unqueued&&(c.unqueued=0,p=c.empty.fire,c.empty.fire=function(){c.unqueued||p()}),c.unqueued++,f.always(function(){f.always(function(){c.unqueued--,b.queue(e,"fx").length||c.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===b.css(e,"display")&&"none"===b.css(e,"float")&&(b.support.inlineBlockNeedsLayout&&"inline"!==un(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",b.support.shrinkWrapBlocks||f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(i in t)if(a=t[i],Vn.exec(a)){if(delete t[i],u=u||"toggle"===a,a===(m?"hide":"show"))continue;g.push(i)}if(o=g.length){s=b._data(e,"fxshow")||b._data(e,"fxshow",{}),"hidden"in s&&(m=s.hidden),u&&(s.hidden=!m),m?b(e).show():f.done(function(){b(e).hide()}),f.done(function(){var t;b._removeData(e,"fxshow");for(t in h)b.style(e,t,h[t])});for(i=0;o>i;i++)r=g[i],l=f.createTween(r,m?s[r]:0),h[r]=s[r]||b.style(e,r),r in s||(s[r]=l.start,m&&(l.end=l.start,l.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}b.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=b.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[b.cssProps[e.prop]]||b.cssHooks[e.prop])?b.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.each(["toggle","show","hide"],function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=er(this,b.extend({},e),o);a.finish=function(){t.stop(!0)},(i||b._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=b.timers,a=b._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&b.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=b._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}b.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||b.isFunction(e)&&e,duration:e,easing:n&&t||t&&!b.isFunction(t)&&t};return r.duration=b.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in b.fx.speeds?b.fx.speeds[r.duration]:b.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){b.isFunction(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},b.timers=[],b.fx=rr.prototype.init,b.fx.tick=function(){var e,n=b.timers,r=0;for(Xn=b.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||b.fx.stop(),Xn=t},b.fx.timer=function(e){e()&&b.timers.push(e)&&b.fx.start()},b.fx.interval=13,b.fx.start=function(){Un||(Un=setInterval(b.fx.tick,b.fx.interval))},b.fx.stop=function(){clearInterval(Un),Un=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fx.step={},b.expr&&b.expr.filters&&(b.expr.filters.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length}),b.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){b.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,b.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},b.offset={setOffset:function(e,t,n){var r=b.css(e,"position");"static"===r&&(e.style.position="relative");var i=b(e),o=i.offset(),a=b.css(e,"top"),s=b.css(e,"left"),u=("absolute"===r||"fixed"===r)&&b.inArray("auto",[a,s])>-1,l={},c={},p,f;u?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),b.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(l.top=t.top-o.top+p),null!=t.left&&(l.left=t.left-o.left+f),"using"in t?t.using.call(e,l):i.css(l)}},b.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===b.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),b.nodeName(e[0],"html")||(n=e.offset()),n.top+=b.css(e[0],"borderTopWidth",!0),n.left+=b.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-b.css(r,"marginTop",!0),left:t.left-n.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||o.documentElement;while(e&&!b.nodeName(e,"html")&&"static"===b.css(e,"position"))e=e.offsetParent;return e||o.documentElement})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);b.fn[e]=function(i){return b.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?b(a).scrollLeft():o,r?o:b(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return b.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}b.each({Height:"height",Width:"width"},function(e,n){b.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){b.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return b.access(this,function(n,r,i){var o;return b.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?b.css(n,r,s):b.style(n,r,i,s)},n,a?i:t,a,null)}})}),e.jQuery=e.$=b,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return b})})(window);<?php
+exit();
+endif;
+?><?php
+/*
+ * Carbon-Probe
+ * https://github.com/lincanbin/Carbon-Probe
+ *
+ * Copyright 2016 Canbin Lin (lincanbin@hotmail.com)
+ * http://www.94cb.com/
+ *
+ * Licensed under the MIT License:
+ * https://opensource.org/licenses/MIT
+ * 
+ * A Linux environmental probe.
+ */
+?>
+
+<!DOCTYPE html>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+<meta name="robots" content="noarchive">
+<title>Carbon Probe</title>
+<link href="probe.php?file=static%2Fcss%2Fstyle.css" rel="stylesheet"/>
+<script src="probe.php?file=static%2Fjs%2Fjquery.min.js" type="text/javascript"></script>
+<script src="probe.php?file=static%2Fjs%2FeasyResponsiveTabs.js" type="text/javascript"></script>
+<script src="probe.php?file=static%2Fjs%2Fjquery.jsontotable.min.js" type="text/javascript"></script>
+<script src="probe.php?file=static%2Fjs%2Fecharts.min.js" type="text/javascript"></script>
+</head>
+
+<body>
+<!--Horizontal Tab-->
+<div id="MainTab">
+<ul class="resp-tabs-list main">
+<li>性能</li>
+<li>进程</li>
+<li>环境</li>
+</ul>
+<div class="resp-tabs-container main">
+<div>
+<p>
+<!--vertical Tabs-->
+<div id="PerformanceTab">
+<ul class="resp-tabs-list performance" id="PerformanceList">
+<li>CPU<p><span class="tab-label" id="cpu_usage_label"></span></p></li>
+<li>内存<p><span class="tab-label" id="memory_usage_label"></span></p></li>
+<li>磁盘<p><span class="tab-label" id="disk_usage_label"></span></p></li>
+</ul>
+<div class="resp-tabs-container performance" id="PerformanceContainer">
+<div>
+<div id="cpu_usage" style="width: 100%; height:100%; min-height: 760px;"></div>
+</div>
+<div>
+<div id="memory_usage" style="width: 100%; height:100%; min-height: 760px;"></div>
+</div>
+<div>
+<div id="disk_usage" style="width: 100%; height:100%; min-height: 760px;"></div>
+<div id="disk_speed" style="width: 100%; height:100%; min-height: 360px;"></div>
+</div>
+</div>
+</div>
+<p>https://github.com/lincanbin/Carbon-Probe</p>
+</div>
+<div id="Process"></div>
+<div>
+ TODO.<br><br>
+<p>Child 3 Container</p>
+</div>
+</div>
+</div>
+<script src="probe.php?file=static%2Fjs%2Fcommon.js" type="text/javascript"></script>
+</body>
+</html>
\ No newline at end of file

Continuous integration.