From: hyokeun.jeon Date: Mon, 31 May 2021 15:38:16 +0000 (+0900) Subject: BSR: Support memory profiling X-Git-Tag: submit/trunk/20210602.131730~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b093709826f68d73ff2bfd93f619e90555eb471;p=tools%2Fgbs.git BSR: Support memory profiling Change-Id: I273bc0b5dc0c1bbca4686405e5aff7ddbe023c49 --- diff --git a/bsr/bsr/__init__.py b/bsr/bsr/__init__.py index e69de29..b1821e4 100644 --- a/bsr/bsr/__init__.py +++ b/bsr/bsr/__init__.py @@ -0,0 +1 @@ +#!/usr/bin/python -tt diff --git a/bsr/bsr/__version__.py b/bsr/bsr/__version__.py index 7ecd19f..f00359c 100644 --- a/bsr/bsr/__version__.py +++ b/bsr/bsr/__version__.py @@ -2,9 +2,9 @@ __title__ = 'bsr' __description__ = 'Tizen Build Statistics Reporter.' -__url__ = 'https://review.tizen.org' -__version__ = '0.0.4' -__build__ = 0x20201223 +__url__ = 'https://tizen.org' +__version__ = '0.0.5' +__build__ = 0x20210531 __author__ = 'Hyokeun Jeon' __author_email__ = 'hyokeun.jeon@samsung.com' __license__ = 'Apache 2.0' diff --git a/bsr/bsr/analyzer/data_analyzer.py b/bsr/bsr/analyzer/data_analyzer.py old mode 100644 new mode 100755 index ff166f8..33ade9c --- a/bsr/bsr/analyzer/data_analyzer.py +++ b/bsr/bsr/analyzer/data_analyzer.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -#-*- coding: utf-8 -*- +# -*- coding: utf-8 -*- # # Copyright (c) 2021 Samsung Electronics.Co.Ltd. # @@ -56,7 +56,7 @@ class DataAnalyzer: sorted_b = {} for pkg in self.build_time: sorted_b[self.build_time[pkg].get('package')] = \ - self.build_time[pkg].get('duration') + self.build_time[pkg].get('duration') self.sorted_buildtime = sorted(sorted_b, key=sorted_b.get, reverse=True) # Fake xml info from buildtime @@ -110,7 +110,7 @@ class DataAnalyzer: pkg_list.append(src) console('We have #{} packages which links to chromium-efl.'.format( \ - len(pkg_list)), verbose=self.verbose) + len(pkg_list)), verbose=self.verbose) return [self.package_names[item] for item in reversed(pkg_list)] def get_link_counts_map(self): @@ -119,7 +119,7 @@ class DataAnalyzer: if self.count_link_map is not None: return - count_link = { x: [0] * len(self.nodes) for x in self.nodes } + count_link = {x: [0] * len(self.nodes) for x in self.nodes} for level in range(len(self.topology_sorted) - 1, -1, -1): for package in self.topology_sorted[level]: for dep in self.edges[package]: @@ -152,21 +152,24 @@ class DataAnalyzer: for package in self.topology_sorted[level]: if level not in link_data: link_data[level] = [] - link_data[level].append({'package': package, - 'links': sum(self.count_link_map[package])}) + link_data[level].append({ + 'package': package, + 'links': sum(self.count_link_map[package]) + }) for level in link_data: - link_data[level] = sorted(link_data[level], key = lambda a: a['links'], reverse=True) + link_data[level] = sorted(link_data[level], key=lambda a: a['links'], reverse=True) link_list = [{}] * len(self.package_names) for level in link_data: for y_depth, item in enumerate(link_data[level]): - link_list[item.get('package')] = {'level': level, \ - 'links': item.get('links'), 'y': y_depth} + link_list[item.get('package')] = { + 'level': level, \ + 'links': item.get('links'), 'y': y_depth + } return link_list - def get_link_ordered_packages(self, buildtime_order=False, highdeps_order=True): """Calculate link number based sorted list""" @@ -201,8 +204,10 @@ class DataAnalyzer: self.zero_links = sorted(self.zero_links) self.zero_links = self._work_with_buildtime(buildtime_order) - link_info = {'nodes': self.nodes, 'edges_full': self.edges, 'links': {}, \ - 'package_names': self.package_names} + link_info = { + 'nodes': self.nodes, 'edges_full': self.edges, 'links': {}, \ + 'package_names': self.package_names + } link_info['links'] = self.generate_link_data() self.link_info = link_info @@ -287,22 +292,20 @@ class DataAnalyzer: new_edges[pkg].append(dep_pkg) for pkg in topo_sorted[-1]: new_edges[pkg] = [] - #for edge_n in edges: - # new_edges[edge_n] = edges[edge_n][:] return new_edges - # Fill blank build time - build_t = { pkg_id: {'duration': 0} for pkg_id in range(len(self.package_names)) } + build_t = {pkg_id: {'duration': 0} for pkg_id in range(len(self.package_names))} for item in self.build_time: pkg_name = self.build_time[item]['package'] if pkg_name not in self.package_names: continue build_t[self.package_names.index(pkg_name)] = \ - {'duration': self.build_time[item]['duration'], \ - 'start': to_timestamp(self.build_time[item]['start']), \ - 'end': to_timestamp(self.build_time[item]['end']) \ + { + 'duration': self.build_time[item]['duration'], \ + 'start': to_timestamp(self.build_time[item]['start']), \ + 'end': to_timestamp(self.build_time[item]['end']) \ } topology_orig = self.topology_sorted @@ -313,7 +316,7 @@ class DataAnalyzer: if search_from == -1: break topology_sorted = trim_levels(topology_orig, search_from, \ - search_to, self.edges, build_t) + search_to, self.edges, build_t) new_edges = gen_trimmed_edges(topology_sorted, self.edges) all_path = [] @@ -354,20 +357,21 @@ class DataAnalyzer: 'start' in build_t[package_idx] and \ 'end' in build_t[prev_package_idx]: package_waittime = build_t[package_idx]['start'] \ - - build_t[prev_package_idx]['end'] + - build_t[prev_package_idx]['end'] total_buildtime += package_buildtime total_waittime += package_waittime console('[{}/{}] {} (build: {}, wait: {})'.format( \ - idx + 1, \ - package_levels[package_idx], \ - self.package_names[package_idx], \ - package_buildtime, package_waittime), \ - verbose=self.verbose \ - ) + idx + 1, \ + package_levels[package_idx], \ + self.package_names[package_idx], \ + package_buildtime, package_waittime), \ + verbose=self.verbose \ + ) build_log[self.package_names[package_idx]] = \ - {'level': package_levels[package_idx], \ - 'buildtime': package_buildtime, \ - 'waittime': package_waittime \ + { + 'level': package_levels[package_idx], \ + 'buildtime': package_buildtime, \ + 'waittime': package_waittime \ } self.max_depth = build_log diff --git a/bsr/bsr/bsr b/bsr/bsr/bsr index eca66f2..2291c57 100755 --- a/bsr/bsr/bsr +++ b/bsr/bsr/bsr @@ -20,8 +20,6 @@ import shutil import argparse import yaml -from pprint import pprint - from bsr.report.build_time import BuildTime from bsr.report.depends_xml import DependsXml from bsr.report.info_meta import gather_meta_information, reconstruct_new_format, save_result, \ @@ -33,6 +31,7 @@ from bsr.utility.monitoring import Monitoring from bsr.network.dep_graph import create_build_dep_graph +# pylint: disable=R0901,R1725 class YamlDumper(yaml.Dumper): """Personal YAML dumper for 2.0 syntax indent""" @@ -40,6 +39,7 @@ class YamlDumper(yaml.Dumper): return super(YamlDumper, self).increase_indent(flow, False) +# pylint: disable=R0902 class ReportAction: """Report""" @@ -271,7 +271,7 @@ def report_main(args): meta_info['DeployUrl'] = args.dist_root save_result(tgt_dir, 'result_meta.json', meta_info) - reconstruct_new_format(os.path.dirname(tgt_dir), meta_info, os.path.join(os.getcwd(), 'cpu.records')) + reconstruct_new_format(os.path.dirname(tgt_dir), os.path.join(os.getcwd(), 'cpu.records')) return 0 diff --git a/bsr/bsr/gbs/gbs_actions.py b/bsr/bsr/gbs/gbs_actions.py old mode 100644 new mode 100755 index 3537b8e..38d5ec7 --- a/bsr/bsr/gbs/gbs_actions.py +++ b/bsr/bsr/gbs/gbs_actions.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -#-*- coding: utf-8 -*- +# -*- coding: utf-8 -*- # # Copyright (c) 2021 Samsung Electronics.Co.Ltd. # diff --git a/bsr/bsr/network/dep_graph.py b/bsr/bsr/network/dep_graph.py old mode 100644 new mode 100755 index 09447d0..3321a25 --- a/bsr/bsr/network/dep_graph.py +++ b/bsr/bsr/network/dep_graph.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -#-*- coding: utf-8 -*- +# -*- coding: utf-8 -*- # # Copyright (c) 2021 Samsung Electronics.Co.Ltd. # diff --git a/bsr/bsr/report/build_time.py b/bsr/bsr/report/build_time.py old mode 100644 new mode 100755 index c27393a..173c014 --- a/bsr/bsr/report/build_time.py +++ b/bsr/bsr/report/build_time.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -#-*- coding: utf-8 -*- +# -*- coding: utf-8 -*- # # Copyright (c) 2021 Samsung Electronics.Co.Ltd. # @@ -40,7 +40,7 @@ class BuildTime: rxc = r'.*Using BUILD_ROOT=.*[_.]([\d]+)' rxp = r'.* processing recipe .*/(.*)-([0-9a-zA-Z.+]+-[0-9.]+)/.*.spec .*' - + # pylint: disable=R0913 def __init__(self, local_log_dir=None, reference_url=None, profile_ref=None, \ logtype=None, arch=None, verbose=False): """Initialize""" @@ -53,7 +53,6 @@ class BuildTime: self.build_time = self.process_local(local_log_dir) self.ref_build_time = self.process_reference(reference_url, profile_ref) - def process_local(self, local_path): """Parse all the log files from local""" @@ -88,7 +87,6 @@ class BuildTime: return build_time - def process_profile_ref(self, url): """Directly get the data from the previous profiling report""" @@ -114,22 +112,19 @@ class BuildTime: prev_data = json.load(prev_f) except ValueError: prev_data = {} - pass try: for pkg_name in prev_data: prev_data[pkg_name]['end'] = datetime.strptime( \ - prev_data[pkg_name]['end'], '%Y-%m-%d %H:%M:%S') + prev_data[pkg_name]['end'], '%Y-%m-%d %H:%M:%S') prev_data[pkg_name]['start'] = datetime.strptime( \ - prev_data[pkg_name]['start'], '%Y-%m-%d %H:%M:%S') + prev_data[pkg_name]['start'], '%Y-%m-%d %H:%M:%S') except KeyError: prev_data = {} - pass console('Ref build time data... {}'.format(len(prev_data)), verbose=self.verbose) os.remove(output_filename) return prev_data - def process_reference(self, remote_url=None, profile_ref=None): """Parse all the log files from reference""" @@ -155,7 +150,6 @@ class BuildTime: return build_time - def get_all_files(self, local_path): """Find all text files""" @@ -179,7 +173,6 @@ class BuildTime: console('Total {} files stacked...'.format(len(candidates)), verbose=self.verbose) return candidates - def get_buildlogs_from_url(self, url): """Wget log files from url""" @@ -188,15 +181,14 @@ class BuildTime: if '/repos/' in url: _url = url.split('/repos/')[0] + '/' main_command = 'wget -q --no-proxy {}/'.format(_url) - ret = subprocess.call('{}'.format(main_command), \ - stdout=sys.stdout, stderr=sys.stderr, shell=True) + subprocess.call('{}'.format(main_command), \ + stdout=sys.stdout, stderr=sys.stderr, shell=True) if os.path.isfile('index.html'): with open('index.html', 'r') as index_f: if 'builddata' in index_f.read(): return _url return url - if not url.endswith('/'): url = url + '/' @@ -218,7 +210,6 @@ class BuildTime: return work_dir - def switch_regex_patterns(self, log_type=None): """Different regex between OBS and GBS""" @@ -237,7 +228,6 @@ class BuildTime: self.rxe = r'.*\].* (.*) (finished|failed).*build (.*).spec.* at (.*).$' self.rxp = r'.* processing recipe .*/(.*)-([0-9a-zA-Z.+]+-[0-9.]+)/.*.spec .*' - def parse_logfile(self, logfile): """Parsing log file""" @@ -283,6 +273,6 @@ class BuildTime: if hostname and package and start and end and thread: thread_no = '{}:{}'.format(hostname, str(thread)) return thread_no, package, str_to_date(start, 9), str_to_date(end, 9), \ - build_result, release_version + build_result, release_version return None, None, None, None, None, None diff --git a/bsr/bsr/report/depends_xml.py b/bsr/bsr/report/depends_xml.py old mode 100644 new mode 100755 index e935e2e..885856f --- a/bsr/bsr/report/depends_xml.py +++ b/bsr/bsr/report/depends_xml.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -#-*- coding: utf-8 -*- +# -*- coding: utf-8 -*- # # Copyright (c) 2021 Samsung Electronics.Co.Ltd. # @@ -65,7 +65,7 @@ class DependsXml: self.package_names = list(bucket.keys()) self.nodes = list(range(len(self.package_names))) - self.edges = { k: [] for k in self.nodes } + self.edges = {k: [] for k in self.nodes} self.in_degree = [0] * len(self.package_names) def construct_mapping(self, bucket, sub_to_main_map): diff --git a/bsr/bsr/report/info_meta.py b/bsr/bsr/report/info_meta.py old mode 100644 new mode 100755 index ea302e7..6db1fa3 --- a/bsr/bsr/report/info_meta.py +++ b/bsr/bsr/report/info_meta.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -#-*- coding: utf-8 -*- +# -*- coding: utf-8 -*- # # Copyright (c) 2021 Samsung Electronics.Co.Ltd. # @@ -27,7 +27,7 @@ import subprocess from datetime import datetime -from bsr.utility.utils import json_datetime_serializer, get_ip_address, console, pushd +from bsr.utility.utils import json_datetime_serializer, console, pushd from bsr.utility.monitoring import Monitoring @@ -79,26 +79,28 @@ def gather_meta_information(user_log_dir, build_time, ref_build_time): check_dir = '/logs/'.join(check_dir.split('/logs/')[:-1]) if os.path.isfile(os.path.join(check_dir, 'report.json')): + # pylint: disable=W0703 try: with open(os.path.join(check_dir, 'report.json'), 'r') as report_f: - rd = json.load(report_f) - if rd and 'summary' in rd: - if 'packages_total' in rd['summary']: - report_data['total'] = int(rd['summary']['packages_total']) - if 'packages_succeeded' in rd['summary']: - report_data['pass'] = int(rd['summary']['packages_succeeded']) - if 'packages_build_error' in rd['summary']: - report_data['fail'] = int(rd['summary']['packages_build_error']) - if 'packages_expansion_error' in rd['summary']: - report_data['dep_err'] = int(rd['summary']['packages_expansion_error']) - if 'packages_export_error' in rd['summary']: - report_data['exp_err'] = int(rd['summary']['packages_export_error']) - except ValueError, IOError: - pass + report_j = json.load(report_f) + if report_j and 'summary' in report_j: + if 'packages_total' in report_j['summary']: + report_data['total'] = int(report_j['summary']['packages_total']) + if 'packages_succeeded' in report_j['summary']: + report_data['pass'] = int(report_j['summary']['packages_succeeded']) + if 'packages_build_error' in report_j['summary']: + report_data['fail'] = int(report_j['summary']['packages_build_error']) + if 'packages_expansion_error' in report_j['summary']: + report_data['dep_err'] = \ + int(report_j['summary']['packages_expansion_error']) + if 'packages_export_error' in report_j['summary']: + report_data['exp_err'] = \ + int(report_j['summary']['packages_export_error']) + except Exception as err: + console('Error for reading report json: {}'.format(repr(err))) return report_data - report_data = parse_report_json_file(user_log_dir) build_start, build_end = get_first_end_time(build_time) @@ -112,7 +114,8 @@ def gather_meta_information(user_log_dir, build_time, ref_build_time): if report_data['total'] > 0: meta['BuildDetail']['Total'] = report_data['total'] meta['BuildDetail']['Pass'] = report_data['pass'] - meta['BuildDetail']['Fail'] = report_data['fail'] + report_data['exp_err'] + report_data['dep_err'] + meta['BuildDetail']['Fail'] = report_data['fail'] \ + + report_data['exp_err'] + report_data['dep_err'] meta['ReferenceDetail']['Total'] = len(ref_build_time) meta['ReferenceDetail']['StartTime'] = ref_start @@ -122,7 +125,7 @@ def gather_meta_information(user_log_dir, build_time, ref_build_time): return meta -def reconstruct_new_format(sample_dir, meta, cpu_file): +def reconstruct_new_format(sample_dir, cpu_file): """Re-construct new format""" # Resource Monitoring Data @@ -145,9 +148,9 @@ def reconstruct_new_format(sample_dir, meta, cpu_file): # bsr_fe/build/ -> depends_out/ script_dir = os.path.dirname(os.path.realpath(__file__)) frontend_dist_dir = os.path.join(os.path.dirname(os.path.dirname(script_dir)), \ - 'bsr', 'web_dist') + 'bsr', 'web_dist') shutil.copytree(frontend_dist_dir, sample_dir) - #shutil.rmtree(os.path.join(sample_dir, 'sample_data')) + # shutil.rmtree(os.path.join(sample_dir, 'sample_data')) # .sample_data/ -> depends_out/sample_data/ shutil.move(tmp_sample_dir, os.path.join(sample_dir, 'sample_data')) @@ -165,6 +168,7 @@ def save_result(target_dir, filename, input_data, raw=False): json.dump(input_data, result_f, default=json_datetime_serializer) +# pylint: disable=R0914 def save_logs(target_dir, source_dir): """Hard link log files""" @@ -185,7 +189,7 @@ def fetch_ordered_list_from_previous_report(profiling_ref, verbose=False): local_dl = None try: if os.path.isfile(os.path.join(path, 'buildtime.json')) \ - and os.path.isfile(os.path.join(path, 'depends_link.json')): + and os.path.isfile(os.path.join(path, 'depends_link.json')): with open(os.path.join(path, 'buildtime.json'), 'r') as bt_file: local_bt = json.load(bt_file) with open(os.path.join(path, 'depends_link.json'), 'r') as link_file: @@ -194,11 +198,9 @@ def fetch_ordered_list_from_previous_report(profiling_ref, verbose=False): console('Fetch failed...', verbose=verbose) except ValueError as err: console('Fetch exception... {}'.format(repr(err)), verbose=verbose) - pass return [local_bt, local_dl] - url = profiling_ref if not url.endswith('/'): url = url + '/' @@ -218,8 +220,8 @@ def fetch_ordered_list_from_previous_report(profiling_ref, verbose=False): options = 'wget -q -r -nH -np -l 10 --cut-dirs=100 ' main_command = '{} {} {}/'.format(options, ar_files, url) - ret = subprocess.call('{}'.format(main_command), \ - stdout=sys.stdout, stderr=sys.stderr, shell=True) + subprocess.call('{}'.format(main_command), \ + stdout=sys.stdout, stderr=sys.stderr, shell=True) build_time_data, depends_link_data = read_json_data(work_dir) shutil.rmtree(work_dir, ignore_errors=True) @@ -227,7 +229,6 @@ def fetch_ordered_list_from_previous_report(profiling_ref, verbose=False): elif os.path.isdir(url): build_time_data, depends_link_data = read_json_data(url) - ordered_list = [] if build_time_data and depends_link_data: diff --git a/bsr/bsr/utility/monitoring.py b/bsr/bsr/utility/monitoring.py old mode 100644 new mode 100755 index ac36c3f..a1ad726 --- a/bsr/bsr/utility/monitoring.py +++ b/bsr/bsr/utility/monitoring.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -#-*- coding: utf-8 -*- +# -*- coding: utf-8 -*- # # Copyright (c) 2021 Samsung Electronics.Co.Ltd. # @@ -29,16 +29,18 @@ class Monitoring: self.pid = 9999999999 + # pylint: disable=R0201 def query_cpu_usage(self, target_file): """Retrieve CPU usage""" values = [] if os.path.isfile(target_file): - with open(target_file, 'r') as cpu_rec: - for item in cpu_rec.readlines()[1:]: - tstamp, usage = item.strip().split(',') - values.append([int(tstamp), float(usage)]) + with open(target_file, 'r') as hw_rec: + for item in hw_rec.readlines()[1:]: + tstamp, cpu_usage, mem_usage = item.strip().split(',') + values.append([int(tstamp), \ + round(float(cpu_usage), 2), round(float(mem_usage), 2)]) return values @@ -49,10 +51,17 @@ class Monitoring: stringed_command = """import time, psutil while True: - with open('__DEST__', 'a') as wf: - wf.write('{},{}\\n'.format(int(time.time()), psutil.cpu_percent(interval=5))) - if sum(1 for line in open('__DEST__')) > 7200: + with open('__DEST__', 'a') as wf: + wf.write('{},{},{}\\n'.format(int(time.time()), + round(psutil.cpu_percent(interval=5), 2), + round(float(psutil.virtual_memory().used)/1024/1024/1024, 2))) + if sum(1 for line in open('__DEST__')) > 17280: break + try: + if len([x.name() for x in psutil.process_iter() if 'depanneur' in x.name()]) <= 0: + break + except Exception as err: + pass """.replace('__DEST__', target_file) pid = subprocess.Popen(['python', '-c', stringed_command]).pid diff --git a/bsr/bsr/utility/utils.py b/bsr/bsr/utility/utils.py old mode 100644 new mode 100755 index 89cb9c2..eec185b --- a/bsr/bsr/utility/utils.py +++ b/bsr/bsr/utility/utils.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -#-*- coding: utf-8 -*- +# -*- coding: utf-8 -*- # # Copyright (c) 2021 Samsung Electronics.Co.Ltd. # diff --git a/bsr/bsr/web_dist/asset-manifest.json b/bsr/bsr/web_dist/asset-manifest.json index 8cffd6e..27200f5 100644 --- a/bsr/bsr/web_dist/asset-manifest.json +++ b/bsr/bsr/web_dist/asset-manifest.json @@ -1,19 +1,19 @@ { "files": { "main.css": "./static/css/main.c6b1a691.chunk.css", - "main.js": "./static/js/main.b95f85c6.chunk.js", + "main.js": "./static/js/main.3b57cdf5.chunk.js", "runtime-main.js": "./static/js/runtime-main.bc689076.js", "static/css/2.e905ac86.chunk.css": "./static/css/2.e905ac86.chunk.css", - "static/js/2.b9f32fb5.chunk.js": "./static/js/2.b9f32fb5.chunk.js", + "static/js/2.b0fd9646.chunk.js": "./static/js/2.b0fd9646.chunk.js", "index.html": "./index.html", - "static/js/2.b9f32fb5.chunk.js.LICENSE.txt": "./static/js/2.b9f32fb5.chunk.js.LICENSE.txt", + "static/js/2.b0fd9646.chunk.js.LICENSE.txt": "./static/js/2.b0fd9646.chunk.js.LICENSE.txt", "static/media/semantic.min.css": "./static/media/outline-icons.ddae9b1b.woff" }, "entrypoints": [ "static/js/runtime-main.bc689076.js", "static/css/2.e905ac86.chunk.css", - "static/js/2.b9f32fb5.chunk.js", + "static/js/2.b0fd9646.chunk.js", "static/css/main.c6b1a691.chunk.css", - "static/js/main.b95f85c6.chunk.js" + "static/js/main.3b57cdf5.chunk.js" ] } \ No newline at end of file diff --git a/bsr/bsr/web_dist/index.html b/bsr/bsr/web_dist/index.html index 5554268..e98fb0e 100644 --- a/bsr/bsr/web_dist/index.html +++ b/bsr/bsr/web_dist/index.html @@ -1 +1 @@ -Tizen Build Profiling
\ No newline at end of file +Tizen Build Profiling
\ No newline at end of file diff --git a/bsr/bsr/web_dist/static/js/2.b0fd9646.chunk.js b/bsr/bsr/web_dist/static/js/2.b0fd9646.chunk.js new file mode 100644 index 0000000..931bea0 --- /dev/null +++ b/bsr/bsr/web_dist/static/js/2.b0fd9646.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 2.b0fd9646.chunk.js.LICENSE.txt */ +(this["webpackJsonptizen-build-performance"]=this["webpackJsonptizen-build-performance"]||[]).push([[2],[function(t,e,n){"use strict";t.exports=n(591)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),i=n.n(r),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=i.a.createContext&&i.a.createContext(o),s=function(){return(s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}},function(t,e,n){"use strict";t.exports=n(590)},function(t,e,n){t.exports=n(597)()},function(t,e,n){"use strict";var r=n(2),i=n(4),o=n(0),a=n.n(o),s=(n(6),n(70)),c=n.n(s),l=n(989),u=n(1018),g=n(366),f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=e.defaultTheme,s=e.withTheme,f=void 0!==s&&s,d=e.name,h=Object(i.a)(e,["defaultTheme","withTheme","name"]);var p=d,A=Object(l.a)(t,Object(r.a)({defaultTheme:o,Component:n,name:d||n.displayName,classNamePrefix:p},h)),C=a.a.forwardRef((function(t,e){t.classes;var s,c=t.innerRef,l=Object(i.a)(t,["classes","innerRef"]),h=A(Object(r.a)({},n.defaultProps,t)),p=l;return("string"===typeof d||f)&&(s=Object(g.a)()||o,d&&(p=Object(u.a)({theme:s,name:d,props:l})),f&&!p.theme&&(p.theme=s)),a.a.createElement(n,Object(r.a)({ref:c||e,classes:h},p))}));return c()(C,n),C}},d=n(99);e.a=function(t,e){return f(t,Object(r.a)({defaultTheme:d.a},e))}},function(t,e,n){"use strict";n.d(e,"i",(function(){return d})),n.d(e,"h",(function(){return h})),n.d(e,"g",(function(){return p})),n.d(e,"f",(function(){return A})),n.d(e,"j",(function(){return v})),n.d(e,"c",(function(){return I})),n.d(e,"b",(function(){return y})),n.d(e,"d",(function(){return m})),n.d(e,"e",(function(){return b})),n.d(e,"a",(function(){return x}));var r=n(51),i=n.n(r),o=n(21),a=n.n(o),s=n(175),c=n.n(s),l=n(168),u=n.n(l),g=n(120),f=n.n(g),d=function(t){return 0===t?0:t>0?1:-1},h=function(t){return f()(t)&&t.indexOf("%")===t.length-1},p=function(t){return u()(t)&&!c()(t)},A=function(t){return p(t)||f()(t)},C=0,v=function(t){var e=++C;return"".concat(t||"").concat(e)},I=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!p(t)&&!f()(t))return r;if(h(t)){var o=t.indexOf("%");n=e*parseFloat(t.slice(0,o))/100}else n=+t;return c()(n)&&(n=r),i&&n>e&&(n=e),n},y=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},m=function(t){if(!a()(t))return!1;for(var e=t.length,n={},r=0;r2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(e,t),n)}function o(t){t=t.substr(1);var e=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),n=t.match(e);return n&&1===n[0].length&&(n=n.map((function(t){return t+t}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(t,e){return e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3})).join(", "),")"):""}function a(t){if(0===t.indexOf("#"))return t;var e=c(t).values;return"#".concat(e.map((function(t){return function(t){var e=t.toString(16);return 1===e.length?"0".concat(e):e}(t)})).join(""))}function s(t){var e=(t=c(t)).values,n=e[0],r=e[1]/100,i=e[2]/100,o=r*Math.min(i,1-i),a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+n/30)%12;return i-o*Math.max(Math.min(e-3,9-e,1),-1)},s="rgb",u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===t.type&&(s+="a",u.push(e[3])),l({type:s,values:u})}function c(t){if(t.type)return t;if("#"===t.charAt(0))return c(o(t));var e=t.indexOf("("),n=t.substring(0,e);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,t));var i=t.substring(e+1,t.length-1).split(",");return{type:n,values:i=i.map((function(t){return parseFloat(t)}))}}function l(t){var e=t.type,n=t.values;return-1!==e.indexOf("rgb")?n=n.map((function(t,e){return e<3?parseInt(t,10):t})):-1!==e.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(e,"(").concat(n.join(", "),")")}function u(t,e){var n=g(t),r=g(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function g(t){var e="hsl"===(t=c(t)).type?c(s(t)).values:t.values;return e=e.map((function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return g(t)>.5?h(t,e):p(t,e)}function d(t,e){return t=c(t),e=i(e),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),t.values[3]=e,l(t)}function h(t,e){if(t=c(t),e=i(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb"))for(var n=0;n<3;n+=1)t.values[n]*=1-e;return l(t)}function p(t,e){if(t=c(t),e=i(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(var n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;return l(t)}},function(t,e,n){"use strict";n.d(e,"u",(function(){return U})),n.d(e,"l",(function(){return X})),n.d(e,"b",(function(){return Z})),n.d(e,"p",(function(){return q})),n.d(e,"o",(function(){return K})),n.d(e,"h",(function(){return Q})),n.d(e,"g",(function(){return J})),n.d(e,"a",(function(){return $})),n.d(e,"x",(function(){return et})),n.d(e,"m",(function(){return nt})),n.d(e,"v",(function(){return rt})),n.d(e,"k",(function(){return it})),n.d(e,"s",(function(){return ot})),n.d(e,"d",(function(){return at})),n.d(e,"y",(function(){return st})),n.d(e,"c",(function(){return lt})),n.d(e,"e",(function(){return ut})),n.d(e,"A",(function(){return gt})),n.d(e,"q",(function(){return ht})),n.d(e,"t",(function(){return pt})),n.d(e,"j",(function(){return At})),n.d(e,"i",(function(){return Ct})),n.d(e,"r",(function(){return vt})),n.d(e,"n",(function(){return It})),n.d(e,"z",(function(){return bt})),n.d(e,"f",(function(){return xt})),n.d(e,"w",(function(){return wt}));var r=n(169),i=n.n(r),o=n(167),a=n.n(o),s=n(175),c=n.n(s),l=n(142),u=n.n(l),g=n(120),f=n.n(g),d=n(21),h=n.n(d),p=n(216),A=n.n(p),C=n(217),v=n.n(C),I=n(552),y=n.n(I),m=n(14),b=n.n(m),x=n(51),w=n.n(x),O=n(16),S=n.n(O),_=n(363),k=n(346),j=n(58),E=n(137),P=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o=0;)n[e]=e;return n};function N(t,e){return t[e]}function L(t){var e=[];return e.key=t,e}var F=n(8),B=n(213),z=n(25);function V(t){return function(t){if(Array.isArray(t))return G(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,s=0;s0?n[s-1].coordinate:n[o-1].coordinate,l=n[s].coordinate,u=s>=o-1?n[0].coordinate:n[s+1].coordinate,g=void 0;if(Object(F.i)(l-c)!==Object(F.i)(u-l)){var f=[];if(Object(F.i)(u-l)===Object(F.i)(a[1]-a[0])){g=u;var d=l+a[1]-a[0];f[0]=Math.min(d,(d+c)/2),f[1]=Math.max(d,(d+c)/2)}else{g=c;var h=u+a[1]-a[0];f[0]=Math.min(l,(h+l)/2),f[1]=Math.max(l,(h+l)/2)}var p=[Math.min(l,(g+l)/2),Math.max(l,(g+l)/2)];if(t>p[0]&&t<=p[1]||t>=f[0]&&t<=f[1]){i=n[s].index;break}}else{var A=Math.min(c,u),C=Math.max(c,u);if(t>(A+l)/2&&t<=(C+l)/2){i=n[s].index;break}}}else for(var v=0;v0&&v(e[v].coordinate+e[v-1].coordinate)/2&&t<=(e[v].coordinate+e[v+1].coordinate)/2||v===o-1&&t>(e[v].coordinate+e[v-1].coordinate)/2){i=e[v].index;break}}else i=0;return i},q=function(t){var e,n=t.type.displayName,r=t.props,i=r.stroke,o=r.fill;switch(n){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},K=function(t){var e,n=t.children,r=t.formatedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Object(z.b)(n,B.a.displayName);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(t,e){var n=e.item,r=e.props,i=r.sectors||r.data||[];return t.concat(i.map((function(t){return{type:a.props.iconType||n.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(r||[]).map((function(t){var e=t.item,n=e.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:q(e),value:i||r,payload:e.props}})),Y(Y(Y({},a.props),B.a.getWithHeight(a,i)),{},{payload:e,item:a})):null},Q=function(t){var e=t.barSize,n=t.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,s=o.length;a=0}));if(p&&p.length){var A=p[0].props.barSize,C=p[0].props[h];i[C]||(i[C]=[]),i[C].push({item:p[0],stackList:p.slice(1),barSize:S()(A)?e:A})}}return i},J=function(t){var e=t.barGap,n=t.barCategoryGap,r=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,s=o.length;if(s<1)return null;var c,l=Object(F.c)(e,r,0,!0);if(o[0].barSize===+o[0].barSize){var u=!1,g=r/s,f=o.reduce((function(t,e){return t+e.barSize||0}),0);(f+=(s-1)*l)>=r&&(f-=(s-1)*l,l=0),f>=r&&g>0&&(u=!0,f=s*(g*=.9));var d={offset:((r-f)/2>>0)-l,size:0};c=o.reduce((function(t,e){var n=[].concat(V(t),[{item:e.item,position:{offset:d.offset+d.size+l,size:u?g:e.barSize}}]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),[])}else{var h=Object(F.c)(n,r,0,!0);r-2*h-(s-1)*l<=0&&(l=0);var p=(r-2*h-(s-1)*l)/s;p>1&&(p>>=0);var A=a===+a?Math.min(p,a):p;c=o.reduce((function(t,e,n){var r=[].concat(V(t),[{item:e.item,position:{offset:h+(p+l)*n+(p-A)/2,size:A}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:r[r.length-1].position})})),r}),[])}return c},$=function(t,e,n,r){var i=n.children,o=n.width,a=n.margin,s=o-(a.left||0)-(a.right||0),c=K({children:i,legendWidth:s}),l=t;if(c){var u=r||{},g=c.align,f=c.verticalAlign,d=c.layout;("vertical"===d||"horizontal"===d&&"center"===f)&&Object(F.g)(t[g])&&(l=Y(Y({},t),{},H({},g,l[g]+(u.width||0)))),("horizontal"===d||"vertical"===d&&"center"===g)&&Object(F.g)(t[f])&&(l=Y(Y({},t),{},H({},f,l[f]+(u.height||0))))}return l},tt=function(t,e,n,r){var i=e.props.children,o=Object(z.a)(i,"ErrorBar").filter((function(t){var e=t.props.direction;return!(!S()(e)&&!S()(r))||r.indexOf(e)>=0}));if(o&&o.length){var a=o.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var r=U(e,n,0),i=h()(r)?[v()(r),A()(r)]:[r,r],o=a.reduce((function(t,n){var r=U(e,n,0),o=i[0]-Math.abs(h()(r)?r[0]:r),a=i[1]+Math.abs(h()(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}),[1/0,-1/0])}return null},et=function(t,e,n,r){var i=e.map((function(e){return tt(t,e,n,r)})).filter((function(t){return!S()(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null},nt=function(t,e,n,r){var i=e.map((function(e){var i=e.props.dataKey;return"number"===n&&i&&tt(t,e,i)||X(t,i,n,r)}));if("number"===n)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var o={};return i.reduce((function(t,e){for(var n=0,r=e.length;n=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0)?{scale:k.b(),realScaleType:"point"}:"category"===r?{scale:k.a(),realScaleType:"band"}:{scale:j.a(),realScaleType:"linear"};if(f()(n)){var a="scale".concat(u()(n));return{scale:(E[a]||k.b)(),realScaleType:E[a]?a:"point"}}return b()(n)?{scale:n}:{scale:k.b(),realScaleType:"point"}},ct=1e-4,lt=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-ct,o=Math.max(r[0],r[1])+ct,a=t(e[0]),s=t(e[n-1]);(ao||so)&&t.domain([e[0],e[n-1]])}},ut=function(t,e){if(!t)return null;for(var n=0,r=t.length;nr)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]=0?(t[a][n][0]=i,t[a][n][1]=i+s,i=t[a][n][1]):(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a=0?(t[o][n][0]=i,t[o][n][1]=i+a,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}}},dt=function(t,e,n){var r=e.map((function(t){return t.props.dataKey}));return function(){var t=Object(R.a)([]),e=D,n=P,r=N;function i(i){var o,a,s,c=Array.from(t.apply(this,arguments),L),l=c.length,u=-1,g=Object(M.a)(i);try{for(g.s();!(s=g.n()).done;){var f=s.value;for(o=0,++u;o=0?0:i<0?i:r}return n[0]},vt=function(t,e){var n=t.props.stackId;if(Object(F.f)(n)){var r=e[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o=0?r.stackedData[i]:null}}return null},It=function(t,e,n){return Object.keys(t).reduce((function(r,i){var o=t[i].stackedData.reduce((function(t,r){var i=r.slice(e,n+1).reduce((function(t,e){return[v()(e.concat([t[0]]).filter(F.g)),A()(e.concat([t[1]]).filter(F.g))]}),[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},yt=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mt=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bt=function(t,e,n){if(!h()(t))return e;var r=[];if(Object(F.g)(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(yt.test(t[0])){var i=+yt.exec(t[0])[1];r[0]=e[0]-i}else b()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if(Object(F.g)(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(mt.test(t[1])){var o=+mt.exec(t[1])[1];r[1]=e[1]+o}else b()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},xt=function(t,e,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&e&&e.length>=2){for(var i=a()(e,(function(t){return t.coordinate})),o=1/0,s=1,c=i.length;s=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var v={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},I=function(t){return"string"===typeof t?t:t?t.displayName||t.name||"Component":""},y=function(t,e){var n=[],r=[];return r=f()(e)?e.map((function(t){return I(t)})):[I(e)],h.a.Children.forEach(t,(function(t){var e=u()(t,"type.displayName")||u()(t,"type.name");-1!==r.indexOf(e)&&n.push(t)})),n},m=function(t,e){var n=y(t,e);return n&&n[0]},b=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!Object(p.g)(n)||n<=0||!Object(p.g)(r)||r<=0)},x=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],w=function(t){return t&&t.type&&c()(t.type)&&x.indexOf(t.type)>=0},O=function t(e,n){if(e===n)return!0;if(d.Children.count(e)!==d.Children.count(n))return!1;var r=d.Children.count(e);if(0===r)return!0;if(1===r)return S(f()(e)?e[0]:e,f()(n)?n[0]:n);for(var i=0;i0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(s.count=function(e,o){return r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(a?function(e){return a(e)%t===0}:function(e){return s.count(0,e)%t===0}):s:null}),s}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(155);function i(t,e){var n;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=Object(r.a)(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(2),i=n(0),o=n.n(i),a=n(568);function s(t,e){var n=function(e,n){return o.a.createElement(a.a,Object(r.a)({ref:n},e),t)};return n.muiName=a.a.muiName,o.a.memo(o.a.forwardRef(n))}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";function r(t){return t&&t.ownerDocument||document}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return d})),n.d(e,"d",(function(){return h})),n.d(e,"b",(function(){return p}));var r=n(1021),i=n(364),o=n(81),a=n(987);var s=n(141),c=[0,1];function l(t){return t}function u(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function g(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return ie&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(h[0],h[t-1])),r=t>2?f:g,u=d=null,I}function I(e){return isNaN(e=+e)?n:(u||(u=r(h.map(t),p,A)))(t(C(e)))}return I.invert=function(n){return C(e((d||(d=r(p,h.map(t),o.a)))(n)))},I.domain=function(t){return arguments.length?(h=Array.from(t,s.a),v()):h.slice()},I.range=function(t){return arguments.length?(p=Array.from(t),v()):p.slice()},I.rangeRound=function(t){return p=Array.from(t),A=a.a,v()},I.clamp=function(t){return arguments.length?(C=!!t||l,v()):C!==l},I.interpolate=function(t){return arguments.length?(A=t,v()):A},I.unknown=function(t){return arguments.length?(n=t,I):n},function(n,r){return t=n,e=r,v()}}function p(){return h()(l,l)}},function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"e",(function(){return s}));var r=1e3,i=6e4,o=36e5,a=864e5,s=6048e5},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(155);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||Object(r.a)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(4),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(t){return"".concat(Math.round(t),"ms")}e.a={easing:i,duration:o,create:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.duration,s=void 0===n?o.standard:n,c=e.easing,l=void 0===c?i.easeInOut:c,u=e.delay,g=void 0===u?0:u;Object(r.a)(e,["duration","easing","delay"]);return(Array.isArray(t)?t:[t]).map((function(t){return"".concat(t," ").concat("string"===typeof s?s:a(s)," ").concat(l," ").concat("string"===typeof g?g:a(g))})).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var e=t/36;return Math.round(10*(4+15*Math.pow(e,.25)+e/5))}}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function u(t){var e=t.children,n=t.className,r=l(t,["children","className"]),o=a()("recharts-layer",n);return i.a.createElement("g",c({className:o},Object(s.c)(r,!0)),e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(263);var i=n(156),o=n(264);function a(t,e){return Object(r.a)(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||Object(i.a)(t,e)||Object(o.a)()}},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return g}));n(16),n(8),n(12);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;eo&&(l=2*Math.PI-l),{radius:a,angle:s(l),angleInRadian:l}},u=function(t,e){var n=e.startAngle,r=e.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return t+360*Math.min(i,o)},g=function(t,e){var n=t.x,r=t.y,o=l({x:n,y:r},e),a=o.radius,s=o.angle,c=e.innerRadius,g=e.outerRadius;if(ag)return!1;if(0===a)return!0;var f,d=function(t){var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:e-360*o,endAngle:n-360*o}}(e),h=d.startAngle,p=d.endAngle,A=s;if(h<=p){for(;A>p;)A-=360;for(;A=h&&A<=p}else{for(;A>h;)A-=360;for(;A=p&&A<=h}return f?i(i({},e),{},{radius:a,angle:u(A,e)}):null}},function(t,e){t.exports={}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(207);var i=n(261),o=n(156);function a(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(i.a)(t)||Object(o.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return m})),n.d(e,"b",(function(){return C})),n.d(e,"c",(function(){return _})),n.d(e,"d",(function(){return A})),n.d(e,"e",(function(){return y})),n.d(e,"f",(function(){return k}));var r=n(27),i=n(0),o=n.n(i),a=(n(6),n(83)),s=n(356),c=n(74),l=n(2),u=n(357),g=n.n(u),f=(n(437),n(40)),d=n(70),h=n.n(d),p=function(t){var e=Object(s.a)();return e.displayName=t,e}("Router-History"),A=function(t){var e=Object(s.a)();return e.displayName=t,e}("Router"),C=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._isMounted?n.setState({location:t}):n._pendingLocation=t}))),n}Object(r.a)(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(A.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(p.Provider,{children:this.props.children||null,value:this.props.history}))},e}(o.a.Component);o.a.Component;o.a.Component;var v={},I=0;function y(t,e){void 0===e&&(e={}),("string"===typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,c=n.sensitive,l=void 0!==c&&c;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=v[n]||(v[n]={});if(r[t])return r[t];var i=[],o={regexp:g()(t,i,e),keys:i};return I<1e4&&(r[t]=o,I++),o}(n,{end:o,strict:s,sensitive:l}),i=r.regexp,a=r.keys,c=i.exec(t);if(!c)return null;var u=c[0],f=c.slice(1),d=t===u;return o&&!d?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:d,params:a.reduce((function(t,e,n){return t[e.name]=f[n],t}),{})}}),null)}var m=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(A.Consumer,null,(function(e){e||Object(c.a)(!1);var n=t.props.location||e.location,r=t.props.computedMatch?t.props.computedMatch:t.props.path?y(n.pathname,t.props):e.match,i=Object(l.a)({},e,{location:n,match:r}),a=t.props,s=a.children,u=a.component,g=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.a.createElement(A.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:u?o.a.createElement(u,i):g?g(i):null:"function"===typeof s?s(i):null)}))},e}(o.a.Component);function b(t){return"/"===t.charAt(0)?t:"/"+t}function x(t,e){if(!t)return e;var n=b(t);return 0!==e.pathname.indexOf(n)?e:Object(l.a)({},e,{pathname:e.pathname.substr(n.length)})}function w(t){return"string"===typeof t?t:Object(a.e)(t)}function O(t){return function(){Object(c.a)(!1)}}function S(){}o.a.Component;var _=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(A.Consumer,null,(function(e){e||Object(c.a)(!1);var n,r,i=t.props.location||e.location;return o.a.Children.forEach(t.props.children,(function(t){if(null==r&&o.a.isValidElement(t)){n=t;var a=t.props.path||t.props.from;r=a?y(i.pathname,Object(l.a)({},t.props,{path:a})):e.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},e}(o.a.Component);function k(t){var e="withRouter("+(t.displayName||t.name)+")",n=function(e){var n=e.wrappedComponentRef,r=Object(f.a)(e,["wrappedComponentRef"]);return o.a.createElement(A.Consumer,null,(function(e){return e||Object(c.a)(!1),o.a.createElement(t,Object(l.a)({},r,e,{ref:n}))}))};return n.displayName=e,n.WrappedComponent=t,h()(n,t)}o.a.useContext},function(t,e,n){"use strict";e.a=function(t,e){}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var r=function(t){return t.scrollTop};function i(t,e){var n=t.timeout,r=t.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[e.mode]||0,delay:i.transitionDelay}}},function(t,e,n){var r=n(42),i=n(84),o=n(323),a=n(125).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},function(t,e,n){"use strict";n.r(e);var r=n(144);n.d(e,"default",(function(){return r.a}))},function(t,e,n){"use strict";function r(t,e){"function"===typeof t?t(e):t&&(t.current=e)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(343);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){var r=n(61),i=n(320),o=n(84),a=n(322),s=n(319),c=n(446),l=i("wks"),u=r.Symbol,g=c?u:u&&u.withoutSetter||a;t.exports=function(t){return o(l,t)||(s&&o(u,t)?l[t]=u[t]:l[t]=g("Symbol."+t)),l[t]}},function(t,e,n){"use strict";var r=n(259),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();e.a=o},,function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0);function i(t){var e=t.controlled,n=t.default,i=(t.name,t.state,r.useRef(void 0!==e).current),o=r.useState(n),a=o[0],s=o[1];return[i?e:a,r.useCallback((function(t){i||s(t)}),[])]}},function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c}));var r=n(289),i=n(33),o=n(23),a=n(256);function s(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(r.a)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Object(a.a)(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,o,a=e(),s=0,c=a.length-1,l=a[s],u=a[c],g=10;for(u0;){if((o=Object(r.b)(l,u,n))===i)return a[s]=l,a[c]=u,e(a);if(o>0)l=Math.floor(l/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,u=Math.floor(u*o)/o}i=o}return t},t}function c(){var t=Object(i.b)();return t.copy=function(){return Object(i.a)(t,c())},o.b.apply(t,arguments),s(t)}},function(t,e,n){"use strict";function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return"function"===typeof t}function o(){}function a(t){if(!function(t){return"object"===r(t)&&null!==t}(t))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a}))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(60))},function(t,e,n){var r=n(42);t.exports=function(t){return r[t+"Prototype"]}},function(t,e,n){"use strict";function r(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;ot.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&i===+i?"".concat(i,"px"):i),";");var r,i,o}),"")},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===t||null===t||r.a.isSsr)return{width:0,height:0};var n="".concat(t),i=d(e),a="".concat(n,"-").concat(i);if(l.widthCache[a])return l.widthCache[a];try{var s=document.getElementById(f);s||((s=document.createElement("span")).setAttribute("id",f),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var c=o(o({},u),e);Object.keys(c).map((function(t){return s.style[t]=c[t],t})),s.textContent=n;var g=s.getBoundingClientRect(),h={width:g.width,height:g.height};return l.widthCache[a]=h,++l.cacheCount>2e3&&(l.cacheCount=0,l.widthCache={}),h}catch(p){return{width:0,height:0}}},p=function(t){var e=t.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof t.getBoundingClientRect&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-e.clientTop,left:n.left+window.pageXOffset-e.clientLeft}},A=function(t,e){return{chartX:Math.round(t.pageX-e.left),chartY:Math.round(t.pageY-e.top)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return j})),n.d(e,"d",(function(){return P})),n.d(e,"c",(function(){return p})),n.d(e,"f",(function(){return A})),n.d(e,"e",(function(){return h}));var r=n(2);function i(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,i=t.length;r=0;f--){var d=a[f];"."===d?o(a,f):".."===d?(o(a,f),g++):g&&(o(a,f),g--)}if(!l)for(;g--;g)a.unshift("..");!l||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var c=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"===typeof e||"object"===typeof n){var r=s(e),i=s(n);return r!==e||i!==n?t(r,i):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1},l=n(74);function u(t){return"/"===t.charAt(0)?t:"/"+t}function g(t){return"/"===t.charAt(0)?t.substr(1):t}function f(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function d(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function h(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function p(t,e,n,i){var o;"string"===typeof t?(o=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=Object(r.a)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function A(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&c(t.state,e.state)}function C(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"===typeof t?t(e,n):t;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;re?n.splice(e,n.length-e,i):n.push(i),g({action:r,location:i,index:e,entries:n})}}))},replace:function(t,e){var r="REPLACE",i=p(t,e,f(),y.location);u.confirmTransitionTo(i,r,n,(function(t){t&&(y.entries[y.index]=i,g({action:r,location:i}))}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},canGo:function(t){var e=y.index+t;return e>=0&&e2&&void 0!==arguments[2]?arguments[2]:p;if(t.length!==e.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:m,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case l:case u:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case f:return A(t.clientOffset,n.clientOffset)?t:I(I({},t),{},{clientOffset:n.clientOffset});case h:case d:return m;default:return t}}var x="dnd-core/ADD_SOURCE",w="dnd-core/ADD_TARGET",O="dnd-core/REMOVE_SOURCE",S="dnd-core/REMOVE_TARGET";function _(t){return(_="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function j(t,e){return t.filter((function(t){return t!==e}))}function E(t){return"object"===_(t)}function P(t,e){var n=new Map,r=function(t){n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(r),e.forEach(r);var i=[];return n.forEach((function(t,e){1===t&&i.push(e)})),i}function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function T(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:D,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case u:return T(T({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case g:return T(T({},t),{},{isSourcePublic:!0});case f:return T(T({},t),{},{targetIds:n.targetIds});case S:return-1===t.targetIds.indexOf(n.targetId)?t:T(T({},t),{},{targetIds:j(t.targetIds,n.targetId)});case d:return T(T({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case h:return T(T({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function L(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case x:case w:return t+1;case O:case S:return t-1;default:return t}}var F=[],B=[];function z(t,e){return t!==F&&(t===B||"undefined"===typeof e||(n=t,e.filter((function(t){return n.indexOf(t)>-1}))).length>0);var n}function V(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case f:break;case x:case w:case S:case O:return F;case u:case g:case h:case d:default:return B}var e=t.payload,n=e.targetIds,r=void 0===n?[]:n,i=e.prevTargetIds,o=void 0===i?[]:i,a=P(r,o),s=a.length>0||!C(r,o);if(!s)return F;var c=o[o.length-1],l=r[r.length-1];return c!==l&&(c&&a.push(c),l&&a.push(l)),a}function G(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t+1}function W(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:V(t.dirtyHandlerIds,{type:e.type,payload:Y(Y({},e.payload),{},{prevTargetIds:k(t,"dragOperation.targetIds",[])})}),dragOffset:b(t.dragOffset,e),refCount:L(t.refCount,e),dragOperation:N(t.dragOperation,e),stateId:G(t.stateId)}}F.__IS_NONE__=!0,B.__IS_ALL__=!0;var X=n(10);function Z(t,e){return{type:l,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}var q={type:l,payload:{clientOffset:null,sourceClientOffset:null}};function K(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,i=void 0===r||r,o=n.clientOffset,a=n.getSourceClientOffset,s=t.getMonitor(),c=t.getRegistry();t.dispatch(Z(o)),Q(e,s,c);var l=tt(e,s);if(null!==l){var g=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");J(a),g=a(l)}t.dispatch(Z(o,g));var f=c.getSource(l),d=f.beginDrag(s,l);$(d),c.pinSource(l);var h=c.getSourceType(l);return{type:u,payload:{itemType:h,item:d,sourceId:l,clientOffset:o||null,sourceClientOffset:g||null,isSourcePublic:!!i}}}t.dispatch(q)}}function Q(t,e,n){Object(X.a)(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){Object(X.a)(n.getSource(t),"Expected sourceIds to be registered.")}))}function J(t){Object(X.a)("function"===typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}function $(t){Object(X.a)(E(t),"Item must be an object.")}function tt(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function et(t){return function(){if(t.getMonitor().isDragging())return{type:g}}}function nt(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function rt(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;it(e);var i=e.slice(0),o=t.getMonitor(),a=t.getRegistry();ot(i,o,a);var s=o.getItemType();return at(i,a,s),st(i,o,a),{type:f,payload:{targetIds:i,clientOffset:r||null}}}}function it(t){Object(X.a)(Array.isArray(t),"Expected targetIds to be an array.")}function ot(t,e,n){Object(X.a)(e.isDragging(),"Cannot call hover while not dragging."),Object(X.a)(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r=0;r--){var i=t[r];nt(e.getTargetType(i),n)||t.splice(r,1)}}function st(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function lt(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),r=t.getRegistry();ft(n);var i=ht(n);i.forEach((function(i,o){var a=dt(i,o,r,n),s={type:d,payload:{dropResult:lt(lt({},e),a)}};t.dispatch(s)}))}}function ft(t){Object(X.a)(t.isDragging(),"Cannot call drop while not dragging."),Object(X.a)(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function dt(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return function(t){Object(X.a)("undefined"===typeof t||E(t),"Drop result must either be an object or undefined.")}(o),"undefined"===typeof o&&(o=0===e?{}:r.getDropResult()),o}function ht(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function pt(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){Object(X.a)(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var r=e.getSourceId();null!=r&&(n.getSource(r,!0).endDrag(e,r),n.unpinSource());return{type:h}}}function At(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ct(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},r=n.handlerIds;Object(X.a)("function"===typeof t,"listener must be a function."),Object(X.a)("undefined"===typeof r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId,o=function(){var n=e.store.getState(),o=n.stateId;try{o===i||o===i+1&&!z(n.dirtyHandlerIds,r)||t()}finally{i=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;Object(X.a)("function"===typeof t,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=e.store.getState().dragOffset;r!==n&&(n=r,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return Object(X.a)(e,"Expected to find a valid source."),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var e=this.registry.getTarget(t);return Object(X.a)(e,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&nt(this.registry.getTargetType(t),this.getItemType())&&e.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t,!0);return Object(X.a)(e,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}},{key:"isOverTarget",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!t)return!1;var n=e.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(t),i=this.getItemType();if(i&&!nt(r,i))return!1;var o=this.getTargetIds();if(!o.length)return!1;var a=o.indexOf(t);return n?a===o.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return function(t){var e,n,r=t.clientOffset,i=t.initialClientOffset,o=t.initialSourceClientOffset;return r&&i&&o?At((n=o,{x:(e=r).x+n.x,y:e.y+n.y}),i):null}(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return function(t){var e=t.clientOffset,n=t.initialClientOffset;return e&&n?At(e,n):null}(this.store.getState().dragOffset)}}])&&Ct(e.prototype,n),r&&Ct(e,r),t}(),yt=0;function mt(t){return(mt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bt(t,e){e&&Array.isArray(t)?t.forEach((function(t){return bt(t,!1)})):Object(X.a)("string"===typeof t||"symbol"===mt(t),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(vt||(vt={}));var xt=n(359),wt=[],Ot=[],St=xt.a.makeRequestCallFromTimer((function(){if(Ot.length)throw Ot.shift()}));function _t(t){var e;(e=wt.length?wt.pop():new kt).task=t,Object(xt.a)(e)}var kt=function(){function t(){}return t.prototype.call=function(){try{this.task.call()}catch(t){_t.onerror?_t.onerror(t):(Ot.push(t),St())}finally{this.task=null,wt[wt.length]=this}},t}();function jt(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]&&arguments[1];Object(X.a)(this.isSourceId(t),"Expected a valid source ID.");var n=e&&t===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(t);return r}},{key:"getTarget",value:function(t){return Object(X.a)(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return Object(X.a)(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return Object(X.a)(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return Tt(t)===vt.SOURCE}},{key:"isTargetId",value:function(t){return Tt(t)===vt.TARGET}},{key:"removeSource",value:function(t){var e=this;Object(X.a)(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:O,payload:{sourceId:t}}}(t)),_t((function(){e.dragSources.delete(t),e.types.delete(t)}))}},{key:"removeTarget",value:function(t){Object(X.a)(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:S,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);Object(X.a)(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){Object(X.a)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var r=Mt(t);return this.types.set(r,e),t===vt.SOURCE?this.dragSources.set(r,n):t===vt.TARGET&&this.dropTargets.set(r,n),r}}])&&jt(e.prototype,n),r&&jt(e,r),t}();function Nt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lt(t,e){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];Nt(this,t),this.isSetUp=!1,this.handleRefCountChange=function(){var t=e.store.getState().refCount>0;e.backend&&(t&&!e.isSetUp?(e.backend.setup(),e.isSetUp=!0):!t&&e.isSetUp&&(e.backend.teardown(),e.isSetUp=!1))};var r=Ft(n);this.store=r,this.monitor=new It(r,new Dt(r)),r.subscribe(this.handleRefCountChange)}var e,n,r;return e=t,(n=[{key:"receiveBackend",value:function(t){this.backend=t}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var t=this,e=this.store.dispatch,n=function(t){return{beginDrag:K(t),publishDragSource:et(t),hover:rt(t),drop:gt(t),endDrag:pt(t)}}(this);return Object.keys(n).reduce((function(r,i){var o,a=n[i];return r[i]=(o=a,function(){for(var n=arguments.length,r=new Array(n),i=0;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0?1:-1;"insideStart"===o?(r=I+O*s,i=m):"insideEnd"===o?(r=y-O*s,i=!m):"end"===o&&(r=y+O*s,i=m),i=w<=0?i:!i;var S=Object(A.c)(d,h,b,r),_=Object(A.c)(d,h,b,r+359*(i?1:-1)),k="M".concat(S.x,",").concat(S.y,"\n A").concat(b,",").concat(b,",0,1,").concat(i?0:1,",\n ").concat(_.x,",").concat(_.y),j=c()(t.id)?Object(p.j)("recharts-radial-line-"):t.id;return u.a.createElement("text",x({},n,{dominantBaseline:"central",className:f()("recharts-radial-bar-label",l)}),u.a.createElement("defs",null,u.a.createElement("path",{id:j,d:k})),u.a.createElement("textPath",{xlinkHref:"#".concat(j)},e))};function O(t){var e,n=t.viewBox,r=t.position,o=t.value,s=t.children,g=t.content,h=t.className,v=void 0===h?"":h,I=t.textBreakAll;if(!n||c()(o)&&c()(s)&&!Object(l.isValidElement)(g)&&!a()(g))return null;if(Object(l.isValidElement)(g))return Object(l.cloneElement)(g,t);if(a()(g)){if(e=Object(l.createElement)(g,t),Object(l.isValidElement)(e))return e}else e=function(t){var e=t.value,n=t.formatter,r=c()(t.children)?e:t.children;return a()(n)?n(r):r}(t);var y=function(t){return Object(p.g)(t.cx)}(n),b=Object(C.c)(t,!0);if(y&&("insideStart"===r||"insideEnd"===r||"end"===r))return w(t,e,b);var O=y?function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e,o=i.cx,a=i.cy,s=i.innerRadius,c=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if("outside"===r){var u=Object(A.c)(o,a,c+n,l),g=u.x;return{x:g,y:u.y,textAnchor:g>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var f=(s+c)/2,d=Object(A.c)(o,a,f,l);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}}(t):function(t){var e=t.viewBox,n=t.parentViewBox,r=t.offset,o=t.position,a=e,s=a.x,c=a.y,l=a.width,u=a.height,g=u>=0?1:-1,f=g*r,d=g>0?"end":"start",h=g>0?"start":"end",A=l>=0?1:-1,C=A*r,v=A>0?"end":"start",I=A>0?"start":"end";if("top"===o)return m(m({},{x:s+l/2,y:c-g*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(c-n.y,0),width:l}:{});if("bottom"===o)return m(m({},{x:s+l/2,y:c+u+f,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(n.y+n.height-(c+u),0),width:l}:{});if("left"===o){var y={x:s-C,y:c+u/2,textAnchor:v,verticalAnchor:"middle"};return m(m({},y),n?{width:Math.max(y.x-n.x,0),height:u}:{})}if("right"===o){var b={x:s+l+C,y:c+u/2,textAnchor:I,verticalAnchor:"middle"};return m(m({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var x=n?{width:l,height:u}:{};return"insideLeft"===o?m({x:s+C,y:c+u/2,textAnchor:I,verticalAnchor:"middle"},x):"insideRight"===o?m({x:s+l-C,y:c+u/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===o?m({x:s+l/2,y:c+f,textAnchor:"middle",verticalAnchor:h},x):"insideBottom"===o?m({x:s+l/2,y:c+u-f,textAnchor:"middle",verticalAnchor:d},x):"insideTopLeft"===o?m({x:s+C,y:c+f,textAnchor:I,verticalAnchor:h},x):"insideTopRight"===o?m({x:s+l-C,y:c+f,textAnchor:v,verticalAnchor:h},x):"insideBottomLeft"===o?m({x:s+C,y:c+u-f,textAnchor:I,verticalAnchor:d},x):"insideBottomRight"===o?m({x:s+l-C,y:c+u-f,textAnchor:v,verticalAnchor:d},x):i()(o)&&(Object(p.g)(o.x)||Object(p.h)(o.x))&&(Object(p.g)(o.y)||Object(p.h)(o.y))?m({x:s+Object(p.c)(o.x,l),y:c+Object(p.c)(o.y,u),textAnchor:"end",verticalAnchor:"end"},x):m({x:s+l/2,y:c+u/2,textAnchor:"middle",verticalAnchor:"middle"},x)}(t);return u.a.createElement(d.a,x({className:f()("recharts-label",v)},b,O,{breakAll:I}),e)}O.displayName="Label",O.defaultProps={offset:5};var S=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,s=t.radius,c=t.innerRadius,l=t.outerRadius,u=t.x,g=t.y,f=t.top,d=t.left,h=t.width,A=t.height,C=t.clockWise,v=t.labelViewBox;if(v)return v;if(Object(p.g)(h)&&Object(p.g)(A)){if(Object(p.g)(u)&&Object(p.g)(g))return{x:u,y:g,width:h,height:A};if(Object(p.g)(f)&&Object(p.g)(d))return{x:f,y:d,width:h,height:A}}return Object(p.g)(u)&&Object(p.g)(g)?{x:u,y:g,width:0,height:0}:Object(p.g)(e)&&Object(p.g)(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:c||0,outerRadius:l||s||a||0,clockWise:C}:t.viewBox?t.viewBox:{}},_=function(t,e){return t?!0===t?u.a.createElement(O,{key:"label-implicit",viewBox:e}):Object(p.f)(t)?u.a.createElement(O,{key:"label-implicit",viewBox:e,value:t}):Object(l.isValidElement)(t)?t.type===O?Object(l.cloneElement)(t,{key:"label-implicit",viewBox:e}):u.a.createElement(O,{key:"label-implicit",content:t,viewBox:e}):a()(t)?u.a.createElement(O,{key:"label-implicit",content:t,viewBox:e}):i()(t)?u.a.createElement(O,x({viewBox:e},t,{key:"label-implicit"})):null:null};O.parseViewBox=S,O.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=S(t),o=Object(h.a)(r,O.displayName).map((function(t,n){return Object(l.cloneElement)(t,{viewBox:e||i,key:"label-".concat(n)})}));if(!n)return o;var a=_(t.label,e||i);return[a].concat(v(o))}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(2),i=n(4),o=["xs","sm","md","lg","xl"];function a(t){var e=t.values,n=void 0===e?{xs:0,sm:600,md:960,lg:1280,xl:1920}:e,a=t.unit,s=void 0===a?"px":a,c=t.step,l=void 0===c?5:c,u=Object(i.a)(t,["values","unit","step"]);function g(t){var e="number"===typeof n[t]?n[t]:t;return"@media (min-width:".concat(e).concat(s,")")}function f(t,e){var r=o.indexOf(e);return r===o.length-1?g(t):"@media (min-width:".concat("number"===typeof n[t]?n[t]:t).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[o[r+1]]?n[o[r+1]]:e)-l/100).concat(s,")")}return Object(r.a)({keys:o,values:n,up:g,down:function(t){var e=o.indexOf(t)+1,r=n[o[e]];return e===o.length?g("xs"):"@media (max-width:".concat(("number"===typeof r&&e>0?r:t)-l/100).concat(s,")")},between:f,only:function(t){return f(t,t)},width:function(t){return n[t]}},u)}},function(t,e,n){var r,i=n(102);window,r=function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=496)}([function(t,e,n){"use strict";n.r(e),n.d(e,"contains",(function(){return i})),n.d(e,"includes",(function(){return i})),n.d(e,"difference",(function(){return a})),n.d(e,"find",(function(){return y})),n.d(e,"findIndex",(function(){return m})),n.d(e,"firstValue",(function(){return b})),n.d(e,"flatten",(function(){return x})),n.d(e,"flattenDeep",(function(){return w})),n.d(e,"getRange",(function(){return O})),n.d(e,"pull",(function(){return j})),n.d(e,"pullAt",(function(){return P})),n.d(e,"reduce",(function(){return M})),n.d(e,"remove",(function(){return T})),n.d(e,"sortBy",(function(){return D})),n.d(e,"union",(function(){return L})),n.d(e,"uniq",(function(){return N})),n.d(e,"valuesOfKey",(function(){return F})),n.d(e,"head",(function(){return B})),n.d(e,"last",(function(){return z})),n.d(e,"startsWith",(function(){return V})),n.d(e,"endsWith",(function(){return G})),n.d(e,"filter",(function(){return o})),n.d(e,"every",(function(){return W})),n.d(e,"some",(function(){return Y})),n.d(e,"group",(function(){return Z})),n.d(e,"groupBy",(function(){return U})),n.d(e,"groupToMap",(function(){return X})),n.d(e,"getWrapBehavior",(function(){return q})),n.d(e,"wrapBehavior",(function(){return K})),n.d(e,"number2color",(function(){return J})),n.d(e,"parseRadius",(function(){return $})),n.d(e,"clamp",(function(){return tt})),n.d(e,"fixedBase",(function(){return et})),n.d(e,"isDecimal",(function(){return rt})),n.d(e,"isEven",(function(){return it})),n.d(e,"isInteger",(function(){return ot})),n.d(e,"isNegative",(function(){return at})),n.d(e,"isNumberEqual",(function(){return st})),n.d(e,"isOdd",(function(){return ct})),n.d(e,"isPositive",(function(){return lt})),n.d(e,"maxBy",(function(){return ut})),n.d(e,"minBy",(function(){return gt})),n.d(e,"mod",(function(){return ft})),n.d(e,"toDegree",(function(){return ht})),n.d(e,"toInteger",(function(){return pt})),n.d(e,"toRadian",(function(){return Ct})),n.d(e,"forIn",(function(){return vt})),n.d(e,"has",(function(){return It})),n.d(e,"hasKey",(function(){return yt})),n.d(e,"hasValue",(function(){return bt})),n.d(e,"keys",(function(){return p})),n.d(e,"isMatch",(function(){return A})),n.d(e,"values",(function(){return mt})),n.d(e,"lowerCase",(function(){return wt})),n.d(e,"lowerFirst",(function(){return Ot})),n.d(e,"substitute",(function(){return St})),n.d(e,"upperCase",(function(){return _t})),n.d(e,"upperFirst",(function(){return kt})),n.d(e,"getType",(function(){return Et})),n.d(e,"isArguments",(function(){return Pt})),n.d(e,"isArray",(function(){return g})),n.d(e,"isArrayLike",(function(){return r})),n.d(e,"isBoolean",(function(){return Mt})),n.d(e,"isDate",(function(){return Tt})),n.d(e,"isError",(function(){return Rt})),n.d(e,"isFunction",(function(){return l})),n.d(e,"isFinite",(function(){return Dt})),n.d(e,"isNil",(function(){return u})),n.d(e,"isNull",(function(){return Nt})),n.d(e,"isNumber",(function(){return nt})),n.d(e,"isObject",(function(){return d})),n.d(e,"isObjectLike",(function(){return v})),n.d(e,"isPlainObject",(function(){return I})),n.d(e,"isPrototype",(function(){return Ft})),n.d(e,"isRegExp",(function(){return Bt})),n.d(e,"isString",(function(){return R})),n.d(e,"isType",(function(){return c})),n.d(e,"isUndefined",(function(){return zt})),n.d(e,"isElement",(function(){return Vt})),n.d(e,"requestAnimationFrame",(function(){return Gt})),n.d(e,"clearAnimationFrame",(function(){return Wt})),n.d(e,"augment",(function(){return Ut})),n.d(e,"clone",(function(){return Zt})),n.d(e,"debounce",(function(){return qt})),n.d(e,"memoize",(function(){return Kt})),n.d(e,"deepMix",(function(){return Jt})),n.d(e,"each",(function(){return h})),n.d(e,"extend",(function(){return $t})),n.d(e,"indexOf",(function(){return te})),n.d(e,"isEmpty",(function(){return ne})),n.d(e,"isEqual",(function(){return re})),n.d(e,"isEqualWith",(function(){return ie})),n.d(e,"map",(function(){return oe})),n.d(e,"mapValues",(function(){return se})),n.d(e,"mix",(function(){return Ht})),n.d(e,"assign",(function(){return Ht})),n.d(e,"get",(function(){return ce})),n.d(e,"set",(function(){return le})),n.d(e,"pick",(function(){return ge})),n.d(e,"throttle",(function(){return fe})),n.d(e,"toArray",(function(){return de})),n.d(e,"toString",(function(){return xt})),n.d(e,"uniqueId",(function(){return pe})),n.d(e,"noop",(function(){return Ae})),n.d(e,"identity",(function(){return Ce})),n.d(e,"size",(function(){return ve})),n.d(e,"Cache",(function(){return Ie}));var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)},i=function(t,e){return!!r(t)&&t.indexOf(e)>-1},o=function(t,e){if(!r(t))return t;for(var n=[],i=0;i-1;)_.call(t,o,1);return t},E=Array.prototype.splice,P=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,i=n-1;n--;){var o=void 0,a=e[n];n!==i&&a===o||(o=a,E.call(t,a,1))}return t},M=function(t,e,n){if(!g(t)&&!I(t))return t;var r=n;return h(t,(function(t,n){r=e(r,t,n)})),r},T=function(t,e){var n=[];if(!r(t))return n;for(var i=-1,o=[],a=t.length;++ie[i])return 1;if(t[i]n?n:t},et=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))},nt=function(t){return c(t,"Number")},rt=function(t){return nt(t)&&t%1!==0},it=function(t){return nt(t)&&t%2===0},ot=Number.isInteger?Number.isInteger:function(t){return nt(t)&&t%1===0},at=function(t){return nt(t)&&t<0};function st(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)0},ut=function(t,e){if(g(t)){var n,r,i=t[0];return n=l(e)?e(t[0]):t[0][e],h(t,(function(t){(r=l(e)?e(t):t[e])>n&&(i=t,n=r)})),i}},gt=function(t,e){if(g(t)){var n,r,i=t[0];return n=l(e)?e(t[0]):t[0][e],h(t,(function(t){(r=l(e)?e(t):t[e])e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,u)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l},de=function(t){return r(t)?Array.prototype.slice.call(t):[]},he={},pe=function(t){return he[t=t||"g"]?he[t]+=1:he[t]=1,t+he[t]},Ae=function(){},Ce=function(t){return t};function ve(t){return u(t)?0:r(t)?t.length:Object.keys(t).length}var Ie=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},function(t,e,n){"use strict";function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return a})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return c})),n.d(e,"__param",(function(){return l})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return g})),n.d(e,"__generator",(function(){return f})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return h})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return A})),n.d(e,"__spread",(function(){return C})),n.d(e,"__spreadArrays",(function(){return v})),n.d(e,"__spreadArray",(function(){return I})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return m})),n.d(e,"__asyncDelegator",(function(){return b})),n.d(e,"__asyncValues",(function(){return x})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return S})),n.d(e,"__importDefault",(function(){return _})),n.d(e,"__classPrivateFieldGet",(function(){return k})),n.d(e,"__classPrivateFieldSet",(function(){return j}));var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;c--)(o=t[c])&&(s=(a<3?o(s):a>3?o(e,n,s):o(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s}function l(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"===("undefined"===typeof Reflect?"undefined":r(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)}function g(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(e){o(e)}}function s(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}function f(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function A(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function C(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(c,l):u(o[0][2],n)}catch(r){u(o[0][3],r)}var n}function c(t){s("next",t)}function l(t){s("throw",t)}function u(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var O=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&d(e,t,n);return O(e,t),e}function _(t){return t&&t.__esModule?t:{default:t}}function k(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function j(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";function r(){for(var t=[],e=0;e0}Ht.registerInteraction("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Ht.registerInteraction("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Ht.registerInteraction("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Ht.registerInteraction("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Ht.registerInteraction("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Ht.registerInteraction("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Ht.registerInteraction("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Ht.registerInteraction("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Ht.registerInteraction("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Ht.registerInteraction("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Ht.registerInteraction("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Ht.registerInteraction("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Ht.registerInteraction("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ut,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ut,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ut,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Ht.registerInteraction("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Ht.registerInteraction("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ut,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ut,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ut,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Ht.registerInteraction("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ut,action:"path-mask:start"},{trigger:"mousedown",isEnable:Ut,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Ht.registerInteraction("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Ht.registerInteraction("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),Ht.registerInteraction("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Ht.registerInteraction("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Ht.registerInteraction("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),Ht.registerInteraction("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Ht.registerInteraction("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Xt(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Xt(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Ht.registerInteraction("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),r.__exportStar(n(34),e)},function(t,e,n){"use strict";var r=n(5),i=n.n(r),o=n(57),a=n.n(o),s=n(8),c=n.n(s),l=n(35),u=n.n(l),g=n(11),f=n.n(g),d=n(12),h=n.n(d),p=n(6),A=n.n(p),C=n(4),v=n.n(C),I=n(218),y=n.n(I),m=n(36),b=n.n(m),x=n(141),w=n(79),O=n(84),S=n(61),_=n(169),k=n(90),j=n(80),E=n(89),P=n(99),M=n(13),T=n(0),R=n(14),D=n.n(R);function N(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=A()(t);if(e){var i=A()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}var L=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i2&&void 0!==arguments[2]?arguments[2]:function(t){return t},r=v.a.forwardRef((function(e,r){var o=e.title,a=e.description,s=e.autoFit,c=e.forceFit,l=e.errorContent,u=void 0===l?w.a:l,g=e.placeholder,f=e.ErrorBoundaryProps,d=L(e,["title","description","autoFit","forceFit","errorContent","placeholder","ErrorBoundaryProps"]),h=n(d),p=v.a.isValidElement(u)?function(){return u}:u;if(g&&!h.data){var A=!0===g?F:g;return v.a.createElement(w.b,i()({FallbackComponent:p},f),v.a.createElement("div",{style:{width:e.width||"100%",height:e.height||400,textAlign:"center",position:"relative"}},A))}var C=Object(_.a)(o,!1),I=Object(_.a)(a,!1),y=0,m=i()(i()({},z),C.style),b=i()(i()(i()({},B),I.style),{top:m.height});return C.visible&&(y+=m.height),Object(T.isNil)(c)||D()(!1,"\u8bf7\u4f7f\u7528autoFit\u66ff\u4ee3forceFit"),I.visible&&(y+=b.height),v.a.createElement(w.b,i()({FallbackComponent:p},f),v.a.createElement("div",{className:"bizcharts-plot",style:{position:"relative",display:"flex",flexDirection:"column",height:e.height||"100%",width:e.width||"100%"}},C.visible&&v.a.createElement("div",i()({},Object(M.d)(h),{className:"bizcharts-plot-title",style:m}),C.text),I.visible&&v.a.createElement("div",i()({},Object(M.a)(h),{className:"bizcharts-plot-description",style:b}),I.text),v.a.createElement(G,i()({appendPadding:[10+y,5,10,10],autoFit:Object(T.isNil)(s)?c:s,ref:r},h,{PlotClass:t,containerStyle:{top:0,left:0,position:"absolute"}}))))}));return r.displayName=e||t.name,r}},function(t,e,n){var r=n(504);t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},function(t,e,n){var r=n(108),i=n(505);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!==typeof e?i(t):e}},function(t,e,n){"use strict";n.d(e,"f",(function(){return g})),n.d(e,"g",(function(){return f})),n.d(e,"e",(function(){return d})),n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return p})),n.d(e,"d",(function(){return A})),n.d(e,"a",(function(){return C}));var r=n(5),i=n.n(r),o=n(14),a=n.n(o),s=n(0),c=n(217),l=n(146),u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i1&&void 0!==arguments[1]?arguments[1]:"angleAxis",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"xAxis";if(!Object(s.isNil)(t[e]))if(!1!==Object(s.get)(t,"".concat(e,".visible"))){var r=i()({},t[e]);if(!1===Object(s.get)(t,"".concat(e,".line.visible"))&&(r.line=null),!1===Object(s.get)(t,"".concat(e,".grid.visible"))&&(r.grid=null),!1===Object(s.get)(t,"".concat(e,".label.visible")))r.label=!1;else{var o=Object(s.get)(t,"".concat(e,".label"),{});if(o){var a=i()({},o.suffix);Object(s.isNil)(a)&&!a||(o=i()(i()({},o),{formatter:function(t){return"".concat(t).concat(a)}}));var c=o,l=c.offsetX,g=c.offsetY,f=c.offset,d=u(o,["offsetX","offsetY","offset"]);!Object(s.isNil)(f)||Object(s.isNil)(l)&&Object(s.isNil)(g)||("xAxis"===n&&(o=i()(i()({},d),{offset:Object(s.isNil)(l)?g:l})),"yAxis"===n&&(o=i()(i()({},d),{offset:Object(s.isNil)(g)?l:g}))),r.label=o}}!1===Object(s.get)(t,"".concat(e,".tickLine.visible"))&&(r.tickLine=!1),!1===Object(s.get)(t,"".concat(e,".title.visible"))&&(r.title=!1),Object(s.set)(t,n,r)}else Object(s.set)(t,n,!1)},d=function(t,e){var n=Object(s.get)(t,"".concat(e,".visible"));return!1!==n&&null!==n||Object(s.set)(t,e,!1),n},h=function(t){var e=i()({},t);d(e,"tooltip"),d(e,"legend")&&!1===Object(s.get)(e,"legend.title.visible")&&Object(s.set)(e,"legend.title",!1);var n=Object(s.get)(e,"legend.formatter");if(n){var r=Object(s.get)(e,"legend.itemName",{});Object(s.set)(e,"legend.itemName",i()(i()({},r),{formatter:n}))}var o=Object(s.get)(e,"legend.text");o&&Object(s.set)(e,"legend.itemName",o),d(e,"label");var a=Object(s.get)(e,"guideLine",[]),l=Object(s.get)(e,"data",[]),u=Object(s.get)(e,"yField","y");a.forEach((function(t){if(l.length>0){var n="median";switch(t.type){case"max":n=Object(s.maxBy)(l,(function(t){return t[u]}))[u];break;case"mean":n=Object(c.a)(l.map((function(t){return t[u]})))/l.length;break;default:n=Object(s.minBy)(l,(function(t){return t[u]}))[u]}var r=i()(i()({start:["min",n],end:["max",n],style:t.lineStyle,text:{content:n}},t),{type:"line"});Object(s.get)(e,"annotations")||Object(s.set)(e,"annotations",[]),e.annotations.push(r),Object(s.set)(e,"point",!1)}}));var g=Object(s.get)(e,"interactions",[]).find((function(t){return"slider"===t.type}));return g&&Object(s.isNil)(e.slider)&&(e.slider=g.cfg),e},p=function(t,e,n){var r=Object(l.a)(Object(s.get)(e,"events",[])),i=Object(l.a)(Object(s.get)(n,"events",[]));r.forEach((function(n){t.off(n[1],e.events[n[0]])})),i.forEach((function(e){t.on(e[1],n.events[e[0]])}))},A=function(t){var e=Object(s.get)(t,"events",{}),n={};return["onTitleClick","onTitleDblClick","onTitleMouseleave","onTitleMousemove","onTitleMousedown","onTitleMouseup","onTitleMouseenter"].forEach((function(t){e[t]&&(n[t.replace("Title","")]=e[t])})),n},C=function(t){var e=Object(s.get)(t,"events",{}),n={};return["onDescriptionClick","onDescriptionDblClick","onDescriptionMouseleave","onDescriptionMousemove","onDescriptionMousedown","onDescriptionMouseup","onDescriptionMouseenter"].forEach((function(t){e[t]&&(n[t.replace("Description","")]=e[t])})),n}},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){"use strict";n.r(e),n.d(e,"mat3",(function(){return r})),n.d(e,"vec2",(function(){return F})),n.d(e,"vec3",(function(){return B})),n.d(e,"ext",(function(){return i}));var r={};n.r(r),n.d(r,"create",(function(){return a})),n.d(r,"fromMat4",(function(){return s})),n.d(r,"clone",(function(){return c})),n.d(r,"copy",(function(){return l})),n.d(r,"fromValues",(function(){return u})),n.d(r,"set",(function(){return g})),n.d(r,"identity",(function(){return f})),n.d(r,"transpose",(function(){return d})),n.d(r,"invert",(function(){return h})),n.d(r,"adjoint",(function(){return p})),n.d(r,"determinant",(function(){return A})),n.d(r,"multiply",(function(){return C})),n.d(r,"translate",(function(){return v})),n.d(r,"rotate",(function(){return I})),n.d(r,"scale",(function(){return y})),n.d(r,"fromTranslation",(function(){return m})),n.d(r,"fromRotation",(function(){return b})),n.d(r,"fromScaling",(function(){return x})),n.d(r,"fromMat2d",(function(){return w})),n.d(r,"fromQuat",(function(){return O})),n.d(r,"normalFromMat4",(function(){return S})),n.d(r,"projection",(function(){return _})),n.d(r,"str",(function(){return k})),n.d(r,"frob",(function(){return j})),n.d(r,"add",(function(){return E})),n.d(r,"subtract",(function(){return P})),n.d(r,"multiplyScalar",(function(){return M})),n.d(r,"multiplyScalarAndAdd",(function(){return T})),n.d(r,"exactEquals",(function(){return R})),n.d(r,"equals",(function(){return D})),n.d(r,"mul",(function(){return N})),n.d(r,"sub",(function(){return L}));var i={};n.r(i),n.d(i,"leftTranslate",(function(){return z})),n.d(i,"leftRotate",(function(){return V})),n.d(i,"leftScale",(function(){return G})),n.d(i,"transform",(function(){return W})),n.d(i,"direction",(function(){return Y})),n.d(i,"angleTo",(function(){return H})),n.d(i,"vertical",(function(){return U}));var o=n(33);function a(){var t=new o.a(9);return o.a!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function c(t){var e=new o.a(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function l(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[6]=e[6],t[7]=e[7],t[8]=e[8],t}function u(t,e,n,r,i,a,s,c,l){var u=new o.a(9);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=i,u[5]=a,u[6]=s,u[7]=c,u[8]=l,u}function g(t,e,n,r,i,o,a,s,c,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=c,t[8]=l,t}function f(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function d(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function h(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],g=u*a-s*l,f=-u*o+s*c,d=l*o-a*c,h=n*g+r*f+i*d;return h?(h=1/h,t[0]=g*h,t[1]=(-u*r+i*l)*h,t[2]=(s*r-i*a)*h,t[3]=f*h,t[4]=(u*n-i*c)*h,t[5]=(-s*n+i*o)*h,t[6]=d*h,t[7]=(-l*n+r*c)*h,t[8]=(a*n-r*o)*h,t):null}function p(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8];return t[0]=a*u-s*l,t[1]=i*l-r*u,t[2]=r*s-i*a,t[3]=s*c-o*u,t[4]=n*u-i*c,t[5]=i*o-n*s,t[6]=o*l-a*c,t[7]=r*c-n*l,t[8]=n*a-r*o,t}function A(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],c=t[7],l=t[8];return e*(l*o-a*c)+n*(-l*i+a*s)+r*(c*i-o*s)}function C(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],g=e[8],f=n[0],d=n[1],h=n[2],p=n[3],A=n[4],C=n[5],v=n[6],I=n[7],y=n[8];return t[0]=f*r+d*a+h*l,t[1]=f*i+d*s+h*u,t[2]=f*o+d*c+h*g,t[3]=p*r+A*a+C*l,t[4]=p*i+A*s+C*u,t[5]=p*o+A*c+C*g,t[6]=v*r+I*a+y*l,t[7]=v*i+I*s+y*u,t[8]=v*o+I*c+y*g,t}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],g=e[8],f=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=c,t[6]=f*r+d*a+l,t[7]=f*i+d*s+u,t[8]=f*o+d*c+g,t}function I(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],g=e[8],f=Math.sin(n),d=Math.cos(n);return t[0]=d*r+f*a,t[1]=d*i+f*s,t[2]=d*o+f*c,t[3]=d*a-f*r,t[4]=d*s-f*i,t[5]=d*c-f*o,t[6]=l,t[7]=u,t[8]=g,t}function y(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function m(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function b(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function x(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function O(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,c=i+i,l=n*a,u=r*a,g=r*s,f=i*a,d=i*s,h=i*c,p=o*a,A=o*s,C=o*c;return t[0]=1-g-h,t[3]=u-C,t[6]=f+A,t[1]=u+C,t[4]=1-l-h,t[7]=d-p,t[2]=f-A,t[5]=d+p,t[8]=1-l-g,t}function S(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],g=e[9],f=e[10],d=e[11],h=e[12],p=e[13],A=e[14],C=e[15],v=n*s-r*a,I=n*c-i*a,y=n*l-o*a,m=r*c-i*s,b=r*l-o*s,x=i*l-o*c,w=u*p-g*h,O=u*A-f*h,S=u*C-d*h,_=g*A-f*p,k=g*C-d*p,j=f*C-d*A,E=v*j-I*k+y*_+m*S-b*O+x*w;return E?(E=1/E,t[0]=(s*j-c*k+l*_)*E,t[1]=(c*S-a*j-l*O)*E,t[2]=(a*k-s*S+l*w)*E,t[3]=(i*k-r*j-o*_)*E,t[4]=(n*j-i*S+o*O)*E,t[5]=(r*S-n*k-o*w)*E,t[6]=(p*x-A*b+C*m)*E,t[7]=(A*y-h*x-C*I)*E,t[8]=(h*b-p*y+C*v)*E,t):null}function _(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function k(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function j(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function E(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function P(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function M(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function T(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function R(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[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function D(t,e){var n=t[0],r=t[1],i=t[2],a=t[3],s=t[4],c=t[5],l=t[6],u=t[7],g=t[8],f=e[0],d=e[1],h=e[2],p=e[3],A=e[4],C=e[5],v=e[6],I=e[7],y=e[8];return Math.abs(n-f)<=o.b*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-d)<=o.b*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(i-h)<=o.b*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(a-p)<=o.b*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(s-A)<=o.b*Math.max(1,Math.abs(s),Math.abs(A))&&Math.abs(c-C)<=o.b*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(l-v)<=o.b*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(u-I)<=o.b*Math.max(1,Math.abs(u),Math.abs(I))&&Math.abs(g-y)<=o.b*Math.max(1,Math.abs(g),Math.abs(y))}var N=C,L=P,F=n(139),B=n(160);function z(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.fromTranslation(i,n),r.multiply(t,i,e)}function V(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.fromRotation(i,n),r.multiply(t,i,e)}function G(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.fromScaling(i,n),r.multiply(t,i,e)}function W(t,e){for(var n,i,o,a=t?[].concat(t):[1,0,0,0,1,0,0,0,1],s=0,c=e.length;s=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r}function U(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"c",(function(){return f})),n.d(e,"f",(function(){return d.a})),n.d(e,"b",(function(){return h}));var r=n(1),i=n(55),o=n(2),a=n(51);function s(t){var e=t.options,n=e.area,s=e.xField,c=e.yField,l=e.seriesField,u=e.smooth,g=e.tooltip,f=Object(i.a)(g,[s,c,l]),d=f.fields,h=f.formatter;return n?Object(a.a)(Object(o.b)({},t,{options:{type:"area",colorField:l,tooltipFields:d,mapping:Object(r.__assign)({shape:u?"smooth":"area",tooltip:h},n)}})):t}var c=n(0);function l(t){var e=t.options,n=e.line,r=e.stepType,s=e.xField,l=e.yField,u=e.seriesField,g=e.smooth,f=e.connectNulls,d=e.tooltip,h=Object(i.a)(d,[s,l,u]),p=h.fields,A=h.formatter;return n?Object(a.a)(Object(o.b)({},t,{options:{type:"line",colorField:u,tooltipFields:p,mapping:Object(c.deepMix)({shape:r||(g?"smooth":"line"),tooltip:A},n),args:{connectNulls:f}}})):t}function u(t){var e=t.options,n=e.point,s=e.xField,c=e.yField,l=e.seriesField,u=e.sizeField,g=e.shapeField,f=e.tooltip,d=Object(i.a)(f,[s,c,l,u,g]),h=d.fields,p=d.formatter;return n?Object(a.a)(Object(o.b)({},t,{options:{type:"point",colorField:l,shapeField:g,tooltipFields:h,mapping:Object(r.__assign)({tooltip:p},n)}})):t}var g=n(9);function f(t){var e=t.options,n=e.xField,s=e.yField,l=e.interval,u=e.seriesField,f=e.tooltip,d=e.minColumnWidth,h=e.maxColumnWidth,p=e.columnBackground,A=Object(i.a)(f,[n,s,u]),C=A.fields,v=A.formatter,I=(l?Object(a.a)(Object(o.b)({},t,{options:{type:"interval",colorField:u,tooltipFields:C,mapping:Object(r.__assign)({tooltip:v},l),args:{minColumnWidth:d,maxColumnWidth:h,background:p}}})):t).ext;return function(t){var e=t.chart,n=t.options,r=t.ext,i=n.seriesField,a=n.isGroup,s=n.isStack,l=n.marginRatio,u=n.widthRatio,f=n.groupField,d=n.theme,h=[];return i&&(a&&h.push({type:"dodge",dodgeBy:f||i,marginRatio:l}),s&&h.push({type:"stack",marginRatio:l})),h.length&&(null===r||void 0===r?void 0:r.geometry)&&(null===r||void 0===r?void 0:r.geometry).adjust(h),Object(c.isNil)(u)||e.theme(Object(o.b)({},Object(c.isObject)(d)?d:Object(g.getTheme)(d),{columnWidthRatio:u})),t}(Object(r.__assign)(Object(r.__assign)({},t),{ext:I}))}var d=n(203);function h(t){var e=t.options,n=e.edge,s=e.xField,c=e.yField,l=e.seriesField,u=e.tooltip,g=Object(i.a)(u,[s,c,l]),f=g.fields,d=g.formatter;return n?Object(a.a)(Object(o.b)({},t,{options:{type:"edge",colorField:l,tooltipFields:f,mapping:Object(r.__assign)({tooltip:d},n)}})):t}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"h",(function(){return a})),n.d(e,"k",(function(){return s})),n.d(e,"j",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"e",(function(){return g})),n.d(e,"i",(function(){return f})),n.d(e,"d",(function(){return d})),n.d(e,"m",(function(){return h})),n.d(e,"l",(function(){return p})),n.d(e,"f",(function(){return A}));var r=n(0);function i(t){var e=0,n=0,i=0,o=0;return Object(r.isNumber)(t)?e=n=i=o=t:Object(r.isArray)(t)&&(e=t[0],i=Object(r.isNil)(t[1])?t[0]:t[1],o=Object(r.isNil)(t[2])?t[0]:t[2],n=Object(r.isNil)(t[3])?i:t[3]),[e,i,o,n]}function o(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])}function a(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function s(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function c(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function l(t,e,n,r){var i=t+n,o=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(o)?0:o}}function u(t,e,n){return(1-n)*t+e*n}function g(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}var f=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)0?Object(r.each)(u,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=d(t),n=t.applyToMatrix([e.minX,e.minY,1]),r=t.applyToMatrix([e.minX,e.maxY,1]),i=t.applyToMatrix([e.maxX,e.minY,1]),l=t.applyToMatrix([e.maxX,e.maxY,1]),u=Math.min(n[0],r[0],i[0],l[0]),g=Math.max(n[0],r[0],i[0],l[0]),f=Math.min(n[1],r[1],i[1],l[1]),h=Math.max(n[1],r[1],i[1],l[1]);ua&&(a=g),fc&&(c=h)}})):(o=0,a=0,s=0,c=0),e=l(o,s,a-o,c-s)}else e=t.getBBox();return i?function(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return l(n,r,Math.min(t.maxX,e.maxX)-n,Math.min(t.maxY,e.maxY)-r)}(e,i):e}function h(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}}function p(t){return t+"px"}function A(t,e,n,r){var i=r/function(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}(t,e),o=0;return"start"===n?o=0-i:"end"===n&&(o=1+i),{x:u(t.x,e.x,o),y:u(t.y,e.y,o)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(1),i=n(9),o=n(0),a=n(128),s=n(310),c=n(2),l="data-chart-source-type",u=function(t){function e(e,n){var r=t.call(this)||this;return r.type="base",r.container="string"===typeof e?document.getElementById(e):e,r.options=Object(c.b)({},r.getDefaultOptions(),n),r.createG2(),r.bindEvents(),r}return Object(r.__extends)(e,t),e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,o=t.padding,a=t.appendPadding,s=t.renderer,c=t.pixelRatio,u=t.syncViewPadding,g=t.supportCSSTransform,f=t.limitInPlot;this.chart=new i.Chart(Object(r.__assign)(Object(r.__assign)({container:this.container,autoFit:!1},this.getChartSize(e,n)),{padding:o,appendPadding:a,renderer:s,pixelRatio:c,localRefresh:!1,syncViewPadding:u,supportCSSTransform:g,limitInPlot:f})),this.container.setAttribute(l,"G2Plot")},e.prototype.getChartSize=function(t,e){var n=Object(c.g)(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null===e||void 0===e?void 0:e.type)&&t.emit(e.type,e)}))},e.prototype.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=Object(c.b)({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Object(c.f)(this.chart);Object(o.each)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(c.f)(this.chart),e=[];return Object(o.each)(t,(function(t){var n=t.getData(),r=t.getStates();Object(o.each)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute(l)},e.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),e=this.options,n=e.padding,r=e.appendPadding;this.chart.padding=n,this.chart.appendPadding=r,t({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var e=this.options.autoFit;(void 0===e||e)&&(this.unbind=Object(s.bind)(this.container,(function(){var e=Object(c.g)(t.container),n=e.width,r=e.height;n===t.chart.width&&r===t.chart.height||t.triggerResize()})))}},e.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},e}(a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(63);e.default=function(t,e,n){for(var i=0,o=r.default(e)?e.split("."):e;t&&i=t&&i<=t+n&&o>=e&&o<=e+r}function s(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY(n-t)*(n-t)+(r-e)*(r-e)?a(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(g.exactEquals(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];g.normalize(s,s);var c=[i-t,o-e];return Math.abs(g.dot(c,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function d(t,e,n,r,i,o){var s,c=1/0,l=[n,r],u=20;o&&o>200&&(u=o/10);for(var g=1/u,f=g/10,d=0;d<=u;d++){var h=d*g,p=[i.apply(null,t.concat([h])),i.apply(null,e.concat([h]))];(I=a(l[0],l[1],p[0],p[1]))=0&&I=0?[i]:[]}function A(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function C(t,e,n,r,i,o,a){var s=h(t,n,i,a),c=h(e,r,o,a),l=f.pointAt(t,e,n,r,a),u=f.pointAt(n,r,i,o,a);return[[t,e,l.x,l.y,s,c],[s,c,u.x,u.y,i,o]]}function v(t,e,n,r,i,o,s){if(0===s)return(a(t,e,n,r)+a(n,r,i,o)+a(t,e,i,o))/2;var c=C(t,e,n,r,i,o,.5),l=c[0],u=c[1];return l.push(s-1),u.push(s-1),v.apply(null,l)+v.apply(null,u)}var I={box:function(t,e,n,r,i,o){var a=p(t,n,i)[0],s=p(e,r,o)[0],l=[t,i],u=[e,o];return void 0!==a&&l.push(h(t,n,i,a)),void 0!==s&&u.push(h(e,r,o,s)),c(l,u)},length:function(t,e,n,r,i,o){return v(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return d([t,n,i],[e,r,o],a,s,h)},pointDistance:function(t,e,n,r,i,o,s,c){var l=this.nearestPoint(t,e,n,r,i,o,s,c);return a(l.x,l.y,s,c)},interpolationAt:h,pointAt:function(t,e,n,r,i,o,a){return{x:h(t,n,i,a),y:h(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return C(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=A(t,n,i,a),c=A(e,r,o,a);return u(Math.atan2(c,s))}};function y(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function m(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function b(t,e,n,r){var i,o,a,c=-3*t+9*e-9*n+3*r,l=6*t-12*e+6*n,u=3*e-3*t,g=[];if(s(c,0))s(l,0)||(i=-u/l)>=0&&i<=1&&g.push(i);else{var f=l*l-4*c*u;s(f,0)?g.push(-l/(2*c)):f>0&&(o=(-l-(a=Math.sqrt(f)))/(2*c),(i=(-l+a)/(2*c))>=0&&i<=1&&g.push(i),o>=0&&o<=1&&g.push(o))}return g}function x(t,e,n,r,i,o,a,s,c){var l=y(t,n,i,a,c),u=y(e,r,o,s,c),g=f.pointAt(t,e,n,r,c),d=f.pointAt(n,r,i,o,c),h=f.pointAt(i,o,a,s,c),p=f.pointAt(g.x,g.y,d.x,d.y,c),A=f.pointAt(d.x,d.y,h.x,h.y,c);return[[t,e,g.x,g.y,p.x,p.y,l,u],[l,u,A.x,A.y,h.x,h.y,a,s]]}function w(t,e,n,r,i,o,s,c,l){if(0===l)return function(t,e){for(var n=0,r=t.length,i=0;i0?n:-1*n}var _=function(t,e,n,r,i,o){var a=n,s=r;if(0===a||0===s)return{x:t,y:e};for(var c,l,u=i-t,g=o-e,f=Math.abs(u),d=Math.abs(g),h=a*a,p=s*s,A=Math.PI/4,C=0;C<4;C++){c=a*Math.cos(A),l=s*Math.sin(A);var v=(h-p)*Math.pow(Math.cos(A),3)/a,I=(p-h)*Math.pow(Math.sin(A),3)/s,y=c-v,m=l-I,b=f-v,x=d-I,w=Math.hypot(m,y),O=Math.hypot(x,b);A+=w*Math.asin((y*x-m*b)/(w*O))/Math.sqrt(h+p-c*c-l*l),A=Math.min(Math.PI/2,Math.max(0,A))}return{x:t+S(c,u),y:e+S(l,g)}};function k(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function j(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function E(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function P(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}var M={box:function(t,e,n,r,i,o,a){for(var s=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),c=1/0,l=-1/0,u=[o,a],g=2*-Math.PI;g<=2*Math.PI;g+=Math.PI){var f=s+g;ol&&(l=d)}var h=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),p=1/0,A=-1/0,C=[o,a];for(g=2*-Math.PI;g<=2*Math.PI;g+=Math.PI){var v=h+g;oA&&(A=I)}return{x:c,y:p,width:l-c,height:A-p}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,s,c){var l=P(s-t,c-e,-i),u=l[0],g=l[1],f=_(0,0,n,r,u,g),d=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,f.x,f.y);da&&(f=E(n,r,a));var h=P(f.x,f.y,i);return{x:h[0]+t,y:h[1]+e}},pointDistance:function(t,e,n,r,i,o,s,c,l){var u=this.nearestPoint(t,e,n,r,c,l);return a(u.x,u.y,c,l)},pointAt:function(t,e,n,r,i,o,a,s){var c=(a-o)*s+o;return{x:k(t,0,n,r,i,c),y:j(0,e,n,r,i,c)}},tangentAngle:function(t,e,n,r,i,o,a,s){var c=(a-o)*s+o,l=function(t,e,n,r,i,o,a,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,r,i,0,0,c),g=function(t,e,n,r,i,o,a,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,r,i,0,0,c);return u(Math.atan2(g,l))}};function T(t){for(var e=0,n=[],r=0;r1||e<0||t.length<2)return null;var n=T(t),r=n.segments,i=n.totalLength;if(0===i)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,s=0;s=o&&e<=o+g){var d=(e-o)/g;a=f.pointAt(l[0],l[1],u[0],u[1],d);break}o+=g}return a}function N(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=T(t),r=n.segments,i=n.totalLength,o=0,a=0,s=0;s=o&&e<=o+g){a=Math.atan2(u[1]-l[1],u[0]-l[0]);break}o+=g}return a}function L(t,e,n){for(var r=1/0,i=0;i]*>/,s={tr:document.createElement("tbody"),tbody:i,thead:i,tfoot:i,td:o,th:o,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in s||(e="*");var n=s[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r}function l(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(i){}finally{r=void 0===r?n:r}return r}function u(t,e){var n=l(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}function g(t,e){var n=u(t,e),r=parseFloat(l(t,"borderTopWidth"))||0,i=parseFloat(l(t,"paddingTop"))||0,o=parseFloat(l(t,"paddingBottom"))||0;return n+r+(parseFloat(l(t,"borderBottomWidth"))||0)+i+o+(parseFloat(l(t,"marginTop"))||0)+(parseFloat(l(t,"marginBottom"))||0)}function f(t,e){var n=l(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}function d(t,e){var n=f(t,e),r=parseFloat(l(t,"borderLeftWidth"))||0,i=parseFloat(l(t,"paddingLeft"))||0,o=parseFloat(l(t,"paddingRight"))||0,a=parseFloat(l(t,"borderRightWidth"))||0,s=parseFloat(l(t,"marginRight"))||0;return n+r+a+i+o+(parseFloat(l(t,"marginLeft"))||0)+s}function h(){return window.devicePixelRatio?window.devicePixelRatio:2}function p(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}n.r(e),n.d(e,"addEventListener",(function(){return r})),n.d(e,"createDom",(function(){return c})),n.d(e,"getHeight",(function(){return u})),n.d(e,"getOuterHeight",(function(){return g})),n.d(e,"getOuterWidth",(function(){return d})),n.d(e,"getRatio",(function(){return h})),n.d(e,"getStyle",(function(){return l})),n.d(e,"getWidth",(function(){return f})),n.d(e,"modifyCSS",(function(){return p}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n
',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShapeFactory=e.registerShape=e.registerShapeFactory=void 0;var r=n(1),i=n(72),o=n(0),a=n(154),s={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return o.get(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var i=this.theme,a=o.get(i,[t,"default"],{}),s=n.getMarker(e);return o.deepMix({},a,s)},drawShape:function(t,e,n){return this.getShape(t).draw(e,n)}},c={coordinate:null,parsePath:function(t){var e=this.coordinate,n=i.parsePathString(t);return n=e.isPolar?a.convertPolarPath(e,n):a.convertNormalPath(e,n)},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},l={};e.registerShapeFactory=function(t,e){var n=o.upperFirst(t),i=r.__assign(r.__assign(r.__assign({},s),e),{geometryType:t});return l[n]=i,i},e.registerShape=function(t,e,n){var i=o.upperFirst(t),a=l[i],s=r.__assign(r.__assign({},c),n);return a[e]=s,s},e.getShapeFactory=function(t){var e=o.upperFirst(t);return l[e]}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return c}));var r=n(0),i=n(22);function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function a(t){var e=i.a[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=o(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(r)}return r}function s(t,e){var n=t.get("el"),i=Object(r.toArray)(n.children).sort(e),o=document.createDocumentFragment();i.forEach((function(t){o.appendChild(t)})),n.appendChild(o)}function c(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(o=e||n.height>=e?n:null}function c(t){var e=t.geometries,n=[];return r.each(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&r.each(t.views,(function(t){n=n.concat(c(t))})),n}function l(t,e){var n=t.getModel().data;return r.isArray(n)?n[0][e]:n[e]}function u(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=e||r.height>=e?n.attr("path"):null}(t,e);if(!n)return;return d(t.view,n)}var r=s(t,e);return r?g(t.view,r):null},e.getSiblingMaskElements=function(t,e,n){var r=s(t,n);if(!r)return null;var i=t.view,o=h(i,e,{x:r.x,y:r.y}),a=h(i,e,{x:r.maxX,y:r.maxY});return g(e,{minX:o.x,minY:o.y,maxX:a.x,maxY:a.y})},e.getElements=c,e.getElementsByField=function(t,e,n){return c(t).filter((function(t){return l(t,e)===n}))},e.getElementsByState=function(t,e){var n=t.geometries,i=[];return r.each(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i},e.getElementValue=l,e.intersectRect=u,e.getIntersectElements=g,e.getElementsByPath=d,e.getComponents=function(t){return t.getComponents().map((function(t){return t.component}))},e.distance=function(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)},e.getSpline=function(t,e){if(t.length<=2)return i.getLinePath(t,!1);var n=t[0],o=[];r.each(t,(function(t){o.push(t.x),o.push(t.y)}));var a=i.catmullRom2bezier(o,e,null);return a.unshift(["M",n.x,n.y]),a},e.isInBox=function(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y},e.getSilbings=function(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n},e.getSiblingPoint=h,e.isInRecords=function(t,e,n,i){var o=!1;return r.each(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return o=!0,!1})),o},e.getScaleByField=function t(e,n){var i=e.getScaleByField(n);return!i&&e.views&&r.each(e.views,(function(e){if(i=t(e,n))return!1})),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Plot=void 0;var r=n(1),i=n(9),o=n(0),a=r.__importDefault(n(128)),s=n(310),c=n(20),l="data-chart-source-type",u=function(t){function e(e,n){var r=t.call(this)||this;return r.type="base",r.container="string"===typeof e?document.getElementById(e):e,r.options=c.deepAssign({},r.getDefaultOptions(),n),r.createG2(),r.bindEvents(),r}return r.__extends(e,t),e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,o=t.padding,a=t.appendPadding,s=t.renderer,c=t.pixelRatio,u=t.syncViewPadding,g=t.supportCSSTransform,f=t.limitInPlot;this.chart=new i.Chart(r.__assign(r.__assign({container:this.container,autoFit:!1},this.getChartSize(e,n)),{padding:o,appendPadding:a,renderer:s,pixelRatio:c,localRefresh:!1,syncViewPadding:u,supportCSSTransform:g,limitInPlot:f})),this.container.setAttribute(l,"G2Plot")},e.prototype.getChartSize=function(t,e){var n=c.getContainerSize(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null===e||void 0===e?void 0:e.type)&&t.emit(e.type,e)}))},e.prototype.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=c.deepAssign({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=c.getAllElements(this.chart);o.each(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=c.getAllElements(this.chart),e=[];return o.each(t,(function(t){var n=t.getData(),r=t.getStates();o.each(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute(l)},e.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),e=this.options,n=e.padding,r=e.appendPadding;this.chart.padding=n,this.chart.appendPadding=r,t({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var e=this.options.autoFit;(void 0===e||e)&&(this.unbind=s.bind(this.container,(function(){var e=c.getContainerSize(t.container),n=e.width,r=e.height;n===t.chart.width&&r===t.chart.height||t.triggerResize()})))}},e.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},e}(a.default);e.Plot=u},function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return d})),n.d(e,"e",(function(){return A})),n.d(e,"h",(function(){return C})),n.d(e,"f",(function(){return v})),n.d(e,"g",(function(){return I}));var r=n(0),i=n(210),o=n(165),a=n(23),s=n(58),c={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function l(t,e){var n=e.attr();for(var o in n){var a=n[o],s=c[o]?c[o]:o;"matrix"===s&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===s&&t.setLineDash?Object(r.isArray)(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=Object(i.b)(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}}function u(t,e,n){for(var r=0;rb?m:b,k=m>b?1:m/b,j=m>b?b/m:1;e.translate(I,y),e.rotate(O),e.scale(k,j),e.arc(0,0,_,x,w,1-S),e.scale(1/k,1/j),e.rotate(-O),e.translate(-I,-y)}break;case"Z":e.closePath()}if("Z"===h)l=u;else{var E=d.length;l=[d[E-2],d[E-1]]}}}}function C(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function v(t){if(!t.length)return null;var e=[],n=[],i=[],o=[];return Object(r.each)(t,(function(t){var r=function(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),o=i&&!(!i.width||!i.height);r&&o?e=Object(a.l)(n,i):r?e=n:o&&(e=i)}return e}(t);r&&(e.push(r.minX),n.push(r.minY),i.push(r.maxX),o.push(r.maxY))})),{minX:Math.min.apply(null,e),minY:Math.min.apply(null,n),maxX:Math.max.apply(null,i),maxY:Math.max.apply(null,o)}}function I(t,e){return t&&e&&Object(a.f)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"f",(function(){return c}));var r="range",i="type",o="percent",a="#f0f0f0",s="indicator-view",c="range-view"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInPlot=e.annotation=e.scale=e.scrollbar=e.slider=e.state=e.theme=e.animation=e.interaction=e.tooltip=e.legend=void 0;var r=n(1),i=n(0),o=n(259),a=n(20);e.legend=function(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.seriesField;return!1===r?e.legend(!1):(i||o)&&e.legend(i||o,r),t},e.tooltip=function(t){var e=t.chart,n=t.options.tooltip;return void 0!==n&&e.tooltip(n),t},e.interaction=function(t){var e=t.chart,n=t.options.interactions;return i.each(n,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),t},e.animation=function(t){var e=t.chart,n=t.options.animation;return"boolean"===typeof n?e.animate(n):e.animate(!0),i.each(e.geometries,(function(t){t.animate(n)})),t},e.theme=function(t){var e=t.chart,n=t.options.theme;return n&&e.theme(n),t},e.state=function(t){var e=t.chart,n=t.options.state;return n&&i.each(e.geometries,(function(t){t.state(n)})),t},e.slider=function(t){var e=t.chart,n=t.options.slider;return e.option("slider",n),t},e.scrollbar=function(t){var e=t.chart,n=t.options.scrollbar;return e.option("scrollbar",n),t},e.scale=function(t,e){return function(n){var r=n.chart,s=n.options,c={};return i.each(t,(function(t,e){c[e]=a.pick(t,o.AXIS_META_CONFIG_KEYS)})),c=a.deepAssign({},e,s.meta,c),r.scale(c),n}},e.annotation=function(t){return function(e){var n=e.chart,o=e.options,a=n.getController("annotation");return i.each(r.__spreadArrays(o.annotations||[],t||[]),(function(t){a.annotation(t)})),e}},e.limitInPlot=function(t){var e=t.chart,n=t.options,r=n.yAxis,o=n.limitInPlot,s=o;return i.isObject(r)&&i.isNil(o)&&(s=!!Object.values(a.pick(r,["min","max","minLimit","maxLimit"])).some((function(t){return!i.isNil(t)}))),e.limitInPlot=s,t}},function(t,e,n){"use strict";function r(t,e){return t.views.find((function(t){return t.id===e}))}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(5),i=n.n(r),o=n(8),a=n.n(o),s=n(35),c=n.n(s),l=n(11),u=n.n(l),g=n(12),f=n.n(g),d=n(6),h=n.n(d),p=n(4),A=n.n(p),C=n(264),v=n.n(C),I=n(0),y=n(61),m=n(7);function b(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}Object(m.registerComponentController)("annotation",v.a);var x=function(t){u()(n,t);var e=b(n);function n(){var t;return a()(this,n),(t=e.apply(this,arguments)).annotationType="line",t}return c()(n,[{key:"componentDidMount",value:function(){var t=this.getChartIns();this.id=I.uniqueId("annotation"),this.annotation=t.annotation(),this.annotation[this.annotationType](this.props),this.annotation.option[this.annotation.option.length-1].__id=this.id}},{key:"componentDidUpdate",value:function(){var t=this,e=null;this.annotation.option.forEach((function(n,r){n.__id===t.id&&(e=r)})),this.annotation.option[e]=i()(i()({type:this.annotationType},this.props),{__id:this.id}),this.getChartIns().render()}},{key:"componentWillUnmount",value:function(){var t=this,e=null;this.annotation&&(this.annotation.option.forEach((function(n,r){n.__id===t.id&&(e=r)})),null!==e&&this.annotation.option.splice(e,1),this.annotation=null)}},{key:"getChartIns",value:function(){return this.context}},{key:"render",value:function(){return null}}]),n}(A.a.Component);x.contextType=y.a,e.a=x},function(t,e,n){"use strict";var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(6),c=n.n(s),l=n(57),u=n.n(l),g=n(8),f=n.n(g),d=n(35),h=n.n(d),p=n(4),A=n.n(p),C=n(63),v=n.n(C),I=n(36),y=n.n(I),m=n(103),b=n.n(m),x=(n(374),n(61)),w=n(7),O=n(69),S=n.n(O),_=n(32),k=n.n(_),j=n(90),E=function(t,e,n,r){var i,o;null!==t?S()(n,(function(n){i=t[n],o=e[n],Object(j.a)(o,i)||(k()(o)||(o=[o]),r(o,n))})):S()(n,(function(t){var n=e[t];void 0!==n&&(k()(n)||(n=[n]),r(n,t))}))},P=n(14),M=n.n(P),T=(n(258),n(295)),R=n.n(T),D=n(296),N=n.n(D),L=n(297),F=n.n(L),B=n(298),z=n.n(B),V=n(162),G=n.n(V),W=n(300),Y=n.n(W),H=n(299),U=n.n(H),X=n(301),Z=n.n(X),q=n(213),K=n.n(q),Q=n(303),J=n.n(Q),$=n(304),tt=n.n($),et=n(302),nt=n.n(et),rt=n(308),it=n.n(rt);Object(w.registerAction)("cursor",it.a),Object(w.registerAction)("element-active",R.a),Object(w.registerAction)("element-single-active",z.a),Object(w.registerAction)("element-range-active",F.a),Object(w.registerAction)("element-highlight",G.a),Object(w.registerAction)("element-highlight-by-x",Y.a),Object(w.registerAction)("element-highlight-by-color",U.a),Object(w.registerAction)("element-single-highlight",Z.a),Object(w.registerAction)("element-range-highlight",K.a),Object(w.registerAction)("element-sibling-highlight",K.a,{effectSiblings:!0,effectByRecord:!0}),Object(w.registerAction)("element-selected",J.a),Object(w.registerAction)("element-single-selected",tt.a),Object(w.registerAction)("element-range-selected",nt.a),Object(w.registerAction)("element-link-by-color",N.a),Object(w.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Object(w.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Object(w.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Object(w.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Object(w.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]});var ot=n(89);function at(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c()(t);if(e){var i=c()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a()(this,n)}}Object(w.registerGeometryLabel)("base",b.a);var st=["line","area"],ct=function(){function t(){f()(this,t),this.config={}}return h()(t,[{key:"setView",value:function(t){this.view=t,this.rootChart=t.rootChart||t}},{key:"createGeomInstance",value:function(t,e){this.geom=this.view[t](e);var n=e.sortable;this.geom.__beforeMapping=this.geom.beforeMapping,this.geom.beforeMapping=function(e){var r=this.getXScale();return!1!==n&&e&&e[0]&&st.includes(t)&&["time","timeCat"].includes(r.type)&&this.sort(e),this.__beforeMapping(e)},this.GemoBaseClassName=t}},{key:"update",value:function(t,e){var n=this;if(!this.geom){this.setView(e.context);var r={sortable:t.sortable,visible:t.visible,connectNulls:t.connectNulls};this.createGeomInstance(e.GemoBaseClassName,r),this.interactionTypes=e.interactionTypes}E(this.config,t,["position","shape","color","label","style","tooltip","size","animate","state"],(function(t,e){var r;M()(!("label"===e&&!0===t[0]),"label \u503c\u7c7b\u578b\u9519\u8bef\uff0c\u5e94\u4e3afalse | LabelOption | FieldString"),(r=n.geom)[e].apply(r,u()(t))})),E(this.config,t,["adjust"],(function(t,e){v()(t[0])?n.geom[e](t[0]):n.geom[e](t)})),this.geom.state(t.state||{}),this.rootChart.on("processElemens",(function(){y()(t.setElements)&&t.setElements(n.geom.elements)})),E(this.config,t,this.interactionTypes,(function(t,e){t[0]?n.rootChart.interaction(e):n.rootChart.removeInteraction(e)})),this.config=Object(ot.a)(t)}},{key:"destroy",value:function(){this.geom&&(this.geom.destroy(),this.geom=null),this.config={}}}]),t}(),lt=function(t){i()(n,t);var e=at(n);function n(t){var r;return f()(this,n),(r=e.call(this,t)).interactionTypes=[],r.geomHelper=new ct,r}return h()(n,[{key:"componentWillUnmount",value:function(){this.geomHelper.destroy()}},{key:"render",value:function(){var t=this;return this.geomHelper.update(this.props,this),A.a.createElement(A.a.Fragment,null,A.a.Children.map(this.props.children,(function(e){return A.a.isValidElement(e)?A.a.cloneElement(e,{parentInstance:t.geomHelper.geom}):A.a.createElement(A.a.Fragment,null)})))}}]),n}(A.a.Component);lt.contextType=x.a,e.a=lt},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(1),i=n(0),o=n(2);function a(t,e){var n=t.xField,o=t.yField,a=t.colorField,s=t.shapeField,c=t.sizeField,l=t.styleField,u=t.rawFields,g=void 0===u?[]:u,f=[];if("color"===e)f=Object(r.__spreadArrays)([a||n],g);else if("shape"===e)f=Object(r.__spreadArrays)([s||n],g);else if("size"===e)f=Object(r.__spreadArrays)([c||n],g);else{f=Object(r.__spreadArrays)([n,o,a,s,c,l],g);var d=["x","y","color","shape","size","style"].indexOf(e),h=f[d];f.splice(d,1),f.unshift(h)}return Object(i.uniq)(f.filter((function(t){return!!t})))}function s(t,e){if(e)return function(){for(var n=[],r=0;rt.x?t.x:e,n=nt.y?t.y:i,o=o=t&&i<=t+n&&o>=e&&o<=e+r},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=0})),o=n.every((function(t){return Object(r.get)(t,[e])<=0}));return i?{min:0}:o?{max:0}:{}}function o(t,e,n,r){if(!Array.isArray(t))return{nodes:[],links:[]};var i=[],o={},a=-1;return t.forEach((function(t){var s=t[e],c=t[n],l=t[r];o[s]||(o[s]={id:++a,name:s}),o[c]||(o[c]={id:++a,name:c}),i.push({source:o[s].id,target:o[c].id,value:l})})),{nodes:Object.values(o),links:i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32),i=n(73);e.default=function(t,e){if(t)if(r.default(t))for(var n=0,o=t.length;n1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0};function s(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}function c(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var o=[],a=0;a=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r}function u(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a=0;l--)s=a[l].index,"add"===a[l].type?t.splice(s,0,[].concat(t[s])):t.splice(s,1)}if((i=t.length)0)){t[r]=e[r];break}n=h(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=h(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=h(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}function A(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}var C="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",v=new RegExp("([a-z])["+C+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+C+"]*,?["+C+"]*)+)","ig"),I=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+C+"]*,?["+C+"]*","ig");function y(t){if(!t)return null;if(Object(r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(v,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(I,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""})),n}var m=/[a-z]/;function b(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function x(t){var e=y(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,c=0,l=0,u=0,g=e[0];"M"!==g[0]&&"m"!==g[0]||(c=a=+g[1],l=s=+g[2],u++,o[0]=["M",a,s]),r=u;for(var f=e.length;r1&&(r*=b=Math.sqrt(b),i*=b);var x=r*r,w=i*i,O=(a===s?-1:1)*Math.sqrt(Math.abs((x*w-x*m*m-w*y*y)/(x*m*m+w*y*y)));h=O*r*m/i+(e+c)/2,p=O*-i*y/r+(n+l)/2,f=Math.asin(Number(((n-p)/i).toFixed(9))),d=Math.asin(Number(((l-p)/i).toFixed(9))),f=ed&&(f-=2*Math.PI),!s&&d>f&&(d-=2*Math.PI)}var S=d-f;if(Math.abs(S)>A){var _=d,k=c,j=l;d=f+A*(s&&d>f?1:-1),v=t(c=h+r*Math.cos(d),l=p+i*Math.sin(d),r,i,o,0,s,k,j,[d,_,h,p])}S=d-f;var E=Math.cos(f),P=Math.sin(f),M=Math.cos(d),T=Math.sin(d),R=Math.tan(S/4),D=4/3*r*R,N=4/3*i*R,L=[e,n],F=[e+D*P,n-N*E],B=[c+D*T,l-N*M],z=[c,l];if(F[0]=2*L[0]-F[0],F[1]=2*L[1]-F[1],u)return[F,B,z].concat(v);for(var V=[],G=0,W=(v=[F,B,z].concat(v).join().split(",")).length;G7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(c[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},d=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var h=0;h1?1:c<0?0:c)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],g=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d<12;d++){var h=l*u[d]+l,p=k(h,t,n,i,a),A=k(h,e,r,o,s),C=p*p+A*A;f+=g[d]*Math.sqrt(C)}return l*f},E=function(t,e,n,r,i,o,a,s){for(var c,l,u,g,f=[],d=[[],[]],h=0;h<2;++h)if(0===h?(l=6*t-12*n+6*i,c=-3*t+9*n-9*i+3*a,u=3*n-3*t):(l=6*e-12*r+6*o,c=-3*e+9*r-9*o+3*s,u=3*r-3*e),Math.abs(c)<1e-12){if(Math.abs(l)<1e-12)continue;(g=-u/l)>0&&g<1&&f.push(g)}else{var p=l*l-4*u*c,A=Math.sqrt(p);if(!(p<0)){var C=(-l+A)/(2*c);C>0&&C<1&&f.push(C);var v=(-l-A)/(2*c);v>0&&v<1&&f.push(v)}}for(var I,y=f.length,m=y;y--;)I=1-(g=f[y]),d[0][y]=I*I*I*t+3*I*I*g*n+3*I*g*g*i+g*g*g*a,d[1][y]=I*I*I*e+3*I*I*g*r+3*I*g*g*o+g*g*g*s;return d[0][m]=t,d[1][m]=e,d[0][m+1]=a,d[1][m+1]=s,d[0].length=d[1].length=m+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},P=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)Math.max(i,a)||Math.max(e,r)Math.max(o,s))){var c=(t-n)*(o-s)-(e-r)*(i-a);if(c){var l=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/c,u=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/c,g=+l.toFixed(2),f=+u.toFixed(2);if(!(g<+Math.min(t,n).toFixed(2)||g>+Math.max(t,n).toFixed(2)||g<+Math.min(i,a).toFixed(2)||g>+Math.max(i,a).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(o,s).toFixed(2)||f>+Math.max(o,s).toFixed(2)))return{x:l,y:u}}}},M=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},T=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:A(t,e,n,r),vb:[t,e,n,r].join(" ")}},R=function(t,e,n,i,o,a,s,c){Object(r.isArray)(t)||(t=[t,e,n,i,o,a,s,c]);var l=E.apply(null,t);return T(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},D=function(t,e,n,r,i,o,a,s,c){var l=1-c,u=Math.pow(l,3),g=Math.pow(l,2),f=c*c,d=f*c,h=t+2*c*(n-t)+f*(i-2*n+t),p=e+2*c*(r-e)+f*(o-2*r+e),A=n+2*c*(i-n)+f*(a-2*i+n),C=r+2*c*(o-r)+f*(s-2*o+r);return{x:u*t+3*g*c*n+3*l*c*c*i+d*a,y:u*e+3*g*c*r+3*l*c*c*o+d*s,m:{x:h,y:p},n:{x:A,y:C},start:{x:l*t+c*n,y:l*e+c*r},end:{x:l*i+c*a,y:l*o+c*s},alpha:90-180*Math.atan2(h-A,p-C)/Math.PI}},N=function(t,e,n){if(!function(t,e){return t=T(t),e=T(e),M(e,t.x,t.y)||M(e,t.x2,t.y)||M(e,t.x,t.y2)||M(e,t.x2,t.y2)||M(t,e.x,e.y)||M(t,e.x2,e.y)||M(t,e.x,e.y2)||M(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(R(t),R(e)))return n?0:[];for(var r=~~(j.apply(0,t)/8),i=~~(j.apply(0,e)/8),o=[],a=[],s={},c=n?0:[],l=0;l=0&&I<=1&&y>=0&&y<=1&&(n?c++:c.push({x:v.x,y:v.y,t1:I,t2:y}))}}return c};function L(t,e){return function(t,e,n){var r,i,o,a,s,c,l,u,g,f;t=_(t),e=_(e);for(var d=n?0:[],h=0,p=t.length;h1&&(n*=Math.sqrt(h),i*=Math.sqrt(h));var p=n*n*(d*d)+i*i*(f*f),A=p?Math.sqrt((n*n*(i*i)-p)/p):1;a===s&&(A*=-1),isNaN(A)&&(A=0);var C=i?A*n*d/i:0,v=n?A*-i*f/n:0,I=(c+u)/2+Math.cos(o)*C-Math.sin(o)*v,y=(l+g)/2+Math.sin(o)*C+Math.cos(o)*v,m=[(f-C)/n,(d-v)/i],b=[(-1*f-C)/n,(-1*d-v)/i],x=G([1,0],m),w=G(m,b);return V(m,b)<=-1&&(w=Math.PI),V(m,b)>=1&&(w=0),0===s&&w>0&&(w-=2*Math.PI),1===s&&w<0&&(w+=2*Math.PI),{cx:I,cy:y,rx:W(t,[u,g])?0:n,ry:W(t,[u,g])?0:i,startAngle:x,endAngle:x+w,xRotation:o,arcFlag:a,sweepFlag:s}}function H(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function U(t){for(var e=[],n=null,r=null,i=null,o=0,s=(t=a(t)).length,c=0;c=e&&t<=n};function Z(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=e.x-t.x,s=e.y-t.y,c=r.x-n.x,l=r.y-n.y,u=a*l-s*c,g=null;if(u*u>.001*(a*a+s*s)*(c*c+l*l)){var f=(i*l-o*c)/u,d=(i*s-o*a)/u;X(f,0,1)&&X(d,0,1)&&(g={x:t.x+f*a,y:t.y+f*s})}return g}function q(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function K(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function Q(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o0!==q(s[1]-n)>0&&q(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function J(t){for(var e=[],n=t.length,r=0;r1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function $(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function tt(t,e){if(t.length<2||e.length<2)return!1;var n,i,o=$(t),a=$(e);if(n=o,(i=a).minX>n.maxX||i.maxXn.maxY||i.maxY0&&t.charCodeAt(e)<128?1:2}function o(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(r.isNil)(e)?"":""+e})),n=0,i=0,o=0;o=19968&&c<=40869?2:1}a>n&&(n=a,i=o)}return t[i].getBBox().width}(t);var e=0;return Object(r.each)(t,(function(t){var n=t.getBBox().width;e=0?function(t,e,n){void 0===n&&(n="tail");var r=t.length,o="";if("tail"===n){for(var a=0,s=0;a0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),l&&g.setAttribute(c.SVG_ATTR_MAP.strokeOpacity,l),u&&g.setAttribute(c.SVG_ATTR_MAP.lineWidth,u))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(c.SVG_ATTR_MAP[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(c.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(c.SVG_ATTR_MAP[e],n);else r.setAttribute(c.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,a=r.shadowOffsetY,s=r.shadowBlur,c=r.shadowColor;(i||a||s||c)&&o.setShadow(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&o.setTransform(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,o=e+r.top,a=document.elementFromPoint(i,o);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(i.AbstractShape);e.default=f},function(t,e,n){"use strict";var r=n(0),i=n(109),o=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r;this.adjustNames=i,this.xField=e,this.yField=n}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===a?0:a-1],i=n[a===s-1?s-1:a+1],0!==a?r+=(e-r)/2:r-=(i-e)/2,a!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.each(t,(function(t,e){r.each(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.each(t,(function(t){void 0===t[e]&&(t[e]=i.a)})),r.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,o={},a=[];return e&&this.isAdjust("x")&&a.push(e),n&&this.isAdjust("y")&&a.push(n),a.forEach((function(e){o[e]=r.valuesOfKey(t,e).sort((function(t,e){return t-e}))})),!n&&this.isAdjust("y")&&(o.y=[i.a,1]),o},t}();e.a=o},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n(1),i=n(0),o=n(173);function a(t,e,n,a){var s=Object(i.reduce)(t,(function(t,r){var i=r[n],a=t.has(i)?t.get(i):0,s=r[e];return a=Object(o.a)(s)?a+s:a,t.set(i,a),t}),new Map);return Object(i.map)(t,(function(t){var i,c=t[e],l=t[n],u=Object(o.a)(c)?c/s.get(l):0;return Object(r.__assign)(Object(r.__assign)({},t),((i={})[a]=u,i))}))}function s(t,e,n,r,i){return i?a(t,e,n,r):t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0);function i(t){return Object(r.map)(t||[],(function(t,e){return{x:""+e,y:t}}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return c}));var r=n(4),i=n.n(r),o=n(269),a=function(t){var e=t.error;return i.a.createElement("div",{className:"bizcharts-error",role:"alert"},i.a.createElement("p",null,"BizCharts something went wrong:"),i.a.createElement("pre",null,e.message))};function s(t){return a(t)}var c=function(t){a=t};e.b=o.ErrorBoundary},function(t,e,n){"use strict";var r=n(69),i=n.n(r),o=n(63),a=n.n(o);e.a=function(t,e){var n={};return i()(t,(function(t,r){var i=!1;e.forEach((function(t){(a()(t)&&t===r||t instanceof RegExp&&r.match(t))&&(i=!0)})),i||(n[r]=t)})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.Slider=e.HtmlTooltip=e.ContinuousLegend=e.CategoryLegend=e.CircleGrid=e.LineGrid=e.CircleAxis=e.LineAxis=e.Annotation=e.Crosshair=e.Component=e.GroupComponent=e.HtmlComponent=void 0;var r=n(24);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return r.AbstractGroup}}),Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return r.AbstractShape}});var i=n(328);Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}}),Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(e,"Adjust",{enumerable:!0,get:function(){return i.Adjust}});var o=n(262);Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return o.getAttribute}}),Object.defineProperty(e,"Attribute",{enumerable:!0,get:function(){return o.Attribute}});var a=n(262);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return a.Color}});var s=n(679);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return s.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return s.registerCoordinate}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return s.Coordinate}});var c=n(86);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return c.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return c.registerScale}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return c.Scale}});var l=n(176);Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return l.Annotation}}),Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return l.Component}}),Object.defineProperty(e,"Crosshair",{enumerable:!0,get:function(){return l.Crosshair}}),Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return l.GroupComponent}}),Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return l.HtmlComponent}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return l.Slider}}),Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return l.Scrollbar}});var u=l.Axis.Line,g=l.Axis.Circle;e.LineAxis=u,e.CircleAxis=g;var f=l.Grid.Line,d=l.Grid.Circle;e.LineGrid=f,e.CircleGrid=d;var h=l.Legend.Category,p=l.Legend.Continuous;e.CategoryLegend=h,e.ContinuousLegend=p;var A=l.Tooltip.Html;e.HtmlTooltip=A},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(24),o=n(66),a=n(151),s=n(24),c=n(150),l=n(230),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return l.default},e.prototype.onCanvasChange=function(t){a.refreshElement(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=s.getBBoxMethod(t)(this),r=e/2,i=n.x-r,o=n.y-r,a=n.x+n.width+r,c=n.y+n.height+r;return{x:i,minX:i,y:o,minY:o,width:n.width+e,height:n.height+e,maxX:a,maxY:c}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),a.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!o.intersectRect(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),a.applyAttrsToContext(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=o.intersectRect(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&(o.isNil(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(o.isNil(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(i.AbstractShape);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moveTo=e.sortDom=e.createDom=e.createSVGElement=void 0;var r=n(0),i=n(67);function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}e.createSVGElement=o,e.createDom=function(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=o(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(r)}return r},e.sortDom=function(t,e){var n=t.get("el"),i=r.toArray(n.children).sort(e),o=document.createDocumentFragment();i.forEach((function(t){o.appendChild(t)})),n.appendChild(o)},e.moveTo=function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(othis.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r1?t-1:t}this.cache&&this.cache.clear()},e}(c),g=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,f="[1-9]\\d?",d="\\d\\d",h="[^\\s]+",p=/\[([^]*?)\]/gm;function A(t,e){for(var n=[],r=0,i=t.length;r-1?r:null}};function v(t){for(var e=[],n=1;n3?0:(t-t%10!==10?1:0)*t%10]}},x=v({},b),w=function(t){return x=v(x,t)},O=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},S=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length0?"-":"+")+S(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+S(Math.floor(Math.abs(e)/60),2)+":"+S(Math.abs(e)%60,2)}},k=function(t){return+t-1},j=[null,f],E=[null,h],P=["isPm",h,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],M=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],T={D:["day",f],DD:["day",d],Do:["day","[1-9]\\d?[^\\s]+",function(t){return parseInt(t,10)}],M:["month",f,k],MM:["month",d,k],YY:["year",d,function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour",f,void 0,"isPm"],hh:["hour",d,void 0,"isPm"],H:["hour",f],HH:["hour",d],m:["minute",f],mm:["minute",d],s:["second",f],ss:["second",d],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",d,function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:j,dd:j,ddd:E,dddd:E,MMM:["month",h,C("monthNamesShort")],MMMM:["month",h,C("monthNames")],a:P,A:P,ZZ:M,Z:M},R={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},D=function(t){return v(R,t)},N=function(t,e,n){if(void 0===e&&(e=R.default),void 0===n&&(n={}),"number"===typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var r=[];e=(e=R[e]||e).replace(p,(function(t,e){return r.push(e),"@@@"}));var i=v(v({},x),n);return(e=e.replace(g,(function(e){return _[e](t,i)}))).replace(/@@@/g,(function(){return r.shift()}))};function L(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=R[e]||e,t.length>1e3)return null;var r={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],o=[],a=e.replace(p,(function(t,e){return o.push(O(e)),"@@@"})),s={},c={};a=O(a).replace(g,(function(t){var e=T[t],n=e[0],r=e[1],o=e[3];if(s[n])throw new Error("Invalid format. "+n+" specified twice in format");return s[n]=!0,o&&(c[o]=!0),i.push(e),"("+r+")"})),Object.keys(c).forEach((function(t){if(!s[t])throw new Error("Invalid format. "+t+" is required in specified format")})),a=a.replace(/@@@/g,(function(){return o.shift()}));var l=t.match(new RegExp(a,"i"));if(!l)return null;for(var u=v(v({},x),n),f=1;f0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(i.isDate)(t)&&(t=t.getTime()),t}var V=1e3,G=6e4,W=36e5,Y=24*W,H=31*Y,U=365*Y,X=[["HH:mm:ss",V],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",G],["HH:mm",6e5],["HH:mm",18e5],["HH",W],["HH",6*W],["HH",12*W],["YYYY-MM-DD",Y],["YYYY-MM-DD",4*Y],["YYYY-WW",7*Y],["YYYY-MM",H],["YYYY-MM",4*H],["YYYY-MM",6*H],["YYYY",380*Y]];function Z(t,e,n){var r,o=(r=function(t){return t[1]},function(t,e,n,o){for(var a=Object(i.isNil)(n)?0:n,s=Object(i.isNil)(o)?t.length:o;a>>1;r(t[c])>e?s=c:a=c+1}return a})(X,(e-t)/n)-1,a=X[o];return o<0?a=X[0]:o>=X.length&&(a=Object(i.last)(X)),a}var q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(l.__extends)(e,t),e.prototype.translate=function(t){t=z(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(i.isNumber)(t)&&t-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):B(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(i.each)(e,(function(t,n){e[n]=z(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(u),K=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(l.__extends)(e,t),e.prototype.scale=function(t){if(Object(i.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(i.head)(e),r=Object(i.last)(e);nthis.max&&(this.max=r),Object(i.isNil)(this.minLimit)||(this.min=n),Object(i.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(i.getRange)(this.values),e=t.min,n=t.max;Object(i.isNil)(this.min)&&(this.min=e),Object(i.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(i.filter)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(c),Q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(l.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(K);function J(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function $(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function tt(t,e,n){Object(i.isNil)(n)&&(n=Math.max.apply(null,t));var r=n;return Object(i.each)(t,(function(t){t>0&&t1&&(r=1),r}var et=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(l.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=$(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,a=this.positiveMin;if(a){if(0===t)return 0;var s=1/(r-(e=$(n,a/n)))*o;if(t=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(J(r,t)-J(r,n))/(J(r,e)-J(r,n))},e}(K),rt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(l.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):B(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(i.isString)(n)||Object(i.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return z(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(i.isNil)(e)&&Object(i.isNumber)(e)||(this.min=this.translate(this.min)),Object(i.isNil)(n)&&Object(i.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],o=1/0,a=o,s=0;Object(i.each)(t,(function(t){var e=z(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");o>e?(a=o,o=e):a>e&&(a=e),s1&&(this.minTickInterval=a-o),Object(i.isNil)(e)&&(this.min=o),Object(i.isNil)(n)&&(this.max=s)}},e}(Q),it=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(l.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),o=Math.floor(r*(n-1));if(o>=n-1)return Object(i.last)(e);if(o<0)return Object(i.head)(e);var a=e[o],s=o/(n-1);return a+(r-s)/((o+1)/(n-1)-s)*(e[o+1]-a)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Object(i.last)(e)!==this.max&&e.push(this.max),Object(i.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(tObject(i.last)(e))return 1;var n=0;return Object(i.each)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(K),ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(l.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(it),at={};function st(t){return at[t]}function ct(t,e){if(st(t))throw new Error("type '"+t+"' existed.");at[t]=e}var lt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(l.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(i.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(c),ut=[1,5,2,2.5,4,3],gt=100*Number.EPSILON;function ft(t,e,n,r,o,a){var s=Object(i.size)(e),c=Object(i.indexOf)(e,t),l=0,u=function(t,e){return(t%e+e)%e}(r,a);return(u=0&&(l=1),1-c/(s-1)-n+l}function dt(t,e,n){var r=Object(i.size)(e);return 1-Object(i.indexOf)(e,t)/(r-1)-n+1}function ht(t,e,n,r,i,o){var a=(t-1)/(o-i),s=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/s,s/a)}function pt(t,e){return t>=e?2-(t-1)/(e-1):1}function At(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function Ct(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}function vt(t,e,n,r,o,a){if(void 0===n&&(n=5),void 0===r&&(r=!0),void 0===o&&(o=ut),void 0===a&&(a=[.25,.2,.5,.05]),"number"!==typeof t||"number"!==typeof e)return{min:0,max:0,ticks:[]};if(t===e||1===n)return{min:t,max:e,ticks:[t]};for(var s={score:-2,lmin:0,lmax:0,lstep:0},c=1;c<1/0;){for(var l=0,u=o;ly)A+=1;else{for(var m=I;m<=y;m+=1){var b=m*(C/c),x=b+C*(d-1),w=C,O=ft(g,o,c,b,x,w),S=At(t,e,b,x),_=ht(d,n,t,e,b,x),k=a[0]*O+a[1]*S+a[2]*_+1*a[3];k>s.score&&(!r||b<=t&&x>=e)&&(s.lmin=b,s.lmax=x,s.lstep=w,s.score=k)}A+=1}}d+=1}}c+=1}for(var j=Number.isInteger(s.lstep)?0:Math.ceil(Math.abs(Math.log10(s.lstep))),E=[],P=s.lmin;P<=s.lmax;P+=s.lstep)E.push(P);var M=j?Object(i.map)(E,(function(t){return Number.parseFloat(t.toFixed(j))})):E;return{min:Math.min(t,Object(i.head)(M)),max:Math.max(e,Object(i.last)(M)),ticks:M}}function It(t){var e=t.values,n=t.tickInterval,r=t.tickCount,o=e;if(Object(i.isNumber)(n))return Object(i.filter)(o,(function(t,e){return e%n===0}));var a=t.min,s=t.max;if(Object(i.isNil)(a)&&(a=0),Object(i.isNil)(s)&&(s=e.length-1),Object(i.isNumber)(r)&&r=a&&t<=s})).map((function(t){return e[t]}))}return e.slice(a,s+1)}var yt=Math.sqrt(50),mt=Math.sqrt(10),bt=Math.sqrt(2),xt=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],c=this._domain[a];return c0?r=wt(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,t):r<0&&(r=wt(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(c/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(c*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=yt?10:o>=mt?5:o>=bt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=yt?10:o>=mt?5:o>=bt?2:1)}function Ot(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function St(t,e,n){var r=Ot(t,n,"floor"),o=Ot(e,n,"ceil");r=Object(i.fixedBase)(r,n),o=Object(i.fixedBase)(o,n);for(var a=[],s=r;s<=o;s+=n){var c=Object(i.fixedBase)(s,n);a.push(c)}return{min:r,max:o,ticks:a}}function _t(t,e,n){var r,o=t.minLimit,a=t.maxLimit,s=t.min,c=t.max,l=t.tickCount,u=void 0===l?5:l,g=Object(i.isNil)(o)?Object(i.isNil)(e)?s:e:o,f=Object(i.isNil)(a)?Object(i.isNil)(n)?c:n:a;if(g>f&&(f=(r=[g,f])[0],g=r[1]),u<=2)return[g,f];for(var d=(f-g)/(u-1),h=[],p=0;p1&&(i*=Math.ceil(a)),r&&iU)for(var c=Et(n),l=Math.ceil(o/U),u=s;u<=c+l;u+=l)a.push(Pt(u));else if(o>H){var g=Math.ceil(o/H),f=Mt(e),d=function(t,e){var n=Et(t),r=Et(e),i=Mt(t);return 12*(r-n)+(Mt(e)-i)%12}(e,n);for(u=0;u<=d+g;u+=g)a.push(Tt(s,u+f))}else if(o>Y){var h=(I=new Date(e)).getFullYear(),p=I.getMonth(),A=I.getDate(),C=Math.ceil(o/Y),v=function(t,e){return Math.ceil((e-t)/Y)}(e,n);for(u=0;uW){h=(I=new Date(e)).getFullYear(),p=I.getMonth(),C=I.getDate();var I,y=I.getHours(),m=Math.ceil(o/W),b=function(t,e){return Math.ceil((e-t)/W)}(e,n);for(u=0;u<=b+m;u+=m)a.push(new Date(h,p,C,y+u).getTime())}else if(o>G){var x=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),w=Math.ceil(o/G);for(u=0;u<=x+w;u+=w)a.push(e+u*G)}else{var O=o;O=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a})),s("log",(function(t){var e,n=t.base,r=t.tickCount,i=t.min,o=t.max,a=t.values,s=$(n,o);if(i>0)e=Math.floor($(n,i));else{var c=tt(a,n,o);e=Math.floor($(n,c))}for(var l=s-e,u=Math.ceil(l/r),g=[],f=e;f=0?1:-1;return Math.pow(t,e)*n}))})),s("quantile",(function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort((function(t,e){return t-e})),i=[],o=0;o=r&&t<=i},e.padEnd=function(t,e,n){if(r.isString(t))return t.padEnd(e,n);if(r.isArray(t)){var i=t.length;if(i=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;et.minX&&this.minYt.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();e.BBox=o,e.getRegionBBox=function(t,e){var n=e.start,r=e.end;return new o(t.x+t.width*n.x,t.y+t.height*n.y,t.width*Math.abs(r.x-n.x),t.height*Math.abs(r.y-n.y))},e.toPoints=function(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}},function(t,e,n){"use strict";var r=n(108),i=n.n(r),o=n(32),a=n.n(o),s=n(85),c=n.n(s);e.a=function(t){var e=[];return function t(n){if(e.push(n),e.includes(n))return n;if("object"!==i()(n)||null===n)return n;var r;if(a()(n)){r=[];for(var o=0,s=n.length;o2&&(n.push([i].concat(s.splice(0,2))),c="l",i="m"===i?"l":"L"),"o"===c&&1===s.length&&n.push([i,s[0]]),"r"===c)n.push([i].concat(s));else for(;s.length>=e[c]&&(n.push([i].concat(s.splice(0,e[c]))),e[c]););return t})),n},c=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},l=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),c=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,c,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},u=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,u=0,g=0;"M"===t[0][0]&&(a=i=+t[0][1],u=o=+t[0][2],g++,r[0]=["M",i,o]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=void 0,h=void 0,p=g,A=t.length;p1&&(r*=b=Math.sqrt(b),i*=b);var x=r*r,w=i*i,O=(a===s?-1:1)*Math.sqrt(Math.abs((x*w-x*m*m-w*y*y)/(x*m*m+w*y*y)));h=O*r*m/i+(e+c)/2,p=O*-i*y/r+(n+l)/2,f=Math.asin(((n-p)/i).toFixed(9)),d=Math.asin(((l-p)/i).toFixed(9)),f=ed&&(f-=2*Math.PI),!s&&d>f&&(d-=2*Math.PI)}var S=d-f;if(Math.abs(S)>A){var _=d,k=c,j=l;d=f+A*(s&&d>f?1:-1),v=t(c=h+r*Math.cos(d),l=p+i*Math.sin(d),r,i,o,0,s,k,j,[d,_,h,p])}S=d-f;var E=Math.cos(f),P=Math.sin(f),M=Math.cos(d),T=Math.sin(d),R=Math.tan(S/4),D=4/3*r*R,N=4/3*i*R,L=[e,n],F=[e+D*P,n-N*E],B=[c+D*T,l-N*M],z=[c,l];if(F[0]=2*L[0]-F[0],F[1]=2*L[1]-F[1],u)return[F,B,z].concat(v);for(var V=[],G=0,W=(v=[F,B,z].concat(v).join().split(",")).length;G7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(c[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},C=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var v=0;v1?1:c<0?0:c)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],g=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d<12;d++){var h=l*u[d]+l,p=C(h,t,n,i,a),A=C(h,e,r,o,s),v=p*p+A*A;f+=g[d]*Math.sqrt(v)}return l*f},I=function(t,e,n,r,i,o,a,s){for(var c,l,u,g,f=[],d=[[],[]],h=0;h<2;++h)if(0===h?(l=6*t-12*n+6*i,c=-3*t+9*n-9*i+3*a,u=3*n-3*t):(l=6*e-12*r+6*o,c=-3*e+9*r-9*o+3*s,u=3*r-3*e),Math.abs(c)<1e-12){if(Math.abs(l)<1e-12)continue;(g=-u/l)>0&&g<1&&f.push(g)}else{var p=l*l-4*u*c,A=Math.sqrt(p);if(!(p<0)){var C=(-l+A)/(2*c);C>0&&C<1&&f.push(C);var v=(-l-A)/(2*c);v>0&&v<1&&f.push(v)}}for(var I,y=f.length,m=y;y--;)I=1-(g=f[y]),d[0][y]=I*I*I*t+3*I*I*g*n+3*I*g*g*i+g*g*g*a,d[1][y]=I*I*I*e+3*I*I*g*r+3*I*g*g*o+g*g*g*s;return d[0][m]=t,d[1][m]=e,d[0][m+1]=a,d[1][m+1]=s,d[0].length=d[1].length=m+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},y=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)Math.max(i,a)||Math.max(e,r)Math.max(o,s))){var c=(t-n)*(o-s)-(e-r)*(i-a);if(c){var l=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/c,u=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/c,g=+l.toFixed(2),f=+u.toFixed(2);if(!(g<+Math.min(t,n).toFixed(2)||g>+Math.max(t,n).toFixed(2)||g<+Math.min(i,a).toFixed(2)||g>+Math.max(i,a).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(o,s).toFixed(2)||f>+Math.max(o,s).toFixed(2)))return{x:l,y:u}}}},m=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},b=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=A,o},x=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:b(t,e,n,r),vb:[t,e,n,r].join(" ")}},w=function(t,e,n,i,o,a,s,c){Object(r.isArray)(t)||(t=[t,e,n,i,o,a,s,c]);var l=I.apply(null,t);return x(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},O=function(t,e,n,r,i,o,a,s,c){var l=1-c,u=Math.pow(l,3),g=Math.pow(l,2),f=c*c,d=f*c,h=t+2*c*(n-t)+f*(i-2*n+t),p=e+2*c*(r-e)+f*(o-2*r+e),A=n+2*c*(i-n)+f*(a-2*i+n),C=r+2*c*(o-r)+f*(s-2*o+r);return{x:u*t+3*g*c*n+3*l*c*c*i+d*a,y:u*e+3*g*c*r+3*l*c*c*o+d*s,m:{x:h,y:p},n:{x:A,y:C},start:{x:l*t+c*n,y:l*e+c*r},end:{x:l*i+c*a,y:l*o+c*s},alpha:90-180*Math.atan2(h-A,p-C)/Math.PI}},S=function(t,e,n){if(!function(t,e){return t=x(t),e=x(e),m(e,t.x,t.y)||m(e,t.x2,t.y)||m(e,t.x,t.y2)||m(e,t.x2,t.y2)||m(t,e.x,e.y)||m(t,e.x2,e.y)||m(t,e.x,e.y2)||m(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(w(t),w(e)))return n?0:[];for(var r=~~(v.apply(0,t)/8),i=~~(v.apply(0,e)/8),o=[],a=[],s={},c=n?0:[],l=0;l=0&&b<=1&&S>=0&&S<=1&&(n?c+=1:c.push({x:I.x,y:I.y,t1:b,t2:S}))}}return c},_=function(t,e){return function(t,e,n){var r,i,o,a,s,c,l,u,g,f;t=h(t),e=h(e);for(var d=n?0:[],p=0,A=t.length;p=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},E=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a=0;c--)a=o[c].index,"add"===o[c].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var g=i-(r=t.length);if(r0)){t[r]=e[r];break}n=R(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTooltipMapping=void 0;var r=n(0);e.getTooltipMapping=function(t,e){if(!1===t)return{fields:!1};var n=r.get(t,"fields"),i=r.get(t,"formatter");return i&&!n&&(n=e),{fields:n,formatter:i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.geometry=e.getMappingFunction=e.getMappingField=void 0;var r=n(1),i=n(0),o=n(20);function a(t,e){var n=t.xField,o=t.yField,a=t.colorField,s=t.shapeField,c=t.sizeField,l=t.styleField,u=t.rawFields,g=void 0===u?[]:u,f=[];if("color"===e)f=r.__spreadArrays([a||n],g);else if("shape"===e)f=r.__spreadArrays([s||n],g);else if("size"===e)f=r.__spreadArrays([c||n],g);else{f=r.__spreadArrays([n,o,a,s,c,l],g);var d=["x","y","color","shape","size","style"].indexOf(e),h=f[d];f.splice(d,1),f.unshift(h)}return i.uniq(f.filter((function(t){return!!t})))}function s(t,e){if(e)return function(){for(var n=[],r=0;r0&&(Object(a.i)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(o.AbstractShape),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=o.x,c=o.y,l=o.r,u=i/2,g=Object(a.b)(s,c,t,e);return r&&n?g<=l+u:r?g<=l:!!n&&g>=l-u&&g<=l+u},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(l);function g(t,e,n,r){return t/(n*n)+e/(r*r)}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=i/2,s=o.x,c=o.y,l=o.rx,u=o.ry,f=(t-s)*(t-s),d=(e-c)*(e-c);return r&&n?g(f,d,l+a,u+a)<=1:r?g(f,d,l,u)<=1:!!n&&g(f,d,l-a,u-a)>=1&&g(f,d,l+a,u+a)<=1},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,s=i>o?1:i/o,c=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,c),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(l);function d(t){return t instanceof HTMLElement&&Object(a.k)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(Object(a.k)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):d(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,s=e.sx,c=e.sy,l=e.swidth,u=e.sheight,g=e.img;(g instanceof Image||d(g))&&(Object(a.i)(s)||Object(a.i)(c)||Object(a.i)(l)||Object(a.i)(u)?t.drawImage(g,n,r,i,o):t.drawImage(g,s,c,l,u,n,r,i,o))},e}(l),p=n(26);function A(t,e,n,r,i,o,a){var s=Math.min(t,n),c=Math.max(t,n),l=Math.min(e,r),u=Math.max(e,r),g=i/2;return o>=s-g&&o<=c+g&&a>=l-g&&a<=u+g&&p.Line.pointToLine(t,e,n,r,o,a)<=i/2}var C=n(58),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&C.b(this,t,r,i,e,n),a&&C.a(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr();return A(o.x1,o.y1,o.x2,o.y2,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,c={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(c=C.c(n,r,i,o,e.startArrow.d)),s&&s.d&&(l=C.c(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,r+c.dy),t.lineTo(i-l.dx,o-l.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return p.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return p.Line.pointAt(n,r,i,o,t)},e}(l),I=n(0),y=n(72),m={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Object(I.isNil)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,s=r.symbol||"circle",c=this._getR(r);if(Object(a.h)(s))n=(t=s)(i,o,c),n=Object(y.path2Absolute)(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,o,c)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Object(s.e)(this,t,{path:e},n)},e.Symbols=m,e}(l);function x(t,e,n){var r=Object(o.getOffScreenContext)();return t.createPath(r),r.isPointInPath(e,n)}function w(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function O(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function S(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o0!==w(s[1]-n)>0&&w(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}var _=n(15),k=n(160);function j(t,e,n,r,i,o,s,c){var l=(Math.atan2(c-e,s-t)+2*Math.PI)%(2*Math.PI);if(li)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Object(a.b)(u.x,u.y,s,c)<=o/2}var E=_.ext.transform,P=Object(i.__assign)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var o=!1,s=e/2,c=0;cy?I:y,S=E(null,[["t",-C,-v],["r",-x],["s",1/(I>y?1:I/y),1/(I>y?y/I:1)]]);k.transformMat3(w,w,S),o=j(0,0,O,m,b,e,w[0],w[1])}if(o)break}}return o}},o.PathUtil);function M(t,e,n){for(var r=!1,i=0;i=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=i[n];if(Object(I.isNil)(o)||Object(I.isNil)(n))return null;var a=o.length,s=i[n+1];return p.Cubic.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",P.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,a=[],s=this.get("curve");s&&(Object(I.each)(s,(function(t,e){n=s[e+1],r=t.length,n&&(i+=p.Cubic.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?(Object(I.each)(s,(function(c,l){n=s[l+1],r=c.length,n&&((t=[])[0]=o/i,e=p.Cubic.length(c[r-2],c[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/i,a.push(t))})),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(l);function R(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),p.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];Object(I.each)(t,(function(a,s){t[s+1]&&((n=[])[0]=i/e,r=p.Line.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(l),L=n(210),F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=o.x,c=o.y,l=o.width,u=o.height,g=o.radius;if(g){var f=!1;return n&&(f=function(t,e,n,r,i,o,a,s){return A(t+i,e,t+n-i,e,o,a,s)||A(t+n,e+i,t+n,e+r-i,o,a,s)||A(t+n-i,e+r,t+i,e+r,o,a,s)||A(t,e+r-i,t,e+i,o,a,s)||j(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,s)||j(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,s)||j(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,s)||j(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,s)}(s,c,l,u,g,i,t,e)),!f&&r&&(f=x(this,t,e)),f}var d=i/2;return r&&n?Object(a.e)(s-d,c-d,l+d,u+d,t,e):r?Object(a.e)(s,c,l,u,t,e):n?function(t,e,n,r,i,o,s){var c=i/2;return Object(a.e)(t-c,e-c,n,i,o,s)||Object(a.e)(t+n-c,e-c,i,r,o,s)||Object(a.e)(t+c,e+r-c,n,i,o,s)||Object(a.e)(t-c,e+c,i,r,o,s)}(s,c,l,u,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,r,i,o);else{var s=Object(L.a)(a),c=s[0],l=s[1],u=s[2],g=s[3];t.moveTo(n+c,r),t.lineTo(n+i-l,r),0!==l&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-u),0!==u&&t.arc(n+i-u,r+o-u,u,0,Math.PI/2),t.lineTo(n+g,r+o),0!==g&&t.arc(n+g,r+o-g,g,Math.PI/2,Math.PI),t.lineTo(n,r+c),0!==c&&t.arc(n+c,r+c,c,Math.PI,1.5*Math.PI),t.closePath()}},e}(l),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Object(o.assembleFont)(t)},e.prototype._setText=function(t){var e=null;Object(a.k)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,s=i.textBaseline,c=i.x,l=i.y,u=1*i.fontSize,g=this._getSpaceingY(),f=Object(o.getTextHeight)(i.text,i.fontSize,i.lineHeight);Object(a.c)(e,(function(e,i){r=l+i*(g+u)-f+u,"middle"===s&&(r+=f-u-(f-u)/2),"top"===s&&(r+=f-u),n?t.fillText(e,c,r):t.strokeText(e,c,r)}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;e?t.fillText(a,r,i):t.strokeText(a,r,i)}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(Object(a.i)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(Object(a.i)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(l)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTheme=e.getTheme=void 0;var r=n(0),i=n(341),o={default:i.createTheme({})};e.getTheme=function(t){return r.get(o,r.lowerCase(t),o.default)},e.registerTheme=function(t,e){o[r.lowerCase(t)]=i.createTheme(e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=["children","hooks","ref"]},function(t,e,n){"use strict";function r(t,e,n,r){t=t.filter((function(t){var r=e(t),i=n(t);return null!=r&&isFinite(r)&&null!=i&&isFinite(i)})),r&&t.sort((function(t,n){return e(t)-e(n)}));for(var i,o,a,s=t.length,c=new Float64Array(s),l=new Float64Array(s),u=0,g=0,f=0;fi&&(t.splice(o+1,0,f),r=!0)}return r}}function c(t,e,n,r){var i=r-t*t,o=Math.abs(i)<1e-24?0:(n-t*e)/i;return[e-o*t,o]}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nA&&(A=e))}));var C=l(c(f/u,g/u,d/u,h/u),2),v=C[0],I=C[1];v=Math.exp(v);var y=function(t){return v*Math.exp(I*t)},m=s(p,A,y);return m.a=v,m.b=I,m.predict=y,m.rSquared=o(r,e,n,u,y),m}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r};function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"===typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nh&&(h=e))}));var p=f(c(s,l,u,g),2),A=p[0],C=p[1],v=function(t){return C*t+A},I=[[d,v(d)],[h,v(h)]];return I.a=C,I.b=A,I.predict=v,I.rSquared=o(r,e,n,l,v),I}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r};function p(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1===0?(t[e-1]+t[e])/2:t[Math.floor(e)]}function A(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"===typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);na[O]-x?w:O,_=0,k=0,j=0,E=0,P=0,M=1/Math.abs(a[S]-x||1),T=w;T<=O;++T){var R=a[T],D=s[T],N=I(Math.abs(x-R)*M)*C[T],L=R*N;_+=N,k+=L,j+=D*N,E+=D*L,P+=R*L}var F=A(c(k/_,j/_,E/_,P/_),2),B=F[0],z=F[1];d[b]=B+z*x,h[b]=Math.abs(s[b]-d[b]),y(a,b+1,m)}if(2===v)break;var V=p(h);if(Math.abs(V)<1e-12)break;for(var G,W,Y=0;Y=1?1e-12:(W=1-G*G)*W}return function(t,e,n,r){for(var i,o=t.length,a=[],s=0,c=0,l=[];s=t.length))for(;e>i&&t[o]-r<=r-t[i];)n[0]=++i,n[1]=o,++o}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"===typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nh&&(h=e))}));var p=m(c(l,u,g,f),2),A=p[0],C=p[1],v=function(t){return C*Math.log(t)+A},I=s(d,h,v);return I.a=C,I.b=A,I.predict=v,I.rSquared=o(r,e,n,u,v),I}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r};function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"===typeof t)return O(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n_&&(_=e))}));var k=y-v*v,j=v*k-I*I,E=(b*v-m*I)/j,P=(m*k-b*I)/j,M=-E*v,T=function(t){return E*(t-=p)*t+P*t+M+A},R=s(S,_,T);return R.a=E,R.b=P-2*E*p,R.c=M-P*p+E*p*p+A,R.predict=T,R.rSquared=o(a,e,n,x,T),R}return a.domain=function(e){return arguments.length?(t=e,a):t},a.x=function(t){return arguments.length?(e=t,a):e},a.y=function(t){return arguments.length?(n=t,a):n},a};function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"===typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nP&&(P=e))})),g=0;gMath.abs(t[e][i])&&(i=n);for(r=e;r=e;r--)t[r][n]-=t[r][e]*t[e][n]/t[e][e]}for(n=a-1;n>=0;--n){for(o=0,r=n+1;r=0;--i)for(a=e[i],s=1,c[i]+=a,o=1;o<=i;++o)s*=(i+1-o)/o,c[i-o]+=a*Math.pow(n,o)*s;return c[0]+=r,c}(O,M,-y,m),R.predict=T,R.rSquared=o(c,e,n,k,T),R}return c.domain=function(e){return arguments.length?(t=e,c):t},c.x=function(t){return arguments.length?(e=t,c):e},c.y=function(t){return arguments.length?(n=t,c):n},c.order=function(t){return arguments.length?(a=t,c):a},c};function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"===typeof t)return P(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);np&&(p=e))}));var A=E(c(l,u,g,f),2),C=A[0],v=A[1];C=Math.exp(C);var I=function(t){return C*Math.pow(t,v)},y=s(h,p,I);return y.a=C,y.b=v,y.predict=I,y.rSquared=o(r,e,n,d,I),y}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doGroupAppearAnimate=e.doAnimate=e.getDefaultAnimateCfg=e.DEFAULT_ANIMATE_CFG=void 0;var r=n(1),i=n(0),o=n(27),a=n(331);e.DEFAULT_ANIMATE_CFG={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}};var s={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},c={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};e.getDefaultAnimateCfg=function(t,n,r){var o=s[t];return o&&(i.isFunction(o)&&(o=o(n)),o=i.deepMix({},e.DEFAULT_ANIMATE_CFG,o),r)?o[r]:o},e.doAnimate=function(t,e,n){var r=i.get(t.get("origin"),"data",o.FIELD_ORIGIN),s=e.animation,c=function(t,e){return{delay:i.isFunction(t.delay)?t.delay(e):t.delay,easing:i.isFunction(t.easing)?t.easing(e):t.easing,duration:i.isFunction(t.duration)?t.duration(e):t.duration,callback:t.callback}}(e,r);if(s){var l=a.getAnimation(s);l&&l(t,c,n)}else t.animate(n.toAttrs,c)},e.doGroupAppearAnimate=function(t,n,o,s,l){if(c[o]){var u=c[o](s),g=a.getAnimation(i.get(u,"animation",""));if(g){var f=r.__assign(r.__assign(r.__assign({},e.DEFAULT_ANIMATE_CFG.appear),u),n);t.stopAnimate(),g(t,f,{coordinate:s,minYPoint:l,toAttrs:null})}}}},function(t,e,n){"use strict";function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(328),a=n(262),s=n(0),c=n(101),l=i.__importDefault(n(233)),u=n(27),g=n(87),f=i.__importDefault(n(241)),d=n(243),h=n(39),p=n(554),A=n(344),C=n(555),v=n(65),I=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=e.container,i=e.labelsContainer,o=e.coordinate,a=e.data,s=e.sortable,c=void 0!==s&&s,l=e.visible,u=void 0===l||l,g=e.theme,f=e.scales,d=void 0===f?{}:f,h=e.scaleDefs,p=void 0===h?{}:h,A=e.intervalPadding,C=e.dodgePadding,v=e.maxColumnWidth,I=e.minColumnWidth,y=e.columnWidthRatio,m=e.roseWidthRatio,b=e.multiplePieWidthRatio,x=e.zIndexReversed;return n.container=r,n.labelsContainer=i,n.coordinate=o,n.data=a,n.sortable=c,n.visible=u,n.userTheme=g,n.scales=d,n.scaleDefs=p,n.intervalPadding=A,n.dodgePadding=C,n.maxColumnWidth=v,n.minColumnWidth=I,n.columnWidthRatio=y,n.roseWidthRatio=m,n.multiplePieWidthRatio=b,n.zIndexReversed=x,n}return i.__extends(e,t),e.prototype.position=function(t){var e=t;s.isPlainObject(t)||(e={fields:C.parseFields(t)});var n=s.get(e,"fields");return 1===n.length&&(n.unshift("1"),s.set(e,"fields",n)),s.set(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return(s.isString(t)||s.isPlainObject(t))&&(e=[t]),s.each(e,(function(t,n){s.isObject(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(s.isString(t)){var n=C.parseFields(t);this.styleOption={fields:n,callback:e}}else{var r=t,i=(n=r.fields,r.callback),o=r.cfg;this.styleOption=n||i||o?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(s.isString(t)){var n=C.parseFields(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if(s.isString(t)){var r={},i=C.parseFields(t);r.fields=i,s.isFunction(e)?r.callback=e:s.isPlainObject(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,r=t.isCoordinateChanged,i=this.attributeOption,o=this.lastAttributeOption;s.isEqual(i,o)?!e||!n&&s.isEqual(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=s.deepMix({},c.getDefaultAnimateCfg(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elements=[],this.elementsMap={},this.getOffscreenGroup().clear();for(var n=this.beforeMappingData,r=this.beforeMapping(n),o=[],a=0,l=r.length;a=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(s.isNil(e)||s.isObject(e))s.isObject(e)&&s.isEqual(Object.keys(e),["values"])?s.set(this.attributeOption,t,{fields:e.values}):s.set(this.attributeOption,t,e);else{var r={};s.isNumber(e)?r.values=[e]:r.fields=C.parseFields(e),n&&(s.isFunction(n)?r.callback=n:r.values=n),s.set(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this,n=e.attributes,o=e.attributeOption,s=e.theme,c=e.shapeType;this.groupScales=[];var l={},g=function(e){if(o.hasOwnProperty(e)){var r=o[e];if(!r)return{value:void 0};var g=i.__assign({},r),f=g.callback,d=g.values,h=g.fields,p=(void 0===h?[]:h).map((function(n){var r=t.scales[n];return r.isCategory&&!l[n]&&u.GROUP_ATTRS.includes(e)&&(t.groupScales.push(r),l[n]=!0),r}));g.scales=p,"position"!==e&&1===p.length&&"identity"===p[0].type?g.values=p[0].values:f||d||("size"===e?g.values=s.sizes:"shape"===e?g.values=s.shapes[c]||[]:"color"===e&&(p.length?g.values=p[0].values.length<=10?s.colors10:s.colors20:g.values=s.colors10));var A=a.getAttribute(e);n[e]=new A(g)}};for(var f in o){var d=g(f);if("object"===r(d))return d.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),n=this.groupData(t),r=[],i=0,o=n.length;io&&(o=u)}var g=this.scaleDefs,f={};it.max&&!s.get(g,[r,"max"])&&(f.max=o),t.change(f)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n1)for(var f=0;f0||1===n?r*a:r*a*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),o=t.content.length;function a(e,n,r){void 0===r&&(r=!1);var o=e;return i.isArray(o)&&(o=1===t.content.length?r?l(o):o.length<=2?o[e.length-1]:l(o):o[n]),o}var c={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},u=i.isArray(e.shape)?e.shape[0]:e.shape,g="funnel"===u||"pyramid"===u;if("polygon"===this.geometry.type){var f=s.getPolygonCentroid(e.x,e.y);c.x=f[0],c.y=f[1]}else"interval"!==this.geometry.type||g?(c.x=a(e.x,n),c.y=a(e.y,n)):(c.x=a(e.x,n,!0),c.y=a(e.y,n));if(g){var d=i.get(e,"nextPoints"),h=i.get(e,"points");if(d){var p=r.convert(h[1]),A=r.convert(d[1]);c.x=(p.x+A.x)/2,c.y=(p.y+A.y)/2}else"pyramid"===u&&(p=r.convert(h[1]),A=r.convert(h[2]),c.x=(p.x+A.x)/2,c.y=(p.y+A.y)/2)}t.position&&this.setLabelPosition(c,e,n,t.position);var C=this.getLabelOffsetPoint(t,n,o);return c.start={x:c.x,y:c.y},c.x+=C.x,c.y+=C.y,c.color=e.color,c},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),a=t[o.FIELD_ORIGIN],s=e.getElementId(t);return"line"===n||"area"===n?s+=" "+a[r.field]:"path"===n&&(s+=" "+a[r.field]+"-"+a[i.field]),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,o=t.animateOption,s=this.geometry.coordinate,l=this.labelsRenderer;return l||(l=new c.default({container:e,layout:i.get(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=l),l.region=r,l.animate=!!o&&a.getDefaultAnimateCfg("label",s),l},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,a=n.labelOption,s=n.scales,c=n.coordinate,l=a,u=l.fields,g=l.callback,f=l.cfg,d=u.map((function(t){return s[t]})),h=[];return i.each(t,(function(t,n){var a,s=t[o.FIELD_ORIGIN],l=e.getLabelText(s,d);if(g){var p=u.map((function(t){return s[t]}));if(a=g.apply(void 0,p),i.isNil(a))return void h.push(null)}var A=r.__assign(r.__assign({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:s,mappingData:t,coordinate:c},f),a);i.isFunction(A.position)&&(A.position=A.position(s,t,n));var C=e.getLabelOffset(A.offset||0),v=e.getDefaultLabelCfg(C,A.position);(A=i.deepMix({},v,A)).offset=e.getLabelOffset(A.offset||0);var I=A.content;i.isFunction(I)?A.content=I(s,t,n):i.isUndefined(I)&&(A.content=l[0]),h.push(A)})),h},t.prototype.getLabelText=function(t,e){var n=[];return i.each(e,(function(e){var r=t[e.field];r=i.isArray(r)?r.map((function(t){return e.getText(t)})):e.getText(r),i.isNil(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return i.isNumber(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return i.each(t.elementsMap,(function(t,n){e[n]=t.shape})),i.each(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();e.default=u},function(t,e,n){"use strict";var r=n(1),i=n(29),o=n(0),a=n(17),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{container:null,containerTpl:"
",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Object(a.b)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(a.a)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(Object(o.isNil)(t)){t=this.createDom();var e=this.get("parent");Object(o.isString)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.set("container",t)}else Object(o.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?Object(o.deepMix)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Object(a.h)(e,n)){var r=t[n];Object(i.modifyCSS)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){Object(o.each)(e,(function(e,n){var r=t.getElementsByClassName(n);Object(o.each)(r,(function(t){Object(i.modifyCSS)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(i.modifyCSS)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(i.createDom)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Object(o.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n(130).a);e.a=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getConstraint=e.getShapeAttrs=void 0;var r=n(0),i=n(246),o=n(53),a=n(154);function s(t,e,n,i,o){var s=[];if(t.length){for(var c=[],l=[],u=0,g=t.length;u0&&(u[0][0]="L")),s=s.concat(u)})),s.push(["Z"])}return s}e.getShapeAttrs=function(t,e,n,r,a){for(var c=o.getStyle(t,e,!e,"lineWidth"),l=t.connectNulls,u=t.isInCircle,g=t.points,f=t.showSinglePoint,d=i.getPathPoints(g,l,f),h=[],p=0,A=d.length;p=0;)e+=n[r].value;else e=1;t.value=e}function o(t,e){var n;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;--o)c.push(r=i[o]=new I(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(v)}function p(t){return t.children}function A(t){return Array.isArray(t)?t[1]:null}function C(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function v(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function I(t){this.data=t,this.depth=this.height=0,this.parent=null}I.prototype=h.prototype=(l={constructor:I,count:function(){return this.eachAfter(r)},each:function(t,e){var n,r=-1,i=o(this);try{for(i.s();!(n=i.n()).done;){var a=n.value;t.call(e,a,++r,this)}}catch(s){i.e(s)}finally{i.f()}return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],c=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r=0;--r)o.push(n[r]);return this},find:function(t,e){var n,r=-1,i=s(this);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(t.call(e,o,++r,this))return o}}catch(a){i.e(a)}finally{i.f()}},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return h(this).eachBefore(C)}},u=Symbol.iterator,g=d,u in l?Object.defineProperty(l,u,{value:g,enumerable:!0,configurable:!0,writable:!0}):l[u]=g,l)},function(t,e){function n(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var r=0,i=.5,o=.5,a=.05},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Controller=void 0;var r=n(0),i=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){r.each(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();e.Controller=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Facet=void 0;var r=n(0),i=n(27),o=n(235),a=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=r.deepMix({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,r=t.padding,i=void 0===r?this.cfg.padding:r,o=this.view.createView({region:e,padding:i});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){return this.view.getLayer(i.LAYER.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;r.each(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.getFieldValues=function(t,e){var n=[],i={};return r.each(t,(function(t){var o=t[e];r.isNil(o)||i[o]||(n.push(o),i[o]=!0)})),n},t.prototype.getRegion=function(t,e,n,r){var i=1/(0===e?1:e),o=1/(0===t?1:t);return{start:{x:i*n,y:o*r},end:{x:i*(n+1),y:o*(r+1)}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),i=n.coordinate,a=t.geometries;if("rect"===r.get(i,"type","rect")&&a.length){r.isNil(n.axes)&&(n.axes={});var s=n.axes,c=a[0].getXYFields(),l=c[0],u=c[1],g=o.getAxisOption(s,l),f=o.getAxisOption(s,u);!1!==g&&(n.axes[l]=this.getXAxisOption(l,s,g,e)),!1!==f&&(n.axes[u]=this.getYAxisOption(u,s,f,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return r.every(t,(function(t){var n=t.field,i=t.value;return!(!r.isNil(i)&&n)||e[n]===i}))}},t}();e.Facet=a},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n(31),i=n(184);function o(t,e,n){var i=1;return Object(r.h)(t)&&(i=t.split("\n").length),i>1?e*i+function(t,e){return e?e-t:.14*t}(e,n)*(i-1):e}function a(t,e){var n=Object(i.a)(),o=0;if(Object(r.e)(t)||""===t)return o;if(n.save(),n.font=e,Object(r.h)(t)&&t.includes("\n")){var a=t.split("\n");Object(r.a)(a,(function(t){var e=n.measureText(t).width;oh&&(h=l),v=f*f*C,(p=Math.max(h/v,v/d))>A){f-=l;break}A=p}I.push(c={value:f,dice:u1?e:1)},n}(o)},function(t,e,n){"use strict";n.d(e,"getAdjust",(function(){return i})),n.d(e,"registerAdjust",(function(){return o})),n(76),n(175);var r={},i=function(t){return r[t.toLowerCase()]},o=function(t,e){if(i(t))throw new Error("Adjust type '"+t+"' existed.");r[t.toLowerCase()]=e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r=n(62),i=n(40);function o(t,e){e.forEach((function(e){e.draw(t)}))}function a(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var o=n.get("context"),a=t.getParent(),s=a?a.getChildren():[n],c=t.get("el");if("remove"===e)if(t.get("isClipShape")){var l=c&&c.parentNode,u=l&&l.parentNode;l&&u&&u.removeChild(l)}else c&&c.parentNode&&c.parentNode.removeChild(c);else if("show"===e)c.setAttribute("visibility","visible");else if("hide"===e)c.setAttribute("visibility","hidden");else if("zIndex"===e)Object(i.c)(c,s.indexOf(t));else if("sort"===e){var g=t.get("children");g&&g.length&&Object(i.d)(t,(function(t,e){return g.indexOf(t)-g.indexOf(e)?1:0}))}else"clear"===e?c&&(c.innerHTML=""):"matrix"===e?Object(r.c)(t):"clip"===e?Object(r.a)(t,o):"attr"===e||"add"===e&&t.draw(o)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";function r(t){return null==t?null:i(t)}function i(t){if("function"!==typeof t)throw new Error;return t}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0);function i(t,e,n){var i=e+"Style",o=null;return Object(r.each)(n,(function(e,n){t[n]&&e[i]&&(o||(o={}),Object(r.mix)(o,e[i]))})),o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(544);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return r.default}});var i=n(339);Object.defineProperty(e,"View",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return i.registerGeometry}});var o=n(240);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return o.default}});var a=n(342);Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return a.registerComponentController}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkShapeOverlap=e.getOverlapArea=e.getlLabelBackgroundInfo=e.findLabelTextShape=void 0;var r=n(0),i=n(122);function o(t,e,n){return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}e.findLabelTextShape=function(t){return t.find((function(t){return"text"===t.get("type")}))},e.getlLabelBackgroundInfo=function(t,e,n){void 0===n&&(n=[0,0,0,0]);var o=t.getChildren()[0];if(o){var a=o.clone();e.rotate&&i.rotate(a,-e.rotate);var s=a.getCanvasBBox(),c=s.x,l=s.y,u=s.width,g=s.height;a.destroy();var f=n;return r.isNil(f)?f=[2,2,2,2]:r.isNumber(f)&&(f=new Array(4).fill(f)),{x:c-f[3],y:l-f[0],width:u+f[1]+f[3],height:g+f[0]+f[2],rotation:e.rotate||0}}},e.getOverlapArea=o,e.checkShapeOverlap=function(t,e){var n=t.getBBox();return r.some(e,(function(t){var e=t.getBBox();return o(n,e,2)>0}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoom=e.getIdentityMatrix=e.rotate=e.getRotateMatrix=e.translate=e.transform=void 0;var r=n(15).ext.transform;function i(t,e){var n=t.attr(),i=n.x,o=n.y;return r(t.getMatrix(),[["t",-i,-o],["r",e],["t",i,o]])}e.transform=r,e.translate=function(t,e,n){var i=r(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)},e.getRotateMatrix=i,e.rotate=function(t,e){var n=i(t,e);t.setMatrix(n)},e.getIdentityMatrix=function(){return[1,0,0,0,1,0,0,0,1]},e.zoom=function(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,o=(n.minY+n.maxY)/2;t.applyToMatrix([i,o,1]);var a=r(t.getMatrix(),[["t",-i,-o],["s",e,e],["t",i,o]]);t.setMatrix(a)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAnglePoint=e.getFactTitleConfig=void 0;var r=n(27);e.getFactTitleConfig=function(t){return[r.DIRECTION.TOP,r.DIRECTION.BOTTOM].includes(t)?{offsetX:0,offsetY:t===r.DIRECTION.TOP?-8:8,style:{textAlign:"center",textBaseline:t===r.DIRECTION.TOP?"bottom":"top"}}:[r.DIRECTION.LEFT,r.DIRECTION.RIGHT].includes(t)?{offsetX:t===r.DIRECTION.LEFT?-8:8,offsetY:0,style:{textAlign:t===r.DIRECTION.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}},e.getAnglePoint=function(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t,e){return r.call(t)==="[object "+e+"]"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTinyData=void 0;var r=n(0);e.getTinyData=function(t){return r.map(t||[],(function(t,e){return{x:""+e,y:t}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PLOYGON_Y=e.PLOYGON_X=e.FUNNEL_TOTAL_PERCENT=e.FUNNEL_CONVERSATION=e.FUNNEL_MAPPING_VALUE=e.FUNNEL_PERCENT=void 0,e.FUNNEL_PERCENT="$$percentage$$",e.FUNNEL_MAPPING_VALUE="$$mappingValue$$",e.FUNNEL_CONVERSATION="$$conversion$$",e.FUNNEL_TOTAL_PERCENT="$$totalPercentage$$",e.PLOYGON_X="$$x$$",e.PLOYGON_Y="$$y$$"},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(4),i=n.n(r),o=n(84);function a(){return i.a.useContext(o.a).chart}},function(t,e,n){"use strict";n.r(e);var r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r1?1:Number(e),r=t.length-1,i=Math.floor(r*n),o=r*n-i,a=t[i],s=i===r?a:t[i+1];return l([c(a,s,o,0),c(a,s,o,1),c(a,s,o,2)])}(n,t)}},toRGB:Object(r.memoize)(d),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(c=o.exec(t))[1]+90;n=c[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var c;e="radial-gradient(",n=(c=a.exec(t))[4]}var l=n.match(s);return Object(r.each)(l,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==l.length-1&&(e+=", ")})),e+=")"}return t}}},function(t,e,n){"use strict";var r=n(1),i=n(24),o=n(0),a={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg");Object(o.each)(t,(function(t,r){var i=t;e.get(r)!==t&&(Object(o.isObject)(t)&&n[r]&&(i=Object(o.deepMix)({},n[r],t)),e.set(r,i))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(o.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),Object(o.hasKey)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=Object(r.__assign)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=a[n];return Object(o.each)(r,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");Object(o.each)(e,(function(e,n){var r=t.get(n);if(Object(o.isObject)(r)){var i=Object(o.deepMix)({},e,r);t.set(n,i)}}))},e}(i.Base);e.a=s},function(t,e,n){"use strict";var r=n(1),i=n(24),o=n(97),a=n(45),s=n(0),c=n(23),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.onCanvasChange=function(t){Object(a.h)(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(a.a)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];Object(s.each)(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=Math.min.apply(null,e),o=Math.max.apply(null,e),a=Math.min.apply(null,n),l=Math.max.apply(null,n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:l,width:o-i,height:l-a};var u=this.cfg.canvas;if(u){var g=u.getViewRange();this.set("isInView",Object(c.f)(r,g))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),Object(a.a)(t,this),this._applyClip(t,this.getClip()),Object(a.d)(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(i.AbstractGroup);e.a=l},function(t,e,n){"use strict";var r=n(1),i=n(24),o=n(0),a=n(138),s=n(116),c=n(62),l=n(22),u=n(40),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=Object(u.b)("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){Object(s.b)(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),Object(c.a)(this,t),this.createPath(t),e.length&&Object(s.a)(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(o.each)(e||n,(function(t,e){l.b[e]&&r.setAttribute(l.b[e],t)})),Object(c.c)(this)},e}(i.AbstractGroup);e.a=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r.__extends(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,o=+new Date;if(o-r>i.get(t.view.getOptions(),"tooltip.showDelay",16)){var a=this.location,s={x:e.x,y:e.y};a&&i.isEqual(a,s)||this.showTooltip(n,s),this.timeStamp=o,this.location=s}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(r.__importDefault(n(56)).default);e.default=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return A}));var r=n(8),i=n.n(r),o=n(11),a=n.n(o),s=n(12),c=n.n(s),l=n(6),u=n.n(l),g=n(272),f=n.n(g),d=n(50),h=n(7);function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u()(t);if(e){var i=u()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}n(248),Object(h.registerGeometry)("Area",f.a);var A=function(t){a()(n,t);var e=p(n);function n(){var t;return i()(this,n),(t=e.apply(this,arguments)).GemoBaseClassName="area",t}return n}(d.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return A}));var r=n(8),i=n.n(r),o=n(11),a=n.n(o),s=n(12),c=n.n(s),l=n(6),u=n.n(l),g=n(276),f=n.n(g),d=(n(250),n(50)),h=n(7);function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u()(t);if(e){var i=u()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}Object(h.registerGeometry)("Line",f.a);var A=function(t){a()(n,t);var e=p(n);function n(){var t;return i()(this,n),(t=e.apply(this,arguments)).GemoBaseClassName="line",t}return n}(d.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return A}));var r=n(8),i=n.n(r),o=n(11),a=n.n(o),s=n(12),c=n.n(s),l=n(6),u=n.n(l),g=n(277),f=n.n(g),d=n(50),h=n(7);function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u()(t);if(e){var i=u()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}n(358),n(359),n(360),Object(h.registerGeometry)("Point",f.a);var A=function(t){a()(n,t);var e=p(n);function n(){var t;return i()(this,n),(t=e.apply(this,arguments)).GemoBaseClassName="point",t}return n}(d.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return l}));var r=n(1),i=n(0),o=n(2);function a(t){var e={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];Object(i.get)(t,"fill")&&(e.color=t.fill);var r=Object(o.k)(t,n),a=r.shadowColor,s=r.shadowBlur,c=void 0===s?0:s,l=r.shadowOffsetX,u=void 0===l?0:l,g=r.shadowOffsetY,f=void 0===g?0:g;e["text-shadow"]=""+[a,u+"px",f+"px",c+"px"].join(" ");var d=Object(o.k)(t,n),h=d.stroke,p=d.lineWidth,A=void 0===p?0:p;return e["-webkit-text-stroke"]=""+[A+"px",h].join(" "),Object(i.each)(t,(function(t,r){["fontSize"].includes(r)&&Object(i.isNumber)(t)?e[Object(o.i)(r)]=t+"px":r&&!n.includes(r)&&(e[Object(o.i)(r)]=""+t)})),e}function s(t,e){t.style["pointer-events"]="none",Object(i.each)(e,(function(e,n){n&&e&&(t.style[n]=e)}))}var c=function(t,e,n){var c=e.statistic,l=e.plotType,u=c.title,g=c.content;[u,g].forEach((function(e,c){if(e){var f="",d="";d=0===c?g?"translate(-50%, -100%)":"translate(-50%, -50%)":u?"translate(-50%, 0)":"translate(-50%, -50%)";var h=Object(i.isFunction)(e.style)?e.style(n):e.style;t.annotation().html(Object(r.__assign)({position:["50%","50%"],html:function(t,o){var c=o.getCoordinate(),u=0;if("pie"===l||"ring-progress"===l)u=c.getRadius()*c.innerRadius*2;else if("liquid"===l){var g=Object(i.get)(o.geometries,[0,"elements",0,"shape"]);g&&(u=g.find((function(t){return"circle"===t.get("type")})).getCanvasBBox().width)}else u||(u=c.getWidth());s(t,Object(r.__assign)({width:u+"px",transform:d},a(h)));var p=o.getData();return e.customHtml?e.customHtml(t,o,n,p):(e.formatter&&(f=e.formatter(n,p)),f?Object(i.isString)(f)?f:""+f:"
")},key:(0===c?"top":"bottom")+"-statistic"},Object(o.k)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},l=function(t,e,n){var c=e.statistic;[c.title,c.content].forEach((function(e){if(e){var c="",l=Object(i.isFunction)(e.style)?e.style(n):e.style;t.annotation().html(Object(r.__assign)({position:["50%","100%"],html:function(t,o){var u=o.getCoordinate(),g=o.views[0].getCoordinate(),f=g.getCenter(),d=g.getRadius(),h=Math.max(Math.sin(g.startAngle),Math.sin(g.endAngle))*d,p=f.y+h-u.y.start-parseFloat(Object(i.get)(l,"fontSize",0)),A=u.getRadius()*u.innerRadius*2;s(t,Object(r.__assign)({width:A+"px",transform:"translate(-50%, "+p+"px)"},a(l)));var C=o.getData();return e.customHtml?e.customHtml(t,o,n,C):(e.formatter&&(c=e.formatter(n,C)),c?Object(i.isString)(c)?c:""+c:"
")}},Object(o.k)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return g})),n.d(e,"Circle",(function(){return d})),n.d(e,"Dom",(function(){return h})),n.d(e,"Ellipse",(function(){return p})),n.d(e,"Image",(function(){return A})),n.d(e,"Line",(function(){return v})),n.d(e,"Marker",(function(){return m})),n.d(e,"Path",(function(){return b})),n.d(e,"Polygon",(function(){return x})),n.d(e,"Polyline",(function(){return w})),n.d(e,"Rect",(function(){return O})),n.d(e,"Text",(function(){return E}));var r={};n.r(r),n.d(r,"Base",(function(){return g})),n.d(r,"Circle",(function(){return d})),n.d(r,"Dom",(function(){return h})),n.d(r,"Ellipse",(function(){return p})),n.d(r,"Image",(function(){return A})),n.d(r,"Line",(function(){return v})),n.d(r,"Marker",(function(){return m})),n.d(r,"Path",(function(){return b})),n.d(r,"Polygon",(function(){return x})),n.d(r,"Polyline",(function(){return w})),n.d(r,"Rect",(function(){return O})),n.d(r,"Text",(function(){return E}));var i=n(1),o=n(24),a=n(62),s=n(40),c=n(116),l=n(22),u=n(132),g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return u.a},e.prototype.onCanvasChange=function(t){Object(c.b)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Object(o.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,a=e.width,s=e.height,c=this.getHitLineWidth(),l=c/2,u=r-l,g=i-l;return{x:u,y:g,minX:u,minY:g,maxX:r+a+l,maxY:i+s+l,width:a+c,height:s+c}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||Object(s.a)(this),Object(a.a)(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,c=n.strokeOpacity,u=n.lineWidth,g=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&g.setAttribute(l.b.fillOpacity,s)),this.canStroke&&u>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),c&&g.setAttribute(l.b.strokeOpacity,c),u&&g.setAttribute(l.b.lineWidth,u))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(l.b[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(l.b[e],"url(#"+i+")")}else r.setAttribute(l.b[e],n);else r.setAttribute(l.b[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,s=r.shadowBlur,c=r.shadowColor;(i||o||s||c)&&Object(a.b)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&Object(a.c)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,o=e+r.top,a=document.elementFromPoint(i,o);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(o.AbstractShape),f=n(0),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(f.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):l.b[e]&&r.setAttribute(l.b[e],t)}))},e}(g),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return Object(i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(Object(f.each)(e||n,(function(t,e){l.b[e]&&r.setAttribute(l.b[e],t)})),"function"===typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var o=r.childNodes,a=o.length-1;a>=0;a--)r.removeChild(o[a]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(g),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(f.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):l.b[e]&&r.setAttribute(l.b[e],t)}))},e}(g),A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(f.each)(e||r,(function(t,e){"img"===e?n._setImage(r.img):l.b[e]&&i.setAttribute(l.b[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(Object(f.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Object(f.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(g),C=n(26),v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(f.each)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var o=Object(f.isObject)(e)?t.addArrow(n,l.b[i]):t.getDefaultArrow(n,l.b[i]);r.setAttribute(l.b[i],"url(#"+o+")")}else r.removeAttribute(l.b[i]);else l.b[i]&&r.setAttribute(l.b[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return C.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return C.Line.pointAt(n,r,i,o,t)},e}(g),I={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},y={get:function(t){return I[t]},register:function(t,e){I[t]=e},remove:function(t){delete I[t]},getAll:function(){return I}},m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(f.isArray)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=Object(f.isFunction)(o)?o:y.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=y,e}(g),b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(f.each)(e||r,(function(e,o){if("path"===o&&Object(f.isArray)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=Object(f.isObject)(e)?t.addArrow(r,l.b[o]):t.getDefaultArrow(r,l.b[o]);i.setAttribute(l.b[o],"url(#"+a+")")}else i.removeAttribute(l.b[o]);else l.b[o]&&i.setAttribute(l.b[o],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(g),x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(f.each)(e||n,(function(t,e){"points"===e&&Object(f.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l.b[e]&&r.setAttribute(l.b[e],t)}))},e}(g),w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(f.each)(e||n,(function(t,e){"points"===e&&Object(f.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l.b[e]&&r.setAttribute(l.b[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(f.isNil)(e)?(this.set("totalLength",C.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),Object(f.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),C.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];Object(f.each)(t,(function(a,s){t[s+1]&&((n=[])[0]=i/e,r=C.Line.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(g),O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,a=["x","y","width","height","radius"];Object(f.each)(e||r,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&l.b[e]&&i.setAttribute(l.b[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var a=function(t){var e=0,n=0,r=0,i=0;return Object(f.isArray)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}(o);return Object(f.isArray)(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o,[["M "+(e+a.r1)+","+n],["l "+(r-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(i-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-r)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-i)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]].join(" ")},e}(g),S=n(163),_={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},k={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},j={left:"left",start:"left",center:"middle",right:"end",end:"end"},E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return Object(i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),Object(f.each)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Object(a.c)(n):l.b[e]&&i.setAttribute(l.b[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=Object(S.detect)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",k[n]||"alphabetic"):t.setAttribute("alignment-baseline",_[n]||"baseline"),t.setAttribute("text-anchor",j[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),s=a.length-1,c="";Object(f.each)(a,(function(t,e){0===e?"alphabetic"===o?c+=''+t+"":"top"===o?c+=''+t+"":"middle"===o?c+=''+t+"":"bottom"===o?c+=''+t+"":"hanging"===o&&(c+=''+t+""):c+=''+t+""})),e.innerHTML=c}else e.innerHTML=t;else e.innerHTML=""},e}(g)},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"fromValues",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return c})),n.d(e,"add",(function(){return l})),n.d(e,"subtract",(function(){return u})),n.d(e,"multiply",(function(){return g})),n.d(e,"divide",(function(){return f})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return h})),n.d(e,"min",(function(){return p})),n.d(e,"max",(function(){return A})),n.d(e,"round",(function(){return C})),n.d(e,"scale",(function(){return v})),n.d(e,"scaleAndAdd",(function(){return I})),n.d(e,"distance",(function(){return y})),n.d(e,"squaredDistance",(function(){return m})),n.d(e,"length",(function(){return b})),n.d(e,"squaredLength",(function(){return x})),n.d(e,"negate",(function(){return w})),n.d(e,"inverse",(function(){return O})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return _})),n.d(e,"cross",(function(){return k})),n.d(e,"lerp",(function(){return j})),n.d(e,"random",(function(){return E})),n.d(e,"transformMat2",(function(){return P})),n.d(e,"transformMat2d",(function(){return M})),n.d(e,"transformMat3",(function(){return T})),n.d(e,"transformMat4",(function(){return R})),n.d(e,"rotate",(function(){return D})),n.d(e,"angle",(function(){return N})),n.d(e,"zero",(function(){return L})),n.d(e,"str",(function(){return F})),n.d(e,"exactEquals",(function(){return B})),n.d(e,"equals",(function(){return z})),n.d(e,"len",(function(){return V})),n.d(e,"sub",(function(){return G})),n.d(e,"mul",(function(){return W})),n.d(e,"div",(function(){return Y})),n.d(e,"dist",(function(){return H})),n.d(e,"sqrDist",(function(){return U})),n.d(e,"sqrLen",(function(){return X})),n.d(e,"forEach",(function(){return Z}));var r=n(33);function i(){var t=new r.a(2);return r.a!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new r.a(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new r.a(2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function c(t,e,n){return t[0]=e,t[1]=n,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function g(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function h(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function p(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function A(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function C(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function I(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function y(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function m(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function b(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function x(t){var e=t[0],n=t[1];return e*e+n*n}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t}function O(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function S(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function _(t,e){return t[0]*e[0]+t[1]*e[1]}function k(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function j(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function E(t,e){e=e||1;var n=2*r.c()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function P(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function M(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function T(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function R(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function D(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),s=Math.cos(r);return t[0]=i*s-o*a+n[0],t[1]=i*a+o*s+n[1],t}function N(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),s=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function L(t){return t[0]=0,t[1]=0,t}function F(t){return"vec2("+t[0]+", "+t[1]+")"}function B(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.b*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.b*Math.max(1,Math.abs(i),Math.abs(a))}var V=b,G=u,W=g,Y=f,H=y,U=m,X=x,Z=function(){var t=i();return function(e,n,r,i,o,a){var s,c;for(n||(n=2),r||(r=0),c=i?Math.min(i*n+r,e.length):e.length,s=r;s1&&void 0!==arguments[1]?arguments[1]:"ChartContainer",n=c.a.forwardRef((function(e,n){var r=Object(s.useRef)(),o=Object(s.useState)(!1),u=a()(o,2),g=u[0],f=u[1],d=e,h=d.className,p=void 0===h?"bizcharts":h,A=d.containerStyle,C=l(d,["className","containerStyle"]);return Object(s.useEffect)((function(){f(!0)}),[]),c.a.createElement("div",{ref:r,className:p,style:i()({position:"relative",height:e.height||"100%",width:e.width||"100%"},A)},g?c.a.createElement(t,i()({ref:n,container:r.current},C)):c.a.createElement(c.a.Fragment,null))}));return n.displayName=e||t.name,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Area=void 0;var r=n(1),i=n(44),o=n(20),a=n(159),s=n(648),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return r.__extends(e,t),e.prototype.getDefaultOptions=function(){return o.deepAssign({},t.prototype.getDefaultOptions.call(this),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left"}})},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,r=e.xField,i=e.yField;this.chart.changeData(a.getDataWhetherPecentage(t,i,r,i,n))},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e}(i.Plot);e.Area=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Heatmap=void 0;var r=n(1),i=n(44),o=n(20),a=n(654);n(655),n(656);var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}return r.__extends(e,t),e.prototype.getSchemaAdaptor=function(){return a.adaptor},e.prototype.getDefaultOptions=function(){return o.deepAssign({},t.prototype.getDefaultOptions.call(this),{type:"polygon",legend:!1,xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}})},e}(i.Plot);e.Heatmap=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rose=void 0;var r=n(1),i=n(44),o=n(20),a=n(660),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}return r.__extends(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return o.deepAssign({},t.prototype.getDefaultOptions.call(this),{xAxis:!1,yAxis:!1,legend:{position:"right",offsetX:-10},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Rose=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(173);function o(t){var e=Object(r.clamp)(Object(i.a)(t)?t:0,0,1);return[{type:"current",percent:e},{type:"target",percent:1-e}]}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(85),i=n.n(r),o=new RegExp("^on(.*)(?=(".concat(["mousedown","mouseup","dblclick","mouseenter","mouseout","mouseover","mousemove","mouseleave","contextmenu","click","show","hide","change"].map((function(t){return t.replace(/^\S/,(function(t){return t.toUpperCase()}))})).join("|"),"))")),a=function(t){var e=[];return i()(t,(function(t,n){var r=n.match(/^on(.*)/);if(r){var i=n.match(o);if(i){var a=i[1].replace(/([A-Z])/g,"-$1").toLowerCase();a?e.push([n,"".concat(a.replace("-",""),":").concat(i[2].toLowerCase())]):e.push([n,i[2].toLowerCase()])}else e.push([n,r[1].toLowerCase()])}})),e}},function(t,e,n){"use strict";n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return f})),n.d(e,"a",(function(){return p}));var r=n(1),i=n(0),o=n(3),a=n(2),s=n(16),c=n(68);function l(t){var e=t.chart,n=t.options,i=n.data,o=n.color,c=n.lineStyle,l=n.lineShape,u=n.point,g=n.seriesField;e.data(i);var f=Object(a.b)({},t,{options:{shapeField:g,line:{color:o,style:c,shape:l},point:u&&Object(r.__assign)({color:o,shape:"circle"},u),label:void 0}}),d=Object(a.b)({},f,{options:{tooltip:!1}});return Object(s.d)(f),Object(s.e)(d),t}function u(t){var e,n,r=t.options,i=r.xAxis,s=r.yAxis,l=r.xField,u=r.yField,g=r.data;return Object(a.e)(Object(o.f)(((e={})[l]=i,e[u]=s,e),((n={})[l]={type:"cat"},n[u]=Object(c.a)(g,u),n)))(t)}function g(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function f(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function d(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,s=Object(a.c)(e,"line");if(i){var c=i.callback,l=Object(r.__rest)(i,["callback"]);s.label({fields:[o],callback:c,cfg:Object(r.__assign)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(a.o)(l))})}else s.label(!1);return t}function h(t){var e=t.chart;return t.options.isStack&&Object(i.each)(e.geometries,(function(t){t.adjust("stack")})),t}function p(t){return Object(a.e)(l,u,h,o.j,g,f,o.k,d,o.h,o.c,o.a,Object(o.b)(),o.e)(t)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(0),i="Invalid field: it must be a string!";function o(t,e){var n=t.field,o=t.fields;if(Object(r.isString)(n))return n;if(Object(r.isArray)(n))return console.warn(i),n[0];if(console.warn(i+" will try to get fields instead."),Object(r.isString)(o))return o;if(Object(r.isArray)(o)&&o.length)return o[0];if(e)return e;throw new TypeError(i)}function a(t){var e=[];return t&&t.each?t.each((function(t){e.push(t)})):t&&t.eachNode&&t.eachNode((function(t){e.push(t)})),e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return m})),n.d(e,"b",(function(){return O}));var r=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function o(){}var a=.7,s=1/a,c="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",g=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),d=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=new RegExp("^rgba\\("+[c,c,c,l]+"\\)$"),p=new RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),A=new RegExp("^hsl\\("+[l,u,u]+"\\)$"),C=new RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),v={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function I(){return this.rgb().formatHex()}function y(){return this.rgb().formatRgb()}function m(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=g.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?b(e):3===n?new S(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=f.exec(t))?new S(e[1],e[2],e[3],1):(e=d.exec(t))?new S(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(t))?x(e[1],e[2],e[3],e[4]):(e=p.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=A.exec(t))?E(e[1],e[2]/100,e[3]/100,1):(e=C.exec(t))?E(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(t)?b(v[t]):"transparent"===t?new S(NaN,NaN,NaN,0):null}function b(t){return new S(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new S(t,e,n,r)}function w(t){return t instanceof o||(t=m(t)),t?new S((t=t.rgb()).r,t.g,t.b,t.opacity):new S}function O(t,e,n,r){return 1===arguments.length?w(t):new S(t,e,n,null==r?1:r)}function S(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function _(){return"#"+j(this.r)+j(this.g)+j(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function j(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function E(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new M(t,e,n,r)}function P(t){if(t instanceof M)return new M(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=m(t)),!t)return new M;if(t instanceof M)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,c=a-i,l=(a+i)/2;return c?(s=e===a?(n-r)/c+6*(n0&&l<1?0:s,new M(s,c,l,t.opacity)}function M(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function T(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}r(o,m,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:I,formatHex:I,formatHsl:function(){return P(this).formatHsl()},formatRgb:y,toString:y}),r(S,O,i(o,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new S(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new S(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_,formatHex:_,formatRgb:k,toString:k})),r(M,(function(t,e,n,r){return 1===arguments.length?P(t):new M(t,e,n,null==r?1:r)}),i(o,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new M(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new M(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new S(T(t>=240?t-240:t+120,i,r),T(t,i,r),T(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(82);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.default}});var i=n(509);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return i.default}});var o=n(510);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return o.default}});var a=n(511);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return a.default}});var s=n(512);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return s.default}});var c=n(513);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return c.default}});var l=n(514);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return l.default}});var u=n(516);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return u.default}});var g=n(517);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return g.default}});var f=n(518);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return f.default}});var d=n(521);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return d.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeView=e.getMergedRegion=e.getRefreshRegion=e.refreshElement=e.drawPath=e.clearChanged=e.checkChildrenRefresh=e.checkRefresh=e.drawChildren=e.applyAttrsToContext=void 0;var r=n(0),i=n(332),o=n(333),a=n(66),s=n(177),c={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function l(t,e){for(var n=0;nb?m:b,k=m>b?1:m/b,j=m>b?b/m:1;e.translate(I,y),e.rotate(O),e.scale(k,j),e.arc(0,0,_,x,w,1-S),e.scale(1/k,1/j),e.rotate(-O),e.translate(-I,-y)}break;case"Z":e.closePath()}if("Z"===h)l=u;else{var E=d.length;l=[d[E-2],d[E-1]]}}}},e.refreshElement=function(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))},e.getRefreshRegion=f,e.getMergedRegion=function(t){if(!t.length)return null;var e=[],n=[],i=[],o=[];return r.each(t,(function(t){var r=f(t);r&&(e.push(r.minX),n.push(r.minY),i.push(r.maxX),o.push(r.maxY))})),{minX:Math.min.apply(null,e),minY:Math.min.apply(null,n),maxX:Math.max.apply(null,i),maxY:Math.max.apply(null,o)}},e.mergeView=function(t,e){return t&&e&&a.intersectRect(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setClip=e.setTransform=e.setShadow=void 0;var r=n(83);e.setShadow=function(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")},e.setTransform=function(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}},e.setClip=function(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){r.createDom(n),n.createPath(e);var o=e.addClip(n);i.setAttribute("clip-path","url(#"+o+")")}}else i.removeAttribute("clip-path")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultCategoryScaleRange=e.getName=e.syncScale=e.createScaleByField=void 0;var r=n(1),i=n(0),o=n(81),a=n(65),s=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;e.createScaleByField=function(t,e,n){var a=e||[];if(i.isNumber(t)||i.isNil(i.firstValue(a,t))&&i.isEmpty(n))return new(o.getScale("identity"))({field:t.toString(),values:[t]});var c=i.valuesOfKey(a,t),l=i.get(n,"type",function(t){var e="linear";return s.test(t)?e="timeCat":i.isString(t)&&(e="cat"),e}(c[0]));return new(o.getScale(l))(r.__assign({field:t,values:c},n))},e.syncScale=function(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}},e.getName=function(t){return t.alias||t.field},e.getDefaultCategoryScaleRange=function(t,e,n){var r,o=t.values.length;if(1===o)r=[.5,1];else{var s=0;r=a.isFullCircle(e)?e.isTransposed?[(s=1/o*i.get(n,"widthRatio.multiplePie",1/1.3))/2,1-s/2]:[0,1-1/o]:[s=1/o/2,1-s]}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPolarPath=e.convertNormalPath=e.getSplinePath=e.getLinePath=e.catmullRom2bezier=e.smoothBezier=void 0;var r=n(15),i=n(0),o=n(65);function a(t,e){for(var n=[t[0]],r=1,i=t.length;r=s[u]?1:0,d=g>Math.PI?1:0,h=n.convert(c),p=o.getDistanceToCenter(n,h);if(p>=.5)if(g===2*Math.PI){var A={x:(c.x+s.x)/2,y:(c.y+s.y)/2},C=n.convert(A);l.push(["A",p,p,0,d,f,C.x,C.y]),l.push(["A",p,p,0,d,f,h.x,h.y])}else l.push(["A",p,p,0,d,f,h.x,h.y]);return l}(n,r,t)):c.push(a(i,t));break;case"a":c.push(s(i,t));break;case"z":default:c.push(i)}})),function(t){i.each(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(c),c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerSymbols=void 0,e.MarkerSymbols={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRectWithCornerRadius=e.getFunnelPath=e.getIntervalRectPath=e.getBackgroundRectPath=e.parseRadius=e.getRectPath=e.getRectPoints=void 0;var r=n(0),i=n(59);function o(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,o=t.length;ie&&(i=e-(n=n?e/(1+i/n):0)),o+a>e&&(a=e-(o=o?e/(1+a/o):0)),[n||0,i||0,o||0,a||0]}e.getRectPoints=function(t,e){void 0===e&&(e=!1);var n,i,o,a,s=t.x,c=t.y,l=t.y0,u=t.size;r.isArray(c)?(n=c[0],i=c[1]):(n=l,i=c),r.isArray(s)?(o=s[0],a=s[1]):(o=s-u/2,a=s+u/2);var g=[{x:o,y:n},{x:o,y:i}];return e?g.push({x:a,y:(i+n)/2}):g.push({x:a,y:i},{x:a,y:n}),g},e.getRectPath=o,e.parseRadius=a,e.getBackgroundRectPath=function(t,e,n){var o=[];if(n.isRect){var s=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},c=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},l=r.get(t,["background","style","radius"]);if(l){var u=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,g=n.isTransposed?n.getWidth():n.getHeight(),f=a(l,Math.min(u,g)),d=f[0],h=f[1],p=f[2],A=f[3];o.push(["M",s.x,c.y+d]),0!==d&&o.push(["A",d,d,0,0,1,s.x+d,c.y]),o.push(["L",c.x-h,c.y]),0!==h&&o.push(["A",h,h,0,0,1,c.x,c.y+h]),o.push(["L",c.x,s.y-p]),0!==p&&o.push(["A",p,p,0,0,1,c.x-p,s.y]),o.push(["L",s.x+A,s.y]),0!==A&&o.push(["A",A,A,0,0,1,s.x,s.y-A])}else o.push(["M",s.x,s.y]),o.push(["L",c.x,s.y]),o.push(["L",c.x,c.y]),o.push(["L",s.x,c.y]),o.push(["L",s.x,s.y]);o.push(["z"])}if(n.isPolar){var C=n.getCenter(),v=i.getAngle(t,n),I=v.startAngle,y=v.endAngle;if("theta"===n.type||n.isTransposed){var m=function(t){return Math.pow(t,2)};d=Math.sqrt(m(C.x-e[0].x)+m(C.y-e[0].y)),h=Math.sqrt(m(C.x-e[2].x)+m(C.y-e[2].y)),o=i.getSectorPath(C.x,C.y,d,n.startAngle,n.endAngle,h)}else o=i.getSectorPath(C.x,C.y,n.getRadius(),I,y)}return o},e.getIntervalRectPath=function(t,e,n){var r=n.getWidth(),i=n.getHeight(),a="rect"===n.type,s=[],c=(t[2].x-t[1].x)/2,l=n.isTransposed?c*i/r:c*r/i;return"round"===e?(a?(s.push(["M",t[0].x,t[0].y+l]),s.push(["L",t[1].x,t[1].y-l]),s.push(["A",c,c,0,0,1,t[2].x,t[2].y-l]),s.push(["L",t[3].x,t[3].y+l]),s.push(["A",c,c,0,0,1,t[0].x,t[0].y+l])):(s.push(["M",t[0].x,t[0].y]),s.push(["L",t[1].x,t[1].y]),s.push(["A",c,c,0,0,1,t[2].x,t[2].y]),s.push(["L",t[3].x,t[3].y]),s.push(["A",c,c,0,0,1,t[0].x,t[0].y])),s.push(["z"])):s=o(t),s},e.getFunnelPath=function(t,e,n){var i=[];return r.isNil(e)?n?i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[2].x,t[2].y],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),i},e.getRectWithCornerRadius=function(t,e,n){var r,i,o,s,c=t[0],l=t[1],u=t[2],g=t[3],f=[0,0,0,0],d=f[0],h=f[1],p=f[2],A=f[3];c.yt[1].x?(g=t[0],c=t[1],l=t[2],u=t[3],d=(o=a(n,Math.min(g.x-c.x,c.y-l.y)))[0],A=o[1],p=o[2],h=o[3]):(h=(s=a(n,Math.min(g.x-c.x,c.y-l.y)))[0],p=s[1],A=s[2],d=s[3]));var C=[];return C.push(["M",l.x,l.y+d]),0!==d&&C.push(["A",d,d,0,0,1,l.x+d,l.y]),C.push(["L",u.x-h,u.y]),0!==h&&C.push(["A",h,h,0,0,1,u.x,u.y+h]),C.push(["L",g.x,g.y-p]),0!==p&&C.push(["A",p,p,0,0,1,g.x-p,g.y]),C.push(["L",c.x+A,c.y]),0!==A&&C.push(["A",A,A,0,0,1,c.x,c.y-A]),C.push(["L",l.x,l.y+d]),C.push(["z"]),C}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_TOOLTIP_OPTIONS=e.Y_FIELD=e.X_FIELD=void 0;var r=n(0);e.X_FIELD="x",e.Y_FIELD="y",e.DEFAULT_TOOLTIP_OPTIONS={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+r.get(e,[0,"data","y"],0)},containerTpl:'
',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformDataToNodeLinkData=e.adjustYMetaByZero=void 0;var r=n(0);e.adjustYMetaByZero=function(t,e){var n=t.filter((function(t){var n=r.get(t,[e]);return r.isNumber(n)&&!isNaN(n)})),i=n.every((function(t){return r.get(t,[e])>=0})),o=n.every((function(t){return r.get(t,[e])<=0}));return i?{min:0}:o?{max:0}:{}},e.transformDataToNodeLinkData=function(t,e,n,r){if(!Array.isArray(t))return{nodes:[],links:[]};var i=[],o={},a=-1;return t.forEach((function(t){var s=t[e],c=t[n],l=t[r];o[s]||(o[s]={id:++a,name:s}),o[c]||(o[c]={id:++a,name:c}),i.push({source:o[s].id,target:o[c].id,value:l})})),{nodes:Object.values(o),links:i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDataWhetherPecentage=e.percent=void 0;var r=n(1),i=n(0),o=n(389);function a(t,e,n,a){var s=i.reduce(t,(function(t,r){var i=r[n],a=t.has(i)?t.get(i):0,s=r[e];return a=o.isRealNumber(s)?a+s:a,t.set(i,a),t}),new Map);return i.map(t,(function(t){var i,c=t[e],l=t[n],u=o.isRealNumber(c)?c/s.get(l):0;return r.__assign(r.__assign({},t),((i={})[a]=u,i))}))}e.percent=a,e.getDataWhetherPecentage=function(t,e,n,r,i){return i?a(t,e,n,r):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"length",(function(){return a})),n.d(e,"fromValues",(function(){return s})),n.d(e,"copy",(function(){return c})),n.d(e,"set",(function(){return l})),n.d(e,"add",(function(){return u})),n.d(e,"subtract",(function(){return g})),n.d(e,"multiply",(function(){return f})),n.d(e,"divide",(function(){return d})),n.d(e,"ceil",(function(){return h})),n.d(e,"floor",(function(){return p})),n.d(e,"min",(function(){return A})),n.d(e,"max",(function(){return C})),n.d(e,"round",(function(){return v})),n.d(e,"scale",(function(){return I})),n.d(e,"scaleAndAdd",(function(){return y})),n.d(e,"distance",(function(){return m})),n.d(e,"squaredDistance",(function(){return b})),n.d(e,"squaredLength",(function(){return x})),n.d(e,"negate",(function(){return w})),n.d(e,"inverse",(function(){return O})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return _})),n.d(e,"cross",(function(){return k})),n.d(e,"lerp",(function(){return j})),n.d(e,"hermite",(function(){return E})),n.d(e,"bezier",(function(){return P})),n.d(e,"random",(function(){return M})),n.d(e,"transformMat4",(function(){return T})),n.d(e,"transformMat3",(function(){return R})),n.d(e,"transformQuat",(function(){return D})),n.d(e,"rotateX",(function(){return N})),n.d(e,"rotateY",(function(){return L})),n.d(e,"rotateZ",(function(){return F})),n.d(e,"angle",(function(){return B})),n.d(e,"zero",(function(){return z})),n.d(e,"str",(function(){return V})),n.d(e,"exactEquals",(function(){return G})),n.d(e,"equals",(function(){return W})),n.d(e,"sub",(function(){return Y})),n.d(e,"mul",(function(){return H})),n.d(e,"div",(function(){return U})),n.d(e,"dist",(function(){return X})),n.d(e,"sqrDist",(function(){return Z})),n.d(e,"len",(function(){return q})),n.d(e,"sqrLen",(function(){return K})),n.d(e,"forEach",(function(){return Q}));var r=n(33);function i(){var t=new r.a(3);return r.a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=new r.a(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function s(t,e,n){var i=new r.a(3);return i[0]=t,i[1]=e,i[2]=n,i}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function g(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function d(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function p(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function A(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function C(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function v(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function I(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function m(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function b(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function x(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function O(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],c=n[2];return t[0]=i*c-o*s,t[1]=o*a-r*c,t[2]=r*s-i*a,t}function j(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function E(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,c=a*(o-2)+o,l=a*(o-1),u=a*(3-2*o);return t[0]=e[0]*s+n[0]*c+r[0]*l+i[0]*u,t[1]=e[1]*s+n[1]*c+r[1]*l+i[1]*u,t[2]=e[2]*s+n[2]*c+r[2]*l+i[2]*u,t}function P(t,e,n,r,i,o){var a=1-o,s=a*a,c=o*o,l=s*a,u=3*o*s,g=3*c*a,f=c*o;return t[0]=e[0]*l+n[0]*u+r[0]*g+i[0]*f,t[1]=e[1]*l+n[1]*u+r[1]*g+i[1]*f,t[2]=e[2]*l+n[2]*u+r[2]*g+i[2]*f,t}function M(t,e){e=e||1;var n=2*r.c()*Math.PI,i=2*r.c()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t}function T(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function R(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function D(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],c=e[1],l=e[2],u=i*l-o*c,g=o*s-r*l,f=r*c-i*s,d=i*f-o*g,h=o*u-r*f,p=r*g-i*u,A=2*a;return u*=A,g*=A,f*=A,d*=2,h*=2,p*=2,t[0]=s+u+d,t[1]=c+g+h,t[2]=l+f+p,t}function N(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function L(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function F(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function B(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],c=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+s*s),l=c&&_(t,e)/c;return Math.acos(Math.min(Math.max(l,-1),1))}function z(t){return t[0]=0,t[1]=0,t[2]=0,t}function V(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function W(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1],c=e[2];return Math.abs(n-a)<=r.b*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=r.b*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-c)<=r.b*Math.max(1,Math.abs(o),Math.abs(c))}var Y=g,H=f,U=d,X=m,Z=b,q=a,K=x,Q=function(){var t=i();return function(e,n,r,i,o,a){var s,c;for(n||(n=3),r||(r=0),c=i?Math.min(i*n+r,e.length):e.length,s=r;s1&&(n*=Math.sqrt(A),i*=Math.sqrt(A));var C=n*n*(p*p)+i*i*(h*h),v=C?Math.sqrt((n*n*(i*i)-C)/C):1;c===l&&(v*=-1),isNaN(v)&&(v=0);var I=i?v*n*p/i:0,y=n?v*-i*h/n:0,m=(u+f)/2+Math.cos(s)*I-Math.sin(s)*y,b=(g+d)/2+Math.sin(s)*I+Math.cos(s)*y,x=[(h-I)/n,(p-y)/i],w=[(-1*h-I)/n,(-1*p-y)/i],O=a([1,0],x),S=a(x,w);return o(x,w)<=-1&&(S=Math.PI),o(x,w)>=1&&(S=0),0===l&&S>0&&(S-=2*Math.PI),1===l&&S<0&&(S+=2*Math.PI),{cx:m,cy:b,rx:Object(r.j)(t,[f,d])?0:n,ry:Object(r.j)(t,[f,d])?0:i,startAngle:O,endAngle:O+S,xRotation:s,arcFlag:c,sweepFlag:l}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvDark=e.createDarkStyleSheet=void 0;var r="#000",i="#BFBFBF",o="#F0F0F0",a="#FFFFFF",s="#A6A6A6",c="#737373",l="#404040",u="#262626",g=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],f=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"];e.createDarkStyleSheet=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"#141414":e,d=t.paletteQualitative10,h=void 0===d?g:d,p=t.paletteQualitative20,A=void 0===p?f:p,C=t.paletteSemanticRed,v=void 0===C?"#F4664A":C,I=t.paletteSemanticGreen,y=void 0===I?"#30BF78":I,m=t.paletteSemanticYellow,b=void 0===m?"#FAAD14":m,x=t.fontFamily,w=void 0===x?'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':x,O=t.brandColor;return{backgroundColor:n,brandColor:void 0===O?h[0]:O,paletteQualitative10:h,paletteQualitative20:A,paletteSemanticRed:v,paletteSemanticGreen:y,paletteSemanticYellow:b,fontFamily:w,axisLineBorderColor:l,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:s,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:l,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:u,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:c,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:u,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:c,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:g[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:s,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],sliderRailFillColor:u,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:c,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:o,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:i,annotationArcBorderColor:u,annotationArcBorder:1,annotationLineBorderColor:l,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:s,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:a,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:l,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:s,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:s,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:r,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:s,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:r,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:l,pointFillColor:g[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:r,pointBorderOpacity:1,pointActiveBorderColor:a,pointSelectedBorder:2,pointSelectedBorderColor:a,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:g[0],hollowPointBorderOpacity:.95,hollowPointFillColor:r,hollowPointActiveBorder:1,hollowPointActiveBorderColor:a,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:a,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:g[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:g[0],areaFillOpacity:.25,areaActiveFillColor:g[0],areaActiveFillOpacity:.5,areaSelectedFillColor:g[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:g[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:a,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:a,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:g[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:a,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:a,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:g[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:r,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:a,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:a,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},e.antvDark=e.createDarkStyleSheet()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,i){var o,a=t.prototype.getLabelOffsetPoint.call(this,e,n,i),s=this.getCoordinate().isTransposed?"x":"y",c=this.getLabelValueDir(e.mappingData);return r.__assign(r.__assign({},a),((o={})[s]=a[s]*c,o))},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return i.deepMix({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var o,a,s,c,l=this.getCoordinate(),u=l.isTransposed,g=e.points,f=l.convert(g[0]),d=l.convert(g[2]),h=this.getLabelValueDir(e),p=i.isArray(e.shape)?e.shape[0]:e.shape;if("funnel"===p||"pyramid"===p){var A=i.get(e,"nextPoints"),C=i.get(e,"points");if(A){var v=l.convert(C[0]),I=l.convert(C[1]),y=l.convert(A[0]),m=l.convert(A[1]);u?(o=Math.min(y.y,v.y),s=Math.max(y.y,v.y),a=(I.x+m.x)/2,c=(v.x+y.x)/2):(o=Math.min((I.y+m.y)/2,(v.y+y.y)/2),s=Math.max((I.y+m.y)/2,(v.y+y.y)/2),a=m.x,c=v.x)}else o=Math.min(d.y,f.y),s=Math.max(d.y,f.y),a=d.x,c=f.x}else o=Math.min(d.y,f.y),s=Math.max(d.y,f.y),a=d.x,c=f.x;switch(r){case"right":t.x=a,t.y=(o+s)/2,t.textAlign=i.get(t,"textAlign",h>0?"left":"right");break;case"left":t.x=c,t.y=(o+s)/2,t.textAlign=i.get(t,"textAlign",h>0?"left":"right");break;case"bottom":u&&(t.x=(a+c)/2),t.y=s,t.textAlign=i.get(t,"textAlign","center"),t.textBaseline=i.get(t,"textBaseline",h>0?"bottom":"top");break;case"middle":u&&(t.x=(a+c)/2),t.y=(o+s)/2,t.textAlign=i.get(t,"textAlign","center"),t.textBaseline=i.get(t,"textBaseline","middle");break;case"top":u&&(t.x=(a+c)/2),t.y=o,t.textAlign=i.get(t,"textAlign","center"),t.textBaseline=i.get(t,"textBaseline",h>0?"bottom":"top")}},e}(r.__importDefault(n(103)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(65),a=n(59),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return r.__extends(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return i.deepMix({},r,i.get(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:i.isArray(t.x)?t.x[0]:t.x,y:t.y[0]},a={x:i.isArray(t.x)?t.x[1]:t.x,y:t.y[1]},s=o.getAngleByPoint(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=s;else{var c=o.getAngleByPoint(n,a);s>=c&&(c+=2*Math.PI),e=s+(c-s)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),o=n.getRadius()+e;return r.__assign(r.__assign({},a.polarToCartesian(i.x,i.y,o,t)),{angle:t,r:o})},e}(r.__importDefault(n(196)).default);e.default=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(5),i=n.n(r),o=n(4),a=n.n(o),s=n(63),c=n.n(s),l=n(468),u=n.n(l),g=n(73),f=n.n(g),d=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return c()(t)||a.a.isValidElement(t)?{visible:!0,text:t}:u()(t)?{visible:t}:f()(t)?i()({visible:!0},t):{visible:e}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return b}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(6),c=n.n(s),l=n(8),u=n.n(l),g=n(35),f=n.n(g),d=n(186),h=n(133),p=n.n(h),A=n(0),C=n(7);function v(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c()(t);if(e){var i=c()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a()(this,n)}}var I={},y=function(){function t(e){u()(this,t),this.cfg={shared:!0},this.chartMap={},this.state={},this.id=Object(A.uniqueId)("bx-action"),this.type=e||"tooltip"}return f()(t,[{key:"connect",value:function(t,e,n){return this.chartMap[t]={chart:e,pointFinder:n},e.interaction("connect-".concat(this.type,"-").concat(this.id)),"tooltip"===this.type&&this.cfg.shared&&void 0===Object(A.get)(e,["options","tooltip","shared"])&&Object(A.set)(e,["options","tooltip","shared"],!0),this}},{key:"unConnect",value:function(t){this.chartMap[t].chart.removeInteraction("connect-".concat(this.type,"-").concat(this.id)),delete this.chartMap[t]}},{key:"destroy",value:function(){Object(d.unregisterAction)("connect-".concat(this.type,"-").concat(this.id))}}]),t}(),m=function(){var t=new y("tooltip");return Object(C.registerAction)("connect-tooltip-".concat(t.id),function(e){i()(r,e);var n=v(r);function r(){var e;return u()(this,r),(e=n.apply(this,arguments)).CM=t,e}return f()(r,[{key:"showTooltip",value:function(t,e){var n=t.getTooltipItems(e)||e;Object(A.forIn)(this.CM.chartMap,(function(t){var r=t.chart,i=t.pointFinder;if(!r.destroyed&&r.visible)if(i){var o=i(n,r);o&&r.showTooltip(o)}else r.showTooltip(e)}))}},{key:"hideTooltip",value:function(){Object(A.forIn)(this.CM.chartMap,(function(t){return t.chart.hideTooltip()}))}}]),r}(p.a)),Object(C.registerInteraction)("connect-tooltip-".concat(t.id),{start:[{trigger:"plot:mousemove",action:"connect-tooltip-".concat(t.id,":show")}],end:[{trigger:"plot:mouseleave",action:"connect-tooltip-".concat(t.id,":hide")}]}),t},b=function(t,e,n,r,i){var o=I[t];null===n&&o?o.unConnect(e):o?o.connect(e,n,i):(I[t]=m(),I[t].cfg.shared=!!r,I[t].connect(e,n,i))};e.a=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.growInXY=e.growInY=e.growInX=void 0;var r=n(561);e.growInX=function(t,e,n){var i=n.coordinate,o=n.minYPoint;r.doScaleAnimate(t,e,i,o,"x")},e.growInY=function(t,e,n){var i=n.coordinate,o=n.minYPoint;r.doScaleAnimate(t,e,i,o,"y")},e.growInXY=function(t,e,n){var i=n.coordinate,o=n.minYPoint;r.doScaleAnimate(t,e,i,o,"xy")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32),i=n(609);function o(t,e,n,a){for(var s in n=n||0,a=a||5,e)if(e.hasOwnProperty(s)){var c=e[s];null!==c&&i.default(c)?(i.default(t[s])||(t[s]={}),n=c-f&&a<=l+f&&s>=u-f&&s<=g+f&&r.Line.pointToLine(t,e,n,i,a,s)<=o/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(75);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.default}});var i=n(524);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return i.default}});var o=n(525);Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return o.default}});var a=n(526);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return a.default}});var s=n(527);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return s.default}});var c=n(528);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return c.default}});var l=n(529);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return l.default}});var u=n(531);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return u.default}});var g=n(532);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return g.default}});var f=n(533);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return f.default}});var d=n(534);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return d.default}});var h=n(536);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return h.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=r.__importDefault(n(56)),a=n(43),s=n(43),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return r.__extends(e,t),e.prototype.getTriggerListInfo=function(){var t=s.getDelegationObject(this.context),e=null;return s.isList(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=a.getComponents(e),r=[];return i.each(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&r.push(e)})),r},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();i.each(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r=this.context.view,i=s.getScaleByField(r,e);return i&&i.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=this.context.view,o=s.getScaleByField(i,r),a=s.getElementValue(e,r),c=o.getText(a);this.setItemsState(t,c,n)},e.prototype.setStateEnable=function(t){var e=this,n=s.getCurrentElement(this.context);if(n){var r=this.getAllowComponents();i.each(r,(function(r){e.setStateByElement(r,n,t)}))}else{var o=s.getDelegationObject(this.context);if(s.isList(o)){var a=o.item,c=o.component;this.allowSetStateByElement(c)&&this.allowSetStateByItem(a,c)&&this.setItemState(c,a,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,o=t.getItems();i.each(o,(function(i){i.name===e&&r.setItemState(t,i,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RANGE_VIEW_ID=e.INDICATEOR_VIEW_ID=e.DEFAULT_COLOR=e.PERCENT=e.RANGE_TYPE=e.RANGE_VALUE=void 0,e.RANGE_VALUE="range",e.RANGE_TYPE="type",e.PERCENT="percent",e.DEFAULT_COLOR="#f0f0f0",e.INDICATEOR_VIEW_ID="indicator-view",e.RANGE_VIEW_ID="range-view"},function(t,e,n){"use strict";var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.a=r},function(t,e,n){"use strict";var r=n(1),i=n(128),o=n(31),a=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=Object(o.i)(r,e),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(i.default);e.a=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=null;function i(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(24);function i(t,e,n){var i=new r.Event(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);for(var o=t.getParent();o;)o.emitDelegation(e,i),i.propagationPath.push(o),o=o.getParent()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCallbackAction=e.unregisterAction=e.registerAction=e.getActionClass=e.createAction=void 0;var r=n(1).__importDefault(n(546)),i=n(0),o={};e.createAction=function(t,e){var n=o[t],r=null;return n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init()),r},e.getActionClass=function(t){var e=o[t];return i.get(e,"ActionClass")},e.registerAction=function(t,e,n){o[t]={ActionClass:e,cfg:n}},e.unregisterAction=function(t){delete o[t]},e.createCallbackAction=function(t,e){var n=new r.default(e);return n.callback=t,n.name="callback",n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(81),a=n(65),s=n(59),c=n(238),l=n(88),u=n(110),g=r.__importDefault(n(240)),f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var o=this.getTitle(n),a={x:n[0].x,y:n[0].y};e.emit("tooltip:show",g.default.fromData(e,"tooltip:show",r.__assign({items:n,title:o},t)));var s=this.getTooltipCfg(),c=s.follow,l=s.showMarkers,u=s.showCrosshairs,f=s.showContent,d=s.marker,h=this.items,p=this.title;if(i.isEqual(p,o)&&i.isEqual(h,n)?(this.tooltip&&c&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",g.default.fromData(e,"tooltip:change",r.__assign({items:n,title:o},t))),f&&(this.tooltip||this.renderTooltip(),this.tooltip.update(i.mix({},s,{items:n,title:o},c?t:{})),this.tooltip.show()),l&&this.renderTooltipMarkers(n,d)),this.items=n,this.title=o,u){var A=i.get(s,["crosshairs","follow"],!1);this.renderCrosshairs(A?t:a,s)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",g.default.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this,e=t.tooltip,n=t.xCrosshair,r=t.yCrosshair,i=t.tooltipMarkersGroup;e&&(e.hide(),e.clear()),n&&n.clear(),r&&r.clear(),i&&i.clear(),this.reset()},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this,n=e.tooltip,r=e.tooltipMarkersGroup,i=e.xCrosshair,o=e.yCrosshair;t?(n&&n.show(),r&&r.show(),i&&i.show(),o&&o.show()):(n&&n.hide(),r&&r.hide(),i&&i.hide(),o&&o.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){for(var n=0,r=e=i.flatten(e);n1){for(var g=e[0],f=Math.abs(t.y-g[0].y),d=0,h=e;d'+r+"":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new o.HtmlTooltip(r.__assign(r.__assign({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){for(var n=this.getTooltipMarkersGroup(),i=0,o=t;i0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),o=this.geometry.getYScale();return i.map(n,(function(t){if(t&&o){var e=o.scale(i.get(t.data,o.field));return r.__assign(r.__assign({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,o=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var a=t.offset*i,s=this.getPointAngle(r),c=t.labelEmit,l=this.getCirclePoint(s,a,r,c);return 0===l.r?l.content="":(l.content=o,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,a,c):t.rotate,l.start={x:r.x,y:r.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),i.isArray(t.x)||i.isArray(t.y)?{x:i.isArray(t.x)?t.x[e]:t.x,y:i.isArray(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return a.getAngleByPoint(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var a=this.getCoordinate(),s=a.getCenter(),c=o.getDistanceToCenter(a,n);if(0===c)return r.__assign(r.__assign({},s),{r:c});var l=t;return a.isTransposed&&c>e&&!i?l=t+2*Math.asin(e/(2*c)):c+=e,{x:s.x+c*Math.cos(l),y:s.y+c*Math.sin(l),r:c}},e.prototype.getLabelRotate=function(t,e,n){var r=t+c;return n&&(r-=c),r&&(r>c?r-=Math.PI:r<-c&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return i.each(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(s.default);e.default=l},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(57),i=n.n(r),o=n(5),a=n.n(o),s=n(52),c=n.n(s),l=n(36),u=n.n(l),g=n(54),f=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i0&&n*n>r*r+i*i}function d(t,e){for(var n=0;n(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=t.x-r*s-o*c,n.y=t.y-r*c+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*s-o*c,n.y=e.y+r*c+o*s)):(n.x=e.x+n.r,n.y=e.y)}function v(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function I(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function y(t){this._=t,this.next=null,this.previous=null}function m(t){if(!(o=(e=t,t="object"===c(e)&&"length"in e?e:Array.from(e)).length))return 0;var e,n,r,i,o,a,s,u,g,f,d,h;if((n=t[0]).x=0,n.y=0,!(o>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(o>2))return n.r+r.r;C(r,n,i=t[2]),n=new y(n),r=new y(r),i=new y(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(u=3;u0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=Object(x.b)(e),n):t},n.parentId=function(t){return arguments.length?(e=Object(x.b)(t),n):e},n};function N(t,e){return t.parent===e.parent?1:2}function L(t){var e=t.children;return e?e[0]:t.t}function F(t){var e=t.children;return e?e[e.length-1]:t.t}function B(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function z(t,e,n){return t.a.parent===e.parent?t.a:n}function V(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}V.prototype=Object.create(s.a.prototype);var G=function(){var t=N,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,o,a=new V(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new V(r[i],i)),n.parent=e;return(a.parent=new V(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(s);else{var l=i,u=i,g=i;i.eachBefore((function(t){t.xu.x&&(u=t),t.depth>g.depth&&(g=t)}));var f=l===u?1:t(l,u)/2,d=f-l.x,h=e/(u.x+f+d),p=n/(g.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*h,t.y=t.depth*p}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,c=o.parent.children[0],l=o.m,u=a.m,g=s.m,f=c.m;s=F(s),o=L(o),s&&o;)c=L(c),(a=F(a)).a=e,(i=s.z+g-o.z-l+t(s._,o._))>0&&(B(z(s,e,r),e,i),l+=i,u+=i),g+=s.m,l+=o.m,f+=c.m,u+=a.m;s&&!F(a)&&(a.t=s,a.m+=g-u),o&&!L(c)&&(c.t=o,c.m+=l-f,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},W=n(311),Y=function(t,e,n,r,i){var o,a,s=t.children,c=s.length,l=new Array(c+1);for(l[0]=a=o=0;o=n-1){var u=s[e];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=c)}for(var g=l[e],f=r/2+g,d=e+1,h=n-1;d>>1;l[p]c-o){var v=r?(i*C+a*A)/r:a;t(e,d,A,i,o,v,c),t(d,n,C,v,o,a,c)}else{var I=r?(o*C+c*A)/r:c;t(e,d,A,i,o,a,I),t(d,n,C,i,I,a,c)}}(0,c,t.value,e,n,r,i)},H=n(91),U=n(106),X=function(t,e,n,r,i){(1&t.depth?U.a:H.a)(t,e,n,r,i)},Z=n(114),q=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,s,c,l,u,g=-1,f=a.length,d=t.value;++g1?e:1)},n}(Z.b)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(1),i=n(18),o=n(0),a=n(51),s=n(3),c=n(2),l=n(70);function u(t){var e=t.chart,n=t.options,i=n.views,s=n.legend,u=n.tooltip;return Object(o.each)(i,(function(t){var n=t.region,i=t.data,s=t.meta,u=t.axes,g=t.coordinate,f=t.interactions,d=t.annotations,h=t.geometries,p=e.createView({region:n});p.data(i);var A={};u&&Object(o.each)(u,(function(t,e){A[e]=Object(c.k)(t,l.a)})),A=Object(c.b)({},s,A),p.scale(A),u?Object(o.each)(u,(function(t,e){p.axis(e,t)})):p.axis(!1),p.coordinate(g),Object(o.each)(h,(function(t){var e=Object(a.a)({chart:p,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)})),Object(o.each)(f,(function(t){!1===t.enable?p.removeInteraction(t.type):p.interaction(t.type,t.cfg)})),Object(o.each)(d,(function(t){p.annotation()[t.type](Object(r.__assign)({},t))}))})),s?Object(o.each)(s,(function(t,n){e.legend(n,t)})):e.legend(!1),e.tooltip(u),t}function g(t){return Object(c.e)(s.a,u,s.c,s.a,s.j,s.k)(t)}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="multi-view",e}return Object(r.__extends)(e,t),e.prototype.getSchemaAdaptor=function(){return g},e}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(207),o=n(31),a={};function s(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){s(t,e)}))}}function c(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){c(t,e)}))}}var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],a=[],s=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return s.length>0?(Object(o.a)(s,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),a.push(e.minY,e.maxY)})),t=Math.min.apply(null,i),e=Math.max.apply(null,i),n=Math.min.apply(null,a),r=Math.max.apply(null,a)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],a=[],s=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return s.length>0?(Object(o.a)(s,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),a.push(e.minY,e.maxY)})),t=Math.min.apply(null,i),e=Math.max.apply(null,i),n=Math.min.apply(null,a),r=Math.max.apply(null,a)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(o.a)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;a--){var s=t[a];if(Object(o.b)(s)&&(s.isGroup()?i=s.getShape(e,n,r):s.isHit(e,n)&&(i=s)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(o.j)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&s(t,e),r&&c(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();Object(o.a)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(o.a)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(o.a)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(i.a);e.a=l},function(t,e,n){"use strict";var r=n(1),i=n(0),o=n(15),a=n(31),s=n(71),c=n(183),l=o.ext.transform,u="matrix",g=["zIndex","capture","visible","type"],f=["repeat"];function d(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function h(t,e){var n={},r=e.attr();return Object(i.each)(t,(function(t,e){-1!==f.indexOf(e)||Object(i.isEqual)(r[e],t)||(n[e]=t)})),n}function p(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return Object(i.each)(t,(function(t){n+rt.delay&&Object(i.each)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var A=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(i.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n0?o=p(o,x):r.addAnimator(this),o.push(x),this.set("animations",o),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(i.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(i.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return Object(i.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,o=e.propagationPath;this.getEvents(),"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],l=s.get("name");if(l){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(a.g)(s,n))return"break";Object(i.isArray)(l)?Object(i.each)(l,(function(t){r.emitDelegateEvent(s,t,e)})):c.emitDelegateEvent(s,l,e)}},c=this,l=0;l0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([a,s,1]);var c=r.ext.transform(t.getMatrix(),[["t",-a,-s],["s",.01,1],["t",a,s]]);t.setMatrix(c),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-a,-s],["s",100,1],["t",a,s]])},e)},e.scaleInY=function(t,e,n){var i=t.getBBox(),o=t.get("origin").mappingData,a=(i.minX+i.maxX)/2,s=o.points,c=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([a,c,1]);var l=r.ext.transform(t.getMatrix(),[["t",-a,-c],["s",1,.01],["t",a,c]]);t.setMatrix(l),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-a,-c],["s",1,100],["t",a,c]])},e)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u}));var r=n(23),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function c(t,e){var n=t.match(s);Object(r.c)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function l(t,e,n){if(Object(r.k)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return function(t,e,n){var r,o,a=i.exec(n),s=parseFloat(a[1])%360*(Math.PI/180),l=a[2],u=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:u.minX,y:u.minY},o={x:u.maxX,y:u.maxY}):.5*Math.PI<=s&&s=0}),e)},e}(r.__importDefault(n(254)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(585),a=r.__importDefault(n(180)),s="inactive",c="active",l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=c,e.ignoreItemStates=["unchecked"],e}return r.__extends(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems(),this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)i.each(r,(function(n){e(n)?(t.hasState(n,s)&&t.setItemState(n,s,!1),t.setItemState(n,c,!0)):t.hasState(n,c)||t.setItemState(n,s,!0)}));else{var o=t.getItemsByState(c),a=!0;i.each(o,(function(t){if(!e(t))return a=!1,!1})),a?this.clear():i.each(r,(function(n){e(n)&&(t.hasState(n,c)&&t.setItemState(n,c,!1),t.setItemState(n,s,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)o.clearList(t.list);else{var e=this.getAllowComponents();i.each(e,(function(t){t.clearItemsState(c),t.clearItemsState(s)}))}},e}(a.default);e.default=l},function(t,e,n){var r=n(602),i=n(603),o=n(369),a=n(604);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}},function(t,e,n){"use strict";e.a=function(t){if(0===t.length)return 0;for(var e,n=t[0],r=0,i=1;i=Math.abs(t[i])?r+=n-e+t[i]:r+=t[i]-e+n,n=e;return n+r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(371),i=n(608),o=n(63);e.default=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(o.default(e)||o.default(n))return!1;if(i.default(e)||i.default(n)){if(e.length!==n.length)return!1;for(var a=!0,s=0;sm){var x=b/C.length,w=Math.max(1,Math.ceil(m/x)-1),O=C.slice(0,w)+"...";y.attr("text",O)}}}}(t,e,n)}var f={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"};Object(s.registerInteraction)(f.hover,{start:[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"]}],end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Object(s.registerInteraction)(f.click,{start:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"]}],end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var d=n(16),h=n(77),p=n(68);function A(t){var e=t.options,n=e.legend,i=e.seriesField,o=e.isStack;return i?!1!==n&&(n=Object(r.__assign)({position:o?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function C(t){var e=t.chart,n=t.options,o=n.data,a=n.columnStyle,s=n.color,c=n.columnWidthRatio,l=n.isPercent,u=n.xField,g=n.yField,f=n.seriesField,p=n.tooltip;e.data(Object(h.a)(o,g,u,g,l));var A=l?Object(r.__assign)({formatter:function(t){return{name:t[f]||t[u],value:(100*Number(t[g])).toFixed(2)+"%"}}},p):p,C=Object(i.b)({},t,{options:{widthRatio:c,tooltip:A,interval:{style:a,color:s}}});return Object(d.c)(C),t}function v(t){var e,n,a=t.options,s=a.xAxis,c=a.yAxis,l=a.xField,u=a.yField,g=a.data,f=a.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Object(i.e)(Object(o.f)(((e={})[l]=s,e[u]=c,e),((n={})[l]={type:"cat"},n[u]=Object(r.__assign)(Object(r.__assign)({},Object(p.a)(g,u)),f),n)))(t)}function I(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function y(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function m(t){var e=t.chart,n=t.options,o=n.label,a=n.yField,s=n.isRange,c=Object(i.c)(e,"interval");if(o){var l=o.callback,u=Object(r.__rest)(o,["callback"]);c.label({fields:[a],callback:l,cfg:Object(r.__assign)({layout:(null===u||void 0===u?void 0:u.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(i.o)(s?Object(r.__assign)({content:function(t){var e;return null===(e=t[a])||void 0===e?void 0:e.join("-")}},u):u))})}else c.label(!1);return t}function b(t,e){void 0===e&&(e=!1);var n,r,c,u,d=t.options,h=d.seriesField;return Object(i.e)(A,o.j,C,v,I,y,o.k,o.h,o.g,m,o.c,o.a,Object(o.b)(),(r=d.yField,void 0===(c=!e)&&(c=!0),void 0===(u=!!h)&&(u=!1),function(t){var e=t.options,n=t.chart,o=e.conversionTag,f=e.theme;return o&&!u&&(n.theme(Object(i.b)({},Object(a.isObject)(f)?f:Object(s.getTheme)(f),{columnWidthRatio:1/3})),n.annotation().shape({render:function(t,e){var i=t.addGroup({id:n.id+"-conversion-tag-group",name:"conversion-tag-group"}),s=Object(a.find)(n.geometries,(function(t){return"interval"===t.type})),u={view:e,geometry:s,group:i,field:r,horizontal:c,options:l(o,c)},f=c?s.elements:s.elements.slice().reverse();Object(a.each)(f,(function(t,e){e>0&&g(u,f[e-1],t)}))}})),t}),(void 0===(n=!d.isStack)&&(n=!1),function(t){var e=t.chart,r=t.options.connectedArea,i=function(){e.removeInteraction(f.hover),e.removeInteraction(f.click)};if(!n&&r){var o=r.trigger||"hover";i(),e.interaction(f[o])}else i();return t}),o.e)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=void 0;var r=n(1),i=n(150);e.Shape=i,r.__exportStar(n(24),e);var o=n(522);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return o.default}});var a=n(230);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return a.default}});var s=n(333);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return s.default}}),e.version="0.5.6"},function(t,e,n){"use strict";var r=n(499);t.exports=Function.prototype.bind||r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(24),o=n(150),a=n(151),s=n(0),c=n(66),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.onCanvasChange=function(t){a.refreshElement(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),a.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];s.each(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=Math.min.apply(null,e),o=Math.max.apply(null,e),a=Math.min.apply(null,n),l=Math.max.apply(null,n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:l,width:o-i,height:l-a};var u=this.cfg.canvas;if(u){var g=u.getViewRange();this.set("isInView",c.intersectRect(r,g))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),a.applyAttrsToContext(t,this),this._applyClip(t,this.getClip()),a.drawChildren(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(i.AbstractGroup);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refreshElement=e.drawChildren=void 0;var r=n(152),i=n(83);e.drawChildren=function(t,e){e.forEach((function(e){e.draw(t)}))},e.refreshElement=function(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var o=n.get("context"),a=t.getParent(),s=a?a.getChildren():[n],c=t.get("el");if("remove"===e)if(t.get("isClipShape")){var l=c&&c.parentNode,u=l&&l.parentNode;l&&u&&u.removeChild(l)}else c&&c.parentNode&&c.parentNode.removeChild(c);else if("show"===e)c.setAttribute("visibility","visible");else if("hide"===e)c.setAttribute("visibility","hidden");else if("zIndex"===e)i.moveTo(c,s.indexOf(t));else if("sort"===e){var g=t.get("children");g&&g.length&&i.sortDom(t,(function(t,e){return g.indexOf(t)-g.indexOf(e)?1:0}))}else"clear"===e?c&&(c.innerHTML=""):"matrix"===e?r.setTransform(t):"clip"===e?r.setClip(t,o):"attr"===e||"add"===e&&t.draw(o)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(24),o=n(0),a=n(179),s=n(231),c=n(152),l=n(67),u=n(83),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=u.createSVGElement("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){s.refreshElement(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),c.setClip(this,t),this.createPath(t),e.length&&s.drawChildren(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");o.each(e||n,(function(t,e){l.SVG_ATTR_MAP[e]&&r.setAttribute(l.SVG_ATTR_MAP[e],t)})),c.setTransform(this)},e}(i.AbstractGroup);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return r.__extends(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(r.__importDefault(n(128)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerFacet=e.getFacet=void 0;var r=n(0),i=n(111);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return i.Facet}});var o={};e.getFacet=function(t){return o[r.lowerCase(t)]},e.registerFacet=function(t,e){o[r.lowerCase(t)]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAxisTitleText=e.getAxisDirection=e.getAxisOption=e.getCircleAxisCenterRadius=e.getAxisThemeCfg=e.getAxisFactorByRegion=e.isVertical=e.getAxisFactor=e.getAxisRegion=e.getCircleAxisRelativeRegion=e.getLineAxisRelativeRegion=void 0;var r=n(0),i=n(27),o=n(153),a=n(15);function s(t){var e,n;switch(t){case i.DIRECTION.TOP:e={x:0,y:1},n={x:1,y:1};break;case i.DIRECTION.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case i.DIRECTION.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case i.DIRECTION.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function c(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function l(t){var e=t.start,n=t.end;return e.x===n.x}e.getLineAxisRelativeRegion=s,e.getCircleAxisRelativeRegion=c,e.getAxisRegion=function(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=s(e):t.isPolar&&(n=c(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}},e.getAxisFactor=function(t,e){return t.isRect?t.isTransposed?[i.DIRECTION.RIGHT,i.DIRECTION.BOTTOM].includes(e)?1:-1:[i.DIRECTION.BOTTOM,i.DIRECTION.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1},e.isVertical=l,e.getAxisFactorByRegion=function(t,e){var n=t.start,r=t.end;return l(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1},e.getAxisThemeCfg=function(t,e){return r.get(t,["components","axis",e],{})},e.getCircleAxisCenterRadius=function(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,o=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),s=[o.x-r.x,o.y-r.y],c=[1,0],l=o.y>r.y?a.vec2.angle(s,c):-1*a.vec2.angle(s,c),u=l+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),startAngle:l,endAngle:u}},e.getAxisOption=function(t,e){return r.isBoolean(t)?!1!==t&&{}:r.get(t,[e])},e.getAxisDirection=function(t,e){return r.get(t,"position",e)},e.getAxisTitleText=function(t,e){return r.get(e,["title","text"],o.getName(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createInteraction=e.registerInteraction=e.getInteraction=void 0;var r=n(1),i=n(0),o=r.__importDefault(n(545)),a={};function s(t){return a[i.lowerCase(t)]}e.getInteraction=s,e.registerInteraction=function(t,e){a[i.lowerCase(t)]=e},e.createInteraction=function(t,e,n){var r=s(t);if(!r)return null;if(i.isPlainObject(r)){var a=i.mix(i.clone(r),n);return new o.default(e,a)}return new r(e,n)};var c=n(340);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return c.default}});var l=n(237);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return l.Action}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return l.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return l.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(56);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return r.default}});var i=n(186);Object.defineProperty(e,"createAction",{enumerable:!0,get:function(){return i.createAction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return i.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return i.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTooltipItems=e.findDataByPoint=void 0;var r=n(1),i=n(0),o=n(27),a=n(153);function s(t,e,n){var r=n.translate(t),o=n.translate(e);return i.isNumberEqual(r,o)}function c(t,e,n){var r=n.coordinate,a=n.getYScale(),s=a.field,c=r.invert(e),l=a.invert(c.y);return i.find(t,(function(t){var e=t[o.FIELD_ORIGIN];return e[s][0]<=l&&e[s][1]>=l}))||t[t.length-1]}var l=i.memoize((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,o=0;oi&&(i=s)}return(i-r)/(n-1)}));function u(t){for(var e,n=0,r=function(t){var e=i.values(t.attributes);return i.filter(e,(function(t){return i.contains(o.GROUP_ATTRS,t.type)}))}(t);n(1+o)/2&&(s=a),r.translate(r.invert(s))}(t,n),O=b[o.FIELD_ORIGIN][g],S=b[o.FIELD_ORIGIN][f],_=x[o.FIELD_ORIGIN][g],k=u.isLinear&&i.isArray(S);if(i.isArray(O)){for(v=0;v=w){if(!k){d=R;break}i.isArray(d)||(d=[]),d.push(R)}i.isArray(d)&&(d=c(d,t,n))}else{var j=void 0;if(a.isLinear||"timeCat"===a.type){if((w>a.translate(_)||wa.max||wMath.abs(a.translate(j[o.FIELD_ORIGIN][g])-w)&&(x=j)}var D=l(n.getXScale());return!d&&Math.abs(a.translate(x[o.FIELD_ORIGIN][g])-w)<=D/2&&(d=x),d},e.getTooltipItems=function(t,e,n){void 0===n&&(n="");var s,c=t[o.FIELD_ORIGIN],l=function(t,e,n){var r=n;n||(r=e.getAttribute("position").getFields()[0]);var o=e.scales;return o[r]?o[r].getText(t[r]):i.hasKey(t,r)?t[r]:r}(c,e,n),g=e.tooltipOption,f=e.theme.defaultColor,d=[];function h(e,n){if(!i.isNil(n)&&""!==n){var r={title:l,data:c,mappingData:t,name:e,value:n,color:t.color||f,marker:!0};d.push(r)}}if(i.isObject(g)){var p=g.fields,A=g.callback;if(A){var C=p.map((function(e){return t[o.FIELD_ORIGIN][e]})),v=A.apply(void 0,C),I=r.__assign({data:t[o.FIELD_ORIGIN],mappingData:t,title:l,color:t.color||f,marker:!0},v);d.push(I)}else for(var y=e.scales,m=0,b=p;m-1)return;r.push(t),"active"!==t&&"selected"!==t||s.toFront()}else{if(-1===l)return;r.splice(l,1),"active"!==t&&"selected"!==t||s.toBack()}var u=i.drawShape(c,a,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,u,r,null):this.syncShapeStyle(s,u,["reset"],null),u.remove(!0);var g={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",g),o.propagationDelegate(this.shape,"statechange",g)},e.prototype.clearStates=function(){var t=this,e=this.states;i.each(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,e=t.shapeType,n=t.geometry,r=t.shapeFactory,o=n.stateOption,a=r.defaultShapeType,s=r.theme[e]||r.theme[a];this.statesStyle=i.deepMix({},s,o)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=i.get(n,[t,"style"],{}),o=r[e]||r;return i.isFunction(o)?o(this):o},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var o=n[t];return o?r.__assign(r.__assign({},o),{callback:function(){var t;i.isFunction(o.callback)&&o.callback(),null===(t=e.geometry)||void 0===t||t.emit(l.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}}):o}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var o=this,s=o.shapeFactory,c=o.container,u=o.shapeType;if(this.shape=s.drawShape(u,t,c),this.shape){this.setShapeInfo(this.shape,t);var g=this.shape.cfg.name;g?i.isString(g)&&(this.shape.cfg.name=["element",g]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var f=e?"enter":"appear",d=this.getAnimateCfg(f);d&&(null===(n=this.geometry)||void 0===n||n.emit(l.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),a.doAnimate(this.shape,d,{coordinate:s.coordinate,toAttrs:r.__assign({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;t.cfg.origin=e,t.cfg.element=this,t.isGroup()&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,o){var s,g=this;if(void 0===n&&(n=[]),void 0===o&&(o=0),t&&e){var f=t.get("clipShape"),d=e.get("clipShape");if(this.syncShapeStyle(f,d,n,r),t.isGroup())for(var h=t.get("children"),p=e.get("children"),A=0;A1){for(var g=n.addGroup(),f=0,d=l;f=n){var i=r.parsePosition([t[c],t[s.field]]);i&&f.push(i)}if(t[c]===g)return!1})),f},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,o=r.end,a=Math.min(i.x,o.x),s=Math.min(i.y,o.y);return{x:r.getWidth()*e+a,y:r.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+r,maxY:o.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var o=this,s=this.view.getCoordinate(),l=this.view.getCanvas(),u={};if(i.isNil(e))return null;if("arc"===t){var g=e,f=g.start,d=g.end,h=this.parsePosition(f),p=this.parsePosition(d),A=c.getAngleByPoint(s,h),C=c.getAngleByPoint(s,p);A>C&&(C=2*Math.PI+C),u={center:s.getCenter(),radius:c.getDistanceToCenter(s,h),startAngle:A,endAngle:C}}else if("image"===t){var v=e;f=v.start,d=v.end,u={start:this.parsePosition(f),end:this.parsePosition(d),src:e.src}}else if("line"===t){var I=e;f=I.start,d=I.end,u={start:this.parsePosition(f),end:this.parsePosition(d),text:i.get(e,"text",null)}}else if("region"===t){var y=e;f=y.start,d=y.end,u={start:this.parsePosition(f),end:this.parsePosition(d)}}else if("text"===t){var m=this.view.getData(),b=e,x=b.position,w=b.content,O=r.__rest(b,["position","content"]),S=w;i.isFunction(w)&&(S=w(m)),u=r.__assign(r.__assign(r.__assign({},this.parsePosition(x)),O),{content:S})}else if("dataMarker"===t){var _=e,k=(x=_.position,_.point),j=_.line,E=_.text,P=_.autoAdjust,M=_.direction;u=r.__assign(r.__assign({},this.parsePosition(x)),{coordinateBBox:this.getCoordinateBBox(),point:k,line:j,text:E,autoAdjust:P,direction:M})}else if("dataRegion"===t){var T=e,R=(f=T.start,d=T.end,T.region),D=(E=T.text,T.lineLength);u={points:this.getRegionPoints(f,d),region:R,text:E,lineLength:D}}else if("regionFilter"===t){var N=e,L=(f=N.start,d=N.end,N.apply),F=N.color,B=this.view.geometries,z=[],V=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):z.push(e))};i.each(B,(function(t){L?i.contains(L,t.type)&&i.each(t.elements,(function(t){V(t.shape)})):i.each(t.elements,(function(t){V(t.shape)}))})),u={color:F,shapes:z,start:this.parsePosition(f),end:this.parsePosition(d)}}else if("shape"===t){var G=e,W=G.render,Y=r.__rest(G,["render"]);u=r.__assign(r.__assign({},Y),{render:function(t){if(i.isFunction(e.render))return W(t,o.view,{parsePosition:o.parsePosition.bind(o)})}})}else if("html"===t){var H=e,U=H.html;x=H.position,Y=r.__rest(H,["html","position"]),u=r.__assign(r.__assign(r.__assign({},Y),this.parsePosition(x)),{parent:l.get("el").parentNode,html:function(t){return i.isFunction(U)?U(t,o.view):U}})}var X=i.deepMix({},n,r.__assign(r.__assign({},u),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(X.container=this.getComponentContainer(X)),X.animate=this.view.getOptions().animate&&X.animate&&i.get(e,"animate",X.animate),X.animateOption=i.deepMix({},a.DEFAULT_ANIMATE_CFG,X.animateOption,e.animateOption),X},e.prototype.isTop=function(t){return i.get(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return i.get(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,r=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,t,r);l.omit(o,["container"]),e.component.update(o),i.includes(f,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),i.includes(f,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,r){i.find(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(g.Controller);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeDom=e.getChartSize=void 0;var r=n(27);function i(t){return"number"===typeof t&&!isNaN(t)}e.getChartSize=function(t,e,n,o){var a=n,s=o;if(e){var c=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);a=c.width?c.width:a,s=c.height?c.height:s}return{width:Math.max(i(a)?a:r.MIN_CHART_WIDTH,r.MIN_CHART_WIDTH),height:Math.max(i(s)?s:r.MIN_CHART_HEIGHT,r.MIN_CHART_HEIGHT)}},e.removeDom=function(t){var e=t.parentNode;e&&e.removeChild(t)};var o=n(29);Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return o.createDom}}),Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return o.modifyCSS}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.positionUpdate=void 0,e.positionUpdate=function(t,e,n){var r=n.toAttrs,i=r.x,o=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:o},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sectorPathUpdate=void 0;var r=n(1),i=n(188),o=n(0),a=n(59);function s(t,e){var n,r=i.getArcParams(t,e),a=r.startAngle,s=r.endAngle;return!o.isNumberEqual(a,.5*-Math.PI)&&a<.5*-Math.PI&&(a+=2*Math.PI),!o.isNumberEqual(s,.5*-Math.PI)&&s<.5*-Math.PI&&(s+=2*Math.PI),0===e[5]&&(a=(n=[s,a])[0],s=n[1]),o.isNumberEqual(a,1.5*Math.PI)&&(a=-.5*Math.PI),o.isNumberEqual(s,-.5*Math.PI)&&(s=1.5*Math.PI),{startAngle:a,endAngle:s}}function c(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function l(t){var e,n,r,i=t.filter((function(t){return"A"===t[0]||"a"===t[0]})),a=i[0],l=i.length>1?i[1]:i[0],u=t.indexOf(a),g=t.indexOf(l),f=c(t[u-1]),d=c(t[g-1]),h=s(f,a),p=h.startAngle,A=h.endAngle,C=s(d,l),v=C.startAngle,I=C.endAngle;o.isNumberEqual(p,v)&&o.isNumberEqual(A,I)?(n=p,r=A):(n=Math.min(p,v),r=Math.max(A,I));var y=a[1],m=i[i.length-1][1];return yr&&(r=i),i=e[0]})));for(var f=this.scales[u],d=0,h=t;d0&&!i.get(n,[r,"min"])&&e.change({min:0}),a<=0&&!i.get(n,[r,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(a.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=r.__importDefault(n(161));n(245);var o=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return r.__extends(e,t),e}(i.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=r.__importDefault(n(102));n(563);var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return r.__assign(r.__assign({},n),{isStack:!!this.getAdjust("stack")})},e}(i.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=r.__importDefault(n(102));n(350);var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),o=r.x,a=r.y;if(!i.isArray(o)||!i.isArray(a)){var s=this.getXScale(),c=this.getYScale(),l=.5/s.values.length,u=.5/c.values.length;s.isCategory&&c.isCategory?(o=[o-l,o-l,o+l,o+l],a=[a-u,a+u,a+u,a-u]):i.isArray(o)?(o=[(n=o)[0],n[0],n[1],n[1]],a=[a-u/2,a+u/2,a+u/2,a-u/2]):i.isArray(a)&&(a=[(n=a)[0],n[1],n[1],n[0]],o=[o-l/2,o-l/2,o+l/2,o+l/2]),r.x=o,r.y=a}return r},e}(o.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(65),o=r.__importDefault(n(102));n(351);var a=n(349),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),o=this.getAttribute("size");if(o){n=this.getAttributeValues(o,e)[0];var s=this.coordinate;n/=i.getXDimensionLength(s)}else this.defaultSize||(this.defaultSize=a.getDefaultSize(this)),n=this.defaultSize;return r.size=n,r},e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distribute=void 0;var r=n(0),i=n(59);e.distribute=function(t,e,n,o){if(t.length&&e.length){var a=t[0]?t[0].offset:0,s=e[0].get("coordinate"),c=s.getRadius(),l=s.getCenter();if(a>0){var u=2*(c+a)+28,g={start:s.start,end:s.end},f=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?f[0].push(t):f[1].push(t))})),f.forEach((function(t,n){var i=u/14;t.length>i&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(i,t.length-i)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,i,o,a){var s,c=!0,l=i.start,u=i.end,g=Math.min(l.y,u.y),f=Math.abs(l.y-u.y),d=0,h=Number.MIN_VALUE,p=e.map((function(t){return t.y>d&&(d=t.y),t.yf&&(f=d-g);c;)for(p.forEach((function(t){var e=(Math.min.apply(h,t.targets)+Math.max.apply(h,t.targets))/2;t.pos=Math.min(Math.max(h,e-t.size/2),f-t.size)})),c=!1,s=p.length;s--;)if(s>0){var A=p[s-1],C=p[s];A.pos+A.size>C.pos&&(A.size+=C.size,A.targets=A.targets.concat(C.targets),A.pos+A.size>f&&(A.pos=f-A.size),p.splice(s,1),c=!0)}s=0,p.forEach((function(t){var r=g+n/2;t.targets.forEach((function(){e[s].y=t.pos+r,r+=n,s++}))}));for(var v={},I=0,y=t;Ir?A=r-h:u>r&&(A-=u-r),l>a?C=a-p:g>a&&(C-=g-a),A===f&&C===d||i.translate(t,A-f,C-d)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInShape=void 0;var r=n(0);e.limitInShape=function(t,e,n,i){r.each(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minXi.maxX||r.maxY>i.maxY)&&t.remove(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(27),a=n(123),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return i.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,r=-1*Math.PI/2+n*e,i=.5/(1+1/Math.sin(n/2)),o=a.getAnglePoint({x:.5,y:.5},.5-i,r),s=5*Math.PI/4,c=1*Math.PI/4;return{start:a.getAnglePoint(o,i,s),end:a.getAnglePoint(o,i,c)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,r=n.fields,o=n.type,a=r[0];if(!a)throw new Error("No `fields` specified!");var s=this.getFieldValues(t,a),c=s.length,l=[];return s.forEach((function(n,r){var u=[{field:a,value:n,values:s}],g=i.filter(t,e.getFacetDataFilter(u)),f={type:o,data:g,region:e.getRegion(c,r),columnValue:n,columnField:a,columnIndex:r,columnValuesLength:c,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};l.push(f)})),l},e.prototype.getXAxisOption=function(t,e,n,r){return n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;i.each(this.facets,(function(e){var n=e.columnValue,r=e.view,s=i.get(t.cfg.title,"formatter"),c=i.deepMix({position:["50%","0%"],content:s?s(n):n},a.getFactTitleConfig(o.DIRECTION.TOP),t.cfg.title);r.annotation().text(c)}))},e}(n(111).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(27),a=n(123),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return i.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,r=this.cfg.cols,o=n[0];if(!o)throw new Error("No `fields` specified!");var a=this.getFieldValues(t,o),s=a.length;r=r||s;var c=this.getPageCount(s,r),l=[];return a.forEach((function(n,u){var g=e.getRowCol(u,r),f=g.row,d=g.col,h=[{field:o,value:n,values:a}],p=i.filter(t,e.getFacetDataFilter(h)),A={type:e.cfg.type,data:p,region:e.getRegion(c,r,d,f),columnValue:n,rowValue:n,columnField:o,rowField:null,columnIndex:d,rowIndex:f,columnValuesLength:r,rowValuesLength:c,total:s};l.push(A)})),l},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1&&i.columnValuesLength*i.rowIndex+i.columnIndex+1+i.columnValuesLength<=i.total?r.__assign(r.__assign({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?r.__assign(r.__assign({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;i.each(this.facets,(function(e){var n=e.columnValue,r=e.view,s=i.get(t.cfg.title,"formatter"),c=i.deepMix({position:["50%","0%"],content:s?s(n):n},a.getFactTitleConfig(o.DIRECTION.TOP),t.cfg.title);r.annotation().text(c)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(n(111).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(27),a=n(123),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return i.deepMix({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,r=e.type,i=n.length,o=i,a=[],s=0;s=0;i--)for(var o=0,a=this.getFacetsByLevel(t,i);o-1)||l.isBetween(n,u,g)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(n(110).Controller);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(59),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.show=function(){var t=this.context.view,e=this.context.event,n=t.getTooltipItems({x:e.x,y:e.y});if(!i.isEqual(n,this.items)&&(this.items=n,n.length)){var r=t.getXScale().field,a=n[0].data[r],s=[],c=t.geometries;if(i.each(c,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[r]===a}));s=s.concat(e)}})),s.length){var l=t.getCoordinate(),u=s[0].shape.getCanvasBBox(),g=s[0].shape.getCanvasBBox(),f=u;i.each(s,(function(t){var e=t.shape.getCanvasBBox();l.isTransposed?(e.minYg.maxY&&(g=e)):(e.minXg.maxX&&(g=e)),f.x=Math.min(e.minX,f.minX),f.y=Math.min(e.minY,f.minY),f.width=Math.max(e.maxX,f.maxX)-f.x,f.height=Math.max(e.maxY,f.maxY)-f.y}));var d=t.backgroundGroup,h=t.coordinateBBox,p=void 0;if(l.isRect){var A=t.getXScale().isLinear?0:.25,C=void 0,v=void 0,I=void 0,y=void 0;l.isTransposed?(C=h.minX,v=Math.min(g.minY,u.minY)-A*g.height,I=h.width,y=f.height+2*A*g.height):(C=Math.min(u.minX,g.minX)-A*u.width,v=Math.min(h.minY,u.minY),I=f.width+2*A*u.width,y=h.height),p=[["M",C,v],["L",C+I,v],["L",C+I,v+y],["L",C,v+y],["Z"]]}else{var m=i.head(s),b=i.last(s),x=o.getAngle(m.getModel(),l).startAngle,w=o.getAngle(b.getModel(),l).endAngle,O=l.getCenter(),S=l.getRadius(),_=l.innerRadius*S;p=o.getSectorPath(O.x,O.y,S,x,w,_)}this.regionPath?(this.regionPath.attr("path",p),this.regionPath.show()):this.regionPath=d.addShape({type:"path",name:"active-region",capture:!1,attrs:{path:p,fill:"#CCD6EC",opacity:.3}})}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(r.__importDefault(n(56)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(43),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.showTooltip=function(t,e){var n=o.getSilbings(t);i.each(n,(function(n){var r=o.getSiblingPoint(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=o.getSilbings(t);i.each(e,(function(t){t.hideTooltip()}))},e}(r.__importDefault(n(133)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(176),a=r.__importDefault(n(56)),s=n(81),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r.__extends(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,o={x:t.x,y:t.y};r&&i.isEqual(r,o)||this.showTooltip(o),this.timeStamp=n,this.location=o}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var n=e.get("tip");this.tooltip.update(r.__assign({title:n},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},c=e.getTheme(),l=i.get(c,["components","tooltip","domStyles"],{}),u=new s.HtmlTooltip({parent:n.get("el").parentNode,region:a,visible:!1,crosshairs:null,domStyles:r.__assign({},i.deepMix({},l,(t={},t[o.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[o.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});u.init(),u.setCapture(!1),this.tooltip=u},e}(a.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(252)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=r.__importDefault(n(56)),o=n(43),a=n(0),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return r.__extends(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n){t.addShape({type:"path",attrs:{opacity:.4,fill:e.shape.attr("fill"),path:this.getLinkPath(e,n)}})},e.prototype.linkByElement=function(t){var e=this,n=this.context.view,r=this.getColorScale(n,t);if(r){var i=o.getElementValue(t,r.field);if(!this.cache[i]){var s=o.getElementsByField(n,r.field,i),c=this.linkGroup.addGroup();this.cache[i]=c;var l=s.length;a.each(s,(function(t,n){if(n=l&&t<=u})),e.render(!0)}}},e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var r=n(611);e.bind=function(t,e){var n=(0,r.getSensor)(t);return n.bind(e),function(){n.unbind(e)}},e.clear=function(t){var e=(0,r.getSensor)(t);(0,r.removeSensor)(e)},e.ver="1.0.1"},function(t,e,n){"use strict";var r=n(220),i=n(114),o=n(118),a=n(64);e.a=function(){var t=i.a,e=!1,n=1,s=1,c=[0],l=a.a,u=a.a,g=a.a,f=a.a,d=a.a;function h(t){return t.x0=t.y0=0,t.x1=n,t.y1=s,t.eachBefore(p),c=[0],e&&t.eachBefore(r.a),t}function p(e){var n=c[e.depth],r=e.x0+n,i=e.y0+n,o=e.x1-n,a=e.y1-n;o2?arguments[2]:{},r=i(e);o&&(r=s.call(r,Object.getOwnPropertySymbols(e)));for(var a=0;a=0&&"[object Function]"===i.call(t.callee)),n}},function(t,e,n){"use strict";var r=n(229),i=n(319),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),c=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(f){l=null}t.exports=function(t){var e=s(r,a,arguments);if(c&&l){var n=c(e,"length");n.configurable&&l(e,"length",{value:1+u(0,t.length-(arguments.length-1))})}return e};var g=function(){return s(r,o,arguments)};l?l(t.exports,"apply",{value:g}):t.exports.apply=g},function(t,e,n){"use strict";function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i,o=SyntaxError,a=Function,s=TypeError,c=function(t){try{return Function('"use strict"; return ('+t+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(E){l=null}var u=function(){throw new s},g=l?function(){try{return u}catch(t){try{return l(arguments,"callee").get}catch(e){return u}}}():u,f=n(500)(),d=Object.getPrototypeOf||function(t){return t.__proto__},h=c("async function* () {}"),p=h?h.prototype:i,A=p?p.prototype:i,C="undefined"===typeof Uint8Array?i:d(Uint8Array),v={"%AggregateError%":"undefined"===typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":c("async function () {}"),"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":A?d(A):i,"%Atomics%":"undefined"===typeof Atomics?i:Atomics,"%BigInt%":"undefined"===typeof BigInt?i:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":c("function* () {}"),"%Int8Array%":"undefined"===typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):i,"%JSON%":"object"===("undefined"===typeof JSON?"undefined":r(JSON))?JSON:i,"%Map%":"undefined"===typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f?d((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?i:Promise,"%Proxy%":"undefined"===typeof Proxy?i:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f?d((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):i,"%Symbol%":f?Symbol:i,"%SyntaxError%":o,"%ThrowTypeError%":g,"%TypedArray%":C,"%TypeError%":s,"%Uint8Array%":"undefined"===typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?i:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?i:WeakSet},I={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(229),m=n(501),b=y.call(Function.call,Array.prototype.concat),x=y.call(Function.apply,Array.prototype.splice),w=y.call(Function.call,String.prototype.replace),O=y.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,k=function(t){var e=O(t,0,1),n=O(t,-1);if("%"===e&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return w(t,S,(function(t,e,n,i){r[r.length]=n?w(i,_,"$1"):e||t})),r},j=function(t,e){var n,r=t;if(m(I,r)&&(r="%"+(n=I[r])[0]+"%"),m(v,r)){var i=v[r];if("undefined"===typeof i&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new s('"allowMissing" argument must be a boolean');var n=k(t),r=n.length>0?n[0]:"",i=j("%"+r+"%",e),a=i.name,c=i.value,u=!1,g=i.alias;g&&(r=g[0],x(n,b([0,1],g)));for(var f=1,d=!0;f=n.length){var C=l(c,h);c=(d=!!C)&&"get"in C&&!("originalValue"in C.get)?C.get:c[h]}else d=m(c,h),c=c[h];d&&!u&&(v[a]=c)}}return c}},function(t,e){function n(t){return(n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(i){"object"===("undefined"===typeof window?"undefined":n(window))&&(r=window)}t.exports=r},function(t,e,n){"use strict";function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===r(Symbol.iterator))return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,n){"use strict";var r=n(316),i=function(t){return"undefined"!==typeof t&&null!==t},o=n(321)(),a=n(502),s=Object,c=a("Array.prototype.push"),l=a("Object.prototype.propertyIsEnumerable"),u=o?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(!i(t))throw new TypeError("target must be an object");var n,a,g,f,d,h,p,A=s(t);for(n=1;n=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=Object(o.c)(e,[t.minX,t.minY]),c=Object(o.c)(e,[t.maxX,t.minY]),l=Object(o.c)(e,[t.minX,t.maxY]),u=Object(o.c)(e,[t.maxX,t.maxY]);n=Math.min(s[0],c[0],l[0],u[0]),i=Math.max(s[0],c[0],l[0],u[0]),r=Math.min(s[1],c[1],l[1],u[1]),a=Math.max(s[1],c[1],l[1],u[1])}var g=this.attrs;if(g.shadowColor){var f=g.shadowBlur,d=void 0===f?0:f,h=g.shadowOffsetX,p=void 0===h?0:h,A=g.shadowOffsetY,C=void 0===A?0:A,v=n-d+p,I=i+d+p,y=r-d+C,m=a+d+C;n=Math.min(n,v),i=Math.max(i,I),r=Math.min(r,y),a=Math.max(a,m)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],o=(i=this.invertFromMatrix(i))[0],a=i[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(i.a);e.a=a},function(t,e,n){"use strict";n.r(e);var r=n(115);n.d(e,"getAdjust",(function(){return r.getAdjust})),n.d(e,"registerAdjust",(function(){return r.registerAdjust}));var i=n(76);n.d(e,"Adjust",(function(){return i.a}));var o=n(461),a=n(462),s=n(463),c=n(464),l=n(175);for(var u in l)["default","getAdjust","registerAdjust","Adjust"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return l[t]}))}(u);Object(r.registerAdjust)("Dodge",o.a),Object(r.registerAdjust)("Jitter",a.a),Object(r.registerAdjust)("Stack",s.a),Object(r.registerAdjust)("Symmetric",c.a)},function(t,e){},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerAnimation=e.getAnimation=void 0;var r={};e.getAnimation=function(t){return r[t.toLowerCase()]},e.registerAnimation=function(t,e){r[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRadius=e.parseStyle=e.parsePattern=e.parseRadialGradient=e.parseLineGradient=void 0;var r=n(66),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function c(t,e){var n=t.match(s);r.each(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function l(t,e,n){var r,o,a=i.exec(n),s=parseFloat(a[1])%360*(Math.PI/180),l=a[2],u=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:u.minX,y:u.minY},o={x:u.maxX,y:u.maxY}):.5*Math.PI<=s&&s1&&(n*=Math.sqrt(A),i*=Math.sqrt(A));var C=n*n*(p*p)+i*i*(h*h),v=C?Math.sqrt((n*n*(i*i)-C)/C):1;c===l&&(v*=-1),isNaN(v)&&(v=0);var I=i?v*n*p/i:0,y=n?v*-i*h/n:0,m=(u+f)/2+Math.cos(s)*I-Math.sin(s)*y,b=(g+d)/2+Math.sin(s)*I+Math.cos(s)*y,x=[(h-I)/n,(p-y)/i],w=[(-1*h-I)/n,(-1*p-y)/i],O=a([1,0],x),S=a(x,w);return o(x,w)<=-1&&(S=Math.PI),o(x,w)>=1&&(S=0),0===l&&S>0&&(S-=2*Math.PI),1===l&&S<0&&(S+=2*Math.PI),{cx:m,cy:b,rx:r.isSamePoint(t,[f,d])?0:n,ry:r.isSamePoint(t,[f,d])?0:i,startAngle:O,endAngle:O+S,xRotation:s,arcFlag:c,sweepFlag:l}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(24);e.default=function(t,e,n){var i=r.getOffScreenContext();return t.createPath(i),i.isPointInPath(e,n)}},function(t,e,n){"use strict";function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var o=!1,a=t.length;if(a<=2)return!1;for(var s=0;s0!==r(l[1]-n)>0&&r(e-(n-c[1])*(c[0]-l[0])/(c[1]-l[1])-c[0])<0&&(o=!o)}return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(66);e.default=function(t,e,n,i,o,a,s,c){var l=(Math.atan2(c-e,s-t)+2*Math.PI)%(2*Math.PI);if(lo)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return r.distance(u.x,u.y,s,c)<=a/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(178);e.default=function(t,e,n,i,o){var a=t.length;if(a<2)return!1;for(var s=0;s1){a.sort();var C=function(t,e){var n=t.length,i=t;r.isString(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var o=i[1]-i[0],a=2;as&&(o=s)}return o}(a,o);c=(o.max-o.min)/C,a.length>c&&(c=a.length)}var v=o.range,I=1/c,y=1;if(n.isPolar?y=n.isTransposed&&c>1?p:A:(o.isLinear&&(I*=v[1]-v[0]),y=h),!r.isNil(u)&&u>=0?I=(1-u/l*(c-1))/c:I*=y,t.getAdjust("dodge")){var m=function(t,e){if(e){var n=r.flatten(t);return r.valuesOfKey(n,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy);!r.isNil(g)&&g>=0?I=(I-g/l*(m-1))/m:!r.isNil(u)&&u>=0?(I*=y,I/=m):I/=m,I=I>=0?I:0}if(!r.isNil(f)&&f>=0){var b=f/l;I>b&&(I=b)}if(!r.isNil(d)&&d>=0){var x=d/l;I1){for(var a=e.addGroup(),s=0,c=r;s1?e[1]:n;return{min:n,max:r,min1:o,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:o}}function c(t,e,n){var r,o=n/2;if(i.isArray(e)){var a=s(e),c=a.min,l=a.max,u=a.median,g=a.min1,f=t-o,d=t+o;r=[[f,l],[d,l],[t,l],[t,h=a.max1],[f,g],[f,h],[d,h],[d,g],[t,g],[t,c],[f,c],[d,c],[f,u],[d,u]]}else{e=i.isNil(e)?.5:e;var h,p=s(t),A=(c=p.min,l=p.max,u=p.median,e-o),C=e+o;r=[[c,A],[c,C],[c,e],[g=p.min1,e],[g,A],[g,C],[h=p.max1,C],[h,A],[h,e],[l,e],[l,A],[l,C],[u,A],[u,C]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}o.registerShape("schema","box",{getPoints:function(t){return c(t.x,t.y,t.size)},draw:function(t,e){var n,i=a.getStyle(t,!0,!1),o=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:o,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=c(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(87),a=n(39),s=n(53);function c(t,e,n){var r=function(t){var e=(i.isArray(t)?t:[t]).sort((function(t,e){return e-t}));return o.padEnd(e,4,e[e.length-1])}(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}a.registerShape("schema","candle",{getPoints:function(t){return c(t.x,t.y,t.size)},draw:function(t,e){var n,i=s.getStyle(t,!0,!0),o=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:o,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=c(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(39),a=n(53);function s(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),o=Math.min(n,r);return e&&(o=i.clamp(e,0,Math.min(n,r))),o/=2,{x:(t[0].x+t[2].x)/2-o,y:(t[0].y+t[2].y)/2-o,width:2*o,height:2*o}}o.registerShape("polygon","square",{draw:function(t,e){if(!i.isEmpty(t.points)){var n=a.getStyle(t,!0,!0),o=this.parsePoints(t.points);return e.addShape("rect",{attrs:r.__assign(r.__assign({},n),s(o,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antiCollision=void 0,e.antiCollision=function(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,o=!0,a=n.minY,s=n.maxY,c=Math.abs(a-s),l=0,u=Number.MIN_VALUE,g=r.map((function(t){return t.y>l&&(l=t.y),t.yc&&(c=l-a);o;)for(g.forEach((function(t){var e=(Math.min.apply(u,t.targets)+Math.max.apply(u,t.targets))/2;t.pos=Math.min(Math.max(u,e-t.size/2),c-t.size),t.pos=Math.max(0,t.pos)})),o=!1,i=g.length;i--;)if(i>0){var f=g[i-1],d=g[i];f.pos+f.size>d.pos&&(f.size+=d.size,f.targets=f.targets.concat(d.targets),f.pos+f.size>c&&(f.pos=c-f.size),g.splice(i,1),o=!0)}i=0,g.forEach((function(t){var n=a+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return r.__extends(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:i.head(t),end:i.last(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}(r.__importDefault(n(257)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(i.each(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(r.__importDefault(n(257)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=r.__importDefault(n(56)),o=n(43);function a(t,e,n,r){var i=Math.min(n[e],r[e]),o=Math.max(n[e],r[e]),a=t.range,s=a[0],c=a[1];if(ic&&(o=c),i===c&&o===c)return null;var l=t.invert(i),u=t.invert(o);if(t.isCategory){var g=t.values.indexOf(l),f=t.values.indexOf(u),d=t.values.slice(g,f+1);return function(t){return d.includes(t)}}return function(t){return t>=l&&t<=u}}var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return r.__extends(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(o.isMask(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var r=this.context.view,i=r.getCoordinate(),s=i.invert(e),c=i.invert(t);if(this.hasDim("x")){var l=r.getXScale(),u=a(l,"x",s,c);this.filterView(r,l.field,u)}if(this.hasDim("y")){var g=r.getYScales()[0];u=a(g,"y",s,c),this.filterView(r,g.field,u)}this.reRender(r)}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t)},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t){t.render(!0)},e}(i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(237),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return r.__extends(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(i.Action);e.default=o},function(t,e,n){var r=n(370);t.exports=function(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n {}"),null}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(54);function o(t){var e=Object(i.a)(),n=t.type,o=t.config;return Object(r.useLayoutEffect)((function(){return e.interaction(n,o),function(){e.removeInteraction(n)}})),null}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(215),i=n.n(r),o=n(4),a=n(98);function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=Object(a.getTheme)(t);e.name=t;var n=Object(o.useState)(e),r=i()(n,2),s=r[0],c=r[1],l=function(t){var e=Object(a.getTheme)(t);e.name=t,c(e)};return[s,l]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a")},key:(0===c?"top":"bottom")+"-statistic"},o.pick(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},e.renderGaugeStatistic=function(t,e,n){var c=e.statistic;[c.title,c.content].forEach((function(e){if(e){var c="",l=i.isFunction(e.style)?e.style(n):e.style;t.annotation().html(r.__assign({position:["50%","100%"],html:function(t,o){var u=o.getCoordinate(),g=o.views[0].getCoordinate(),f=g.getCenter(),d=g.getRadius(),h=Math.max(Math.sin(g.startAngle),Math.sin(g.endAngle))*d,p=f.y+h-u.y.start-parseFloat(i.get(l,"fontSize",0)),A=u.getRadius()*u.innerRadius*2;s(t,r.__assign({width:A+"px",transform:"translate(-50%, "+p+"px)"},a(l)));var C=o.getData();return e.customHtml?e.customHtml(t,o,n,C):(e.formatter&&(c=e.formatter(n,C)),c?i.isString(c)?c:""+c:"
")}},o.pick(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.geometry=void 0;var r=n(0),i=n(20),o=n(47),a=n(60),s=n(388),c=n(260);function l(t){var e=t.chart,n=t.options,o=n.percent,l=n.progressStyle,u=n.color,g=n.barWidthRatio;e.data(c.getProgressData(o));var f=i.deepAssign({},t,{options:{xField:"1",yField:"percent",seriesField:"type",isStack:!0,widthRatio:g,interval:{style:l,color:r.isString(u)?[u,s.DEFAULT_COLOR[1]]:u}}});return a.interval(f),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function u(t){return t.chart.coordinate("rect").transpose(),t}e.geometry=l,e.adaptor=function(t){return i.flow(l,o.scale({}),u,o.animation,o.theme,o.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.polygon=void 0;var r=n(1),i=n(95),o=n(20),a=n(96);e.polygon=function(t){var e=t.options,n=e.polygon,s=e.xField,c=e.yField,l=e.seriesField,u=e.tooltip,g=i.getTooltipMapping(u,[s,c,l]),f=g.fields,d=g.formatter;return n?a.geometry(o.deepAssign({},t,{options:{type:"polygon",colorField:l,tooltipFields:f,mapping:r.__assign({tooltip:d},n)}})):t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_COLOR=void 0,e.DEFAULT_COLOR=["#FAAD14","#E8EDF3"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRealNumber=void 0,e.isRealNumber=function(t){return"number"===typeof t&&!isNaN(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.adjust=e.legend=e.axis=e.meta=void 0;var r=n(1),i=n(0),o=n(47),a=n(20),s=n(60),c=n(20),l=n(158);function u(t){var e=t.chart,n=t.options,i=n.data,o=n.color,c=n.lineStyle,l=n.lineShape,u=n.point,g=n.seriesField;e.data(i);var f=a.deepAssign({},t,{options:{shapeField:g,line:{color:o,style:c,shape:l},point:u&&r.__assign({color:o,shape:"circle"},u),label:void 0}}),d=a.deepAssign({},f,{options:{tooltip:!1}});return s.line(f),s.point(d),t}function g(t){var e,n,r=t.options,i=r.xAxis,a=r.yAxis,s=r.xField,u=r.yField,g=r.data;return c.flow(o.scale(((e={})[s]=i,e[u]=a,e),((n={})[s]={type:"cat"},n[u]=l.adjustYMetaByZero(g,u),n)))(t)}function f(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function d(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function h(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,s=a.findGeometry(e,"line");if(i){var c=i.callback,l=r.__rest(i,["callback"]);s.label({fields:[o],callback:c,cfg:r.__assign({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},a.transformLabel(l))})}else s.label(!1);return t}function p(t){var e=t.chart;return t.options.isStack&&i.each(e.geometries,(function(t){t.adjust("stack")})),t}e.meta=g,e.axis=f,e.legend=d,e.adjust=p,e.adaptor=function(t){return c.flow(u,g,p,o.theme,f,d,o.tooltip,h,o.slider,o.interaction,o.animation,o.annotation(),o.limitInPlot)(t)}},function(t,e,n){"use strict";var r=n(220),i=n(91);e.a=function(){var t=1,e=1,n=0,o=!1;function a(a){var s=a.height+1;return a.x0=a.y0=n,a.x1=t,a.y1=e/s,a.eachBefore(function(t,e){return function(r){r.children&&Object(i.a)(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var o=r.x0,a=r.y0,s=r.x1-n,c=r.y1-n;s1?r+"_"+o:""+r})[n]=n?t[n]:String(e),a[r]=i,a))})),s.push(((a={tKey:""+o})[n]=n?t[n]:String(e),a[o]=t[o],a)),c.push(t[i],t[r],t[o])}));var l=Math.min.apply(Math,c.flat(1/0)),u=Math.max.apply(Math,c.flat(1/0));return l=l>0?0:l,"vertical"===a&&s.reverse(),{min:l,max:u,ds:s}}},function(t,e,n){"use strict";n(403),n(404),n(405),n(406),n(407),n(408)},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(2),a=n(77),s=n(227);!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}Object(r.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,r=e.xField,i=e.isPercent;this.chart.changeData(Object(a.a)(t,n,r,n,i))},e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]})},e.prototype.getSchemaAdaptor=function(){return s.a}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(224),a=n(225),s=n(145);!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}Object(r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return{percent:.2,color:a.a,animation:!0}},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Object(s.a)(t))},e.prototype.getSchemaAdaptor=function(){return o.a}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(2);!function(t){function e(e,n,r,o){var a=t.call(this,e,Object(i.b)({},o,n))||this;return a.type="g2-plot",a.defaultOptions=o,a.adaptor=r,a}Object(r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor}}(n(18).a)},function(t,e,n){"use strict";var r,i=n(205);!function(t){t.DEV="DEV",t.BETA="BETA",t.STABLE="STABLE"}(r||(r={})),function(){function t(){}Object.defineProperty(t,"MultiView",{get:function(){var t,e;return t=r.STABLE,e="MultiView",console.warn(t===r.DEV?"Plot '"+e+"' is in DEV stage, just give us issues.":t===r.BETA?"Plot '"+e+"' is in BETA stage, DO NOT use it in production env.":t===r.STABLE?"Plot '"+e+"' is in STABLE stage, import it by \"import { "+e+" } from '@antv/g2plot'\".":"invalid Stage type."),i.a},enumerable:!1,configurable:!0})}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRangeData=e.getIndicatorData=e.processRangeData=void 0;var r=n(0),i=n(181);function o(t){return t.map((function(e,n){var r;return(r={})[i.RANGE_VALUE]=e-(t[n-1]||0),r[i.RANGE_TYPE]=""+n,r})).filter((function(t){return!!t[i.RANGE_VALUE]}))}e.processRangeData=o,e.getIndicatorData=function(t){var e;return[(e={},e[i.PERCENT]=r.clamp(t,0,1),e)]},e.getRangeData=function(t,e){var n=r.get(e,["ticks"],[]);return o(r.size(n)?n:[0,r.clamp(t,0,1),1])}},function(t,e,n){"use strict";n.d(e,"w",(function(){return g})),n.d(e,"A",(function(){return d})),n.d(e,"J",(function(){return I})),n.d(e,"I",(function(){return b})),n.d(e,"K",(function(){return S})),n.d(e,"p",(function(){return j})),n.d(e,"L",(function(){return R})),n.d(e,"H",(function(){return D})),n.d(e,"b",(function(){return B})),n.d(e,"E",(function(){return z})),n.d(e,"k",(function(){return W})),n.d(e,"s",(function(){return Y})),n.d(e,"y",(function(){return H})),n.d(e,"a",(function(){return Z})),n.d(e,"D",(function(){return q})),n.d(e,"r",(function(){return K})),n.d(e,"f",(function(){return tt})),n.d(e,"l",(function(){return nt})),n.d(e,"F",(function(){return rt})),n.d(e,"z",(function(){return it})),n.d(e,"t",(function(){return ot})),n.d(e,"u",(function(){return st})),n.d(e,"g",(function(){return lt})),n.d(e,"n",(function(){return gt})),n.d(e,"N",(function(){return pt})),n.d(e,"B",(function(){return vt})),n.d(e,"i",(function(){return yt})),n.d(e,"G",(function(){return bt})),n.d(e,"m",(function(){return wt})),n.d(e,"x",(function(){return Mt})),n.d(e,"q",(function(){return Dt})),n.d(e,"o",(function(){return Lt})),n.d(e,"h",(function(){return Ft})),n.d(e,"M",(function(){return zt})),n.d(e,"C",(function(){return Gt})),n.d(e,"c",(function(){return Wt})),n.d(e,"d",(function(){return Xt})),n.d(e,"e",(function(){return qt})),n.d(e,"j",(function(){return Jt})),n.d(e,"v",(function(){return ne}));var r={};n.r(r),n.d(r,"ProgressChart",(function(){return g})),n.d(r,"RingProgressChart",(function(){return d})),n.d(r,"TinyColumnChart",(function(){return I})),n.d(r,"TinyAreaChart",(function(){return b})),n.d(r,"TinyLineChart",(function(){return S}));var i={};n.r(i),n.d(i,"LineChart",(function(){return j})),n.d(i,"TreemapChart",(function(){return R})),n.d(i,"StepLineChart",(function(){return D})),n.d(i,"BarChart",(function(){return B})),n.d(i,"StackedBarChart",(function(){return z})),n.d(i,"GroupedBarChart",(function(){return W})),n.d(i,"PercentStackedBarChart",(function(){return Y})),n.d(i,"RangeBarChart",(function(){return H})),n.d(i,"AreaChart",(function(){return Z})),n.d(i,"StackedAreaChart",(function(){return q})),n.d(i,"PercentStackedAreaChart",(function(){return K})),n.d(i,"ColumnChart",(function(){return tt})),n.d(i,"GroupedColumnChart",(function(){return nt})),n.d(i,"StackedColumnChart",(function(){return rt})),n.d(i,"RangeColumnChart",(function(){return it})),n.d(i,"PercentStackedColumnChart",(function(){return ot})),n.d(i,"PieChart",(function(){return st})),n.d(i,"DensityHeatmapChart",(function(){return lt})),n.d(i,"HeatmapChart",(function(){return gt})),n.d(i,"WordCloudChart",(function(){return pt})),n.d(i,"RoseChart",(function(){return vt})),n.d(i,"FunnelChart",(function(){return yt})),n.d(i,"StackedRoseChart",(function(){return bt})),n.d(i,"GroupedRoseChart",(function(){return wt})),n.d(i,"RadarChart",(function(){return Mt})),n.d(i,"LiquidChart",(function(){return Dt})),n.d(i,"HistogramChart",(function(){return Lt})),n.d(i,"DonutChart",(function(){return Ft})),n.d(i,"WaterfallChart",(function(){return zt})),n.d(i,"ScatterChart",(function(){return Gt})),n.d(i,"BubbleChart",(function(){return Wt})),n.d(i,"BulletChart",(function(){return Xt})),n.d(i,"CalendarChart",(function(){return qt})),n.d(i,"GaugeChart",(function(){return Jt}));var o=n(5),a=n.n(o),s=n(4),c=n.n(s),l=n(473),u=n(10),g=Object(u.a)(l.Progress,"ProgressChart",(function(t){return a()({data:t.percent,color:"#5B8FF9"},t)})),f=n(474),d=Object(u.a)(f.RingProgress,"RingProgressChart",(function(t){return a()({data:t.percent,color:"#5B8FF9"},t)})),h=n(475),p=n(25),A=n.n(p),C=n(13),v=n(0),I=Object(u.a)(h.TinyColumn,"TinyColumnChart",(function(t){var e=Object(C.c)(t);if(!Object(v.isNil)(e.yField)){var n=e.data.map((function(t){return t[e.yField]})).filter((function(t){return!Object(v.isNil)(t)}));n&&n.length&&A()(e,"data",n)}return A()(e,"tooltip",!1),e})),y=n(476),m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i2&&void 0!==arguments[2]?arguments[2]:1;if(r>n)delete e.children;else{var i=e.children;i&&i.length&&i.forEach((function(e){t(e,n,r+1)}))}},R=Object(u.a)(E.Treemap,"TreemapChart",(function(t){var e=Object(C.c)(t),n=Object(v.get)(e,"maxLevel",2);if(!Object(v.isNil)(n))if(n<1)M()(!1,"maxLevel \u5fc5\u987b\u5927\u4e8e\u7b49\u4e8e1");else{var r=Object(v.get)(e,"data",{});T(r,n),Object(v.set)(e,"data",r),Object(v.set)(e,"maxLevel",n)}return e})),D=Object(u.a)(_.Line,"StepLineChart",(function(t){return M()(!1,"\u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\u3002"),t.stepType=t.stepType||t.step||"hv",k(t)})),N=n(92),L=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\uff0c"),Object(v.deepMix)(t,{isStack:!0}),F(t)})),V=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i \u57285.0\u540e\u5373\u5c06\u88ab\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528 \u66ff\u4ee3");var e=Object(C.c)(t),n=e.barSize,r=V(e,["barSize"]);return Object(C.f)(G,r),Object(v.isNil)(n)||(r.minBarWidth=n,r.maxBarWidth=n),r})),Y=Object(u.a)(N.Bar,"PercentStackedBarChart",(function(t){return M()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\u3002"),Object(v.deepMix)(t,{isPercent:!0,isStack:!0}),F(t)})),H=Object(u.a)(N.Bar,"RangeBarChart",(function(t){return M()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\u3002"),Object(v.deepMix)(t,{isRange:!0}),F(t)})),U=n(142),X=function(t){var e=Object(C.c)(t);return Object(C.e)(e,"line"),Object(C.e)(e,"point"),Object(C.f)([{sourceKey:"stackField",targetKey:"seriesField",notice:"stackField\u662f\u65e7\u7248api\uff0c\u5373\u5c06\u5e9f\u5f03 \u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"}],e),e},Z=Object(u.a)(U.Area,"AreaChart",X),q=Object(u.a)(U.Area,"StackedAreaChart",(function(t){return M()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528 \u66ff\u4ee3\u3002"),X(t)})),K=Object(u.a)(U.Area,"PercentStackedAreaChart",(function(t){return M()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528 \u66ff\u4ee3\u3002"),Object(v.deepMix)(t,{isPercent:!0}),X(t)})),Q=n(93),J=[{sourceKey:"colorField",targetKey:"seriesField",notice:"colorField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"},{sourceKey:"stackField",targetKey:"seriesField",notice:"colorField\u662f\u65e7\u7248API\uff0c\u5373\u5c06\u5e9f\u5f03 \u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"}],$=function(t){var e=Object(C.c)(t);return Object(C.f)(J,e),e},tt=Object(u.a)(Q.Column,"ColumnChart",$),et=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i \u57285.0\u540e\u5373\u5c06\u88ab\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528 \u66ff\u4ee3");var e=Object(C.c)(t),n=e.columnSize,r=et(e,["columnSize"]);return Object(v.isNil)(n)||(r.minColumnWidth=n,r.maxColumnWidth=n),r})),rt=Object(u.a)(Q.Column,"StackedColumnChart",(function(t){return M()(!1,"\u5373\u5c06\u57285.0\u4e2d\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\u3002"),Object(v.deepMix)(t,{isStack:!0}),$(t)})),it=Object(u.a)(Q.Column,"RangeColumnChart",(function(t){return M()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\u3002"),Object(v.deepMix)(t,{isRange:!0}),$(t)})),ot=Object(u.a)(Q.Column,"PercentStackedColumnChart",(function(t){return M()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\u3002"),Object(v.deepMix)(t,{isPercent:!0,isStack:!0}),$(t)})),at=n(221),st=Object(u.a)(at.Pie,"PieChart",C.c),ct=n(143),lt=Object(u.a)(ct.Heatmap,"DensityHeatmapChartChart",(function(t){var e=Object(C.c)(t);return Object(C.f)([{sourceKey:"radius",targetKey:"sizeRatio",notice:"radius \u8bf7\u4f7f\u7528sizeRatio\u66ff\u4ee3"}],e),Object(v.set)(e,"type","density"),e})),ut=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=0){var e=t.chart,n=Object(dt.getTheme)();I&&a()(n.geometries.point["hollow-circle"].active.style,I),e.on("afterrender",(function(){e.geometries.length&&e.geometries[0].elements.forEach((function(t,e){e===l&&t.setState("active",!0)}))})),e.on("plot:mousemove",(function(t){if(t.data){var e=t.data.data,n=e.datum,r=e.x,i=e.y,o=e.width,a=e.height;A&&A(n,{x:r,y:i,w:o,h:a},t.event)}else A&&A(void 0,void 0,t.event)})),e.on("plot:click",(function(t){if(t.data){var e=t.data.data,n=e.datum,r=e.x,i=e.y,o=e.width,a=e.height;C&&C(n,{x:r,y:i,w:o,h:a},t.event)}else C&&C(void 0,void 0,t.event)}))}}},v)})),At=n(144),Ct=[{sourceKey:"colorField",targetKey:"seriesField",notice:"colorField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"},{sourceKey:"categoryField",targetKey:"xField",notice:"categoryField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"}],vt=Object(u.a)(At.Rose,"RoseChart",(function(t){var e=Object(C.c)(t);return Object(C.f)(Ct,e),!1===O()(e,"tooltip.visible")&&A()(e,"tooltip",!1),!1===O()(e,"label.visible")&&A()(e,"label",!1),"inner"===O()(e,"label.type")&&(e.label.offset=-15,delete e.label.type),"outer"===O()(e,"label.type")&&delete e.label.type,e})),It=n(480),yt=Object(u.a)(It.Funnel,"FunnelChart",(function(t){var e=Object(C.c)(t);return Object(C.f)([{sourceKey:"transpose",targetKey:"isTransposed",notice:"transpose \u5373\u5c06\u5e9f\u5f03 \u8bf7\u4f7f\u7528isTransposed\u66ff\u4ee3"}],e),e})),mt=[{sourceKey:"stackField",targetKey:"seriesField",notice:"stackField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"},{sourceKey:"categoryField",targetKey:"xField",notice:"categoryField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"}],bt=Object(u.a)(At.Rose,"StackedRoseChart",(function(t){M()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u66ff\u4ee3\uff0c");var e=Object(C.c)(t);return Object(C.f)(mt,e),!1===O()(e,"tooltip.visible")&&A()(e,"tooltip",!1),!1===O()(e,"label.visible")&&A()(e,"label",!1),"inner"===O()(e,"label.type")&&(e.label.offset=-15,delete e.label.type),"outer"===O()(e,"label.type")&&delete e.label.type,a()(a()({},e),{isStack:!0})})),xt=[{sourceKey:"groupField",targetKey:"seriesField",notice:"groupField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528seriesField\u66ff\u4ee3"},{sourceKey:"categoryField",targetKey:"xField",notice:"categoryField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"}],wt=Object(u.a)(At.Rose,"GroupedRoseChart",(function(t){M()(!1," \u5373\u5c06\u57285.0\u540e\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528\u3002");var e=Object(C.c)(t);return Object(C.f)(xt,e),"inner"===Object(v.get)(e,"label.type")&&(e.label.offset=-15,delete e.label.type),"outer"===Object(v.get)(e,"label.type")&&delete e.label.type,a()(a()({},e),{isGroup:!0})})),Ot=n(52),St=n.n(Ot),_t=n(73),kt=n.n(_t),jt=n(481),Et=[{sourceKey:"angleField",targetKey:"xField",notice:"angleField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528xField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"}],Pt=function(t){var e=O()(t,"line",{}),n=e.visible,r=e.size,i=e.style,o=a()({},i||{},a()({opacity:1,lineWidth:"number"===typeof r?r:2},function(t){return St()(t)||t?{fillOpacity:1,strokeOpacity:1}:{fillOpacity:0,strokeOpacity:0}}(n)));A()(t,"lineStyle",o)},Mt=Object(u.a)(jt.Radar,"RadarChart",(function(t){var e=Object(C.c)(t);return Object(C.f)(Et,e),!1===O()(e,"area.visible")&&A()(e,"area",!1),!1===O()(e,"point.visible")&&A()(e,"point",!1),Pt(e),(kt()(e.angleAxis)||kt()(e.radiusAxis))&&(e.angleAxis||(e.angleAxis={}),e.angleAxis.line=O()(e,"angleAxis.line",null),e.angleAxis.tickLine=O()(e,"angleAxis.tickLine",null)),Object(C.g)(e,"angleAxis","xAxis"),Object(C.g)(e,"radiusAxis","yAxis"),!1===O()(e,"tooltip.visible")&&A()(e,"tooltip",!1),!1===O()(e,"label.visible")&&A()(e,"label",!1),e})),Tt=n(482),Rt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i"),e})),Yt=n(485),Ht=n(32),Ut=n.n(Ht),Xt=Object(u.a)(Yt.Bullet,"BulletChart",(function(t){var e=Object(C.c)(t);return St()(O()(t,"measureSize"))||(M()(!1,"measureSize\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528size.measure\u66ff\u4ee3"),A()(e,"size.measure",O()(t,"measureSize"))),St()(O()(t,"rangeSize"))||(M()(!1,"rangeSize\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528size.range\u66ff\u4ee3"),A()(e,"size.range",O()(t,"rangeSize"))),St()(O()(t,"markerSize"))||(M()(!1,"markerSizee\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528size.target\u66ff\u4ee3"),A()(e,"size.target",O()(t,"markerSize"))),St()(O()(t,"measureColors"))||(M()(!1,"measureColors\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528color.measure\u66ff\u4ee3"),A()(e,"color.measure",O()(t,"measureColors"))),St()(O()(t,"rangeColors"))||(M()(!1,"rangeColors\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528color.range\u66ff\u4ee3"),A()(e,"color.range",O()(t,"rangeColors"))),St()(O()(t,"markerColors"))||(M()(!1,"markerColors\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528color.target\u66ff\u4ee3"),A()(e,"color.target",O()(t,"markerColors"))),St()(O()(t,"markerStyle"))||(M()(!1,"markerStyle\u5df2\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528bulletStyle.target\u66ff\u4ee3"),A()(e,"bulletStyle.target",O()(t,"markerStyle"))),St()(O()(t,"xAxis.line"))&&A()(e,"xAxis.line",!1),St()(O()(t,"yAxis"))&&A()(e,"yAxis",!1),St()(O()(t,"measureField"))&&A()(e,"measureField","measures"),St()(O()(t,"rangeField"))&&A()(e,"rangeField","ranges"),St()(O()(t,"targetField"))&&A()(e,"targetField","target"),Ut()(O()(t,"data.0.targets"))&&A()(e,"data.0.target",O()(t,"data.0.targets")[0]),St()(O()(t,"rangeMax"))||(M()(!1,"\u8be5\u5c5e\u6027\u5df2\u5e9f\u5f03\uff0c\u8bf7\u5728\u6570\u636e\u4e2d\u914d\u7f6erange\uff0c\u5e76\u914d\u7f6erangeField"),A()(e,"data.0.ranges",[O()(t,"rangeMax")])),e}));n(486).G2.registerShape("polygon","boundary-polygon",{draw:function(t,e){var n=e.addGroup(),r={stroke:"#fff",lineWidth:1,fill:t.color,paht:[]},i=t.points,o=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[3].x,i[3].y],["Z"]];if(r.path=this.parsePath(o),n.addShape("path",{attrs:r}),Object(v.get)(t,"data.lastWeek")){var a=[["M",i[2].x,i[2].y],["L",i[3].x,i[3].y]];n.addShape("path",{attrs:{path:this.parsePath(a),lineWidth:4,stroke:"#404040"}}),Object(v.get)(t,"data.lastDay")&&n.addShape("path",{attrs:{path:this.parsePath([["M",i[1].x,i[1].y],["L",i[2].x,i[2].y]]),lineWidth:4,stroke:"#404040"}})}return n}});var Zt=[{sourceKey:"colors",targetKey:"color",notice:"colors \u662f g2Plot@1.0 \u7684\u5c5e\u6027\uff0c\u8bf7\u4f7f\u7528 color \u5c5e\u6027\u66ff\u4ee3"},{sourceKey:"valueField",targetKey:"colorField",notice:"valueField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528colorField\u66ff\u4ee3"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField \u662f g2@1.0\u7684\u5c5e\u6027\uff0c\u5373\u5c06\u5e9f\u5f03\uff0c\u8bf7\u4f7f\u7528yFeild\u66ff\u4ee3"}],qt=Object(u.a)(ct.Heatmap,"CalendarChart",(function(t){var e=Object(C.c)(t);return Object(C.f)(Zt,e),Object(v.isNil)(Object(v.get)(t,"shape"))&&Object(v.set)(e,"shape","boundary-polygon"),Object(v.isNil)(Object(v.get)(e,"xField"))&&Object(v.isNil)(Object(v.get)(e,"yField"))&&(Object(v.set)(e,"xField","week"),Object(v.set)(e,"meta.week",a()({type:"cat"},Object(v.get)(e,"meta.week",{}))),Object(v.set)(e,"yField","day"),Object(v.set)(e,"meta.day",{type:"cat",values:["Sun.","Mon.","Tues.","Wed.","Thur.","Fri.","Sat."]}),Object(v.set)(e,"reflect","y"),Object(v.set)(e,"xAxis",a()({tickLine:null,line:null,title:null,label:{offset:20,style:{fontSize:12,fill:"#bbb",textBaseline:"top"},formatter:function(t){return"2"==t?"MAY":"6"===t?"JUN":"10"==t?"JUL":"14"===t?"AUG":"18"==t?"SEP":"24"===t?"OCT":""}}},Object(v.get)(e,"xAxis",{})))),e})),Kt=n(487),Qt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=0&&e._call.call(null,t),e=e._next;--f}()}finally{f=0,function(){for(var t,e,n=u,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:u=e);g=t,S(r)}(),A=0}}function O(){var t=v.now(),e=t-p;e>1e3&&(C-=e,p=t)}function S(t){f||(d&&(d=clearTimeout(d)),t-A>24?(t<1/0&&(d=setTimeout(w,t-v.now()-C)),h&&(h=clearInterval(h))):(h||(p=v.now(),h=setInterval(O,1e3)),f=1,I(w)))}function _(t){return+t}function k(t){return t*t}function j(t){return t*(2-t)}function E(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function P(t){return t*t*t}function M(t){return--t*t*t+1}function T(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}b.prototype=x.prototype={constructor:b,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?y():+n)+(null==e?0:+e),this._next||g===this||(g?g._next=this:u=this,g=this),this._call=t,this._time=n,S()},stop:function(){this._call&&(this._call=null,this._time=1/0,S())}};var R=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),D=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),N=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),L=Math.PI,F=L/2;function B(t){return 1===+t?1:1-Math.cos(t*F)}function z(t){return Math.sin(t*F)}function V(t){return(1-Math.cos(L*t))/2}function G(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function W(t){return G(1-+t)}function Y(t){return 1-G(t)}function H(t){return((t*=2)<=1?G(1-t):2-G(t-1))/2}function U(t){return 1-Math.sqrt(1-t*t)}function X(t){return Math.sqrt(1- --t*t)}function Z(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var q=4/11,K=7.5625;function Q(t){return 1-J(1-t)}function J(t){return(t=+t)=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:yt(n,r)})),o=wt.lastIndex;return od.length?(f=kt.parsePathString(o[g]),d=kt.parsePathString(i[g]),d=kt.fillPathByDiff(d,f),d=kt.formatPath(d,f),e.fromAttrs.path=d,e.toAttrs.path=f):e.pathFormatted||(f=kt.parsePathString(o[g]),d=kt.parsePathString(i[g]),d=kt.formatPath(d,f),e.fromAttrs.path=d,e.toAttrs.path=f,e.pathFormatted=!0),r[g]=[];for(var h=0;h0){for(var o=r.animators.length-1;o>=0;o--)if((t=r.animators[o]).destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],Et(t,n,i)&&(e.splice(a,1),n.callback&&n.callback());0===e.length&&r.removeAnimator(o)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),Mt=n(182),Tt=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Rt(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function Dt(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&Object(s.g)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var Nt=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(s.a)(Tt,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");Object(s.a)(Tt,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,o){var a=new Mt.a(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,c=n.timeStamp-this.mousedownTimeStamp,l=a.clientX-t.clientX,u=a.clientY-t.clientY;c>120||l*l+u*u>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,Rt(r,t,a);for(var s=r.getParent();s;)s.emitDelegation(t,a),a.propagationStopped||Dt(s,t,a),a.propagationPath.push(s),s=s.getParent()}else Rt(this.canvas,t,a)},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),Lt=Object(o.detect)(),Ft=Lt&&"firefox"===Lt.name,Bt=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");Object(s.h)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new Nt({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Pt(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");s.c&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");s.c&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(Ft&&!Object(s.e)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(s.e)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(a.a);e.a=Bt},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(3),a=n(2),s=n(0);function c(t,e){var n;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"===typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=o)&&(n=o)}}catch(u){i.e(u)}finally{i.f()}}else{var a,s=-1,c=g(t);try{for(c.s();!(a=c.n()).done;){var l=a.value;null!=(l=e(l,++s,t))&&(n=l)&&(n=l)}}catch(u){c.e(u)}finally{c.f()}}return n}function h(t,e){var n;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);no||void 0===n&&o>=o)&&(n=o)}}catch(u){i.e(u)}finally{i.f()}}else{var a,s=-1,c=h(t);try{for(c.s();!(a=c.n()).done;){var l=a.value;null!=(l=e(l,++s,t))&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(u){c.e(u)}finally{c.f()}}return n}function C(t){return t.target.depth}function v(t,e){return t.sourceLinks.length?t.depth:e-1}function I(t){return function(){return t}}function y(t){return(y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||x(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){var n;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=x(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function x(t,e){if(t){if("string"===typeof t)return w(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(t,e):void 0}}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nn)throw new Error("circular link");r=i,i=new Set}}function D(t){for(var e=t.nodes,n=e.length,r=new Set(e),i=new Set,o=0;r.size;){var a,s=b(r);try{for(s.s();!(a=s.n()).done;){var c=a.value;c.height=o;var l,u=b(c.targetLinks);try{for(u.s();!(l=u.n()).done;){var g=l.value.source;i.add(g)}}catch(f){u.e(f)}finally{u.f()}}}catch(f){s.e(f)}finally{s.f()}if(++o>n)throw new Error("circular link");r=i,i=new Set}}function N(n){var l=function(t){var n,i=t.nodes,a=d(i,(function(t){return t.depth}))+1,c=(o-r-s)/(a-1),l=new Array(a),u=b(i);try{for(u.s();!(n=u.n()).done;){var f=n.value,h=Math.max(0,Math.min(a-1,Math.floor(g.call(null,f,a))));f.layer=h,f.x0=r+h*c,f.x1=f.x0+s,l[h]?l[h].push(f):l[h]=[f]}}catch(C){u.e(C)}finally{u.f()}if(e){var p,A=b(l);try{for(A.s();!(p=A.n()).done;)p.value.sort(e)}catch(C){A.e(C)}finally{A.f()}}return l}(n);t=Math.min(c,(a-i)/(d(l,(function(t){return t.length}))-1)),function(e){var n,r=A(e,(function(e){return(a-i-(e.length-1)*t)/u(e,k)})),o=b(e);try{for(o.s();!(n=o.n()).done;){var s,c=n.value,l=i,g=b(c);try{for(g.s();!(s=g.n()).done;){var f=s.value;f.y0=l,f.y1=l+f.value*r,l=f.y1+t;var d,h=b(f.sourceLinks);try{for(h.s();!(d=h.n()).done;){var p=d.value;p.width=p.value*r}}catch(I){h.e(I)}finally{h.f()}}}catch(I){g.e(I)}finally{g.f()}l=(a-l+t)/(c.length+1);for(var C=0;C0){var C=(g/f-u.y0)*n;u.y0+=C,u.y1+=C,G(u)}}}catch(v){c.e(v)}finally{c.f()}void 0===e&&s.sort(_),B(s,r)}}function F(t,n,r){for(var i=t.length-2;i>=0;--i){var o,a=t[i],s=b(a);try{for(s.s();!(o=s.n()).done;){var c,l=o.value,u=0,g=0,f=b(l.sourceLinks);try{for(f.s();!(c=f.n()).done;){var d=c.value,h=d.target,p=d.value*(h.layer-l.layer);u+=H(l,h)*p,g+=p}}catch(C){f.e(C)}finally{f.f()}if(g>0){var A=(u/g-l.y0)*n;l.y0+=A,l.y1+=A,G(l)}}}catch(C){s.e(C)}finally{s.f()}void 0===e&&a.sort(_),B(a,r)}}function B(e,n){var r=e.length>>1,o=e[r];V(e,o.y0-t,r-1,n),z(e,o.y1+t,r+1,n),V(e,a,e.length-1,n),z(e,i,0,n)}function z(e,n,r,i){for(;r1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function V(e,n,r,i){for(;r>=0;--r){var o=e[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function G(t){var e=t.sourceLinks,r=t.targetLinks;if(void 0===n){var i,o=b(r);try{for(o.s();!(i=o.n()).done;)i.value.source.sourceLinks.sort(S)}catch(c){o.e(c)}finally{o.f()}var a,s=b(e);try{for(s.s();!(a=s.n()).done;)a.value.target.targetLinks.sort(O)}catch(c){s.e(c)}finally{s.f()}}}function W(t){if(void 0===n){var e,r=b(t);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=i.sourceLinks,a=i.targetLinks;o.sort(S),a.sort(O)}}catch(s){r.e(s)}finally{r.f()}}}function Y(e,n){var r,i=e.y0-(e.sourceLinks.length-1)*t/2,o=b(e.sourceLinks);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.target,c=a.width;if(s===n)break;i+=c+t}}catch(h){o.e(h)}finally{o.f()}var l,u=b(n.targetLinks);try{for(u.s();!(l=u.n()).done;){var g=l.value,f=g.source,d=g.width;if(f===e)break;i-=d}}catch(h){u.e(h)}finally{u.f()}return i}function H(e,n){var r,i=n.y0-(n.targetLinks.length-1)*t/2,o=b(n.targetLinks);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.source,c=a.width;if(s===e)break;i+=c+t}}catch(h){o.e(h)}finally{o.f()}var l,u=b(e.sourceLinks);try{for(u.s();!(l=u.n()).done;){var g=l.value,f=g.target,d=g.width;if(f===n)break;i-=d}}catch(h){u.e(h)}finally{u.f()}return i}return C.update=function(t){return T(t),t},C.nodeId=function(t){return arguments.length?(l="function"===typeof t?t:I(t),C):l},C.nodeAlign=function(t){return arguments.length?(g="function"===typeof t?t:I(t),C):g},C.nodeSort=function(t){return arguments.length?(e=t,C):e},C.nodeWidth=function(t){return arguments.length?(s=+t,C):s},C.nodePadding=function(e){return arguments.length?(c=t=+e,C):c},C.nodes=function(t){return arguments.length?(f="function"===typeof t?t:I(t),C):f},C.links=function(t){return arguments.length?(h="function"===typeof t?t:I(t),C):h},C.linkSort=function(t){return arguments.length?(n=t,C):n},C.size=function(t){return arguments.length?(r=i=0,o=+t[0],a=+t[1],C):[o-r,a-i]},C.extent=function(t){return arguments.length?(r=+t[0][0],o=+t[1][0],i=+t[0][1],a=+t[1][1],C):[[r,i],[o,a]]},C.iterations=function(t){return arguments.length?(p=+t,C):p},C}var D=Math.PI,N=2*D,L=1e-6,F=N-L;function B(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function z(){return new B}B.prototype=z.prototype={constructor:B,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-t,c=r-e,l=o-t,u=a-e,g=l*l+u*u;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(g>L)if(Math.abs(u*s-c*l)>L&&i){var f=n-o,d=r-a,h=s*s+c*c,p=f*f+d*d,A=Math.sqrt(h),C=Math.sqrt(g),v=i*Math.tan((D-Math.acos((h+g-p)/(2*A*C)))/2),I=v/C,y=v/A;Math.abs(I-1)>L&&(this._+="L"+(t+I*l)+","+(e+I*u)),this._+="A"+i+","+i+",0,0,"+ +(u*f>l*d)+","+(this._x1=t+y*s)+","+(this._y1=e+y*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+a,l=e+s,u=1^o,g=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>L||Math.abs(this._y1-l)>L)&&(this._+="L"+c+","+l),n&&(g<0&&(g=g%N+N),g>F?this._+="A"+n+","+n+",0,1,"+u+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=c)+","+(this._y1=l):g>L&&(this._+="A"+n+","+n+",0,"+ +(g>=D)+","+u+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},Array.prototype.slice;var V={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?A(t.sourceLinks,C)-1:0},justify:v},G={nodeId:function(t){return t.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0};function W(t,e){var n=function(t){return Object(s.assign)({},G,t)}(t),r=n.nodeId,i=n.nodeSort,o=n.nodeAlign,a=n.nodeWidth,c=n.nodePadding,l=R().nodeSort(i).links((function(t){return t.links})).nodeWidth(a).nodePadding(c).nodeAlign(function(t){return(Object(s.isString)(t)?V[t]:Object(s.isFunction)(t)?t:null)||v}(o)).extent([[0,0],[1,1]]).nodeId(r)(e);return l.nodes.forEach((function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;t.x=[e,n,n,e],t.y=[r,r,i,i]})),l.links.forEach((function(t){var e=t.source,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var o=t.width/2;t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o]})),l}var Y=n(16),H=n(68),U="name";function X(t,e,n){return 0!==Object(s.size)(e)&&(!!e.includes(n)||e.some((function(e){return X(t,t.get(e),n)})))}function Z(t,e,n){var r=[],i=[],o=new Map;return Object(s.each)(t,(function(t){var a=t[e],s=t[n];X(o,[a],s)?i.push(t):(r.push(t),o.has(s)||o.set(s,[]),o.get(s).push(a))})),0!==i.length&&console.warn("sankey data contains circle, "+i.length+" records removed.",i),r}function q(t){var e=t.chart,n=t.options,r=n.data,i=n.sourceField,o=n.targetField,a=n.weightField,s=n.color,c=n.nodeStyle,l=n.edgeStyle,u=n.label,g=n.tooltip,f=n.nodeAlign,d=n.nodePaddingRatio,h=n.nodeWidthRatio,p=n.nodeSort;e.legend(!1),e.tooltip(g),e.axis(!1);var A=W({nodeAlign:f,nodePadding:d,nodeWidth:h,nodeSort:p},Object(H.b)(Z(r,i,o),i,o,a)),C=A.nodes,v=A.links,I=C.map((function(t){return{x:t.x,y:t.y,name:t.name}})),y=v.map((function(t){return{source:t.source.name,target:t.target.name,name:t.source.name||t.target.name,x:t.x,y:t.y,value:t.value}})),m=e.createView();m.data(I),Object(Y.f)({chart:m,options:{xField:"x",yField:"y",seriesField:U,polygon:{color:s,style:c},label:u,tooltip:!1}});var b=e.createView();return b.data(y),Object(Y.b)({chart:b,options:{xField:"x",yField:"y",seriesField:U,edge:{color:s,style:l,shape:"arc"},tooltip:g,state:{active:{style:{opacity:.8,lineWidth:0}}}}}),e.interaction("element-active"),e.scale({x:{sync:!0,nice:!0},y:{sync:!0,nice:!0},name:{sync:"color"}}),t}function K(t){return Object(a.e)(q,o.c,o.a,o.j)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sankey",e}Object(r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},label:{fields:["x","name"],callback:function(t,e){var n=1===t[1];return{style:{fill:"#545454",textAlign:n?"end":"start"},offsetX:n?-8:8,content:e}},layout:[{type:"hide-overlap"}]},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value"],formatter:function(t){return{name:t.source+" -> "+t.target,value:t.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01}},e.prototype.getSchemaAdaptor=function(){return K}}(i.a)},function(t,e,n){"use strict";n.r(e),n.d(e,"Canvas",(function(){return R})),n.d(e,"Group",(function(){return Q})),n.d(e,"Circle",(function(){return st})),n.d(e,"Ellipse",(function(){return ut})),n.d(e,"Image",(function(){return dt})),n.d(e,"Line",(function(){return At})),n.d(e,"Marker",(function(){return It})),n.d(e,"Path",(function(){return bt})),n.d(e,"Polygon",(function(){return Ot})),n.d(e,"Polyline",(function(){return kt})),n.d(e,"Rect",(function(){return Pt})),n.d(e,"Text",(function(){return Rt})),n.d(e,"render",(function(){return Dt}));var r=n(466),i=n.n(r),o=n(4),a=n.n(o),s=n(37),c={},l={getRootHostContext:function(){},getChildHostContext:function(){},createInstance:function(){},finalizeInitialChildren:function(){return!1},hideTextInstance:function(){},getPublicInstance:function(t){return t},hideInstance:function(){},unhideInstance:function(){},createTextInstance:function(){},prepareUpdate:function(){return c},shouldDeprioritizeSubtree:function(){return!1},appendInitialChild:function(){},appendChildToContainer:function(){},removeChildFromContainer:function(){},prepareForCommit:function(){},resetAfterCommit:function(){},shouldSetTextContent:function(){return!1},supportsMutation:!0,appendChild:function(){}},u=i()(l),g={render:function(t,e){e.clear&&e.clear();var n=u.createContainer(e,0,!1);return u.updateContainer(function(t,e){return a.a.createElement(s.a.Provider,{value:e},a.a.createElement(a.a.Fragment,null,t))}(t,e),n,null,(function(){})),u.getPublicRootInstance(n)}},f=n(11),d=n.n(f),h=n(12),p=n.n(h),A=n(6),C=n.n(A),v=n(5),I=n.n(v),y=n(8),m=n.n(y),b=n(35),x=n.n(b),w=n(188),O=n(271),S=n(141),_=n(79),k=a.a.createContext(null);k.displayName="CanvasContext";var j=k;function E(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=C()(t);if(e){var i=C()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}var P=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i1||r<0)&&(r=1),{x:Object(c.g)(t.x,e.x,r),y:Object(c.g)(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,o=e.content,a=e.style,s=e.offsetX,c=e.offsetY,u=e.autoRotate,g=e.maxLength,f=e.autoEllipsis,d=e.ellipsisPosition,h=e.background,p=e.isVertical,A=void 0!==p&&p,C=this.getLabelPoint(n,r,i),v=C.x+s,I=C.y+c,y={id:this.getElementId("line-text"),name:"annotation-line-text",x:v,y:I,content:o,style:a,maxLength:g,autoEllipsis:f,ellipsisPosition:d,background:h,isVertical:A};if(u){var m=[r.x-n.x,r.y-n.y];y.rotate=Math.atan2(m[1],m[0])}l(t,y)},e}(o.a),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:u.a.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:u.a.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("content"),o=this.get("style");l(t,{id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:i,style:o,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("rotate");Object(s.c)(t,n,r),Object(s.b)(t,i,n,r)}},e}(o.a),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=Object(c.e)(e,n,r),a=Object(c.e)(e,n,i),s=i-r>Math.PI?1:0,l=[["M",o.x,o.y]];if(i-r===2*Math.PI){var u=Object(c.e)(e,n,r+Math.PI);l.push(["A",n,n,0,s,1,u.x,u.y]),l.push(["A",n,n,0,s,1,a.x,a.y])}else l.push(["A",n,n,0,s,1,a.x,a.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:Object(r.__assign)({path:e},n)})},e}(o.a),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:u.a.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style"),o=Object(c.k)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.__assign)({x:o.x,y:o.y,width:o.width,height:o.height},i)})},e}(o.a),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),i=Object(c.k)({start:t,end:e}),o=this.get("src");return Object(r.__assign)({x:i.x,y:i.y,img:o,width:i.width,height:i.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(o.a),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:u.a.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u.a.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u.a.fontFamily}}}})},e.prototype.renderInner=function(t){Object(i.get)(this.get("line"),"display")&&this.renderLine(t),Object(i.get)(this.get("text"),"display")&&this.renderText(t),Object(i.get)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,i=e.y,o=e.text,a=Object(r.__rest)(e,["x","y","text"]),s=this.get("text"),c=s.background,u=s.maxLength,g=s.autoEllipsis,f=s.isVertival,d=s.ellipsisPosition;l(t,{x:n,y:i,id:this.getElementId("text"),name:"annotation-text",content:o,style:a,background:c,maxLength:u,autoEllipsis:g,isVertival:f,ellipsisPosition:d})},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),o=Object(i.get)(this.get("line"),"length",0),a=this.get("coordinateBBox"),c=t.getBBox(),l=c.minX,u=c.maxX,g=c.minY,f=c.maxY,d=t.findById(this.getElementId("text-group")),h=t.findById(this.getElementId("text")),p=t.findById(this.getElementId("line"));if(a){if(d){if(n+l<=a.minX){var A=a.minX-(n+l);Object(s.c)(d,d.attr("x")+A,d.attr("y"))}n+u>=a.maxX&&(A=n+u-a.maxX,Object(s.c)(d,d.attr("x")-A,d.attr("y")))}if("upward"===e&&r+g<=a.minY||"upward"!==e&&r+f>=a.maxY){var C=void 0,v=void 0;"upward"===e&&r+g<=a.minY?(C="top",v=1):(C="bottom",v=-1),h.attr("textBaseline",C),p&&p.attr("path",[["M",0,0],["L",0,o*v]]),Object(s.c)(d,d.attr("x"),(o+2)*v)}}},e.prototype.getShapeAttrs=function(){var t=Object(i.get)(this.get("line"),"display"),e=Object(i.get)(this.get("point"),"style",{}),n=Object(i.get)(this.get("line"),"style",{}),o=Object(i.get)(this.get("text"),"style",{}),a=this.get("direction"),s=t?Object(i.get)(this.get("line"),"length",0):0,c="upward"===a?-1:1;return{point:Object(r.__assign)({x:0,y:0},e),line:Object(r.__assign)({path:[["M",0,0],["L",0,s*c]]},n),text:Object(r.__assign)({x:0,y:(s+2)*c,text:Object(i.get)(this.get("text"),"content",""),textBaseline:"upward"===a?"bottom":"top"},o)}},e}(o.a),C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:u.a.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:u.a.textColor,fontFamily:u.a.fontFamily}}}})},e.prototype.renderInner=function(t){var e=Object(i.get)(this.get("region"),"style",{}),n=(Object(i.get)(this.get("text"),"style",{}),this.get("lineLength")||0),o=this.get("points");if(o.length){var a=Object(c.j)(o),s=[];s.push(["M",o[0].x,a.minY-n]),o.forEach((function(t){s.push(["L",t.x,t.y])})),s.push(["L",o[o.length-1].x,o[o.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.__assign)({path:s},e)}),l(t,Object(r.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(a.minX+a.maxX)/2,y:a.minY-n},this.get("text")))}},e}(o.a),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),r=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(i.each)(this.get("shapes"),(function(t,n){var r=t.get("type"),a=Object(i.clone)(t.attr());e.adjustShapeAttrs(a),e.addShape(o,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:a})}));var a=Object(c.k)({start:n,end:r});o.setClip({type:"rect",attrs:{x:a.minX,y:a.minY,width:a.width,height:a.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(o.a),I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"shape",draw:i.noop})},e.prototype.renderInner=function(t){var e=this.get("render");Object(i.isFunction)(e)&&e(t)},e}(o.a),y=n(29),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Object(c.a)(t);var n=Object(i.isFunction)(e)?e(t):e;Object(i.isElement)(n)?t.appendChild(n):Object(i.isString)(n)&&t.appendChild(Object(y.createDom)(n)),this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,i=this.get("alignX"),o=this.get("alignY"),a=this.get("offsetX"),s=this.get("offsetY"),c=Object(y.getOuterWidth)(t),l=Object(y.getOuterHeight)(t),u={x:n,y:r};"middle"===i?u.x-=Math.round(c/2):"right"===i&&(u.x-=Math.round(c)),"middle"===o?u.y-=Math.round(l/2):"bottom"===o&&(u.y-=Math.round(l)),a&&(u.x+=a),s&&(u.y+=s),Object(y.modifyCSS)(t,{position:"absolute",left:u.x+"px",top:u.y+"px",zIndex:this.get("zIndex")})},e}(n(104).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=new Map;function i(t,e){r.set(t,e)}function o(t){return r.get(t)}var a=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}},s=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}},c=n(26);function l(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function u(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape");return n&&(e=l(e,n.getCanvasBBox())),r&&(e=l(e,r.getCanvasBBox())),e}var g=n(112),f=n(72),d=n(0);function h(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),a=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),c=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!c||0===Math.sin(c)||Object(d.isNumberEqual)(c,0))return{xExtra:0,yExtra:0};var l=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),u=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return l=l>Math.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u,{xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0}}i("rect",a),i("image",a),i("circle",s),i("marker",s),i("polyline",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;i0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return Object(l.isNumberEqual)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:Object(l.mix)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,o=r.length,a=1;return t.length>=2&&(a=t[1].value-t[0].value),Object(l.each)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-a/2));var s=e.getSidePoint(r,o);n.push({startPoint:r,tickValue:t.value,endPoint:s,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var o=0;o0){var n=Object(l.size)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r===0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,o=r.rotate,a=r.formatter,s=this.getSidePoint(t.point,i),c=this.getSideVector(i,s),u=a?a(t.name,t,e):t.name,f=r.style;f=Object(l.isFunction)(f)?Object(l.get)(this.get("theme"),["label","style"],{}):f;var d=Object(l.mix)({x:s.x,y:s.y,text:u,textAlign:this.getTextAnchor(c),textBaseline:this.getTextBaseline(c)},f);return o&&(d.matrix=Object(g.e)(s,o)),d},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Object(l.each)(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),o=Object(l.get)(this.get("theme"),["label","style"],{}),a=this.get("label"),s=a.style,c=a.formatter;if(Object(l.isFunction)(s)){var u=i.map((function(t){return Object(l.get)(t.get("delegateObject"),"tick")}));Object(l.each)(i,(function(t,e){var n=t.get("delegateObject").tick,r=c?c(n.name,n,e):n.name,i=Object(l.mix)({},o,s(r,e,u));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,o=void 0===i?0:i,a=t.autoRotate,s=e.fontSize,u=.5;"start"===n?u=0:"end"===n&&(u=1);var f=this.getTickPoint(u),d=this.getSidePoint(f,r||o+s/2),h=Object(l.mix)({x:d.x,y:d.y,text:t.text},e),p=t.rotate,A=p;if(Object(l.isNil)(p)&&a){var C=this.getAxisVector(f);A=c.ext.angleTo(C,[1,0],!0)}if(A){var v=Object(g.e)(d,A);h.matrix=v}return h},e.prototype.drawTitle=function(t){this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:this.getTitleAttrs()})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var o=Object(f.a)(t,"label",n);o&&i.attr(o)}var a=this.getElementId("tickline-"+t.id),s=e.findById(a);if(s){var c=Object(f.a)(t,"tickLine",n);c&&s.attr(c)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=Object(f.a)(t,"label",n);s&&i.attr(s)}if(a){var c=Object(f.a)(t,"tickLine",n);c&&a.attr(c)}}else i&&i.attr(r.style),a&&a.attr(o.style)},e}(u.a),p=n(74);function A(t,e,n,r){var i=e.getChildren(),o=!1;return Object(l.each)(i,(function(e){var i=Object(p.a)(t,e,n,r);o=o||i})),o}function C(){return I}function v(t,e,n){return A(t,e,n,"head")}function I(t,e,n){return A(t,e,n,"tail")}function y(t,e,n){return A(t,e,n,"middle")}var m=n(17);function b(t){return(function(t){var e=t.attr("matrix");return e&&1!==e[0]}(t)?Object(g.d)(t.attr("matrix")):0)%360}function x(t,e,n,r){var i=!1,o=b(e),a=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),s=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var c=Math.abs(Math.cos(o));i=Object(m.i)(c,0,Math.PI/180)?s.width+r>a:s.height/c+r>a}else c=Math.abs(Math.sin(o)),i=Object(m.i)(c,0,Math.PI/180)?s.width+r>a:s.height/c+r>a;return i}function w(t,e,n,r){var i=(null===r||void 0===r?void 0:r.minGap)||0,o=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!o.length)return!1;var a=!1;n&&o.reverse();for(var s=o.length,c=o[0],l=1;l1){f=Math.ceil(f);for(var h=0;h2){var a=i[0],s=i[i.length-1];a.get("visible")||(a.show(),w(t,e,!1,r)&&(o=!0)),s.get("visible")||(s.show(),w(t,e,!0,r)&&(o=!0))}return o}function M(t,e,n,r){var i=e.getChildren();if(!i.length)return!1;if(!t&&i.length<2)return!1;var o=Object(p.b)(i),a=!1;return(a=t?!!n&&o>n:o>Math.abs(i[1].attr("x")-i[0].attr("x")))&&function(t,e){Object(l.each)(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=Object(g.e)({x:n,y:r},e);t.attr("matrix",i)}))}(i,r(n,o)),a}function T(){return R}function R(t,e,n,r){return M(t,e,n,(function(){return Object(l.isNumber)(r)?r:t?d.a.verticalAxisRotate:d.a.horizontalAxisRotate}))}function D(t,e,n){return M(t,e,n,(function(e,n){if(!e)return t?d.a.verticalAxisRotate:d.a.horizontalAxisRotate;if(t)return-Math.acos(e/n);var r=0;return(e>n||(r=Math.asin(e/n))>Math.PI/4)&&(r=Math.PI/4),r}))}var N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s.__assign)(Object(s.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),o=Math.min(e.y,n.y,r.y),a=Math.max(e.x,n.x,r.maxX),s=Math.max(e.y,n.y,r.maxY);return{x:i,y:o,minX:i,minY:o,maxX:a,maxY:s,width:a-i,height:s-o}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return Object(l.isNumberEqual)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(l.isNumberEqual)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=c.vec2.normalize([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return c.vec2.scale([0,0],i,t*r)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),r=this.isHorizontal();if(n||r){var i=this.get("label"),o=this.get("title"),a=this.get("verticalLimitLength"),s=i.offset,c=a,u=0,g=0;o&&(u=o.style.fontSize,g=o.spacing),c&&(c=c-s-g-u);var f=this.get("overlapOrder");if(Object(l.each)(f,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,c)})),o&&Object(l.isNil)(o.offset)){var d=t.getCanvasBBox(),h=n?d.width:d.height;o.offset=s+h+g+u/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(l.isNil)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=this.isVertical(),s=!1,c=a[t];if(!0===e)this.get("label"),s=c.getDefault()(o,n,r);else if(Object(l.isFunction)(e))s=e(o,n,r);else if(Object(l.isObject)(e)){var u=e;c[u.type]&&(s=c[u.type](o,n,r,u.cfg))}else c[e]&&(s=c[e](o,n,r));if("autoRotate"===t){if(s){var g=n.getChildren(),f=this.get("verticalFactor");Object(l.each)(g,(function(t){if("center"===t.attr("textAlign")){var e=f>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var d=n.getChildren().slice(0);Object(l.each)(d,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(h),L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s.__assign)(Object(s.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,o=this.get("startAngle"),a=this.get("endAngle"),s=[];if(Math.abs(a-o)===2*Math.PI)s=[["M",e,n-i],["A",r,i,0,1,1,e,n+i],["A",r,i,0,1,1,e,n-i],["Z"]];else{var c=this.getCirclePoint(o),l=this.getCirclePoint(a),u=Math.abs(a-o)>Math.PI?1:0,g=o>a?0:1;s=[["M",e,n],["L",c.x,c.y],["A",r,i,0,u,g,l.x,l.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(n)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),o=c.vec2.length(r);return c.vec2.scale(r,r,i*t/o),r},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e}(h)},function(t,e,n){"use strict";var r=n(1),i=n(24),o=n(22),a=n(116),s=n(62),c=n(40),l=n(138),u=n(132),g=n(0),f=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,d=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,h=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function p(t){var e=t.match(h);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),Object(g.each)(e,(function(t){t=t.split(":"),n+=''})),n}var A=function(){function t(t){this.cfg={};var e=null,n=Object(g.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,r,i=f.exec(t),o=Object(g.mod)(Object(g.toRadian)(parseFloat(i[1])),2*Math.PI),a=i[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},r={x:1,y:1}):.5*Math.PI<=o&&o';e.innerHTML=n},t}(),y=function(){function t(t,e){this.cfg={};var n=Object(c.b)("marker"),r=Object(g.uniqueId)("marker_");n.setAttribute("id",r);var i=Object(c.b)("path");i.setAttribute("stroke",t.stroke||"none"),i.setAttribute("fill",t.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=r;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,i):(this.cfg=o,this._setMarker(t.lineWidth,i)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,r=this.cfg.path,i=this.cfg.d;Object(g.isArray)(r)&&(r=r.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",r),n.appendChild(e),i&&n.setAttribute("refX",""+i/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),m=function(){function t(t){this.type="clip",this.cfg={};var e=Object(c.b)("clipPath");this.el=e,this.id=Object(g.uniqueId)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),b=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,x=function(){function t(t){this.cfg={};var e=Object(c.b)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Object(c.b)("image");e.appendChild(n);var r=Object(g.uniqueId)("pattern_");e.id=r,this.el=e,this.id=r,this.cfg=t;var i=b.exec(t)[2];n.setAttribute("href",i);var o=new Image;function a(){e.setAttribute("width",""+o.width),e.setAttribute("height",""+o.height)}return i.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=i,o.complete?a():(o.onload=a,o.src=o.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),w=function(){function t(t){var e=Object(c.b)("defs"),n=Object(g.uniqueId)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;iMath.PI?1:0,f=r>i?0:1;a=[["M",l.x,l.y],["A",n,n,0,g,f,u.x,u.y]]}return a},e}(u),d=n(29),h=n(104),p="g2-crosshair",A="g2-crosshair-line",C="g2-crosshair-text",v=((r={})["g2-crosshair"]={position:"relative"},r[""+A]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+C]={position:"absolute",color:l.a.textColor,fontFamily:l.a.fontFamily},r),I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
',crosshairTpl:'
',textTpl:'{content}',domStyles:null,containerClassName:p,defaultStyles:v,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=Object(d.createDom)(e);t.appendChild(n),this.applyStyle(A,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,a=r.offset;return Object(o.f)(e,n,i,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer(),i=Object(a.substitute)(this.get("textTpl"),t);e=Object(d.createDom)(i),r.appendChild(e),this.applyStyle(C,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),r=Math.min(e.x,n.x),i=Math.min(e.y,n.y);this.isVertical(e,n)?Object(d.modifyCSS)(t,{width:"1px",height:Object(o.l)(Math.abs(n.y-e.y))}):Object(d.modifyCSS)(t,{height:"1px",width:Object(o.l)(Math.abs(n.x-e.x))}),Object(d.modifyCSS)(t,{top:Object(o.l)(i),left:Object(o.l)(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}Object(d.modifyCSS)(t,{top:Object(o.l)(r.y),left:Object(o.l)(r.x)})}},e.prototype.updateInner=function(e){Object(a.hasKey)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(h.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(1),i=n(0),o=n(28),a={opacity:0},s={stroke:"#C5C5C5",strokeOpacity:.85},c={fill:"#CACED4",opacity:.85},l=n(72),u=n(86);function g(t){return function(t){return Object(i.map)(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function f(t,e,n,r){void 0===r&&(r=!0);var o=new u.Linear({values:t}),a=new u.Category({values:Object(i.map)(t,(function(t,e){return e}))}),s=Object(i.map)(t,(function(t,r){return[a.scale(r)*e,n-o.scale(t)*n]}));return r?function(t){if(t.length<=2)return g(t);var e=[];Object(i.each)(t,(function(t){Object(i.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=Object(l.catmullRom2Bezier)(e,!1),r=Object(i.head)(t),o=r[0],a=r[1];return n.unshift(["M",o,a]),n}(s):g(s)}function d(t,e,n,i){var o=Object(r.__spreadArrays)(t),a=function(t,e){var n=new u.Linear({values:t}),r=Math.max(0,n.min);return e-n.scale(r)*e}(i,n);return o.push(["L",e,a]),o.push(["L",0,a]),o.push(["Z"]),o}var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:a,lineStyle:s,areaStyle:c})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,o=e.data,a=e.smooth,s=e.isArea,c=e.backgroundStyle,l=e.lineStyle,u=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.__assign)({x:0,y:0,width:n,height:i},c)});var g=f(o,n,i,a);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(r.__assign)({path:g},l)}),s){var h=d(g,n,i,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(r.__assign)({path:h},u)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(o.a),p={fill:"#416180",opacity:.05},A={fill:"#5B8FF9",opacity:.15,cursor:"move"},C={width:10,height:24},v={textBaseline:"middle",fill:"#000",opacity:.45},I="sliderchange",y={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:y})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,o=i.fill,a=i.stroke,s=i.radius,c=i.opacity,l=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:o,stroke:a,radius:s,opacity:c,cursor:l}});var u=1/3*n,g=2/3*n,f=1/4*r,d=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:f,x2:u,y2:d,stroke:a,cursor:l}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:g,y1:f,x2:g,y2:d,stroke:a,cursor:l}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(o.a),b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=Object(i.get)(r,"touches.0.pageX",r.pageX),e.prevY=Object(i.get)(r,"touches.0.pageY",r.pageY);var o=e.getContainerDOM();o.addEventListener("mousemove",e.onMouseMove),o.addEventListener("mouseup",e.onMouseUp),o.addEventListener("mouseleave",e.onMouseUp),o.addEventListener("touchmove",e.onMouseMove),o.addEventListener("touchend",e.onMouseUp),o.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var o=Object(i.get)(t,"touches.0.pageX",t.pageX),a=Object(i.get)(t,"touches.0.pageY",t.pageY),s=o-e.prevX,c=e.adjustOffsetRange(s/n);e.updateStartEnd(c),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=o,e.prevY=a,e.draw(),e.emit(I,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return Object(r.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),o=Object(i.clamp)(n,t,e),a=Object(i.clamp)(r,t,e);this.get("isInit")||n===o&&r===a||this.setValue([o,a])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if(Object(i.isArray)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:Object(i.clamp)(t[0],e.min,e.max),end:Object(i.clamp)(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:p,foregroundStyle:A,handlerStyle:C,textStyle:v}})},e.prototype.update=function(e){var n=e.start,o=e.end,a=Object(r.__assign)({},e);Object(i.isNil)(n)||(a.start=Object(i.clamp)(n,0,1)),Object(i.isNil)(o)||(a.end=Object(i.clamp)(o,0,1)),t.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",Object(i.clamp)(this.get("start"),0,1)),this.set("end",Object(i.clamp)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),o=e.height,a=e.trendCfg,s=void 0===a?{}:a,c=e.minText,l=e.maxText,u=e.backgroundStyle,g=void 0===u?{}:u,f=e.foregroundStyle,d=void 0===f?{}:f,p=e.textStyle,A=void 0===p?{}:p,C=e.handlerStyle,v=void 0===C?{}:C;Object(i.size)(Object(i.get)(s,"data"))&&(this.trend=this.addComponent(t,Object(r.__assign)({component:h,id:this.getElementId("trend"),x:0,y:0,width:n,height:o},s))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.__assign)({x:0,y:0,width:n,height:o},g)}),this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:Object(r.__assign)({y:o/2,textAlign:"right",text:c,silent:!1},A)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:Object(r.__assign)({y:o/2,textAlign:"left",text:l,silent:!1},A)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Object(r.__assign)({y:0,height:o},d)});var I=Object(i.get)(v,"height",24);this.minHandler=this.addComponent(t,Object(r.__assign)({component:m,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(o-I)/2,width:n,height:I,cursor:"ew-resize"},v)),this.maxHandler=this.addComponent(t,Object(r.__assign)({component:m,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(o-I)/2,width:n,height:I,cursor:"ew-resize"},v))},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var r=this.cfg,o=r.start,a=r.end,s=r.width,c=r.minText,l=r.maxText,u=r.handlerStyle,g=r.height,f=o*s,d=a*s;this.trend&&(this.trend.update({width:s,height:g}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",f),t.attr("width",d-f);var h=Object(i.get)(u,"width",10);e.attr("text",c),n.attr("text",l);var p=this._dodgeText([f,d],e,n),A=p[0],C=p[1];this.minHandler&&(this.minHandler.update({x:f-h/2}),this.get("updateAutoRender")||this.minHandler.render()),Object(i.each)(A,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:d-h/2}),this.get("updateAutoRender")||this.maxHandler.render()),Object(i.each)(C,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,o=1-n;return Math.min(o,Math.max(i,t));case"maxHandler":return i=0-r,o=1-r,Math.min(o,Math.max(i,t));case"foreground":return i=0-n,o=1-r,Math.min(o,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,o,a=this.cfg,s=a.handlerStyle,c=a.width,l=Object(i.get)(s,"width",10),u=t[0],g=t[1],f=!1;u>g&&(u=(r=[g,u])[0],g=r[1],e=(o=[n,e])[0],n=o[1],f=!0);var d=e.getBBox(),h=n.getBBox(),p=d.width>u-2?{x:u+l/2+2,textAlign:"left"}:{x:u-l/2-2,textAlign:"right"},A=h.width>c-g-2?{x:g-l/2-2,textAlign:"right"}:{x:g+l/2+2,textAlign:"left"};return f?[A,p]:[p,A]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(o.a)},function(t,e,n){"use strict";var r,i,o=n(1),a=n(18),s=n(2),c=n(0),l=n(3),u=n(77),g=n(48);!function(t){t.Left="Left",t.Right="Right"}(r||(r={})),function(t){t.Line="line",t.Column="column"}(i||(i={}));var f="left-axes-view",d="right-axes-view",h={nice:!0,label:{autoHide:!0,autoRotate:!1}},p=Object(o.__assign)(Object(o.__assign)({},h),{position:"left"}),A=Object(o.__assign)(Object(o.__assign)({},h),{position:"right",grid:null});function C(t){return Object(c.get)(t,"geometry")===i.Line}function v(t){return Object(c.get)(t,"geometry")===i.Column}function I(t,e,n){return v(n)?Object(s.b)({},{geometry:i.Column,label:n.label&&n.isRange?{content:function(t){var n;return null===(n=t[e])||void 0===n?void 0:n.join("-")}}:void 0},n):Object(o.__assign)({geometry:i.Line},n)}function y(t,e){var n=t[0],r=t[1];return Object(c.isArray)(e)?[e[0],e[1]]:[Object(c.get)(e,n),Object(c.get)(e,r)]}function m(t,e){return e===r.Left?!1!==t&&Object(s.b)({},p,t):e===r.Right?!1!==t&&Object(s.b)({},A,t):t}var b=n(9);function x(t){var e=t.view,n=t.geometryOption,r=t.yField,i=t.legend,o=Object(c.get)(i,"marker"),a=Object(s.c)(e,C(n)?"line":"interval");if(!n.seriesField){var l=a.getAttribute("color").values[0],u=o||(C(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:l}}:{symbol:"square",style:{fill:l}});return[{value:r,name:Object(c.get)(e,"options.scales."+r+".alias")||r,marker:u,isGeometry:!0,viewId:e.id}]}var g=a.getGroupAttributes();return Object(c.reduce)(g,(function(t,n){var r=b.Util.getLegendItems(e,a,n,e.getTheme(),o);return t.concat(r)}),[])}var w=n(16);function O(t){var e,n=t.options,r=n.geometryOptions,o=void 0===r?[]:r,a=n.xField,l=n.yField,u=Object(c.every)(o,(function(t){var e=t.geometry;return e===i.Line||void 0===e}));return Object(s.b)({},{options:{geometryOptions:[],meta:(e={},e[a]={type:"cat",sync:!0,range:u?[0,1]:void 0},e),tooltip:{showMarkers:u,showCrosshairs:u,shared:!0,crosshairs:{type:"x"}},interactions:u?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:y(l,n.yAxis),geometryOptions:[I(0,l[0],o[0]),I(0,l[1],o[1])],annotations:y(l,n.annotations)}})}function S(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,a=n.geometryOptions,l=n.data,g=n.tooltip,h={line:0,column:1};return[Object(o.__assign)(Object(o.__assign)({},a[0]),{id:f,data:l[0],yField:i[0]}),Object(o.__assign)(Object(o.__assign)({},a[1]),{id:d,data:l[1],yField:i[1]})].sort((function(t,e){return-h[t.geometry]+h[e.geometry]})).forEach((function(t){var n=t.id,i=t.data,a=t.yField,l=v(t)&&t.isPercent,f=l?Object(u.b)(i,a,r,a):i,d=e.createView({id:n}).data(f),h=l?Object(o.__assign)({formatter:function(e){return{name:e[t.seriesField]||a,value:(100*Number(e[a])).toFixed(2)+"%"}}},g):g;!function(t){var e=t.options,n=t.chart,r=e.geometryOption,i=r.isStack,a=r.color,l=r.seriesField,u=r.groupField,g=r.isGroup,f=["xField","yField"];if(C(r)){Object(w.d)(Object(s.b)({},t,{options:Object(o.__assign)(Object(o.__assign)(Object(o.__assign)({},Object(s.k)(e,f)),r),{line:{color:r.color,style:r.lineStyle}})})),Object(w.e)(Object(s.b)({},t,{options:Object(o.__assign)(Object(o.__assign)(Object(o.__assign)({},Object(s.k)(e,f)),r),{point:r.point&&Object(o.__assign)({color:a,shape:"circle"},r.point)})}));var d=[];g&&d.push({type:"dodge",dodgeBy:u||l,customOffset:0}),i&&d.push({type:"stack"}),d.length&&Object(c.each)(n.geometries,(function(t){t.adjust(d)}))}v(r)&&Object(w.c)(Object(s.b)({},t,{options:Object(o.__assign)(Object(o.__assign)(Object(o.__assign)({},Object(s.k)(e,f)),r),{widthRatio:r.columnWidthRatio,interval:Object(o.__assign)(Object(o.__assign)({},Object(s.k)(r,["color"])),{style:r.columnStyle})})}))}({chart:d,options:{xField:r,yField:a,tooltip:h,geometryOption:t}})})),t}function _(t){var e,n=t.chart,r=t.options.geometryOptions,i=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],o=0;return n.once("beforepaint",(function(){Object(c.each)(r,(function(t,e){var r=Object(g.a)(n,0===e?f:d);if(!t.color){var a=r.getGroupScales(),s=Object(c.get)(a,[0,"values","length"],1),l=i.slice(o,o+s).concat(0===e?[]:i);r.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,l):e.color(l[0])})),o+=s}})),n.render(!0)})),t}function k(t){var e,n,r=t.chart,i=t.options,o=i.xAxis,a=i.yAxis,c=i.xField,u=i.yField;return Object(l.f)(((e={})[c]=o,e[u[0]]=a[0],e))(Object(s.b)({},t,{chart:Object(g.a)(r,f)})),Object(l.f)(((n={})[c]=o,n[u[1]]=a[1],n))(Object(s.b)({},t,{chart:Object(g.a)(r,d)})),t}function j(t){var e=t.chart,n=t.options,i=Object(g.a)(e,f),o=Object(g.a)(e,d),a=n.xField,s=n.yField,c=n.xAxis,l=n.yAxis;return e.axis(a,!1),e.axis(s[0],!1),e.axis(s[1],!1),i.axis(a,c),i.axis(s[0],m(l[0],r.Left)),o.axis(a,!1),o.axis(s[1],m(l[1],r.Right)),t}function E(t){var e=t.chart,n=t.options.tooltip,r=Object(g.a)(e,f),i=Object(g.a)(e,d);return e.tooltip(n),r.tooltip({shared:!0}),i.tooltip({shared:!0}),t}function P(t){var e=t.chart;return Object(l.c)(Object(s.b)({},t,{chart:Object(g.a)(e,f)})),Object(l.c)(Object(s.b)({},t,{chart:Object(g.a)(e,d)})),t}function M(t){var e=t.chart,n=t.options.annotations,r=Object(c.get)(n,[0]),i=Object(c.get)(n,[1]);return Object(l.b)(r)(Object(s.b)({},t,{chart:Object(g.a)(e,f),options:{annotations:r}})),Object(l.b)(i)(Object(s.b)({},t,{chart:Object(g.a)(e,d),options:{annotations:i}})),t}function T(t){var e=t.chart;return Object(l.a)(Object(s.b)({},t,{chart:Object(g.a)(e,f)})),Object(l.a)(Object(s.b)({},t,{chart:Object(g.a)(e,d)})),t}function R(t){var e=t.chart,n=t.options.yAxis;return Object(l.e)(Object(s.b)({},t,{chart:Object(g.a)(e,f),options:{yAxis:n[0]}})),Object(l.e)(Object(s.b)({},t,{chart:Object(g.a)(e,d),options:{yAxis:n[1]}})),t}function D(t){var e=t.chart,n=t.options,r=n.legend,i=n.geometryOptions,o=n.yField,a=n.data,l=Object(g.a)(e,f),u=Object(g.a)(e,d);return!1===r?e.legend(!1):Object(c.isObject)(r)&&!0===r.custom?e.legend(r):(e.once("beforepaint",(function(){var t=a[0].length?x({view:l,geometryOption:i[0],yField:o[0],legend:r}):[],n=a[1].length?x({view:u,geometryOption:i[1],yField:o[1],legend:r}):[];e.legend(Object(s.b)({},r,{custom:!0,items:t.concat(n)}))})),e.on("legend-item:click",(function(t){var n=Object(c.get)(t,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,i=r.value,a=r.isGeometry,s=r.viewId;if(a){if(Object(c.findIndex)(o,(function(t){return t===i}))>-1){var l=Object(c.get)(Object(g.a)(e,s),"geometries");Object(c.each)(l,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var u=Object(c.get)(e.getController("legend"),"option.items",[]);Object(c.each)(e.views,(function(t){var n=t.getGroupScales();Object(c.each)(n,(function(e){e.values&&e.values.indexOf(i)>-1&&t.filter(e.field,(function(t){return!Object(c.find)(u,(function(e){return e.value===t})).unchecked}))})),e.render(!0)}))}}}))),t}function N(t){return Object(s.e)(O,S,k,j,R,E,P,M,l.j,T,_,D)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}Object(o.__extends)(e,t),e.prototype.getDefaultOptions=function(){return Object(s.b)({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return N}}(a.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(2),a=n(0),s=n(3),c=n(16);function l(t,e){var n;switch(t){case"inner":return n="-30%",Object(a.isString)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,Object(a.isString)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function u(t){var e=t.chart,n=t.options,i=n.data,s=n.angleField,l=n.colorField,u=n.color,g=n.pieStyle,f=Object(a.filter)(i,(function(t){return"number"===typeof t[s]||Object(a.isNil)(t[s])}));if(Object(o.j)(o.a.WARN,f.length===i.length,"illegal data existed in chart data."),Object(a.every)(f,(function(t){return 0===t[s]}))){var d="$$percentage$$";f=f.map((function(t){var e;return Object(r.__assign)(Object(r.__assign)({},t),((e={}).$$percentage$$=1/f.length,e))})),e.data(f);var h=Object(o.b)({},t,{options:{xField:"1",yField:d,seriesField:l,isStack:!0,interval:{color:u,style:g}}});Object(c.c)(h),e.geometries[0].tooltip(l+"*"+s)}else e.data(f),h=Object(o.b)({},t,{options:{xField:"1",yField:s,seriesField:l,isStack:!0,interval:{color:u,style:g}}}),Object(c.c)(h);return t}function g(t){var e,n=t.chart,r=t.options,i=r.meta,a=r.colorField,s=Object(o.b)({},i);return n.scale(s,((e={})[a]={type:"cat"},e)),t}function f(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function d(t){var e=t.chart,n=t.options,i=n.label,s=n.colorField,c=n.angleField,u=e.geometries[0];if(i){var g=i.callback,f=Object(r.__rest)(i,["callback"]),d=Object(o.o)(f);if(d.content){var h=d.content;d.content=function(t,n,i){var l=t[s],u=t[c],g=e.getScaleByField(c),f=null===g||void 0===g?void 0:g.scale(u);return Object(a.isFunction)(h)?h(Object(r.__assign)(Object(r.__assign)({},t),{percent:f}),n,i):Object(a.isString)(h)?Object(o.n)(h,{value:u,name:l,percentage:Object(a.isNumber)(f)&&!Object(a.isNil)(u)?(100*f).toFixed(2)+"%":null}):h}}var p=d.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[d.type]:"pie-outer",A=d.layout?Object(a.isArray)(d.layout)?d.layout:[d.layout]:[];d.layout=(p?[{type:p}]:[]).concat(A),u.label({fields:s?[c,s]:[c],callback:g,cfg:Object(r.__assign)(Object(r.__assign)({},d),{offset:l(d.type,d.offset),type:"pie"})})}else u.label(!1);return t}function h(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.statistic,s=n.angleField,c=n.colorField,l=n.meta;if(r&&i){var u=i.title,g=i.content;!1!==u&&(u=Object(o.b)({},{formatter:function(t){return t?t[c]:"\u603b\u8ba1"}},u)),!1!==g&&(g=Object(o.b)({},{formatter:function(t,e){var n=Object(a.get)(l,[s,"formatter"]),r=t?t[s]:function(t,e){var n=null;return Object(a.each)(t,(function(t){"number"===typeof t[e]&&(n+=t[e])})),n}(e,s);return n?n(r):r}},g)),Object(o.m)(e,{statistic:{title:u,content:g},plotType:"pie"})}return t}function p(t){return Object(o.e)(u,g,s.j,f,s.d,(function(t){return Object(s.k)(function(t){return!1!==Object(a.get)(t,["options","tooltip"])?Object(o.b)({},t,{options:{tooltip:{shared:!1}}}):t}(t))}),d,s.i,Object(s.b)(),h,s.c,s.a)(t)}var A=n(9),C=n(174),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getActiveElements=function(){var t=A.Util.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,i=n.get("field");if(i)return e.geometries[0].elements.filter((function(t){return t.getModel().data[i]===r.value}))}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements();return t.geometries[0].labelsContainer.getChildren().filter((function(t){return e.find((function(e){return Object(a.isEqual)(e.getData(),t.get("data"))}))}))},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach((function(e,r){var i=n[r],o=e.geometry.coordinate;if(o.isPolar&&o.isTransposed){var a=A.Util.getAngle(e.getModel(),o),s=(a.startAngle+a.endAngle)/2,c=t,l=c*Math.cos(s),u=c*Math.sin(s);e.shape.setMatrix(Object(C.a)([["t",l,u]])),i.setMatrix(Object(C.a)([["t",l,u]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(A.Action),I=n(137),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getAnnotations=function(t){return(t||this.context.view).getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",(function(){var n=t.getAnnotations(e);t.initialAnnotation=n}))},e.prototype.change=function(){var t=this.context,e=t.view,n=t.event,i=this.getAnnotations();this.initialAnnotation||(this.initialAnnotation=i);var o=((null===n||void 0===n?void 0:n.data)||{}).data;if(n.type.match("legend-item")){var s=A.Util.getDelegationObject(this.context),c=e.getGroupedFields()[0];if(s&&c){var l=s.item;o=e.getData().find((function(t){return t[c]===l.value}))}}if(o){var u=e.getController("annotation");u.clear(!0);var g=e.getScaleFields(),f=g[1],d=g[2],h=e.getScaleByField(f),p=e.getScaleByField(d),C=i.filter((function(t){return!Object(a.get)(t,"key","").match("statistic")})),v=i.filter((function(t){return Object(a.get)(t,"key","").match("statistic")})),y=v.filter((function(t){return"top-statistic"===t.key})),m=v.filter((function(t){return"bottom-statistic"===t.key}));Object(a.each)(v,(function(t){var n,i;"top-statistic"===t.key?(n=p?p.getText(o[d]):null,i=m?"translate(-50%, -100%)":"translate(-50%, -50%)"):(n=h?h.getText(o[f]):o[f],i=y?"translate(-50%, 0)":"translate(-50%,-50%)"),C.push(Object(r.__assign)(Object(r.__assign)({},t),{html:function(e,s){var c=s.getCoordinate(),l=c.getRadius()*c.innerRadius*2,u=Object(a.isFunction)(t.style)?t.style():t.style;Object(I.d)(e,Object(r.__assign)({width:l+"px",transform:i},Object(I.a)(u)));var g=s.getData();return t.customHtml?t.customHtml(e,s,o,g):(t.formatter&&(n=t.formatter(o,g)),n?Object(a.isString)(n)?n:""+n:"
")}})),C.forEach((function(t){u.annotation(t)})),e.render(!0)}))}},e.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var e=this.getInitialAnnotation();Object(a.each)(e,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(A.Action);Object(A.registerAction)("pie-statistic",y),Object(A.registerInteraction)("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Object(A.registerAction)("pie-legend",v),Object(A.registerInteraction)("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}Object(r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{legend:{position:"right"},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}})},e.prototype.getSchemaAdaptor=function(){return p}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(2),a=n(3),s=n(16),c=n(0),l={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function u(t,e){return function(t,e){var n=function(){var t=[256,256],e=h,n=A,r=p,i=C,o=v,a=x,s=Math.random,c=[],l=1/0,u=d,g=p,k=O,j={};function E(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=f/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function P(e,n,r){for(var i,o,c,l=n.x,u=n.y,g=Math.sqrt(t[0]*t[0]+t[1]*t[1]),f=a(t),d=s()<.5?1:-1,h=-d;(i=f(h+=d))&&(o=~~i[0],c=~~i[1],!(Math.min(Math.abs(o),Math.abs(c))>=g));)if(n.x=l+o,n.y=u+c,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!y(n,e,t[0]))&&(!r||b(n,r))){for(var p=n.sprite,A=n.width>>5,C=t[0]>>5,v=n.x-(A<<4),I=127&v,m=32-I,x=n.y1-n.y0,w=void 0,O=(n.y+n.y0)*C+(v>>5),S=0;S>>I:0);O+=C}return delete n.sprite,!0}return!1}return j.start=function(){var a=t[0],f=t[1],d=E(k()),h=j.board?j.board:w((t[0]>>5)*t[1]),p=c.length,A=[],C=c.map((function(t,a,s){return t.text=u.call(this,t,a,s),t.font=e.call(this,t,a,s),t.style=g.call(this,t,a,s),t.weight=r.call(this,t,a,s),t.rotate=i.call(this,t,a,s),t.size=~~n.call(this,t,a,s),t.padding=o.call(this,t,a,s),t})).sort((function(t,e){return e.size-t.size})),v=-1,y=j.board?[{x:0,y:0},{x:a,y:f}]:null;function b(){for(var e=Date.now();Date.now()-e>1,n.y=f*(s()+.5)>>1,I(d,n,C,v),n.hasText&&P(h,n,y)&&(A.push(n),y?j.hasImage||m(y,n):y=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}j._tags=A,j._bounds=y}return b(),j},j.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var o=r>>5,a=w((r>>5)*i);n.width=r,n.height=i;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var c=s.getImageData(0,0,r,i).data,l=0;l>5),f=l*r+u<<2,d=c[f]>=250&&c[f+1]>=250&&c[f+2]>=250?1<<31-u%32:0;a[g]|=d}j.board=a,j.hasImage=!0}},j.timeInterval=function(t){l=null==t?1/0:t},j.words=function(t){c=t},j.size=function(e){t=[+e[0],+e[1]]},j.font=function(t){e=S(t)},j.fontWeight=function(t){r=S(t)},j.rotate=function(t){i=S(t)},j.spiral=function(t){a=_[t]||t},j.fontSize=function(t){n=S(t)},j.padding=function(t){o=S(t)},j.random=function(t){s=S(t)},j}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(c.isNil)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var r=n.start()._tags;r.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var i=e.size,o=i[0],a=i[1];return r.push({text:"",value:0,x:0,y:0,opacity:0}),r.push({text:"",value:0,x:o,y:a,opacity:0}),r}(t,e=Object(c.assign)({},l,e))}var g=Math.PI/180,f=2048;function d(t){return t.text}function h(){return"serif"}function p(){return"normal"}function A(t){return t.value}function C(){return 90*~~(2*Math.random())}function v(){return 1}function I(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,2048/o,f/o);var a=0,s=0,c=0,l=n.length;for(--r;++r>5<<5,d=~~Math.max(Math.abs(C+v),Math.abs(C-v))}else u=u+31>>5<<5;if(d>c&&(c=d),a+u>=2048&&(a=0,s+=c,c=0),s+d>=f)break;i.translate((a+(u>>1))/o,(s+(d>>1))/o),e.rotate&&i.rotate(e.rotate*g),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=u,e.height=d,e.xoff=a,e.yoff=s,e.x1=u>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=u}for(var y=i.getImageData(0,0,2048/o,f/o).data,m=[];--r>=0;)if((e=n[r]).hasText){for(var b=(u=e.width)>>5,x=(d=e.y1-e.y0,0);x>5),k=y[2048*(s+S)+(a+x)<<2]?1<<31-x%32:0;m[_]|=k,w|=k}w?O=S:(e.y0++,d--,S--,s++)}e.y1=e.y0+O,e.sprite=m.slice(0,(e.y1-e.y0)*b)}}}function y(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,c=32-s,l=t.y1-t.y0,u=(t.y+t.y0)*n+(a>>5),g=0;g>>s:0))&e[u+f])return!0;u+=n}return!1}function m(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function b(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y00?C:v},m=Object(c.b)({},t,{options:{xField:i,yField:l,seriesField:i,rawFields:[a,u,f,l],widthRatio:p,interval:{style:A,shape:"waterfall",color:y}}}),b=Object(s.c)(m).ext.geometry;return b.customInfo({leaderLine:h}),b.tooltip(a),t}function A(t){var e,n,r=t.options,i=r.xAxis,s=r.yAxis,f=r.xField,d=r.yField,h=r.meta,p=Object(c.b)({},{alias:d},Object(o.get)(h,d));return Object(c.e)(Object(a.f)(((e={})[f]=i,e[d]=s,e[l]=s,e),Object(c.b)({},h,((n={})[l]=p,n[u]=p,n[g]=p,n))))(t)}function C(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?(e.axis(a,!1),e.axis(l,!1)):(e.axis(a,i),e.axis(l,i)),t}function v(t){var e=t.chart,n=t.options,r=n.legend,i=n.total,a=n.risingFill,s=n.fallingFill;if(!1===r)e.legend(!1);else{var l=[{name:"\u589e\u52a0",value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:"\u51cf\u5c11",value:"decrease",marker:{symbol:"square",style:{r:5,fill:s}}}];i&&l.push({name:i.label||"",value:"total",marker:{symbol:"square",style:Object(c.b)({},{r:5},Object(o.get)(i,"style"))}}),e.legend(Object(c.b)({},{custom:!0,position:"top",items:l},r)),e.removeInteraction("legend-filter")}return t}function I(t){var e=t.chart,n=t.options,i=n.label,o=n.labelMode,a=n.xField,s=Object(c.c)(e,"interval");if(i){var l=i.callback,f=Object(r.__rest)(i,["callback"]);s.label({fields:"absolute"===o?[g,a]:[u,a],callback:l,cfg:Object(c.o)(f)})}else s.label(!1);return t}function y(t){var e=t.chart,n=t.options,i=n.tooltip,o=n.yField;return!1!==i?e.tooltip(Object(r.__assign)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},i)):e.tooltip(!1),t}function m(t){return Object(c.e)(p,A,C,v,y,I,a.i,a.j,a.c,a.a,Object(a.b)())(t)}Object(h.registerShape)("interval","waterfall",{draw:function(t,e){var n=t.customInfo,i=t.points,a=t.nextPoints,s=e.addGroup(),l=this.parsePath(function(t){for(var e=[],n=0;n0){var d=e.getElementId("region-"+l),h=c%2===0;if(Object(i.isString)(o))h&&e.drawAlternateRegion(d,t,a.points,s.points,o);else{var p=h?o[1]:o[0];e.drawAlternateRegion(d,t,a.points,s.points,p)}}a=s}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var o=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:i}})},e}(o.a),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),r=this.get("closed"),o=[];if(t.length)if("circle"===n){var a=this.get("center"),s=t[0],c=function(t,e,n,r){var i=n-t,o=r-e;return Math.sqrt(i*i+o*o)}(a.x,a.y,s.x,s.y),l=e?0:1;r?(o.push(["M",a.x,a.y-c]),o.push(["A",c,c,0,0,l,a.x,a.y+c]),o.push(["A",c,c,0,0,l,a.x,a.y-c]),o.push(["Z"])):Object(i.each)(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["A",c,c,0,0,l,t.x,t.y])}))}else Object(i.each)(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["L",t.x,t.y])})),r&&o.push(["Z"]);return o},e}(s),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Object(i.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(s)},function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return f})),n.d(e,"Continuous",(function(){return d})),n.d(e,"Base",(function(){return g}));var r=n(1),i=n(0),o=n(74),a=n(41),s=n(119),c=n(21),l=n(28),u=n(17),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,o=e.height;return n&&(i=Math.min(i,n)),r&&(o=Math.min(o,r)),Object(u.b)(e.minX,e.minY,i,o)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),i=Object(u.c)(e.padding),o=Object(r.__assign)({x:0,y:0,width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),i=n.spacing,o=n.style,a=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(r.__assign)({text:a,x:e.x,y:e.y},o)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+i})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=Object(u.c)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(l.a),f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndexp&&(p=v),"horizontal"===f?(A&&Av&&(v=e.width)})),I=v,v+=g,c&&(v=Math.min(c,v),I=Math.min(c,I)),this.pageWidth=v,this.pageHeight=l-Math.max(h.height,f+y);var m=Math.floor(this.pageHeight/(f+y));Object(i.each)(s,(function(t,e){0!==e&&e%m===0&&(A+=1,p.x+=v,p.y=o),n.moveElementTo(t,p),t.getParent().setClip({type:"rect",attrs:{x:p.x,y:p.y,width:v,height:f}}),p.y+=f+y})),this.totalPagesCnt=A,this.moveElementTo(d,{x:r+I/2-h.width/2-h.minX,y:l-h.height-h.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),this.totalPagesCnt=A,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(d),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,r){var i={x:0,y:0},o=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),a=this.drawArrow(o,i,"navigation-arrow-left","horizontal"===e?"up":"left",r);a.on("click",this.onNavigationBack);var s=a.getBBox();i.x+=s.width+2;var c=this.addShape(o,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:{x:i.x,y:i.y+r/2,text:n,fontSize:12,fill:"#ccc",textBaseline:"middle"}}).getBBox();return i.x+=c.width+2,this.drawArrow(o,i,"navigation-arrow-right","horizontal"===e?"down":"right",r).on("click",this.onNavigationAfter),o},e.prototype.updateNavigation=function(t){var e=this.currentPageIndex+"/"+this.totalPagesCnt,n=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),r=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),i=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right"),o=n.getBBox();n.attr("text",e);var a=n.getBBox();n.attr("x",n.attr("x")-(a.width-o.width)/2),r.attr("opacity",1===this.currentPageIndex?.45:1),r.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),i.attr("opacity",this.currentPageIndex===this.totalPagesCnt?.45:1),i.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer")},e.prototype.drawArrow=function(t,e,n,r,i){var o=e.x,s=e.y,c={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},l=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:{path:[["M",o+i/2,s],["L",o,s+i],["L",o+i,s+i],["Z"]],fill:"#000",cursor:"pointer"}});return l.attr("matrix",Object(a.e)({x:o+i/2,y:s+i/2},c[r])),l},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,r=t.pageHeight,i="horizontal"===this.get("layout")?{x:0,y:r*(1-e)}:{x:n*(1-e),y:0};return Object(a.f)(i)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),r=this.get("itemStates");Object(i.each)(n,(function(e){var n=e.get("name").split("-")[2],i=Object(s.a)(t,n,r);i&&(e.attr(i),"marker"!==n||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(g),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:c.a.textColor,textBaseline:"middle",fontFamily:c.a.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:c.a.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[1];rn&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),o=e.getCurrentValue(),a=o[1]-o[0],s=e.getRange(),c=i-r;c<0?o[0]+c>s.min?e.setValue([o[0]+c,o[1]+c]):e.setValue([s.min,s.min+a]):c>0&&(c>0&&o[1]+co&&(l=o),l0&&this.changeRailLength(r,o,n[o]-u)}},e.prototype.changeRailLength=function(t,e,n){var r,i=t.getBBox();r="height"===e?this.getRailPath(i.x,i.y,i.width,n):this.getRailPath(i.x,i.y,n,i.height),t.attr("path",r)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox(),u=s.height;this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===o?(t.attr({x:r.x,y:r.y+u/2}),this.changeRailPosition(n,r.x+c.width+a,r.y),e.attr({x:r.x+c.width+s.width+2*a,y:r.y+u/2})):"top"===o?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+c.height+a)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+s.height+a}),e.attr({x:r.x+s.width,y:r.y+s.height+a}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox();if(this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===o)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+c.height+a),e.attr({x:r.x,y:r.y+c.height+s.height+2*a});else if("right"===o)t.attr({x:r.x+s.width+a,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+s.width+a,y:r.y+s.height});else{var u=Math.max(c.width,l.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+u+a,r.y),e.attr({x:r.x,y:r.y+s.height})}},e}(g)},function(t,e,n){"use strict";n.r(e),n.d(e,"Html",(function(){return d}));var r,i=n(1),o=n(129),a=n(29),s=n(0),c=n(104),l=n(17),u=n(42),g=n(21),f=((r={})[""+u.CONTAINER_CLASS]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:g.a.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},r[""+u.TITLE_CLASS]={marginBottom:"4px"},r[""+u.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},r[""+u.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},r[""+u.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r[""+u.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},r[""+u.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+u.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.__assign)(Object(i.__assign)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
    ',itemTpl:'
  • \n \n {name}:\n {value}\n
  • ',xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:u.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:f})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),Object(a.modifyCSS)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Object(a.modifyCSS)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&Object(a.modifyCSS)(n,{display:e}),r&&Object(a.modifyCSS)(r,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){this.get("customContent")?this.renderCustomContent():(function(t,e){var n=!1;return Object(s.each)(e,(function(e){if(Object(s.hasKey)(t,e))return n=!0,!1})),n}(e,["title","showTitle"])&&this.resetTitle(),Object(s.hasKey)(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),r=this.get("offset"),i=this.getOffset(),o=i.offsetX,s=i.offsetY,c=this.get("position"),u=this.get("region"),g=this.getContainer(),f=this.getBBox(),d=f.width,h=f.height;u&&(t=Object(l.k)(u));var p=function(t,e,n,r,i,o,a){var s=function(t,e,n,r,i,o){var a=t,s=e;switch(o){case"left":a=t-r-n,s=e-i/2;break;case"right":a=t+n,s=e-i/2;break;case"top":a=t-r/2,s=e-i-n;break;case"bottom":a=t-r/2,s=e+n;break;default:a=t+n,s=e-i-n}return{x:a,y:s}}(t,e,n,r,i,o);if(a){var c=function(t,e,n,r,i){return{left:ti.x+i.width,top:ei.y+i.height}}(s.x,s.y,r,i,a);"auto"===o?(c.right&&(s.x=Math.max(0,t-r-n)),c.top&&(s.y=Math.max(0,e-i-n))):"top"===o||"bottom"===o?(c.left&&(s.x=a.x),c.right&&(s.x=a.x+a.width-r),"top"===o&&c.top&&(s.y=e+n),"bottom"===o&&c.bottom&&(s.y=e-i-n)):(c.top&&(s.y=a.y),c.bottom&&(s.y=a.y+a.height-i),"left"===o&&c.left&&(s.x=t+n),"right"===o&&c.right&&(s.x=t-r-n))}return s}(e,n,r,d,h,c,t);Object(a.modifyCSS)(g,{left:Object(l.l)(p.x+o),top:Object(l.l)(p.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=Object(s.isElement)(n)?n:Object(a.createDom)(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(u.TITLE_CLASS)[0],n=t.getElementsByClassName(u.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=Object(l.k)(t),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),r=this.get(t);"x"===t?Object(a.modifyCSS)(n,{left:Object(l.l)(r),top:Object(l.l)(e.y),height:Object(l.l)(e.height)}):Object(a.modifyCSS)(n,{top:Object(l.l)(r),left:Object(l.l)(e.x),width:Object(l.l)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=u[r],o=this.get(e),s=this.get("parent");return o||(o=Object(a.createDom)(this.get(n)),this.applyStyle(i,o),s.appendChild(o),this.set(e,o)),o},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(Object(s.each)(t,(function(t){var r=o.default.toCSSGradient(t.color),c=Object(i.__assign)(Object(i.__assign)({},t),{color:r}),l=Object(s.substitute)(e,c),u=Object(a.createDom)(l);n.appendChild(u)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Object(l.a)(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(c.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(2),a=n(0),s=n(16),c=n(3),l=n(100),u={exp:l.regressionExp,linear:l.regressionLinear,loess:l.regressionLoess,log:l.regressionLog,poly:l.regressionPoly,pow:l.regressionPow,quad:l.regressionQuad},g=function(t){var e=t.options,n=e.xField,r=e.yField,i=e.data,s=e.regressionLine,c=s.type,l=void 0===c?"linear":c,g=s.algorithm;return function(t,e){var n=e.view,r=e.options,i=r.xField,a=r.yField,s=n.getScaleByField(i),c=n.getScaleByField(a),l=t.map((function(t){return n.getCoordinate().convert({x:s.scale(t[0]),y:c.scale(t[1])})}));return Object(o.h)(l,!1)}(g?Object(a.isArray)(g)?g:g(i):u[l]().x((function(t){return t[n]})).y((function(t){return t[r]}))(i),t)},f=function(t){var e,n=t.meta,i=void 0===n?{}:n,o=t.xField,s=t.yField,c=t.data,l=c[0][o],u=c[0][s],g=l>0,f=u>0,d=function(t,e,n){var r=Object(a.get)(i,[t,e]);return Object(a.isNumber)(r)?r:"x"===n?{min:g?0:2*l,max:g?2*l:0}[e]:{min:f?0:2*u,max:f?2*u:0}[e]};return Object(r.__assign)(Object(r.__assign)({},i),((e={})[o]=Object(r.__assign)(Object(r.__assign)({},i[o]),{min:d(o,"min","x"),max:d(o,"max","x")}),e[s]=Object(r.__assign)(Object(r.__assign)({},i[s]),{min:d(s,"min","y"),max:d(s,"max","y")}),e))};function d(t){var e=t.data;return 1===(void 0===e?[]:e).length?Object(o.b)({},t,{meta:f(t)}):t}function h(t){var e=t.chart,n=t.options,i=n.data,c=n.type,l=n.color,u=n.shape,g=n.pointStyle,f=n.shapeField,d=n.colorField,h=n.xField,p=n.yField,A=n.sizeField,C=n.size,v=n.tooltip;A&&!Object(a.isArray)(C)&&(C=[2,8]),v&&!v.fields&&(v=Object(r.__assign)(Object(r.__assign)({},v),{fields:[h,p,d,A,f]})),e.data(i),Object(s.e)(Object(o.b)({},t,{options:{seriesField:d,point:{color:l,shape:u,size:C,style:g},tooltip:v}}));var I=Object(o.c)(e,"point");return c&&I.adjust(c),t}function p(t){var e,n=t.options,r=n.data,i=n.xAxis,a=n.yAxis,s=n.xField,l=n.yField,u=n;return 1===r.length&&(u=d(Object(o.b)({},n,{meta:f(n)}))),Object(o.e)(Object(c.f)(((e={})[s]=i,e[l]=a,e)))(Object(o.b)({},t,{options:u}))}function A(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return e.axis(o,r),e.axis(a,i),t}function C(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.shapeField,s=n.sizeField;return(Object(a.isBoolean)(r)?r:r||o||i)?(e.legend(i||o,r),s&&e.legend(s,!1)):e.legend(!1),t}function v(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=Object(o.c)(e,"point");if(i){var c=i.callback,l=Object(r.__rest)(i,["callback"]);s.label({fields:[a],callback:c,cfg:Object(o.o)(l)})}else s.label(!1);return t}function I(t){var e=t.options.quadrant,n=[];if(e){var i=e.xBaseline,a=void 0===i?0:i,s=e.yBaseline,l=void 0===s?0:s,u=e.labels,g=e.regionStyle,f=e.lineStyle,d=function(t,e){var n=10;return{regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:n,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:n,offsetY:n,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-10,offsetY:n,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}}(a,l);new Array(4).join(",").split(",").forEach((function(t,e){n.push(Object(r.__assign)(Object(r.__assign)({type:"region",top:!1},d.regionStyle[e].position),{style:Object(o.b)({},d.regionStyle[e].style,null===g||void 0===g?void 0:g[e])}),Object(r.__assign)({type:"text",top:!0},Object(o.b)({},d.labelStyle[e],null===u||void 0===u?void 0:u[e])))})),n.push({type:"line",top:!1,start:["min",l],end:["max",l],style:Object(o.b)({},d.lineStyle,f)},{type:"line",top:!1,start:[a,"min"],end:[a,"max"],style:Object(o.b)({},d.lineStyle,f)})}return Object(o.e)(Object(c.b)(n))(t)}function y(t){var e=t.options,n=t.chart,i=e.regressionLine;if(i){var o=i.style,a=i.top,s=void 0!==a&&a,c={stroke:"#9ba29a",lineWidth:2,opacity:.5};n.annotation().shape({top:s,render:function(t,i){var a=t.addGroup({id:n.id+"-regression-line",name:"regression-line-group"}),s=g({view:i,options:e});a.addShape("path",{name:"regression-line",attrs:Object(r.__assign)(Object(r.__assign)({path:s},c),o)})}})}return t}function m(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(n):!1===n&&e.tooltip(!1),t}function b(t){return Object(o.e)(h,p,A,C,m,v,c.c,I,c.a,c.j,y)(t)}var x=n(9);Object(x.registerInteraction)("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e}Object(r.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption(d(Object(o.b)({},this.options,{data:t})));var e=this.options;p({chart:this.chart,options:e}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return b},e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}})}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(2),a=n(3),s=n(16);function c(t){var e=t.chart,n=t.options,i=n.data,a=n.lineStyle,c=n.color,l=n.point,u=n.area;e.data(i);var g=Object(o.b)({},t,{options:{line:{style:a,color:c},point:l?Object(r.__assign)({color:c},l):l,area:u?Object(r.__assign)({color:c},u):u,label:void 0}}),f=Object(o.b)({},g,{options:{tooltip:!1}});return Object(s.d)(g),Object(s.e)(f),Object(s.a)(f),t}function l(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,s=n.xField,c=n.yField;return Object(o.e)(Object(a.f)(((e={})[s]=r,e[c]=i,e)))(t)}function u(t){var e=t.chart,n=t.options.radius;return e.coordinate("polar",{radius:n}),t}function g(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis,o=n.yField,a=n.yAxis;return e.axis(r,i),e.axis(o,a),t}function f(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=Object(o.c)(e,"line");if(i){var c=i.callback,l=Object(r.__rest)(i,["callback"]);s.label({fields:[a],callback:c,cfg:Object(o.o)(l)})}else s.label(!1);return t}function d(t){return Object(o.e)(c,l,a.j,u,g,a.d,a.k,f,a.c,a.a,Object(a.b)())(t)}var h=n(9),p=n(0),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),i=n.shared,o=n.title,a=t.prototype.getTooltipItems.call(this,e);if(a.length>0){var s=this.view.geometries[0],c=s.dataArray,l=a[0].name,u=[];return c.forEach((function(t){t.forEach((function(t){var e=h.Util.getTooltipItems(t,s)[0];if(!i&&e&&e.name===l){var n=Object(p.isNil)(o)?l:o;u.push(Object(r.__assign)(Object(r.__assign)({},e),{name:e.title,title:n}))}else i&&e&&(n=Object(p.isNil)(o)?e.name||l:o,u.push(Object(r.__assign)(Object(r.__assign)({},e),{name:e.title,title:n})))}))})),u}return[]},e}(h.TooltipController);Object(h.registerComponentController)("radar-tooltip",A);var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.init=function(){this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},e}(h.Action);Object(h.registerAction)("radar-tooltip",C),Object(h.registerInteraction)("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}Object(r.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return d}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(2),a=n(0),s=n(70),c=n(3);function l(t){var e,n=t.chart,r=t.options,i=r.data,o=r.type,a=r.reflect,c=r.xField,l=r.yField,u=r.colorField,g=r.sizeField,f=r.sizeRatio,d=r.shape,h=r.color;n.data(i),e="density"===o?n.heatmap().position(c+"*"+l):n.polygon().position(c+"*"+l),u&&e.color(u,h||s.b.GRADIENT.CONTINUOUS),a&&n.coordinate().reflect(a);var p=1;if((f||0===f)&&(d||g?f<0||f>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):p=f:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),d&&(g||e.shape("",(function(){return[d,1,p]})),g)){var A=i.map((function(t){return t[g]})),C=Math.min.apply(Math,A),v=Math.max.apply(Math,A);e.shape(g,(function(t){return[d,(t-C)/(v-C),p]}))}return t}function u(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,s=n.yField;return Object(o.e)(Object(c.f)(((e={})[a]=r,e[s]=i,e)))(t)}function g(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function f(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return r?e.legend(i,r):e.legend(!1),t}function d(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.colorField,s=n.sizeField,c=n.heatmapStyle,l=e.geometries[0];return c&&l&&(Object(a.isFunction)(c)?l.style(r+"*"+i+"*"+o+"*"+s,c):Object(a.isObject)(c)&&l.style(c)),t}function h(t){var e=t.chart,n=t.options,i=n.label,a=n.colorField,s=n.type,c=Object(o.c)(e,"density"===s?"heatmap":"polygon");if(i){if(a){var l=i.callback,u=Object(r.__rest)(i,["callback"]);c.label({fields:[a],callback:l,cfg:Object(o.o)(u)})}}else c.label(!1);return t}function p(t){return Object(o.e)(l,u,c.j,g,f,c.k,d,h,Object(c.b)(),c.c,c.a)(t)}var A=n(9);Object(A.registerShape)("polygon","circle",{draw:function(t,e){var n,i,o=t.x,a=t.y,s=this.parsePoints(t.points),c=Math.abs(s[2].x-s[1].x),l=Math.abs(s[1].y-s[0].y),u=Math.min(c,l)/2,g=Number(t.shape[1]),f=Number(t.shape[2]),d=u*Math.sqrt(f)*Math.sqrt(g),h=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("circle",{attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({x:o,y:a,r:d},t.defaultStyle),t.style),{fill:h})})}}),Object(A.registerShape)("polygon","square",{draw:function(t,e){var n,i,o=t.x,a=t.y,s=this.parsePoints(t.points),c=Math.abs(s[2].x-s[1].x),l=Math.abs(s[1].y-s[0].y),u=Math.min(c,l),g=Number(t.shape[1]),f=Number(t.shape[2]),d=u*Math.sqrt(f)*Math.sqrt(g),h=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("rect",{attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({x:o-d/2,y:a-d/2,width:d,height:d},t.defaultStyle),t.style),{fill:h})})}}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}Object(r.__extends)(e,t),e.prototype.getSchemaAdaptor=function(){return p},e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{type:"polygon",legend:!1,xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}})}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(18),a=n(0),s=n(3),c=n(70),l="$$stock-range$$",u="trend",g="down",f=["#ef5350","#26a69a"],d={showTitle:!1,showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0},itemTpl:'
  • {name}{value}
  • '};function h(t,e){return Object(a.map)(t,(function(t){if(Object(a.isArray)(e)){var n=e[0],r=e[1],i=e[2],o=e[3];t.trend=t[n]<=t[r]?"up":g,t[l]=[t[n],t[r],t[i],t[o]]}return t}))}function p(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.data;return e.data(h(o,i)),e.schema().position(r+"*"+l).shape("candle").color(u,f),t}function A(t){var e,n,r=t.chart,o=t.options,a=o.meta,s=o.xAxis,u=o.yAxis,f=o.xField,d=((e={})[f]={type:"timeCat",tickCount:6},e.trend={values:["up",g]},e),h=Object(i.b)(d,a,((n={})[f]=Object(i.k)(s,c.a),n[l]=Object(i.k)(u,c.a),n));return r.scale(h),t}function C(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(l,!1):e.axis(l,i),t}function v(t){var e=t.chart,n=t.options,r=n.xField,o=n.yField,s=n.meta,c=void 0===s?{}:s,l=n.tooltip,u=void 0===l?{}:l,g=Object(i.c)(e,"schema"),f=o[0],d=o[1],h=o[2],p=o[3],A=c[f]&&c[f].alias||f,C=c[d]?c[d].alias||f:d,v=c[h]&&c[h].alias||h,I=c[p]&&c[p].alias||p,y={fields:[r,f,d,h,p],callback:function(t,e,n,r,i){return{name:t,value:'\n
    '+A+"\uff1a"+e+'\n
    '+C+"\uff1a"+n+'\n
    '+v+"\uff1a"+r+'\n
    '+I+"\uff1a"+i+"\n "}}},m={crosshairs:{text:function(t,e,n){var i={position:"end"};if("x"===t){var o=n[0];i.content=o?o.data[r]:e}else i.content=e;return i}}};if(u){if(Object(a.isObject)(u)){var b=Object(i.b)({},m,u);e.tooltip(b),g.tooltip(y)}}else e.tooltip(!1);return t}function I(t){var e=t.chart,n=t.options.legend;return n?e.legend(u,n):!1===n&&e.legend(!1),t}function y(t){Object(i.e)(p,A,s.j,C,v,I,s.c,s.a)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}Object(r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return Object(i.b)({},t.prototype.getDefaultOptions.call(this),{tooltip:d,interactions:[{type:"tooltip"}],legend:{position:"top-left"}})},e.prototype.getSchemaAdaptor=function(){return y},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField;this.chart.changeData(h(t,e))}}(o.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(0),a=n(3),s=n(2),c=n(16);function l(t){return[{percent:t,type:"liquid"}]}function u(t){var e=t.chart,n=t.options,r=n.percent,i=n.color,o=n.liquidStyle,a=n.radius,u=n.outline,g=n.wave;e.scale({percent:{min:0,max:1}}),e.data(l(r));var f=Object(s.b)({},t,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:i,style:o,shape:"liquid-fill-gauge"}}});return Object(c.c)(f).ext.geometry.customInfo({radius:a,outline:u,wave:g}),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function g(t,e){var n=t.chart,r=t.options,i=r.statistic,a=r.percent,c=r.meta;if(n.getController("annotation").clear(!0),i.content&&!i.content.formatter){var l=Object(o.get)(c,["percent","formatter"]);i.content.formatter=function(t){var e=t.percent;return l?l(e):(100*e).toFixed(2)+"%"}}return Object(s.m)(n,{statistic:i,plotType:"liquid"},{percent:a}),e&&n.render(!0),t}function f(t){return Object(s.e)(u,g,Object(a.f)({}),a.a,a.j,a.c)(t)}var d=n(9),h=n(174);function p(t,e,n){return t+(e-t)*n}function A(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function C(t,e,n,r,i,o,a){for(var s=4*Math.ceil(2*t/n*4),c=[],l=r;l<2*-Math.PI;)l+=2*Math.PI;for(;l>0;)l-=2*Math.PI;var u=o-t+(l=l/Math.PI/2*n)-2*t;c.push(["M",u,e]);for(var g=0,f=0;f\n \n \n '+i+':\n '+o+"\n \n "})),l.innerHTML=u,l}function A(t){var e=t.chart,n=t.options,o=n.color,s=n.colorField,c=n.sunburstStyle,l=function(t){var e=t.data,n=t.type,i=t.seriesField,o=t.colorField,a=t.hierarchyConfig,s={partition:d,treemap:h.a}[n](e,Object(r.__assign)(Object(r.__assign)({},a),{type:"hierarchy."+n,field:i,as:["x","y"]})),c=[];return s.forEach((function(t){var e,n,s,l,u;if(0===t.depth)return null;var g=Object(r.__assign)(((e={})[i]=t.data[i]||(null===(s=null===(n=t.parent)||void 0===n?void 0:n.data)||void 0===s?void 0:s[i]),e[o]=t.data[o]||(null===(u=null===(l=t.parent)||void 0===l?void 0:l.data)||void 0===u?void 0:u[o]),e),t);g.ext=a,c.push(g)})),c}(n);return e.data(l),Object(a.f)(Object(i.b)({},t,{options:{xField:"x",yField:"y",seriesField:s,polygon:{color:o,style:c}}})),t}function C(t){return t.chart.axis(!1),t}function v(t){return t.chart.legend(!1),t}function I(t){var e=t.chart,n=t.options,o=n.label,a=n.seriesField,s=Object(i.c)(e,"polygon");if(o){var c=o.callback,l=Object(r.__rest)(o,["callback"]);s.label({fields:[a],callback:c,cfg:Object(i.o)(l)})}else s.label(!1);return t}function y(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius,o=n.reflect,a=e.coordinate({type:"polar",cfg:{innerRadius:r,radius:i}});return o&&a.reflect(o),t}function m(t){var e=t.chart,n=t.options.meta;return n&&e.scale(n),t}function b(t){var e=t.chart,n=t.options,i=n.tooltip,o=n.seriesField,a=n.colorField;return i&&e.tooltip(Object(r.__assign)(Object(r.__assign)({},i),{customContent:i&&i.customContent?i.customContent:function(t,e){return p({value:t,items:e,formatter:i&&(null===i||void 0===i?void 0:i.formatter),fields:i&&i.fields||[o,a]})}})),t}function x(t){return Object(i.e)(A,s.j,C,m,v,y,b,I,s.c,s.a,Object(s.b)())(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}Object(r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return Object(i.b)({},t.prototype.getDefaultOptions.call(this),{type:"partition",innerRadius:0,seriesField:"value",tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1}})},e.prototype.getSchemaAdaptor=function(){return x}}(o.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(0),a=n(3),s=n(70),c=n(2),l=n(46);function u(t){var e;return[(e={},e[l.c]=Object(o.clamp)(t,0,1),e)]}function g(t,e){var n=Object(o.get)(e,["ticks"],[]);return function(t){return t.map((function(e,n){var r;return(r={})[l.e]=e-(t[n-1]||0),r[l.d]=""+n,r})).filter((function(t){return!!t[l.e]}))}(Object(o.size)(n)?n:[0,Object(o.clamp)(t,0,1),1])}function f(t){var e=t.chart,n=t.options,r=n.percent,i=n.range,a=n.radius,f=n.innerRadius,d=n.startAngle,h=n.endAngle,p=n.axis,A=n.indicator,C=i.color;if(A){var v=u(r),I=e.createView({id:l.b});I.data(v),I.point().position(l.c+"*1").shape("gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:A}),I.coordinate("polar",{startAngle:d,endAngle:h,radius:f*a}),I.axis(l.c,p),I.scale(l.c,Object(c.k)(p,s.a))}var y=g(r,n.range),m=e.createView({id:l.f});m.data(y);var b=Object(o.isString)(C)?[C,l.a]:C;return m.interval().position("1*"+l.e).color(l.d,b).adjust("stack"),m.coordinate("polar",{innerRadius:f,radius:a,startAngle:d,endAngle:h}).transpose(),t}function d(t){var e;return Object(c.e)(Object(a.f)(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[l.c]={},e)))(t)}function h(t,e){var n=t.chart,i=t.options,o=i.statistic,a=i.percent;if(n.getController("annotation").clear(!0),o){var s=o.content,l=void 0;s&&(l=Object(c.b)({},{formatter:function(t){return(100*t.percent).toFixed(2)+"%"},style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),Object(c.l)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},o),{content:l})},{percent:a})}return e&&n.render(!0),t}function p(t){var e=t.chart;return e.legend(!1),e.tooltip(!1),t}function A(t){return Object(c.e)(a.a,f,d,h,a.c,a.j,p)(t)}var C=n(9);Object(C.registerShape)("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,i=n.indicator,o=n.defaultColor,a=i,s=a.pointer,c=a.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return s&&l.addShape("line",{name:"pointer",attrs:Object(r.__assign)({x1:u.x,y1:u.y,x2:t.x,y2:t.y,stroke:o},s.style)}),c&&l.addShape("circle",{name:"pin",attrs:Object(r.__assign)({x:u.x,y:u.y,stroke:o},c.style)}),l}}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}Object(r.__extends)(e,t),e.prototype.getDefaultOptions=function(){var t;return{percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(t={},t[l.e]={sync:"v"},t[l.c]={sync:"v",tickCount:5,tickInterval:.2},t),animation:!1}},e.prototype.changeData=function(t){this.updateOption({percent:t});var e=this.chart.views.find((function(t){return t.id===l.b}));e&&e.data(u(t));var n=this.chart.views.find((function(t){return t.id===l.f}));n&&n.data(g(t,this.options.range)),h({chart:this.chart,options:this.options},!0)},e.prototype.getSchemaAdaptor=function(){return A}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(2),a=n(0),s=n(3),c=n(16),l="first-axes-view",u="second-axes-view",g="series-field-key";function f(t){return"vertical"!==t}function d(t,e,n){var r=e[0],i=e[1],o=r.autoPadding,a=i.autoPadding,s=t.__axisPosition,c=s.layout,l=s.position;if(f(c)&&"top"===l&&(r.autoPadding=n.instance(o.top,0,o.bottom,o.left),i.autoPadding=n.instance(a.top,o.left,a.bottom,0)),f(c)&&"bottom"===l&&(r.autoPadding=n.instance(o.top,o.right/2+5,o.bottom,o.left),i.autoPadding=n.instance(a.top,a.right,a.bottom,o.right/2+5)),!f(c)&&"bottom"===l){var u=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,u),i.autoPadding=n.instance(o.bottom/2+5,a.right,a.bottom,u)}f(c)||"top"!==l||(u=o.left>=a.left?o.left:a.left,r.autoPadding=n.instance(o.top,o.right,0,u),i.autoPadding=n.instance(0,a.right,o.top,u))}function h(t){var e,n,r=t.chart,i=t.options,s=i.data,d=i.xField,h=i.yField,p=i.color,A=i.barStyle,C=i.widthRatio,v=i.legend,I=i.layout,y=function(t,e,n,r){var i=[];return e.forEach((function(e){r.forEach((function(r){var o,a=((o={})[t]=r[t],o[n]=e,o[e]=r[e],o);i.push(a)}))})),i}(d,h,g,s),m=Object.values(Object(a.groupBy)(y,g));v?r.legend(g,v):!1===v&&r.legend(!1);var b=Object(a.get)(m,[0],[]),x=Object(a.get)(m,[1],[]);f(I)?((e=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:l})).coordinate().transpose().reflect("x"),(n=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:u})).coordinate().transpose(),e.data(b.reverse()),n.data(x.reverse())):(e=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:l}),(n=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:u})).coordinate().reflect("y").rotate(0*Math.PI),e.data(b),n.data(x));var w=Object(o.b)({},t,{chart:e,options:{widthRatio:C,xField:d,yField:h[0],seriesField:g,interval:{color:p,style:A}}});Object(c.c)(w);var O=Object(o.b)({},t,{chart:n,options:{xField:d,yField:h[1],seriesField:g,widthRatio:C,interval:{color:p,style:A}}});return Object(c.c)(O),t}function p(t){var e,n,r,i=t.options,c=t.chart,f=i.xAxis,d=i.yAxis,h=i.xField,p=i.yField,A=Object(o.d)(c,l),C=Object(o.d)(c,u),v={};return Object(a.keys)((null===i||void 0===i?void 0:i.meta)||{}).map((function(t){Object(a.get)(null===i||void 0===i?void 0:i.meta,[t,"alias"])&&(v[t]=i.meta[t].alias)})),c.scale(((e={})[g]={sync:!0,formatter:function(t){return Object(a.get)(v,t,t)}},e)),Object(s.f)(((n={})[h]=f,n[p[0]]=d[p[0]],n))(Object(o.b)({},t,{chart:A})),Object(s.f)(((r={})[h]=f,r[p[1]]=d[p[1]],r))(Object(o.b)({},t,{chart:C})),t}function A(t){var e=t.chart,n=t.options,i=n.xAxis,a=n.yAxis,s=n.xField,c=n.yField,g=n.layout,d=Object(o.d)(e,l),h=Object(o.d)(e,u);return h.axis(s,!1),!1===i?d.axis(s,!1):d.axis(s,Object(r.__assign)({position:f(g)?"top":"bottom"},i)),!1===a?(d.axis(c[0],!1),h.axis(c[1],!1)):(d.axis(c[0],a[c[0]]),h.axis(c[1],a[c[1]])),e.__axisPosition={position:d.getOptions().axes[s].position,layout:g},t}function C(t){var e=t.chart;return Object(s.c)(Object(o.b)({},t,{chart:Object(o.d)(e,l)})),Object(s.c)(Object(o.b)({},t,{chart:Object(o.d)(e,u)})),t}function v(t){var e=t.chart,n=t.options,r=n.yField,i=n.yAxis;return Object(s.e)(Object(o.b)({},t,{chart:Object(o.d)(e,l),options:{yAxis:i[r[0]]}})),Object(s.e)(Object(o.b)({},t,{chart:Object(o.d)(e,u),options:{yAxis:i[r[1]]}})),t}function I(t){var e=t.chart;return Object(s.j)(Object(o.b)({},t,{chart:Object(o.d)(e,l)})),Object(s.j)(Object(o.b)({},t,{chart:Object(o.d)(e,u)})),t}function y(t){var e=t.chart;return Object(s.a)(Object(o.b)({},t,{chart:Object(o.d)(e,l)})),Object(s.a)(Object(o.b)({},t,{chart:Object(o.d)(e,u)})),t}function m(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=Object(o.d)(e,l),c=Object(o.d)(e,u),g=Object(o.c)(s,"interval"),f=Object(o.c)(c,"interval");if(i){var d=i.callback,h=Object(r.__rest)(i,["callback"]);g.label({fields:[a[0]],callback:d,cfg:Object(o.o)(h)}),f.label({fields:[a[1]],callback:d,cfg:Object(o.o)(h)})}else g.label(!1),f.label(!1);return t}function b(t){return Object(o.e)(h,p,A,v,I,m,s.k,C,y)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}Object(r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{syncViewPadding:d})},e.prototype.getSchemaAdaptor=function(){return b}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(3),a=n(2),s=n(16),c=n(0),l={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};function u(t,e){var n=function(t){return Object(c.assign)({},l,t)}(t),r={},i=e.nodes,o=e.links;return i.forEach((function(t){var e=n.id(t);r[e]=t})),function(t,e,n){Object(c.forIn)(t,(function(t,r){t.inEdges=e.filter((function(t){return""+n.target(t)===""+r})),t.outEdges=e.filter((function(t){return""+n.source(t)===""+r})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}(r,o,n),function(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return(""+e.id(t)).localeCompare(""+e.id(n))}}[e.sortBy];!n&&Object(c.isFunction)(e.sortBy)&&(n=e.sortBy),n&&t.sort(n)}(i,n),{nodes:function(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*n),o=e.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-r),t.height=o})),t.forEach((function(n,r){for(var a=0,s=r-1;s>=0;s--)a+=t[s].width+2*i;var c=n.minX=i+a,l=n.maxX=n.minX+n.width,u=n.minY=e.y-o/2,g=n.maxY=u+o;n.x=[c,l,l,c],n.y=[u,u,g,g]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}return t}(i,n),links:function(t,e,n){if(n.weight){var r={};Object(c.forIn)(t,(function(t,e){r[e]=t.value})),e.forEach((function(e){var i=n.source(e),o=n.target(e),a=t[i],s=t[o];if(a&&s){var c=r[i],l=n.sourceWeight(e),u=a.minX+(a.value-c)/a.value*a.width,g=u+l/a.value*a.width;r[i]-=l;var f=r[o],d=n.targetWeight(e),h=s.minX+(s.value-f)/s.value*s.width,p=h+d/s.value*s.width;r[o]-=d;var A=n.y;e.x=[u,g,h,p],e.y=[A,A,A,A],e.source=a,e.target=s}}))}else e.forEach((function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y],e.source=r,e.target=i)}));return e}(r,o,n)}}var g=n(68),f="name",d="source";function h(t){var e=t.options,n=e.data,i=e.sourceField,o=e.targetField,a=e.weightField,s=u({weight:!0,nodePaddingRatio:e.nodePaddingRatio,nodeWidthRatio:e.nodeWidthRatio},Object(g.b)(n,i,o,a)),c=s.nodes,l=s.links,f=c.map((function(t){return{id:t.id,x:t.x,y:t.y,name:t.name}})),d=l.map((function(t){return{source:t.source.name,target:t.target.name,x:t.x,y:t.y,value:t.value}}));return Object(r.__assign)(Object(r.__assign)({},t),{ext:Object(r.__assign)(Object(r.__assign)({},t.ext),{chordData:{nodesData:f,edgesData:d}})})}function p(t){var e;return t.chart.scale(((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}}).name={sync:"color"},e.source={sync:"color"},e)),t}function A(t){return t.chart.axis(!1),t}function C(t){return t.chart.legend(!1),t}function v(t){return t.chart.tooltip({showTitle:!1,showMarkers:!1}),t}function I(t){return t.chart.coordinate("polar").reflect("y"),t}function y(t){var e=t.chart,n=t.options,r=t.ext.chordData.nodesData,i=n.nodeStyle,o=n.label,a=e.createView();return a.data(r),Object(s.f)({chart:a,options:{xField:"x",yField:"y",seriesField:f,polygon:{style:i},label:o,tooltip:!1}}),t}function m(t){var e=t.chart,n=t.options,r=t.ext.chordData.edgesData,i=n.edgeStyle,o=n.tooltip,a=e.createView();a.data(r);var c={xField:"x",yField:"y",seriesField:d,edge:{style:i,shape:"arc"},tooltip:o};return Object(s.b)({chart:a,options:c}),t}function b(t){return Object(a.e)(h,I,p,A,C,v,m,y,o.c,o.a,o.j)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}Object(r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return{nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){return{labelEmit:!0,style:{fill:"#8c8c8c"},offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}}},tooltip:{fields:["source","target","value"],formatter:function(t){return{name:t.source+" -> "+t.target,value:t.value}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05}},e.prototype.getSchemaAdaptor=function(){return b}}(i.a)},function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return r.a})),n.d(e,"Arc",(function(){return i.a})),n.d(e,"DataMarker",(function(){return o.a})),n.d(e,"DataRegion",(function(){return a.a})),n.d(e,"RegionFilter",(function(){return A})),n.d(e,"Html",(function(){return v})),n.d(e,"Image",(function(){return I.a})),n.d(e,"Line",(function(){return y.a})),n.d(e,"Region",(function(){return m.a})),n.d(e,"Text",(function(){return b.a}));var r=n(49),i=n(189),o=n(190),a=n(191),s=n(8),c=n.n(s),l=n(11),u=n.n(l),g=n(12),f=n.n(g),d=n(6),h=n.n(d);function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var A=function(t){u()(n,t);var e=p(n);function n(){var t;return c()(this,n),(t=e.apply(this,arguments)).annotationType="regionFilter",t}return n}(r.a);function C(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var v=function(t){u()(n,t);var e=C(n);function n(){var t;return c()(this,n),(t=e.apply(this,arguments)).annotationType="html",t}return n}(r.a),I=n(192),y=n(193),m=n(194),b=n(195)},function(t,e,n){"use strict";n.d(e,"a",(function(){return $}));var r=n(5),i=n.n(r),o=n(4),a=n.n(o),s=n(36),c=n.n(s),l=n(187),u=n.n(l),g=n(117),f=n.n(g),d=n(32),h=n.n(d),p=n(63),A=n.n(p),C=n(7),v=n(54),I=n(8),y=n.n(I),m=n(35),b=n.n(m),x=n(11),w=n.n(x),O=n(12),S=n.n(O),_=n(6),k=n.n(_),j=n(470),E=n.n(j),P=n(19),M=n.n(P),T=n(471),R=n.n(T),D=n(61);function N(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=k()(t);if(e){var i=k()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var L=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}Object(r.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(Object(o.a)(t))},e.prototype.getDefaultOptions=function(){return{appendPadding:2,tooltip:Object(r.__assign)({},h),animation:!0}},e.prototype.getSchemaAdaptor=function(){return f}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(2),a=n(0);function s(t,e){var n=Math.floor(t/e);return[e*n,e*(n+1)]}function c(t,e,n,r,i){var o=Object(a.clone)(t);Object(a.sortBy)(o,e);var c=Object(a.valuesOfKey)(o,e),l=Object(a.getRange)(c),u=l.max-l.min,g=n;if(!n&&r&&(g=u/r),!n&&!r){var f=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}(c);g=u/f}var d={},h=Object(a.groupBy)(o,i);Object(a.isEmpty)(h)?Object(a.each)(o,(function(t){var n=s(t[e],g),r=n[0]+"-"+n[1];Object(a.hasKey)(d,r)||(d[r]={range:n,count:0}),d[r].count+=1})):Object.keys(h).forEach((function(t){Object(a.each)(h[t],(function(n){var r=s(n[e],g),o=r[0]+"-"+r[1]+"-"+t;Object(a.hasKey)(d,o)||(d[o]={range:r,count:0},d[o][i]=t),d[o].count+=1}))}));var p=[];return Object(a.each)(d,(function(t){p.push(t)})),p}var l=n(3),u=n(16);function g(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,a=n.binNumber,s=n.binWidth,l=n.color,g=n.stackField,f=n.legend,d=n.columnStyle,h=c(r,i,s,a,g);e.data(h);var p=Object(o.b)({},t,{options:{xField:"range",yField:"count",seriesField:g,isStack:!0,interval:{color:l,style:d}}});return Object(u.c)(p),f&&g&&e.legend(g,f),t}function f(t){var e=t.options,n=e.xAxis,r=e.yAxis;return Object(o.e)(Object(l.f)({range:n,count:r}))(t)}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis("range",!1):e.axis("range",r),!1===i?e.axis("count",!1):e.axis("count",i),t}function h(t){var e=t.chart,n=t.options.label,i=Object(o.c)(e,"interval");if(n){var a=n.callback,s=Object(r.__rest)(n,["callback"]);i.label({fields:["count"],callback:a,cfg:Object(o.o)(s)})}else i.label(!1);return t}function p(t){return Object(o.e)(g,f,d,l.j,h,l.k,l.c,l.a)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}Object(r.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.binField,r=e.binNumber,i=e.binWidth,o=e.stackField;this.chart.changeData(c(t,n,i,r,o))},e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},e.prototype.getSchemaAdaptor=function(){return p}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(2),a=n(0),s=n(3),c=n(70),l="$$range$$";function u(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.groupField,s=n.color,c=Array.isArray(i)?l:i,u=e.schema().position(r+"*"+c).shape("box");o&&u.color(o,s).adjust("dodge");var g=n.data;if(Array.isArray(i)){var f=i[0],d=i[1],h=i[2],p=i[3],A=i[4];g=Object(a.map)(g,(function(t){return t.$$range$$=[t[f],t[d],t[h],t[p],t[A]],t}))}return e.data(g),t}function g(t){var e=t.chart,n=t.options,r=n.xField,i=n.data,o=n.outliersField,s=n.outliersStyle,c=n.padding;if(!o)return t;var l=e.createView({padding:c});l.data(i),l.axis(!1);var u=l.point().position(r+"*"+o).shape("circle");return Object(a.isFunction)(s)?u.style(r+"*"+o,(function(t,e){var n;return s(((n={})[r]=t,n[o]=e,n))})):Object(a.isObject)(s)&&u.style(s),t}function f(t){var e,n,r=t.chart,i=t.options,a=i.meta,s=i.xAxis,u=i.yAxis,g=i.xField,f=i.yField,d=i.outliersField,h=Array.isArray(f)?l:f,p={};if(d){var A="$$y_outliers$$";(e={})[d]={sync:A},e[h]={sync:A},p=e}var C=Object(o.b)(p,a,((n={})[g]=Object(o.k)(s,c.a),n[h]=Object(o.k)(u,c.a),n));return r.scale(C),t}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,s=Array.isArray(a)?l:a;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(l,!1):e.axis(s,i),t}function h(t){var e=t.chart,n=t.options,r=n.legend,i=n.groupField;return i?r?e.legend(i,r):e.legend(i,{position:"bottom"}):e.legend(!1),t}function p(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,s=n.boxStyle,c=Object(o.c)(e,"schema"),u=Array.isArray(i)?l:i;return Object(a.isFunction)(s)?c.style(r+"*"+u,(function(t,e){var n;return s(((n={})[r]=t,n[u]=e,n))})):Object(a.isObject)(s)&&c.style(s),t}function A(t){var e=t.chart,n=t.options.tooltip;return void 0!==n&&e.tooltip(n),t}function C(t){return Object(o.e)(u,g,f,d,p,h,A,s.c,s.a,s.j)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}Object(r.__extends)(e,t),e.prototype.getDefaultOptions=function(){var e;return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{meta:(e={},e.$$range$$={min:0,alias:"low-q1-median-q3-high"},e),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,showCrosshairs:!0,shared:!0}})},e.prototype.getSchemaAdaptor=function(){return C}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(2),a=n(0),s=n(3),c=n(16);function l(t){var e=t.data,n=t.xField,r=t.measureField,i=t.rangeField,o=t.targetField,a=t.layout,s=[],c=[];e.forEach((function(t,e){var a;t[i].sort((function(t,e){return t-e})),t[i].forEach((function(r,o){var a,c=0===o?r:t[i][o]-t[i][o-1];s.push(((a={rKey:i+"_"+o})[n]=n?t[n]:String(e),a[i]=c,a))})),t[r].forEach((function(i,o){var a;s.push(((a={mKey:t[r].length>1?r+"_"+o:""+r})[n]=n?t[n]:String(e),a[r]=i,a))})),s.push(((a={tKey:""+o})[n]=n?t[n]:String(e),a[o]=t[o],a)),c.push(t[i],t[r],t[o])}));var l=Math.min.apply(Math,c.flat(1/0)),u=Math.max.apply(Math,c.flat(1/0));return l=l>0?0:l,"vertical"===a&&s.reverse(),{min:l,max:u,ds:s}}function u(t){var e=t.chart,n=t.options,i=n.bulletStyle,s=n.targetField,u=n.rangeField,g=n.measureField,f=n.xField,d=n.color,h=n.layout,p=n.size,A=n.label,C=l(n),v=C.min,I=C.max,y=C.ds;e.data(y);var m=Object(o.b)({},t,{options:{xField:f,yField:u,seriesField:"rKey",isStack:!0,label:Object(a.get)(A,"range"),interval:{color:Object(a.get)(d,"range"),style:Object(a.get)(i,"range"),size:Object(a.get)(p,"range")}}});Object(c.c)(m),e.geometries[0].tooltip(!1);var b=Object(o.b)({},t,{options:{xField:f,yField:g,seriesField:"mKey",isStack:!0,label:Object(a.get)(A,"measure"),interval:{color:Object(a.get)(d,"measure"),style:Object(a.get)(i,"measure"),size:Object(a.get)(p,"measure")}}});Object(c.c)(b);var x=Object(o.b)({},t,{options:{xField:f,yField:s,seriesField:"tKey",label:Object(a.get)(A,"target"),point:{color:Object(a.get)(d,"target"),style:Object(a.get)(i,"target"),size:Object(a.get)(p,"target")/2,shape:"horizontal"===h?"line":"hyphen"}}});return Object(c.e)(x),"horizontal"===h&&e.coordinate().transpose(),Object(r.__assign)(Object(r.__assign)({},t),{ext:{data:{min:v,max:I}}})}function g(t){var e,n,r=t.options,i=t.ext,a=r.xAxis,c=r.yAxis,l=r.targetField,u=r.rangeField,g=r.measureField,f=r.xField,d=i.data;return Object(o.e)(Object(s.f)(((e={})[f]=a,e[g]=c,e),((n={})[g]={min:null===d||void 0===d?void 0:d.min,max:null===d||void 0===d?void 0:d.max},n[l]={sync:""+g},n[u]={sync:""+g},n)))(t)}function f(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.measureField,s=n.rangeField,c=n.targetField;return e.axis(""+s,!1),e.axis(""+c,!1),!1===r?e.axis(""+o,!1):e.axis(""+o,r),!1===i?e.axis(""+a,!1):e.axis(""+a,i),t}function d(t){var e=t.chart,n=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(n),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function h(t){var e=t.chart,n=t.options,i=n.label,s=n.measureField,c=n.targetField,l=n.rangeField,u=e.geometries,g=u[0],f=u[1],d=u[2];return Object(a.get)(i,"range")?g.label(""+l,Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(o.o)(i.range))):g.label(!1),Object(a.get)(i,"measure")?f.label(""+s,Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(o.o)(i.measure))):f.label(!1),Object(a.get)(i,"target")?d.label(""+c,Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(o.o)(i.target))):d.label(!1),t}function p(t){Object(o.e)(u,g,f,d,s.j,h,s.k,s.c,s.a)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}Object(r.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t});var e=l(this.options),n=e.min,r=e.max,i=e.ds;g({options:this.options,ext:{data:{min:n,max:r}},chart:this.chart}),this.chart.changeData(i)},e.prototype.getSchemaAdaptor=function(){return p},e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}})}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(2),a=n(3),s=n(16);function c(t,e,n){var r=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),i=r.length>0?Math.max.apply(Math,r):0,o=Math.abs(t)%360;return o?360*i/o:i}function l(t){var e=t.chart,n=t.options,r=n.data,i=n.barStyle,a=n.color,c=n.tooltip,l=n.colorField,u=n.type,g=n.xField,f=n.yField;e.data(r);var d=Object(o.b)({},t,{options:{tooltip:c,seriesField:l,interval:{style:i,color:a,shape:"line"===u?"line":"intervel"},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Object(s.c)(d),"line"===u&&Object(s.e)({chart:e,options:{xField:g,yField:f,seriesField:l,point:{shape:"circle",color:a}}}),t}function u(t){var e,n=t.options,r=n.yField,i=n.data,s=n.maxAngle;return Object(o.e)(Object(a.f)(((e={})[r]={min:0,max:c(s,r,i)},e)))(t)}function g(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}).transpose(),t}function f(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis;return e.axis(r,i),t}function d(t){return Object(o.e)(l,u,f,g,a.c,a.a,a.j,a.k,a.d,Object(a.b)())(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial-bar",e}Object(r.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),u({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240})},e.prototype.getSchemaAdaptor=function(){return d}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(203),a=n(3),s=n(2),c=n(226);function l(t){var e=t.options.colorField;return Object(s.b)({options:{colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapResquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1,fields:["name","value",e],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function u(t){var e=t.chart,n=t.options,i=n.color,a=n.colorField,l=n.rectStyle,u=function(t){var e=t.data,n=t.colorField,i=t.hierarchyConfig,o=Object(c.a)(e,Object(r.__assign)(Object(r.__assign)({},i),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),a=[];return o.forEach((function(t){if(!t.children){var e=Object.assign({},t.data,{x:t.x,y:t.y,depth:t.depth,value:t.value});if(!t.data[n]&&t.parent){var r=t.ancestors().find((function(t){return t.data[n]}));e[n]=null===r||void 0===r?void 0:r.data[n]}else e[n]=t.data[n];a.push(e)}})),a}(n);return e.data(u),Object(o.a)(Object(s.b)({},t,{options:{xField:"x",yField:"y",seriesField:a,rawFields:["value"],polygon:{color:i,style:l}}})),t}function g(t){return t.chart.axis(!1),t}function f(t){return Object(s.e)(l,u,g,a.j,a.d,a.k,a.c,a.a,Object(a.b)())(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}Object(r.__extends)(e,t),e.prototype.getSchemaAdaptor=function(){return f}}(i.a)},function(t,e,n){"use strict";var r=n(5),i=n.n(r),o=n(8),a=n.n(o),s=n(35),c=n.n(s),l=n(11),u=n.n(l),g=n(12),f=n.n(g),d=n(6),h=n.n(d),p=n(4),A=n.n(p),C=n(216),v=n.n(C),I=n(265),y=n(469),m=n(79),b=n(141),x=n(84),w=n(61),O=n(37),S=n(57),_=n.n(S),k=n(117),j=n.n(k),E=n(69),P=n.n(E),M=n(36),T=n.n(M),R=n(32),D=n.n(R),N=n(218),L=n.n(N),F=n(7),B=n(14),z=n.n(B),V=n(90),G=n(80),W=n(89),Y=n(99),H=n(27),U=n(146),X=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=0&&e!==this.chartHelper.chart.width||n>=0&&n!==this.chartHelper.chart.height){var r=e||this.chartHelper.chart.width,i=n||this.chartHelper.chart.height;this.chartHelper.chart.changeSize(r,i),this.chartHelper.chart.emit("resize")}else this.chartHelper.render();else this.chartHelper.render()}}},{key:"componentWillUnmount",value:function(){this.chartHelper.destory(),this.resizeObserver.unobserve(this.props.container)}},{key:"getG2Instance",value:function(){return this.chartHelper.chart}},{key:"render",value:function(){var t=this,e=this.props,n=e.placeholder,r=e.data,o=e.errorContent,a=this.props.ErrorBoundaryProps;if((void 0===r||0===r.length)&&n){this.chartHelper.destory();var s=!0===n?A.a.createElement("div",{style:{position:"relative",top:"48%",color:"#aaa",textAlign:"center"}},"\u6682\u65e0\u6570\u636e"):n;return A.a.createElement(m.b,i()({},a),s)}return this.chartHelper.update(this.props),a=o?i()({fallback:o},a):{FallbackComponent:m.a},A.a.createElement(m.b,i()({},a,{key:this.chartHelper.key,onError:function(){var e;t.isError=!0,Object(q.isFunction)(a.onError)&&(e=a).onError.apply(e,arguments)},onReset:function(){var e;t.isError=!1,Object(q.isFunction)(a.onReset)&&(e=a).onReset.apply(e,arguments)},resetKeys:[this.chartHelper.key],fallback:o}),A.a.createElement(x.a.Provider,{value:this.chartHelper},A.a.createElement(w.a.Provider,{value:this.chartHelper.chart},A.a.createElement(O.a.Provider,{value:this.chartHelper.extendGroup},this.props.children))))}}]),n}(A.a.Component);Q.defaultProps={placeholder:!1,visible:!0,interactions:[],filter:[]},e.a=Object(b.a)(Q)},function(t,e,n){"use strict";var r=n(8),i=n.n(r),o=n(35),a=n.n(o),s=n(11),c=n.n(s),l=n(12),u=n.n(l),g=n(6),f=n.n(g),d=n(4),h=n.n(d),p=n(84),A=n(61),C=n(5),v=n.n(C),I=n(32),y=n.n(I),m=n(172),b=n.n(m),x=n(69),w=n.n(x),O=n(14),S=n.n(O),_=n(90),k=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=c.minX&&e<=c.maxX&&n>=c.minY&&n<=c.maxY}function s(t,e,n){if(!a(t,e,n))return null;for(var r=null,i=t.getChildren(),c=i.length-1;c>=0;c--){var l=i[c];if(l.isGroup())r=s(l,e,n);else if(a(l,e,n)){var u=l,g=o(l,e,n),f=g[0],d=g[1];u.isInShape(f,d)&&(r=l)}if(r)break}return r}var c=n(97),l=n(131),u=n(23),g=n(45),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return l.a},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Object(u.d)();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?s(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();return e.length&&e[0]===this?t=n:(t=Object(g.f)(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=Object(g.g)(t,n))),t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(u.a)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Object(g.a)(t,this),Object(g.d)(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),Object(g.a)(t,this),Object(g.b)(this,n,r),Object(g.d)(t,n,r),t.restore()):e.length&&Object(g.c)(e),Object(u.c)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=Object(u.n)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e}(i.AbstractCanvas);e.a=f},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(1),i=n(29),o=n(0),a=n(28),s={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.noop,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?Object(o.get)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?Object(o.get)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[Object(i.addEventListener)(t,"touchmove",e.onMouseMove),Object(i.addEventListener)(t,"touchend",e.onMouseUp),Object(i.addEventListener)(t,"touchcancel",e.onMouseUp)]:[Object(i.addEventListener)(t,"mousemove",e.onMouseMove),Object(i.addEventListener)(t,"mouseup",e.onMouseUp),Object(i.addEventListener)(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var a=e.isMobile?Object(o.get)(t,"touches.0.clientX"):t.clientX,s=e.isMobile?Object(o.get)(t,"touches.0.clientY"):t.clientY,c=r?a:s,l=c-e.startPos;e.startPos=c,e.updateThumbOffset(i+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,o=n.y,a=n.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),c=t.clientX,l=t.clientY,u=r?c-s.left-i-a/2:l-s.top-o-a/2,g=e.validateRange(u);e.updateThumbOffset(g)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return Object(r.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=Object(o.clamp)(n,t,e);n===r||this.get("isInit")||this.setValue(r)},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Object(o.clamp)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Object(o.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:s})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,r=e.theme,i=(void 0===r?{default:{}}:r).default,o=i.lineCap,a=i.trackColor,s=i.size,c=this.get("isHorizontal")?{x1:0+s/2,y1:s/2,x2:n-s/2,y2:s/2,lineWidth:s,stroke:a,lineCap:o}:{x1:s/2,y1:0+s/2,x2:s/2,y2:n-s/2,lineWidth:s,stroke:a,lineCap:o};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:c})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,r=e.thumbLen,i=e.theme,o=(void 0===i?{default:{}}:i).default,a=o.size,s=o.lineCap,c=o.thumbColor,l=this.get("isHorizontal")?{x1:n+a/2,y1:a/2,x2:n+r-a/2,y2:a/2,lineWidth:a,stroke:c,lineCap:s,cursor:"default"}:{x1:a/2,y1:n+a/2,x2:a/2,y2:n+r-a/2,lineWidth:a,stroke:c,lineCap:s,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:l})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n=0)&&(d=d?Object(a.isArray)(d)?d:[d]:[],g.layout=Object(a.filter)(d,(function(t){return"limit-in-shape"!==t.type})),g.layout.length||delete g.layout),c.label({fields:u||[s],callback:l,cfg:Object(o.o)(g)})}else Object(o.j)(o.a.WARN,null===i,"the label option must be an Object."),c.label({fields:[s]});return t}function g(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function f(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i}}),t}function d(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,c=n.yField;return Object(o.e)(Object(s.f)(((e={})[a]=r,e[c]=i,e)))(t)}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return r?e.axis(o,r):e.axis(o,!1),i?e.axis(a,i):e.axis(a,!1),t}function p(t){Object(o.e)(l,d,u,f,h,g,s.k,s.c,s.a,s.j,Object(s.b)(),s.i)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}Object(r.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{xAxis:!1,yAxis:!1,legend:{position:"right",offsetX:-10},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},e.prototype.getSchemaAdaptor=function(){return p}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(2),a=n(3),s=n(16),c=n(68),l=n(78),u=n(38);function g(t){var e,n,r=t.chart,i=t.options,g=i.data,f=i.xAxis,d=i.yAxis,h=i.color,p=i.lineStyle,A=i.point,C=Object(l.a)(g);r.data(C);var v=Object(o.b)({},t,{options:{xField:u.b,yField:u.c,line:{color:h,style:p},point:A}}),I=Object(o.b)({},v,{options:{tooltip:!1}});return Object(s.d)(v),Object(s.e)(I),r.axis(!1),r.legend(!1),Object(a.f)(((e={})[u.b]=f,e[u.c]=d,e),((n={})[u.b]={type:"cat"},n[u.c]=Object(c.a)(C,u.c),n))(t),t}function f(t){return Object(o.e)(g,a.j,a.k,a.a,Object(a.b)())(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-line",e}Object(r.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(Object(l.a)(t))},e.prototype.getDefaultOptions=function(){return{appendPadding:2,tooltip:Object(r.__assign)({},u.a),animation:!0}},e.prototype.getSchemaAdaptor=function(){return f}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(38),a=n(78),s=n(3),c=n(2),l=n(16),u=n(68);function g(t){var e,n,r=t.chart,i=t.options,g=i.data,f=i.xAxis,d=i.yAxis,h=i.color,p=i.areaStyle,A=i.point,C=i.line,v=Object(a.a)(g);r.data(v);var I=Object(c.b)({},t,{options:{xField:o.b,yField:o.c,area:{color:h,style:p},line:C,point:A}}),y=Object(c.b)({},I,{options:{tooltip:!1}});return Object(l.a)(I),Object(l.d)(y),Object(l.e)(y),r.axis(!1),r.legend(!1),Object(s.f)(((e={})[o.b]=f,e[o.c]=d,e),((n={})[o.b]={type:"cat"},n[o.c]=Object(u.a)(v,o.c),n))(t),t}function f(t){return Object(c.e)(g,s.k,s.j,s.a,Object(s.b)())(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}Object(r.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(Object(a.a)(t))},e.prototype.getDefaultOptions=function(){return{appendPadding:2,tooltip:Object(r.__assign)({},o.a),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:!0}},e.prototype.getSchemaAdaptor=function(){return f}}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(18),o=n(145),a=n(0),s=n(2),c=n(3),l=n(224),u=n(46);function g(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function f(t,e){var n=t.chart,i=t.options,o=i.innerRadius,c=i.statistic,l=i.percent,g=i.meta;if(n.getController("annotation").clear(!0),o&&c){var f=c.content;f&&!f.formatter&&(f.formatter=function(t){var e=t.percent,n=Object(a.get)(g,[u.c,"formatter"]);return n?n(e):e}),Object(s.m)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},c),{content:f}),plotType:"ring-progress"},{percent:l})}return e&&n.render(!0),t}function d(t){return Object(s.e)(l.b,Object(c.f)({}),g,f,c.a,c.j,Object(c.b)())(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}Object(r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return{percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"},formatter:function(t){return(100*t.percent).toFixed(2)+"%"}}},animation:!0}},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.data(Object(o.a)(t)),f({chart:this.chart,options:this.options},!0)},e.prototype.getSchemaAdaptor=function(){return d}}(i.a)},function(t,e,n){"use strict";var r=n(30),i=n(0),o=n(109),a=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=e.marginRatio,i=void 0===r?o.d:r,a=e.dodgeRatio,s=void 0===a?o.b:a,c=e.dodgeBy,l=e.intervalPadding,u=e.dodgePadding,g=e.xDimensionLength,f=e.groupNum,d=e.defaultSize,h=e.maxColumnWidth,p=e.minColumnWidth,A=e.columnWidthRatio;return n.marginRatio=i,n.dodgeRatio=s,n.dodgeBy=c,n.intervalPadding=l,n.dodgePadding=u,n.xDimensionLegenth=g,n.groupNum=f,n.defaultSize=d,n.maxColumnWidth=h,n.minColumnWidth=p,n.columnWidthRatio=A,n}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.clone(t),n=i.flatten(e),r=this.dodgeBy,o=r?i.group(n,r):e;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=n,this.adjustData(o,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var o=this,a=this.getDistribution(t),s=this.groupData(n,t);return i.each(s,(function(n,s){var c;c=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,parseFloat(s),e),i.each(n,(function(e){var n=e[t],i=a[n],s=i.indexOf(r);e[t]=o.getDodgeOffset(c,s,i.length)}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r,o=this,a=o.dodgeRatio,s=o.marginRatio,c=o.intervalPadding,l=o.dodgePadding,u=t.pre,g=t.next,f=g-u;if(!i.isNil(c)&&i.isNil(l)&&c>=0)r=u+this.getIntervalOnlyOffset(n,e);else if(!i.isNil(l)&&i.isNil(c)&&l>=0)r=u+this.getDodgeOnlyOffset(n,e);else if(!i.isNil(c)&&!i.isNil(l)&&c>=0&&l>=0)r=u+this.getIntervalAndDodgeOffset(n,e);else{var d=f*a/n,h=s*d;r=(u+g)/2+(.5*(f-n*d-(n-1)*h)+((e+1)*d+e*h)-.5*d-.5*f)}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,o=n.intervalPadding,a=n.xDimensionLegenth,s=n.groupNum,c=n.dodgeRatio,l=n.maxColumnWidth,u=n.minColumnWidth,g=n.columnWidthRatio,f=o/a,d=(1-(s-1)*f)/s*c/(t-1),h=((1-f*(s-1))/s-d*(t-1))/t;if(h=i.isNil(g)?h:1/s/t*g,!i.isNil(l)){var p=l/a;h=Math.min(h,p)}if(!i.isNil(u)){var A=u/a;h=Math.max(h,A)}return((.5+e)*(h=r?r/a:h)+e*(d=((1-(s-1)*f)/s-t*h)/(t-1))+.5*f)*s-f/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,o=n.dodgePadding,a=n.xDimensionLegenth,s=n.groupNum,c=n.marginRatio,l=n.maxColumnWidth,u=n.minColumnWidth,g=n.columnWidthRatio,f=o/a,d=1*c/(s-1),h=((1-d*(s-1))/s-f*(t-1))/t;if(h=g?1/s/t*g:h,!i.isNil(l)){var p=l/a;h=Math.min(h,p)}if(!i.isNil(u)){var A=u/a;h=Math.max(h,A)}return((.5+e)*(h=r?r/a:h)+e*f+.5*(d=(1-(h*t+f*(t-1))*s)/(s-1)))*s-d/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this,r=n.intervalPadding,i=n.dodgePadding,o=n.xDimensionLegenth,a=n.groupNum,s=r/o,c=i/o;return((.5+e)*(((1-s*(a-1))/a-c*(t-1))/t)+e*c+.5*s)*a-s/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},i.each(e,(function(e,n){var o=i.valuesOfKey(e,t);o.length||o.push(0),i.each(o,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(n(76).a);e.a=a},function(t,e,n){"use strict";var r=n(30),i=n(0),o=n(109),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.clone(t),n=i.flatten(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,o=this.groupData(n,t);return i.each(o,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e,n=t.pre,r=t.next,i=(r-n)*o.c;return(r-i-(e=n+i))*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,r){var o=this,a=this.getAdjustRange(e,n,r);return i.each(t,(function(t){t[e]=o.getAdjustOffset(a)})),t},e}(n(76).a);e.a=a},function(t,e,n){"use strict";var r=n(30),i=n(0),o=n(76),a=i.Cache,s=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,o=e.height,a=void 0===o?NaN:o,s=e.size,c=void 0===s?10:s,l=e.reverseOrder,u=void 0!==l&&l;return n.adjustNames=i,n.height=a,n.size=c,n.reverseOrder=u,n}return Object(r.b)(e,t),e.prototype.process=function(t){var e=this.yField,n=this.reverseOrder,r=e?this.processStack(t):this.processOneDimStack(t);return n?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this,n=e.xField,o=e.yField,s=e.reverseOrder?this.reverse(t):t,c=new a,l=new a;return s.map((function(t){return t.map((function(t){var e,a=i.get(t,n,0),s=i.get(t,[o]),u=a.toString();if(s=i.isArray(s)?s[1]:s,!i.isNil(s)){var g=s>=0?c:l;g.has(u)||g.set(u,0);var f=g.get(u),d=s+f;return g.set(u,d),Object(r.a)(Object(r.a)({},t),((e={})[o]=[f,d],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this,i=n.xField,o=n.height,s=n.reverseOrder,c=s?this.reverse(t):t,l=new a;return c.map((function(t){return t.map((function(t){var n,a=e.size,s=t[i],c=2*a/o;l.has(s)||l.set(s,c/2);var u=l.get(s);return l.set(s,u+c),Object(r.a)(Object(r.a)({},t),((n={}).y=u,n))}))}))},e}(o.a);e.a=s},function(t,e,n){"use strict";var r=n(30),i=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.flatten(t),n=this.xField,o=this.yField,a=this.getXValuesMaxMap(e),s=Math.max.apply(Math,Object.keys(a).map((function(t){return a[t]})));return i.map(t,(function(t){return i.map(t,(function(t){var e,c,l=t[o],u=t[n];if(i.isArray(l)){var g=(s-a[u])/2;return Object(r.a)(Object(r.a)({},t),((e={})[o]=i.map(l,(function(t){return g+t})),e))}var f=(s-l)/2;return Object(r.a)(Object(r.a)({},t),((c={})[o]=[f,l+f],c))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField,o=i.groupBy(t,(function(t){return t[n]}));return i.mapValues(o,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=i.map(t,(function(t){return i.get(t,e,[])})),r=i.flatten(n);return Math.max.apply(Math,r)},e}(n(76).a);e.a=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=void 0;var r=n(1),i=n(179);e.Shape=i,r.__exportStar(n(24),e);var o=n(537);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return o.default}});var a=n(232);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return a.default}}),e.version="0.5.6"},function(t,e,n){"use strict";t.exports=n(597)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32),i=n(36),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(!e||!r.default(t))return{};for(var n,a={},s=i.default(e)?e:function(t){return t[e]},c=0;c0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;a.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),m="undefined"!==typeof WeakMap?new WeakMap:new n,b=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new y(e,n,this);m.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){b.prototype[t]=function(){var e;return(e=m.get(this))[t].apply(e,arguments)}}));var x="undefined"!==typeof i.ResizeObserver?i.ResizeObserver:b;e.a=x}).call(this,n(320))},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e,n){"use strict";function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(32);e.default=function t(e){if("object"!==r(e)||null===e)return e;var n;if(i.default(e)){n=[];for(var o=0,a=e.length;o1&&void 0!==arguments[1]?arguments[1]:[];return A()(n)?e=n:h()(n)?e=function(t,e){for(var r=0;re[i])return 1}return 0}:v()(n)&&(e=function(t,e){return t[n]e[n]?1:0}),t.sort(e)}var b=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=t;r&&r.length&&(i=m(t,r)),A()(e)?n=e:h()(e)?n=function(t){return"_".concat(e.map((function(e){return t[e]})).join("-"))}:v()(e)&&(n=function(t){return"_".concat(t[e])});var o=y()(i,n);return o},x=function(t,e,n,r){var i=[],o=r?b(t,r):{_data:t};return l()(o,(function(t){var r=Object(u.a)(t.map((function(t){return t[e]})));f()(0!==r,"Invalid data: total sum of field ".concat(e," is 0!")),l()(t,(function(t){var o=a()({},t);o[n]=0===r?0:t[e]/r,i.push(o)}))})),i},w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=1e4,r=1e8;return t>=r?"".concat((t/r).toFixed(e).replace(/\.?0*$/,""),"\u4ebf"):t>=n?"".concat((t/n).toFixed(e).replace(/\.?0*$/,""),"\u4e07"):t.toFixed(e).replace(/\.?0*$/,"")},O=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return"number"===typeof t?t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e):t},S=n(169),_=n(89),k=n(90)},,,,,,,,function(t,e,n){t.exports=n(497)},function(t,e,n){"use strict";n.r(e),n.d(e,"Util",(function(){return H}));var r=n(5),i=n.n(r),o=n(0),a=n(440);n.d(e,"Annotation",(function(){return a}));var s=n(270);n.d(e,"G2",(function(){return s}));var c=n(417);n.d(e,"GComponents",(function(){return c}));var l=n(488),u=n(449);n.d(e,"Chart",(function(){return u.a}));var g=n(450);n.d(e,"View",(function(){return g.a}));var f=n(441);n.d(e,"Tooltip",(function(){return f.a}));var d=n(451);n.d(e,"Legend",(function(){return d.a}));var h=n(197);n.d(e,"Coordinate",(function(){return h.a}));var p=n(452);n.d(e,"Axis",(function(){return p.a}));var A=n(372);n.d(e,"Facet",(function(){return A.a}));var C=n(373);n.d(e,"Slider",(function(){return C.a}));var v=n(134);n.d(e,"Area",(function(){return v.a}));var I=n(198);n.d(e,"Edge",(function(){return I.a}));var y=n(199);n.d(e,"Heatmap",(function(){return y.a}));var m=n(200);n.d(e,"Interval",(function(){return m.a}));var b=n(135);n.d(e,"Line",(function(){return b.a}));var x=n(136);n.d(e,"Point",(function(){return x.a}));var w=n(201);n.d(e,"Polygon",(function(){return w.a}));var O=n(375);n.d(e,"Schema",(function(){return O.a}));var S=n(50);n.d(e,"BaseGeom",(function(){return S.a}));var _=n(258);n.d(e,"Label",(function(){return _.a}));var k=n(376);n.d(e,"Path",(function(){return k.a}));var j=n(202);n.d(e,"LineAdvance",(function(){return j.a}));var E=n(377);n.d(e,"Geom",(function(){return E.a}));var P=n(378);n.d(e,"Coord",(function(){return P.a}));var M=n(379);n.d(e,"Guide",(function(){return M.a}));var T=n(380);n.d(e,"Effects",(function(){return T.a}));var R=n(381);n.d(e,"Interaction",(function(){return R.a}));var D=n(10);n.d(e,"createPlot",(function(){return D.a}));var N=n(170);n.d(e,"createTooltipConnector",(function(){return N.a}));var L=n(54);n.d(e,"useView",(function(){return L.a}));var F=n(127);n.d(e,"useRootChart",(function(){return F.a})),n.d(e,"useChartInstance",(function(){return F.a}));var B=n(382);n.d(e,"useTheme",(function(){return B.a}));var z=n(61);n.d(e,"withView",(function(){return z.b}));var V=n(84);n.d(e,"withChartInstance",(function(){return V.b}));var G=n(7);for(var W in G)["default","Util","Annotation","G2","GComponents","Chart","View","Tooltip","Legend","Coordinate","Axis","Facet","Slider","Area","Edge","Heatmap","Interval","Line","Point","Polygon","Schema","BaseGeom","Label","Path","LineAdvance","Geom","Coord","Guide","Effects","Interaction","createPlot","createTooltipConnector","useView","useRootChart","useChartInstance","useTheme","withView","withChartInstance"].indexOf(W)<0&&function(t){n.d(e,t,(function(){return G[t]}))}(W);var Y=n(414);n.d(e,"ProgressChart",(function(){return Y.w})),n.d(e,"RingProgressChart",(function(){return Y.A})),n.d(e,"TinyColumnChart",(function(){return Y.J})),n.d(e,"TinyAreaChart",(function(){return Y.I})),n.d(e,"TinyLineChart",(function(){return Y.K})),n.d(e,"LineChart",(function(){return Y.p})),n.d(e,"TreemapChart",(function(){return Y.L})),n.d(e,"StepLineChart",(function(){return Y.H})),n.d(e,"BarChart",(function(){return Y.b})),n.d(e,"StackedBarChart",(function(){return Y.E})),n.d(e,"GroupedBarChart",(function(){return Y.k})),n.d(e,"PercentStackedBarChart",(function(){return Y.s})),n.d(e,"RangeBarChart",(function(){return Y.y})),n.d(e,"AreaChart",(function(){return Y.a})),n.d(e,"StackedAreaChart",(function(){return Y.D})),n.d(e,"PercentStackedAreaChart",(function(){return Y.r})),n.d(e,"ColumnChart",(function(){return Y.f})),n.d(e,"GroupedColumnChart",(function(){return Y.l})),n.d(e,"StackedColumnChart",(function(){return Y.F})),n.d(e,"RangeColumnChart",(function(){return Y.z})),n.d(e,"PercentStackedColumnChart",(function(){return Y.t})),n.d(e,"PieChart",(function(){return Y.u})),n.d(e,"DensityHeatmapChart",(function(){return Y.g})),n.d(e,"HeatmapChart",(function(){return Y.n})),n.d(e,"WordCloudChart",(function(){return Y.N})),n.d(e,"RoseChart",(function(){return Y.B})),n.d(e,"FunnelChart",(function(){return Y.i})),n.d(e,"StackedRoseChart",(function(){return Y.G})),n.d(e,"GroupedRoseChart",(function(){return Y.m})),n.d(e,"RadarChart",(function(){return Y.x})),n.d(e,"LiquidChart",(function(){return Y.q})),n.d(e,"HistogramChart",(function(){return Y.o})),n.d(e,"DonutChart",(function(){return Y.h})),n.d(e,"WaterfallChart",(function(){return Y.M})),n.d(e,"ScatterChart",(function(){return Y.C})),n.d(e,"BubbleChart",(function(){return Y.c})),n.d(e,"BulletChart",(function(){return Y.d})),n.d(e,"CalendarChart",(function(){return Y.e})),n.d(e,"GaugeChart",(function(){return Y.j})),n.d(e,"PlotAdapter",(function(){return Y.v}));var H=i()(i()(i()({},o),l),s.Util)},function(t,e,n){"use strict";function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i;if(!Object.keys){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=n(317),c=Object.prototype.propertyIsEnumerable,l=!c.call({toString:null},"toString"),u=c.call((function(){}),"prototype"),g=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var t in window)try{if(!d["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"===r(window[t]))try{f(window[t])}catch(e){return!0}}catch(e){return!0}return!1}();i=function(t){var e=null!==t&&"object"===r(t),n="[object Function]"===a.call(t),i=s(t),c=e&&"[object String]"===a.call(t),d=[];if(!e&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var p=u&&n;if(c&&t.length>0&&!o.call(t,0))for(var A=0;A0)for(var C=0;C-1?i(n):n}},function(t,e,n){"use strict";var r=n(315),i=n(323);t.exports=function(){var t=i();return r(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,r)}t.exports=n},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,l=[],u=!1,g=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):g=-1,l.length&&d())}function d(){if(!u){var t=s(f);u=!0;for(var e=l.length;e;){for(c=l,l=[];++g1)for(var n=1;n=l-u&&g<=l+u},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function i(t,e,n,r){return t/(n*n)+e/(r*r)}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,o){var a=this.attr(),s=o/2,c=a.x,l=a.y,u=a.rx,g=a.ry,f=(t-c)*(t-c),d=(e-l)*(e-l);return r&&n?i(f,d,u+s,g+s)<=1:r?i(f,d,u,g)<=1:!!n&&i(f,d,u-s,g-s)>=1&&i(f,d,u+s,g+s)<=1},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,s=i>o?1:i/o,c=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,c),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(n(82).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(82),o=n(66);function a(t){return t instanceof HTMLElement&&o.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(o.isString(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):a(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,s=e.height,c=e.sx,l=e.sy,u=e.swidth,g=e.sheight,f=e.img;(f instanceof Image||a(f))&&(o.isNil(c)||o.isNil(l)||o.isNil(u)||o.isNil(g)?t.drawImage(f,n,r,i,s):t.drawImage(f,c,l,u,g,n,r,i,s))},e}(i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),o=n(82),a=n(178),s=n(177),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&s.addStartArrow(this,t,r,i,e,n),a&&s.addEndArrow(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr(),s=o.x1,c=o.y1,l=o.x2,u=o.y2;return a.default(s,c,l,u,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,c=e.endArrow,l={dx:0,dy:0},u={dx:0,dy:0};a&&a.d&&(l=s.getShortenOffset(n,r,i,o,e.startArrow.d)),c&&c.d&&(u=s.getShortenOffset(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,r+l.dy),t.lineTo(i-u.dx,o-u.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,o=t.y2;return i.Line.length(e,n,r,o)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,o=e.x2,a=e.y2;return i.Line.pointAt(n,r,o,a,t)},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(72),a=n(82),s=n(66),c=n(151),l={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return i.isNil(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,a=r.y,c=r.symbol||"circle",l=this._getR(r);if(s.isFunction(c))n=(t=c)(i,a,l),n=o.path2Absolute(n);else{if(!(t=e.Symbols[c]))return console.warn(c+" marker is not supported."),null;n=t(i,a,l)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");c.drawPath(this,t,{path:e},n)},e.Symbols=l,e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),o=n(0),a=n(82),s=n(72),c=n(151),l=n(334),u=n(335),g=n(515),f=n(177);function d(t,e,n){for(var r=!1,i=0;i=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var s=a[n];if(o.isNil(s)||o.isNil(n))return null;var c=s.length,l=a[n+1];return i.Cubic.pointAt(s[c-2],s[c-1],l[1],l[2],l[3],l[4],l[5],l[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",g.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,a=0,s=0,c=[],l=this.get("curve");l&&(o.each(l,(function(t,e){n=l[e+1],r=t.length,n&&(a+=i.Cubic.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",a),0!==a?(o.each(l,(function(o,u){n=l[u+1],r=o.length,n&&((t=[])[0]=s/a,e=i.Cubic.length(o[r-2],o[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),s+=e||0,t[1]=s/a,c.push(t))})),this.set("tCache",c)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(a.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(24),o=n(26),a=n(26),s=n(15),c=n(160),l=n(66),u=n(178),g=n(336),f=s.ext.transform;e.default=r.__assign({hasArc:function(t){for(var e=!1,n=t.length,r=0;r0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var s=!1,d=e/2,h=0;hw?x:w,E=f(null,[["t",-m,-b],["r",-_],["s",1/(x>w?1:x/w),1/(x>w?w/x:1)]]);c.transformMat3(k,k,E),s=g.default(0,0,j,O,S,e,k[0],k[1])}if(s)break}}return s}},i.PathUtil)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(82),o=n(337),a=n(335),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var s=this.attr().points,c=!1;return n&&(c=o.default(s,i,t,e,!0)),!c&&r&&(c=a.default(s,t,e)),c},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),i.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,o=0,s=[];a.each(t,(function(a,c){t[c+1]&&((n=[])[0]=o/e,r=i.Line.length(a[0],a[1],t[c+1][0],t[c+1][1]),o+=r,n[1]=o/e,s.push(n))})),this.set("tCache",s)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(82),o=n(332),a=n(66),s=n(519),c=n(520),l=n(334),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),u=o.x,g=o.y,f=o.width,d=o.height,h=o.radius;if(h){var p=!1;return n&&(p=c.default(u,g,f,d,h,i,t,e)),!p&&r&&(p=l.default(this,t,e)),p}var A=i/2;return r&&n?a.inBox(u-A,g-A,f+A,d+A,t,e):r?a.inBox(u,g,f,d,t,e):n?s.default(u,g,f,d,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,r,i,a);else{var c=o.parseRadius(s),l=c[0],u=c[1],g=c[2],f=c[3];t.moveTo(n+l,r),t.lineTo(n+i-u,r),0!==u&&t.arc(n+i-u,r+u,u,-Math.PI/2,0),t.lineTo(n+i,r+a-g),0!==g&&t.arc(n+i-g,r+a-g,g,0,Math.PI/2),t.lineTo(n+f,r+a),0!==f&&t.arc(n+f,r+a-f,f,Math.PI/2,Math.PI),t.lineTo(n,r+l),0!==l&&t.arc(n+l,r+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(i.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(66);e.default=function(t,e,n,i,o,a,s){var c=o/2;return r.inBox(t-c,e-c,n,o,a,s)||r.inBox(t+n-c,e-c,o,i,a,s)||r.inBox(t+c,e+i-c,n,o,a,s)||r.inBox(t-c,e+c,o,i,a,s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(178),i=n(336);e.default=function(t,e,n,o,a,s,c,l){return r.default(t+a,e,t+n-a,e,s,c,l)||r.default(t+n,e+a,t+n,e+o-a,s,c,l)||r.default(t+n-a,e+o,t+a,e+o,s,c,l)||r.default(t,e+o-a,t,e+a,s,c,l)||i.default(t+n-a,e+a,a,1.5*Math.PI,2*Math.PI,s,c,l)||i.default(t+n-a,e+o-a,a,0,.5*Math.PI,s,c,l)||i.default(t+a,e+o-a,a,.5*Math.PI,Math.PI,s,c,l)||i.default(t+a,e+a,a,Math.PI,1.5*Math.PI,s,c,l)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(82),o=n(66),a=n(24),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=a.assembleFont(t)},e.prototype._setText=function(t){var e=null;o.isString(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,s=i.textBaseline,c=i.x,l=i.y,u=1*i.fontSize,g=this._getSpaceingY(),f=a.getTextHeight(i.text,i.fontSize,i.lineHeight);o.each(e,(function(e,i){r=l+i*(g+u)-f+u,"middle"===s&&(r+=f-u-(f-u)/2),"top"===s&&(r+=f-u),n?t.fillText(e,c,r):t.strokeText(e,c,r)}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;e?t.fillText(a,r,i):t.strokeText(a,r,i)}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&(o.isNil(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(o.isNil(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(24),o=n(523),a=n(150),s=n(230),c=n(66),l=n(151),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return s.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||c.getPixelRatio();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?o.getShape(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();return e.length&&e[0]===this?t=n:(t=l.getMergedRegion(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=l.mergeView(t,n))),t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(c.clearAnimationFrame(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),l.applyAttrsToContext(t,this),l.drawChildren(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),l.applyAttrsToContext(t,this),l.checkRefresh(this,n,r),l.drawChildren(t,n,r),t.restore()):e.length&&l.clearChanged(e),c.each(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=c.requestAnimationFrame((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e}(i.AbstractCanvas);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=void 0;var r=n(24);function i(t,e,n){var i=t.getTotalMatrix();if(i){var o=function(t,e){if(e){var n=r.invert(e);return r.multiplyVec2(n,t)}return t}([e,n,1],i);return[o[0],o[1]]}return[e,n]}function o(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!r.isAllowCapture(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var o=i(t,e,n),a=o[0],s=o[1];if(t.isClipped(a,s))return!1}var c=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=c.minX&&e<=c.maxX&&n>=c.minY&&n<=c.maxY}e.getShape=function t(e,n,r){if(!o(e,n,r))return null;for(var a=null,s=e.getChildren(),c=s.length-1;c>=0;c--){var l=s[c];if(l.isGroup())a=t(l,n,r);else if(o(l,n,r)){var u=l,g=i(l,n,r),f=g[0],d=g[1];u.isInShape(f,d)&&(a=l)}if(a)break}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(67),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");i.each(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(n(75).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(67),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return r.__extends(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(i.each(e||n,(function(t,e){o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)})),"function"===typeof n.html){var a=n.html.call(this,n);if(a instanceof Element||a instanceof HTMLDocument){for(var s=r.childNodes,c=s.length-1;c>=0;c--)r.removeChild(s[c]);r.appendChild(a)}else r.innerHTML=a}else r.innerHTML=n.html},e}(n(75).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(67),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");i.each(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(n(75).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(67),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),a=this.get("el");i.each(e||r,(function(t,e){"img"===e?n._setImage(r.img):o.SVG_ATTR_MAP[e]&&a.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(i.isString(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&i.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(n(75).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),o=n(0),a=n(67),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");o.each(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var s=o.isObject(e)?t.addArrow(n,a.SVG_ATTR_MAP[i]):t.getDefaultArrow(n,a.SVG_ATTR_MAP[i]);r.setAttribute(a.SVG_ATTR_MAP[i],"url(#"+s+")")}else r.removeAttribute(a.SVG_ATTR_MAP[i]);else a.SVG_ATTR_MAP[i]&&r.setAttribute(a.SVG_ATTR_MAP[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,o=t.y2;return i.Line.length(e,n,r,o)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,o=e.x2,a=e.y2;return i.Line.pointAt(n,r,o,a,t)},e}(n(75).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(75),a=n(530),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return i.isArray(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,o=e.r||e.radius,s=e.symbol||"circle";return(t=i.isFunction(s)?s:a.default.get(s))?t(n,r,o):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=a.default,e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};e.default={get:function(t){return r[t]},register:function(t,e){r[t]=e},remove:function(t){delete r[t]},getAll:function(){return r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(67),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),a=this.get("el");i.each(e||r,(function(e,s){if("path"===s&&i.isArray(e))a.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s)if(e){var c=i.isObject(e)?t.addArrow(r,o.SVG_ATTR_MAP[s]):t.getDefaultArrow(r,o.SVG_ATTR_MAP[s]);a.setAttribute(o.SVG_ATTR_MAP[s],"url(#"+c+")")}else a.removeAttribute(o.SVG_ATTR_MAP[s]);else o.SVG_ATTR_MAP[s]&&a.setAttribute(o.SVG_ATTR_MAP[s],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(n(75).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(67),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");i.each(e||n,(function(t,e){"points"===e&&i.isArray(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(n(75).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),o=n(26),a=n(0),s=n(67),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");a.each(e||n,(function(t,e){"points"===e&&a.isArray(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):s.SVG_ATTR_MAP[e]&&r.setAttribute(s.SVG_ATTR_MAP[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return a.isNil(e)?(this.set("totalLength",i.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),a.each(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),o.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,s=[];a.each(t,(function(a,c){t[c+1]&&((n=[])[0]=i/e,r=o.Line.length(a[0],a[1],t[c+1][0],t[c+1][1]),i+=r,n[1]=i/e,s.push(n))})),this.set("tCache",s)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(n(75).default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(75),a=n(67),s=n(535),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),o=this.get("el"),s=!1,c=["x","y","width","height","radius"];i.each(e||r,(function(t,e){-1===c.indexOf(e)||s?-1===c.indexOf(e)&&a.SVG_ATTR_MAP[e]&&o.setAttribute(a.SVG_ATTR_MAP[e],t):(o.setAttribute("d",n._assembleRect(r)),s=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,o=t.height,a=t.radius;if(!a)return"M "+e+","+n+" l "+r+",0 l 0,"+o+" l"+-r+" 0 z";var c=s.parseRadius(a);return i.isArray(a)?1===a.length?c.r1=c.r2=c.r3=c.r4=a[0]:2===a.length?(c.r1=c.r3=a[0],c.r2=c.r4=a[1]):3===a.length?(c.r1=a[0],c.r2=c.r4=a[1],c.r3=a[2]):(c.r1=a[0],c.r2=a[1],c.r3=a[2],c.r4=a[3]):c.r1=c.r2=c.r3=c.r4=a,[["M "+(e+c.r1)+","+n],["l "+(r-c.r1-c.r2)+",0"],["a "+c.r2+","+c.r2+",0,0,1,"+c.r2+","+c.r2],["l 0,"+(o-c.r2-c.r3)],["a "+c.r3+","+c.r3+",0,0,1,"+-c.r3+","+c.r3],["l "+(c.r3+c.r4-r)+",0"],["a "+c.r4+","+c.r4+",0,0,1,"+-c.r4+","+-c.r4],["l 0,"+(c.r4+c.r1-o)],["a "+c.r1+","+c.r1+",0,0,1,"+c.r1+","+-c.r1],["z"]].join(" ")},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=e.parseRadius=void 0;var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s,]+/gi;e.parseRadius=function(t){var e=0,n=0,i=0,o=0;return r.isArray(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}},e.parsePath=function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if((e=e.match(o))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(163),a=n(152),s=n(67),c=n(75),l={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},u={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},g={left:"left",start:"left",center:"middle",right:"end",end:"end"},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),o=this.get("el");this._setFont(),i.each(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?a.setTransform(n):s.SVG_ATTR_MAP[e]&&o.setAttribute(s.SVG_ATTR_MAP[e],t)})),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=o.detect();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",u[n]||"alphabetic"):t.setAttribute("alignment-baseline",l[n]||"baseline"),t.setAttribute("text-anchor",g[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,o=n.textBaseline,a=void 0===o?"bottom":o;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),c=s.length-1,l="";i.each(s,(function(t,e){0===e?"alphabetic"===a?l+=''+t+"":"top"===a?l+=''+t+"":"middle"===a?l+=''+t+"":"bottom"===a?l+=''+t+"":"hanging"===a&&(l+=''+t+""):l+=''+t+""})),e.innerHTML=l}else e.innerHTML=t;else e.innerHTML=""},e}(c.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(24),o=n(67),a=n(231),s=n(152),c=n(83),l=n(179),u=n(232),g=n(538),f=function(t){function e(e){return t.call(this,r.__assign(r.__assign({},e),{autoDraw:!0,renderer:"svg"}))||this}return r.__extends(e,t),e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return u.default},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!o.SHAPE_TO_TAGS[r.tagName]){for(var i=r.parentNode;i&&!o.SHAPE_TO_TAGS[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=c.createSVGElement("svg"),e=new g.default(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&c.sortDom(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?s.setTransform(this):"clip"===t?s.setClip(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();s.setClip(this,t),e.length&&a.drawChildren(t,e)},e}(i.AbstractCanvas);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(539),o=n(540),a=n(541),s=n(542),c=n(543),l=n(83),u=function(){function t(t){var e=l.createSVGElement("defs"),n=r.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i'})),n}var l=function(){function t(t){this.cfg={};var e=null,n=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,i,a=o.exec(t),s=r.mod(r.toRadian(parseFloat(a[1])),2*Math.PI),l=a[2];s>=0&&s<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=s&&s';e.innerHTML=n},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(83),o=function(){function t(t,e){this.cfg={};var n=i.createSVGElement("marker"),o=r.uniqueId("marker_");n.setAttribute("id",o);var a=i.createSVGElement("path");a.setAttribute("stroke",t.stroke||"none"),a.setAttribute("fill",t.fill||"none"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=o;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,a):(this.cfg=s,this._setMarker(t.lineWidth,a)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,o=this.cfg.d;r.isArray(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),o&&n.setAttribute("refX",""+o/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(83),o=function(){function t(t){this.type="clip",this.cfg={};var e=i.createSVGElement("clipPath");this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(83),o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){this.cfg={};var e=i.createSVGElement("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=i.createSVGElement("image");e.appendChild(n);var a=r.uniqueId("pattern_");e.id=a,this.el=e,this.id=a,this.cfg=t;var s=o.exec(t)[2];n.setAttribute("href",s);var c=new Image;function l(){e.setAttribute("width",""+c.width),e.setAttribute("height",""+c.height)}return s.match(/^data:/i)||(c.crossOrigin="Anonymous"),c.src=s,c.complete?l():(c.onload=l,c.src=c.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(27),a=n(338),s=n(265),c=function(t){function e(e){var n=this,c=e.container,l=e.width,u=e.height,g=e.autoFit,f=void 0!==g&&g,d=e.padding,h=e.appendPadding,p=e.renderer,A=void 0===p?"canvas":p,C=e.pixelRatio,v=e.localRefresh,I=void 0===v||v,y=e.visible,m=void 0===y||y,b=e.supportCSSTransform,x=void 0!==b&&b,w=e.defaultInteractions,O=void 0===w?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:w,S=e.options,_=e.limitInPlot,k=e.theme,j=e.syncViewPadding,E=i.isString(c)?document.getElementById(c):c,P=s.createDom('
    ');E.appendChild(P);var M=s.getChartSize(E,f,l,u),T=new(a.getEngine(A).Canvas)(r.__assign({container:P,pixelRatio:C,localRefresh:I,supportCSSTransform:x},M));return(n=t.call(this,{parent:null,canvas:T,backgroundGroup:T.addGroup({zIndex:o.GROUP_Z_INDEX.BG}),middleGroup:T.addGroup({zIndex:o.GROUP_Z_INDEX.MID}),foregroundGroup:T.addGroup({zIndex:o.GROUP_Z_INDEX.FORE}),padding:d,appendPadding:h,visible:m,options:S,limitInPlot:_,theme:k,syncViewPadding:j})||this).onResize=i.debounce((function(){n.forceFit()}),300),n.ele=E,n.canvas=T,n.width=M.width,n.height=M.height,n.autoFit=f,n.localRefresh=I,n.renderer=A,n.wrapperElement=P,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(O),n}return r.__extends(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;i.each(t,(function(t){e.interaction(t)}))},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(o.VIEW_LIFE_CIRCLE.AFTER_CHANGE_SIZE)),this},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),s.removeDom(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=s.getChartSize(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){s.modifyCSS(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(r.__importDefault(n(339)).default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(186),a=r.__importDefault(n(547)),s=r.__importDefault(n(340));function c(t,e){var n=t.split(":"),r=n[0],i=e.getAction(r)||o.createAction(r,e);if(!i)throw new Error("There is no action named "+r);return{action:i,methodName:n[1]}}function l(t){var e=t.action,n=t.methodName;if(!e[n])throw new Error("Action("+e.name+") doesn't have a method called "+n);e[n]()}var u="start",g="showEnable",f="end",d="rollback",h="processing",p=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return r.__extends(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;i.each(this.steps,(function(e,n){i.each(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;i.each(this.steps,(function(e,n){i.each(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new a.default(t);this.context=e;var n=this.steps;i.each(n,(function(t){i.each(t,(function(t){if(i.isFunction(t.action))t.actionObject={action:o.createCallbackAction(t.action,e),methodName:"execute"};else if(i.isString(t.action))t.actionObject=c(t.action,e);else if(i.isArray(t.action)){var n=t.action;t.actionObject=[],i.each(n,(function(n){t.actionObject.push(c(n,e))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===g)return!0;if(t===h)return e===u;if(t===u)return e!==h;if(t===f)return e===h||e===u;if(t===d){if(n[f])return e===f;if(e===u)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==g&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,r=this.context,o=this.callbackCaches,a=e.actionObject;if(e.action&&a){var s=this.getKey(t,e);if(!o[s]){var c=function(o){r.event=o,n.isAllowExecute(t,e)?(i.isArray(a)?i.each(a,(function(t){r.event=o,l(t)})):(r.event=o,l(a)),n.afterExecute(t,e),e.callback&&(r.event=o,e.callback(r))):r.event=null};e.debounce?o[s]=i.debounce(c,e.debounce.wait,e.debounce.immediate):e.throttle?o[s]=i.throttle(c,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):o[s]=c}return o[s]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(s.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(r.__importDefault(n(56)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(43),o=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return r.get(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=i.getComponents(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&i.isInBox(r,n):i.isInBox(r,n)}))},t.prototype.destroy=function(){this.view=null,this.event=null,r.each(this.actions.slice(),(function(t){t.destroy()})),this.actions=null,this.cacheMap=null},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var r=n(1),i=n(0),o=n(113),a=n(140);e.createTheme=function(t){var e=t.styleSheet,n=void 0===e?{}:e,s=r.__rest(t,["styleSheet"]),c=a.createLightStyleSheet(n);return i.deepMix({},o.createThemeByStyleSheet(c),s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(81),a=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return i.some(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,i=n.type,a=n.cfg,s="theta"===i,c=r.__assign({start:t,end:e},a),l=o.getCoordinate(s?"polar":i);return this.coordinate=new l(c),this.coordinate.type=i,s&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return r.__assign({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;i.each(n,(function(n){var r,o=n[0],a=n.slice(1);(i.isNil(t)||t.includes(o))&&(r=e.coordinate)[o].apply(r,a)}))},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScalePool=void 0;var r=n(0),i=n(153),o=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,o){var a=n,s=this.getScaleMeta(o);if(0===e.length&&s){var c=s.scale,l={type:c.type};c.isCategory&&(l.values=c.values),a=r.deepMix(l,s.scaleDef,n)}var u=i.createScaleByField(t,e,a);return this.cacheScale(u,n,o),u},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(o,a){var s=Number.MAX_SAFE_INTEGER,c=Number.MIN_SAFE_INTEGER,l=[];r.each(o,(function(t){var e=n.getScale(t);c=r.isNumber(e.max)?Math.max(c,e.max):c,s=r.isNumber(e.min)?Math.min(s,e.min):s,r.each(e.values,(function(t){l.includes(t)||l.push(t)}))})),r.each(o,(function(o){var a=n.getScale(o);if(a.isContinuous)a.change({min:s,max:c,values:l});else if(a.isCategory){var u=a.range,g=n.getScaleMeta(o);l&&!r.get(g,["scaleDef","range"])&&(u=i.getDefaultCategoryScaleRange(r.deepMix({},a,{values:l}),t,e)),a.change({values:l,range:u})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?(i.syncScale(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var o=this.getSyncKey(r);if(r.syncKey=o,this.removeFromSyncScales(n),o){var a=this.syncScales.get(o);a||(a=[],this.syncScales.set(o,a)),a.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=r.last(t.split("-")),i=this.syncScales.get(n);i&&i.length&&(e=this.getScaleMeta(i[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,i=e.field,o=r.get(n,["sync"]);return!0===o?i:!1===o?void 0:o},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}();e.ScalePool=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePadding=void 0;var r=n(1),i=n(0),o=n(27),a=n(88),s=n(239),c=n(343);e.calculatePadding=function(t){var e=t.padding;if(!s.isAutoPadding(e))return new(c.PaddingCal.bind.apply(c.PaddingCal,r.__spreadArrays([void 0],s.parsePadding(e))));var n=t.viewBBox,l=new c.PaddingCal,u=[],g=[],f=[];return i.each(t.getComponents(),(function(t){var e=t.type;e===o.COMPONENT_TYPE.AXIS?u.push(t):[o.COMPONENT_TYPE.LEGEND,o.COMPONENT_TYPE.SLIDER,o.COMPONENT_TYPE.SCROLLBAR].includes(e)?g.push(t):e!==o.COMPONENT_TYPE.GRID&&e!==o.COMPONENT_TYPE.TOOLTIP&&f.push(t)})),i.each(u,(function(t){var e=t.component.getLayoutBBox(),r=new a.BBox(e.x,e.y,e.width,e.height).exceed(n);l.max(r)})),i.each(g,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=e.get("padding"),o=new a.BBox(r.x,r.y,r.width,r.height).expand(i);l.inc(o,n)})),i.each(f,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=new a.BBox(r.x,r.y,r.width,r.height);l.inc(i,n)})),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSyncViewPadding=void 0,e.defaultSyncViewPadding=function(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.group=void 0;var r=n(0);e.group=function(t,e,n){if(void 0===n&&(n={}),!e)return[t];var i=r.groupToMap(t,e),o=[];if(1===e.length&&n[e[0]])for(var a=0,s=n[e[0]];a=e.getCount()&&(t.destroyed||e.add(t))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMappingValue=void 0;var r=n(1);e.getMappingValue=function(t,e,n){if(!t)return n;var i;if(t.callback&&t.callback.length>1){var o=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,r.__spreadArrays([e],o)).join("")}else i=t.mapping(e).join("");return i||n}},function(t,e,n){var r=n(6);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t}},function(t,e,n){"use strict";var r=n(208),i=n(171),o=n(164),a=n(266),s=n(209),c=n(267),l=n(268),u=n(211),g=n(34);Object(g.registerAnimation)("fade-in",r.fadeIn),Object(g.registerAnimation)("fade-out",r.fadeOut),Object(g.registerAnimation)("grow-in-x",i.growInX),Object(g.registerAnimation)("grow-in-xy",i.growInXY),Object(g.registerAnimation)("grow-in-y",i.growInY),Object(g.registerAnimation)("scale-in-x",s.scaleInX),Object(g.registerAnimation)("scale-in-y",s.scaleInY),Object(g.registerAnimation)("wave-in",l.waveIn),Object(g.registerAnimation)("zoom-in",u.zoomIn),Object(g.registerAnimation)("zoom-out",u.zoomOut),Object(g.registerAnimation)("position-update",a.positionUpdate),Object(g.registerAnimation)("sector-path-update",c.sectorPathUpdate),Object(g.registerAnimation)("path-in",o.pathIn)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doScaleAnimate=e.transformShape=void 0;var r=n(15);function i(t,e,n){var i,o=e[0],a=e[1];return t.applyToMatrix([o,a,1]),"x"===n?(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]])),i=r.ext.transform(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])):"y"===n?(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]])),i=r.ext.transform(t.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])):"xy"===n&&(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-o,-a],["s",.01,.01],["t",o,a]])),i=r.ext.transform(t.getMatrix(),[["t",-o,-a],["s",100,100],["t",o,a]])),i}e.transformShape=i,e.doScaleAnimate=function(t,e,n,r,o){var a,s,c=n.start,l=n.end,u=n.getWidth(),g=n.getHeight();"y"===o?(a=c.x+u/2,s=r.yc.x?r.x:c.x,s=c.y+g/2):"xy"===o&&(n.isPolar?(a=n.getCenter().x,s=n.getCenter().y):(a=(c.x+l.x)/2,s=(c.y+l.y)/2));var f=i(t,[a,s],o);t.animate({matrix:f},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(39),o=n(242),a=n(53),s=n(156),c=i.registerShapeFactory("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return s.getRectPoints(t)}});i.registerShape("interval","rect",{draw:function(t,e){var n,i=a.getStyle(t,!1,!0),c=e,l=null===t||void 0===t?void 0:t.background;if(l){c=e.addGroup();var u=a.getBackgroundRectStyle(t),g=s.getBackgroundRectPath(t,this.parsePoints(t.points),this.coordinate);c.addShape("path",{attrs:r.__assign(r.__assign({},u),{path:g}),zIndex:-1,name:o.BACKGROUND_SHAPE})}n=i.radius&&this.coordinate.isRect?s.getRectWithCornerRadius(this.parsePoints(t.points),this.coordinate,i.radius):this.parsePath(s.getIntervalRectPath(t.points,i.lineCap,this.coordinate));var f=c.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:n}),name:"interval"});return l?c:f},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}}),e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(155),o=n(39),a=n(247),s=n(249),c=o.registerShapeFactory("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return a.splitPoints(t)}});r.each(s.SHAPES,(function(t){o.registerShape("point","hollow-"+t,{draw:function(e,n){return s.drawPoints(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,stroke:n,fill:null}}}})})),e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(39),i=n(105);r.registerShape("area","line",{draw:function(t,e){var n=i.getShapeAttrs(t,!0,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(39),i=n(105);r.registerShape("area","smooth",{draw:function(t,e){var n=this.coordinate,r=i.getShapeAttrs(t,!1,!0,this,i.getConstraint(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(39),i=n(105);r.registerShape("area","smooth-line",{draw:function(t,e){var n=this.coordinate,r=i.getShapeAttrs(t,!0,!0,this,i.getConstraint(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(59),o=n(39),a=n(53),s=n(352);o.registerShape("edge","arc",{draw:function(t,e){var n,o=a.getStyle(t,!0,!1,"lineWidth"),c=t.points,l=c.length>2?"weight":"normal";if(t.isInCircle){var u={x:0,y:1};return"normal"===l?n=function(t,e,n){var r=s.getQPath(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(c[0],c[1],u):(o.fill=o.stroke,n=function(t,e){var n=s.getQPath(t[1],e),r=s.getQPath(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(c,u)),n=this.parsePath(n),e.addShape("path",{attrs:r.__assign(r.__assign({},o),{path:n})})}if("normal"===l)return c=this.parsePoints(c),n=i.getArcPath((c[1].x+c[0].x)/2,c[0].y,Math.abs(c[1].x-c[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:r.__assign(r.__assign({},o),{path:n})});var g=s.getCPath(c[1],c[3]),f=s.getCPath(c[2],c[0]);return n=[["M",c[0].x,c[0].y],["L",c[1].x,c[1].y],g,["L",c[3].x,c[3].y],["L",c[2].x,c[2].y],f,["Z"]],n=this.parsePath(n),o.fill=o.stroke,e.addShape("path",{attrs:r.__assign(r.__assign({},o),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(39),o=n(53),a=n(352);i.registerShape("edge","smooth",{draw:function(t,e){var n=o.getStyle(t,!0,!1,"lineWidth"),i=t.points,s=this.parsePath(function(t,e){var n=a.getCPath(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(i[0],i[1]));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(39),a=n(53),s=1/3;o.registerShape("edge","vhv",{draw:function(t,e){var n=a.getStyle(t,!0,!1,"lineWidth"),o=t.points,c=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-s)+e.y*s}),n.push({x:e.x,y:t.y*(1-s)+e.y*s}),n.push(e);var r=[["M",t.x,t.y]];return i.each(n,(function(t){r.push(["L",t.x,t.y])})),r}(o[0],o[1]));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:c})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieOuterLabelLayout=void 0;var r=n(0),i=n(59),o=n(364);e.pieOuterLabelLayout=function(t,e,n,a){var s=r.filter(t,(function(t){return!r.isNil(t)})),c=e[0]&&e[0].get("coordinate");if(c){for(var l=c.getCenter(),u=c.getRadius(),g={},f=0,d=e;fn&&(t.sort((function(t,e){return e.percent-t.percent})),r.each(t,(function(t,e){e+1>n&&(g[t.id].set("visible",!1),t.invisible=!0)}))),o.antiCollision(t,p,x)})),r.each(v,(function(t,e){r.each(t,(function(t){var n=e===C,o=g[t.id].getChildByIndex(0);if(o){var a=u+A,s=t.y-l.y,f=Math.pow(a,2),d=Math.pow(s,2),h=f-d>0?f-d:0,p=Math.sqrt(h),v=Math.abs(Math.cos(t.angle)*a);t.x=n?l.x+Math.max(p,v):l.x-Math.max(p,v)}o&&(o.attr("y",t.y),o.attr("x",t.x)),function(t,e){var n=e.getCenter(),o=e.getRadius();if(t&&t.labelLine){var a=t.angle,s=t.offset,c=i.polarToCartesian(n.x,n.y,o,a),l=t.x+r.get(t,"offsetX",0)*(Math.cos(a)>0?1:-1),u=t.y+r.get(t,"offsetY",0)*(Math.sin(a)>0?1:-1),g={x:l-4*Math.cos(a),y:u-4*Math.sin(a)},f=t.labelLine.smooth,d=[],h=g.x-n.x,p=g.y-n.y,A=Math.atan(p/h);if(h<0&&(A+=Math.PI),!1===f){r.isObject(t.labelLine)||(t.labelLine={});var C=0;(a<0&&a>-Math.PI/2||a>1.5*Math.PI)&&g.y>c.y&&(C=1),a>=0&&ac.y&&(C=1),a>=Math.PI/2&&ag.y&&(C=1),(a<-Math.PI/2||a>=Math.PI&&a<1.5*Math.PI)&&c.y>g.y&&(C=1);var v=s/2>4?4:Math.max(s/2-1,0),I=i.polarToCartesian(n.x,n.y,o+v,a),y=i.polarToCartesian(n.x,n.y,o+s/2,A);d.push("M "+c.x+" "+c.y),d.push("L "+I.x+" "+I.y),d.push("A "+n.x+" "+n.y+" 0 0 "+C+" "+y.x+" "+y.y),d.push("L "+g.x+" "+g.y)}else{I=i.polarToCartesian(n.x,n.y,o+(s/2>4?4:Math.max(s/2-1,0)),a);var m=c.xMath.pow(Math.E,-16)&&d.push.apply(d,["C",g.x+4*m,g.y,2*I.x-c.x,2*I.y-c.y,c.x,c.y]),d.push("L "+c.x+" "+c.y)}t.labelLine.path=d.join(" ")}}(t,c)}))}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieSpiderLabelLayout=void 0;var r=n(0),i=n(59),o=n(364),a=n(122);e.pieSpiderLabelLayout=function(t,e,n,s){var c=e[0]&&e[0].get("coordinate");if(c){for(var l=c.getCenter(),u=c.getRadius(),g={},f=0,d=e;fl.x||t.x===l.x&&t.y>l.y,n=r.isNil(t.offsetX)?4:t.offsetX,o=i.polarToCartesian(l.x,l.y,u+4,t.angle),a=A+n;t.x=l.x+(e?1:-1)*(u+a),t.y=o.y}}));var C=c.start,v=c.end,I="right",y=r.groupBy(t,(function(t){return t.xm&&(m=Math.min(e,Math.abs(C.y-v.y)))}));var b={minX:C.x,maxX:v.x,minY:l.y-m/2,maxY:l.y+m/2};r.each(y,(function(t,e){var n=m/p;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),r.each(t,(function(t,e){e>n&&(g[t.id].set("visible",!1),t.invisible=!0)}))),o.antiCollision(t,p,b)}));var x=b.minY,w=b.maxY;r.each(y,(function(t,e){var n=e===I;r.each(t,(function(t){var e=r.get(g,t&&t.id);if(e)if(t.yw)e.set("visible",!1);else{var o=e.getChildByIndex(0),s=o.getCanvasBBox(),l=n?s.x:s.maxX,u=s.y+s.height/2;a.translate(o,t.x-l,t.y-u),t.labelLine&&function(t,e,n){var o,a=e.getCenter(),s=e.getRadius(),c={x:t.x-(n?4:-4),y:t.y},l=i.polarToCartesian(a.x,a.y,s+4,t.angle),u={x:c.x,y:c.y},g={x:l.x,y:l.y},f=i.polarToCartesian(a.x,a.y,s,t.angle);if(c.y!==l.y){var d=n?4:-4;u.y=c.y,t.angle<0&&t.angle>=-Math.PI/2&&(u.x=Math.max(l.x,c.x-d),c.y0&&t.anglel.y?g.y=u.y:(g.y=l.y,g.x=Math.max(g.x,u.x-d))),t.angle>Math.PI/2&&(u.x=Math.min(l.x,c.x-d),c.y>l.y?g.y=u.y:(g.y=l.y,g.x=Math.min(g.x,u.x-d))),t.angle<-Math.PI/2&&(u.x=Math.min(l.x,c.x-d),c.y4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function a(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function s(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[a(e[0],n,e[0]),a(e[1],n,e[0]),a(e[2],n,e[0]),a(e[3],n,e[0])]:e}function c(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(i([t.x,t.y],e))})),{min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}function l(t,e){return t.max>e.min&&t.mint.x+t.width+n||e.x+e.widtht.y+t.height+n||e.y+e.height=s.height:c.width>=s.width}(t,e,a)}))}e.intervalAdjustPosition=function(t,e,n){var a;if(0!==n.length){var s=null===(a=n[0])||void 0===a?void 0:a.get("element"),c=null===s||void 0===s?void 0:s.geometry;c&&"interval"===c.type&&o(c,e,n)&&n.forEach((function(t,n){var o=e[n];!function(t,e,n){var o=t.coordinate,a=r.BBox.fromObject(n.getBBox()),s=i.findLabelTextShape(e);o.isTransposed?s.attr({x:a.minX+a.width/2,textAlign:"center"}):s.attr({y:a.minY+a.height/2,textBaseline:"middle"})}(c,o,t)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalHideOverlap=void 0;var r=n(0),i=n(121);e.intervalHideOverlap=function(t,e,n){var o;if(0!==n.length){var a=null===(o=n[0])||void 0===o?void 0:o.get("element"),s=null===a||void 0===a?void 0:a.geometry;if(s&&"interval"===s.type){var c,l=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return r.each(t,(function(t,r){r%n===0?e.push(t):t.set("visible",!1)})),e}(e),u=s.getXYFields()[0],g=[],f=[],d=r.groupBy(l,(function(t){return t.get("data")[u]})),h=r.uniq(r.map(l,(function(t){return t.get("data")[u]})));l.forEach((function(t){t.set("visible",!0)}));var p=function(t){t&&(t.length&&f.push(t.pop()),f.push.apply(f,t))};for(r.size(h)>0&&(c=h.shift(),p(d[c])),r.size(h)>0&&(c=h.pop(),p(d[c])),r.each(h.reverse(),(function(t){p(d[t])}));f.length>0;){var A=f.shift();A.get("visible")&&(i.checkShapeOverlap(A,g)?A.set("visible",!1):g.push(A))}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pointAdjustPosition=void 0;var r=n(0),i=n(121);function o(t,e,n){return t.some((function(t){return n(t,e)}))}function a(t,e){return o(t,e,(function(t,e){var n,r,o,a=i.findLabelTextShape(t),s=i.findLabelTextShape(e);return n=a.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(o=2)&&(o=0),Math.max(0,Math.min(n.x+n.width+o,r.x+r.width+o)-Math.max(n.x-o,r.x-o))*Math.max(0,Math.min(n.y+n.height+o,r.y+r.height+o)-Math.max(n.y-o,r.y-o))>0}))}e.pointAdjustPosition=function(t,e,n,s,c){var l,u;if(0!==n.length){var g=null===(l=n[0])||void 0===l?void 0:l.get("element"),f=null===g||void 0===g?void 0:g.geometry;if(f&&"point"===f.type){var d=f.getXYFields(),h=d[0],p=d[1],A=r.groupBy(e,(function(t){return t.get("data")[h]})),C=[],v=c&&c.offset||(null===(u=t[0])||void 0===u?void 0:u.offset)||12;r.map(r.keys(A).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,i),r}(f,A[t]);e.length;){var n=e.shift(),r=i.findLabelTextShape(n);if(o(C,n,(function(t,e){return t.get("data")[h]===e.get("data")[h]&&t.get("data")[p]===e.get("data")[p]})))r.set("visible",!1);else{var s=!1;a(C,n)&&(r.attr("y",r.attr("y")+2*v),s=a(C,n)),s?r.set("visible",!1):C.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathAdjustPosition=void 0;var r=n(0),i=n(121);function o(t,e,n){return t.some((function(t){return n(t,e)}))}function a(t,e){return o(t,e,(function(t,e){var n,r,o,a=i.findLabelTextShape(t),s=i.findLabelTextShape(e);return n=a.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(o=2)&&(o=0),Math.max(0,Math.min(n.x+n.width+o,r.x+r.width+o)-Math.max(n.x-o,r.x-o))*Math.max(0,Math.min(n.y+n.height+o,r.y+r.height+o)-Math.max(n.y-o,r.y-o))>0}))}e.pathAdjustPosition=function(t,e,n,s,c){var l,u;if(0!==n.length){var g=null===(l=n[0])||void 0===l?void 0:l.get("element"),f=null===g||void 0===g?void 0:g.geometry;if(f&&!(["path","line","area"].indexOf(f.type)<0)){var d=f.getXYFields(),h=d[0],p=d[1],A=r.groupBy(e,(function(t){return t.get("data")[h]})),C=[],v=c&&c.offset||(null===(u=t[0])||void 0===u?void 0:u.offset)||12;r.map(r.keys(A).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,i),r}(f,A[t]);e.length;){var n=e.shift(),r=i.findLabelTextShape(n);if(o(C,n,(function(t,e){return t.get("data")[h]===e.get("data")[h]&&t.get("data")[p]===e.get("data")[p]})))r.set("visible",!1);else{var s=!1;a(C,n)&&(r.attr("y",r.attr("y")+2*v),s=a(C,n)),s?r.set("visible",!1):C.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInPlot=void 0;var r=n(0),i=n(65),o=n(581),a=n(122);e.limitInPlot=function(t,e,n,s,c){if(!(e.length<=0)){var l=(null===c||void 0===c?void 0:c.direction)||["top","right","bottom","left"],u=(null===c||void 0===c?void 0:c.action)||"translate",g=(null===c||void 0===c?void 0:c.margin)||0,f=e[0].get("coordinate");if(f){var d=i.getCoordinateBBox(f,g),h=d.minX,p=d.minY,A=d.maxX,C=d.maxY;r.each(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,s=e.maxX,c=e.maxY,g=e.x,f=e.y,d=e.width,v=e.height,I=g,y=f;if(l.indexOf("left")>=0&&(n=0&&(i=0&&(n>A?I=A-d:s>A&&(I-=s-A)),l.indexOf("bottom")>=0&&(i>C?y=C-v:c>C&&(y-=c-C)),I!==g||y!==f){var m=I-g;"translate"===u?a.translate(t,m,y-f):"ellipsis"===u?t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=r.pick(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=o.getEllipsisText(t.attr("text"),n.width-Math.abs(m),e);t.attr("text",i)})):t.hide()}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEllipsisText=e.measureTextWidth=void 0;var r=n(1),i=n(0),o=n(582);e.measureTextWidth=i.memoize((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,a=e.fontWeight,s=e.fontStyle,c=e.fontVariant,l=o.getCanvasContext();return l.font=[s,c,a,n+"px",r].join(" "),l.measureText(i.isString(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),r.__spreadArrays([t],i.values(e)).join("")})),e.getEllipsisText=function(t,n,r){var o,a=e.measureTextWidth("...",r);o=i.isString(t)?t:i.toString(t);var s,c,l=n,u=[];if(e.measureTextWidth(t,r)<=n)return t;for(;s=o.substr(0,16),!((c=e.measureTextWidth(s,r))+a>l&&c>l);)if(u.push(s),l-=c,!(o=o.substr(16)))return u.join("");for(;s=o.substr(0,1),!((c=e.measureTextWidth(s,r))+a>l);)if(u.push(s),l-=c,!(o=o.substr(1)))return u.join("");return u.join("")+"..."}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.getCanvasContext=void 0,e.getCanvasContext=function(){return r||(r=document.createElement("canvas").getContext("2d")),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showGrid=e.getCircleGridItems=e.getLineGridItems=e.getGridThemeCfg=void 0;var r=n(0);e.getGridThemeCfg=function(t,e){return r.get(t,["components","axis",e,"grid"],{})},e.getLineGridItems=function(t,e,n,r){var i=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var s=o.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(a){var c=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:c}:{x:c,y:0}),t.convert("y"===n?{x:1,y:c}:{x:c,y:1})]})}return o}),o[0]),i},e.getCircleGridItems=function(t,e,n,i,o){var a=e.values.length,s=[],c=n.getTicks();return c.reduce((function(e,n){var c=e?e.value:n.value,l=n.value,u=(c+l)/2;return"x"===o?s.push({points:[t.convert({x:i?l:u,y:0}),t.convert({x:i?l:u,y:1})]}):s.push({points:r.map(Array(a+1),(function(e,n){return t.convert({x:n/a,y:i?l:u})}))}),n}),c[0]),s},e.showGrid=function(t,e){var n=r.get(e,"grid");if(null===n)return!1;var i=r.get(t,"grid");return!(void 0===n&&null===i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(110),o=n(81),a=n(88),s=n(251),c=n(27),l=n(0),u=n(87),g=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=l.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=l.clamp(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(c.LAYER.FORE).addGroup(),n.onChangeFn=l.throttle(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(c.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(c.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(c.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(c.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),o=new a.BBox(i.x,i.y,Math.min(i.width,e),i.height).expand(n),l=this.getScrollbarComponentCfg(),u=void 0,g=void 0;if(l.isHorizontal){var f=s.directionToPosition(this.view.viewBBox,o,c.DIRECTION.BOTTOM),d=(f[0],f[1]),h=s.directionToPosition(this.view.coordinateBBox,o,c.DIRECTION.BOTTOM),p=h[0];h[1],u=p,g=d}else{var A=s.directionToPosition(this.view.viewBBox,o,c.DIRECTION.RIGHT),C=(A[0],d=A[1],s.directionToPosition(this.view.viewBBox,o,c.DIRECTION.RIGHT));p=C[0],C[1],u=p,g=d}u+=n[3],g+=n[0],this.trackLen?this.scrollbar.component.update(r.__assign(r.__assign({},l),{x:u,y:g,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(r.__assign(r.__assign({},l),{x:u,y:g})),this.view.viewBBox=this.view.viewBBox.cut(o,l.isHorizontal?c.DIRECTION.BOTTOM:c.DIRECTION.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return l.get(t,["components","slider","common"],{})},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.view.getOptions().data,this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*l.clamp(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,r=t[0],i=t[1],o="vertical"!==this.getValidScrollbarCfg().type,a=l.valuesOfKey(this.data,this.xScaleCfg.field),s=o?a:a.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=s.indexOf(t);return!(e>-1)||u.isBetween(e,r,i)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new o.Scrollbar(r.__assign(r.__assign({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:c.LAYER.FORE,direction:t?c.DIRECTION.BOTTOM:c.DIRECTION.RIGHT,type:c.COMPONENT_TYPE.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?r.__assign(r.__assign({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):r.__assign({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.view.getOptions().data,n=l.valuesOfKey(e,t.field);return l.size(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=(this.view.getXScale(),this.getValidScrollbarCfg()),o=i.type,a=i.padding,s=i.width,c=i.height,u="vertical"!==o,g=a[0],f=a[1],d=a[2],h=a[3],p=u?{x:e.minX+h,y:n.maxY-c-d}:{x:n.maxX-s-f,y:e.minY+g},A=this.getStep(),C=this.getCnt(),v=u?e.width-h-f:e.height-g-d,I=Math.max(v*l.clamp(A/C,0,1),20);return r.__assign(r.__assign({},this.getThemeOptions()),{x:p.x,y:p.y,size:u?c:s,isHorizontal:u,trackLen:v,thumbLen:I,thumbOffset:0})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0};return l.isObject(this.option)&&(t=r.__assign(r.__assign({},t),this.option)),l.isObject(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e}(i.Controller);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearList=void 0;var r=n(0),i="inactive",o="active";e.clearList=function(t){var e=t.getItems();r.each(e,(function(e){t.hasState(e,o)&&t.setItemState(e,o,!1),t.hasState(e,i)&&t.setItemState(e,i,!1)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(43),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return r.__extends(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=i.last(this.points),n=0,r=0,a=0;if(t.length){var s=t[0];n=o.distance(s,e)/2,r=(e.x+s.x)/2,a=(e.y+s.y)/2}return{x:r,y:a,r:n}},e}(r.__importDefault(n(257)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0);function o(t){t.x=i.clamp(t.x,0,1),t.y=i.clamp(t.y,0,1)}var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return r.__extends(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,a=this.context.view.getCoordinate(),s=a.invert(i.head(n)),c=a.invert(i.last(n));return this.inPlot&&(o(s),o(c)),"x"===r?(t=a.convert({x:s.x,y:0}),e=a.convert({x:c.x,y:1})):(t=a.convert({x:0,y:s.y}),e=a.convert({x:1,y:c.y})),{start:t,end:e}},e}(r.__importDefault(n(365)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(43),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points;return i.getSpline(t,!0)},e}(r.__importDefault(n(366)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=r.__importDefault(n(367)),a=n(43),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filterView=function(t,e,n){var r=a.getSilbings(t);i.each(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=a.getSilbings(t);i.each(e,(function(t){t.render(!0)}))},e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=r.__importDefault(n(56)),a=n(43),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filter=function(){var t=a.getDelegationObject(this.context),e=this.context.view,n=a.getElements(e);if(a.isMask(this.context)){var r=a.getMaskedElements(this.context,10);r&&i.each(n,(function(t){r.includes(t)?t.show():t.hide()}))}else if(t){var o=t.component,s=o.get("field");if(a.isList(t)){if(s){var c=o.getItemsByState("unchecked"),l=a.getScaleByField(e,s),u=c.map((function(t){return t.name}));i.each(n,(function(t){var e=a.getElementValue(t,s),n=l.getText(e);u.indexOf(n)>=0?t.hide():t.show()}))}}else if(a.isSlider(t)){var g=o.getValue(),f=g[0],d=g[1];i.each(n,(function(t){var e=a.getElementValue(t,s);e>=f&&e<=d?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=a.getElements(this.context.view);i.each(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=r.__importDefault(n(56)),a=n(43),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return r.__extends(e,t),e.prototype.filter=function(){a.isMask(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=a.getMaskedElements(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,o=e.map((function(t){return t.getModel().data})),s=a.getSilbings(t);i.each(s,(function(t){var e=a.getElements(t);i.each(e,(function(t){var e=t.getModel().data;a.isInRecords(o,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=a.getSilbings(e);i.each(n,(function(e){var n=a.getSiblingMaskElements(t.context,e,10),r=a.getElements(e);n&&i.each(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=a.getSilbings(this.context.view);i.each(t,(function(t){var e=a.getElements(t);i.each(e,(function(t){t.show()}))}))},e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(15),o=n(0),a=n(239),s=r.__importDefault(n(56)),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return r.__extends(e,t),e.prototype.getButtonCfg=function(){return o.deepMix(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:r.__assign({text:t.text},t.textStyle)}).getBBox(),i=a.parsePadding(t.padding),o=e.addShape({type:"rect",name:"button-rect",attrs:r.__assign({x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},t.style)});o.toBack(),e.on("mouseenter",(function(){o.attr(t.activeStyle)})),e.on("mouseleave",(function(){o.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.ext.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(s.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=r.__importDefault(n(56)),o=n(43),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return r.__extends(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):o.distance(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(15),o=n(237),a=n(43),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return r.__extends(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if(a.distance(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=i.ext.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(o.Action);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return r.__extends(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;i.each(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,o=n.values;t.startCache[e]={min:r,max:i,values:o}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),o=n.invert(e),a=n.invert(r),s=a.x-o.x,c=a.y-o.y,l=this.context.view,u=this.dims;i.each(u,(function(e){t.translateDim(e,{x:-1*s,y:-1*c})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],o=i.min,a=i.max,s=a-o,c=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),r.scale(e.field,{nice:!1,min:o+c,max:a+c})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(r.__importDefault(n(368)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return r.__extends(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;i.each(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],o=i.max-i.min,a=e.min,s=e.max,c=n*o,l=a-c,u=s+c,g=(u-l)/o;u>l&&g<100&&g>.01&&r.scale(e.field,{nice:!1,min:a-c,max:s+c})},e}(r.__importDefault(n(368)).default);e.default=o},function(t,e,n){(function(t){function e(t){return(e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function r(i){"use strict";var o=n(599),a=n(4),s=n(600);function c(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;nMt||(t.current=Pt[Mt],Pt[Mt]=null,Mt--)}function Rt(t,e){Mt++,Pt[Mt]=t.current,t.current=e}var Dt={},Nt={current:Dt},Lt={current:!1},Ft=Dt;function Bt(t,e){var n=t.type.contextTypes;if(!n)return Dt;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function zt(t){return null!==(t=t.childContextTypes)&&void 0!==t}function Vt(){Tt(Lt),Tt(Nt)}function Gt(t,e,n){if(Nt.current!==Dt)throw Error(c(168));Rt(Nt,e),Rt(Lt,n)}function Wt(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(c(108,_(e)||"Unknown",i));return o({},n,{},r)}function Yt(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Dt,Ft=Nt.current,Rt(Nt,t),Rt(Lt,Lt.current),!0}function Ht(t,e,n){var r=t.stateNode;if(!r)throw Error(c(169));n?(t=Wt(t,e,Ft),r.__reactInternalMemoizedMergedChildContext=t,Tt(Lt),Tt(Nt),Rt(Nt,t)):Tt(Lt),Rt(Lt,n)}var Ut=s.unstable_runWithPriority,Xt=s.unstable_scheduleCallback,Zt=s.unstable_cancelCallback,qt=s.unstable_requestPaint,Kt=s.unstable_now,Qt=s.unstable_getCurrentPriorityLevel,Jt=s.unstable_ImmediatePriority,$t=s.unstable_UserBlockingPriority,te=s.unstable_NormalPriority,ee=s.unstable_LowPriority,ne=s.unstable_IdlePriority,re={},ie=s.unstable_shouldYield,oe=void 0!==qt?qt:function(){},ae=null,se=null,ce=!1,le=Kt(),ue=1e4>le?Kt:function(){return Kt()-le};function ge(){switch(Qt()){case Jt:return 99;case $t:return 98;case te:return 97;case ee:return 96;case ne:return 95;default:throw Error(c(332))}}function fe(t){switch(t){case 99:return Jt;case 98:return $t;case 97:return te;case 96:return ee;case 95:return ne;default:throw Error(c(332))}}function de(t,e){return t=fe(t),Ut(t,e)}function he(t,e,n){return t=fe(t),Xt(t,e,n)}function pe(t){return null===ae?(ae=[t],se=Xt(Jt,Ce)):ae.push(t),re}function Ae(){if(null!==se){var t=se;se=null,Zt(t)}Ce()}function Ce(){if(!ce&&null!==ae){ce=!0;var t=0;try{var e=ae;de(99,(function(){for(;t=e&&(or=!0),t.firstContext=null)}function Me(t,e){if(Se!==t&&!1!==e&&0!==e)if("number"===typeof e&&1073741823!==e||(Se=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Oe){if(null===we)throw Error(c(308));Oe=e,we.dependencies={expirationTime:0,firstContext:e,responders:null}}else Oe=Oe.next=e;return X?t._currentValue:t._currentValue2}var Te=!1;function Re(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function De(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function Ne(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function Le(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function Fe(t,e){var n=t.alternate;null!==n&&De(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function Be(t,e,n,r){var i=t.updateQueue;Te=!1;var a=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==a){var c=a.next;a.next=s.next,s.next=c}a=s,i.shared.pending=null,null!==(c=t.alternate)&&null!==(c=c.updateQueue)&&(c.baseQueue=s)}if(null!==a){c=a.next;var l=i.baseState,u=0,g=null,f=null,d=null;if(null!==c)for(var h=c;;){if((s=h.expirationTime)u&&(u=s)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),Wi(s,h.suspenseConfig);t:{var A=t,C=h;switch(s=e,p=n,C.tag){case 1:if("function"===typeof(A=C.payload)){l=A.call(p,l,s);break t}l=A;break t;case 3:A.effectTag=-4097&A.effectTag|64;case 0:if(null===(s="function"===typeof(A=C.payload)?A.call(p,l,s):A)||void 0===s)break t;l=o({},l,s);break t;case 2:Te=!0}}null!==h.callback&&(t.effectTag|=32,null===(s=i.effects)?i.effects=[h]:s.push(h))}if(null===(h=h.next)||h===c){if(null===(s=i.shared.pending))break;h=a.next=s.next,s.next=c,i.baseQueue=a=s,i.shared.pending=null}}null===d?g=l:d.next=f,i.baseState=g,i.baseQueue=d,Yi(u),t.expirationTime=u,t.memoizedState=l}}function ze(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;ef?(d=g,g=null):d=g.sibling;var h=C(e,g,s[f],c);if(null===h){null===g&&(g=d);break}t&&g&&null===h.alternate&&n(e,g),o=a(h,o,f),null===u?l=h:u.sibling=h,u=h,g=d}if(f===s.length)return r(e,g),l;if(null===g){for(;fd?(h=f,f=null):h=f.sibling;var I=C(e,f,p.value,l);if(null===I){null===f&&(f=h);break}t&&f&&null===I.alternate&&n(e,f),o=a(I,o,d),null===g?u=I:g.sibling=I,g=I,f=h}if(p.done)return r(e,f),u;if(null===f){for(;!p.done;d++,p=s.next())null!==(p=A(e,p.value,l))&&(o=a(p,o,d),null===g?u=p:g.sibling=p,g=p);return u}for(f=i(e,f);!p.done;d++,p=s.next())null!==(p=v(f,e,d,p.value,l))&&(t&&null!==p.alternate&&f.delete(null===p.key?d:p.key),o=a(p,o,d),null===g?u=p:g.sibling=p,g=p);return t&&f.forEach((function(t){return n(e,t)})),u}return function(t,i,a,l){var u="object"===e(a)&&null!==a&&a.type===d&&null===a.key;u&&(a=a.props.children);var h="object"===e(a)&&null!==a;if(h)switch(a.$$typeof){case g:t:{for(h=a.key,u=i;null!==u;){if(u.key===h){switch(u.tag){case 7:if(a.type===d){r(t,u.sibling),(i=o(u,a.props.children)).return=t,t=i;break t}break;default:if(u.elementType===a.type){r(t,u.sibling),(i=o(u,a.props)).ref=Ke(t,u,a),i.return=t,t=i;break t}}r(t,u);break}n(t,u),u=u.sibling}a.type===d?((i=ho(a.props.children,t.mode,l,a.key)).return=t,t=i):((l=fo(a.type,a.key,a.props,null,t.mode,l)).ref=Ke(t,i,a),l.return=t,t=l)}return s(t);case f:t:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){r(t,i.sibling),(i=o(i,a.children||[])).return=t,t=i;break t}r(t,i);break}n(t,i),i=i.sibling}(i=Ao(a,t.mode,l)).return=t,t=i}return s(t)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==i&&6===i.tag?(r(t,i.sibling),(i=o(i,a)).return=t,t=i):(r(t,i),(i=po(a,t.mode,l)).return=t,t=i),s(t);if(qe(a))return I(t,i,a,l);if(S(a))return y(t,i,a,l);if(h&&Qe(t,a),"undefined"===typeof a&&!u)switch(t.tag){case 1:case 0:throw t=t.type,Error(c(152,t.displayName||t.name||"Component"))}return r(t,i)}}var $e=Je(!0),tn=Je(!1),en={},nn={current:en},rn={current:en},on={current:en};function an(t){if(t===en)throw Error(c(174));return t}function sn(t,e){Rt(on,e),Rt(rn,t),Rt(nn,en),t=T(e),Tt(nn),Rt(nn,t)}function cn(){Tt(nn),Tt(rn),Tt(on)}function ln(t){var e=an(on.current),n=an(nn.current);n!==(e=R(n,t.type,e))&&(Rt(rn,t),Rt(nn,e))}function un(t){rn.current===t&&(Tt(nn),Tt(rn))}var gn={current:0};function fn(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||yt(n)||mt(n)))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!==(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function dn(t,e){return{responder:t,props:e}}var hn=l.ReactCurrentDispatcher,pn=l.ReactCurrentBatchConfig,An=0,Cn=null,vn=null,In=null,yn=!1;function mn(){throw Error(c(321))}function bn(t,e){if(null===e)return!1;for(var n=0;no))throw Error(c(301));o+=1,In=vn=null,e.updateQueue=null,hn.current=Zn,t=n(r,i)}while(e.expirationTime===An)}if(hn.current=Hn,e=null!==vn&&null!==vn.next,An=0,In=vn=Cn=null,yn=!1,e)throw Error(c(300));return t}function wn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===In?Cn.memoizedState=In=t:In=In.next=t,In}function On(){if(null===vn){var t=Cn.alternate;t=null!==t?t.memoizedState:null}else t=vn.next;var e=null===In?Cn.memoizedState:In.next;if(null!==e)In=e,vn=t;else{if(null===t)throw Error(c(310));t={memoizedState:(vn=t).memoizedState,baseState:vn.baseState,baseQueue:vn.baseQueue,queue:vn.queue,next:null},null===In?Cn.memoizedState=In=t:In=In.next=t}return In}function Sn(t,e){return"function"===typeof e?e(t):e}function _n(t){var e=On(),n=e.queue;if(null===n)throw Error(c(311));n.lastRenderedReducer=t;var r=vn,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,l=i;do{var u=l.expirationTime;if(uCn.expirationTime&&(Cn.expirationTime=u,Yi(u))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),Wi(u,l.suspenseConfig),r=l.eagerReducer===t?l.eagerState:t(r,l.action);l=l.next}while(null!==l&&l!==i);null===s?o=r:s.next=a,Ie(r,e.memoizedState)||(or=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=s,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function kn(t){var e=On(),n=e.queue;if(null===n)throw Error(c(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=t(o,a.action),a=a.next}while(a!==i);Ie(o,e.memoizedState)||(or=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function jn(t){var e=wn();return"function"===typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Sn,lastRenderedState:t}).dispatch=Yn.bind(null,Cn,t),[e.memoizedState,t]}function En(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Cn.updateQueue)?(e={lastEffect:null},Cn.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function Pn(){return On().memoizedState}function Mn(t,e,n,r){var i=wn();Cn.effectTag|=t,i.memoizedState=En(1|e,n,void 0,void 0===r?null:r)}function Tn(t,e,n,r){var i=On();r=void 0===r?null:r;var o=void 0;if(null!==vn){var a=vn.memoizedState;if(o=a.destroy,null!==r&&bn(r,a.deps))return void En(e,n,o,r)}Cn.effectTag|=t,i.memoizedState=En(1|e,n,o,r)}function Rn(t,e){return Mn(516,4,t,e)}function Dn(t,e){return Tn(516,4,t,e)}function Nn(t,e){return Tn(4,2,t,e)}function Ln(t,e){return"function"===typeof e?(t=t(),e(t),function(){e(null)}):null!==e&&void 0!==e?(t=t(),e.current=t,function(){e.current=null}):void 0}function Fn(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,Tn(4,2,Ln.bind(null,e,t),n)}function Bn(){}function zn(t,e){return wn().memoizedState=[t,void 0===e?null:e],t}function Vn(t,e){var n=On();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&bn(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Gn(t,e){var n=On();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&bn(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Wn(t,e,n){var r=ge();de(98>r?98:r,(function(){t(!0)})),de(97r.tailExpiration&&1e)&&Si.set(t,e))}}function Ti(t,e){t.expirationTime=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function Di(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=pe(Li.bind(null,t));else{var e=Ri(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=Ei();if(r=1073741823===e?99:1===e||2===e?95:0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=r)return;n!==re&&Zt(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?pe(Li.bind(null,t)):he(r,Ni.bind(null,t),{timeout:10*(1073741821-e)-ue()}),t.callbackNode=e}}}function Ni(t,e){if(ji=0,e)return mo(t,e=Ei()),Di(t),null;var n=Ri(t);if(0!==n){if(e=t.callbackNode,0!==(48&si))throw Error(c(327));if($i(),t===ci&&n===ui||zi(t,n),null!==li){var r=si;si|=ni;for(var i=Gi();;)try{Ui();break}catch(s){Vi(t,s)}if(_e(),si=r,ti.current=i,1===gi)throw e=fi,zi(t,n),Io(t,n),Di(t),e;if(null===li)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=gi,ci=null,r){case ii:case 1:throw Error(c(345));case 2:mo(t,2=n){t.lastPingedTime=n,zi(t,n);break}}if(0!==(o=Ri(t))&&o!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=Y(Ki.bind(null,t),i);break}Ki(t);break;case ai:if(Io(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=qi(i)),Ci&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,zi(t,n);break}if(0!==(i=Ri(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==hi?r=10*(1073741821-hi)-ue():1073741823===di?r=0:(r=10*(1073741821-di)-5e3,0>(r=(i=ue())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$r(r/1960))-r)&&(r=n)),10=(r=0|a.busyMinDurationMs)?r=0:(i=0|a.busyDelayMs,r=(o=ue()-(10*(1073741821-o)-(0|a.timeoutMs||5e3)))<=i?0:i+r-o),10 component higher in the tree to provide a loading indicator or placeholder to display."+Et(s))}5!==gi&&(gi=2),c=Er(c,s),f=a;do{switch(f.tag){case 3:l=c,f.effectTag|=4096,f.expirationTime=n,Fe(f,Kr(f,l,n));break t;case 1:l=c;var m=f.type,b=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof m.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===bi||!bi.has(b)))){f.effectTag|=4096,f.expirationTime=n,Fe(f,Qr(f,l,n));break t}}f=f.return}while(null!==f)}li=Zi(li)}catch(x){n=x;continue}break}}function Gi(){var t=ti.current;return ti.current=Hn,null===t?Hn:t}function Wi(t,e){tAi&&(Ai=t)}function Hi(){for(;null!==li;)li=Xi(li)}function Ui(){for(;null!==li&&!ie();)li=Xi(li)}function Xi(t){var e=Jr(t.alternate,t,ui);return t.memoizedProps=t.pendingProps,null===e&&(e=Zi(t)),ei.current=null,e}function Zi(t){li=t;do{var e=li.alternate;if(t=li.return,0===(2048&li.effectTag)){if(e=kr(e,li,ui),1===ui||1!==li.childExpirationTime){for(var n=0,r=li.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}li.childExpirationTime=n}if(null!==e)return e;null!==t&&0===(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=li.firstEffect),null!==li.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=li.firstEffect),t.lastEffect=li.lastEffect),1(t=t.childExpirationTime)?e:t}function Ki(t){var e=ge();return de(99,Qi.bind(null,t,e)),null}function Qi(t,e){do{$i()}while(null!==wi);if(0!==(48&si))throw Error(c(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(c(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=qi(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===ci&&(li=ci=null,ui=0),1=r?yr(t,n,r):(Rt(gn,1&gn.current),null!==(n=wr(t,n,r))?n.sibling:null);Rt(gn,1&gn.current);break;case 19:if(i=n.childExpirationTime>=r,0!==(64&t.effectTag)){if(i)return xr(t,n,r);n.effectTag|=64}if(null!==(o=n.memoizedState)&&(o.rendering=null,o.tail=null),Rt(gn,gn.current),!i)return null}return wr(t,n,r)}or=!1}}else or=!1;switch(n.expirationTime=0,n.tag){case 2:if(i=n.type,null!==t&&(t.alternate=null,n.alternate=null,n.effectTag|=2),t=n.pendingProps,o=Bt(n,Nt.current),Pe(n,r),o=xn(null,n,i,t,o,r),n.effectTag|=1,"object"===e(o)&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,zt(i)){var a=!0;Yt(n)}else a=!1;n.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Re(n);var s=i.getDerivedStateFromProps;"function"===typeof s&&We(n,i,s,t),o.updater=Ye,n.stateNode=o,o._reactInternalFiber=n,Ze(n,i,t,r),n=dr(null,n,i,!0,a,r)}else n.tag=0,ar(null,n,o,r),n=n.child;return n;case 16:t:{if(o=n.elementType,null!==t&&(t.alternate=null,n.alternate=null,n.effectTag|=2),t=n.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,n.type=o,a=n.tag=function(t){if("function"===typeof t)return uo(t)?1:0;if(void 0!==t&&null!==t){if((t=t.$$typeof)===I)return 11;if(t===b)return 14}return 2}(o),t=be(o,t),a){case 0:n=gr(null,n,o,t,r);break t;case 1:n=fr(null,n,o,t,r);break t;case 11:n=sr(null,n,o,t,r);break t;case 14:n=cr(null,n,o,be(o.type,t),i,r);break t}throw Error(c(306,o,""))}return n;case 0:return i=n.type,o=n.pendingProps,gr(t,n,i,o=n.elementType===i?o:be(i,o),r);case 1:return i=n.type,o=n.pendingProps,fr(t,n,i,o=n.elementType===i?o:be(i,o),r);case 3:if(hr(n),i=n.updateQueue,null===t||null===i)throw Error(c(282));if(i=n.pendingProps,o=null!==(o=n.memoizedState)?o.element:null,De(t,n),Be(n,i,null,r),(i=n.memoizedState.element)===o)rr(),n=wr(t,n,r);else{if((o=n.stateNode.hydrate)&&(K?(Kn=xt(n.stateNode.containerInfo),qn=n,o=Qn=!0):o=!1),o)for(r=tn(n,null,i,r),n.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else ar(t,n,i,r),rr();n=n.child}return n;case 5:return ln(n),null===t&&tr(n),i=n.type,o=n.pendingProps,a=null!==t?t.memoizedProps:null,s=o.children,V(i,o)?s=null:null!==a&&V(i,a)&&(n.effectTag|=16),ur(t,n),4&n.mode&&1!==r&&G(i,o)?(n.expirationTime=n.childExpirationTime=1,n=null):(ar(t,n,s,r),n=n.child),n;case 6:return null===t&&tr(n),null;case 13:return yr(t,n,r);case 4:return sn(n,n.stateNode.containerInfo),i=n.pendingProps,null===t?n.child=$e(n,null,i,r):ar(t,n,i,r),n.child;case 11:return i=n.type,o=n.pendingProps,sr(t,n,i,o=n.elementType===i?o:be(i,o),r);case 7:return ar(t,n,n.pendingProps,r),n.child;case 8:case 12:return ar(t,n,n.pendingProps.children,r),n.child;case 10:t:{if(i=n.type._context,o=n.pendingProps,s=n.memoizedProps,ke(n,a=o.value),null!==s){var l=s.value;if(0===(a=Ie(l,a)?0:0|("function"===typeof i._calculateChangedBits?i._calculateChangedBits(l,a):1073741823))){if(s.children===o.children&&!Lt.current){n=wr(t,n,r);break t}}else for(null!==(l=n.child)&&(l.return=n);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var g=u.firstContext;null!==g;){if(g.context===i&&0!==(g.observedBits&a)){1===l.tag&&((g=Ne(r,null)).tag=2,Le(l,g)),l.expirationTime=e&&t<=e}function Io(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;ne||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function yo(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function mo(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}var bo=null;function xo(t){var e=t._reactInternalFiber;if(void 0===e){if("function"===typeof t.render)throw Error(c(188));throw Error(c(268,Object.keys(t)))}return null===(t=P(e))?null:t.stateNode}function wo(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime=x},c=function(){},e.unstable_forceFrameRate=function(t){0>t||125>>1,i=t[r];if(!(void 0!==i&&0j(a,n))void 0!==c&&0>j(c,a)?(t[r]=c,t[s]=n,r=s):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==c&&0>j(c,n)))break t;t[r]=c,t[s]=n,r=s}}}return e}return null}function j(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var E=[],P=[],M=1,T=null,R=3,D=!1,N=!1,L=!1;function F(t){for(var e=_(P);null!==e;){if(null===e.callback)k(P);else{if(!(e.startTime<=t))break;k(P),e.sortIndex=e.expirationTime,S(E,e)}e=_(P)}}function B(t){if(L=!1,F(t),!N)if(null!==_(E))N=!0,i(z);else{var e=_(P);null!==e&&o(B,e.startTime-t)}}function z(t,n){N=!1,L&&(L=!1,a()),D=!0;var r=R;try{for(F(n),T=_(E);null!==T&&(!(T.expirationTime>n)||t&&!s());){var i=T.callback;if(null!==i){T.callback=null,R=T.priorityLevel;var c=i(T.expirationTime<=n);n=e.unstable_now(),"function"===typeof c?T.callback=c:T===_(E)&&k(E),F(n)}else k(E);T=_(E)}if(null!==T)var l=!0;else{var u=_(P);null!==u&&o(B,u.startTime-n),l=!1}return l}finally{T=null,R=r,D=!1}}function V(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var G=c;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){N||D||(N=!0,i(z))},e.unstable_getCurrentPriorityLevel=function(){return R},e.unstable_getFirstCallbackNode=function(){return _(E)},e.unstable_next=function(t){switch(R){case 1:case 2:case 3:var e=3;break;default:e=R}var n=R;R=e;try{return t()}finally{R=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=G,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=R;R=t;try{return e()}finally{R=n}},e.unstable_scheduleCallback=function(t,n,s){var c=e.unstable_now();if("object"===r(s)&&null!==s){var l=s.delay;l="number"===typeof l&&0c?(t.sortIndex=l,S(P,t),null===_(E)&&t===_(P)&&(L?a():L=!0,o(B,l-c))):(t.sortIndex=s,S(E,t),N||D||(N=!0,i(z))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();F(t);var n=_(E);return n!==T&&null!==T&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=void 0;var r=n(47),i=n(20),o=n(60),a=n(157),s=n(125),c=n(158);function l(t){var e,n,l=t.chart,u=t.options,g=u.data,f=u.xAxis,d=u.yAxis,h=u.color,p=u.areaStyle,A=u.point,C=u.line,v=s.getTinyData(g);l.data(v);var I=i.deepAssign({},t,{options:{xField:a.X_FIELD,yField:a.Y_FIELD,area:{color:h,style:p},line:C,point:A}}),y=i.deepAssign({},I,{options:{tooltip:!1}});return o.area(I),o.line(y),o.point(y),l.axis(!1),l.legend(!1),r.scale(((e={})[a.X_FIELD]=f,e[a.Y_FIELD]=d,e),((n={})[a.X_FIELD]={type:"cat"},n[a.Y_FIELD]=c.adjustYMetaByZero(v,a.Y_FIELD),n))(t),t}e.adaptor=function(t){return i.flow(l,r.tooltip,r.theme,r.animation,r.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=void 0;var r=n(20),i=n(47),o=n(60),a=n(158),s=n(125),c=n(157);function l(t){var e,n,l=t.chart,u=t.options,g=u.data,f=u.xAxis,d=u.yAxis,h=u.color,p=u.lineStyle,A=u.point,C=s.getTinyData(g);l.data(C);var v=r.deepAssign({},t,{options:{xField:c.X_FIELD,yField:c.Y_FIELD,line:{color:h,style:p},point:A}}),I=r.deepAssign({},v,{options:{tooltip:!1}});return o.line(v),o.point(I),l.axis(!1),l.legend(!1),i.scale(((e={})[c.X_FIELD]=f,e[c.Y_FIELD]=d,e),((n={})[c.X_FIELD]={type:"cat"},n[c.Y_FIELD]=a.adjustYMetaByZero(C,c.Y_FIELD),n))(t),t}e.adaptor=function(t){return r.flow(l,i.theme,i.tooltip,i.animation,i.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(640);r.registerAction("marker-active",i.MarkerActiveAction),r.registerInteraction("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerActiveAction=void 0;var r=n(1),i=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.active=function(){var t=this.getView(),e=this.context.event;if(e.data){var n=e.data.items,r=t.geometries.filter((function(t){return"point"===t.type}));i.each(r,(function(t){i.each(t.elements,(function(t){var e=-1!==i.findIndex(n,(function(e){return e.data===t.data}));t.setState("active",e)}))}))}},e.prototype.getView=function(){return this.context.view},e}(n(9).InteractionAction);e.MarkerActiveAction=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=void 0;var r=n(387),i=n(47),o=n(20),a=n(642);function s(t){var e=t.options.colorField;return o.deepAssign({options:{colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapResquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1,fields:["name","value",e],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function c(t){var e=t.chart,n=t.options,i=n.color,s=n.colorField,c=n.rectStyle,l=a.transformData(n);return e.data(l),r.polygon(o.deepAssign({},t,{options:{xField:"x",yField:"y",seriesField:s,rawFields:["value"],polygon:{color:i,style:c}}})),t}function l(t){return t.chart.axis(!1),t}e.adaptor=function(t){return o.flow(s,c,l,i.theme,i.legend,i.tooltip,i.interaction,i.animation,i.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformData=void 0;var r=n(1),i=n(643);e.transformData=function(t){var e=t.data,n=t.colorField,o=t.hierarchyConfig,a=i.treemap(e,r.__assign(r.__assign({},o),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),s=[];return a.forEach((function(t){if(!t.children){var e=Object.assign({},t.data,{x:t.x,y:t.y,depth:t.depth,value:t.value});if(!t.data[n]&&t.parent){var r=t.ancestors().find((function(t){return t.data[n]}));e[n]=null===r||void 0===r?void 0:r.data[n]}else e[n]=t.data[n];s.push(e)}})),s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.treemap=void 0;var r=n(1).__importStar(n(204)),i=n(0),o=n(644),a={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"]};e.treemap=function(t,e){var n,s=(e=i.assign({},a,e)).as;if(!i.isArray(s)||2!==s.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=o.getField(e)}catch(g){console.warn(g)}var c=function(t){return r.treemap().tile(r[e.tile]).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(r.hierarchy(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[n]})))}(t),l=s[0],u=s[1];return c.each((function(t){t[l]=[t.x0,t.x1,t.x1,t.x0],t[u]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===s.indexOf(e)&&delete t[e]}))})),o.getAllNodes(c)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAllNodes=e.getField=void 0;var r=n(0),i="Invalid field: it must be a string!";e.getField=function(t,e){var n=t.field,o=t.fields;if(r.isString(n))return n;if(r.isArray(n))return console.warn(i),n[0];if(console.warn(i+" will try to get fields instead."),r.isString(o))return o;if(r.isArray(o)&&o.length)return o[0];if(e)return e;throw new TypeError(i)},e.getAllNodes=function(t){var e=[];return t&&t.each?t.each((function(t){e.push(t)})):t&&t.eachNode&&t.eachNode((function(t){e.push(t)})),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=void 0;var r=n(1),i=n(392);e.adaptor=function(t){var e=t.chart,n=t.options,o=n.xField,a=n.yField,s=n.xAxis,c=n.yAxis,l=n.barStyle,u=n.barWidthRatio,g=n.label,f=n.data,d=n.seriesField,h=n.isStack,p=n.minBarWidth,A=n.maxBarWidth;g&&!g.position&&(g.position="left",g.layout||(g.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]));var C=n.legend;d?!1!==C&&(C=r.__assign({position:h?"top-left":"right-top",reversed:!h},C||{})):C=!1,t.options.legend=C;var v=n.tooltip;return d&&!1!==v&&(v=r.__assign({reversed:!h},v||{})),t.options.tooltip=v,e.coordinate().transpose(),i.adaptor({chart:e,options:r.__assign(r.__assign({},n),{label:g,xField:a,yField:o,xAxis:c,yAxis:s,columnStyle:l,columnWidthRatio:u,minColumnWidth:p,maxColumnWidth:A,columnBackground:n.barBackground,data:f?f.slice().reverse():f})},!0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.conversionTag=void 0;var r=n(1),i=n(0),o=n(9),a=n(20),s=n(393);function c(t,e){return a.deepAssign({size:e?32:80,spacing:e?8:12,offset:e?32:0,arrow:!1!==t.arrow&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:!1!==t.text&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:s.conversionTagFormatter}},t)}function l(t,e){return i.map(e.getModel().points,(function(e){return t.convertPoint(e)}))}function u(t,e,n){!function(t,e,n){var i=t.view,o=t.geometry,a=t.group,s=t.options,c=t.horizontal,u=s.offset,g=s.size,f=s.arrow,d=i.getCoordinate(),h=l(d,e)[c?3:0],p=l(d,n)[c?0:3],A=p.y-h.y,C=p.x-h.x;if("boolean"!==typeof f){var v,I=f.headSize,y=s.spacing;c?(C-I)/2m){var x=b/C.length,w=Math.max(1,Math.ceil(m/x)-1),O=C.slice(0,w)+"...";y.attr("text",O)}}}}(t,e,n)}e.conversionTag=function(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=!1),function(r){var s=r.options,l=r.chart,g=s.conversionTag,f=s.theme;return g&&!n&&(l.theme(a.deepAssign({},i.isObject(f)?f:o.getTheme(f),{columnWidthRatio:1/3})),l.annotation().shape({render:function(n,r){var o=n.addGroup({id:l.id+"-conversion-tag-group",name:"conversion-tag-group"}),a=i.find(l.geometries,(function(t){return"interval"===t.type})),s={view:r,geometry:a,group:o,field:t,horizontal:e,options:c(g,e)},f=e?a.elements:a.elements.slice().reverse();i.each(f,(function(t,e){e>0&&u(s,f[e-1],t)}))}})),r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.connectedArea=void 0;var r=n(9),i={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"};r.registerInteraction(i.hover,{start:[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"]}],end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),r.registerInteraction(i.click,{start:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"]}],end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]}),e.connectedArea=function(t){return void 0===t&&(t=!1),function(e){var n=e.chart,r=e.options.connectedArea,o=function(){n.removeInteraction(i.hover),n.removeInteraction(i.click)};if(!t&&r){var a=r.trigger||"hover";o(),n.interaction(i[a])}else o();return e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=void 0;var r=n(1),i=n(0),o=n(47),a=n(20),s=n(60),c=n(20),l=n(159),u=n(390);function g(t){var e=t.chart,n=t.options,i=n.data,o=n.areaStyle,a=n.color,u=n.point,g=n.line,f=n.isPercent,d=n.xField,h=n.yField,p=n.tooltip,A=n.seriesField,C=l.getDataWhetherPecentage(i,h,d,h,f);e.data(C);var v=f?r.__assign({formatter:function(t){return{name:t[A]||t[d],value:(100*Number(t[h])).toFixed(2)+"%"}}},p):p,I=c.deepAssign({},t,{options:{area:{color:a,style:o},line:g&&r.__assign({color:a},g),point:u&&r.__assign({color:a},u),tooltip:v,label:void 0}}),y=c.deepAssign({},I,{options:{tooltip:!1}});return s.area(I),s.line(y),s.point(y),t}function f(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,s=a.findGeometry(e,"area");if(i){var l=i.callback,u=r.__rest(i,["callback"]);s.label({fields:[o],callback:l,cfg:r.__assign({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},c.transformLabel(u))})}else s.label(!1);return t}function d(t){var e=t.chart,n=t.options,r=n.isStack;return(n.isPercent||r)&&i.each(e.geometries,(function(t){t.adjust("stack")})),t}e.adaptor=function(t){return c.flow(g,u.meta,d,o.theme,u.axis,u.legend,o.tooltip,f,o.slider,o.annotation(),o.interaction,o.animation,o.limitInPlot)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=void 0;var r=n(1),i=n(0),o=n(47),a=n(60),s=n(20),c=n(650);function l(t){var e=t.chart,n=t.options,o=n.data,c=n.angleField,l=n.colorField,u=n.color,g=n.pieStyle,f=i.filter(o,(function(t){return"number"===typeof t[c]||i.isNil(t[c])}));if(s.log(s.LEVEL.WARN,f.length===o.length,"illegal data existed in chart data."),i.every(f,(function(t){return 0===t[c]}))){var d="$$percentage$$";f=f.map((function(t){var e;return r.__assign(r.__assign({},t),((e={}).$$percentage$$=1/f.length,e))})),e.data(f);var h=s.deepAssign({},t,{options:{xField:"1",yField:d,seriesField:l,isStack:!0,interval:{color:u,style:g}}});a.interval(h),e.geometries[0].tooltip(l+"*"+c)}else e.data(f),h=s.deepAssign({},t,{options:{xField:"1",yField:c,seriesField:l,isStack:!0,interval:{color:u,style:g}}}),a.interval(h);return t}function u(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.colorField,a=s.deepAssign({},i);return n.scale(a,((e={})[o]={type:"cat"},e)),t}function g(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function f(t){var e=t.chart,n=t.options,o=n.label,a=n.colorField,l=n.angleField,u=e.geometries[0];if(o){var g=o.callback,f=r.__rest(o,["callback"]),d=s.transformLabel(f);if(d.content){var h=d.content;d.content=function(t,n,o){var c=t[a],u=t[l],g=e.getScaleByField(l),f=null===g||void 0===g?void 0:g.scale(u);return i.isFunction(h)?h(r.__assign(r.__assign({},t),{percent:f}),n,o):i.isString(h)?s.template(h,{value:u,name:c,percentage:i.isNumber(f)&&!i.isNil(u)?(100*f).toFixed(2)+"%":null}):h}}var p=d.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[d.type]:"pie-outer",A=d.layout?i.isArray(d.layout)?d.layout:[d.layout]:[];d.layout=(p?[{type:p}]:[]).concat(A),u.label({fields:a?[l,a]:[l],callback:g,cfg:r.__assign(r.__assign({},d),{offset:c.adaptOffset(d.type,d.offset),type:"pie"})})}else u.label(!1);return t}function d(t){var e=t.chart,n=t.options,r=n.innerRadius,o=n.statistic,a=n.angleField,l=n.colorField,u=n.meta;if(r&&o){var g=o.title,f=o.content;!1!==g&&(g=s.deepAssign({},{formatter:function(t){return t?t[l]:"\u603b\u8ba1"}},g)),!1!==f&&(f=s.deepAssign({},{formatter:function(t,e){var n=i.get(u,[a,"formatter"]),r=t?t[a]:c.getTotalValue(e,a);return n?n(r):r}},f)),s.renderStatistic(e,{statistic:{title:g,content:f},plotType:"pie"})}return t}e.adaptor=function(t){return s.flow(l,u,o.theme,g,o.legend,(function(t){return o.tooltip(function(t){return!1!==i.get(t,["options","tooltip"])?s.deepAssign({},t,{options:{tooltip:{shared:!1}}}):t}(t))}),f,o.state,o.annotation(),d,o.interaction,o.animation)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptOffset=e.getTotalValue=void 0;var r=n(0);e.getTotalValue=function(t,e){var n=null;return r.each(t,(function(t){"number"===typeof t[e]&&(n+=t[e])})),n},e.adaptOffset=function(t,e){var n;switch(t){case"inner":return n="-30%",r.isString(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,r.isString(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(652),o=n(653);r.registerAction("pie-statistic",o.StatisticAction),r.registerInteraction("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),r.registerAction("pie-legend",i.PieLegendAction),r.registerInteraction("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieLegendAction=void 0;var r=n(1),i=n(9),o=n(0),a=n(394),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getActiveElements=function(){var t=i.Util.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,o=n.get("field");if(o)return e.geometries[0].elements.filter((function(t){return t.getModel().data[o]===r.value}))}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements();return t.geometries[0].labelsContainer.getChildren().filter((function(t){return e.find((function(e){return o.isEqual(e.getData(),t.get("data"))}))}))},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach((function(e,r){var o=n[r],s=e.geometry.coordinate;if(s.isPolar&&s.isTransposed){var c=i.Util.getAngle(e.getModel(),s),l=(c.startAngle+c.endAngle)/2,u=t,g=u*Math.cos(l),f=u*Math.sin(l);e.shape.setMatrix(a.transform([["t",g,f]])),o.setMatrix(a.transform([["t",g,f]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(i.Action);e.PieLegendAction=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StatisticAction=void 0;var r=n(1),i=n(9),o=n(0),a=n(385),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getAnnotations=function(t){return(t||this.context.view).getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",(function(){var n=t.getAnnotations(e);t.initialAnnotation=n}))},e.prototype.change=function(){var t=this.context,e=t.view,n=t.event,s=this.getAnnotations();this.initialAnnotation||(this.initialAnnotation=s);var c=((null===n||void 0===n?void 0:n.data)||{}).data;if(n.type.match("legend-item")){var l=i.Util.getDelegationObject(this.context),u=e.getGroupedFields()[0];if(l&&u){var g=l.item;c=e.getData().find((function(t){return t[u]===g.value}))}}if(c){var f=e.getController("annotation");f.clear(!0);var d=e.getScaleFields(),h=d[1],p=d[2],A=e.getScaleByField(h),C=e.getScaleByField(p),v=s.filter((function(t){return!o.get(t,"key","").match("statistic")})),I=s.filter((function(t){return o.get(t,"key","").match("statistic")})),y=I.filter((function(t){return"top-statistic"===t.key})),m=I.filter((function(t){return"bottom-statistic"===t.key}));o.each(I,(function(t){var n,i;"top-statistic"===t.key?(n=C?C.getText(c[p]):null,i=m?"translate(-50%, -100%)":"translate(-50%, -50%)"):(n=A?A.getText(c[h]):c[h],i=y?"translate(-50%, 0)":"translate(-50%,-50%)"),v.push(r.__assign(r.__assign({},t),{html:function(e,s){var l=s.getCoordinate(),u=l.getRadius()*l.innerRadius*2,g=o.isFunction(t.style)?t.style():t.style;a.setStatisticContainerStyle(e,r.__assign({width:u+"px",transform:i},a.adapteStyle(g)));var f=s.getData();return t.customHtml?t.customHtml(e,s,c,f):(t.formatter&&(n=t.formatter(c,f)),n?o.isString(n)?n:""+n:"
    ")}})),v.forEach((function(t){f.annotation(t)})),e.render(!0)}))}},e.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var e=this.getInitialAnnotation();o.each(e,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(i.Action);e.StatisticAction=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=void 0;var r=n(1),i=n(0),o=n(20),a=n(20),s=n(259),c=n(47);function l(t){var e,n=t.chart,r=t.options,i=r.data,o=r.type,a=r.reflect,c=r.xField,l=r.yField,u=r.colorField,g=r.sizeField,f=r.sizeRatio,d=r.shape,h=r.color;n.data(i),e="density"===o?n.heatmap().position(c+"*"+l):n.polygon().position(c+"*"+l),u&&e.color(u,h||s.DEFAULT_COLORS.GRADIENT.CONTINUOUS),a&&n.coordinate().reflect(a);var p=1;if((f||0===f)&&(d||g?f<0||f>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):p=f:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),d&&(g||e.shape("",(function(){return[d,1,p]})),g)){var A=i.map((function(t){return t[g]})),C=Math.min.apply(Math,A),v=Math.max.apply(Math,A);e.shape(g,(function(t){return[d,(t-C)/(v-C),p]}))}return t}function u(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,s=n.yField;return a.flow(c.scale(((e={})[o]=r,e[s]=i,e)))(t)}function g(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function f(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return r?e.legend(i,r):e.legend(!1),t}function d(t){var e=t.chart,n=t.options,r=n.xField,o=n.yField,a=n.colorField,s=n.sizeField,c=n.heatmapStyle,l=e.geometries[0];return c&&l&&(i.isFunction(c)?l.style(r+"*"+o+"*"+a+"*"+s,c):i.isObject(c)&&l.style(c)),t}function h(t){var e=t.chart,n=t.options,i=n.label,s=n.colorField,c=n.type,l=o.findGeometry(e,"density"===c?"heatmap":"polygon");if(i){if(s){var u=i.callback,g=r.__rest(i,["callback"]);l.label({fields:[s],callback:u,cfg:a.transformLabel(g)})}}else l.label(!1);return t}e.adaptor=function(t){return a.flow(l,u,c.theme,g,f,c.tooltip,d,h,c.annotation(),c.interaction,c.animation)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);n(9).registerShape("polygon","circle",{draw:function(t,e){var n,i,o=t.x,a=t.y,s=this.parsePoints(t.points),c=Math.abs(s[2].x-s[1].x),l=Math.abs(s[1].y-s[0].y),u=Math.min(c,l)/2,g=Number(t.shape[1]),f=Number(t.shape[2]),d=u*Math.sqrt(f)*Math.sqrt(g),h=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("circle",{attrs:r.__assign(r.__assign(r.__assign({x:o,y:a,r:d},t.defaultStyle),t.style),{fill:h})})}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);n(9).registerShape("polygon","square",{draw:function(t,e){var n,i,o=t.x,a=t.y,s=this.parsePoints(t.points),c=Math.abs(s[2].x-s[1].x),l=Math.abs(s[1].y-s[0].y),u=Math.min(c,l),g=Number(t.shape[1]),f=Number(t.shape[2]),d=u*Math.sqrt(f)*Math.sqrt(g),h=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("rect",{attrs:r.__assign(r.__assign(r.__assign({x:o-d/2,y:a-d/2,width:d,height:d},t.defaultStyle),t.style),{fill:h})})}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=void 0;var r=n(47),i=n(20),o=n(60),a=n(395);function s(t){var e=t.chart,n=t.options,r=n.colorField,s=n.color,c=a.transform(t);e.data(c);var l=i.deepAssign({},t,{options:{xField:"x",yField:"y",seriesField:r&&"color",point:{color:s,shape:"word-cloud"}}});return o.point(l).ext.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function c(t){return i.flow(r.scale({x:{nice:!1},y:{nice:!1}}))(t)}e.adaptor=function(t){i.flow(s,c,r.tooltip,r.legend,r.interaction,r.animation,r.theme,r.state)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.functor=e.transform=e.wordCloud=void 0;var r=n(0),i={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function o(t,e){var n=function(){var t=[256,256],e=l,n=g,r=u,i=f,o=d,a=v,x=Math.random,w=[],O=1/0,S=c,_=u,k=y,j={};function E(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=s/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function P(e,n,r){for(var i,o,s,c=n.x,l=n.y,u=Math.sqrt(t[0]*t[0]+t[1]*t[1]),g=a(t),f=x()<.5?1:-1,d=-f;(i=g(d+=f))&&(o=~~i[0],s=~~i[1],!(Math.min(Math.abs(o),Math.abs(s))>=u));)if(n.x=c+o,n.y=l+s,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!p(n,e,t[0]))&&(!r||C(n,r))){for(var h=n.sprite,A=n.width>>5,v=t[0]>>5,I=n.x-(A<<4),y=127&I,m=32-y,b=n.y1-n.y0,w=void 0,O=(n.y+n.y0)*v+(I>>5),S=0;S>>y:0);O+=v}return delete n.sprite,!0}return!1}return j.start=function(){var a=t[0],s=t[1],c=E(k()),l=j.board?j.board:I((t[0]>>5)*t[1]),u=w.length,g=[],f=w.map((function(t,a,s){return t.text=S.call(this,t,a,s),t.font=e.call(this,t,a,s),t.style=_.call(this,t,a,s),t.weight=r.call(this,t,a,s),t.rotate=i.call(this,t,a,s),t.size=~~n.call(this,t,a,s),t.padding=o.call(this,t,a,s),t})).sort((function(t,e){return e.size-t.size})),d=-1,p=j.board?[{x:0,y:0},{x:a,y:s}]:null;function C(){for(var e=Date.now();Date.now()-e>1,n.y=s*(x()+.5)>>1,h(c,n,f,d),n.hasText&&P(l,n,p)&&(g.push(n),p?j.hasImage||A(p,n):p=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}j._tags=g,j._bounds=p}return C(),j},j.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var o=r>>5,a=I((r>>5)*i);n.width=r,n.height=i;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var c=s.getImageData(0,0,r,i).data,l=0;l>5),f=l*r+u<<2,d=c[f]>=250&&c[f+1]>=250&&c[f+2]>=250?1<<31-u%32:0;a[g]|=d}j.board=a,j.hasImage=!0}},j.timeInterval=function(t){O=null==t?1/0:t},j.words=function(t){w=t},j.size=function(e){t=[+e[0],+e[1]]},j.font=function(t){e=m(t)},j.fontWeight=function(t){r=m(t)},j.rotate=function(t){i=m(t)},j.spiral=function(t){a=b[t]||t},j.fontSize=function(t){n=m(t)},j.padding=function(t){o=m(t)},j.random=function(t){x=m(t)},j}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){r.isNil(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var i=n.start()._tags;i.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var o=e.size,a=o[0],x=o[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:a,y:x,opacity:0}),i}e.wordCloud=function(t,e){return o(t,e=r.assign({},i,e))},e.transform=o;var a=Math.PI/180,s=2048;function c(t){return t.text}function l(){return"serif"}function u(){return"normal"}function g(t){return t.value}function f(){return 90*~~(2*Math.random())}function d(){return 1}function h(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,2048/o,s/o);var c=0,l=0,u=0,g=n.length;for(--r;++r>5<<5,d=~~Math.max(Math.abs(C+v),Math.abs(C-v))}else f=f+31>>5<<5;if(d>u&&(u=d),c+f>=2048&&(c=0,l+=u,u=0),l+d>=s)break;i.translate((c+(f>>1))/o,(l+(d>>1))/o),e.rotate&&i.rotate(e.rotate*a),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=f,e.height=d,e.xoff=c,e.yoff=l,e.x1=f>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,c+=f}for(var y=i.getImageData(0,0,2048/o,s/o).data,m=[];--r>=0;)if((e=n[r]).hasText){for(var b=(f=e.width)>>5,x=(d=e.y1-e.y0,0);x>5),k=y[2048*(l+S)+(c+x)<<2]?1<<31-x%32:0;m[_]|=k,w|=k}w?O=S:(e.y0++,d--,S--,l++)}e.y1=e.y0+O,e.sprite=m.slice(0,(e.y1-e.y0)*b)}}}function p(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,c=32-s,l=t.y1-t.y0,u=(t.y+t.y0)*n+(a>>5),g=0;g>>s:0))&e[u+f])return!0;u+=n}return!1}function A(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function C(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0=0)&&(d=d?i.isArray(d)?d:[d]:[],g.layout=i.filter(d,(function(t){return"limit-in-shape"!==t.type})),g.layout.length||delete g.layout),c.label({fields:u||[s],callback:l,cfg:o.transformLabel(g)})}else o.log(o.LEVEL.WARN,null===a,"the label option must be an Object."),c.label({fields:[s]});return t}function u(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function g(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i}}),t}function f(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,s=n.xField,c=n.yField;return o.flow(a.scale(((e={})[s]=r,e[c]=i,e)))(t)}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return r?e.axis(o,r):e.axis(o,!1),i?e.axis(a,i):e.axis(a,!1),t}e.legend=u,e.adaptor=function(t){o.flow(c,f,l,g,d,u,a.tooltip,a.interaction,a.animation,a.theme,a.annotation(),a.state)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.meta=void 0;var r=n(47),i=n(20),o=n(393),a=n(396),s=n(662),c=n(663),l=n(664),u=n(126);function g(t){var e,n=t.options,r=n.compareField,a=n.xField,s=n.yField,c={minSize:0,maxSize:1,meta:(e={},e[u.FUNNEL_MAPPING_VALUE]={min:0,max:1,nice:!1},e),label:r?{fields:[a,s,r,u.FUNNEL_PERCENT,u.FUNNEL_CONVERSATION],style:{fill:"#fff",fontSize:12},formatter:function(t){return""+t[s]}}:{fields:[a,s,u.FUNNEL_PERCENT,u.FUNNEL_CONVERSATION],offset:0,position:"middle",style:{fill:"#fff",fontSize:12},formatter:function(t){return t[a]+" "+t[s]}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,title:a,formatter:function(t){return{name:t[a],value:t[s]}}},conversionTag:{offsetX:10,offsetY:0,style:{},formatter:function(t){return"\u8f6c\u5316\u7387: "+o.conversionTagFormatter.apply(void 0,t[u.FUNNEL_CONVERSATION])}}};return i.deepAssign({options:c},t)}function f(t){var e=t.options,n=e.compareField,r=e.dynamicHeight;return e.seriesField?c.facetFunnel(t):n?s.compareFunnel(t):r?l.dynamicHeightFunnel(t):a.basicFunnel(t)}function d(t){var e,n=t.options,o=n.xAxis,a=n.yAxis,s=n.xField,c=n.yField;return i.flow(r.scale(((e={})[s]=o,e[c]=a,e)))(t)}function h(t){return t.chart.axis(!1),t}function p(t){var e=t.chart,n=t.options.legend;return!1===n?e.legend(!1):e.legend(n),t}e.meta=d,e.adaptor=function(t){return i.flow(g,f,d,h,r.tooltip,r.interaction,p,r.animation,r.theme,r.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compareFunnel=void 0;var r=n(0),i=n(20),o=n(95),a=n(96),s=n(126),c=n(261);function l(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function u(t){var e=t.chart,n=t.options,l=n.data,u=n.xField,g=n.yField,f=n.color,d=n.compareField,h=n.isTransposed,p=n.tooltip,A=n.maxSize,C=n.minSize,v=n.label;return e.facet("mirror",{fields:[d],transpose:!h,padding:h?0:[32,0,0,0],eachView:function(t,e){var n=h?e.rowIndex:e.columnIndex;h||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var I=c.transformData(e.data,l,{yField:g,maxSize:A,minSize:C});t.data(I);var y=o.getTooltipMapping(p,[u,g,d]),m=y.fields,b=y.formatter,x=h?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};a.geometry({chart:t,options:{type:"interval",xField:u,yField:s.FUNNEL_MAPPING_VALUE,colorField:u,tooltipFields:r.isArray(m)&&m.concat([s.FUNNEL_PERCENT,s.FUNNEL_CONVERSATION]),mapping:{shape:"funnel",tooltip:b,color:f,style:{lineWidth:1,stroke:"#fff"}},label:!1!==v&&i.deepAssign({},x,v)}})}}),t}function g(t){var e=t.chart,n=t.options,r=n.conversionTag,o=n.isTransposed;return e.once("beforepaint",(function(){e.views.forEach((function(t,e){c.conversionTagComponent((function(t,n,a,c){var l=0===e?-1:1;return i.deepAssign({},c,{start:[n-.5,t[s.FUNNEL_MAPPING_VALUE]],end:[n-.5,t[s.FUNNEL_MAPPING_VALUE]+.05],text:o?{style:{textAlign:"start"}}:{offsetX:!1!==r?l*r.offsetX:0,style:{textAlign:0===e?"end":"start"}}})}))(i.deepAssign({},{chart:t,options:n}))}))})),t}e.compareFunnel=function(t){return i.flow(l,u,g)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.facetFunnel=void 0;var r=n(20),i=n(396);function o(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function a(t){var e=t.chart,n=t.options,o=n.seriesField,a=n.isTransposed;return e.facet("rect",{fields:[o],padding:[a?0:32,10,0,10],eachView:function(e,n){i.basicFunnel(r.deepAssign({},t,{chart:e,options:{data:n.data}}))}}),t}e.facetFunnel=function(t){return r.flow(o,a)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dynamicHeightFunnel=void 0;var r=n(1),i=n(0),o=n(20),a=n(126),s=n(96),c=n(95),l=n(261);function u(t){var e=t.chart,n=t.options,r=n.data,o=void 0===r?[]:r,s=n.yField,c=i.reduce(o,(function(t,e){return t+(e[s]||0)}),0),l=i.maxBy(o,s)[s],u=i.map(o,(function(t,e){var n=[],r=[];if(t[a.FUNNEL_TOTAL_PERCENT]=(t[s]||0)/c,e){var u=o[e-1][a.PLOYGON_X],g=o[e-1][a.PLOYGON_Y];n[0]=u[3],r[0]=g[3],n[1]=u[2],r[1]=g[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-t[a.FUNNEL_TOTAL_PERCENT],n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],t[a.PLOYGON_X]=n,t[a.PLOYGON_Y]=r,t[a.FUNNEL_PERCENT]=(t[s]||0)/l,t[a.FUNNEL_CONVERSATION]=[i.get(o,[e-1,s]),t[s]],t}));return e.data(u),t}function g(t){var e=t.chart,n=t.options,r=n.xField,o=n.yField,l=n.color,u=n.tooltip,g=n.label,f=c.getTooltipMapping(u,[r,o]),d=f.fields,h=f.formatter;return s.geometry({chart:e,options:{type:"polygon",xField:a.PLOYGON_X,yField:a.PLOYGON_Y,colorField:r,tooltipFields:i.isArray(d)&&d.concat([a.FUNNEL_PERCENT,a.FUNNEL_CONVERSATION]),label:g,mapping:{tooltip:h,color:l}}}),t}function f(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),t}function d(t){return l.conversionTagComponent((function(t,e,n,i){return r.__assign(r.__assign({},i),{start:[t[a.PLOYGON_X][1],t[a.PLOYGON_Y][1]],end:[t[a.PLOYGON_X][1]+.05,t[a.PLOYGON_Y][1]]})}))(t),t}e.dynamicHeightFunnel=function(t){return o.flow(u,g,f,d)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=void 0;var r=n(1),i=n(47),o=n(60),a=n(20);function s(t){var e=t.chart,n=t.options,i=n.data,s=n.lineStyle,c=n.color,l=n.point,u=n.area;e.data(i);var g=a.deepAssign({},t,{options:{line:{style:s,color:c},point:l?r.__assign({color:c},l):l,area:u?r.__assign({color:c},u):u,label:void 0}}),f=a.deepAssign({},g,{options:{tooltip:!1}});return o.line(g),o.point(f),o.area(f),t}function c(t){var e,n=t.options,r=n.xAxis,o=n.yAxis,s=n.xField,c=n.yField;return a.flow(i.scale(((e={})[s]=r,e[c]=o,e)))(t)}function l(t){var e=t.chart,n=t.options.radius;return e.coordinate("polar",{radius:n}),t}function u(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis,o=n.yField,a=n.yAxis;return e.axis(r,i),e.axis(o,a),t}function g(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,s=a.findGeometry(e,"line");if(i){var c=i.callback,l=r.__rest(i,["callback"]);s.label({fields:[o],callback:c,cfg:a.transformLabel(l)})}else s.label(!1);return t}e.adaptor=function(t){return a.flow(s,c,i.theme,l,u,i.legend,i.tooltip,g,i.interaction,i.animation,i.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(667);r.registerAction("radar-tooltip",i.RadarTooltipAction),r.registerInteraction("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RadarTooltipAction=e.RadarTooltipController=void 0;var r=n(1),i=n(9),o=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),a=n.shared,s=n.title,c=t.prototype.getTooltipItems.call(this,e);if(c.length>0){var l=this.view.geometries[0],u=l.dataArray,g=c[0].name,f=[];return u.forEach((function(t){t.forEach((function(t){var e=i.Util.getTooltipItems(t,l)[0];if(!a&&e&&e.name===g){var n=o.isNil(s)?g:s;f.push(r.__assign(r.__assign({},e),{name:e.title,title:n}))}else a&&e&&(n=o.isNil(s)?e.name||g:s,f.push(r.__assign(r.__assign({},e),{name:e.title,title:n})))}))})),f}return[]},e}(i.TooltipController);e.RadarTooltipController=a,i.registerComponentController("radar-tooltip",a);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.init=function(){this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},e}(i.Action);e.RadarTooltipAction=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.statistic=void 0;var r=n(0),i=n(47),o=n(20),a=n(60),s=n(397);function c(t){var e=t.chart,n=t.options,r=n.percent,i=n.color,c=n.liquidStyle,l=n.radius,u=n.outline,g=n.wave;e.scale({percent:{min:0,max:1}}),e.data(s.getLiquidData(r));var f=o.deepAssign({},t,{options:{xField:"type",yField:"percent",widthRatio:l,interval:{color:i,style:c,shape:"liquid-fill-gauge"}}});return a.interval(f).ext.geometry.customInfo({radius:l,outline:u,wave:g}),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function l(t,e){var n=t.chart,i=t.options,a=i.statistic,s=i.percent,c=i.meta;if(n.getController("annotation").clear(!0),a.content&&!a.content.formatter){var l=r.get(c,["percent","formatter"]);a.content.formatter=function(t){var e=t.percent;return l?l(e):(100*e).toFixed(2)+"%"}}return o.renderStatistic(n,{statistic:a,plotType:"liquid"},{percent:s}),e&&n.render(!0),t}e.statistic=l,e.adaptor=function(t){return o.flow(c,l,i.scale({}),i.animation,i.theme,i.interaction)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(9),o=n(0),a=n(394);function s(t,e,n){return t+(e-t)*n}function c(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function l(t,e,n,r,i,o,a){for(var s=4*Math.ceil(2*t/n*4),l=[],u=r;u<2*-Math.PI;)u+=2*Math.PI;for(;u>0;)u-=2*Math.PI;var g=o-t+(u=u/Math.PI/2*n)-2*t;l.push(["M",g,e]);for(var f=0,d=0;d0?p:A},I=s.deepAssign({},t,{options:{xField:o,yField:c.Y_FIELD,seriesField:o,rawFields:[u,c.DIFF_FIELD,c.IS_TOTAL,c.Y_FIELD],widthRatio:d,interval:{style:h,shape:"waterfall",color:v}}}),y=a.interval(I).ext.geometry;return y.customInfo({leaderLine:f}),y.tooltip(u),t}function g(t){var e,n,r=t.options,a=r.xAxis,l=r.yAxis,u=r.xField,g=r.yField,f=r.meta,d=s.deepAssign({},{alias:g},i.get(f,g));return s.flow(o.scale(((e={})[u]=a,e[g]=l,e[c.Y_FIELD]=l,e),s.deepAssign({},f,((n={})[c.Y_FIELD]=d,n[c.DIFF_FIELD]=d,n[c.ABSOLUTE_FIELD]=d,n))))(t)}function f(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?(e.axis(a,!1),e.axis(c.Y_FIELD,!1)):(e.axis(a,i),e.axis(c.Y_FIELD,i)),t}function d(t){var e=t.chart,n=t.options,r=n.legend,o=n.total,a=n.risingFill,c=n.fallingFill;if(!1===r)e.legend(!1);else{var l=[{name:"\u589e\u52a0",value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:"\u51cf\u5c11",value:"decrease",marker:{symbol:"square",style:{r:5,fill:c}}}];o&&l.push({name:o.label||"",value:"total",marker:{symbol:"square",style:s.deepAssign({},{r:5},i.get(o,"style"))}}),e.legend(s.deepAssign({},{custom:!0,position:"top",items:l},r)),e.removeInteraction("legend-filter")}return t}function h(t){var e=t.chart,n=t.options,i=n.label,o=n.labelMode,a=n.xField,l=s.findGeometry(e,"interval");if(i){var u=i.callback,g=r.__rest(i,["callback"]);l.label({fields:"absolute"===o?[c.ABSOLUTE_FIELD,a]:[c.DIFF_FIELD,a],callback:u,cfg:s.transformLabel(g)})}else l.label(!1);return t}function p(t){var e=t.chart,n=t.options,i=n.tooltip,o=n.yField;return!1!==i?e.tooltip(r.__assign({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},i)):e.tooltip(!1),t}n(672),e.tooltip=p,e.adaptor=function(t){return s.flow(u,g,f,d,p,h,o.state,o.theme,o.interaction,o.animation,o.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(9),o=n(0),a=n(20);i.registerShape("interval","waterfall",{draw:function(t,e){var n=t.customInfo,i=t.points,s=t.nextPoints,c=e.addGroup(),l=this.parsePath(function(t){for(var e=[],n=0;n0,f=u>0,d=function(t,e,n){var r=o.get(i,[t,e]);return o.isNumber(r)?r:"x"===n?{min:g?0:2*l,max:g?2*l:0}[e]:{min:f?0:2*u,max:f?2*u:0}[e]};return r.__assign(r.__assign({},i),((e={})[a]=r.__assign(r.__assign({},i[a]),{min:d(a,"min","x"),max:d(a,"max","x")}),e[s]=r.__assign(r.__assign({},i[s]),{min:d(s,"min","y"),max:d(s,"max","y")}),e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(9).registerInteraction("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.meta=void 0;var r=n(1),i=n(0),o=n(47),a=n(20),s=n(60),c=n(401);function l(t){var e=t.chart,n=t.options,o=n.bulletStyle,l=n.targetField,u=n.rangeField,g=n.measureField,f=n.xField,d=n.color,h=n.layout,p=n.size,A=n.label,C=c.transformData(n),v=C.min,I=C.max,y=C.ds;e.data(y);var m=a.deepAssign({},t,{options:{xField:f,yField:u,seriesField:"rKey",isStack:!0,label:i.get(A,"range"),interval:{color:i.get(d,"range"),style:i.get(o,"range"),size:i.get(p,"range")}}});s.interval(m),e.geometries[0].tooltip(!1);var b=a.deepAssign({},t,{options:{xField:f,yField:g,seriesField:"mKey",isStack:!0,label:i.get(A,"measure"),interval:{color:i.get(d,"measure"),style:i.get(o,"measure"),size:i.get(p,"measure")}}});s.interval(b);var x=a.deepAssign({},t,{options:{xField:f,yField:l,seriesField:"tKey",label:i.get(A,"target"),point:{color:i.get(d,"target"),style:i.get(o,"target"),size:i.get(p,"target")/2,shape:"horizontal"===h?"line":"hyphen"}}});return s.point(x),"horizontal"===h&&e.coordinate().transpose(),r.__assign(r.__assign({},t),{ext:{data:{min:v,max:I}}})}function u(t){var e,n,r=t.options,i=t.ext,s=r.xAxis,c=r.yAxis,l=r.targetField,u=r.rangeField,g=r.measureField,f=r.xField,d=i.data;return a.flow(o.scale(((e={})[f]=s,e[g]=c,e),((n={})[g]={min:null===d||void 0===d?void 0:d.min,max:null===d||void 0===d?void 0:d.max},n[l]={sync:""+g},n[u]={sync:""+g},n)))(t)}function g(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.measureField,s=n.rangeField,c=n.targetField;return e.axis(""+s,!1),e.axis(""+c,!1),!1===r?e.axis(""+o,!1):e.axis(""+o,r),!1===i?e.axis(""+a,!1):e.axis(""+a,i),t}function f(t){var e=t.chart,n=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(n),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function d(t){var e=t.chart,n=t.options,o=n.label,s=n.measureField,c=n.targetField,l=n.rangeField,u=e.geometries,g=u[0],f=u[1],d=u[2];return i.get(o,"range")?g.label(""+l,r.__assign({layout:[{type:"limit-in-plot"}]},a.transformLabel(o.range))):g.label(!1),i.get(o,"measure")?f.label(""+s,r.__assign({layout:[{type:"limit-in-plot"}]},a.transformLabel(o.measure))):f.label(!1),i.get(o,"target")?d.label(""+c,r.__assign({layout:[{type:"limit-in-plot"}]},a.transformLabel(o.target))):d.label(!1),t}e.meta=u,e.adaptor=function(t){a.flow(l,u,g,f,o.theme,d,o.tooltip,o.interaction,o.animation)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.statistic=void 0;var r=n(1),i=n(0),o=n(47),a=n(259),s=n(20),c=n(181),l=n(413);function u(t){var e=t.chart,n=t.options,r=n.percent,o=n.range,u=n.radius,g=n.innerRadius,f=n.startAngle,d=n.endAngle,h=n.axis,p=n.indicator,A=o.color;if(p){var C=l.getIndicatorData(r),v=e.createView({id:c.INDICATEOR_VIEW_ID});v.data(C),v.point().position(c.PERCENT+"*1").shape("gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:p}),v.coordinate("polar",{startAngle:f,endAngle:d,radius:g*u}),v.axis(c.PERCENT,h),v.scale(c.PERCENT,s.pick(h,a.AXIS_META_CONFIG_KEYS))}var I=l.getRangeData(r,n.range),y=e.createView({id:c.RANGE_VIEW_ID});y.data(I);var m=i.isString(A)?[A,c.DEFAULT_COLOR]:A;return y.interval().position("1*"+c.RANGE_VALUE).color(c.RANGE_TYPE,m).adjust("stack"),y.coordinate("polar",{innerRadius:g,radius:u,startAngle:f,endAngle:d}).transpose(),t}function g(t){var e;return s.flow(o.scale(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[c.PERCENT]={},e)))(t)}function f(t,e){var n=t.chart,i=t.options,o=i.statistic,a=i.percent;if(n.getController("annotation").clear(!0),o){var c=o.content,l=void 0;c&&(l=s.deepAssign({},{formatter:function(t){return(100*t.percent).toFixed(2)+"%"},style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},c)),s.renderGaugeStatistic(n,{statistic:r.__assign(r.__assign({},o),{content:l})},{percent:a})}return e&&n.render(!0),t}function d(t){var e=t.chart;return e.legend(!1),e.tooltip(!1),t}e.statistic=f,e.adaptor=function(t){return s.flow(o.animation,u,g,f,o.interaction,o.theme,d)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);n(9).registerShape("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,i=n.indicator,o=n.defaultColor,a=i,s=a.pointer,c=a.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return s&&l.addShape("line",{name:"pointer",attrs:r.__assign({x1:u.x,y1:u.y,x2:t.x,y2:t.y,stroke:o},s.style)}),c&&l.addShape("circle",{name:"pin",attrs:r.__assign({x:u.x,y:u.y,stroke:o},c.style)}),l}})},function(t,e,n){"use strict";n.r(e),n.d(e,"getCoordinate",(function(){return g})),n.d(e,"registerCoordinate",(function(){return f})),n.d(e,"Coordinate",(function(){return a}));var r=n(30),i=n(15),o=n(0),a=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,i=t.matrix,o=void 0===i?[1,0,0,0,1,0,0,0,1]:i,a=t.isTransposed,s=void 0!==a&&a;this.start=e,this.end=n,this.matrix=o,this.originalMatrix=Object(r.c)(o),this.isTransposed=s}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){Object(o.assign)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),i+t*(o-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),(t-i)/(o-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,o=[t,e,n];return i.vec3.transformMat3(o,o,r),o},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,o=i.mat3.invert([0,0,0,0,0,0,0,0,0],r),a=[t,e,n];return o&&i.vec3.transformMat3(a,a,o),a},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return i.ext.leftTranslate(e,e,[-n.x,-n.y]),i.ext.leftRotate(e,e,t),i.ext.leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return i.ext.leftTranslate(n,n,[-r.x,-r.y]),i.ext.leftScale(n,n,[t,e]),i.ext.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return i.ext.leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||Object(r.c)(this.originalMatrix)},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return Object(r.b)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:n,y:r}},e}(a),c=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,s=e.innerRadius,c=void 0===s?0:s,l=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=c,n.radius=l,n.initial(),n}return Object(r.b)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),o=this.a*i,a=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(o+a),y:this.center.y+Math.sin(i)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=i.vec2.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),a=i.ext.angleTo(r,[1,0],!0),s=a*this.a;i.vec2.length(r)this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-o)*e*r,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e=this.getCenter(),n=[t.x-e.x,t.y-e.y],r=[1,0,0,0,1,0,0,0,1];i.ext.leftRotate(r,r,this.startAngle);var a=[1,0,0];i.vec3.transformMat3(a,a,r);var s=[a[0],a[1]],c=i.ext.angleTo(s,n,this.endAngle0?u:-u;var g=this.invertDim(l,"y"),f={x:0,y:0};return f.x=this.isTransposed?g:u,f.y=this.isTransposed?u:g,f},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i12&&(e=parseFloat(e.toFixed(n))),e}for(;t>10;)e*=10,t/=10;return e}function v(t,e,n,r){for(var i=!1,o=A[t],a=t;a=r}function y(t){var e=t.toString(),n=e.indexOf("."),r=e.indexOf("e-"),i=r>=0?parseInt(e.substr(r+2),10):e.substr(n+1).length;return i>20&&(i=20),i}function m(t,e){return parseFloat(t.toFixed(e))}function b(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}Object(p.registerTickMethod)("linear-strict-tick-method",(function(t){var e=t||{},n=e.tickCount,r=e.tickInterval,i=t||{},o=i.min,a=i.max;o=isNaN(o)?0:o,a=isNaN(a)?0:a;var s=n&&n>=2?n:5,c=r||function(t){var e=t.tickCount,n=t.min,r=t.max;if(n===r)return 1*C(r);for(var i=(r-n)/(e-1),o=C(i),a=i/o,s=r/o,c=n/o,l=0,u=0;u1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,"b",(function(){return r})),e.a=function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}},function(t,e,n){"use strict";n.d(e,"f",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"g",(function(){return u}));var r=n(1);function i(t){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M6.5 10.995V14.5a.5.5 0 01-.5.5H2a.5.5 0 01-.5-.5v-7a.5.5 0 01.146-.354l6-6a.5.5 0 01.708 0l6 6a.5.5 0 01.146.354v7a.5.5 0 01-.5.5h-4a.5.5 0 01-.5-.5V11c0-.25-.25-.5-.5-.5H7c-.25 0-.5.25-.5.495z"}},{tag:"path",attr:{fillRule:"evenodd",d:"M13 2.5V6l-2-2V2.5a.5.5 0 01.5-.5h1a.5.5 0 01.5.5z",clipRule:"evenodd"}}]})(t)}function o(t){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M1.464 10.536a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3.5a.5.5 0 01-.5-.5v-3.5a.5.5 0 01.5-.5z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M5.964 10a.5.5 0 010 .707l-4.146 4.147a.5.5 0 01-.707-.708L5.257 10a.5.5 0 01.707 0zm8.854-8.854a.5.5 0 010 .708L10.672 6a.5.5 0 01-.708-.707l4.147-4.147a.5.5 0 01.707 0z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M10.5 1.5A.5.5 0 0111 1h3.5a.5.5 0 01.5.5V5a.5.5 0 01-1 0V2h-3a.5.5 0 01-.5-.5zm4 9a.5.5 0 00-.5.5v3h-3a.5.5 0 000 1h3.5a.5.5 0 00.5-.5V11a.5.5 0 00-.5-.5z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M10 9.964a.5.5 0 000 .708l4.146 4.146a.5.5 0 00.708-.707l-4.147-4.147a.5.5 0 00-.707 0zM1.182 1.146a.5.5 0 000 .708L5.328 6a.5.5 0 00.708-.707L1.889 1.146a.5.5 0 00-.707 0z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M5.5 1.5A.5.5 0 005 1H1.5a.5.5 0 00-.5.5V5a.5.5 0 001 0V2h3a.5.5 0 00.5-.5z",clipRule:"evenodd"}}]})(t)}function a(t){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5 2V0H0v5h2v6H0v5h5v-2h6v2h5v-5h-2V5h2V0h-5v2H5zm6 1H5v2H3v6h2v2h6v-2h2V5h-2V3zm1-2v3h3V1h-3zm3 11h-3v3h3v-3zM4 15v-3H1v3h3zM1 4h3V1H1v3z",clipRule:"evenodd"}}]})(t)}function s(t){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4 1.5H3a2 2 0 00-2 2V14a2 2 0 002 2h10a2 2 0 002-2V3.5a2 2 0 00-2-2h-1v1h1a1 1 0 011 1V14a1 1 0 01-1 1H3a1 1 0 01-1-1V3.5a1 1 0 011-1h1v-1z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M9.5 1h-3a.5.5 0 00-.5.5v1a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-1a.5.5 0 00-.5-.5zm-3-1A1.5 1.5 0 005 1.5v1A1.5 1.5 0 006.5 4h3A1.5 1.5 0 0011 2.5v-1A1.5 1.5 0 009.5 0h-3z",clipRule:"evenodd"}},{tag:"path",attr:{d:"M4 11a1 1 0 112 0v1a1 1 0 11-2 0v-1zm6-4a1 1 0 112 0v5a1 1 0 11-2 0V7zM7 9a1 1 0 012 0v3a1 1 0 11-2 0V9z"}}]})(t)}function c(t){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8.515 1.019A7 7 0 008 1V0a8 8 0 01.589.022l-.074.997zm2.004.45a7.003 7.003 0 00-.985-.299l.219-.976c.383.086.76.2 1.126.342l-.36.933zm1.37.71a7.01 7.01 0 00-.439-.27l.493-.87a8.025 8.025 0 01.979.654l-.615.789a6.996 6.996 0 00-.418-.302zm1.834 1.79a6.99 6.99 0 00-.653-.796l.724-.69c.27.285.52.59.747.91l-.818.576zm.744 1.352a7.08 7.08 0 00-.214-.468l.893-.45a7.976 7.976 0 01.45 1.088l-.95.313a7.023 7.023 0 00-.179-.483zm.53 2.507a6.991 6.991 0 00-.1-1.025l.985-.17c.067.386.106.778.116 1.17l-1 .025zm-.131 1.538c.033-.17.06-.339.081-.51l.993.123a7.957 7.957 0 01-.23 1.155l-.964-.267c.046-.165.086-.332.12-.501zm-.952 2.379c.184-.29.346-.594.486-.908l.914.405c-.16.36-.345.706-.555 1.038l-.845-.535zm-.964 1.205c.122-.122.239-.248.35-.378l.758.653a8.073 8.073 0 01-.401.432l-.707-.707z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M8 1a7 7 0 104.95 11.95l.707.707A8.001 8.001 0 118 0v1z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M7.5 3a.5.5 0 01.5.5v5.21l3.248 1.856a.5.5 0 01-.496.868l-3.5-2A.5.5 0 017 9V3.5a.5.5 0 01.5-.5z",clipRule:"evenodd"}}]})(t)}function l(t){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M15 2H1v12h14V2zM1 1a1 1 0 00-1 1v12a1 1 0 001 1h14a1 1 0 001-1V2a1 1 0 00-1-1H1z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M7.5 14V2h1v12h-1zm0-8H1V5h6.5v1zm7.5 5H8.5v-1H15v1z",clipRule:"evenodd"}}]})(t)}function u(t){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.646 1.146a.5.5 0 01.708 0l2.5 2.5a.5.5 0 010 .708l-2.5 2.5a.5.5 0 01-.708-.708L14.793 4l-2.147-2.146a.5.5 0 010-.708zm0 8a.5.5 0 01.708 0l2.5 2.5a.5.5 0 010 .708l-2.5 2.5a.5.5 0 01-.708-.708L14.793 12l-2.147-2.146a.5.5 0 010-.708z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M0 4a.5.5 0 01.5-.5h2c3.053 0 4.564 2.258 5.856 4.226l.08.123c.636.97 1.224 1.865 1.932 2.539.718.682 1.538 1.112 2.632 1.112h2a.5.5 0 010 1h-2c-1.406 0-2.461-.57-3.321-1.388-.795-.755-1.441-1.742-2.055-2.679l-.105-.159C6.186 6.242 4.947 4.5 2.5 4.5h-2A.5.5 0 010 4z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M0 12a.5.5 0 00.5.5h2c3.053 0 4.564-2.258 5.856-4.226l.08-.123c.636-.97 1.224-1.865 1.932-2.539C11.086 4.93 11.906 4.5 13 4.5h2a.5.5 0 000-1h-2c-1.406 0-2.461.57-3.321 1.388-.795.755-1.441 1.742-2.055 2.679l-.105.159C6.186 9.758 4.947 11.5 2.5 11.5h-2a.5.5 0 00-.5.5z",clipRule:"evenodd"}}]})(t)}},function(t,e,n){var r=n(228),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){"use strict";n.r(e);var r=n(347);n.d(e,"default",(function(){return r.a}))},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(32);function i(t){return Object(r.a)(t).defaultView||window}},function(t,e,n){"use strict";var r=n(567);e.a=function(t,e){return e?Object(r.a)(t,e,{clone:!1}):t}},function(t,e,n){"use strict";function r(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}function i(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},function(t,e,n){var r=n(133),i=n(21),o=n(116);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},function(t,e,n){"use strict";function r(t,e){for(var n in t)if({}.hasOwnProperty.call(t,n)&&(!{}.hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if({}.hasOwnProperty.call(e,r)&&!{}.hasOwnProperty.call(t,r))return!1;return!0}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return w}));var r=n(169),i=n.n(r),o=n(0),a=n.n(o),s=n(6),c=n.n(s),l=n(123),u=n.n(l);function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(i){n<0&&(n=i),i-n>e?(t(i),n=-1):u()(r)};u()(r)}function f(t){return(f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function h(){var t=function(){return null},e=!1,n=function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var i=d(r),o=i[0],a=i.slice(1);return"number"===typeof o?void g(n.bind(null,a),o):(n(o),void g(n.bind(null,a)))}"object"===f(r)&&t(r),"function"===typeof r&&r()}};return{stop:function(){e=!0},start:function(t){e=!1,n(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}var p=n(556),A=n.n(p);function C(t){for(var e=1;e=0&&t<=1}));var u=P(r,o),g=P(i,a),f=M(r,o),d=function(t){return t>1?1:t<0?0:t},h=function(t){for(var e=t>1?1:t,n=e,r=0;r<8;++r){var i=u(n)-e,o=f(n);if(Math.abs(i-e)0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,a=void 0===o?17:o,s=function(t,e,r){var o=r+(-(t-e)*n-r*i)*a/1e3,s=r*a/1e3+t;return Math.abs(s-e)=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function X(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0?n[i-1]:r,f=l||Object.keys(c);if("function"===typeof s||"spring"===s)return X(t).concat([e.runJSAnimation.bind(e,{from:g.style,to:c,duration:o,easing:s}),o]);var d=O(f,o,s),h=Z({},g.style,c,{transition:d});return X(t).concat([h,o,u]).filter(b)}),[a,Math.max(c,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=h());var e=t.begin,n=t.duration,r=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,s=t.onAnimationEnd,c=t.steps,l=t.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!==typeof o&&"function"!==typeof l&&"spring"!==o)if(c.length>1)this.runStepAnimation(t);else{var g=r?q({},r,i):i,f=O(Object.keys(g),n,o);u.start([a,e,Z({},g,{transition:f}),n,s])}else this.runJSAnimation(t)}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration,t.attributeName,t.easing,t.isActive),r=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,U(t,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),i=o.Children.count(e),s=w(this.state.style);if("function"===typeof e)return e(s);if(!n||0===i)return e;var c=function(t){var e=t.props,n=e.style,i=void 0===n?{}:n,a=e.className;return Object(o.cloneElement)(t,Z({},r,{style:Z({},i,s),className:a}))};return 1===i?c(o.Children.only(e)):a.a.createElement("div",null,o.Children.map(e,(function(t){return c(t)})))}}])&&K(n.prototype,r),s&&K(n,s),e}(o.PureComponent);et.displayName="Animate",et.propTypes={from:c.a.oneOfType([c.a.object,c.a.string]),to:c.a.oneOfType([c.a.object,c.a.string]),attributeName:c.a.string,duration:c.a.number,begin:c.a.number,easing:c.a.oneOfType([c.a.string,c.a.func]),steps:c.a.arrayOf(c.a.shape({duration:c.a.number.isRequired,style:c.a.object.isRequired,easing:c.a.oneOfType([c.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),c.a.func]),properties:c.a.arrayOf("string"),onAnimationEnd:c.a.func})),children:c.a.oneOfType([c.a.node,c.a.func]),isActive:c.a.bool,canBegin:c.a.bool,onAnimationEnd:c.a.func,shouldReAnimate:c.a.bool,onAnimationStart:c.a.func,onAnimationReStart:c.a.func},et.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var nt=et,rt=n(283),it=n(168),ot=n.n(it);function at(t){return(at="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function st(){return(st=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function lt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gt(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce((function(t,e){return t+(ot()(e.duration)&&e.duration>0?e.duration:0)}),0):ot()(n)?n:0},At=function(t){function e(){var t,n;ut(this,e);for(var r=arguments.length,i=new Array(r),o=0;ox;x++)if((f||x in y)&&(v=m(C=y[x],x,I),t))if(e)O[x]=v;else if(v)switch(t){case 3:return!0;case 5:return C;case 6:return x;case 2:c.call(O,C)}else if(u)return!1;return g?-1:l||u?u:O}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(t,e){t.exports={}},function(t,e,n){"use strict";n.r(e);var r=n(348);n.d(e,"default",(function(){return r.a}));var i=n(64);n.d(e,"useFormControl",(function(){return i.a}))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";n.r(e);var r=n(474);n.d(e,"default",(function(){return r.a}))},function(t,e,n){"use strict";n.r(e);var r=n(271);n.d(e,"default",(function(){return r.a}))},function(t,e,n){"use strict";n.r(e);var r=n(270);n.d(e,"default",(function(){return r.a}))},function(t,e,n){var r=n(201),i=n(851),o=n(852),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},function(t,e,n){var r=n(873),i=n(876);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){"use strict";n.r(e),n.d(e,"hexToRgb",(function(){return r.g})),n.d(e,"rgbToHex",(function(){return r.k})),n.d(e,"hslToRgb",(function(){return r.h})),n.d(e,"decomposeColor",(function(){return r.b})),n.d(e,"recomposeColor",(function(){return r.j})),n.d(e,"getContrastRatio",(function(){return r.e})),n.d(e,"getLuminance",(function(){return r.f})),n.d(e,"emphasize",(function(){return r.c})),n.d(e,"fade",(function(){return r.d})),n.d(e,"darken",(function(){return r.a})),n.d(e,"lighten",(function(){return r.i})),n.d(e,"createMuiTheme",(function(){return i.a})),n.d(e,"unstable_createMuiStrictModeTheme",(function(){return a})),n.d(e,"createStyles",(function(){return s})),n.d(e,"makeStyles",(function(){return c.a})),n.d(e,"responsiveFontSizes",(function(){return v})),n.d(e,"styled",(function(){return I.a})),n.d(e,"easing",(function(){return y.c})),n.d(e,"duration",(function(){return y.b})),n.d(e,"useTheme",(function(){return m.a})),n.d(e,"withStyles",(function(){return b.a})),n.d(e,"withTheme",(function(){return E})),n.d(e,"createGenerateClassName",(function(){return P.a})),n.d(e,"jssPreset",(function(){return M.a})),n.d(e,"ServerStyleSheets",(function(){return L})),n.d(e,"StylesProvider",(function(){return N.b})),n.d(e,"MuiThemeProvider",(function(){return F.a})),n.d(e,"ThemeProvider",(function(){return F.a}));var r=n(11),i=n(154),o=n(567);function a(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{},n=e.breakpoints,r=void 0===n?["sm","md","lg"]:n,i=e.disableAlign,o=void 0!==i&&i,a=e.factor,s=void 0===a?2:a,c=e.variants,g=void 0===c?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:c,d=Object(l.a)({},t);d.typography=Object(l.a)({},d.typography);var v=d.typography,I=h(v.htmlFontSize),y=r.map((function(t){return d.breakpoints.values[t]}));return g.forEach((function(t){var e=v[t],n=parseFloat(I(e.fontSize,"rem"));if(!(n<=1)){var r=n,i=1+(r-1)/s,a=e.lineHeight;if(!f(a)&&!o)throw new Error(Object(u.a)(6));f(a)||(a=parseFloat(I(a,"rem"))/parseFloat(n));var c=null;o||(c=function(t){return p({size:t,grid:A({pixels:4,lineHeight:a,htmlFontSize:v.htmlFontSize})})}),v[t]=Object(l.a)({},e,C({cssProperty:"fontSize",min:i,max:r,unit:"rem",breakpoints:y,transform:c}))}})),d}var I=n(258),y=n(36),m=n(22),b=n(7),x=n(4),w=n(0),O=n.n(w),S=(n(6),n(70)),_=n.n(S),k=n(366);function j(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.defaultTheme,n=function(t){var n=O.a.forwardRef((function(n,r){var i=n.innerRef,o=Object(x.a)(n,["innerRef"]),a=Object(k.a)()||e;return O.a.createElement(t,Object(l.a)({theme:a,ref:i||r},o))}));return _()(n,t),n};return n}j();var E=j({defaultTheme:n(99).a}),P=n(977),M=n(570),T=n(164),R=n(37),D=n(138),N=n(1015),L=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(T.a)(this,t),this.options=e}return Object(R.a)(t,[{key:"collect",value:function(t){var e=new Map;this.sheetsRegistry=new D.a;var n=Object(P.a)();return O.a.createElement(N.b,Object(l.a)({sheetsManager:e,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),t)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(t){return O.a.createElement("style",Object(l.a)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},t))}}]),t}(),F=n(1016)},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return g}));var r=n(58),i=n(33),o=n(23);function a(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function s(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function c(t){return t<0?-t*t:t*t}function l(t){var e=t(i.c,i.c),n=1;function o(){return 1===n?t(i.c,i.c):.5===n?t(s,c):t(a(n),a(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,o()):n},Object(r.b)(e)}function u(){var t=l(Object(i.d)());return t.copy=function(){return Object(i.a)(t,u()).exponent(t.exponent())},o.b.apply(t,arguments),t}function g(){return u.apply(null,arguments).exponent(.5)}},function(t,e,n){"use strict";n.r(e),n.d(e,"scaleBand",(function(){return r.a})),n.d(e,"scalePoint",(function(){return r.b})),n.d(e,"scaleIdentity",(function(){return a})),n.d(e,"scaleLinear",(function(){return i.a})),n.d(e,"scaleLog",(function(){return s.a})),n.d(e,"scaleSymlog",(function(){return c.a})),n.d(e,"scaleOrdinal",(function(){return l.a})),n.d(e,"scaleImplicit",(function(){return l.b})),n.d(e,"scalePow",(function(){return u.a})),n.d(e,"scaleSqrt",(function(){return u.c})),n.d(e,"scaleRadial",(function(){return p})),n.d(e,"scaleQuantile",(function(){return S})),n.d(e,"scaleQuantize",(function(){return k})),n.d(e,"scaleThreshold",(function(){return j})),n.d(e,"scaleTime",(function(){return E.b})),n.d(e,"scaleUtc",(function(){return P.a})),n.d(e,"scaleSequential",(function(){return M.b})),n.d(e,"scaleSequentialLog",(function(){return M.c})),n.d(e,"scaleSequentialPow",(function(){return M.d})),n.d(e,"scaleSequentialSqrt",(function(){return M.e})),n.d(e,"scaleSequentialSymlog",(function(){return M.f})),n.d(e,"scaleSequentialQuantile",(function(){return T})),n.d(e,"scaleDiverging",(function(){return F})),n.d(e,"scaleDivergingLog",(function(){return B})),n.d(e,"scaleDivergingPow",(function(){return V})),n.d(e,"scaleDivergingSqrt",(function(){return G})),n.d(e,"scaleDivergingSymlog",(function(){return z})),n.d(e,"tickFormat",(function(){return W.a}));var r=n(346),i=n(58),o=n(141);function a(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,o.a),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return a(t).unknown(e)},t=arguments.length?Array.from(t,o.a):[0,1],Object(i.b)(n)}var s=n(152),c=n(153),l=n(203),u=n(136),g=n(33),f=n(23);function d(t){return Math.sign(t)*t*t}function h(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function p(){var t,e=Object(g.b)(),n=[0,1],r=!1;function a(n){var i=h(e(n));return isNaN(i)?t:r?Math.round(i):i}return a.invert=function(t){return e.invert(d(t))},a.domain=function(t){return arguments.length?(e.domain(t),a):e.domain()},a.range=function(t){return arguments.length?(e.range((n=Array.from(t,o.a)).map(d)),a):n.slice()},a.rangeRound=function(t){return a.range(t).round(!0)},a.round=function(t){return arguments.length?(r=!!t,a):r},a.clamp=function(t){return arguments.length?(e.clamp(t),a):e.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return p(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},f.b.apply(a,arguments),Object(i.b)(a)}var A=n(29);function C(t,e){var n;if(void 0===e){var r,i=Object(A.a)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;null!=o&&(n=o)&&(n=o)}}catch(u){i.e(u)}finally{i.f()}}else{var a,s=-1,c=Object(A.a)(t);try{for(c.s();!(a=c.n()).done;){var l=a.value;null!=(l=e(l,++s,t))&&(n=l)&&(n=l)}}catch(u){c.e(u)}finally{c.f()}}return n}function v(t,e){var n;if(void 0===e){var r,i=Object(A.a)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;null!=o&&(n>o||void 0===n&&o>=o)&&(n=o)}}catch(u){i.e(u)}finally{i.f()}}else{var a,s=-1,c=Object(A.a)(t);try{for(c.s();!(a=c.n()).done;){var l=a.value;null!=(l=e(l,++s,t))&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(u){c.e(u)}finally{c.f()}}return n}var I=n(166);function y(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length-1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:I.a;r>n;){if(r-n>600){var o=r-n+1,a=e-n+1,s=Math.log(o),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(o-c)/o)*(a-o/2<0?-1:1),u=Math.max(n,Math.floor(e-a*c/o+l)),g=Math.min(r,Math.floor(e+(o-a)*c/o+l));y(t,e,u,g,i)}var f=t[e],d=n,h=r;for(m(t,n,e),i(t[r],f)>0&&m(t,n,r);d0;)--h}0===i(t[n],f)?m(t,n,h):m(t,++h,r),h<=e&&(n=h+1),e<=h&&(r=h-1)}return t}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}var b=n(211);function x(t,e,n){if(r=(t=Float64Array.from(Object(b.b)(t,n))).length){if((e=+e)<=0||r<2)return v(t);if(e>=1)return C(t);var r,i=(r-1)*e,o=Math.floor(i),a=C(y(t,o).subarray(0,o+1));return a+(v(t.subarray(o+1))-a)*(i-o)}}function w(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b.a;if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return a+(s-a)*(i-o)}}var O=n(1021);function S(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t0?r[i-1]:e[0],i=r?[o[r-1],n]:[o[i-1],o[i]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return o.slice()},s.copy=function(){return k().domain([e,n]).range(a).unknown(t)},f.b.apply(Object(i.b)(s),arguments)}function j(){var t,e=[.5],n=[0,1],r=1;function i(i){return i<=i?n[Object(O.a)(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return j().domain(e).range(n).unknown(t)},f.b.apply(i,arguments)}var E=n(257),P=n(530),M=n(89);function T(){var t=[],e=g.c;function n(n){if(!isNaN(n=+n))return e((Object(O.a)(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];var r,i=Object(A.a)(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;null==o||isNaN(o=+o)||t.push(o)}}catch(a){i.e(a)}finally{i.f()}return t.sort(I.a),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map((function(n,r){return e(r/(t.length-1))}))},n.quantiles=function(e){return Array.from({length:e+1},(function(n,r){return x(t,r/e)}))},n.copy=function(){return T(e).domain(t)},f.a.apply(n,arguments)}var R=n(364);function D(t,e){void 0===e&&(e=t,t=R.a);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<+~=|^:(),"'`\s])/g,C="undefined"!==typeof CSS&&CSS.escape,v=function(t){return C?C(t):t.replace(A,"\\$1")},I=function(){function t(t,e,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,i=n.Renderer;this.key=t,this.options=n,this.style=e,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return t.prototype.prop=function(t,e,n){if(void 0===e)return this.style[t];var r=!!n&&n.force;if(!r&&this.style[t]===e)return this;var i=e;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(e,t,this));var o=null==i||!1===i,a=t in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[t]:this.style[t]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,t):this.renderer.setProperty(this.renderable,t,i),this;var c=this.options.sheet;return c&&c.attached,this},t}(),y=function(t){function e(e,n,r){var i;(i=t.call(this,e,n,r)||this).selectorText=void 0,i.id=void 0,i.renderable=void 0;var o=r.selector,a=r.scoped,c=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(Object(s.a)(Object(s.a)(i)),c),i.selectorText="."+v(i.id)),i}Object(a.a)(e,t);var n=e.prototype;return n.applyTo=function(t){var e=this.renderer;if(e){var n=this.toJSON();for(var r in n)e.setProperty(t,r,n[r])}return this},n.toJSON=function(){var t={};for(var e in this.style){var n=this.style[e];"object"!==typeof n?t[e]=n:Array.isArray(n)&&(t[e]=d(n))}return t},n.toString=function(t){var e=this.options.sheet,n=!!e&&e.options.link?Object(r.a)({},t,{allowEmpty:!0}):t;return p(this.selectorText,this.style,n)},Object(o.a)(e,[{key:"selector",set:function(t){if(t!==this.selectorText){this.selectorText=t;var e=this.renderer,n=this.renderable;if(n&&e)e.setSelector(n,t)||e.replaceRule(n,this)}},get:function(){return this.selectorText}}]),e}(I),m={onCreateRule:function(t,e,n){return"@"===t[0]||n.parent&&"keyframes"===n.parent.type?null:new y(t,e,n)}},b={indent:1,children:!0},x=/@([\w-]+)/,w=function(){function t(t,e,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=t;var i=t.match(x);for(var o in this.at=i?i[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new X(Object(r.a)({},n,{parent:this})),e)this.rules.add(o,e[o]);this.rules.process()}var e=t.prototype;return e.getRule=function(t){return this.rules.get(t)},e.indexOf=function(t){return this.rules.indexOf(t)},e.addRule=function(t,e,n){var r=this.rules.add(t,e,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},e.toString=function(t){if(void 0===t&&(t=b),null==t.indent&&(t.indent=b.indent),null==t.children&&(t.children=b.children),!1===t.children)return this.query+" {}";var e=this.rules.toString(t);return e?this.query+" {\n"+e+"\n}":""},t}(),O=/@media|@supports\s+/,S={onCreateRule:function(t,e,n){return O.test(t)?new w(t,e,n):null}},_={indent:1,children:!0},k=/@keyframes\s+([\w-]+)/,j=function(){function t(t,e,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var i=t.match(k);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var c in this.id=!1===o?this.name:v(s(this,a)),this.rules=new X(Object(r.a)({},n,{parent:this})),e)this.rules.add(c,e[c],Object(r.a)({},n,{parent:this}));this.rules.process()}return t.prototype.toString=function(t){if(void 0===t&&(t=_),null==t.indent&&(t.indent=_.indent),null==t.children&&(t.children=_.children),!1===t.children)return this.at+" "+this.id+" {}";var e=this.rules.toString(t);return e&&(e="\n"+e+"\n"),this.at+" "+this.id+" {"+e+"}"},t}(),E=/@keyframes\s+/,P=/\$([\w-]+)/g,M=function(t,e){return"string"===typeof t?t.replace(P,(function(t,n){return n in e?e[n]:t})):t},T=function(t,e,n){var r=t[e],i=M(r,n);i!==r&&(t[e]=i)},R={onCreateRule:function(t,e,n){return"string"===typeof t&&E.test(t)?new j(t,e,n):null},onProcessStyle:function(t,e,n){return"style"===e.type&&n?("animation-name"in t&&T(t,"animation-name",n.keyframes),"animation"in t&&T(t,"animation",n.keyframes),t):t},onChangeValue:function(t,e,n){var r=n.options.sheet;if(!r)return t;switch(e){case"animation":case"animation-name":return M(t,r.keyframes);default:return t}}},D=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i=this.index)e.push(t);else for(var r=0;rn)return void e.splice(r,0,t)},e.reset=function(){this.registry=[]},e.remove=function(t){var e=this.registry.indexOf(t);this.registry.splice(e,1)},e.toString=function(t){for(var e=void 0===t?{}:t,n=e.attached,r=Object(c.a)(e,["attached"]),i="",o=0;o0){var n=function(t,e){for(var n=0;ne.index&&r.options.insertionPoint===e.insertionPoint)return r}return null}(e,t);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.attached&&r.options.insertionPoint===e.insertionPoint)return r}return null}(e,t))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=t.insertionPoint;if(r&&"string"===typeof r){var i=function(t){for(var e=st(),n=0;nn?n:e},ft=function(){function t(t){this.getPropertyValue=rt,this.setProperty=it,this.removeProperty=ot,this.setSelector=at,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],t&&Q.add(t),this.sheet=t;var e=this.sheet?this.sheet.options:{},n=e.media,r=e.meta,i=e.element;this.element=i||function(){var t=document.createElement("style");return t.textContent="\n",t}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=lt();o&&this.element.setAttribute("nonce",o)}var e=t.prototype;return e.attach=function(){if(!this.element.parentNode&&this.sheet){!function(t,e){var n=e.insertionPoint,r=ct(e);if(!1!==r&&r.parent)r.parent.insertBefore(t,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(t,i.nextSibling)}else st().appendChild(t)}(this.element,this.sheet.options);var t=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&t&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var t=this.element.parentNode;t&&t.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},e.deploy=function(){var t=this.sheet;t&&(t.options.link?this.insertRules(t.rules):this.element.textContent="\n"+t.toString()+"\n")},e.insertRules=function(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];return t&&(r(t.value)&&""!==t.value||e&&r(t.defaultValue)&&""!==t.defaultValue)}function o(t){return t.startAdornment}n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";function r(t){return+t}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(934)("toUpperCase");t.exports=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return _}));var r=n(16),i=n.n(r),o=n(0),a=n.n(o),s=n(287),c=n.n(s),l=n(19),u=n.n(l),g=n(8),f=n(101),d=n(15),h=n(82);function p(t){return(p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function A(){return(A=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function I(t,e){for(var n=0;n0){for(;f<=d;++f)for(u=1,l=n(f);uc)break;A.push(g)}}else for(;f<=d;++f)for(u=h-1,l=n(f);u>=1;--u)if(!((g=l*u)c)break;A.push(g)}2*A.length0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.a)({paddingLeft:e(2),paddingRight:e(2)},n,Object(r.a)({},t.up("sm"),Object(s.a)({paddingLeft:e(3),paddingRight:e(3)},n[t.up("sm")])))},toolbar:(i={minHeight:56},Object(r.a)(i,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(i,t.up("sm"),{minHeight:64}),i)},n)}var l=n(367),u=n(139),g=n(157),f=n(158),d=n(159),h=n(160),p=n(161),A=n(162),C=n(163),v=n(11),I={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.a.white,default:g.a[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},y={text:{primary:u.a.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:g.a[800],default:"#303030"},action:{active:u.a.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(t,e,n,r){var i=r.light||r,o=r.dark||1.5*r;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:"light"===e?t.light=Object(v.i)(t.main,i):"dark"===e&&(t.dark=Object(v.a)(t.main,o)))}function b(t){var e=t.primary,n=void 0===e?{light:f.a[300],main:f.a[500],dark:f.a[700]}:e,r=t.secondary,a=void 0===r?{light:d.a.A200,main:d.a.A400,dark:d.a.A700}:r,c=t.error,b=void 0===c?{light:h.a[300],main:h.a[500],dark:h.a[700]}:c,x=t.warning,w=void 0===x?{light:p.a[300],main:p.a[500],dark:p.a[700]}:x,O=t.info,S=void 0===O?{light:A.a[300],main:A.a[500],dark:A.a[700]}:O,_=t.success,k=void 0===_?{light:C.a[300],main:C.a[500],dark:C.a[700]}:_,j=t.type,E=void 0===j?"light":j,P=t.contrastThreshold,M=void 0===P?3:P,T=t.tonalOffset,R=void 0===T?.2:T,D=Object(i.a)(t,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function N(t){return Object(v.e)(t,y.text.primary)>=M?y.text.primary:I.text.primary}var L=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(t=Object(s.a)({},t)).main&&t[e]&&(t.main=t[e]),!t.main)throw new Error(Object(l.a)(4,e));if("string"!==typeof t.main)throw new Error(Object(l.a)(5,JSON.stringify(t.main)));return m(t,"light",n,R),m(t,"dark",r,R),t.contrastText||(t.contrastText=N(t.main)),t},F={dark:y,light:I};return Object(o.a)(Object(s.a)({common:u.a,type:E,primary:L(n),secondary:L(a,"A400","A200","A700"),error:L(b),warning:L(w),info:L(S),success:L(k),grey:g.a,contrastThreshold:M,getContrastText:N,augmentColor:L,tonalOffset:R},F[E]),D)}function x(t){return Math.round(1e5*t)/1e5}var w={textTransform:"uppercase"},O='"Roboto", "Helvetica", "Arial", sans-serif';function S(t,e){var n="function"===typeof e?e(t):e,r=n.fontFamily,a=void 0===r?O:r,c=n.fontSize,l=void 0===c?14:c,u=n.fontWeightLight,g=void 0===u?300:u,f=n.fontWeightRegular,d=void 0===f?400:f,h=n.fontWeightMedium,p=void 0===h?500:h,A=n.fontWeightBold,C=void 0===A?700:A,v=n.htmlFontSize,I=void 0===v?16:v,y=n.allVariants,m=n.pxToRem,b=Object(i.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var S=l/14,_=m||function(t){return"".concat(t/I*S,"rem")},k=function(t,e,n,r,i){return Object(s.a)({fontFamily:a,fontWeight:t,fontSize:_(e),lineHeight:n},a===O?{letterSpacing:"".concat(x(r/e),"em")}:{},i,y)},j={h1:k(g,96,1.167,-1.5),h2:k(g,60,1.2,-.5),h3:k(d,48,1.167,0),h4:k(d,34,1.235,.25),h5:k(d,24,1.334,0),h6:k(p,20,1.6,.15),subtitle1:k(d,16,1.75,.15),subtitle2:k(p,14,1.57,.1),body1:k(d,16,1.5,.15),body2:k(d,14,1.43,.15),button:k(p,14,1.75,.4,w),caption:k(d,12,1.66,.4),overline:k(d,12,2.66,1,w)};return Object(o.a)(Object(s.a)({htmlFontSize:I,pxToRem:_,round:x,fontFamily:a,fontSize:l,fontWeightLight:g,fontWeightRegular:d,fontWeightMedium:p,fontWeightBold:C},j),b,{clone:!1})}function _(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var k=["none",_(0,2,1,-1,0,1,1,0,0,1,3,0),_(0,3,1,-2,0,2,2,0,0,1,5,0),_(0,3,3,-2,0,3,4,0,0,1,8,0),_(0,2,4,-1,0,4,5,0,0,1,10,0),_(0,3,5,-1,0,5,8,0,0,1,14,0),_(0,3,5,-1,0,6,10,0,0,1,18,0),_(0,4,5,-2,0,7,10,1,0,2,16,1),_(0,5,5,-3,0,8,10,1,0,3,14,2),_(0,5,6,-3,0,9,12,1,0,3,16,2),_(0,6,6,-3,0,10,14,1,0,4,18,3),_(0,6,7,-4,0,11,15,1,0,4,20,3),_(0,7,8,-4,0,12,17,2,0,5,22,4),_(0,7,8,-4,0,13,19,2,0,5,24,4),_(0,7,9,-4,0,14,21,2,0,5,26,4),_(0,8,9,-5,0,15,22,2,0,6,28,5),_(0,8,10,-5,0,16,24,2,0,6,30,5),_(0,8,11,-5,0,17,26,2,0,6,32,5),_(0,9,11,-5,0,18,28,2,0,7,34,6),_(0,9,12,-6,0,19,29,2,0,7,36,6),_(0,10,13,-6,0,20,31,3,0,8,38,7),_(0,10,13,-6,0,21,33,3,0,8,40,7),_(0,10,14,-6,0,22,35,3,0,8,42,7),_(0,11,14,-7,0,23,36,3,0,9,44,8),_(0,11,15,-7,0,24,38,3,0,9,46,8)],j={borderRadius:4},E=n(1036);function P(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var e=Object(E.a)({spacing:t}),n=function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},e=t.breakpoints,n=void 0===e?{}:e,r=t.mixins,s=void 0===r?{}:r,l=t.palette,u=void 0===l?{}:l,g=t.spacing,f=t.typography,d=void 0===f?{}:f,h=Object(i.a)(t,["breakpoints","mixins","palette","spacing","typography"]),p=b(u),A=Object(a.a)(n),C=P(g),v=Object(o.a)({breakpoints:A,direction:"ltr",mixins:c(A,C,s),overrides:{},palette:p,props:{},shadows:k,typography:S(p,d),spacing:C,shape:j,transitions:M.a,zIndex:T.a},h),I=arguments.length,y=new Array(I>1?I-1:0),m=1;me?1:t>=e?0:NaN}},function(t,e,n){var r=n(345),i=n(922),o=n(516),a=n(253),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},function(t,e,n){var r=n(133),i=n(116);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},function(t,e,n){var r=n(339);t.exports=function(t,e){return r(t,e)}},function(t,e,n){"use strict";Array.prototype.slice;e.a=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(0),i=n.n(r),o=n(19),a=n.n(o),s=n(122),c=n(15);function l(t){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(){return(u=Object.assign||function(t){for(var e=1;e=0?1:-1,c=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],g=0;g<4;g++)u[g]=i[g]>a?a:i[g];o="M".concat(t,",").concat(e+s*u[0]),u[0]>0&&(o+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(t+c*u[0],",").concat(e)),o+="L ".concat(t+n-c*u[1],",").concat(e),u[1]>0&&(o+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,",\n ").concat(t+n,",").concat(e+s*u[1])),o+="L ".concat(t+n,",").concat(e+r-s*u[2]),u[2]>0&&(o+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,",\n ").concat(t+n-c*u[2],",").concat(e+r)),o+="L ".concat(t+c*u[3],",").concat(e+r),u[3]>0&&(o+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+r-s*u[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var f=Math.min(a,i);o="M ".concat(t,",").concat(e+s*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(l,",").concat(t+c*f,",").concat(e,"\n L ").concat(t+n-c*f,",").concat(e,"\n A ").concat(f,",").concat(f,",0,0,").concat(l,",").concat(t+n,",").concat(e+s*f,"\n L ").concat(t+n,",").concat(e+r-s*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(l,",").concat(t+n-c*f,",").concat(e+r,"\n L ").concat(t+c*f,",").concat(e+r,"\n A ").concat(f,",").concat(f,",0,0,").concat(l,",").concat(t,",").concat(e+r-s*f," Z")}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},v=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(l,t);var e,n,r,o=h(l);function l(){var t;g(this,l);for(var e=arguments.length,n=new Array(e),r=0;r0,from:{width:o,height:l,x:n,y:r},to:{width:o,height:l,x:n,y:r},duration:A,animationEasing:p,isActive:y},(function(e){var n=e.width,r=e.height,o=e.x,a=e.y;return i.a.createElement(s.a,{canBegin:d>0,from:"0px ".concat(-1===d?1:d,"px"),to:"".concat(d,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:A,isActive:I,easing:p},i.a.createElement("path",u({},Object(c.c)(t.props,!0),{className:m,d:C(o,a,n,r,g),ref:function(e){t.node=e}})))})):i.a.createElement("path",u({},Object(c.c)(this.props,!0),{className:m,d:C(n,r,o,l,g)}))}}])&&f(e.prototype,n),r&&f(e,r),l}(r.PureComponent);v.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"}},function(t,e,n){"use strict";var r=n(0),i=n.n(r);e.a=i.a.createContext(null)},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){var r=n(932)();t.exports=r},function(t,e,n){var r=n(168);t.exports=function(t){return r(t)&&t!=+t}},function(t,e,n){var r=n(107),i=n(945);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},,,,function(t,e,n){var r=n(68),i=n(225),o=n(181),a=n(94),s=n(227),c=n(84),l=n(439),u=Object.getOwnPropertyDescriptor;e.f=r?u:function(t,e){if(t=a(t),e=s(e,!0),l)try{return u(t,e)}catch(n){}if(c(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(442),i=n(316);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(42),i=n(61),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},function(t,e,n){"use strict";var r=n(227),i=n(125),o=n(181);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},function(t,e){t.exports=!0},function(t,e,n){var r=n(182);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(324),i=n(182),o=n(53)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),o))?n:a?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(52),i=n(53),o=n(327),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){"use strict";function r(t,e,n,r,i){return null}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(481);n.d(e,"default",(function(){return r.a}))},function(t,e,n){"use strict";n.r(e);var r=n(475);n.d(e,"default",(function(){return r.a}))},function(t,e,n){"use strict";n.r(e);var r=n(349);n.d(e,"default",(function(){return r.a}))},function(t,e,n){"use strict";n.r(e);var r=n(350);n.d(e,"default",(function(){return r.a}))},function(t,e,n){"use strict";n.r(e);var r=n(477);n.d(e,"default",(function(){return r.a}))},function(t,e,n){"use strict";n.r(e);var r=n(483);n.d(e,"default",(function(){return r.a}))},function(t,e,n){"use strict";n.r(e);var r=n(351);n.d(e,"default",(function(){return r.a}))},function(t,e,n){"use strict";n.r(e);var r=n(485);n.d(e,"default",(function(){return r.a}))},function(t,e,n){var r=n(97).Symbol;t.exports=r},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,a=[e,n].concat(Object(o.a)(r)),s=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(t.children,(function(t){1===t.nodeType&&-1===a.indexOf(t)&&-1===s.indexOf(t.tagName)&&l(t,i)}))}function f(t,e){var n=-1;return t.some((function(t,r){return!!e(t)&&(n=r,!0)})),n}function d(t,e){var n,r=[],i=[],o=t.container;if(!e.disableScrollLock){if(function(t){var e=Object(s.a)(t);return e.body===t?Object(c.a)(e).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}(o)){var l=Object(a.a)();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(u(o)+l,"px"),n=Object(s.a)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(t){i.push(t.style.paddingRight),t.style.paddingRight="".concat(u(t)+l,"px")}))}var g=o.parentElement,f="HTML"===g.nodeName&&"scroll"===window.getComputedStyle(g)["overflow-y"]?g:o;r.push({value:f.style.overflow,key:"overflow",el:f}),f.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(t,e){i[e]?t.style.paddingRight=i[e]:t.style.removeProperty("padding-right")})),r.forEach((function(t){var e=t.value,n=t.el,r=t.key;e?n.style.setProperty(r,e):n.style.removeProperty(r)}))}}var h=function(){function t(){Object(r.a)(this,t),this.modals=[],this.containers=[]}return Object(i.a)(t,[{key:"add",value:function(t,e){var n=this.modals.indexOf(t);if(-1!==n)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&l(t.modalRef,!1);var r=function(t){var e=[];return[].forEach.call(t.children,(function(t){t.getAttribute&&"true"===t.getAttribute("aria-hidden")&&e.push(t)})),e}(e);g(e,t.mountNode,t.modalRef,r,!0);var i=f(this.containers,(function(t){return t.container===e}));return-1!==i?(this.containers[i].modals.push(t),n):(this.containers.push({modals:[t],container:e,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(t,e){var n=f(this.containers,(function(e){return-1!==e.modals.indexOf(t)})),r=this.containers[n];r.restore||(r.restore=d(r,e))}},{key:"remove",value:function(t){var e=this.modals.indexOf(t);if(-1===e)return e;var n=f(this.containers,(function(e){return-1!==e.modals.indexOf(t)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(e,1),0===r.modals.length)r.restore&&r.restore(),t.modalRef&&l(t.modalRef,!0),g(r.container,t.mountNode,t.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&l(i.modalRef,!1)}return e}},{key:"isTopModal",value:function(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}]),t}()},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=s)){i.next=9;break}return i.next=9,s;case 9:i.next=4;break;case 11:i.next=16;break;case 13:i.prev=13,i.t0=i.catch(2),n.e(i.t0);case 16:return i.prev=16,n.f(),i.finish(16);case 19:i.next=40;break;case 21:c=-1,l=Object(o.a)(t),i.prev=23,l.s();case 25:if((u=l.n()).done){i.next=32;break}if(g=u.value,!(null!=(g=e(g,++c,t))&&(g=+g)>=g)){i.next=30;break}return i.next=30,g;case 30:i.next=25;break;case 32:i.next=37;break;case 34:i.prev=34,i.t1=i.catch(23),l.e(i.t1);case 37:return i.prev=37,l.f(),i.finish(37);case 40:case"end":return i.stop()}}),a,null,[[2,13,16,19],[23,34,37,40]])}e.a=function(t){return null===t?NaN:+t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(19),a=n.n(o),s=n(15);function c(){return(c=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function u(t){var e=t.children,n=t.width,r=t.height,o=t.viewBox,u=t.className,g=t.style,f=l(t,["children","width","height","viewBox","className","style"]),d=o||{width:n,height:r,x:0,y:0},h=a()("recharts-surface",u);return i.a.createElement("svg",c({},Object(s.c)(f,!0,!0),{className:h,width:n,height:r,style:g,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),version:"1.1"}),e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return It}));var r=n(14),i=n.n(r),o=n(176),a=n.n(o),s=n(0),c=n.n(s),l=n(19),u=n.n(l),g=n(212),f=n(142),d=n.n(f),h=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),p=2*h;var A={draw:function(t,e){var n=Math.sqrt(e/h);t.moveTo(n,0),t.arc(0,0,n,0,p)}},C={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},v=Math.sqrt(1/3),I=2*v,y={draw:function(t,e){var n=Math.sqrt(e/I),r=n*v;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},m={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},b=Math.sin(h/10)/Math.sin(7*h/10),x=Math.sin(p/10)*b,w=-Math.cos(p/10)*b,O={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=x*n,i=w*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=p*o/5,s=Math.cos(a),c=Math.sin(a);t.lineTo(c*n,-s*n),t.lineTo(s*r-c*i,c*r+s*i)}t.closePath()}},S=Math.sqrt(3),_={draw:function(t,e){var n=-Math.sqrt(e/(3*S));t.moveTo(0,2*n),t.lineTo(-S*n,-n),t.lineTo(S*n,-n),t.closePath()}},k=-.5,j=Math.sqrt(3)/2,E=1/Math.sqrt(12),P=3*(E/2+1),M={draw:function(t,e){var n=Math.sqrt(e/P),r=n/2,i=n*E,o=r,a=n*E+n,s=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,c),t.lineTo(k*r-j*i,j*r+k*i),t.lineTo(k*o-j*a,j*o+k*a),t.lineTo(k*s-j*c,j*s+k*c),t.lineTo(k*r+j*i,k*i-j*r),t.lineTo(k*o+j*a,k*a-j*o),t.lineTo(k*s+j*c,k*c-j*s),t.closePath()}},T=n(1030),R=n(31),D=n(15);function N(t){return(N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(){return(L=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ct(t){return t.value}function vt(t,e){return!0===t?a()(e,Ct):i()(t)?a()(e,t):e}var It=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ft(t,e)}(a,t);var e,n,r,o=dt(a);function a(){var t;ut(this,a);for(var e=arguments.length,n=new Array(e),r=0;r=0&&n>=0?{width:e,height:n}:null}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,s=r.margin,c=r.chartWidth,l=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((c||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===o?{right:s&&s.right||0}:{left:s&&s.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((l||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),ct(ct({},e),n)}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-e)>1||Math.abs(i.height-n)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},(function(){r&&r(i)}))}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,o=e.height,a=e.wrapperStyle,s=e.payloadUniqBy,l=e.payload,u=ct(ct({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return c.a.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){if(c.a.isValidElement(t))return c.a.cloneElement(t,e);if(i()(t))return c.a.createElement(t,e);e.ref;var n=At(e,["ref"]);return c.a.createElement(it,n)}(n,ct(ct({},this.props),{},{payload:vt(s,l)})))}}])&>(e.prototype,n),r&>(e,r),a}(s.PureComponent);It.displayName="Legend",It.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"}},function(t,e,n){var r;!function(i){var o=/^\s+/,a=/\s+$/,s=0,c=i.round,l=i.min,u=i.max,g=i.random;function f(t,e){if(e=e||{},(t=t||"")instanceof f)return t;if(!(this instanceof f))return new f(t,e);var n=function(t){var e={r:0,g:0,b:0},n=1,r=null,s=null,c=null,g=!1,f=!1;"string"==typeof t&&(t=function(t){t=t.replace(o,"").replace(a,"").toLowerCase();var e,n=!1;if(E[t])t=E[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=z.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=z.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=z.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=z.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=z.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=z.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=z.hex8.exec(t))return{r:D(e[1]),g:D(e[2]),b:D(e[3]),a:B(e[4]),format:n?"name":"hex8"};if(e=z.hex6.exec(t))return{r:D(e[1]),g:D(e[2]),b:D(e[3]),format:n?"name":"hex"};if(e=z.hex4.exec(t))return{r:D(e[1]+""+e[1]),g:D(e[2]+""+e[2]),b:D(e[3]+""+e[3]),a:B(e[4]+""+e[4]),format:n?"name":"hex8"};if(e=z.hex3.exec(t))return{r:D(e[1]+""+e[1]),g:D(e[2]+""+e[2]),b:D(e[3]+""+e[3]),format:n?"name":"hex"};return!1}(t));"object"==typeof t&&(V(t.r)&&V(t.g)&&V(t.b)?(d=t.r,h=t.g,p=t.b,e={r:255*T(d,255),g:255*T(h,255),b:255*T(p,255)},g=!0,f="%"===String(t.r).substr(-1)?"prgb":"rgb"):V(t.h)&&V(t.s)&&V(t.v)?(r=L(t.s),s=L(t.v),e=function(t,e,n){t=6*T(t,360),e=T(e,100),n=T(n,100);var r=i.floor(t),o=t-r,a=n*(1-e),s=n*(1-o*e),c=n*(1-(1-o)*e),l=r%6;return{r:255*[n,s,a,a,c,n][l],g:255*[c,n,n,s,a,a][l],b:255*[a,a,c,n,n,s][l]}}(t.h,r,s),g=!0,f="hsv"):V(t.h)&&V(t.s)&&V(t.l)&&(r=L(t.s),c=L(t.l),e=function(t,e,n){var r,i,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=T(t,360),e=T(e,100),n=T(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,c=2*n-s;r=a(c,s,t+1/3),i=a(c,s,t),o=a(c,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,r,c),g=!0,f="hsl"),t.hasOwnProperty("a")&&(n=t.a));var d,h,p;return n=M(n),{ok:g,format:t.format||f,r:l(255,u(e.r,0)),g:l(255,u(e.g,0)),b:l(255,u(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=s++}function d(t,e,n){t=T(t,255),e=T(e,255),n=T(n,255);var r,i,o=u(t,e,n),a=l(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var c=o-a;switch(i=s>.5?c/(2-o-a):c/(o+a),o){case t:r=(e-n)/c+(e>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(f(r));return o}function j(t,e){e=e||6;for(var n=f(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(f({h:r,s:i,v:o})),o=(o+s)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=M(t),this._roundA=c(100*this._a)/100,this},toHsv:function(){var t=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=h(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),r=c(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=d(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=d(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),r=c(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return p(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[N(c(t).toString(16)),N(c(e).toString(16)),N(c(n).toString(16)),N(F(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*T(this._r,255))+"%",g:c(100*T(this._g,255))+"%",b:c(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*T(this._r,255))+"%, "+c(100*T(this._g,255))+"%, "+c(100*T(this._b,255))+"%)":"rgba("+c(100*T(this._r,255))+"%, "+c(100*T(this._g,255))+"%, "+c(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+A(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=f(t);n="#"+A(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(I,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},f.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:L(t[r]));t=n}return f(t,e)},f.equals=function(t,e){return!(!t||!e)&&f(t).toRgbString()==f(e).toRgbString()},f.random=function(){return f.fromRatio({r:g(),g:g(),b:g()})},f.mix=function(t,e,n){n=0===n?0:n||50;var r=f(t).toRgb(),i=f(e).toRgb(),o=n/100;return f({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},f.readability=function(t,e){var n=f(t),r=f(e);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(t,e,n){var r,i,o=f.readability(t,e);switch(i=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},f.mostReadable=function(t,e,n){var r,i,o,a,s=null,c=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var l=0;lc&&(c=r,s=f(e[l]));return f.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,f.mostReadable(t,["#fff","#000"],n))};var E=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=f.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(E);function M(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function T(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"===typeof t&&-1!=t.indexOf("%")}(t);return t=l(e,u(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),i.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function R(t){return l(1,u(0,t))}function D(t){return parseInt(t,16)}function N(t){return 1==t.length?"0"+t:""+t}function L(t){return t<=1&&(t=100*t+"%"),t}function F(t){return i.round(255*parseFloat(t)).toString(16)}function B(t){return D(t)/255}var z=function(){var t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",e="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+e),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+e),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+e),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function V(t){return!!z.CSS_UNIT.exec(t)}t.exports?t.exports=f:void 0===(r=function(){return f}.call(e,n,e,t))||(t.exports=r)}(Math)},function(t,e,n){(function(t){t.exports=function(){"use strict";var e,n;function r(){return e.apply(null,arguments)}function i(t){e=t}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(s(t,e))return!1;return!0}function l(t){return void 0===t}function u(t){return"number"===typeof t||"[object Number]"===Object.prototype.toString.call(t)}function g(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,e){var n,r=[];for(n=0;n>>0;for(e=0;e0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},B={};function z(t,e,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),t&&(B[t]=i),e&&(B[e[0]]=function(){return D(i.apply(this,arguments),e[1],e[2])}),n&&(B[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function V(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function G(t){var e,n,r=t.match(N);for(e=0,n=r.length;e=0&&L.test(t);)t=t.replace(L,r),L.lastIndex=0,n-=1;return t}var H={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function U(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(N).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var X="Invalid date";function Z(){return this._invalidDate}var q="%d",K=/\d{1,2}/;function Q(t){return this._ordinal.replace("%d",t)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function $(t,e,n,r){var i=this._relativeTime[n];return j(i)?i(t,e,n,r):i.replace(/%d/i,t)}function tt(t,e){var n=this._relativeTime[t>0?"future":"past"];return j(n)?n(e):n.replace(/%s/i,e)}var et={};function nt(t,e){var n=t.toLowerCase();et[n]=et[n+"s"]=et[e]=t}function rt(t){return"string"===typeof t?et[t]||et[t.toLowerCase()]:void 0}function it(t){var e,n,r={};for(n in t)s(t,n)&&(e=rt(n))&&(r[e]=t[n]);return r}var ot={};function at(t,e){ot[t]=e}function st(t){var e,n=[];for(e in t)s(t,e)&&n.push({unit:e,priority:ot[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}function ct(t){return t%4===0&&t%100!==0||t%400===0}function lt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ut(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=lt(e)),n}function gt(t,e){return function(n){return null!=n?(dt(this,t,n),r.updateOffset(this,e),this):ft(this,t)}}function ft(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function dt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&ct(t.year())&&1===t.month()&&29===t.date()?(n=ut(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),$t(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function ht(t){return j(this[t=rt(t)])?this[t]():this}function pt(t,e){if("object"===typeof t){var n,r=st(t=it(t));for(n=0;n68?1900:2e3)};var Ae=gt("FullYear",!0);function Ce(){return ct(this.year())}function ve(t,e,n,r,i,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,o,a),s}function Ie(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function ye(t,e,n){var r=7+e-n;return-(7+Ie(t,0,r).getUTCDay()-e)%7+r-1}function me(t,e,n,r,i){var o,a,s=1+7*(e-1)+(7+n-r)%7+ye(t,r,i);return s<=0?a=pe(o=t-1)+s:s>pe(t)?(o=t+1,a=s-pe(t)):(o=t,a=s),{year:o,dayOfYear:a}}function be(t,e,n){var r,i,o=ye(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?r=a+xe(i=t.year()-1,e,n):a>xe(t.year(),e,n)?(r=a-xe(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function xe(t,e,n){var r=ye(t,e,n),i=ye(t+1,e,n);return(pe(t)-r+i)/7}function we(t){return be(t,this._week.dow,this._week.doy).week}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),nt("week","w"),nt("isoWeek","W"),at("week",5),at("isoWeek",5),Rt("w",bt),Rt("ww",bt,vt),Rt("W",bt),Rt("WW",bt,vt),zt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=ut(t)}));var Oe={dow:0,doy:6};function Se(){return this._week.dow}function _e(){return this._week.doy}function ke(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function je(t){var e=be(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ee(t,e){return"string"!==typeof t?t:isNaN(t)?"number"===typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Pe(t,e){return"string"===typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Me(t,e){return t.slice(e,7).concat(t.slice(0,e))}z("d",0,"do","day"),z("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),z("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),z("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),nt("day","d"),nt("weekday","e"),nt("isoWeekday","E"),at("day",11),at("weekday",11),at("isoWeekday",11),Rt("d",bt),Rt("e",bt),Rt("E",bt),Rt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Rt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Rt("dddd",(function(t,e){return e.weekdaysRegex(t)})),zt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:A(n).invalidWeekday=t})),zt(["d","e","E"],(function(t,e,n,r){e[r]=ut(t)}));var Te="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Re="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),De="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ne=Tt,Le=Tt,Fe=Tt;function Be(t,e){var n=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Me(n,this._week.dow):t?n[t.day()]:n}function ze(t){return!0===t?Me(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ve(t){return!0===t?Me(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ge(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Gt.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Gt.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Gt.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=Gt.call(this._weekdaysParse,a))||-1!==(i=Gt.call(this._shortWeekdaysParse,a))||-1!==(i=Gt.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Gt.call(this._shortWeekdaysParse,a))||-1!==(i=Gt.call(this._weekdaysParse,a))||-1!==(i=Gt.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Gt.call(this._minWeekdaysParse,a))||-1!==(i=Gt.call(this._weekdaysParse,a))||-1!==(i=Gt.call(this._shortWeekdaysParse,a))?i:null}function We(t,e,n){var r,i,o;if(this._weekdaysParseExact)return Ge.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function Ye(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ee(t,this.localeData()),this.add(t-e,"d")):e}function He(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ue(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Pe(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Xe(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ne),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ze(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Le),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qe(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ke(){function t(t,e){return e.length-t.length}var e,n,r,i,o,a=[],s=[],c=[],l=[];for(e=0;e<7;e++)n=h([2e3,1]).day(e),r=Lt(this.weekdaysMin(n,"")),i=Lt(this.weekdaysShort(n,"")),o=Lt(this.weekdays(n,"")),a.push(r),s.push(i),c.push(o),l.push(r),l.push(i),l.push(o);a.sort(t),s.sort(t),c.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qe(){return this.hours()%12||12}function Je(){return this.hours()||24}function $e(t,e){z(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function tn(t,e){return e._meridiemParse}function en(t){return"p"===(t+"").toLowerCase().charAt(0)}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Qe),z("k",["kk",2],0,Je),z("hmm",0,0,(function(){return""+Qe.apply(this)+D(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Qe.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),$e("a",!0),$e("A",!1),nt("hour","h"),at("hour",13),Rt("a",tn),Rt("A",tn),Rt("H",bt),Rt("h",bt),Rt("k",bt),Rt("HH",bt,vt),Rt("hh",bt,vt),Rt("kk",bt,vt),Rt("hmm",xt),Rt("hmmss",wt),Rt("Hmm",xt),Rt("Hmmss",wt),Bt(["H","HH"],Ut),Bt(["k","kk"],(function(t,e,n){var r=ut(t);e[Ut]=24===r?0:r})),Bt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Bt(["h","hh"],(function(t,e,n){e[Ut]=ut(t),A(n).bigHour=!0})),Bt("hmm",(function(t,e,n){var r=t.length-2;e[Ut]=ut(t.substr(0,r)),e[Xt]=ut(t.substr(r)),A(n).bigHour=!0})),Bt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Ut]=ut(t.substr(0,r)),e[Xt]=ut(t.substr(r,2)),e[Zt]=ut(t.substr(i)),A(n).bigHour=!0})),Bt("Hmm",(function(t,e,n){var r=t.length-2;e[Ut]=ut(t.substr(0,r)),e[Xt]=ut(t.substr(r))})),Bt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Ut]=ut(t.substr(0,r)),e[Xt]=ut(t.substr(r,2)),e[Zt]=ut(t.substr(i))}));var nn=/[ap]\.?m?\.?/i,rn=gt("Hours",!0);function on(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:T,longDateFormat:H,invalidDate:X,ordinal:q,dayOfMonthOrdinalParse:K,relativeTime:J,months:te,monthsShort:ee,week:Oe,weekdays:Te,weekdaysMin:De,weekdaysShort:Re,meridiemParse:nn},cn={},ln={};function un(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n0;){if(r=dn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&un(i,n)>=e-1)break;e--}o++}return an}function dn(e){var n=null;if(void 0===cn[e]&&"undefined"!==typeof t&&t&&t.exports)try{n=an._abbr,function(){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}(),hn(n)}catch(r){cn[e]=null}return cn[e]}function hn(t,e){var n;return t&&((n=l(e)?Cn(t):pn(t,e))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),an._abbr}function pn(t,e){if(null!==e){var n,r=sn;if(e.abbr=t,null!=cn[t])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[t]._config;else if(null!=e.parentLocale)if(null!=cn[e.parentLocale])r=cn[e.parentLocale]._config;else{if(null==(n=dn(e.parentLocale)))return ln[e.parentLocale]||(ln[e.parentLocale]=[]),ln[e.parentLocale].push({name:t,config:e}),null;r=n._config}return cn[t]=new M(P(r,e)),ln[t]&&ln[t].forEach((function(t){pn(t.name,t.config)})),hn(t),cn[t]}return delete cn[t],null}function An(t,e){if(null!=e){var n,r,i=sn;null!=cn[t]&&null!=cn[t].parentLocale?cn[t].set(P(cn[t]._config,e)):(null!=(r=dn(t))&&(i=r._config),e=P(i,e),null==r&&(e.abbr=t),(n=new M(e)).parentLocale=cn[t],cn[t]=n),hn(t)}else null!=cn[t]&&(null!=cn[t].parentLocale?(cn[t]=cn[t].parentLocale,t===hn()&&hn(t)):null!=cn[t]&&delete cn[t]);return cn[t]}function Cn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return an;if(!o(t)){if(e=dn(t))return e;t=[t]}return fn(t)}function vn(){return S(cn)}function In(t){var e,n=t._a;return n&&-2===A(t).overflow&&(e=n[Yt]<0||n[Yt]>11?Yt:n[Ht]<1||n[Ht]>$t(n[Wt],n[Yt])?Ht:n[Ut]<0||n[Ut]>24||24===n[Ut]&&(0!==n[Xt]||0!==n[Zt]||0!==n[qt])?Ut:n[Xt]<0||n[Xt]>59?Xt:n[Zt]<0||n[Zt]>59?Zt:n[qt]<0||n[qt]>999?qt:-1,A(t)._overflowDayOfYear&&(eHt)&&(e=Ht),A(t)._overflowWeeks&&-1===e&&(e=Kt),A(t)._overflowWeekday&&-1===e&&(e=Qt),A(t).overflow=e),t}var yn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bn=/Z|[+-]\d\d(?::?\d\d)?/,xn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],On=/^\/?Date\((-?\d+)/i,Sn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_n={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kn(t){var e,n,r,i,o,a,s=t._i,c=yn.exec(s)||mn.exec(s);if(c){for(A(t).iso=!0,e=0,n=xn.length;epe(o)||0===t._dayOfYear)&&(A(t)._overflowDayOfYear=!0),n=Ie(o,0,t._dayOfYear),t._a[Yt]=n.getUTCMonth(),t._a[Ht]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Ut]&&0===t._a[Xt]&&0===t._a[Zt]&&0===t._a[qt]&&(t._nextDay=!0,t._a[Ut]=0),t._d=(t._useUTC?Ie:ve).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ut]=24),t._w&&"undefined"!==typeof t._w.d&&t._w.d!==i&&(A(t).weekdayMismatch=!0)}}function Bn(t){var e,n,r,i,o,a,s,c,l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,a=4,n=Nn(e.GG,t._a[Wt],be(Zn(),1,4).year),r=Nn(e.W,1),((i=Nn(e.E,1))<1||i>7)&&(c=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,l=be(Zn(),o,a),n=Nn(e.gg,t._a[Wt],l.year),r=Nn(e.w,l.week),null!=e.d?((i=e.d)<0||i>6)&&(c=!0):null!=e.e?(i=e.e+o,(e.e<0||e.e>6)&&(c=!0)):i=o),r<1||r>xe(n,o,a)?A(t)._overflowWeeks=!0:null!=c?A(t)._overflowWeekday=!0:(s=me(n,r,i,o,a),t._a[Wt]=s.year,t._dayOfYear=s.dayOfYear)}function zn(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],A(t).empty=!0;var e,n,i,o,a,s,c=""+t._i,l=c.length,u=0;for(i=Y(t._f,t._locale).match(N)||[],e=0;e0&&A(t).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),u+=n.length),B[o]?(n?A(t).empty=!1:A(t).unusedTokens.push(o),Vt(o,n,t)):t._strict&&!n&&A(t).unusedTokens.push(o);A(t).charsLeftOver=l-u,c.length>0&&A(t).unusedInput.push(c),t._a[Ut]<=12&&!0===A(t).bigHour&&t._a[Ut]>0&&(A(t).bigHour=void 0),A(t).parsedDateParts=t._a.slice(0),A(t).meridiem=t._meridiem,t._a[Ut]=Vn(t._locale,t._a[Ut],t._meridiem),null!==(s=A(t).era)&&(t._a[Wt]=t._locale.erasConvertYear(s,t._a[Wt])),Fn(t),In(t)}else Rn(t);else kn(t)}function Vn(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function Gn(t){var e,n,r,i,o,a,s=!1;if(0===t._f.length)return A(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;ithis?this:t:v()}));function Qn(t,e){var n,r;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Zn();for(n=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function mr(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t,e={};return m(e,this),(e=Hn(e))._a?(t=e._isUTC?h(e._a):Zn(e._a),this._isDSTShifted=this.isValid()&&cr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function br(){return!!this.isValid()&&!this._isUTC}function xr(){return!!this.isValid()&&this._isUTC}function wr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Or=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Sr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _r(t,e){var n,r,i,o=t,a=null;return ar(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:u(t)||!isNaN(+t)?(o={},e?o[e]=+t:o.milliseconds=+t):(a=Or.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:ut(a[Ht])*n,h:ut(a[Ut])*n,m:ut(a[Xt])*n,s:ut(a[Zt])*n,ms:ut(sr(1e3*a[qt]))*n}):(a=Sr.exec(t))?(n="-"===a[1]?-1:1,o={y:kr(a[2],n),M:kr(a[3],n),w:kr(a[4],n),d:kr(a[5],n),h:kr(a[6],n),m:kr(a[7],n),s:kr(a[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(i=Er(Zn(o.from),Zn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new or(o),ar(t)&&s(t,"_locale")&&(r._locale=t._locale),ar(t)&&s(t,"_isValid")&&(r._isValid=t._isValid),r}function kr(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function jr(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Er(t,e){var n;return t.isValid()&&e.isValid()?(e=fr(e,t),t.isBefore(e)?n=jr(t,e):((n=jr(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pr(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(k(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Mr(this,_r(n,r),t),this}}function Mr(t,e,n,i){var o=e._milliseconds,a=sr(e._days),s=sr(e._months);t.isValid()&&(i=null==i||i,s&&le(t,ft(t,"Month")+s*n),a&&dt(t,"Date",ft(t,"Date")+a*n),o&&t._d.setTime(t._d.valueOf()+o*n),i&&r.updateOffset(t,a||s))}_r.fn=or.prototype,_r.invalid=ir;var Tr=Pr(1,"add"),Rr=Pr(-1,"subtract");function Dr(t){return"string"===typeof t||t instanceof String}function Nr(t){return x(t)||g(t)||Dr(t)||u(t)||Fr(t)||Lr(t)||null===t||void 0===t}function Lr(t){var e,n,r=a(t)&&!c(t),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(e=0;en.valueOf():n.valueOf()9999?W(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):j(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $r(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(t+e+n+r)}function ti(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=W(this,t);return this.localeData().postformat(e)}function ei(t,e){return this.isValid()&&(x(t)&&t.isValid()||Zn(t).isValid())?_r({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ni(t){return this.from(Zn(),t)}function ri(t,e){return this.isValid()&&(x(t)&&t.isValid()||Zn(t).isValid())?_r({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ii(t){return this.to(Zn(),t)}function oi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=Cn(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ai=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function si(){return this._locale}var ci=1e3,li=60*ci,ui=60*li,gi=3506328*ui;function fi(t,e){return(t%e+e)%e}function di(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-gi:new Date(t,e,n).valueOf()}function hi(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-gi:Date.UTC(t,e,n)}function pi(t){var e,n;if(void 0===(t=rt(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?hi:di,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=fi(e+(this._isUTC?0:this.utcOffset()*li),ui);break;case"minute":e=this._d.valueOf(),e-=fi(e,li);break;case"second":e=this._d.valueOf(),e-=fi(e,ci)}return this._d.setTime(e),r.updateOffset(this,!0),this}function Ai(t){var e,n;if(void 0===(t=rt(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?hi:di,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=ui-fi(e+(this._isUTC?0:this.utcOffset()*li),ui)-1;break;case"minute":e=this._d.valueOf(),e+=li-fi(e,li)-1;break;case"second":e=this._d.valueOf(),e+=ci-fi(e,ci)-1}return this._d.setTime(e),r.updateOffset(this,!0),this}function Ci(){return this._d.valueOf()-6e4*(this._offset||0)}function vi(){return Math.floor(this.valueOf()/1e3)}function Ii(){return new Date(this.valueOf())}function yi(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function mi(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function bi(){return this.isValid()?this.toISOString():null}function xi(){return C(this)}function wi(){return d({},A(this))}function Oi(){return A(this).overflow}function Si(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function _i(t,e){var n,i,o,a=this._eras||Cn("en")._eras;for(n=0,i=a.length;n=0)return c[r]}function ji(t,e){var n=t.since<=t.until?1:-1;return void 0===e?r(t.since).year():r(t.since).year()+(e-t.offset)*n}function Ei(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t(o=xe(t,r,i))&&(e=o),Ki.call(this,t,e,n,r,i))}function Ki(t,e,n,r,i){var o=me(t,e,n,r,i),a=Ie(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Qi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),Rt("N",Li),Rt("NN",Li),Rt("NNN",Li),Rt("NNNN",Fi),Rt("NNNNN",Bi),Bt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?A(n).era=i:A(n).invalidEra=t})),Rt("y",kt),Rt("yy",kt),Rt("yyy",kt),Rt("yyyy",kt),Rt("yo",zi),Bt(["y","yy","yyy","yyyy"],Wt),Bt(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Wt]=n._locale.eraYearOrdinalParse(t,i):e[Wt]=parseInt(t,10)})),z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Gi("gggg","weekYear"),Gi("ggggg","weekYear"),Gi("GGGG","isoWeekYear"),Gi("GGGGG","isoWeekYear"),nt("weekYear","gg"),nt("isoWeekYear","GG"),at("weekYear",1),at("isoWeekYear",1),Rt("G",jt),Rt("g",jt),Rt("GG",bt,vt),Rt("gg",bt,vt),Rt("GGGG",St,yt),Rt("gggg",St,yt),Rt("GGGGG",_t,mt),Rt("ggggg",_t,mt),zt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=ut(t)})),zt(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),z("Q",0,"Qo","quarter"),nt("quarter","Q"),at("quarter",7),Rt("Q",Ct),Bt("Q",(function(t,e){e[Yt]=3*(ut(t)-1)})),z("D",["DD",2],"Do","date"),nt("date","D"),at("date",9),Rt("D",bt),Rt("DD",bt,vt),Rt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Bt(["D","DD"],Ht),Bt("Do",(function(t,e){e[Ht]=ut(t.match(bt)[0])}));var Ji=gt("Date",!0);function $i(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}z("DDD",["DDDD",3],"DDDo","dayOfYear"),nt("dayOfYear","DDD"),at("dayOfYear",4),Rt("DDD",Ot),Rt("DDDD",It),Bt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=ut(t)})),z("m",["mm",2],0,"minute"),nt("minute","m"),at("minute",14),Rt("m",bt),Rt("mm",bt,vt),Bt(["m","mm"],Xt);var to=gt("Minutes",!1);z("s",["ss",2],0,"second"),nt("second","s"),at("second",15),Rt("s",bt),Rt("ss",bt,vt),Bt(["s","ss"],Zt);var eo,no,ro=gt("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),nt("millisecond","ms"),at("millisecond",16),Rt("S",Ot,Ct),Rt("SS",Ot,vt),Rt("SSS",Ot,It),eo="SSSS";eo.length<=9;eo+="S")Rt(eo,kt);function io(t,e){e[qt]=ut(1e3*("0."+t))}for(eo="S";eo.length<=9;eo+="S")Bt(eo,io);function oo(){return this._isUTC?"UTC":""}function ao(){return this._isUTC?"Coordinated Universal Time":""}no=gt("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var so=b.prototype;function co(t){return Zn(1e3*t)}function lo(){return Zn.apply(null,arguments).parseZone()}function uo(t){return t}so.add=Tr,so.calendar=Vr,so.clone=Gr,so.diff=qr,so.endOf=Ai,so.format=ti,so.from=ei,so.fromNow=ni,so.to=ri,so.toNow=ii,so.get=ht,so.invalidAt=Oi,so.isAfter=Wr,so.isBefore=Yr,so.isBetween=Hr,so.isSame=Ur,so.isSameOrAfter=Xr,so.isSameOrBefore=Zr,so.isValid=xi,so.lang=ai,so.locale=oi,so.localeData=si,so.max=Kn,so.min=qn,so.parsingFlags=wi,so.set=pt,so.startOf=pi,so.subtract=Rr,so.toArray=yi,so.toObject=mi,so.toDate=Ii,so.toISOString=Jr,so.inspect=$r,"undefined"!==typeof Symbol&&null!=Symbol.for&&(so[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),so.toJSON=bi,so.toString=Qr,so.unix=vi,so.valueOf=Ci,so.creationData=Si,so.eraName=Ei,so.eraNarrow=Pi,so.eraAbbr=Mi,so.eraYear=Ti,so.year=Ae,so.isLeapYear=Ce,so.weekYear=Wi,so.isoWeekYear=Yi,so.quarter=so.quarters=Qi,so.month=ue,so.daysInMonth=ge,so.week=so.weeks=ke,so.isoWeek=so.isoWeeks=je,so.weeksInYear=Xi,so.weeksInWeekYear=Zi,so.isoWeeksInYear=Hi,so.isoWeeksInISOWeekYear=Ui,so.date=Ji,so.day=so.days=Ye,so.weekday=He,so.isoWeekday=Ue,so.dayOfYear=$i,so.hour=so.hours=rn,so.minute=so.minutes=to,so.second=so.seconds=ro,so.millisecond=so.milliseconds=no,so.utcOffset=hr,so.utc=Ar,so.local=Cr,so.parseZone=vr,so.hasAlignedHourOffset=Ir,so.isDST=yr,so.isLocal=br,so.isUtcOffset=xr,so.isUtc=wr,so.isUTC=wr,so.zoneAbbr=oo,so.zoneName=ao,so.dates=O("dates accessor is deprecated. Use date instead.",Ji),so.months=O("months accessor is deprecated. Use month instead",ue),so.years=O("years accessor is deprecated. Use year instead",Ae),so.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",pr),so.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",mr);var go=M.prototype;function fo(t,e,n,r){var i=Cn(),o=h().set(r,e);return i[n](o,t)}function ho(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return fo(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=fo(t,r,n,"month");return i}function po(t,e,n,r){"boolean"===typeof t?(u(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,u(e)&&(n=e,e=void 0),e=e||"");var i,o=Cn(),a=t?o._week.dow:0,s=[];if(null!=n)return fo(e,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=fo(e,(i+a)%7,r,"day");return s}function Ao(t,e){return ho(t,e,"months")}function Co(t,e){return ho(t,e,"monthsShort")}function vo(t,e,n){return po(t,e,n,"weekdays")}function Io(t,e,n){return po(t,e,n,"weekdaysShort")}function yo(t,e,n){return po(t,e,n,"weekdaysMin")}go.calendar=R,go.longDateFormat=U,go.invalidDate=Z,go.ordinal=Q,go.preparse=uo,go.postformat=uo,go.relativeTime=$,go.pastFuture=tt,go.set=E,go.eras=_i,go.erasParse=ki,go.erasConvertYear=ji,go.erasAbbrRegex=Di,go.erasNameRegex=Ri,go.erasNarrowRegex=Ni,go.months=oe,go.monthsShort=ae,go.monthsParse=ce,go.monthsRegex=de,go.monthsShortRegex=fe,go.week=we,go.firstDayOfYear=_e,go.firstDayOfWeek=Se,go.weekdays=Be,go.weekdaysMin=Ve,go.weekdaysShort=ze,go.weekdaysParse=We,go.weekdaysRegex=Xe,go.weekdaysShortRegex=Ze,go.weekdaysMinRegex=qe,go.isPM=en,go.meridiem=on,hn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===ut(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=O("moment.lang is deprecated. Use moment.locale instead.",hn),r.langData=O("moment.langData is deprecated. Use moment.localeData instead.",Cn);var mo=Math.abs;function bo(){var t=this._data;return this._milliseconds=mo(this._milliseconds),this._days=mo(this._days),this._months=mo(this._months),t.milliseconds=mo(t.milliseconds),t.seconds=mo(t.seconds),t.minutes=mo(t.minutes),t.hours=mo(t.hours),t.months=mo(t.months),t.years=mo(t.years),this}function xo(t,e,n,r){var i=_r(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function wo(t,e){return xo(this,t,e,1)}function Oo(t,e){return xo(this,t,e,-1)}function So(t){return t<0?Math.floor(t):Math.ceil(t)}function _o(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,c=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*So(jo(s)+a),a=0,s=0),c.milliseconds=o%1e3,t=lt(o/1e3),c.seconds=t%60,e=lt(t/60),c.minutes=e%60,n=lt(e/60),c.hours=n%24,a+=lt(n/24),s+=i=lt(ko(a)),a-=So(jo(i)),r=lt(s/12),s%=12,c.days=a,c.months=s,c.years=r,this}function ko(t){return 4800*t/146097}function jo(t){return 146097*t/4800}function Eo(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=rt(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+ko(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(jo(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Po(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ut(this._months/12):NaN}function Mo(t){return function(){return this.as(t)}}var To=Mo("ms"),Ro=Mo("s"),Do=Mo("m"),No=Mo("h"),Lo=Mo("d"),Fo=Mo("w"),Bo=Mo("M"),zo=Mo("Q"),Vo=Mo("y");function Go(){return _r(this)}function Wo(t){return t=rt(t),this.isValid()?this[t+"s"]():NaN}function Yo(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ho=Yo("milliseconds"),Uo=Yo("seconds"),Xo=Yo("minutes"),Zo=Yo("hours"),qo=Yo("days"),Ko=Yo("months"),Qo=Yo("years");function Jo(){return lt(this.days()/7)}var $o=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ea(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function na(t,e,n,r){var i=_r(t).abs(),o=$o(i.as("s")),a=$o(i.as("m")),s=$o(i.as("h")),c=$o(i.as("d")),l=$o(i.as("M")),u=$o(i.as("w")),g=$o(i.as("y")),f=o<=n.ss&&["s",o]||o0,f[4]=r,ea.apply(null,f)}function ra(t){return void 0===t?$o:"function"===typeof t&&($o=t,!0)}function ia(t,e){return void 0!==ta[t]&&(void 0===e?ta[t]:(ta[t]=e,"s"===t&&(ta.ss=e-1),!0))}function oa(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ta;return"object"===typeof t&&(e=t,t=!1),"boolean"===typeof t&&(i=t),"object"===typeof e&&(o=Object.assign({},ta,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),r=na(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var aa=Math.abs;function sa(t){return(t>0)-(t<0)||+t}function ca(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,o,a,s,c=aa(this._milliseconds)/1e3,l=aa(this._days),u=aa(this._months),g=this.asSeconds();return g?(t=lt(c/60),e=lt(t/60),c%=60,t%=60,n=lt(u/12),u%=12,r=c?c.toFixed(3).replace(/\.?0+$/,""):"",i=g<0?"-":"",o=sa(this._months)!==sa(g)?"-":"",a=sa(this._days)!==sa(g)?"-":"",s=sa(this._milliseconds)!==sa(g)?"-":"",i+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(l?a+l+"D":"")+(e||t||c?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(c?s+r+"S":"")):"P0D"}var la=or.prototype;return la.isValid=rr,la.abs=bo,la.add=wo,la.subtract=Oo,la.as=Eo,la.asMilliseconds=To,la.asSeconds=Ro,la.asMinutes=Do,la.asHours=No,la.asDays=Lo,la.asWeeks=Fo,la.asMonths=Bo,la.asQuarters=zo,la.asYears=Vo,la.valueOf=Po,la._bubble=_o,la.clone=Go,la.get=Wo,la.milliseconds=Ho,la.seconds=Uo,la.minutes=Xo,la.hours=Zo,la.days=qo,la.weeks=Jo,la.months=Ko,la.years=Qo,la.humanize=oa,la.toISOString=ca,la.toString=ca,la.toJSON=ca,la.locale=oi,la.localeData=si,la.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),la.lang=ai,z("X",0,0,"unix"),z("x",0,0,"valueOf"),Rt("x",jt),Rt("X",Mt),Bt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Bt("x",(function(t,e,n){n._d=new Date(ut(t))})),r.version="2.29.1",i(Zn),r.fn=so,r.min=Jn,r.max=$n,r.now=tr,r.utc=h,r.unix=co,r.months=Ao,r.isDate=g,r.locale=hn,r.invalid=v,r.duration=_r,r.isMoment=x,r.weekdays=vo,r.parseZone=lo,r.localeData=Cn,r.isDuration=ar,r.monthsShort=Co,r.weekdaysMin=yo,r.defineLocale=pn,r.updateLocale=An,r.locales=vn,r.weekdaysShort=Io,r.normalizeUnits=rt,r.relativeTimeRounding=ra,r.relativeTimeThreshold=ia,r.calendarFormat=zr,r.prototype=so,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(129)(t))},function(t,e,n){var r=n(519),i=n(940),o=n(151);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},function(t,e,n){var r=n(519),i=n(941),o=n(151);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},,,,,,,function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(52),i=n(182),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(76);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports={}},function(t,e,n){var r,i=n(95),o=n(441),a=n(316),s=n(229),c=n(622),l=n(440),u=n(231),g=u("IE_PROTO"),f=function(){},d=function(t){return"