nautobot 2.4.21__py3-none-any.whl → 3.0.0a3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nautobot might be problematic. Click here for more details.
- nautobot/apps/choices.py +2 -2
- nautobot/apps/filters.py +9 -9
- nautobot/apps/forms.py +2 -0
- nautobot/apps/models.py +7 -2
- nautobot/apps/ui.py +20 -1
- nautobot/apps/utils.py +2 -3
- nautobot/apps/views.py +7 -1
- nautobot/circuits/filters.py +8 -23
- nautobot/circuits/navigation.py +3 -1
- nautobot/circuits/templates/circuits/circuit_create.html +9 -9
- nautobot/circuits/templates/circuits/circuit_terminations_swap.html +2 -2
- nautobot/circuits/templates/circuits/circuittermination_create.html +24 -33
- nautobot/circuits/templates/circuits/inc/circuit_termination.html +10 -10
- nautobot/circuits/templates/circuits/inc/circuit_termination_cable_fragment.html +13 -13
- nautobot/circuits/templates/circuits/inc/circuit_termination_header_extra_content.html +6 -6
- nautobot/circuits/templates/circuits/inc/circuit_termination_speed_fragment.html +3 -3
- nautobot/circuits/templates/circuits/inc/speed_widget.html +13 -13
- nautobot/circuits/templates/circuits/provider_create.html +9 -9
- nautobot/circuits/tests/integration/test_circuit.py +19 -19
- nautobot/circuits/tests/integration/test_circuits_bulk_operations.py +3 -0
- nautobot/circuits/tests/integration/test_relationships.py +4 -12
- nautobot/circuits/views.py +0 -2
- nautobot/cloud/filters.py +1 -13
- nautobot/cloud/navigation.py +3 -1
- nautobot/cloud/templates/cloud/cloudnetwork_update.html +9 -9
- nautobot/cloud/templates/cloud/cloudservice_update.html +6 -6
- nautobot/core/api/fields.py +30 -2
- nautobot/core/api/schema.py +1 -1
- nautobot/core/api/serializers.py +9 -2
- nautobot/core/api/urls.py +2 -0
- nautobot/core/api/views.py +58 -37
- nautobot/core/apps/__init__.py +6 -12
- nautobot/core/branching.py +83 -0
- nautobot/core/celery/__init__.py +11 -6
- nautobot/core/celery/backends.py +2 -0
- nautobot/core/celery/encoders.py +7 -0
- nautobot/core/celery/task.py +44 -0
- nautobot/core/checks.py +60 -0
- nautobot/core/cli/bootstrap_v3_to_v5.py +776 -0
- nautobot/core/constants.py +9 -0
- nautobot/core/context_processors.py +84 -0
- nautobot/core/filters.py +131 -2
- nautobot/core/forms/__init__.py +4 -2
- nautobot/core/forms/fields.py +10 -8
- nautobot/core/forms/forms.py +21 -9
- nautobot/core/forms/search.py +0 -15
- nautobot/core/forms/widgets.py +3 -2
- nautobot/core/graphql/__init__.py +8 -26
- nautobot/core/graphql/generators.py +16 -6
- nautobot/core/graphql/schema.py +1 -1
- nautobot/core/graphql/schema_init.py +1 -2
- nautobot/core/graphql/utils.py +7 -9
- nautobot/core/jobs/__init__.py +158 -0
- nautobot/core/management/commands/generate_test_data.py +28 -9
- nautobot/core/models/__init__.py +17 -2
- nautobot/core/models/fields.py +3 -2
- nautobot/core/models/generics.py +9 -1
- nautobot/core/models/name_color_content_types.py +1 -1
- nautobot/core/models/ordering.py +7 -5
- nautobot/core/models/querysets.py +77 -2
- nautobot/core/models/tree_queries.py +6 -4
- nautobot/core/settings.py +30 -16
- nautobot/core/settings.yaml +13 -7
- nautobot/core/tables.py +114 -44
- nautobot/core/templates/403.html +1 -1
- nautobot/core/templates/403_csrf_failure.html +1 -1
- nautobot/core/templates/404.html +1 -1
- nautobot/core/templates/40x.html +8 -8
- nautobot/core/templates/500.html +10 -10
- nautobot/core/templates/about.html +13 -12
- nautobot/core/templates/admin/actions.html +1 -1
- nautobot/core/templates/admin/app_index.html +3 -3
- nautobot/core/templates/admin/base.html +45 -52
- nautobot/core/templates/admin/base_site.html +0 -9
- nautobot/core/templates/admin/change_form.html +5 -5
- nautobot/core/templates/admin/change_list.html +8 -12
- nautobot/core/templates/admin/change_list_results.html +3 -3
- nautobot/core/templates/admin/config/config.html +24 -24
- nautobot/core/templates/admin/delete_confirmation.html +5 -5
- nautobot/core/templates/admin/edit_inline/stacked.html +5 -5
- nautobot/core/templates/admin/edit_inline/tabular.html +3 -3
- nautobot/core/templates/admin/includes/fieldset.html +15 -15
- nautobot/core/templates/admin/index.html +8 -8
- nautobot/core/templates/admin/submit_line.html +5 -5
- nautobot/core/templates/base_django.html +36 -32
- nautobot/core/templates/buttons/add.html +1 -1
- nautobot/core/templates/buttons/consolidated_detail_view_action_buttons.html +2 -2
- nautobot/core/templates/buttons/export.html +17 -18
- nautobot/core/templates/buttons/job_import.html +2 -2
- nautobot/core/templates/components/breadcrumbs.html +19 -17
- nautobot/core/templates/components/button/dropdown.html +7 -5
- nautobot/core/templates/components/echarts.html +2 -0
- nautobot/core/templates/components/layout/one_over_two.html +3 -3
- nautobot/core/templates/components/layout/two_over_one.html +3 -3
- nautobot/core/templates/components/panel/body_content_data_table.html +2 -2
- nautobot/core/templates/components/panel/body_content_tags.html +1 -1
- nautobot/core/templates/components/panel/body_wrapper_generic.html +4 -2
- nautobot/core/templates/components/panel/body_wrapper_generic_table.html +1 -1
- nautobot/core/templates/components/panel/body_wrapper_key_value_table.html +5 -3
- nautobot/core/templates/components/panel/body_wrapper_table.html +4 -2
- nautobot/core/templates/components/panel/footer_contacts_table.html +4 -4
- nautobot/core/templates/components/panel/footer_content_table.html +3 -3
- nautobot/core/templates/components/panel/grouping_toggle.html +12 -11
- nautobot/core/templates/components/panel/header_extra_content_table.html +2 -11
- nautobot/core/templates/components/panel/panel.html +6 -3
- nautobot/core/templates/components/panel/stats_panel_body.html +9 -7
- nautobot/core/templates/components/tab/content_wrapper.html +29 -1
- nautobot/core/templates/components/tab/label_wrapper.html +10 -2
- nautobot/core/templates/components/tab/label_wrapper_distinct_view.html +11 -4
- nautobot/core/templates/echarts/echarts.html +20 -0
- nautobot/core/templates/exceptions/import_error.html +2 -2
- nautobot/core/templates/exceptions/permission_error.html +1 -1
- nautobot/core/templates/exceptions/programming_error.html +2 -2
- nautobot/core/templates/generic/object_bulk_add_component.html +29 -20
- nautobot/core/templates/generic/object_bulk_create.html +87 -75
- nautobot/core/templates/generic/object_bulk_destroy.html +35 -37
- nautobot/core/templates/generic/object_bulk_remove.html +30 -26
- nautobot/core/templates/generic/object_bulk_rename.html +53 -40
- nautobot/core/templates/generic/object_bulk_update.html +36 -29
- nautobot/core/templates/generic/object_create.html +40 -27
- nautobot/core/templates/generic/object_import.html +36 -24
- nautobot/core/templates/generic/object_list.html +279 -215
- nautobot/core/templates/generic/object_notes.html +21 -11
- nautobot/core/templates/generic/object_retrieve.html +161 -213
- nautobot/core/templates/graphene/graphiql.html +113 -60
- nautobot/core/templates/home.html +164 -87
- nautobot/core/templates/import_success.html +3 -2
- nautobot/core/templates/inc/ajax_loader.html +1 -1
- nautobot/core/templates/inc/computed_fields/panel_data.html +25 -13
- nautobot/core/templates/inc/created_updated.html +12 -7
- nautobot/core/templates/inc/custom_fields/panel_data.html +28 -16
- nautobot/core/templates/inc/custom_fields_panel.html +3 -3
- nautobot/core/templates/inc/dynamic_groups_panel.html +3 -3
- nautobot/core/templates/inc/extras_features_edit_form_fields.html +15 -15
- nautobot/core/templates/inc/footer.html +90 -40
- nautobot/core/templates/inc/form_static_field.html +6 -0
- nautobot/core/templates/inc/header.html +75 -0
- nautobot/core/templates/inc/header_banners.html +17 -0
- nautobot/core/templates/inc/header_messages.html +6 -0
- nautobot/core/templates/inc/image_attachments.html +9 -9
- nautobot/core/templates/inc/javascript.html +7 -24
- nautobot/core/templates/inc/media.html +4 -29
- nautobot/core/templates/inc/modal.html +2 -2
- nautobot/core/templates/inc/nav_favorites.html +27 -0
- nautobot/core/templates/inc/nav_menu.html +150 -108
- nautobot/core/templates/inc/object_details_advanced_panel.html +84 -71
- nautobot/core/templates/inc/page_title.html +23 -0
- nautobot/core/templates/inc/paginator.html +39 -28
- nautobot/core/templates/inc/relationships/panel_override.html +3 -3
- nautobot/core/templates/inc/relationships_panel.html +3 -3
- nautobot/core/templates/inc/relationships_table_rows.html +1 -1
- nautobot/core/templates/inc/search_panel.html +22 -16
- nautobot/core/templates/inc/table.html +61 -36
- nautobot/core/templates/inc/tenancy_form_panel.html +3 -3
- nautobot/core/templates/login.html +17 -59
- nautobot/core/templates/modals/modal_theme.html +12 -23
- nautobot/core/templates/nautobot_config.py.j2 +6 -5
- nautobot/core/templates/panel_table.html +8 -12
- nautobot/core/templates/redoc_ui.html +80 -0
- nautobot/core/templates/rest_framework/api.html +43 -21
- nautobot/core/templates/search.html +12 -13
- nautobot/core/templates/swagger_ui.html +19 -4
- nautobot/core/templates/system_jobs/import_objects.html +70 -58
- nautobot/core/templates/template.css +0 -6
- nautobot/core/templates/utilities/comment_form.html +34 -0
- nautobot/core/templates/utilities/confirmation_form.html +17 -9
- nautobot/core/templates/utilities/obj_table.html +19 -11
- nautobot/core/templates/utilities/render_field.html +27 -21
- nautobot/core/templates/utilities/render_jinja2.html +22 -25
- nautobot/core/templates/utilities/templatetags/advanced_filter_indicator.html +8 -0
- nautobot/core/templates/utilities/templatetags/badge.html +1 -1
- nautobot/core/templates/utilities/templatetags/dynamic_group_assignment_modal.html +2 -3
- nautobot/core/templates/utilities/templatetags/filter_form_drawer.html +482 -0
- nautobot/core/templates/utilities/templatetags/modal_form_as_dialog.html +14 -18
- nautobot/core/templates/utilities/templatetags/saved_view_modal.html +11 -11
- nautobot/core/templates/utilities/templatetags/table_config_form.html +51 -24
- nautobot/core/templates/utilities/templatetags/tag.html +1 -1
- nautobot/core/templates/utilities/templatetags/utilization_graph.html +3 -3
- nautobot/core/templates/utilities/theme_preview.html +829 -566
- nautobot/core/templates/utilities/worker_status.html +42 -41
- nautobot/core/templates/widgets/selectwithdisabled_option.html +3 -1
- nautobot/core/templates/widgets/sluginput.html +2 -2
- nautobot/core/templatetags/buttons.py +38 -40
- nautobot/core/templatetags/helpers.py +105 -28
- nautobot/core/templatetags/ui_framework.py +17 -0
- nautobot/core/testing/api.py +76 -12
- nautobot/core/testing/filters.py +11 -27
- nautobot/core/testing/integration.py +128 -10
- nautobot/core/testing/mixins.py +7 -4
- nautobot/core/testing/utils.py +28 -5
- nautobot/core/testing/views.py +125 -27
- nautobot/core/tests/integration/test_app_home.py +39 -35
- nautobot/core/tests/integration/test_app_navbar.py +60 -67
- nautobot/core/tests/integration/test_filters.py +123 -55
- nautobot/core/tests/integration/test_general_functionality.py +1 -1
- nautobot/core/tests/integration/test_home.py +10 -18
- nautobot/core/tests/integration/test_import_objects_ui.py +2 -9
- nautobot/core/tests/integration/test_navbar.py +41 -16
- nautobot/core/tests/integration/test_swagger.py +1 -7
- nautobot/core/tests/integration/test_theme.py +3 -0
- nautobot/core/tests/nautobot_config_without_example_apps.py +4 -0
- nautobot/core/tests/runner.py +6 -1
- nautobot/core/tests/test_api.py +5 -3
- nautobot/core/tests/test_branching.py +154 -0
- nautobot/core/tests/test_breadcrumbs.py +7 -8
- nautobot/core/tests/test_checks.py +28 -0
- nautobot/core/tests/test_commands.py +0 -41
- nautobot/core/tests/test_config.py +2 -1
- nautobot/core/tests/test_csv.py +4 -7
- nautobot/core/tests/test_filters.py +326 -318
- nautobot/core/tests/test_forms.py +19 -30
- nautobot/core/tests/test_graphql.py +67 -57
- nautobot/core/tests/test_models.py +1 -1
- nautobot/core/tests/test_nautobot_server.py +2 -0
- nautobot/core/tests/test_navigations.py +78 -10
- nautobot/core/tests/test_tables.py +3 -1
- nautobot/core/tests/test_templatetags_helpers.py +61 -21
- nautobot/core/tests/test_templatetags_ui_framework.py +36 -18
- nautobot/core/tests/test_ui.py +207 -2
- nautobot/core/tests/test_utils.py +147 -2
- nautobot/core/tests/test_views.py +201 -64
- nautobot/core/tests/test_views_utils.py +1 -1
- nautobot/core/ui/breadcrumbs.py +2 -12
- nautobot/core/ui/choices.py +190 -0
- nautobot/core/ui/constants.py +86 -0
- nautobot/core/ui/echarts.py +474 -0
- nautobot/core/ui/nav.py +5 -1
- nautobot/core/ui/object_detail.py +180 -16
- nautobot/core/urls.py +13 -1
- nautobot/core/utils/cache.py +71 -0
- nautobot/core/utils/data.py +8 -5
- nautobot/core/utils/filtering.py +8 -2
- nautobot/core/utils/git.py +3 -3
- nautobot/core/utils/lookup.py +87 -13
- nautobot/core/utils/migrations.py +22 -0
- nautobot/core/utils/module_loading.py +26 -0
- nautobot/core/utils/permissions.py +9 -5
- nautobot/core/views/__init__.py +114 -63
- nautobot/core/views/generic.py +34 -27
- nautobot/core/views/mixins.py +49 -27
- nautobot/core/views/renderers.py +3 -5
- nautobot/core/views/utils.py +10 -5
- nautobot/core/views/viewsets.py +2 -1
- nautobot/data_validation/__init__.py +0 -0
- nautobot/data_validation/api/__init__.py +1 -0
- nautobot/data_validation/api/serializers.py +80 -0
- nautobot/data_validation/api/urls.py +20 -0
- nautobot/data_validation/api/views.py +44 -0
- nautobot/data_validation/apps.py +18 -0
- nautobot/data_validation/custom_validators.py +330 -0
- nautobot/data_validation/filters.py +133 -0
- nautobot/data_validation/form_mixin.py +25 -0
- nautobot/data_validation/forms.py +342 -0
- nautobot/data_validation/migrations/0001_initial.py +224 -0
- nautobot/data_validation/migrations/0002_data_migration_from_app.py +324 -0
- nautobot/data_validation/migrations/__init__.py +0 -0
- nautobot/data_validation/models.py +361 -0
- nautobot/data_validation/navigation.py +74 -0
- nautobot/data_validation/signals.py +30 -0
- nautobot/data_validation/tables.py +259 -0
- nautobot/data_validation/templates/data_validation/datacompliance_retrieve.html +1 -0
- nautobot/data_validation/templates/data_validation/datacompliance_tab.html +11 -0
- nautobot/data_validation/templates/data_validation/device_constraints.html +61 -0
- nautobot/data_validation/tests/__init__.py +20 -0
- nautobot/data_validation/tests/migrations/__init__.py +0 -0
- nautobot/data_validation/tests/migrations/test_migrations.py +489 -0
- nautobot/data_validation/tests/test_api.py +238 -0
- nautobot/data_validation/tests/test_custom_validators.py +423 -0
- nautobot/data_validation/tests/test_data_compliance_rules.py +85 -0
- nautobot/data_validation/tests/test_filters.py +240 -0
- nautobot/data_validation/tests/test_form_mixin.py +115 -0
- nautobot/data_validation/tests/test_models.py +393 -0
- nautobot/data_validation/tests/test_views.py +435 -0
- nautobot/data_validation/urls.py +21 -0
- nautobot/data_validation/views.py +227 -0
- nautobot/dcim/api/serializers.py +10 -13
- nautobot/dcim/api/urls.py +2 -0
- nautobot/dcim/api/views.py +7 -0
- nautobot/dcim/apps.py +4 -0
- nautobot/dcim/choices.py +16 -0
- nautobot/dcim/custom_validators.py +84 -0
- nautobot/dcim/filter_mixins.py +353 -4
- nautobot/dcim/{filters/__init__.py → filters.py} +70 -157
- nautobot/dcim/forms.py +12 -6
- nautobot/dcim/graphql/types.py +1 -0
- nautobot/dcim/migrations/0075_add_deviceclusterassignment.py +52 -0
- nautobot/dcim/migrations/0076_device_cluster_to_clusters_data_migration.py +40 -0
- nautobot/dcim/migrations/0077_remove_device_cluster.py +14 -0
- nautobot/dcim/migrations/0078_remove_device_location_tenant_name_uniqueness.py +16 -0
- nautobot/dcim/migrations/0079_device_name_data_migration.py +59 -0
- nautobot/dcim/models/__init__.py +2 -0
- nautobot/dcim/models/device_components.py +3 -1
- nautobot/dcim/models/devices.py +115 -51
- nautobot/dcim/navigation.py +7 -3
- nautobot/dcim/querysets.py +6 -0
- nautobot/dcim/signals.py +19 -0
- nautobot/dcim/tables/devices.py +9 -5
- nautobot/dcim/tables/template_code.py +191 -102
- nautobot/dcim/templates/dcim/cable.html +1 -1
- nautobot/dcim/templates/dcim/cable_connect.html +62 -146
- nautobot/dcim/templates/dcim/cable_retrieve.html +10 -10
- nautobot/dcim/templates/dcim/cable_trace.html +15 -17
- nautobot/dcim/templates/dcim/console_port_connection_list.html +2 -2
- nautobot/dcim/templates/dcim/consoleport.html +18 -17
- nautobot/dcim/templates/dcim/consoleserverport.html +18 -17
- nautobot/dcim/templates/dcim/controller_create.html +12 -8
- nautobot/dcim/templates/dcim/controller_wirelessnetworks.html +1 -1
- nautobot/dcim/templates/dcim/controllermanageddevicegroup_create.html +6 -6
- nautobot/dcim/templates/dcim/controllermanageddevicegroup_retrieve.html +1 -1
- nautobot/dcim/templates/dcim/device/config.html +17 -19
- nautobot/dcim/templates/dcim/device/lldp_neighbors.html +4 -4
- nautobot/dcim/templates/dcim/device/status.html +20 -20
- nautobot/dcim/templates/dcim/device_component_add.html +24 -15
- nautobot/dcim/templates/dcim/device_create.html +120 -120
- nautobot/dcim/templates/dcim/device_list.html +75 -12
- nautobot/dcim/templates/dcim/devicebay.html +7 -7
- nautobot/dcim/templates/dcim/devicebay_populate.html +29 -23
- nautobot/dcim/templates/dcim/deviceredundancygroup_create.html +6 -6
- nautobot/dcim/templates/dcim/devicetype.html +1 -1
- nautobot/dcim/templates/dcim/devicetype_component_add.html +25 -19
- nautobot/dcim/templates/dcim/devicetype_list.html +4 -4
- nautobot/dcim/templates/dcim/devicetype_update.html +9 -9
- nautobot/dcim/templates/dcim/footer_convert_to_contact_or_team_record.html +3 -3
- nautobot/dcim/templates/dcim/frontport.html +21 -20
- nautobot/dcim/templates/dcim/inc/cable_form.html +7 -7
- nautobot/dcim/templates/dcim/inc/cable_termination.html +1 -1
- nautobot/dcim/templates/dcim/inc/cable_toggle_buttons.html +18 -9
- nautobot/dcim/templates/dcim/inc/detail_softwareversion_softwareimagefile_rows.html +1 -1
- nautobot/dcim/templates/dcim/inc/device_interface_filter.html +1 -1
- nautobot/dcim/templates/dcim/inc/devicetype_component_table.html +10 -10
- nautobot/dcim/templates/dcim/inc/edit_form_softwareversion_js.html +2 -2
- nautobot/dcim/templates/dcim/inc/homepage_connections.html +2 -2
- nautobot/dcim/templates/dcim/inc/moduletype_component_table.html +10 -10
- nautobot/dcim/templates/dcim/inc/rack_elevation.html +2 -2
- nautobot/dcim/templates/dcim/interface.html +42 -22
- nautobot/dcim/templates/dcim/interface_connection_list.html +2 -2
- nautobot/dcim/templates/dcim/interface_edit.html +26 -11
- nautobot/dcim/templates/dcim/interfaceredundancygroupassociation_create.html +3 -3
- nautobot/dcim/templates/dcim/inventoryitem.html +3 -3
- nautobot/dcim/templates/dcim/inventoryitem_add.html +21 -10
- nautobot/dcim/templates/dcim/inventoryitem_bulk_delete.html +1 -1
- nautobot/dcim/templates/dcim/inventoryitem_edit.html +6 -4
- nautobot/dcim/templates/dcim/location.html +1 -1
- nautobot/dcim/templates/dcim/location_migrate_data_to_contact.html +24 -18
- nautobot/dcim/templates/dcim/location_retrieve.html +1 -1
- nautobot/dcim/templates/dcim/location_update.html +9 -9
- nautobot/dcim/templates/dcim/locationtype.html +0 -1
- nautobot/dcim/templates/dcim/module/base.html +67 -27
- nautobot/dcim/templates/dcim/module_consoleports.html +13 -15
- nautobot/dcim/templates/dcim/module_consoleserverports.html +13 -15
- nautobot/dcim/templates/dcim/module_frontports.html +13 -15
- nautobot/dcim/templates/dcim/module_interfaces.html +14 -16
- nautobot/dcim/templates/dcim/module_list.html +59 -10
- nautobot/dcim/templates/dcim/module_modulebays.html +12 -14
- nautobot/dcim/templates/dcim/module_poweroutlets.html +13 -15
- nautobot/dcim/templates/dcim/module_powerports.html +13 -15
- nautobot/dcim/templates/dcim/module_rearports.html +13 -15
- nautobot/dcim/templates/dcim/module_retrieve.html +3 -3
- nautobot/dcim/templates/dcim/module_update.html +15 -9
- nautobot/dcim/templates/dcim/modulebay_retrieve.html +0 -93
- nautobot/dcim/templates/dcim/modulefamily_retrieve.html +7 -7
- nautobot/dcim/templates/dcim/moduletype_list.html +2 -2
- nautobot/dcim/templates/dcim/moduletype_retrieve.html +74 -35
- nautobot/dcim/templates/dcim/platform_create.html +9 -9
- nautobot/dcim/templates/dcim/power_port_connection_list.html +3 -3
- nautobot/dcim/templates/dcim/powerfeed.html +1 -1
- nautobot/dcim/templates/dcim/powerfeed_edit.html +15 -15
- nautobot/dcim/templates/dcim/poweroutlet.html +13 -13
- nautobot/dcim/templates/dcim/powerpanel.html +1 -1
- nautobot/dcim/templates/dcim/powerport.html +17 -16
- nautobot/dcim/templates/dcim/rack.html +1 -1
- nautobot/dcim/templates/dcim/rack_elevation.html +2 -2
- nautobot/dcim/templates/dcim/rack_elevation_list.html +21 -9
- nautobot/dcim/templates/dcim/rack_retrieve.html +75 -57
- nautobot/dcim/templates/dcim/rack_update.html +14 -14
- nautobot/dcim/templates/dcim/rackreservation.html +1 -1
- nautobot/dcim/templates/dcim/rackreservation_edit.html +6 -6
- nautobot/dcim/templates/dcim/rearport.html +19 -18
- nautobot/dcim/templates/dcim/trace/cable.html +1 -1
- nautobot/dcim/templates/dcim/trace/circuit.html +1 -1
- nautobot/dcim/templates/dcim/trace/device.html +1 -1
- nautobot/dcim/templates/dcim/trace/powerpanel.html +1 -1
- nautobot/dcim/templates/dcim/trace/termination.html +1 -1
- nautobot/dcim/templates/dcim/virtualchassis.html +1 -1
- nautobot/dcim/templates/dcim/virtualchassis_add_member.html +25 -16
- nautobot/dcim/templates/dcim/virtualchassis_create.html +6 -6
- nautobot/dcim/templates/dcim/virtualchassis_edit.html +1 -1
- nautobot/dcim/templates/dcim/virtualchassis_retrieve.html +1 -1
- nautobot/dcim/templates/dcim/virtualchassis_update.html +36 -22
- nautobot/dcim/templates/dcim/virtualdevicecontext_update.html +9 -9
- nautobot/dcim/tests/integration/test_controller.py +6 -6
- nautobot/dcim/tests/integration/test_controller_managed_device_group.py +7 -7
- nautobot/dcim/tests/integration/test_create_device.py +9 -9
- nautobot/dcim/tests/integration/test_device_bulk_operations.py +7 -2
- nautobot/dcim/tests/integration/test_fileinputpicker.py +5 -7
- nautobot/dcim/tests/integration/test_location_bulk_operations.py +2 -0
- nautobot/dcim/tests/integration/test_module_bay_position.py +4 -1
- nautobot/dcim/tests/test_api.py +86 -6
- nautobot/dcim/tests/test_custom_validators.py +229 -0
- nautobot/dcim/tests/test_filters.py +159 -110
- nautobot/dcim/tests/test_graphql.py +32 -36
- nautobot/dcim/tests/test_jobs.py +1 -1
- nautobot/dcim/tests/test_models.py +229 -1
- nautobot/dcim/tests/test_views.py +31 -20
- nautobot/dcim/utils.py +3 -3
- nautobot/dcim/views.py +77 -41
- nautobot/extras/api/serializers.py +83 -19
- nautobot/extras/api/urls.py +7 -0
- nautobot/extras/api/views.py +243 -140
- nautobot/extras/choices.py +34 -13
- nautobot/extras/constants.py +1 -1
- nautobot/extras/context_managers.py +26 -26
- nautobot/extras/datasources/git.py +22 -0
- nautobot/extras/datasources/registry.py +3 -0
- nautobot/extras/exceptions.py +5 -0
- nautobot/extras/factory.py +11 -1
- nautobot/extras/{filters/mixins.py → filter_mixins.py} +4 -3
- nautobot/extras/{filters/__init__.py → filters.py} +203 -58
- nautobot/extras/forms/base.py +2 -1
- nautobot/extras/forms/forms.py +225 -20
- nautobot/extras/forms/mixins.py +0 -41
- nautobot/extras/homepage.py +21 -2
- nautobot/extras/jobs.py +2 -8
- nautobot/extras/jobs_ui.py +2 -2
- nautobot/extras/management/__init__.py +9 -0
- nautobot/extras/managers.py +31 -22
- nautobot/extras/migrations/0126_approval_workflow_pre_check.py +58 -0
- nautobot/extras/migrations/0127_approval_workflow_models.py +266 -0
- nautobot/extras/migrations/0128_remove_job_approval_required_and_more.py +29 -0
- nautobot/extras/migrations/0129_jobresult_debug_log_count_jobresult_error_log_count_and_more.py +37 -0
- nautobot/extras/migrations/0130_jobresult_generate_log_entry_counts.py +42 -0
- nautobot/extras/models/__init__.py +14 -3
- nautobot/extras/models/approvals.py +556 -0
- nautobot/extras/models/change_logging.py +1 -0
- nautobot/extras/models/contacts.py +2 -0
- nautobot/extras/models/customfields.py +57 -22
- nautobot/extras/models/datasources.py +21 -0
- nautobot/extras/models/groups.py +2 -0
- nautobot/extras/models/jobs.py +122 -39
- nautobot/extras/models/metadata.py +2 -3
- nautobot/extras/models/mixins.py +129 -1
- nautobot/extras/models/models.py +22 -14
- nautobot/extras/models/relationships.py +47 -10
- nautobot/extras/models/secrets.py +1 -0
- nautobot/extras/models/statuses.py +0 -15
- nautobot/extras/models/tags.py +1 -1
- nautobot/extras/navigation.py +42 -15
- nautobot/extras/plugins/__init__.py +33 -55
- nautobot/extras/plugins/marketplace_manifest.yml +1 -23
- nautobot/extras/plugins/tables.py +8 -6
- nautobot/extras/plugins/urls.py +2 -21
- nautobot/extras/plugins/utils.py +1 -33
- nautobot/extras/plugins/validators.py +10 -10
- nautobot/extras/plugins/views.py +1 -5
- nautobot/extras/querysets.py +17 -21
- nautobot/extras/signals.py +23 -8
- nautobot/extras/tables.py +420 -99
- nautobot/extras/templates/extras/approval_dashboard.html +15 -0
- nautobot/extras/templates/extras/approval_workflow/approve.html +11 -0
- nautobot/extras/templates/extras/approval_workflow/comment.html +9 -0
- nautobot/extras/templates/extras/approval_workflow/deny.html +10 -0
- nautobot/extras/templates/extras/approvalworkflowdefinition_update.html +77 -0
- nautobot/extras/templates/extras/approvalworkflowstage_retrieve.html +29 -0
- nautobot/extras/templates/extras/configcontext_update.html +12 -12
- nautobot/extras/templates/extras/configcontextschema.html +1 -1
- nautobot/extras/templates/extras/configcontextschema_retrieve.html +9 -9
- nautobot/extras/templates/extras/configcontextschema_update.html +6 -6
- nautobot/extras/templates/extras/configcontextschema_validation.html +2 -2
- nautobot/extras/templates/extras/customfield_update.html +12 -12
- nautobot/extras/templates/extras/dynamicgroup.html +1 -1
- nautobot/extras/templates/extras/dynamicgroup_edit.html +1 -1
- nautobot/extras/templates/extras/dynamicgroup_retrieve.html +17 -17
- nautobot/extras/templates/extras/dynamicgroup_update.html +24 -24
- nautobot/extras/templates/extras/externalintegration_update.html +6 -6
- nautobot/extras/templates/extras/gitrepository.html +1 -1
- nautobot/extras/templates/extras/gitrepository_object_edit.html +1 -1
- nautobot/extras/templates/extras/gitrepository_result.html +1 -1
- nautobot/extras/templates/extras/gitrepository_retrieve.html +12 -12
- nautobot/extras/templates/extras/gitrepository_update.html +25 -7
- nautobot/extras/templates/extras/graphqlquery_retrieve.html +1 -1
- nautobot/extras/templates/extras/inc/approval_buttons_column.html +38 -0
- nautobot/extras/templates/extras/inc/bulk_edit_overridable_field.html +14 -13
- nautobot/extras/templates/extras/inc/configcontext_format.html +11 -4
- nautobot/extras/templates/extras/inc/graphqlquery_execute.html +7 -7
- nautobot/extras/templates/extras/inc/job_label.html +5 -5
- nautobot/extras/templates/extras/inc/job_table.html +23 -10
- nautobot/extras/templates/extras/inc/job_tiles.html +33 -21
- nautobot/extras/templates/extras/inc/jobresult.html +6 -6
- nautobot/extras/templates/extras/inc/json_format.html +11 -4
- nautobot/extras/templates/extras/inc/object_contact_header.html +6 -6
- nautobot/extras/templates/extras/inc/overridable_field.html +16 -15
- nautobot/extras/templates/extras/inc/panel_approvalworkflowstage.html +34 -0
- nautobot/extras/templates/extras/inc/panel_changelog.html +9 -9
- nautobot/extras/templates/extras/inc/panel_jobhistory.html +8 -6
- nautobot/extras/templates/extras/inc/tags_panel.html +3 -3
- nautobot/extras/templates/extras/job.html +154 -155
- nautobot/extras/templates/extras/job_approval_confirmation.html +4 -27
- nautobot/extras/templates/extras/job_bulk_edit.html +18 -1
- nautobot/extras/templates/extras/job_detail.html +1 -1
- nautobot/extras/templates/extras/job_edit.html +69 -64
- nautobot/extras/templates/extras/job_list.html +37 -60
- nautobot/extras/templates/extras/jobresult.html +1 -1
- nautobot/extras/templates/extras/jobresult_retrieve.html +17 -17
- nautobot/extras/templates/extras/marketplace.html +62 -71
- nautobot/extras/templates/extras/metadatatype_create.html +9 -9
- nautobot/extras/templates/extras/note.html +1 -1
- nautobot/extras/templates/extras/object_approvalworkflow.html +36 -0
- nautobot/extras/templates/extras/object_assign_contact_or_team.html +16 -7
- nautobot/extras/templates/extras/object_configcontext.html +20 -20
- nautobot/extras/templates/extras/object_new_contact.html +6 -6
- nautobot/extras/templates/extras/object_new_team.html +6 -6
- nautobot/extras/templates/extras/objectchange.html +1 -1
- nautobot/extras/templates/extras/objectchange_retrieve.html +37 -56
- nautobot/extras/templates/extras/plugin_detail.html +40 -41
- nautobot/extras/templates/extras/plugins_list.html +23 -38
- nautobot/extras/templates/extras/plugins_tiles.html +28 -28
- nautobot/extras/templates/extras/role_retrieve.html +112 -48
- nautobot/extras/templates/extras/scheduledjob.html +25 -28
- nautobot/extras/templates/extras/secret_create.html +11 -11
- nautobot/extras/templates/extras/secretsgroup_update.html +6 -6
- nautobot/extras/templates/extras/staticgroupassociation_retrieve.html +3 -3
- nautobot/extras/templates/extras/status.html +1 -1
- nautobot/extras/templates/extras/tag.html +1 -1
- nautobot/extras/templates/extras/tag_update.html +3 -3
- nautobot/extras/templates/extras/templatetags/log_level.html +1 -1
- nautobot/extras/templates/extras/templatetags/plugin_object_detail_tabs.html +2 -2
- nautobot/extras/templates/extras/webhook.html +12 -12
- nautobot/extras/templatetags/approvals.py +19 -0
- nautobot/extras/templatetags/custom_links.py +12 -12
- nautobot/extras/templatetags/job_buttons.py +14 -12
- nautobot/extras/test_jobs/invalid_import.py +9 -0
- nautobot/extras/test_jobs/log_counts_by_level.py +23 -0
- nautobot/extras/test_jobs/missing_import.py +11 -0
- nautobot/extras/tests/integration/test_computedfields.py +5 -8
- nautobot/extras/tests/integration/test_configcontextschema.py +43 -48
- nautobot/extras/tests/integration/test_customfields.py +33 -33
- nautobot/extras/tests/integration/test_dynamicgroups.py +5 -10
- nautobot/extras/tests/integration/test_jobs.py +2 -4
- nautobot/extras/tests/integration/test_notes.py +3 -9
- nautobot/extras/tests/integration/test_plugin_banner.py +3 -0
- nautobot/extras/tests/integration/test_plugins.py +35 -27
- nautobot/extras/tests/integration/test_relationships.py +7 -11
- nautobot/extras/tests/integration/test_tagfilter.py +3 -11
- nautobot/extras/tests/test_api.py +786 -242
- nautobot/extras/tests/test_approvals.py +715 -0
- nautobot/extras/tests/test_changelog.py +18 -14
- nautobot/extras/tests/test_customfields.py +14 -13
- nautobot/extras/tests/test_datasources.py +1 -1
- nautobot/extras/tests/test_dynamicgroups.py +9 -4
- nautobot/extras/tests/test_filters.py +443 -13
- nautobot/extras/tests/test_forms.py +18 -57
- nautobot/extras/tests/test_jobs.py +25 -4
- nautobot/extras/tests/test_migrations.py +81 -1
- nautobot/extras/tests/test_models.py +378 -47
- nautobot/extras/tests/test_plugins.py +47 -13
- nautobot/extras/tests/test_relationships.py +7 -2
- nautobot/extras/tests/test_utils.py +2 -0
- nautobot/extras/tests/test_views.py +780 -493
- nautobot/extras/urls.py +36 -12
- nautobot/extras/utils.py +58 -12
- nautobot/extras/views.py +668 -209
- nautobot/ipam/factory.py +7 -0
- nautobot/ipam/filter_mixins.py +38 -0
- nautobot/ipam/filters.py +35 -71
- nautobot/ipam/formfields.py +1 -1
- nautobot/ipam/forms.py +6 -3
- nautobot/ipam/migrations/0030_ipam__namespaces.py +13 -0
- nautobot/ipam/migrations/0031_ipam___data_migrations.py +4 -1
- nautobot/ipam/migrations/0054_namespace_tenant.py +25 -0
- nautobot/ipam/models.py +29 -2
- nautobot/ipam/navigation.py +3 -1
- nautobot/ipam/querysets.py +1 -2
- nautobot/ipam/tables.py +26 -17
- nautobot/ipam/templates/ipam/inc/ipadress_edit_header.html +6 -6
- nautobot/ipam/templates/ipam/inc/service.html +8 -8
- nautobot/ipam/templates/ipam/inc/toggle_available.html +10 -10
- nautobot/ipam/templates/ipam/inc/vlangroup_header.html +3 -2
- nautobot/ipam/templates/ipam/ipaddress.html +27 -13
- nautobot/ipam/templates/ipam/ipaddress_assign.html +31 -24
- nautobot/ipam/templates/ipam/ipaddress_bulk_add.html +3 -3
- nautobot/ipam/templates/ipam/ipaddress_edit.html +9 -9
- nautobot/ipam/templates/ipam/ipaddress_interfaces.html +7 -9
- nautobot/ipam/templates/ipam/ipaddress_merge.html +195 -186
- nautobot/ipam/templates/ipam/ipaddress_vm_interfaces.html +7 -9
- nautobot/ipam/templates/ipam/ipaddresstointerface_retrieve.html +7 -5
- nautobot/ipam/templates/ipam/namespace_ip_addresses.html +1 -1
- nautobot/ipam/templates/ipam/namespace_prefixes.html +1 -1
- nautobot/ipam/templates/ipam/namespace_update.html +15 -0
- nautobot/ipam/templates/ipam/namespace_vrfs.html +1 -1
- nautobot/ipam/templates/ipam/prefix_create.html +9 -9
- nautobot/ipam/templates/ipam/prefix_list.html +15 -14
- nautobot/ipam/templates/ipam/prefix_retrieve.html +0 -1
- nautobot/ipam/templates/ipam/vlan.html +1 -1
- nautobot/ipam/templates/ipam/vlan_interfaces.html +1 -1
- nautobot/ipam/templates/ipam/vlan_update.html +6 -6
- nautobot/ipam/templates/ipam/vlan_vminterfaces.html +1 -1
- nautobot/ipam/templates/ipam/vrf_edit.html +15 -15
- nautobot/ipam/tests/integration/test_prefixes.py +5 -13
- nautobot/ipam/tests/migration/test_migrations.py +89 -0
- nautobot/ipam/tests/test_api.py +20 -7
- nautobot/ipam/tests/test_filters.py +10 -0
- nautobot/ipam/tests/test_forms.py +1 -1
- nautobot/ipam/tests/test_models.py +1 -1
- nautobot/ipam/tests/test_tables.py +1 -2
- nautobot/ipam/tests/test_utils.py +1 -1
- nautobot/ipam/tests/test_views.py +24 -21
- nautobot/ipam/ui.py +0 -17
- nautobot/ipam/utils/migrations.py +16 -2
- nautobot/ipam/utils/testing.py +9 -3
- nautobot/ipam/views.py +49 -7
- nautobot/project-static/dist/css/graphql-libraries.css +655 -0
- nautobot/project-static/dist/css/graphql-libraries.css.map +1 -0
- nautobot/project-static/dist/css/materialdesignicons.css +3 -0
- nautobot/project-static/dist/css/materialdesignicons.css.map +1 -0
- nautobot/project-static/dist/css/nautobot.css +13 -0
- nautobot/project-static/dist/css/nautobot.css.map +1 -0
- nautobot/project-static/dist/js/graphql-libraries.js +3 -0
- nautobot/project-static/dist/js/graphql-libraries.js.LICENSE.txt +62 -0
- nautobot/project-static/dist/js/graphql-libraries.js.map +1 -0
- nautobot/project-static/dist/js/libraries.js +3 -0
- nautobot/project-static/dist/js/libraries.js.LICENSE.txt +65 -0
- nautobot/project-static/dist/js/libraries.js.map +1 -0
- nautobot/project-static/dist/js/materialdesignicons.js +0 -0
- nautobot/project-static/dist/js/nautobot-graphiql.js +2 -0
- nautobot/project-static/dist/js/nautobot-graphiql.js.map +1 -0
- nautobot/project-static/dist/js/nautobot.js +2 -0
- nautobot/project-static/dist/js/nautobot.js.map +1 -0
- nautobot/project-static/fonts/Montserrat-v30-Bold.woff2 +0 -0
- nautobot/project-static/fonts/Montserrat-v30-Light.woff2 +0 -0
- nautobot/project-static/fonts/Montserrat-v30-Regular.woff2 +0 -0
- nautobot/project-static/fonts/Roboto-v48-Bold.woff2 +0 -0
- nautobot/project-static/fonts/Roboto-v48-Light.woff2 +0 -0
- nautobot/project-static/fonts/Roboto-v48-Regular.woff2 +0 -0
- nautobot/project-static/img/jinja_logo.svg +21 -92
- nautobot/project-static/js/cabletrace.js +1 -1
- nautobot/project-static/js/editor.js +4 -4
- nautobot/project-static/js/forms.js +67 -717
- nautobot/project-static/js/job_result.js +2 -2
- nautobot/project-static/nautobot-icons/360-degrees.svg +3 -0
- nautobot/project-static/nautobot-icons/arrow-decision.svg +3 -0
- nautobot/project-static/nautobot-icons/arrows-expand-rec.svg +3 -0
- nautobot/project-static/nautobot-icons/arrows-move-2-rec.svg +3 -0
- nautobot/project-static/nautobot-icons/arrows-move-rec.svg +3 -0
- nautobot/project-static/nautobot-icons/atom.svg +3 -0
- nautobot/project-static/nautobot-icons/battery-3.svg +3 -0
- nautobot/project-static/nautobot-icons/branch.svg +3 -0
- nautobot/project-static/nautobot-icons/briefcase-2.svg +3 -0
- nautobot/project-static/nautobot-icons/cable-data-2.svg +3 -0
- nautobot/project-static/nautobot-icons/cable-data.svg +3 -0
- nautobot/project-static/nautobot-icons/cast.svg +3 -0
- nautobot/project-static/nautobot-icons/check-circle.svg +3 -0
- nautobot/project-static/nautobot-icons/checkbox-circle.svg +3 -0
- nautobot/project-static/nautobot-icons/checkbox-rec.svg +3 -0
- nautobot/project-static/nautobot-icons/cloud-check.svg +3 -0
- nautobot/project-static/nautobot-icons/cloud-lightning.svg +3 -0
- nautobot/project-static/nautobot-icons/cloud-upload.svg +3 -0
- nautobot/project-static/nautobot-icons/cloud.svg +3 -0
- nautobot/project-static/nautobot-icons/compass.svg +3 -0
- nautobot/project-static/nautobot-icons/control-panel.svg +3 -0
- nautobot/project-static/nautobot-icons/credit-card.svg +3 -0
- nautobot/project-static/nautobot-icons/device-lifecycle.svg +3 -0
- nautobot/project-static/nautobot-icons/direction.svg +3 -0
- nautobot/project-static/nautobot-icons/elements.svg +3 -0
- nautobot/project-static/nautobot-icons/extensibility.svg +3 -0
- nautobot/project-static/nautobot-icons/globe-2.svg +3 -0
- nautobot/project-static/nautobot-icons/globe.svg +3 -0
- nautobot/project-static/nautobot-icons/hammer.svg +3 -0
- nautobot/project-static/nautobot-icons/history.svg +3 -0
- nautobot/project-static/nautobot-icons/ip.svg +3 -0
- nautobot/project-static/nautobot-icons/laptop.svg +3 -0
- nautobot/project-static/nautobot-icons/lightning.svg +3 -0
- nautobot/project-static/nautobot-icons/list-unordered.svg +3 -0
- nautobot/project-static/nautobot-icons/map-view.svg +3 -0
- nautobot/project-static/nautobot-icons/organization.svg +3 -0
- nautobot/project-static/nautobot-icons/pin-2.svg +3 -0
- nautobot/project-static/nautobot-icons/pin-3.svg +3 -0
- nautobot/project-static/nautobot-icons/plug.svg +3 -0
- nautobot/project-static/nautobot-icons/refresh-cw.svg +3 -0
- nautobot/project-static/nautobot-icons/rocket-2.svg +3 -0
- nautobot/project-static/nautobot-icons/rotate-cw.svg +3 -0
- nautobot/project-static/nautobot-icons/route.svg +3 -0
- nautobot/project-static/nautobot-icons/secrets.svg +3 -0
- nautobot/project-static/nautobot-icons/security.svg +3 -0
- nautobot/project-static/nautobot-icons/server-2.svg +3 -0
- nautobot/project-static/nautobot-icons/server.svg +3 -0
- nautobot/project-static/nautobot-icons/share.svg +3 -0
- nautobot/project-static/nautobot-icons/shield-check.svg +3 -0
- nautobot/project-static/nautobot-icons/sitemap-outline.svg +3 -0
- nautobot/project-static/nautobot-icons/sliders-vert-2.svg +3 -0
- nautobot/project-static/nautobot-icons/sliders-vert.svg +3 -0
- nautobot/project-static/nautobot-icons/star-filled.svg +3 -0
- nautobot/project-static/nautobot-icons/star.svg +3 -0
- nautobot/project-static/nautobot-icons/transform.svg +3 -0
- nautobot/project-static/nautobot-icons/wifi.svg +3 -0
- nautobot/tenancy/api/serializers.py +1 -0
- nautobot/tenancy/api/views.py +2 -1
- nautobot/tenancy/{filters/__init__.py → filters.py} +2 -10
- nautobot/tenancy/navigation.py +3 -1
- nautobot/tenancy/templates/tenancy/tenant_create.html +6 -6
- nautobot/tenancy/tests/test_filters.py +0 -2
- nautobot/tenancy/views.py +2 -1
- nautobot/ui/.gitignore +137 -0
- nautobot/ui/.node-version +1 -0
- nautobot/ui/.prettierignore +3 -0
- nautobot/ui/eslint.config.js +33 -0
- nautobot/ui/package-lock.json +6594 -0
- nautobot/ui/package.json +67 -0
- nautobot/ui/prettier.config.js +9 -0
- nautobot/ui/src/js/collapse.js +69 -0
- nautobot/ui/src/js/cookie.js +31 -0
- nautobot/ui/src/js/draggable.js +101 -0
- nautobot/ui/src/js/drawer.js +106 -0
- nautobot/ui/src/js/form.js +23 -0
- nautobot/ui/src/js/history.js +51 -0
- nautobot/ui/src/js/nautobot-graphiql.js +19 -0
- nautobot/ui/src/js/nautobot.js +128 -0
- nautobot/ui/src/js/search.js +274 -0
- nautobot/ui/src/js/select2.js +318 -0
- nautobot/ui/src/js/sidenav.js +87 -0
- nautobot/ui/src/js/tabs.js +139 -0
- nautobot/ui/src/js/theme.js +104 -0
- nautobot/ui/src/js/utils.js +54 -0
- nautobot/ui/src/scss/colors.scss +58 -0
- nautobot/ui/src/scss/nautobot.scss +2471 -0
- nautobot/ui/webpack.config.js +148 -0
- nautobot/users/apps.py +3 -0
- nautobot/users/filters.py +7 -11
- nautobot/users/forms.py +10 -0
- nautobot/users/models.py +8 -0
- nautobot/users/templates/users/advanced_settings_edit.html +31 -21
- nautobot/users/templates/users/api_tokens.html +61 -51
- nautobot/users/templates/users/base.html +23 -31
- nautobot/users/templates/users/change_password.html +29 -19
- nautobot/users/templates/users/preferences.html +55 -45
- nautobot/users/templates/users/profile.html +45 -14
- nautobot/users/tests/test_api.py +4 -0
- nautobot/users/urls.py +2 -0
- nautobot/users/views.py +70 -2
- nautobot/virtualization/api/views.py +1 -1
- nautobot/virtualization/filters.py +18 -32
- nautobot/virtualization/forms.py +22 -59
- nautobot/virtualization/models.py +1 -19
- nautobot/virtualization/navigation.py +3 -1
- nautobot/virtualization/tables.py +10 -6
- nautobot/virtualization/templates/virtualization/cluster.html +13 -13
- nautobot/virtualization/templates/virtualization/cluster_edit.html +6 -6
- nautobot/virtualization/templates/virtualization/inc/virtualmachine_vminterface_filter.html +1 -1
- nautobot/virtualization/templates/virtualization/virtualmachine.html +1 -1
- nautobot/virtualization/templates/virtualization/virtualmachine_component_add.html +24 -16
- nautobot/virtualization/templates/virtualization/virtualmachine_edit.html +1 -1
- nautobot/virtualization/templates/virtualization/virtualmachine_list.html +4 -4
- nautobot/virtualization/templates/virtualization/virtualmachine_update.html +27 -25
- nautobot/virtualization/templates/virtualization/vminterface.html +5 -5
- nautobot/virtualization/templates/virtualization/vminterface_edit.html +27 -11
- nautobot/virtualization/tests/test_api.py +3 -0
- nautobot/virtualization/tests/test_models.py +20 -5
- nautobot/virtualization/tests/test_views.py +3 -5
- nautobot/virtualization/urls.py +0 -11
- nautobot/virtualization/views.py +5 -122
- nautobot/vpn/__init__.py +0 -0
- nautobot/vpn/api/serializers.py +113 -0
- nautobot/vpn/api/urls.py +19 -0
- nautobot/vpn/api/views.py +70 -0
- nautobot/vpn/apps.py +8 -0
- nautobot/vpn/choices.py +171 -0
- nautobot/vpn/factory.py +209 -0
- nautobot/vpn/filters.py +233 -0
- nautobot/vpn/forms.py +486 -0
- nautobot/vpn/homepage.py +19 -0
- nautobot/vpn/migrations/0001_initial.py +541 -0
- nautobot/vpn/migrations/0002_populate_defaults.py +199 -0
- nautobot/vpn/migrations/__init__.py +0 -0
- nautobot/vpn/models.py +527 -0
- nautobot/vpn/navigation.py +98 -0
- nautobot/vpn/tables.py +380 -0
- nautobot/vpn/templates/vpn/vpnprofile.html +2 -0
- nautobot/vpn/templates/vpn/vpnprofile_create.html +150 -0
- nautobot/vpn/tests/__init__.py +0 -0
- nautobot/vpn/tests/test_api.py +341 -0
- nautobot/vpn/tests/test_filters.py +139 -0
- nautobot/vpn/tests/test_forms.py +294 -0
- nautobot/vpn/tests/test_models.py +97 -0
- nautobot/vpn/tests/test_views.py +281 -0
- nautobot/vpn/urls.py +16 -0
- nautobot/vpn/views.py +437 -0
- nautobot/wireless/filters.py +0 -8
- nautobot/wireless/navigation.py +3 -1
- nautobot/wireless/templates/wireless/wirelessnetwork_create.html +6 -6
- nautobot/wireless/tests/integration/test_radio_profile.py +3 -7
- nautobot/wireless/tests/test_api.py +1 -1
- {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/METADATA +5 -4
- {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/RECORD +802 -707
- {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/entry_points.txt +1 -0
- nautobot/core/management/commands/check_job_approval_status.py +0 -47
- nautobot/core/templates/search_form.html +0 -9
- nautobot/core/templates/utilities/templatetags/filter_form_modal.html +0 -87
- nautobot/dcim/filters/mixins.py +0 -354
- nautobot/extras/templates/extras/job_approval_request.html +0 -134
- nautobot/extras/templates/extras/scheduled_jobs_approval_queue_list.html +0 -28
- nautobot/ipam/mixins.py +0 -32
- nautobot/ipam/templates/ipam/inc/prefix_header_extra_content_table.html +0 -4
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.css +0 -587
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.css.map +0 -1
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.min.css +0 -6
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.min.css.map +0 -1
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.css +0 -6865
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.css.map +0 -1
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.min.css +0 -6
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.min.css.map +0 -1
- nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.eot +0 -0
- nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.svg +0 -288
- nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.woff +0 -0
- nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
- nautobot/project-static/bootstrap-3.4.1-dist/js/bootstrap.js +0 -2580
- nautobot/project-static/bootstrap-3.4.1-dist/js/bootstrap.min.js +0 -6
- nautobot/project-static/bootstrap-3.4.1-dist/js/npm.js +0 -13
- nautobot/project-static/clipboard.js-2.0.9/clipboard.min.js +0 -7
- nautobot/project-static/css/base.css +0 -1040
- nautobot/project-static/css/dark.css +0 -282
- nautobot/project-static/flatpickr-4.6.9/flatpickr.min.js +0 -2
- nautobot/project-static/flatpickr-4.6.9/themes/light.min.css +0 -1
- nautobot/project-static/graphiql-1.5.16/graphiql.min.css +0 -12
- nautobot/project-static/graphiql-1.5.16/graphiql.min.js +0 -11
- nautobot/project-static/highlight.js-11.9.0/github-dark.min.css +0 -10
- nautobot/project-static/highlight.js-11.9.0/github.min.css +0 -10
- nautobot/project-static/highlight.js-11.9.0/highlight.min.js +0 -378
- nautobot/project-static/jquery/jquery-3.7.1.min.js +0 -2
- nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_444444_256x240.png +0 -0
- nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_555555_256x240.png +0 -0
- nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_777620_256x240.png +0 -0
- nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_777777_256x240.png +0 -0
- nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_cc0000_256x240.png +0 -0
- nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_ffffff_256x240.png +0 -0
- nautobot/project-static/jquery-ui-1.13.2/jquery-ui.min.css +0 -7
- nautobot/project-static/jquery-ui-1.13.2/jquery-ui.min.js +0 -6
- nautobot/project-static/jquery-ui-1.13.2/jquery-ui.structure.min.css +0 -5
- nautobot/project-static/jquery-ui-1.13.2/jquery-ui.theme.min.css +0 -5
- nautobot/project-static/js/homepage_layout.js +0 -182
- nautobot/project-static/js/nav_menu.js +0 -250
- nautobot/project-static/js/theme.js +0 -133
- nautobot/project-static/materialdesignicons-7.4.47/LICENSE +0 -20
- nautobot/project-static/materialdesignicons-7.4.47/css/materialdesignicons.min.css +0 -3
- nautobot/project-static/react-16.14.0/react.production.min.js +0 -32
- nautobot/project-static/react-dom-16.14.0/react-dom.production.min.js +0 -239
- nautobot/project-static/select2-4.0.13/i18n/af.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ar.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/az.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/bg.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/bn.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/bs.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ca.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/cs.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/da.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/de.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/dsb.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/el.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/en.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/es.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/et.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/eu.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/fa.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/fi.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/fr.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/gl.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/he.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/hi.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/hr.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/hsb.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/hu.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/hy.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/id.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/is.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/it.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ja.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ka.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/km.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ko.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/lt.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/lv.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/mk.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ms.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/nb.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ne.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/nl.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/pl.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ps.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/pt-BR.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/pt.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ro.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ru.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/sk.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/sl.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/sq.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/sr-Cyrl.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/sr.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/sv.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/th.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/tk.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/tr.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/uk.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/vi.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/zh-CN.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/zh-TW.js +0 -3
- nautobot/project-static/select2-4.0.13/select2.min.css +0 -1
- nautobot/project-static/select2-4.0.13/select2.min.js +0 -2
- nautobot/project-static/select2-bootstrap-0.1.0-beta.10/select2-bootstrap.min.css +0 -7
- nautobot/project-static/subscriptions-transport-ws-0.9.18/client.min.js +0 -8
- nautobot/project-static/whatwg-fetch-3.6.2/fetch.umd.min.js +0 -8
- nautobot/virtualization/templates/virtualization/cluster_add_devices.html +0 -37
- /nautobot/extras/{filters/customfields.py → filter_mixins_customfields.py} +0 -0
- /nautobot/project-static/{materialdesignicons-7.4.47/fonts/materialdesignicons-webfont.ttf → dist/1fcc36272ea3e53d0031.ttf} +0 -0
- /nautobot/project-static/{materialdesignicons-7.4.47/fonts/materialdesignicons-webfont.eot → dist/2146c3c82b553977abc7.eot} +0 -0
- /nautobot/project-static/{materialdesignicons-7.4.47/fonts/materialdesignicons-webfont.woff → dist/e55a20c80650829ec5fd.woff} +0 -0
- /nautobot/project-static/{materialdesignicons-7.4.47/fonts/materialdesignicons-webfont.woff2 → dist/ec024da790d2972da002.woff2} +0 -0
- /nautobot/tenancy/{filters/mixins.py → filter_mixins.py} +0 -0
- {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/LICENSE.txt +0 -0
- {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/NOTICE +0 -0
- {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see libraries.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunknautobot=self.webpackChunknautobot||[]).push([[68],{11:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=n(416)},37:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var htmx=function(){const htmx={onLoad:null,process:null,on:null,off:null,trigger:null,ajax:null,find:null,findAll:null,closest:null,values:function(t,e){return getInputValues(t,e||"post").values},remove:null,addClass:null,removeClass:null,toggleClass:null,takeClass:null,swap:null,defineExtension:null,removeExtension:null,logAll:null,logNone:null,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",inlineStyleNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",scrollBehavior:"instant",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get","delete"],selfRequestsOnly:!0,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null,disableInheritance:!1,responseHandling:[{code:"204",swap:!1},{code:"[23]..",swap:!0},{code:"[45]..",swap:!1,error:!0}],allowNestedOobSwaps:!0,historyRestoreAsHxRequest:!0},parseInterval:null,location,_:null,version:"2.0.6"};htmx.onLoad=onLoadHelper,htmx.process=processNode,htmx.on=addEventListenerImpl,htmx.off=removeEventListenerImpl,htmx.trigger=triggerEvent,htmx.ajax=ajaxHelper,htmx.find=find,htmx.findAll=findAll,htmx.closest=closest,htmx.remove=removeElement,htmx.addClass=addClassToElement,htmx.removeClass=removeClassFromElement,htmx.toggleClass=toggleClassOnElement,htmx.takeClass=takeClassForElement,htmx.swap=swap,htmx.defineExtension=defineExtension,htmx.removeExtension=removeExtension,htmx.logAll=logAll,htmx.logNone=logNone,htmx.parseInterval=parseInterval,htmx._=internalEval;const internalAPI={addTriggerHandler,bodyContains,canAccessLocalStorage,findThisElement,filterValues,swap,hasAttribute,getAttributeValue,getClosestAttributeValue,getClosestMatch,getExpressionVars,getHeaders,getInputValues,getInternalData,getSwapSpecification,getTriggerSpecs,getTarget,makeFragment,mergeObjects,makeSettleInfo,oobSwap,querySelectorExt,settleImmediately,shouldCancel,triggerEvent,triggerErrorEvent,withExtensions},VERBS=["get","post","put","delete","patch"],VERB_SELECTOR=VERBS.map((function(t){return"[hx-"+t+"], [data-hx-"+t+"]"})).join(", ");function parseInterval(t){if(null==t)return;let e=NaN;return e="ms"==t.slice(-2)?parseFloat(t.slice(0,-2)):"s"==t.slice(-1)?1e3*parseFloat(t.slice(0,-1)):"m"==t.slice(-1)?1e3*parseFloat(t.slice(0,-1))*60:parseFloat(t),isNaN(e)?void 0:e}function getRawAttribute(t,e){return t instanceof Element&&t.getAttribute(e)}function hasAttribute(t,e){return!!t.hasAttribute&&(t.hasAttribute(e)||t.hasAttribute("data-"+e))}function getAttributeValue(t,e){return getRawAttribute(t,e)||getRawAttribute(t,"data-"+e)}function parentElt(t){const e=t.parentElement;return!e&&t.parentNode instanceof ShadowRoot?t.parentNode:e}function getDocument(){return document}function getRootNode(t,e){return t.getRootNode?t.getRootNode({composed:e}):getDocument()}function getClosestMatch(t,e){for(;t&&!e(t);)t=parentElt(t);return t||null}function getAttributeValueWithDisinheritance(t,e,n){const i=getAttributeValue(e,n),r=getAttributeValue(e,"hx-disinherit");var o=getAttributeValue(e,"hx-inherit");if(t!==e){if(htmx.config.disableInheritance)return o&&("*"===o||o.split(" ").indexOf(n)>=0)?i:null;if(r&&("*"===r||r.split(" ").indexOf(n)>=0))return"unset"}return i}function getClosestAttributeValue(t,e){let n=null;if(getClosestMatch(t,(function(i){return!!(n=getAttributeValueWithDisinheritance(t,asElement(i),e))})),"unset"!==n)return n}function matches(t,e){return t instanceof Element&&t.matches(e)}function getStartTag(t){const e=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(t);return e?e[1].toLowerCase():""}function parseHTML(t){return(new DOMParser).parseFromString(t,"text/html")}function takeChildrenFor(t,e){for(;e.childNodes.length>0;)t.append(e.childNodes[0])}function duplicateScript(t){const e=getDocument().createElement("script");return forEach(t.attributes,(function(t){e.setAttribute(t.name,t.value)})),e.textContent=t.textContent,e.async=!1,htmx.config.inlineScriptNonce&&(e.nonce=htmx.config.inlineScriptNonce),e}function isJavaScriptScriptNode(t){return t.matches("script")&&("text/javascript"===t.type||"module"===t.type||""===t.type)}function normalizeScriptTags(t){Array.from(t.querySelectorAll("script")).forEach((t=>{if(isJavaScriptScriptNode(t)){const e=duplicateScript(t),n=t.parentNode;try{n.insertBefore(e,t)}catch(t){logError(t)}finally{t.remove()}}}))}function makeFragment(t){const e=t.replace(/<head(\s[^>]*)?>[\s\S]*?<\/head>/i,""),n=getStartTag(e);let i;if("html"===n){i=new DocumentFragment;const e=parseHTML(t);takeChildrenFor(i,e.body),i.title=e.title}else if("body"===n){i=new DocumentFragment;const t=parseHTML(e);takeChildrenFor(i,t.body),i.title=t.title}else{const t=parseHTML('<body><template class="internal-htmx-wrapper">'+e+"</template></body>");i=t.querySelector("template").content,i.title=t.title;var r=i.querySelector("title");r&&r.parentNode===i&&(r.remove(),i.title=r.innerText)}return i&&(htmx.config.allowScriptTags?normalizeScriptTags(i):i.querySelectorAll("script").forEach((t=>t.remove()))),i}function maybeCall(t){t&&t()}function isType(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"}function isFunction(t){return"function"==typeof t}function isRawObject(t){return isType(t,"Object")}function getInternalData(t){const e="htmx-internal-data";let n=t[e];return n||(n=t[e]={}),n}function toArray(t){const e=[];if(t)for(let n=0;n<t.length;n++)e.push(t[n]);return e}function forEach(t,e){if(t)for(let n=0;n<t.length;n++)e(t[n])}function isScrolledIntoView(t){const e=t.getBoundingClientRect(),n=e.top,i=e.bottom;return n<window.innerHeight&&i>=0}function bodyContains(t){return t.getRootNode({composed:!0})===document}function splitOnWhitespace(t){return t.trim().split(/\s+/)}function mergeObjects(t,e){for(const n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function parseJSON(t){try{return JSON.parse(t)}catch(t){return logError(t),null}}function canAccessLocalStorage(){const t="htmx:sessionStorageTest";try{return sessionStorage.setItem(t,t),sessionStorage.removeItem(t),!0}catch(t){return!1}}function normalizePath(t){const e=new URL(t,"http://x");return e&&(t=e.pathname+e.search),"/"!=t&&(t=t.replace(/\/+$/,"")),t}function internalEval(str){return maybeEval(getDocument().body,(function(){return eval(str)}))}function onLoadHelper(t){return htmx.on("htmx:load",(function(e){t(e.detail.elt)}))}function logAll(){htmx.logger=function(t,e,n){console&&console.log(e,t,n)}}function logNone(){htmx.logger=null}function find(t,e){return"string"!=typeof t?t.querySelector(e):find(getDocument(),t)}function findAll(t,e){return"string"!=typeof t?t.querySelectorAll(e):findAll(getDocument(),t)}function getWindow(){return window}function removeElement(t,e){t=resolveTarget(t),e?getWindow().setTimeout((function(){removeElement(t),t=null}),e):parentElt(t).removeChild(t)}function asElement(t){return t instanceof Element?t:null}function asHtmlElement(t){return t instanceof HTMLElement?t:null}function asString(t){return"string"==typeof t?t:null}function asParentNode(t){return t instanceof Element||t instanceof Document||t instanceof DocumentFragment?t:null}function addClassToElement(t,e,n){(t=asElement(resolveTarget(t)))&&(n?getWindow().setTimeout((function(){addClassToElement(t,e),t=null}),n):t.classList&&t.classList.add(e))}function removeClassFromElement(t,e,n){let i=asElement(resolveTarget(t));i&&(n?getWindow().setTimeout((function(){removeClassFromElement(i,e),i=null}),n):i.classList&&(i.classList.remove(e),0===i.classList.length&&i.removeAttribute("class")))}function toggleClassOnElement(t,e){(t=resolveTarget(t)).classList.toggle(e)}function takeClassForElement(t,e){forEach((t=resolveTarget(t)).parentElement.children,(function(t){removeClassFromElement(t,e)})),addClassToElement(asElement(t),e)}function closest(t,e){return(t=asElement(resolveTarget(t)))?t.closest(e):null}function startsWith(t,e){return t.substring(0,e.length)===e}function endsWith(t,e){return t.substring(t.length-e.length)===e}function normalizeSelector(t){const e=t.trim();return startsWith(e,"<")&&endsWith(e,"/>")?e.substring(1,e.length-2):e}function querySelectorAllExt(t,e,n){if(0===e.indexOf("global "))return querySelectorAllExt(t,e.slice(7),!0);t=resolveTarget(t);const i=[];{let t=0,n=0;for(let r=0;r<e.length;r++){const o=e[r];","!==o||0!==t?"<"===o?t++:"/"===o&&r<e.length-1&&">"===e[r+1]&&t--:(i.push(e.substring(n,r)),n=r+1)}n<e.length&&i.push(e.substring(n))}const r=[],o=[];for(;i.length>0;){const e=normalizeSelector(i.shift());let a;0===e.indexOf("closest ")?a=closest(asElement(t),normalizeSelector(e.slice(8))):0===e.indexOf("find ")?a=find(asParentNode(t),normalizeSelector(e.slice(5))):"next"===e||"nextElementSibling"===e?a=asElement(t).nextElementSibling:0===e.indexOf("next ")?a=scanForwardQuery(t,normalizeSelector(e.slice(5)),!!n):"previous"===e||"previousElementSibling"===e?a=asElement(t).previousElementSibling:0===e.indexOf("previous ")?a=scanBackwardsQuery(t,normalizeSelector(e.slice(9)),!!n):"document"===e?a=document:"window"===e?a=window:"body"===e?a=document.body:"root"===e?a=getRootNode(t,!!n):"host"===e?a=t.getRootNode().host:o.push(e),a&&r.push(a)}if(o.length>0){const e=o.join(","),i=asParentNode(getRootNode(t,!!n));r.push(...toArray(i.querySelectorAll(e)))}return r}var scanForwardQuery=function(t,e,n){const i=asParentNode(getRootNode(t,n)).querySelectorAll(e);for(let e=0;e<i.length;e++){const n=i[e];if(n.compareDocumentPosition(t)===Node.DOCUMENT_POSITION_PRECEDING)return n}},scanBackwardsQuery=function(t,e,n){const i=asParentNode(getRootNode(t,n)).querySelectorAll(e);for(let e=i.length-1;e>=0;e--){const n=i[e];if(n.compareDocumentPosition(t)===Node.DOCUMENT_POSITION_FOLLOWING)return n}};function querySelectorExt(t,e){return"string"!=typeof t?querySelectorAllExt(t,e)[0]:querySelectorAllExt(getDocument().body,t)[0]}function resolveTarget(t,e){return"string"==typeof t?find(asParentNode(e)||document,t):t}function processEventArgs(t,e,n,i){return isFunction(e)?{target:getDocument().body,event:asString(t),listener:e,options:n}:{target:resolveTarget(t),event:asString(e),listener:n,options:i}}function addEventListenerImpl(t,e,n,i){return ready((function(){const r=processEventArgs(t,e,n,i);r.target.addEventListener(r.event,r.listener,r.options)})),isFunction(e)?e:n}function removeEventListenerImpl(t,e,n){return ready((function(){const i=processEventArgs(t,e,n);i.target.removeEventListener(i.event,i.listener)})),isFunction(e)?e:n}const DUMMY_ELT=getDocument().createElement("output");function findAttributeTargets(t,e){const n=getClosestAttributeValue(t,e);if(n){if("this"===n)return[findThisElement(t,e)];{const i=querySelectorAllExt(t,n);if(/(^|,)(\s*)inherit(\s*)($|,)/.test(n)){const n=asElement(getClosestMatch(t,(function(n){return n!==t&&hasAttribute(asElement(n),e)})));n&&i.push(...findAttributeTargets(n,e))}return 0===i.length?(logError('The selector "'+n+'" on '+e+" returned no matches!"),[DUMMY_ELT]):i}}}function findThisElement(t,e){return asElement(getClosestMatch(t,(function(t){return null!=getAttributeValue(asElement(t),e)})))}function getTarget(t){const e=getClosestAttributeValue(t,"hx-target");return e?"this"===e?findThisElement(t,"hx-target"):querySelectorExt(t,e):getInternalData(t).boosted?getDocument().body:t}function shouldSettleAttribute(t){return htmx.config.attributesToSettle.includes(t)}function cloneAttributes(t,e){forEach(t.attributes,(function(n){!e.hasAttribute(n.name)&&shouldSettleAttribute(n.name)&&t.removeAttribute(n.name)})),forEach(e.attributes,(function(e){shouldSettleAttribute(e.name)&&t.setAttribute(e.name,e.value)}))}function isInlineSwap(t,e){const n=getExtensions(e);for(let e=0;e<n.length;e++){const i=n[e];try{if(i.isInlineSwap(t))return!0}catch(t){logError(t)}}return"outerHTML"===t}function oobSwap(t,e,n,i){i=i||getDocument();let r="#"+CSS.escape(getRawAttribute(e,"id")),o="outerHTML";"true"===t||(t.indexOf(":")>0?(o=t.substring(0,t.indexOf(":")),r=t.substring(t.indexOf(":")+1)):o=t),e.removeAttribute("hx-swap-oob"),e.removeAttribute("data-hx-swap-oob");const a=querySelectorAllExt(i,r,!1);return a.length?(forEach(a,(function(t){let i;const r=e.cloneNode(!0);i=getDocument().createDocumentFragment(),i.appendChild(r),isInlineSwap(o,t)||(i=asParentNode(r));const a={shouldSwap:!0,target:t,fragment:i};triggerEvent(t,"htmx:oobBeforeSwap",a)&&(t=a.target,a.shouldSwap&&(handlePreservedElements(i),swapWithStyle(o,t,t,i,n),restorePreservedElements()),forEach(n.elts,(function(t){triggerEvent(t,"htmx:oobAfterSwap",a)})))})),e.parentNode.removeChild(e)):(e.parentNode.removeChild(e),triggerErrorEvent(getDocument().body,"htmx:oobErrorNoTarget",{content:e})),t}function restorePreservedElements(){const t=find("#--htmx-preserve-pantry--");if(t){for(const e of[...t.children]){const t=find("#"+e.id);t.parentNode.moveBefore(e,t),t.remove()}t.remove()}}function handlePreservedElements(t){forEach(findAll(t,"[hx-preserve], [data-hx-preserve]"),(function(t){const e=getAttributeValue(t,"id"),n=getDocument().getElementById(e);if(null!=n)if(t.moveBefore){let t=find("#--htmx-preserve-pantry--");null==t&&(getDocument().body.insertAdjacentHTML("afterend","<div id='--htmx-preserve-pantry--'></div>"),t=find("#--htmx-preserve-pantry--")),t.moveBefore(n,null)}else t.parentNode.replaceChild(n,t)}))}function handleAttributes(t,e,n){forEach(e.querySelectorAll("[id]"),(function(e){const i=getRawAttribute(e,"id");if(i&&i.length>0){const r=i.replace("'","\\'"),o=e.tagName.replace(":","\\:"),a=asParentNode(t),s=a&&a.querySelector(o+"[id='"+r+"']");if(s&&s!==a){const t=e.cloneNode();cloneAttributes(e,s),n.tasks.push((function(){cloneAttributes(e,t)}))}}}))}function makeAjaxLoadTask(t){return function(){removeClassFromElement(t,htmx.config.addedClass),processNode(asElement(t)),processFocus(asParentNode(t)),triggerEvent(t,"htmx:load")}}function processFocus(t){const e="[autofocus]",n=asHtmlElement(matches(t,e)?t:t.querySelector(e));null!=n&&n.focus()}function insertNodesBefore(t,e,n,i){for(handleAttributes(t,n,i);n.childNodes.length>0;){const r=n.firstChild;addClassToElement(asElement(r),htmx.config.addedClass),t.insertBefore(r,e),r.nodeType!==Node.TEXT_NODE&&r.nodeType!==Node.COMMENT_NODE&&i.tasks.push(makeAjaxLoadTask(r))}}function stringHash(t,e){let n=0;for(;n<t.length;)e=(e<<5)-e+t.charCodeAt(n++)|0;return e}function attributeHash(t){let e=0;for(let n=0;n<t.attributes.length;n++){const i=t.attributes[n];i.value&&(e=stringHash(i.name,e),e=stringHash(i.value,e))}return e}function deInitOnHandlers(t){const e=getInternalData(t);if(e.onHandlers){for(let n=0;n<e.onHandlers.length;n++){const i=e.onHandlers[n];removeEventListenerImpl(t,i.event,i.listener)}delete e.onHandlers}}function deInitNode(t){const e=getInternalData(t);e.timeout&&clearTimeout(e.timeout),e.listenerInfos&&forEach(e.listenerInfos,(function(t){t.on&&removeEventListenerImpl(t.on,t.trigger,t.listener)})),deInitOnHandlers(t),forEach(Object.keys(e),(function(t){"firstInitCompleted"!==t&&delete e[t]}))}function cleanUpElement(t){triggerEvent(t,"htmx:beforeCleanupElement"),deInitNode(t),forEach(t.children,(function(t){cleanUpElement(t)}))}function swapOuterHTML(t,e,n){if("BODY"===t.tagName)return swapInnerHTML(t,e,n);let i;const r=t.previousSibling,o=parentElt(t);if(o){for(insertNodesBefore(o,t,e,n),i=null==r?o.firstChild:r.nextSibling,n.elts=n.elts.filter((function(e){return e!==t}));i&&i!==t;)i instanceof Element&&n.elts.push(i),i=i.nextSibling;cleanUpElement(t),t.remove()}}function swapAfterBegin(t,e,n){return insertNodesBefore(t,t.firstChild,e,n)}function swapBeforeBegin(t,e,n){return insertNodesBefore(parentElt(t),t,e,n)}function swapBeforeEnd(t,e,n){return insertNodesBefore(t,null,e,n)}function swapAfterEnd(t,e,n){return insertNodesBefore(parentElt(t),t.nextSibling,e,n)}function swapDelete(t){cleanUpElement(t);const e=parentElt(t);if(e)return e.removeChild(t)}function swapInnerHTML(t,e,n){const i=t.firstChild;if(insertNodesBefore(t,i,e,n),i){for(;i.nextSibling;)cleanUpElement(i.nextSibling),t.removeChild(i.nextSibling);cleanUpElement(i),t.removeChild(i)}}function swapWithStyle(t,e,n,i,r){switch(t){case"none":return;case"outerHTML":return void swapOuterHTML(n,i,r);case"afterbegin":return void swapAfterBegin(n,i,r);case"beforebegin":return void swapBeforeBegin(n,i,r);case"beforeend":return void swapBeforeEnd(n,i,r);case"afterend":return void swapAfterEnd(n,i,r);case"delete":return void swapDelete(n);default:var o=getExtensions(e);for(let e=0;e<o.length;e++){const a=o[e];try{const e=a.handleSwap(t,n,i,r);if(e){if(Array.isArray(e))for(let t=0;t<e.length;t++){const n=e[t];n.nodeType!==Node.TEXT_NODE&&n.nodeType!==Node.COMMENT_NODE&&r.tasks.push(makeAjaxLoadTask(n))}return}}catch(t){logError(t)}}"innerHTML"===t?swapInnerHTML(n,i,r):swapWithStyle(htmx.config.defaultSwapStyle,e,n,i,r)}}function findAndSwapOobElements(t,e,n){var i=findAll(t,"[hx-swap-oob], [data-hx-swap-oob]");return forEach(i,(function(t){if(htmx.config.allowNestedOobSwaps||null===t.parentElement){const i=getAttributeValue(t,"hx-swap-oob");null!=i&&oobSwap(i,t,e,n)}else t.removeAttribute("hx-swap-oob"),t.removeAttribute("data-hx-swap-oob")})),i.length>0}function swap(t,e,n,i){i||(i={});let r=null,o=null,a=function(){maybeCall(i.beforeSwapCallback),t=resolveTarget(t);const o=i.contextElement?getRootNode(i.contextElement,!1):getDocument(),a=document.activeElement;let s={};s={elt:a,start:a?a.selectionStart:null,end:a?a.selectionEnd:null};const l=makeSettleInfo(t);if("textContent"===n.swapStyle)t.textContent=e;else{let r=makeFragment(e);if(l.title=i.title||r.title,i.historyRequest&&(r=r.querySelector("[hx-history-elt],[data-hx-history-elt]")||r),i.selectOOB){const t=i.selectOOB.split(",");for(let e=0;e<t.length;e++){const n=t[e].split(":",2);let i=n[0].trim();0===i.indexOf("#")&&(i=i.substring(1));const a=n[1]||"true",s=r.querySelector("#"+i);s&&oobSwap(a,s,l,o)}}if(findAndSwapOobElements(r,l,o),forEach(findAll(r,"template"),(function(t){t.content&&findAndSwapOobElements(t.content,l,o)&&t.remove()})),i.select){const t=getDocument().createDocumentFragment();forEach(r.querySelectorAll(i.select),(function(e){t.appendChild(e)})),r=t}handlePreservedElements(r),swapWithStyle(n.swapStyle,i.contextElement,t,r,l),restorePreservedElements()}if(s.elt&&!bodyContains(s.elt)&&getRawAttribute(s.elt,"id")){const t=document.getElementById(getRawAttribute(s.elt,"id")),e={preventScroll:void 0!==n.focusScroll?!n.focusScroll:!htmx.config.defaultFocusScroll};if(t){if(s.start&&t.setSelectionRange)try{t.setSelectionRange(s.start,s.end)}catch(t){}t.focus(e)}}t.classList.remove(htmx.config.swappingClass),forEach(l.elts,(function(t){t.classList&&t.classList.add(htmx.config.settlingClass),triggerEvent(t,"htmx:afterSwap",i.eventInfo)})),maybeCall(i.afterSwapCallback),n.ignoreTitle||handleTitle(l.title);const u=function(){if(forEach(l.tasks,(function(t){t.call()})),forEach(l.elts,(function(t){t.classList&&t.classList.remove(htmx.config.settlingClass),triggerEvent(t,"htmx:afterSettle",i.eventInfo)})),i.anchor){const t=asElement(resolveTarget("#"+i.anchor));t&&t.scrollIntoView({block:"start",behavior:"auto"})}updateScrollState(l.elts,n),maybeCall(i.afterSettleCallback),maybeCall(r)};n.settleDelay>0?getWindow().setTimeout(u,n.settleDelay):u()},s=htmx.config.globalViewTransitions;n.hasOwnProperty("transition")&&(s=n.transition);const l=i.contextElement||getDocument();if(s&&triggerEvent(l,"htmx:beforeTransition",i.eventInfo)&&"undefined"!=typeof Promise&&document.startViewTransition){const t=new Promise((function(t,e){r=t,o=e})),e=a;a=function(){document.startViewTransition((function(){return e(),t}))}}try{n?.swapDelay&&n.swapDelay>0?getWindow().setTimeout(a,n.swapDelay):a()}catch(t){throw triggerErrorEvent(l,"htmx:swapError",i.eventInfo),maybeCall(o),t}}function handleTriggerHeader(t,e,n){const i=t.getResponseHeader(e);if(0===i.indexOf("{")){const t=parseJSON(i);for(const e in t)if(t.hasOwnProperty(e)){let i=t[e];isRawObject(i)?n=void 0!==i.target?i.target:n:i={value:i},triggerEvent(n,e,i)}}else{const t=i.split(",");for(let e=0;e<t.length;e++)triggerEvent(n,t[e].trim(),[])}}const WHITESPACE=/\s/,WHITESPACE_OR_COMMA=/[\s,]/,SYMBOL_START=/[_$a-zA-Z]/,SYMBOL_CONT=/[_$a-zA-Z0-9]/,STRINGISH_START=['"',"'","/"],NOT_WHITESPACE=/[^\s]/,COMBINED_SELECTOR_START=/[{(]/,COMBINED_SELECTOR_END=/[})]/;function tokenizeString(t){const e=[];let n=0;for(;n<t.length;){if(SYMBOL_START.exec(t.charAt(n))){for(var i=n;SYMBOL_CONT.exec(t.charAt(n+1));)n++;e.push(t.substring(i,n+1))}else if(-1!==STRINGISH_START.indexOf(t.charAt(n))){const r=t.charAt(n);for(i=n,n++;n<t.length&&t.charAt(n)!==r;)"\\"===t.charAt(n)&&n++,n++;e.push(t.substring(i,n+1))}else{const i=t.charAt(n);e.push(i)}n++}return e}function isPossibleRelativeReference(t,e,n){return SYMBOL_START.exec(t.charAt(0))&&"true"!==t&&"false"!==t&&"this"!==t&&t!==n&&"."!==e}function maybeGenerateConditional(t,e,n){if("["===e[0]){e.shift();let i=1,r=" return (function("+n+"){ return (",o=null;for(;e.length>0;){const a=e[0];if("]"===a){if(i--,0===i){null===o&&(r+="true"),e.shift(),r+=")})";try{const e=maybeEval(t,(function(){return Function(r)()}),(function(){return!0}));return e.source=r,e}catch(t){return triggerErrorEvent(getDocument().body,"htmx:syntax:error",{error:t,source:r}),null}}}else"["===a&&i++;isPossibleRelativeReference(a,o,n)?r+="(("+n+"."+a+") ? ("+n+"."+a+") : (window."+a+"))":r+=a,o=e.shift()}}}function consumeUntil(t,e){let n="";for(;t.length>0&&!e.test(t[0]);)n+=t.shift();return n}function consumeCSSSelector(t){let e;return t.length>0&&COMBINED_SELECTOR_START.test(t[0])?(t.shift(),e=consumeUntil(t,COMBINED_SELECTOR_END).trim(),t.shift()):e=consumeUntil(t,WHITESPACE_OR_COMMA),e}const INPUT_SELECTOR="input, textarea, select";function parseAndCacheTrigger(t,e,n){const i=[],r=tokenizeString(e);do{consumeUntil(r,NOT_WHITESPACE);const e=r.length,n=consumeUntil(r,/[,\[\s]/);if(""!==n)if("every"===n){const e={trigger:"every"};consumeUntil(r,NOT_WHITESPACE),e.pollInterval=parseInterval(consumeUntil(r,/[,\[\s]/)),consumeUntil(r,NOT_WHITESPACE),(o=maybeGenerateConditional(t,r,"event"))&&(e.eventFilter=o),i.push(e)}else{const e={trigger:n};var o;for((o=maybeGenerateConditional(t,r,"event"))&&(e.eventFilter=o),consumeUntil(r,NOT_WHITESPACE);r.length>0&&","!==r[0];){const n=r.shift();if("changed"===n)e.changed=!0;else if("once"===n)e.once=!0;else if("consume"===n)e.consume=!0;else if("delay"===n&&":"===r[0])r.shift(),e.delay=parseInterval(consumeUntil(r,WHITESPACE_OR_COMMA));else if("from"===n&&":"===r[0]){if(r.shift(),COMBINED_SELECTOR_START.test(r[0]))var a=consumeCSSSelector(r);else if("closest"===(a=consumeUntil(r,WHITESPACE_OR_COMMA))||"find"===a||"next"===a||"previous"===a){r.shift();const t=consumeCSSSelector(r);t.length>0&&(a+=" "+t)}e.from=a}else"target"===n&&":"===r[0]?(r.shift(),e.target=consumeCSSSelector(r)):"throttle"===n&&":"===r[0]?(r.shift(),e.throttle=parseInterval(consumeUntil(r,WHITESPACE_OR_COMMA))):"queue"===n&&":"===r[0]?(r.shift(),e.queue=consumeUntil(r,WHITESPACE_OR_COMMA)):"root"===n&&":"===r[0]?(r.shift(),e[n]=consumeCSSSelector(r)):"threshold"===n&&":"===r[0]?(r.shift(),e[n]=consumeUntil(r,WHITESPACE_OR_COMMA)):triggerErrorEvent(t,"htmx:syntax:error",{token:r.shift()});consumeUntil(r,NOT_WHITESPACE)}i.push(e)}r.length===e&&triggerErrorEvent(t,"htmx:syntax:error",{token:r.shift()}),consumeUntil(r,NOT_WHITESPACE)}while(","===r[0]&&r.shift());return n&&(n[e]=i),i}function getTriggerSpecs(t){const e=getAttributeValue(t,"hx-trigger");let n=[];if(e){const i=htmx.config.triggerSpecsCache;n=i&&i[e]||parseAndCacheTrigger(t,e,i)}return n.length>0?n:matches(t,"form")?[{trigger:"submit"}]:matches(t,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:matches(t,INPUT_SELECTOR)?[{trigger:"change"}]:[{trigger:"click"}]}function cancelPolling(t){getInternalData(t).cancelled=!0}function processPolling(t,e,n){const i=getInternalData(t);i.timeout=getWindow().setTimeout((function(){bodyContains(t)&&!0!==i.cancelled&&(maybeFilterEvent(n,t,makeEvent("hx:poll:trigger",{triggerSpec:n,target:t}))||e(t),processPolling(t,e,n))}),n.pollInterval)}function isLocalLink(t){return location.hostname===t.hostname&&getRawAttribute(t,"href")&&0!==getRawAttribute(t,"href").indexOf("#")}function eltIsDisabled(t){return closest(t,htmx.config.disableSelector)}function boostElement(t,e,n){if(t instanceof HTMLAnchorElement&&isLocalLink(t)&&(""===t.target||"_self"===t.target)||"FORM"===t.tagName&&"dialog"!==String(getRawAttribute(t,"method")).toLowerCase()){let i,r;if(e.boosted=!0,"A"===t.tagName)i="get",r=getRawAttribute(t,"href");else{const e=getRawAttribute(t,"method");i=e?e.toLowerCase():"get",r=getRawAttribute(t,"action"),null!=r&&""!==r||(r=location.href),"get"===i&&r.includes("?")&&(r=r.replace(/\?[^#]+/,""))}n.forEach((function(n){addEventListener(t,(function(t,e){const n=asElement(t);eltIsDisabled(n)?cleanUpElement(n):issueAjaxRequest(i,r,n,e)}),e,n,!0)}))}}function shouldCancel(t,e){if("submit"===t.type||"click"===t.type){if("FORM"===(e=asElement(t.target)||e).tagName)return!0;if(e.form&&"submit"===e.type)return!0;if((e=e.closest("a"))&&e.href&&("#"===e.getAttribute("href")||0!==e.getAttribute("href").indexOf("#")))return!0}return!1}function ignoreBoostedAnchorCtrlClick(t,e){return getInternalData(t).boosted&&t instanceof HTMLAnchorElement&&"click"===e.type&&(e.ctrlKey||e.metaKey)}function maybeFilterEvent(t,e,n){const i=t.eventFilter;if(i)try{return!0!==i.call(e,n)}catch(t){const e=i.source;return triggerErrorEvent(getDocument().body,"htmx:eventFilter:error",{error:t,source:e}),!0}return!1}function addEventListener(t,e,n,i,r){const o=getInternalData(t);let a;a=i.from?querySelectorAllExt(t,i.from):[t],i.changed&&("lastValue"in o||(o.lastValue=new WeakMap),a.forEach((function(t){o.lastValue.has(i)||o.lastValue.set(i,new WeakMap),o.lastValue.get(i).set(t,t.value)}))),forEach(a,(function(a){const s=function(n){if(!bodyContains(t))return void a.removeEventListener(i.trigger,s);if(ignoreBoostedAnchorCtrlClick(t,n))return;if((r||shouldCancel(n,t))&&n.preventDefault(),maybeFilterEvent(i,t,n))return;const l=getInternalData(n);if(l.triggerSpec=i,null==l.handledFor&&(l.handledFor=[]),l.handledFor.indexOf(t)<0){if(l.handledFor.push(t),i.consume&&n.stopPropagation(),i.target&&n.target&&!matches(asElement(n.target),i.target))return;if(i.once){if(o.triggeredOnce)return;o.triggeredOnce=!0}if(i.changed){const t=n.target,e=t.value,r=o.lastValue.get(i);if(r.has(t)&&r.get(t)===e)return;r.set(t,e)}if(o.delayed&&clearTimeout(o.delayed),o.throttle)return;i.throttle>0?o.throttle||(triggerEvent(t,"htmx:trigger"),e(t,n),o.throttle=getWindow().setTimeout((function(){o.throttle=null}),i.throttle)):i.delay>0?o.delayed=getWindow().setTimeout((function(){triggerEvent(t,"htmx:trigger"),e(t,n)}),i.delay):(triggerEvent(t,"htmx:trigger"),e(t,n))}};null==n.listenerInfos&&(n.listenerInfos=[]),n.listenerInfos.push({trigger:i.trigger,listener:s,on:a}),a.addEventListener(i.trigger,s)}))}let windowIsScrolling=!1,scrollHandler=null;function initScrollHandler(){scrollHandler||(scrollHandler=function(){windowIsScrolling=!0},window.addEventListener("scroll",scrollHandler),window.addEventListener("resize",scrollHandler),setInterval((function(){windowIsScrolling&&(windowIsScrolling=!1,forEach(getDocument().querySelectorAll("[hx-trigger*='revealed'],[data-hx-trigger*='revealed']"),(function(t){maybeReveal(t)})))}),200))}function maybeReveal(t){!hasAttribute(t,"data-hx-revealed")&&isScrolledIntoView(t)&&(t.setAttribute("data-hx-revealed","true"),getInternalData(t).initHash?triggerEvent(t,"revealed"):t.addEventListener("htmx:afterProcessNode",(function(){triggerEvent(t,"revealed")}),{once:!0}))}function loadImmediately(t,e,n,i){const r=function(){n.loaded||(n.loaded=!0,triggerEvent(t,"htmx:trigger"),e(t))};i>0?getWindow().setTimeout(r,i):r()}function processVerbs(t,e,n){let i=!1;return forEach(VERBS,(function(r){if(hasAttribute(t,"hx-"+r)){const o=getAttributeValue(t,"hx-"+r);i=!0,e.path=o,e.verb=r,n.forEach((function(n){addTriggerHandler(t,n,e,(function(t,e){const n=asElement(t);eltIsDisabled(n)?cleanUpElement(n):issueAjaxRequest(r,o,n,e)}))}))}})),i}function addTriggerHandler(t,e,n,i){if("revealed"===e.trigger)initScrollHandler(),addEventListener(t,i,n,e),maybeReveal(asElement(t));else if("intersect"===e.trigger){const r={};e.root&&(r.root=querySelectorExt(t,e.root)),e.threshold&&(r.threshold=parseFloat(e.threshold)),new IntersectionObserver((function(e){for(let n=0;n<e.length;n++)if(e[n].isIntersecting){triggerEvent(t,"intersect");break}}),r).observe(asElement(t)),addEventListener(asElement(t),i,n,e)}else n.firstInitCompleted||"load"!==e.trigger?e.pollInterval>0?(n.polling=!0,processPolling(asElement(t),i,e)):addEventListener(t,i,n,e):maybeFilterEvent(e,t,makeEvent("load",{elt:t}))||loadImmediately(asElement(t),i,n,e.delay)}function shouldProcessHxOn(t){const e=asElement(t);if(!e)return!1;const n=e.attributes;for(let t=0;t<n.length;t++){const e=n[t].name;if(startsWith(e,"hx-on:")||startsWith(e,"data-hx-on:")||startsWith(e,"hx-on-")||startsWith(e,"data-hx-on-"))return!0}return!1}const HX_ON_QUERY=(new XPathEvaluator).createExpression('.//*[@*[ starts-with(name(), "hx-on:") or starts-with(name(), "data-hx-on:") or starts-with(name(), "hx-on-") or starts-with(name(), "data-hx-on-") ]]');function processHXOnRoot(t,e){shouldProcessHxOn(t)&&e.push(asElement(t));const n=HX_ON_QUERY.evaluate(t);let i=null;for(;i=n.iterateNext();)e.push(asElement(i))}function findHxOnWildcardElements(t){const e=[];if(t instanceof DocumentFragment)for(const n of t.childNodes)processHXOnRoot(n,e);else processHXOnRoot(t,e);return e}function findElementsToProcess(t){if(t.querySelectorAll){const n=", [hx-boost] a, [data-hx-boost] a, a[hx-boost], a[data-hx-boost]",i=[];for(const t in extensions){const n=extensions[t];if(n.getSelectors){var e=n.getSelectors();e&&i.push(e)}}return t.querySelectorAll(VERB_SELECTOR+n+", form, [type='submit'], [hx-ext], [data-hx-ext], [hx-trigger], [data-hx-trigger]"+i.flat().map((t=>", "+t)).join(""))}return[]}function maybeSetLastButtonClicked(t){const e=getTargetButton(t.target),n=getRelatedFormData(t);n&&(n.lastButtonClicked=e)}function maybeUnsetLastButtonClicked(t){const e=getRelatedFormData(t);e&&(e.lastButtonClicked=null)}function getTargetButton(t){return closest(asElement(t),"button, input[type='submit']")}function getRelatedForm(t){return t.form||closest(t,"form")}function getRelatedFormData(t){const e=getTargetButton(t.target);if(e)return getInternalData(getRelatedForm(e))}function initButtonTracking(t){t.addEventListener("click",maybeSetLastButtonClicked),t.addEventListener("focusin",maybeSetLastButtonClicked),t.addEventListener("focusout",maybeUnsetLastButtonClicked)}function addHxOnEventHandler(t,e,n){const i=getInternalData(t);let r;Array.isArray(i.onHandlers)||(i.onHandlers=[]);const o=function(e){maybeEval(t,(function(){eltIsDisabled(t)||(r||(r=new Function("event",n)),r.call(t,e))}))};t.addEventListener(e,o),i.onHandlers.push({event:e,listener:o})}function processHxOnWildcard(t){deInitOnHandlers(t);for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name,i=t.attributes[e].value;if(startsWith(n,"hx-on")||startsWith(n,"data-hx-on")){const e=n.indexOf("-on")+3,r=n.slice(e,e+1);if("-"===r||":"===r){let r=n.slice(e+1);startsWith(r,":")?r="htmx"+r:startsWith(r,"-")?r="htmx:"+r.slice(1):startsWith(r,"htmx-")&&(r="htmx:"+r.slice(5)),addHxOnEventHandler(t,r,i)}}}}function initNode(t){triggerEvent(t,"htmx:beforeProcessNode");const e=getInternalData(t),n=getTriggerSpecs(t);processVerbs(t,e,n)||("true"===getClosestAttributeValue(t,"hx-boost")?boostElement(t,e,n):hasAttribute(t,"hx-trigger")&&n.forEach((function(n){addTriggerHandler(t,n,e,(function(){}))}))),("FORM"===t.tagName||"submit"===getRawAttribute(t,"type")&&hasAttribute(t,"form"))&&initButtonTracking(t),e.firstInitCompleted=!0,triggerEvent(t,"htmx:afterProcessNode")}function maybeDeInitAndHash(t){if(!(t instanceof Element))return!1;const e=getInternalData(t),n=attributeHash(t);return e.initHash!==n&&(deInitNode(t),e.initHash=n,!0)}function processNode(t){if(eltIsDisabled(t=resolveTarget(t)))return void cleanUpElement(t);const e=[];maybeDeInitAndHash(t)&&e.push(t),forEach(findElementsToProcess(t),(function(t){eltIsDisabled(t)?cleanUpElement(t):maybeDeInitAndHash(t)&&e.push(t)})),forEach(findHxOnWildcardElements(t),processHxOnWildcard),forEach(e,initNode)}function kebabEventName(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function makeEvent(t,e){return new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!0,detail:e})}function triggerErrorEvent(t,e,n){triggerEvent(t,e,mergeObjects({error:e},n))}function ignoreEventForLogging(t){return"htmx:afterProcessNode"===t}function withExtensions(t,e,n){forEach(getExtensions(t,[],n),(function(t){try{e(t)}catch(t){logError(t)}}))}function logError(t){console.error(t)}function triggerEvent(t,e,n){t=resolveTarget(t),null==n&&(n={}),n.elt=t;const i=makeEvent(e,n);htmx.logger&&!ignoreEventForLogging(e)&&htmx.logger(t,e,n),n.error&&(logError(n.error),triggerEvent(t,"htmx:error",{errorInfo:n}));let r=t.dispatchEvent(i);const o=kebabEventName(e);if(r&&o!==e){const e=makeEvent(o,i.detail);r=r&&t.dispatchEvent(e)}return withExtensions(asElement(t),(function(t){r=r&&!1!==t.onEvent(e,i)&&!i.defaultPrevented})),r}let currentPathForHistory=location.pathname+location.search;function setCurrentPathForHistory(t){currentPathForHistory=t,canAccessLocalStorage()&&sessionStorage.setItem("htmx-current-path-for-history",t)}function getHistoryElement(){return getDocument().querySelector("[hx-history-elt],[data-hx-history-elt]")||getDocument().body}function saveToHistoryCache(t,e){if(!canAccessLocalStorage())return;const n=cleanInnerHtmlForHistory(e),i=getDocument().title,r=window.scrollY;if(htmx.config.historyCacheSize<=0)return void sessionStorage.removeItem("htmx-history-cache");t=normalizePath(t);const o=parseJSON(sessionStorage.getItem("htmx-history-cache"))||[];for(let e=0;e<o.length;e++)if(o[e].url===t){o.splice(e,1);break}const a={url:t,content:n,title:i,scroll:r};for(triggerEvent(getDocument().body,"htmx:historyItemCreated",{item:a,cache:o}),o.push(a);o.length>htmx.config.historyCacheSize;)o.shift();for(;o.length>0;)try{sessionStorage.setItem("htmx-history-cache",JSON.stringify(o));break}catch(t){triggerErrorEvent(getDocument().body,"htmx:historyCacheError",{cause:t,cache:o}),o.shift()}}function getCachedHistory(t){if(!canAccessLocalStorage())return null;t=normalizePath(t);const e=parseJSON(sessionStorage.getItem("htmx-history-cache"))||[];for(let n=0;n<e.length;n++)if(e[n].url===t)return e[n];return null}function cleanInnerHtmlForHistory(t){const e=htmx.config.requestClass,n=t.cloneNode(!0);return forEach(findAll(n,"."+e),(function(t){removeClassFromElement(t,e)})),forEach(findAll(n,"[data-disabled-by-htmx]"),(function(t){t.removeAttribute("disabled")})),n.innerHTML}function saveCurrentPageToHistory(){const t=getHistoryElement();let e=currentPathForHistory;canAccessLocalStorage()&&(e=sessionStorage.getItem("htmx-current-path-for-history")),e=e||location.pathname+location.search,getDocument().querySelector('[hx-history="false" i],[data-hx-history="false" i]')||(triggerEvent(getDocument().body,"htmx:beforeHistorySave",{path:e,historyElt:t}),saveToHistoryCache(e,t)),htmx.config.historyEnabled&&history.replaceState({htmx:!0},getDocument().title,location.href)}function pushUrlIntoHistory(t){htmx.config.getCacheBusterParam&&(endsWith(t=t.replace(/org\.htmx\.cache-buster=[^&]*&?/,""),"&")||endsWith(t,"?"))&&(t=t.slice(0,-1)),htmx.config.historyEnabled&&history.pushState({htmx:!0},"",t),setCurrentPathForHistory(t)}function replaceUrlInHistory(t){htmx.config.historyEnabled&&history.replaceState({htmx:!0},"",t),setCurrentPathForHistory(t)}function settleImmediately(t){forEach(t,(function(t){t.call(void 0)}))}function loadHistoryFromServer(t){const e=new XMLHttpRequest,n={swapStyle:"innerHTML",swapDelay:0,settleDelay:0},i={path:t,xhr:e,historyElt:getHistoryElement(),swapSpec:n};e.open("GET",t,!0),htmx.config.historyRestoreAsHxRequest&&e.setRequestHeader("HX-Request","true"),e.setRequestHeader("HX-History-Restore-Request","true"),e.setRequestHeader("HX-Current-URL",location.href),e.onload=function(){this.status>=200&&this.status<400?(i.response=this.response,triggerEvent(getDocument().body,"htmx:historyCacheMissLoad",i),swap(i.historyElt,i.response,n,{contextElement:i.historyElt,historyRequest:!0}),setCurrentPathForHistory(i.path),triggerEvent(getDocument().body,"htmx:historyRestore",{path:t,cacheMiss:!0,serverResponse:i.response})):triggerErrorEvent(getDocument().body,"htmx:historyCacheMissLoadError",i)},triggerEvent(getDocument().body,"htmx:historyCacheMiss",i)&&e.send()}function restoreHistory(t){saveCurrentPageToHistory();const e=getCachedHistory(t=t||location.pathname+location.search);if(e){const n={swapStyle:"innerHTML",swapDelay:0,settleDelay:0,scroll:e.scroll},i={path:t,item:e,historyElt:getHistoryElement(),swapSpec:n};triggerEvent(getDocument().body,"htmx:historyCacheHit",i)&&(swap(i.historyElt,e.content,n,{contextElement:i.historyElt,title:e.title}),setCurrentPathForHistory(i.path),triggerEvent(getDocument().body,"htmx:historyRestore",i))}else htmx.config.refreshOnHistoryMiss?htmx.location.reload(!0):loadHistoryFromServer(t)}function addRequestIndicatorClasses(t){let e=findAttributeTargets(t,"hx-indicator");return null==e&&(e=[t]),forEach(e,(function(t){const e=getInternalData(t);e.requestCount=(e.requestCount||0)+1,t.classList.add.call(t.classList,htmx.config.requestClass)})),e}function disableElements(t){let e=findAttributeTargets(t,"hx-disabled-elt");return null==e&&(e=[]),forEach(e,(function(t){const e=getInternalData(t);e.requestCount=(e.requestCount||0)+1,t.setAttribute("disabled",""),t.setAttribute("data-disabled-by-htmx","")})),e}function removeRequestIndicators(t,e){forEach(t.concat(e),(function(t){const e=getInternalData(t);e.requestCount=(e.requestCount||1)-1})),forEach(t,(function(t){0===getInternalData(t).requestCount&&t.classList.remove.call(t.classList,htmx.config.requestClass)})),forEach(e,(function(t){0===getInternalData(t).requestCount&&(t.removeAttribute("disabled"),t.removeAttribute("data-disabled-by-htmx"))}))}function haveSeenNode(t,e){for(let n=0;n<t.length;n++)if(t[n].isSameNode(e))return!0;return!1}function shouldInclude(t){const e=t;return""!==e.name&&null!=e.name&&!e.disabled&&!closest(e,"fieldset[disabled]")&&"button"!==e.type&&"submit"!==e.type&&"image"!==e.tagName&&"reset"!==e.tagName&&"file"!==e.tagName&&("checkbox"!==e.type&&"radio"!==e.type||e.checked)}function addValueToFormData(t,e,n){null!=t&&null!=e&&(Array.isArray(e)?e.forEach((function(e){n.append(t,e)})):n.append(t,e))}function removeValueFromFormData(t,e,n){if(null!=t&&null!=e){let i=n.getAll(t);i=Array.isArray(e)?i.filter((t=>e.indexOf(t)<0)):i.filter((t=>t!==e)),n.delete(t),forEach(i,(e=>n.append(t,e)))}}function getValueFromInput(t){return t instanceof HTMLSelectElement&&t.multiple?toArray(t.querySelectorAll("option:checked")).map((function(t){return t.value})):t instanceof HTMLInputElement&&t.files?toArray(t.files):t.value}function processInputValue(t,e,n,i,r){null==i||haveSeenNode(t,i)||(t.push(i),shouldInclude(i)&&(addValueToFormData(getRawAttribute(i,"name"),getValueFromInput(i),e),r&&validateElement(i,n)),i instanceof HTMLFormElement&&(forEach(i.elements,(function(i){t.indexOf(i)>=0?removeValueFromFormData(i.name,getValueFromInput(i),e):t.push(i),r&&validateElement(i,n)})),new FormData(i).forEach((function(t,n){t instanceof File&&""===t.name||addValueToFormData(n,t,e)}))))}function validateElement(t,e){const n=t;n.willValidate&&(triggerEvent(n,"htmx:validation:validate"),n.checkValidity()||(e.push({elt:n,message:n.validationMessage,validity:n.validity}),triggerEvent(n,"htmx:validation:failed",{message:n.validationMessage,validity:n.validity})))}function overrideFormData(t,e){for(const n of e.keys())t.delete(n);return e.forEach((function(e,n){t.append(n,e)})),t}function getInputValues(t,e){const n=[],i=new FormData,r=new FormData,o=[],a=getInternalData(t);a.lastButtonClicked&&!bodyContains(a.lastButtonClicked)&&(a.lastButtonClicked=null);let s=t instanceof HTMLFormElement&&!0!==t.noValidate||"true"===getAttributeValue(t,"hx-validate");if(a.lastButtonClicked&&(s=s&&!0!==a.lastButtonClicked.formNoValidate),"get"!==e&&processInputValue(n,r,o,getRelatedForm(t),s),processInputValue(n,i,o,t,s),a.lastButtonClicked||"BUTTON"===t.tagName||"INPUT"===t.tagName&&"submit"===getRawAttribute(t,"type")){const e=a.lastButtonClicked||t;addValueToFormData(getRawAttribute(e,"name"),e.value,r)}return forEach(findAttributeTargets(t,"hx-include"),(function(t){processInputValue(n,i,o,asElement(t),s),matches(t,"form")||forEach(asParentNode(t).querySelectorAll(INPUT_SELECTOR),(function(t){processInputValue(n,i,o,t,s)}))})),overrideFormData(i,r),{errors:o,formData:i,values:formDataProxy(i)}}function appendParam(t,e,n){""!==t&&(t+="&"),"[object Object]"===String(n)&&(n=JSON.stringify(n));const i=encodeURIComponent(n);return t+(encodeURIComponent(e)+"=")+i}function urlEncode(t){t=formDataFromObject(t);let e="";return t.forEach((function(t,n){e=appendParam(e,n,t)})),e}function getHeaders(t,e,n){const i={"HX-Request":"true","HX-Trigger":getRawAttribute(t,"id"),"HX-Trigger-Name":getRawAttribute(t,"name"),"HX-Target":getAttributeValue(e,"id"),"HX-Current-URL":location.href};return getValuesForElement(t,"hx-headers",!1,i),void 0!==n&&(i["HX-Prompt"]=n),getInternalData(t).boosted&&(i["HX-Boosted"]="true"),i}function filterValues(t,e){const n=getClosestAttributeValue(e,"hx-params");if(n){if("none"===n)return new FormData;if("*"===n)return t;if(0===n.indexOf("not "))return forEach(n.slice(4).split(","),(function(e){e=e.trim(),t.delete(e)})),t;{const e=new FormData;return forEach(n.split(","),(function(n){n=n.trim(),t.has(n)&&t.getAll(n).forEach((function(t){e.append(n,t)}))})),e}}return t}function isAnchorLink(t){return!!getRawAttribute(t,"href")&&getRawAttribute(t,"href").indexOf("#")>=0}function getSwapSpecification(t,e){const n=e||getClosestAttributeValue(t,"hx-swap"),i={swapStyle:getInternalData(t).boosted?"innerHTML":htmx.config.defaultSwapStyle,swapDelay:htmx.config.defaultSwapDelay,settleDelay:htmx.config.defaultSettleDelay};if(htmx.config.scrollIntoViewOnBoost&&getInternalData(t).boosted&&!isAnchorLink(t)&&(i.show="top"),n){const t=splitOnWhitespace(n);if(t.length>0)for(let e=0;e<t.length;e++){const n=t[e];if(0===n.indexOf("swap:"))i.swapDelay=parseInterval(n.slice(5));else if(0===n.indexOf("settle:"))i.settleDelay=parseInterval(n.slice(7));else if(0===n.indexOf("transition:"))i.transition="true"===n.slice(11);else if(0===n.indexOf("ignoreTitle:"))i.ignoreTitle="true"===n.slice(12);else if(0===n.indexOf("scroll:")){const t=(o=n.slice(7).split(":")).pop();var r=o.length>0?o.join(":"):null;i.scroll=t,i.scrollTarget=r}else if(0===n.indexOf("show:")){var o;const t=(o=n.slice(5).split(":")).pop();r=o.length>0?o.join(":"):null,i.show=t,i.showTarget=r}else if(0===n.indexOf("focus-scroll:")){const t=n.slice(13);i.focusScroll="true"==t}else 0==e?i.swapStyle=n:logError("Unknown modifier in hx-swap: "+n)}}return i}function usesFormData(t){return"multipart/form-data"===getClosestAttributeValue(t,"hx-encoding")||matches(t,"form")&&"multipart/form-data"===getRawAttribute(t,"enctype")}function encodeParamsForBody(t,e,n){let i=null;return withExtensions(e,(function(r){null==i&&(i=r.encodeParameters(t,n,e))})),null!=i?i:usesFormData(e)?overrideFormData(new FormData,formDataFromObject(n)):urlEncode(n)}function makeSettleInfo(t){return{tasks:[],elts:[t]}}function updateScrollState(t,e){const n=t[0],i=t[t.length-1];if(e.scroll){var r=null;e.scrollTarget&&(r=asElement(querySelectorExt(n,e.scrollTarget))),"top"===e.scroll&&(n||r)&&((r=r||n).scrollTop=0),"bottom"===e.scroll&&(i||r)&&((r=r||i).scrollTop=r.scrollHeight),"number"==typeof e.scroll&&getWindow().setTimeout((function(){window.scrollTo(0,e.scroll)}),0)}if(e.show){if(r=null,e.showTarget){let t=e.showTarget;"window"===e.showTarget&&(t="body"),r=asElement(querySelectorExt(n,t))}"top"===e.show&&(n||r)&&(r=r||n).scrollIntoView({block:"start",behavior:htmx.config.scrollBehavior}),"bottom"===e.show&&(i||r)&&(r=r||i).scrollIntoView({block:"end",behavior:htmx.config.scrollBehavior})}}function getValuesForElement(t,e,n,i,r){if(null==i&&(i={}),null==t)return i;const o=getAttributeValue(t,e);if(o){let e,a=o.trim(),s=n;if("unset"===a)return null;0===a.indexOf("javascript:")?(a=a.slice(11),s=!0):0===a.indexOf("js:")&&(a=a.slice(3),s=!0),0!==a.indexOf("{")&&(a="{"+a+"}"),e=s?maybeEval(t,(function(){return r?Function("event","return ("+a+")").call(t,r):Function("return ("+a+")").call(t)}),{}):parseJSON(a);for(const t in e)e.hasOwnProperty(t)&&null==i[t]&&(i[t]=e[t])}return getValuesForElement(asElement(parentElt(t)),e,n,i,r)}function maybeEval(t,e,n){return htmx.config.allowEval?e():(triggerErrorEvent(t,"htmx:evalDisallowedError"),n)}function getHXVarsForElement(t,e,n){return getValuesForElement(t,"hx-vars",!0,n,e)}function getHXValsForElement(t,e,n){return getValuesForElement(t,"hx-vals",!1,n,e)}function getExpressionVars(t,e){return mergeObjects(getHXVarsForElement(t,e),getHXValsForElement(t,e))}function safelySetHeaderValue(t,e,n){if(null!==n)try{t.setRequestHeader(e,n)}catch(i){t.setRequestHeader(e,encodeURIComponent(n)),t.setRequestHeader(e+"-URI-AutoEncoded","true")}}function getPathFromResponse(t){if(t.responseURL)try{const e=new URL(t.responseURL);return e.pathname+e.search}catch(e){triggerErrorEvent(getDocument().body,"htmx:badResponseUrl",{url:t.responseURL})}}function hasHeader(t,e){return e.test(t.getAllResponseHeaders())}function ajaxHelper(t,e,n){if(t=t.toLowerCase(),n){if(n instanceof Element||"string"==typeof n)return issueAjaxRequest(t,e,null,null,{targetOverride:resolveTarget(n)||DUMMY_ELT,returnPromise:!0});{let i=resolveTarget(n.target);return(n.target&&!i||n.source&&!i&&!resolveTarget(n.source))&&(i=DUMMY_ELT),issueAjaxRequest(t,e,resolveTarget(n.source),n.event,{handler:n.handler,headers:n.headers,values:n.values,targetOverride:i,swapOverride:n.swap,select:n.select,returnPromise:!0})}}return issueAjaxRequest(t,e,null,null,{returnPromise:!0})}function hierarchyForElt(t){const e=[];for(;t;)e.push(t),t=t.parentElement;return e}function verifyPath(t,e,n){const i=new URL(e,"about:"!==location.protocol?location.href:window.origin),r=("about:"!==location.protocol?location.origin:window.origin)===i.origin;return!(htmx.config.selfRequestsOnly&&!r)&&triggerEvent(t,"htmx:validateUrl",mergeObjects({url:i,sameHost:r},n))}function formDataFromObject(t){if(t instanceof FormData)return t;const e=new FormData;for(const n in t)t.hasOwnProperty(n)&&(t[n]&&"function"==typeof t[n].forEach?t[n].forEach((function(t){e.append(n,t)})):"object"!=typeof t[n]||t[n]instanceof Blob?e.append(n,t[n]):e.append(n,JSON.stringify(t[n])));return e}function formDataArrayProxy(t,e,n){return new Proxy(n,{get:function(n,i){return"number"==typeof i?n[i]:"length"===i?n.length:"push"===i?function(i){n.push(i),t.append(e,i)}:"function"==typeof n[i]?function(){n[i].apply(n,arguments),t.delete(e),n.forEach((function(n){t.append(e,n)}))}:n[i]&&1===n[i].length?n[i][0]:n[i]},set:function(n,i,r){return n[i]=r,t.delete(e),n.forEach((function(n){t.append(e,n)})),!0}})}function formDataProxy(t){return new Proxy(t,{get:function(e,n){if("symbol"==typeof n){const i=Reflect.get(e,n);return"function"==typeof i?function(){return i.apply(t,arguments)}:i}if("toJSON"===n)return()=>Object.fromEntries(t);if(n in e&&"function"==typeof e[n])return function(){return t[n].apply(t,arguments)};const i=t.getAll(n);return 0===i.length?void 0:1===i.length?i[0]:formDataArrayProxy(e,n,i)},set:function(t,e,n){return"string"==typeof e&&(t.delete(e),n&&"function"==typeof n.forEach?n.forEach((function(n){t.append(e,n)})):"object"!=typeof n||n instanceof Blob?t.append(e,n):t.append(e,JSON.stringify(n)),!0)},deleteProperty:function(t,e){return"string"==typeof e&&t.delete(e),!0},ownKeys:function(t){return Reflect.ownKeys(Object.fromEntries(t))},getOwnPropertyDescriptor:function(t,e){return Reflect.getOwnPropertyDescriptor(Object.fromEntries(t),e)}})}function issueAjaxRequest(t,e,n,i,r,o){let a=null,s=null;if((r=null!=r?r:{}).returnPromise&&"undefined"!=typeof Promise)var l=new Promise((function(t,e){a=t,s=e}));null==n&&(n=getDocument().body);const u=r.handler||handleAjaxResponse,c=r.select||null;if(!bodyContains(n))return maybeCall(a),l;const h=r.targetOverride||asElement(getTarget(n));if(null==h||h==DUMMY_ELT)return triggerErrorEvent(n,"htmx:targetError",{target:getClosestAttributeValue(n,"hx-target")}),maybeCall(s),l;let d=getInternalData(n);const p=d.lastButtonClicked;if(p){const n=getRawAttribute(p,"formaction");null!=n&&(e=n);const i=getRawAttribute(p,"formmethod");if(null!=i){if(!VERBS.includes(i.toLowerCase()))return maybeCall(a),l;t=i}}const f=getClosestAttributeValue(n,"hx-confirm");if(void 0===o&&!1===triggerEvent(n,"htmx:confirm",{target:h,elt:n,path:e,verb:t,triggeringEvent:i,etc:r,issueRequest:function(o){return issueAjaxRequest(t,e,n,i,r,!!o)},question:f}))return maybeCall(a),l;let g=n,m=getClosestAttributeValue(n,"hx-sync"),y=null,v=!1;if(m){const t=m.split(":"),e=t[0].trim();if(g="this"===e?findThisElement(n,"hx-sync"):asElement(querySelectorExt(n,e)),m=(t[1]||"drop").trim(),d=getInternalData(g),"drop"===m&&d.xhr&&!0!==d.abortable)return maybeCall(a),l;if("abort"===m){if(d.xhr)return maybeCall(a),l;v=!0}else"replace"===m?triggerEvent(g,"htmx:abort"):0===m.indexOf("queue")&&(y=(m.split(" ")[1]||"last").trim())}if(d.xhr){if(!d.abortable){if(null==y){if(i){const t=getInternalData(i);t&&t.triggerSpec&&t.triggerSpec.queue&&(y=t.triggerSpec.queue)}null==y&&(y="last")}return null==d.queuedRequests&&(d.queuedRequests=[]),"first"===y&&0===d.queuedRequests.length||"all"===y?d.queuedRequests.push((function(){issueAjaxRequest(t,e,n,i,r)})):"last"===y&&(d.queuedRequests=[],d.queuedRequests.push((function(){issueAjaxRequest(t,e,n,i,r)}))),maybeCall(a),l}triggerEvent(g,"htmx:abort")}const x=new XMLHttpRequest;d.xhr=x,d.abortable=v;const _=function(){d.xhr=null,d.abortable=!1,null!=d.queuedRequests&&d.queuedRequests.length>0&&d.queuedRequests.shift()()},b=getClosestAttributeValue(n,"hx-prompt");if(b){var w=prompt(b);if(null===w||!triggerEvent(n,"htmx:prompt",{prompt:w,target:h}))return maybeCall(a),_(),l}if(f&&!o&&!confirm(f))return maybeCall(a),_(),l;let S=getHeaders(n,h,w);"get"===t||usesFormData(n)||(S["Content-Type"]="application/x-www-form-urlencoded"),r.headers&&(S=mergeObjects(S,r.headers));const M=getInputValues(n,t);let C=M.errors;const T=M.formData;r.values&&overrideFormData(T,formDataFromObject(r.values));const I=overrideFormData(T,formDataFromObject(getExpressionVars(n,i)));let D=filterValues(I,n);htmx.config.getCacheBusterParam&&"get"===t&&D.set("org.htmx.cache-buster",getRawAttribute(h,"id")||"true"),null!=e&&""!==e||(e=location.href);const A=getValuesForElement(n,"hx-request"),k=getInternalData(n).boosted;let E=htmx.config.methodsThatUseUrlParams.indexOf(t)>=0;const L={boosted:k,useUrlParams:E,formData:D,parameters:formDataProxy(D),unfilteredFormData:I,unfilteredParameters:formDataProxy(I),headers:S,elt:n,target:h,verb:t,errors:C,withCredentials:r.credentials||A.credentials||htmx.config.withCredentials,timeout:r.timeout||A.timeout||htmx.config.timeout,path:e,triggeringEvent:i};if(!triggerEvent(n,"htmx:configRequest",L))return maybeCall(a),_(),l;if(e=L.path,t=L.verb,S=L.headers,D=formDataFromObject(L.parameters),C=L.errors,E=L.useUrlParams,C&&C.length>0)return triggerEvent(n,"htmx:validation:halted",L),maybeCall(a),_(),l;const O=e.split("#"),P=O[0],N=O[1];let R=e;if(E&&(R=P,!D.keys().next().done&&(R.indexOf("?")<0?R+="?":R+="&",R+=urlEncode(D),N&&(R+="#"+N))),!verifyPath(n,R,L))return triggerErrorEvent(n,"htmx:invalidPath",L),maybeCall(s),_(),l;if(x.open(t.toUpperCase(),R,!0),x.overrideMimeType("text/html"),x.withCredentials=L.withCredentials,x.timeout=L.timeout,A.noHeaders);else for(const t in S)if(S.hasOwnProperty(t)){const e=S[t];safelySetHeaderValue(x,t,e)}const z={xhr:x,target:h,requestConfig:L,etc:r,boosted:k,select:c,pathInfo:{requestPath:e,finalRequestPath:R,responsePath:null,anchor:N}};if(x.onload=function(){try{const t=hierarchyForElt(n);if(z.pathInfo.responsePath=getPathFromResponse(x),u(n,z),!0!==z.keepIndicators&&removeRequestIndicators(B,V),triggerEvent(n,"htmx:afterRequest",z),triggerEvent(n,"htmx:afterOnLoad",z),!bodyContains(n)){let e=null;for(;t.length>0&&null==e;){const n=t.shift();bodyContains(n)&&(e=n)}e&&(triggerEvent(e,"htmx:afterRequest",z),triggerEvent(e,"htmx:afterOnLoad",z))}maybeCall(a)}catch(t){throw triggerErrorEvent(n,"htmx:onLoadError",mergeObjects({error:t},z)),t}finally{_()}},x.onerror=function(){removeRequestIndicators(B,V),triggerErrorEvent(n,"htmx:afterRequest",z),triggerErrorEvent(n,"htmx:sendError",z),maybeCall(s),_()},x.onabort=function(){removeRequestIndicators(B,V),triggerErrorEvent(n,"htmx:afterRequest",z),triggerErrorEvent(n,"htmx:sendAbort",z),maybeCall(s),_()},x.ontimeout=function(){removeRequestIndicators(B,V),triggerErrorEvent(n,"htmx:afterRequest",z),triggerErrorEvent(n,"htmx:timeout",z),maybeCall(s),_()},!triggerEvent(n,"htmx:beforeRequest",z))return maybeCall(a),_(),l;var B=addRequestIndicatorClasses(n),V=disableElements(n);forEach(["loadstart","loadend","progress","abort"],(function(t){forEach([x,x.upload],(function(e){e.addEventListener(t,(function(e){triggerEvent(n,"htmx:xhr:"+t,{lengthComputable:e.lengthComputable,loaded:e.loaded,total:e.total})}))}))})),triggerEvent(n,"htmx:beforeSend",z);const H=E?null:encodeParamsForBody(x,n,D);return x.send(H),l}function determineHistoryUpdates(t,e){const n=e.xhr;let i=null,r=null;if(hasHeader(n,/HX-Push:/i)?(i=n.getResponseHeader("HX-Push"),r="push"):hasHeader(n,/HX-Push-Url:/i)?(i=n.getResponseHeader("HX-Push-Url"),r="push"):hasHeader(n,/HX-Replace-Url:/i)&&(i=n.getResponseHeader("HX-Replace-Url"),r="replace"),i)return"false"===i?{}:{type:r,path:i};const o=e.pathInfo.finalRequestPath,a=e.pathInfo.responsePath,s=getClosestAttributeValue(t,"hx-push-url"),l=getClosestAttributeValue(t,"hx-replace-url"),u=getInternalData(t).boosted;let c=null,h=null;return s?(c="push",h=s):l?(c="replace",h=l):u&&(c="push",h=a||o),h?"false"===h?{}:("true"===h&&(h=a||o),e.pathInfo.anchor&&-1===h.indexOf("#")&&(h=h+"#"+e.pathInfo.anchor),{type:c,path:h}):{}}function codeMatches(t,e){return new RegExp(t.code).test(e.toString(10))}function resolveResponseHandling(t){for(var e=0;e<htmx.config.responseHandling.length;e++){var n=htmx.config.responseHandling[e];if(codeMatches(n,t.status))return n}return{swap:!1}}function handleTitle(t){if(t){const e=find("title");e?e.textContent=t:window.document.title=t}}function resolveRetarget(t,e){if("this"===e)return t;const n=asElement(querySelectorExt(t,e));if(null==n)throw triggerErrorEvent(t,"htmx:targetError",{target:e}),new Error(`Invalid re-target ${e}`);return n}function handleAjaxResponse(t,e){const n=e.xhr;let i=e.target;const r=e.etc,o=e.select;if(!triggerEvent(t,"htmx:beforeOnLoad",e))return;if(hasHeader(n,/HX-Trigger:/i)&&handleTriggerHeader(n,"HX-Trigger",t),hasHeader(n,/HX-Location:/i)){saveCurrentPageToHistory();let t=n.getResponseHeader("HX-Location");var a;return 0===t.indexOf("{")&&(a=parseJSON(t),t=a.path,delete a.path),void ajaxHelper("get",t,a).then((function(){pushUrlIntoHistory(t)}))}const s=hasHeader(n,/HX-Refresh:/i)&&"true"===n.getResponseHeader("HX-Refresh");if(hasHeader(n,/HX-Redirect:/i))return e.keepIndicators=!0,htmx.location.href=n.getResponseHeader("HX-Redirect"),void(s&&htmx.location.reload());if(s)return e.keepIndicators=!0,void htmx.location.reload();const l=determineHistoryUpdates(t,e),u=resolveResponseHandling(n),c=u.swap;let h=!!u.error,d=htmx.config.ignoreTitle||u.ignoreTitle,p=u.select;u.target&&(e.target=resolveRetarget(t,u.target));var f=r.swapOverride;null==f&&u.swapOverride&&(f=u.swapOverride),hasHeader(n,/HX-Retarget:/i)&&(e.target=resolveRetarget(t,n.getResponseHeader("HX-Retarget"))),hasHeader(n,/HX-Reswap:/i)&&(f=n.getResponseHeader("HX-Reswap"));var g=n.response,m=mergeObjects({shouldSwap:c,serverResponse:g,isError:h,ignoreTitle:d,selectOverride:p,swapOverride:f},e);if((!u.event||triggerEvent(i,u.event,m))&&triggerEvent(i,"htmx:beforeSwap",m)){if(i=m.target,g=m.serverResponse,h=m.isError,d=m.ignoreTitle,p=m.selectOverride,f=m.swapOverride,e.target=i,e.failed=h,e.successful=!h,m.shouldSwap){286===n.status&&cancelPolling(t),withExtensions(t,(function(e){g=e.transformResponse(g,n,t)})),l.type&&saveCurrentPageToHistory();var y=getSwapSpecification(t,f);y.hasOwnProperty("ignoreTitle")||(y.ignoreTitle=d),i.classList.add(htmx.config.swappingClass),o&&(p=o),hasHeader(n,/HX-Reselect:/i)&&(p=n.getResponseHeader("HX-Reselect"));const r=getClosestAttributeValue(t,"hx-select-oob"),a=getClosestAttributeValue(t,"hx-select");swap(i,g,y,{select:"unset"===p?null:p||a,selectOOB:r,eventInfo:e,anchor:e.pathInfo.anchor,contextElement:t,afterSwapCallback:function(){if(hasHeader(n,/HX-Trigger-After-Swap:/i)){let e=t;bodyContains(t)||(e=getDocument().body),handleTriggerHeader(n,"HX-Trigger-After-Swap",e)}},afterSettleCallback:function(){if(hasHeader(n,/HX-Trigger-After-Settle:/i)){let e=t;bodyContains(t)||(e=getDocument().body),handleTriggerHeader(n,"HX-Trigger-After-Settle",e)}},beforeSwapCallback:function(){l.type&&(triggerEvent(getDocument().body,"htmx:beforeHistoryUpdate",mergeObjects({history:l},e)),"push"===l.type?(pushUrlIntoHistory(l.path),triggerEvent(getDocument().body,"htmx:pushedIntoHistory",{path:l.path})):(replaceUrlInHistory(l.path),triggerEvent(getDocument().body,"htmx:replacedInHistory",{path:l.path})))}})}h&&triggerErrorEvent(t,"htmx:responseError",mergeObjects({error:"Response Status Error Code "+n.status+" from "+e.pathInfo.requestPath},e))}}const extensions={};function extensionBase(){return{init:function(t){return null},getSelectors:function(){return null},onEvent:function(t,e){return!0},transformResponse:function(t,e,n){return t},isInlineSwap:function(t){return!1},handleSwap:function(t,e,n,i){return!1},encodeParameters:function(t,e,n){return null}}}function defineExtension(t,e){e.init&&e.init(internalAPI),extensions[t]=mergeObjects(extensionBase(),e)}function removeExtension(t){delete extensions[t]}function getExtensions(t,e,n){if(null==e&&(e=[]),null==t)return e;null==n&&(n=[]);const i=getAttributeValue(t,"hx-ext");return i&&forEach(i.split(","),(function(t){if("ignore:"!=(t=t.replace(/ /g,"")).slice(0,7)){if(n.indexOf(t)<0){const n=extensions[t];n&&e.indexOf(n)<0&&e.push(n)}}else n.push(t.slice(7))})),getExtensions(asElement(parentElt(t)),e,n)}var isReady=!1;function ready(t){isReady||"complete"===getDocument().readyState?t():getDocument().addEventListener("DOMContentLoaded",t)}function insertIndicatorStyles(){if(!1!==htmx.config.includeIndicatorStyles){const t=htmx.config.inlineStyleNonce?` nonce="${htmx.config.inlineStyleNonce}"`:"";getDocument().head.insertAdjacentHTML("beforeend","<style"+t+"> ."+htmx.config.indicatorClass+"{opacity:0} ."+htmx.config.requestClass+" ."+htmx.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;} ."+htmx.config.requestClass+"."+htmx.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;} </style>")}}function getMetaConfig(){const t=getDocument().querySelector('meta[name="htmx-config"]');return t?parseJSON(t.content):null}function mergeMetaConfig(){const t=getMetaConfig();t&&(htmx.config=mergeObjects(htmx.config,t))}return getDocument().addEventListener("DOMContentLoaded",(function(){isReady=!0})),ready((function(){mergeMetaConfig(),insertIndicatorStyles();let t=getDocument().body;processNode(t);const e=getDocument().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");t.addEventListener("htmx:abort",(function(t){const e=getInternalData(t.target);e&&e.xhr&&e.xhr.abort()}));const n=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(t){t.state&&t.state.htmx?(restoreHistory(),forEach(e,(function(t){triggerEvent(t,"htmx:restored",{document:getDocument(),triggerEvent})}))):n&&n(t)},getWindow().setTimeout((function(){triggerEvent(t,"htmx:load",{}),t=null}),0)})),htmx}();const __WEBPACK_DEFAULT_EXPORT__=htmx},75:(t,e,n)=>{"use strict";function i(t){const e=t.regex;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:e.concat(/[_A-Za-z][_0-9A-Za-z]*/,e.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}n.d(e,{A:()=>i})},139:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(692),n(883)],i=function(t){var e,n=0,i=Array.prototype.hasOwnProperty,r=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(n){var i,r,o;for(o=0;null!=(r=n[o]);o++)(i=t._data(r,"events"))&&i.remove&&t(r).triggerHandler("remove");e(n)}),t.widget=function(e,n,i){var r,o,a,s={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var u=l+"-"+e;return i||(i=n,n=t.Widget),Array.isArray(i)&&(i=t.extend.apply(null,[{}].concat(i))),t.expr.pseudos[u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},r=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,r,{version:i.version,_proto:t.extend({},i),_childConstructors:[]}),(a=new n).options=t.widget.extend({},a.options),t.each(i,(function(t,e){s[t]="function"==typeof e?function(){function i(){return n.prototype[t].apply(this,arguments)}function r(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=i,this._superApply=r,t=e.apply(this,arguments),this._super=n,this._superApply=o,t}}():e})),o.prototype=t.widget.extend(a,{widgetEventPrefix:r&&a.widgetEventPrefix||e},s,{constructor:o,namespace:l,widgetName:e,widgetFullName:u}),r?(t.each(r._childConstructors,(function(e,n){var i=n.prototype;t.widget(i.namespace+"."+i.widgetName,o,n._proto)})),delete r._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var n,o,a=r.call(arguments,1),s=0,l=a.length;s<l;s++)for(n in a[s])o=a[s][n],i.call(a[s],n)&&void 0!==o&&(t.isPlainObject(o)?e[n]=t.isPlainObject(e[n])?t.widget.extend({},e[n],o):t.widget.extend({},o):e[n]=o);return e},t.widget.bridge=function(e,n){var i=n.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,s=r.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each((function(){var n,r=t.data(this,i);return"instance"===o?(l=r,!1):r?"function"!=typeof r[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(n=r[o].apply(r,s))!==r&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):l=void 0:(s.length&&(o=t.widget.extend.apply(null,[o].concat(s))),this.each((function(){var e=t.data(this,i);e?(e.option(o||{}),e._init&&e._init()):t.data(this,i,new n(o,this))}))),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,n){e._removeClass(n,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var i,r,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},i=e.split("."),e=i.shift(),i.length){for(r=a[e]=t.widget.extend({},this.options[e]),o=0;o<i.length-1;o++)r[i[o]]=r[i[o]]||{},r=r[i[o]];if(e=i.pop(),1===arguments.length)return void 0===r[e]?null:r[e];r[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,i,r;for(n in e)r=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&r&&r.length&&(i=t(r.get()),this._removeClass(r,n),i.addClass(this._classes({element:i,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var n=[],i=this;function r(){var n=[];e.element.each((function(e,r){t.map(i.classesElementLookup,(function(t){return t})).some((function(t){return t.is(r)}))||n.push(r)})),i._on(t(n),{remove:"_untrackClassesElement"})}function o(o,a){var s,l;for(l=0;l<o.length;l++)s=i.classesElementLookup[o[l]]||t(),e.add?(r(),s=t(t.uniqueSort(s.get().concat(e.element.get())))):s=t(s.not(e.element).get()),i.classesElementLookup[o[l]]=s,n.push(o[l]),a&&e.classes[o[l]]&&n.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,(function(i,r){-1!==t.inArray(e.target,r)&&(n.classesElementLookup[i]=t(r.not(e.target).get()))})),this._off(t(e.target))},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,i){i="boolean"==typeof i?i:n;var r="string"==typeof t||null===t,o={extra:r?e:n,keys:r?t:e,element:r?this.element:t,add:i};return o.element.toggleClass(this._classes(o),i),this},_on:function(e,n,i){var r,o=this;"boolean"!=typeof e&&(i=n,n=e,e=!1),i?(n=r=t(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),t.each(i,(function(i,a){function s(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||t.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,c=l[2];c?r.on(u,c,s):n.on(u,s)}))},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var n=this;return setTimeout((function(){return("string"==typeof t?n[t]:t).apply(n,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,i){var r,o,a=this.options[e];if(i=i||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(r in o)r in n||(n[r]=o[r]);return this.element.trigger(n,i),!("function"==typeof a&&!1===a.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,n){t.Widget.prototype["_"+e]=function(i,r,o){var a;"string"==typeof r&&(r={effect:r});var s=r?!0===r||"number"==typeof r?n:r.effect||n:e;"number"==typeof(r=r||{})?r={duration:r}:!0===r&&(r={}),a=!t.isEmptyObject(r),r.complete=o,r.delay&&i.delay(r.delay),a&&t.effects&&t.effects.effect[s]?i[e](r):s!==e&&i[s]?i[s](r.duration,r.easing,o):i.queue((function(n){t(this)[e](),o&&o.call(i[0]),n()}))}})),t.widget},void 0===(o=i.apply(e,r))||(t.exports=o)}()},209:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Axis:()=>pM,ChartView:()=>rv,ComponentModel:()=>Ad,ComponentView:()=>Og,List:()=>aw,Model:()=>ih,PRIORITY:()=>s_,SeriesModel:()=>Eg,color:()=>a,connect:()=>nb,dataTool:()=>Db,dependencies:()=>e_,disConnect:()=>rb,disconnect:()=>ib,dispose:()=>ob,env:()=>x,extendChartView:()=>yM,extendComponentModel:()=>fM,extendComponentView:()=>gM,extendSeriesModel:()=>mM,format:()=>p,getCoordinateSystemDimensions:()=>mb,getInstanceByDom:()=>ab,getInstanceById:()=>sb,getMap:()=>Cb,graphic:()=>d,helper:()=>u,init:()=>eb,innerDrawElementOnCanvas:()=>Hx,matrix:()=>o,number:()=>c,parseGeoJSON:()=>YS,parseGeoJson:()=>YS,registerAction:()=>fb,registerCoordinateSystem:()=>gb,registerCustomSeries:()=>yb,registerLayout:()=>vb,registerLoading:()=>wb,registerLocale:()=>ph,registerMap:()=>Mb,registerPostInit:()=>hb,registerPostUpdate:()=>db,registerPreprocessor:()=>ub,registerProcessor:()=>cb,registerTheme:()=>lb,registerTransform:()=>Tb,registerUpdateLifecycle:()=>pb,registerVisual:()=>xb,setCanvasCreator:()=>Sb,setPlatformAPI:()=>T,throttle:()=>lv,time:()=>h,use:()=>Eb,util:()=>f,vector:()=>r,version:()=>t_,zrUtil:()=>i,zrender:()=>s});var i={};n.r(i),n.d(i,{EPSILON:()=>Bt,HashMap:()=>kt,RADIAN_TO_DEGREE:()=>zt,assert:()=>St,bind:()=>it,clone:()=>F,concatArray:()=>Lt,createCanvas:()=>U,createHashMap:()=>Et,createObject:()=>Ot,curry:()=>rt,defaults:()=>$,disableUserSelect:()=>Pt,each:()=>K,eqNaN:()=>yt,extend:()=>j,filter:()=>tt,find:()=>et,guid:()=>V,hasOwn:()=>Nt,indexOf:()=>q,inherits:()=>Y,isArray:()=>ot,isArrayLike:()=>Z,isBuiltInObject:()=>ht,isDom:()=>pt,isFunction:()=>at,isGradientObject:()=>ft,isImagePatternObject:()=>gt,isNumber:()=>ut,isObject:()=>ct,isPrimitive:()=>It,isRegExp:()=>mt,isString:()=>st,isStringSafe:()=>lt,isTypedArray:()=>dt,keys:()=>nt,logError:()=>H,map:()=>J,merge:()=>W,mergeAll:()=>G,mixin:()=>X,noop:()=>Rt,normalizeCssArray:()=>wt,reduce:()=>Q,retrieve:()=>vt,retrieve2:()=>xt,retrieve3:()=>_t,setAsPrimitive:()=>Tt,slice:()=>bt,trim:()=>Mt});var r={};n.r(r),n.d(r,{add:()=>$t,applyTransform:()=>ue,clone:()=>Gt,copy:()=>Wt,create:()=>Ft,dist:()=>re,distSquare:()=>ae,distance:()=>ie,distanceSquare:()=>oe,div:()=>Qt,dot:()=>te,len:()=>Yt,lenSquare:()=>Zt,length:()=>Xt,lengthSquare:()=>Kt,lerp:()=>le,max:()=>he,min:()=>ce,mul:()=>Jt,negate:()=>se,normalize:()=>ne,scale:()=>ee,scaleAndAdd:()=>Ut,set:()=>jt,sub:()=>qt});var o={};n.r(o),n.d(o,{clone:()=>Ye,copy:()=>We,create:()=>He,identity:()=>Fe,invert:()=>qe,mul:()=>Ge,rotate:()=>$e,scale:()=>Ue,translate:()=>je});var a={};n.r(a),n.d(a,{fastLerp:()=>Ni,fastMapToColor:()=>Ri,lerp:()=>zi,lift:()=>Oi,liftColor:()=>$i,lum:()=>Wi,mapToColor:()=>Bi,modifyAlpha:()=>Hi,modifyHSL:()=>Vi,parse:()=>Ei,parseCssFloat:()=>Si,parseCssInt:()=>wi,random:()=>Gi,stringify:()=>Fi,toHex:()=>Pi});var s={};n.r(s),n.d(s,{dispose:()=>No,disposeAll:()=>Ro,getElementSSRData:()=>Vo,getInstance:()=>zo,init:()=>Po,registerPainter:()=>Bo,registerSSRDataGetter:()=>Ho,version:()=>Fo});var l={};n.r(l),n.d(l,{Arc:()=>Gm,BezierCurve:()=>Hm,BoundingRect:()=>mn,Circle:()=>im,CompoundPath:()=>$m,Ellipse:()=>am,Group:()=>Ao,Image:()=>$l,IncrementalDisplayable:()=>ly,Line:()=>Nm,LinearGradient:()=>Ym,OrientedBoundingRect:()=>oy,Path:()=>Bl,Point:()=>Ze,Polygon:()=>Dm,Polyline:()=>Em,RadialGradient:()=>Xm,Rect:()=>Ql,Ring:()=>Mm,Sector:()=>bm,Text:()=>mu,WH:()=>hy,XY:()=>cy,applyTransform:()=>Ty,calcZ2Range:()=>qy,clipPointsByRect:()=>ky,clipRectByRect:()=>Ey,createIcon:()=>Ly,ensureCopyRect:()=>jy,ensureCopyTransform:()=>$y,expandOrShrinkRect:()=>Ry,extendPath:()=>fy,extendShape:()=>dy,getShapeClass:()=>my,getTransform:()=>Cy,groupTransition:()=>Ay,initProps:()=>bc,isBoundingRectAxisAligned:()=>Wy,isElementRemoved:()=>wc,lineLineIntersect:()=>Py,linePolygonIntersect:()=>Oy,makeImage:()=>vy,makePath:()=>yy,mergePath:()=>_y,registerShape:()=>gy,removeElement:()=>Sc,removeElementWithFadeOut:()=>Cc,resizePath:()=>by,retrieveZInfo:()=>Uy,setTooltipConfig:()=>Vy,subPixelOptimize:()=>My,subPixelOptimizeLine:()=>wy,subPixelOptimizeRect:()=>Sy,transformDirection:()=>Iy,traverseElements:()=>Fy,traverseUpdateZ:()=>Yy,updateProps:()=>_c});var u={};n.r(u),n.d(u,{createDimensions:()=>sw,createList:()=>ES,createScale:()=>OS,createSymbol:()=>px,createTextStyle:()=>NS,dataStack:()=>LS,enableHoverEmphasis:()=>sc,getECData:()=>yu,getLayoutRect:()=>vd,mixinAxisModelCommonMethods:()=>PS});var c={};n.r(c),n.d(c,{MAX_SAFE_INTEGER:()=>ra,asc:()=>Ko,getPercentWithPrecision:()=>ea,getPixelPrecision:()=>ta,getPrecision:()=>Jo,getPrecisionSafe:()=>Qo,isNumeric:()=>ga,isRadianAroundZero:()=>aa,linearMap:()=>qo,nice:()=>ha,numericToNumber:()=>fa,parseDate:()=>la,parsePercent:()=>Yo,quantile:()=>da,quantity:()=>ua,quantityExponent:()=>ca,reformIntervals:()=>pa,remRadian:()=>oa,round:()=>Zo});var h={};n.r(h),n.d(h,{format:()=>Dh,parse:()=>la,roundTime:()=>kh});var d={};n.r(d),n.d(d,{Arc:()=>Gm,BezierCurve:()=>Hm,BoundingRect:()=>mn,Circle:()=>im,CompoundPath:()=>$m,Ellipse:()=>am,Group:()=>Ao,Image:()=>$l,IncrementalDisplayable:()=>ly,Line:()=>Nm,LinearGradient:()=>Ym,Polygon:()=>Dm,Polyline:()=>Em,RadialGradient:()=>Xm,Rect:()=>Ql,Ring:()=>Mm,Sector:()=>bm,Text:()=>mu,clipPointsByRect:()=>ky,clipRectByRect:()=>Ey,createIcon:()=>Ly,extendPath:()=>fy,extendShape:()=>dy,getShapeClass:()=>my,getTransform:()=>Cy,initProps:()=>bc,makeImage:()=>vy,makePath:()=>yy,mergePath:()=>_y,registerShape:()=>gy,resizePath:()=>by,updateProps:()=>_c});var p={};n.r(p),n.d(p,{addCommas:()=>$h,capitalFirst:()=>td,encodeHTML:()=>Te,formatTime:()=>Qh,formatTpl:()=>Kh,getTextRect:()=>XS,getTooltipMarker:()=>Jh,normalizeCssArray:()=>qh,toCamelCase:()=>Uh,truncateText:()=>cs});var f={};n.r(f),n.d(f,{bind:()=>it,clone:()=>F,curry:()=>rt,defaults:()=>$,each:()=>K,extend:()=>j,filter:()=>tt,indexOf:()=>q,inherits:()=>Y,isArray:()=>ot,isFunction:()=>at,isObject:()=>ct,isString:()=>st,map:()=>J,merge:()=>W,reduce:()=>Q});var g=function(t,e){return g=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])},g(t,e)};function m(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}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create;var y=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},v=new function(){this.browser=new y,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(v.wxa=!0,v.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?v.worker=!0:!v.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(v.node=!0,v.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);if(i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document){var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,v);const x=v;var _,b,w="sans-serif",S="12px "+w,M=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<95;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),C={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!_){var n=C.createCanvas();_=n&&n.getContext("2d")}if(_)return b!==e&&(b=_.font=e||S),_.measureText(t);t=t||"";var i=/((?:\d+)?\.?\d*)px/.exec(e=e||S),r=i&&+i[1]||12,o=0;if(e.indexOf("mono")>=0)o=r*t.length;else for(var a=0;a<t.length;a++){var s=M[t[a]];o+=null==s?r:s*r}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function T(t){for(var e in C)t[e]&&(C[e]=t[e])}var I=Q(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),D=Q(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),A=Object.prototype.toString,k=Array.prototype,E=k.forEach,L=k.filter,O=k.slice,P=k.map,N=function(){}.constructor,R=N?N.prototype:null,z="__proto__",B=2311;function V(){return B++}function H(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function F(t){if(null==t||"object"!=typeof t)return t;var e=t,n=A.call(t);if("[object Array]"===n){if(!It(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=F(t[i])}}else if(D[n]){if(!It(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;i<r;i++)e[i]=t[i]}}else if(!I[n]&&!It(t)&&!pt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==z&&(e[a]=F(t[a]));return e}function W(t,e,n){if(!ct(e)||!ct(t))return n?F(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==z){var r=t[i],o=e[i];!ct(o)||!ct(r)||ot(o)||ot(r)||pt(o)||pt(r)||ht(o)||ht(r)||It(o)||It(r)?!n&&i in t||(t[i]=F(e[i])):W(r,o,n)}return t}function G(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=W(n,t[i],e);return n}function j(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==z&&(t[n]=e[n]);return t}function $(t,e,n){for(var i=nt(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}var U=C.createCanvas;function q(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function Y(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function X(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else $(t,e,n)}function Z(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function K(t,e,n){if(t&&e)if(t.forEach&&t.forEach===E)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function J(t,e,n){if(!t)return[];if(!e)return bt(t);if(t.map&&t.map===P)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function Q(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function tt(t,e,n){if(!t)return[];if(!e)return bt(t);if(t.filter&&t.filter===L)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function et(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function nt(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var it=R&&at(R.bind)?R.call.bind(R.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(O.call(arguments)))}};function rt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(O.call(arguments)))}}function ot(t){return Array.isArray?Array.isArray(t):"[object Array]"===A.call(t)}function at(t){return"function"==typeof t}function st(t){return"string"==typeof t}function lt(t){return"[object String]"===A.call(t)}function ut(t){return"number"==typeof t}function ct(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function ht(t){return!!I[A.call(t)]}function dt(t){return!!D[A.call(t)]}function pt(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function ft(t){return null!=t.colorStops}function gt(t){return null!=t.image}function mt(t){return"[object RegExp]"===A.call(t)}function yt(t){return t!=t}function vt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function xt(t,e){return null!=t?t:e}function _t(t,e,n){return null!=t?t:null!=e?e:n}function bt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return O.apply(t,e)}function wt(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function St(t,e){if(!t)throw new Error(e)}function Mt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ct="__ec_primitive__";function Tt(t){t[Ct]=!0}function It(t){return t[Ct]}var Dt=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return nt(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),At="function"==typeof Map,kt=function(){function t(e){var n=ot(e);this.data=At?new Map:new Dt;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&K(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,i){t.call(e,n,i)}))},t.prototype.keys=function(){var t=this.data.keys();return At?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function Et(t){return new kt(t)}function Lt(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function Ot(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&j(n,e),n}function Pt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Nt(t,e){return t.hasOwnProperty(e)}function Rt(){}var zt=180/Math.PI,Bt=Number.EPSILON||Math.pow(2,-52),Vt=function(t,e){return Vt=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])},Vt(t,e)};function Ht(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}Vt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function Ft(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Wt(t,e){return t[0]=e[0],t[1]=e[1],t}function Gt(t){return[t[0],t[1]]}function jt(t,e,n){return t[0]=e,t[1]=n,t}function $t(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Ut(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function qt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Yt(t){return Math.sqrt(Zt(t))}Object.create,Object.create;var Xt=Yt;function Zt(t){return t[0]*t[0]+t[1]*t[1]}var Kt=Zt;function Jt(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function Qt(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function te(t,e){return t[0]*e[0]+t[1]*e[1]}function ee(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function ne(t,e){var n=Yt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function ie(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var re=ie;function oe(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ae=oe;function se(t,e){return t[0]=-e[0],t[1]=-e[1],t}function le(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function ue(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function ce(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function he(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var de=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},pe=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new de(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new de(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new de(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new de(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new de(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new de(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();const fe=pe;var ge=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}();const me=ge;var ye=Math.log(2);function ve(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/ye);return t[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,d=0,p=0;d<s;d++){var f=1<<d;f&r||(h+=(p%2?-1:1)*t[n][d]*ve(t,e-1,c,u,r|f,o),p++)}return o[a]=h,h}function xe(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=ve(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*ve(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var _e="___zrEVENTSAVED",be=[];function we(t,e,n,i,r){if(e.getBoundingClientRect&&x.domSupported&&!Se(e)){var o=e[_e]||(e[_e]={}),a=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){K(n,(function(t){t.parentNode&&t.parentNode.removeChild(t)}))},n}(e,o),s=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?xe(s,a):xe(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function Se(t){return"CANVAS"===t.nodeName.toUpperCase()}var Me=/([&<>"'])/g,Ce={"&":"&","<":"<",">":">",'"':""","'":"'"};function Te(t){return null==t?"":(t+"").replace(Me,(function(t,e){return Ce[e]}))}var Ie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,De=[],Ae=x.browser.firefox&&+x.browser.version.split(".")[0]<39;function ke(t,e,n,i){return n=n||{},i?Ee(t,e,n):Ae&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Ee(t,e,n),n}function Ee(t,e,n){if(x.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Se(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(we(De,t,i,r))return n.zrX=De[0],void(n.zrY=De[1])}n.zrX=n.zrY=0}function Le(t){return t||window.event}function Oe(t,e,n){if(null!=(e=Le(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ke(t,r,e,n)}else{ke(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&Ie.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function Pe(t,e,n,i){t.addEventListener(e,n,i)}var Ne=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Re(t){return 2===t.which||3===t.which}var ze=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=ke(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in Ve)if(Ve.hasOwnProperty(e)){var n=Ve[e](this._track,t);if(n)return n}},t}();function Be(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var Ve={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=Be(r)/Be(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function He(){return[1,0,0,1,0,0]}function Fe(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function We(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}function Ge(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function je(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function $e(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(a-i[0])+i[1],t}function Ue(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function qe(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Ye(t){var e=[1,0,0,1,0,0];return We(e,t),e}var Xe=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();const Ze=Xe;var Ke=Math.min,Je=Math.max,Qe=Math.abs,tn=["x","y"],en=["width","height"],nn=new Ze,rn=new Ze,on=new Ze,an=new Ze,sn=gn(),ln=sn.minTv,un=sn.maxTv,cn=[0,0],hn=function(){function t(e,n,i,r){t.set(this,e,n,i,r)}return t.set=function(t,e,n,i,r){return i<0&&(e+=i,i=-i),r<0&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},t.prototype.union=function(t){var e=Ke(t.x,this.x),n=Ke(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Je(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Je(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return je(r,r,[-e.x,-e.y]),Ue(r,r,[n,i]),je(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n,i){return t.intersect(this,e,n,i)},t.intersect=function(e,n,i,r){i&&Ze.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!n)return!1;e instanceof t||(e=t.set(dn,e.x,e.y,e.width,e.height)),n instanceof t||(n=t.set(pn,n.x,n.y,n.width,n.height));var s=!!i;sn.reset(r,s);var l=sn.touchThreshold,u=e.x+l,c=e.x+e.width-l,h=e.y+l,d=e.y+e.height-l,p=n.x+l,f=n.x+n.width-l,g=n.y+l,m=n.y+n.height-l;if(u>c||h>d||p>f||g>m)return!1;var y=!(c<p||f<u||d<g||m<h);return(s||o)&&(cn[0]=1/0,cn[1]=0,fn(u,c,p,f,0,s,o,a),fn(h,d,g,m,1,s,o,a),s&&Ze.copy(i,y?sn.useDir?sn.dirMinTv:ln:un)),y},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}nn.x=on.x=n.x,nn.y=an.y=n.y,rn.x=an.x=n.x+n.width,rn.y=on.y=n.y+n.height,nn.transform(i),an.transform(i),rn.transform(i),on.transform(i),e.x=Ke(nn.x,rn.x,on.x,an.x),e.y=Ke(nn.y,rn.y,on.y,an.y);var l=Je(nn.x,rn.x,on.x,an.x),u=Je(nn.y,rn.y,on.y,an.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),dn=new hn(0,0,0,0),pn=new hn(0,0,0,0);function fn(t,e,n,i,r,o,a,s){var l=Qe(e-n),u=Qe(i-t),c=Ke(l,u),h=tn[r],d=tn[1-r],p=en[r];e<n||i<t?l<u?(o&&(un[h]=-l),s&&(a[h]=e,a[p]=0)):(o&&(un[h]=u),s&&(a[h]=t,a[p]=0)):(a&&(a[h]=Je(t,n),a[p]=Ke(e,i)-a[h]),o&&(c<cn[0]||sn.useDir)&&(cn[0]=Ke(c,cn[0]),(l<u||!sn.bidirectional)&&(ln[h]=l,ln[d]=0,sn.useDir&&sn.calcDirMTV()),(l>=u||!sn.bidirectional)&&(ln[h]=-u,ln[d]=0,sn.useDir&&sn.calcDirMTV())))}function gn(){var t=0,e=new Ze,n=new Ze,i={minTv:new Ze,maxTv:new Ze,useDir:!1,dirMinTv:new Ze,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){i.touchThreshold=0,r&&null!=r.touchThreshold&&(i.touchThreshold=Je(0,r.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,r&&null!=r.direction&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),t=r.direction,i.bidirectional=null==r.bidirectional||!!r.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),c=l*o.y+u*o.x;r(c)?r(o.x)&&r(o.y)&&a.set(0,0):(n.x=s*u/c,n.y=s*l/c,r(n.x)&&r(n.y)?a.set(0,0):(i.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n))}};function r(t){return Qe(t)<1e-10}return i}const mn=hn;var yn="silent";function vn(){Ne(this.event)}var xn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Ht(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(me),_n=function(t,e){this.x=t,this.y=e},bn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],wn=new mn(0,0,0,0),Sn=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new _n(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new xn,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new fe(a),a}return Ht(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(K(bn,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Tn(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new _n(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new _n(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:vn}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new _n(t,e);if(Cn(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new mn(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(wn.copy(c.getBoundingRect()),c.transform&&wn.applyTransform(c.transform),wn.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<d;f+=h)if(Cn(o,r,t+p*Math.cos(f),e+p*Math.sin(f),n),r.target)return r}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new ze);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new _n;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(me);function Mn(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return!r||yn}return!1}function Cn(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Mn(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==yn)){e.target=a;break}}}function Tn(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}K(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Sn.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Tn(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||re(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const In=Sn;function Dn(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){for(n--;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function An(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function kn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function En(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function Ln(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)An(t,n,i,n+(o=Dn(t,n,i,e)),e);else{var a=function(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=En(t[c],t,l,u,0,e);l+=d,0!=(u-=d)&&0!==(h=kn(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!=--s)if(1!==i){for(var d,p,f,g=r;;){d=0,p=0,f=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],p++,d=0,0==--s){f=!0;break}}else if(t[h++]=a[u++],d++,p=0,1==--i){f=!0;break}}while((d|p)<g);if(f)break;do{if(0!==(d=En(t[c],a,u,i,0,e))){for(l=0;l<d;l++)t[h+l]=a[u+l];if(h+=d,u+=d,(i-=d)<=1){f=!0;break}}if(t[h++]=t[c++],0==--s){f=!0;break}if(0!==(p=kn(a[u],t,c,s,0,e))){for(l=0;l<p;l++)t[h+l]=t[c+l];if(h+=p,c+=p,0==(s-=p)){f=!0;break}}if(t[h++]=a[u++],1==--i){f=!0;break}g--}while(d>=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[h+l]=a[u+l]}}else{for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else for(l=0;l<i;l++)t[h+l]=a[u+l]}(l,u,c,h):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,c=s-1,h=o+s-1,d=0,p=0;if(t[h--]=t[u--],0!=--i)if(1!==s){for(var f=r;;){var g=0,m=0,y=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,m=0,0==--i){y=!0;break}}else if(t[h--]=a[c--],m++,g=0,1==--s){y=!0;break}}while((g|m)<f);if(y)break;do{if(0!=(g=i-En(a[c],t,n,i,i-1,e))){for(i-=g,p=1+(h-=g),d=1+(u-=g),l=g-1;l>=0;l--)t[p+l]=t[d+l];if(0===i){y=!0;break}}if(t[h--]=a[c--],1==--s){y=!0;break}if(0!=(m=s-kn(t[u],a,0,s,s-1,e))){for(s-=m,p=1+(h-=m),d=1+(c-=m),l=0;l<m;l++)t[p+l]=a[d+l];if(s<=1){y=!0;break}}if(t[h--]=t[u--],0==--i){y=!0;break}f--}while(g>=7||m>=7);if(y)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(p=1+(h-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[p+l]=t[d+l];t[h]=a[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}}else{for(p=1+(h-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[p+l]=t[d+l];t[h]=a[c]}else for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}(l,u,c,h))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Dn(t,n,i,e))<s){var l=r;l>s&&(l=s),An(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var On=1,Pn=4,Nn=!1;function Rn(){Nn||(Nn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function zn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Bn=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=zn}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Ln(n,zn)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||i)){if(a||(a=t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=i,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var c=t.childrenRef(),h=0;h<c.length;h++){var d=c[h];t.__dirty&&(d.__dirty|=On),this._updateAndAddDisplayable(d,a,n)}t.__dirty=0}else{var p=t;isNaN(p.z)&&(Rn(),p.z=0),isNaN(p.z2)&&(Rn(),p.z2=0),isNaN(p.zlevel)&&(Rn(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,a,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,a,n);var m=t.getTextContent();m&&this._updateAndAddDisplayable(m,a,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=q(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const Vn=Bn,Hn=x.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Fn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Fn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Fn.bounceIn(2*t):.5*Fn.bounceOut(2*t-1)+.5}};const Wn=Fn;var Gn=Math.pow,jn=Math.sqrt,$n=1e-4,Un=jn(3),qn=1/3,Yn=Ft(),Xn=Ft(),Zn=Ft();function Kn(t){return t>-1e-8&&t<1e-8}function Jn(t){return t>1e-8||t<-1e-8}function Qn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function ti(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function ei(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,p=0;if(Kn(c)&&Kn(h))Kn(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[p++]=M);else{var f=h*h-4*c*d;if(Kn(f)){var g=h/c,m=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[p++]=M),m>=0&&m<=1&&(o[p++]=m)}else if(f>0){var y=jn(f),v=c*s+1.5*a*(-h+y),x=c*s+1.5*a*(-h-y);(M=(-s-((v=v<0?-Gn(-v,qn):Gn(v,qn))+(x=x<0?-Gn(-x,qn):Gn(x,qn))))/(3*a))>=0&&M<=1&&(o[p++]=M)}else{var _=(2*c*s-3*a*h)/(2*jn(c*c*c)),b=Math.acos(_)/3,w=jn(c),S=Math.cos(b),M=(-s-2*w*S)/(3*a),C=(m=(-s+w*(S+Un*Math.sin(b)))/(3*a),(-s+w*(S-Un*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[p++]=M),m>=0&&m<=1&&(o[p++]=m),C>=0&&C<=1&&(o[p++]=C)}}return p}function ni(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Kn(a))Jn(o)&&(c=-s/o)>=0&&c<=1&&(r[l++]=c);else{var u=o*o-4*a*s;if(Kn(u))r[0]=-o/(2*a);else if(u>0){var c,h=jn(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function ii(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function ri(t,e,n,i,r,o,a,s,l,u,c){var h,d,p,f,g,m=.005,y=1/0;Yn[0]=l,Yn[1]=u;for(var v=0;v<1;v+=.05)Xn[0]=Qn(t,n,r,a,v),Xn[1]=Qn(e,i,o,s,v),(f=ae(Yn,Xn))<y&&(h=v,y=f);y=1/0;for(var x=0;x<32&&!(m<$n);x++)d=h-m,p=h+m,Xn[0]=Qn(t,n,r,a,d),Xn[1]=Qn(e,i,o,s,d),f=ae(Xn,Yn),d>=0&&f<y?(h=d,y=f):(Zn[0]=Qn(t,n,r,a,p),Zn[1]=Qn(e,i,o,s,p),g=ae(Zn,Yn),p<=1&&g<y?(h=p,y=g):m*=.5);return c&&(c[0]=Qn(t,n,r,a,h),c[1]=Qn(e,i,o,s,h)),jn(y)}function oi(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=Qn(t,n,r,a,f),m=Qn(e,i,o,s,f),y=g-u,v=m-c;h+=Math.sqrt(y*y+v*v),u=g,c=m}return h}function ai(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function si(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function li(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function ui(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function ci(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;Yn[0]=a,Yn[1]=s;for(var d=0;d<1;d+=.05)Xn[0]=ai(t,n,r,d),Xn[1]=ai(e,i,o,d),(m=ae(Yn,Xn))<h&&(u=d,h=m);h=1/0;for(var p=0;p<32&&!(c<$n);p++){var f=u-c,g=u+c;Xn[0]=ai(t,n,r,f),Xn[1]=ai(e,i,o,f);var m=ae(Xn,Yn);if(f>=0&&m<h)u=f,h=m;else{Zn[0]=ai(t,n,r,g),Zn[1]=ai(e,i,o,g);var y=ae(Zn,Yn);g<=1&&y<h?(u=g,h=y):c*=.5}}return l&&(l[0]=ai(t,n,r,u),l[1]=ai(e,i,o,u)),jn(h)}function hi(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,p=ai(t,n,r,d),f=ai(e,i,o,d),g=p-s,m=f-l;u+=Math.sqrt(g*g+m*m),s=p,l=f}return u}var di=/cubic-bezier\(([0-9,\.e ]+)\)/;function pi(t){var e=t&&di.exec(t);if(e){var n=e[1].split(","),i=+Mt(n[0]),r=+Mt(n[1]),o=+Mt(n[2]),a=+Mt(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:ei(0,i,o,1,t,s)&&Qn(0,r,a,1,s[0])}}}const fi=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Rt,this.ondestroy=t.ondestroy||Rt,this.onrestart=t.onrestart||Rt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=at(t)?t:Wn[t]||pi(t)},t}();var gi=function(t){this.value=t},mi=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new gi(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),yi=function(){function t(t){this._list=new mi,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new gi(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const vi=yi;var xi={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function _i(t){return(t=Math.round(t))<0?0:t>255?255:t}function bi(t){return t<0?0:t>1?1:t}function wi(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?_i(parseFloat(e)/100*255):_i(parseInt(e,10))}function Si(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?bi(parseFloat(e)/100):bi(parseFloat(e))}function Mi(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Ci(t,e,n){return t+(e-t)*n}function Ti(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Ii(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Di=new vi(20),Ai=null;function ki(t,e){Ai&&Ii(Ai,e),Ai=Di.put(t,Ai||e.slice())}function Ei(t,e){if(t){e=e||[];var n=Di.get(t);if(n)return Ii(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in xi)return Ii(e,xi[i]),ki(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(Ti(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),ki(t,e),e):void Ti(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(Ti(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),ki(t,e),e):void Ti(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Ti(e,+u[0],+u[1],+u[2],1):Ti(e,0,0,0,1);c=Si(u.pop());case"rgb":return u.length>=3?(Ti(e,wi(u[0]),wi(u[1]),wi(u[2]),3===u.length?c:Si(u[3])),ki(t,e),e):void Ti(e,0,0,0,1);case"hsla":return 4!==u.length?void Ti(e,0,0,0,1):(u[3]=Si(u[3]),Li(u,e),ki(t,e),e);case"hsl":return 3!==u.length?void Ti(e,0,0,0,1):(Li(u,e),ki(t,e),e);default:return}}Ti(e,0,0,0,1)}}function Li(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Si(t[1]),r=Si(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Ti(e=e||[],_i(255*Mi(a,o,n+1/3)),_i(255*Mi(a,o,n)),_i(255*Mi(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Oi(t,e){var n=Ei(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Fi(n,4===n.length?"rgba":"rgb")}}function Pi(t){var e=Ei(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Ni(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=_i(Ci(a[0],s[0],l)),n[1]=_i(Ci(a[1],s[1],l)),n[2]=_i(Ci(a[2],s[2],l)),n[3]=bi(Ci(a[3],s[3],l)),n}}var Ri=Ni;function zi(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Ei(e[r]),s=Ei(e[o]),l=i-r,u=Fi([_i(Ci(a[0],s[0],l)),_i(Ci(a[1],s[1],l)),_i(Ci(a[2],s[2],l)),bi(Ci(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var Bi=zi;function Vi(t,e,n,i){var r=Ei(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(at(e)?e(r[0]):e)),null!=n&&(r[1]=Si(at(n)?n(r[1]):n)),null!=i&&(r[2]=Si(at(i)?i(r[2]):i)),Fi(Li(r),"rgba")}function Hi(t,e){var n=Ei(t);if(n&&null!=e)return n[3]=bi(e),Fi(n,"rgba")}function Fi(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function Wi(t,e){var n=Ei(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Gi(){return Fi([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var ji=new vi(100);function $i(t){if(st(t)){var e=ji.get(t);return e||(e=Oi(t,-.1),ji.put(t,e)),e}if(ft(t)){var n=j({},t);return n.colorStops=J(t.colorStops,(function(t){return{offset:t.offset,color:Oi(t.color,-.1)}})),n}return t}var Ui=Math.round;function qi(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Ei(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function Yi(t){return t<1e-4&&t>-1e-4}function Xi(t){return Ui(1e3*t)/1e3}function Zi(t){return Ui(1e4*t)/1e4}var Ki={left:"start",right:"end",center:"middle",middle:"middle"};function Ji(t){return t&&!!t.image}function Qi(t){return Ji(t)||function(t){return t&&!!t.svgElement}(t)}function tr(t){return"linear"===t.type}function er(t){return"radial"===t.type}function nr(t){return t&&("linear"===t.type||"radial"===t.type)}function ir(t){return"url(#"+t+")"}function rr(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function or(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*zt,r=xt(t.scaleX,1),o=xt(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+Ui(a*zt)+"deg, "+Ui(s*zt)+"deg)"),l.join(" ")}var ar=x.hasGlobalWindow&&at(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},sr=Array.prototype.slice;function lr(t,e,n){return(e-t)*n+t}function ur(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=lr(e[o],n[o],i);return t}function cr(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function hr(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function dr(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function pr(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:sr.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function fr(t){if(Z(t)){var e=t.length;if(Z(t[0])){for(var n=[],i=0;i<e;i++)n.push(sr.call(t[i]));return n}return sr.call(t)}return t}function gr(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function mr(t){return 4===t||5===t}function yr(t){return 1===t||2===t}var vr=[0,0,0,0],xr=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(Z(e)){var l=function(t){return Z(t&&t[0])?2:1}(e);a=l,(1===l&&!ut(e[0])||2===l&&!ut(e[0][0]))&&(o=!0)}else if(ut(e)&&!yt(e))a=0;else if(st(e))if(isNaN(+e)){var u=Ei(e);u&&(s=u,a=3)}else a=0;else if(ft(e)){var c=j({},s);c.colorStops=J(e.colorStops,(function(t){return{offset:t.offset,color:Ei(t.color)}})),tr(e)?a=4:er(e)&&(a=5),s=c}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=at(n)?n:Wn[n]||pi(n)),i.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=yr(i),l=mr(i),u=0;u<r;u++){var c=n[u],h=c.value,d=o.value;c.percent=c.time/t,a||(s&&u!==r-1?pr(h,d,i):l&&dr(h.colorStops,d.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var p=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-p:3===i?n[u].additiveValue=cr([],n[u].value,p,-1):yr(i)&&(n[u].additiveValue=1===i?cr([],n[u].value,p,-1):hr([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,d=this._lastFr,p=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=p(d+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=d;n<u&&!(l[n].percent>e);n++);n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:p((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var m=o?this._additiveValue:h?vr:t[c];if(!yr(s)&&!h||m||(m=this._additiveValue=[]),this.discrete)t[c]=g<1?i.rawValue:r.rawValue;else if(yr(s))1===s?ur(m,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=lr(e[a][s],n[a][s],i)}}(m,i[a],r[a],g);else if(mr(s)){var y=i[a],v=r[a],x=4===s;t[c]={type:x?"linear":"radial",x:lr(y.x,v.x,g),y:lr(y.y,v.y,g),colorStops:J(y.colorStops,(function(t,e){var n=v.colorStops[e];return{offset:lr(t.offset,n.offset,g),color:gr(ur([],t.color,n.color,g))}})),global:v.global},x?(t[c].x2=lr(y.x2,v.x2,g),t[c].y2=lr(y.y2,v.y2,g)):t[c].r=lr(y.r,v.r,g)}else if(h)ur(m,i[a],r[a],g),o||(t[c]=gr(m));else{var _=lr(i[a],r[a],g);o?this._additiveValue=_:t[c]=_}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(Ei(t[n],vr),cr(vr,vr,i,1),t[n]=gr(vr)):1===e?cr(t[n],t[n],i,1):2===e&&hr(t[n],t[n],i,1)},t}(),_r=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?H("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,nt(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new xr(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=gr(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,fr(l),i),this._trackKeys.push(a)}s.addKeyframe(t,fr(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new fi({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return J(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=fr(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||nt(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();const br=_r;function wr(){return(new Date).getTime()}var Sr=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return Ht(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=wr()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Hn((function e(){t._running&&(Hn(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=wr(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=wr(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=wr()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new br(t,e.loop);return this.addAnimator(n),n},e}(me);const Mr=Sr;var Cr,Tr,Ir=x.domSupported,Dr=(Tr={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Cr=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:J(Cr,(function(t){var e=t.replace("mouse","pointer");return Tr.hasOwnProperty(e)?e:t}))}),Ar=["mousemove","mouseup"],kr=["pointermove","pointerup"],Er=!1;function Lr(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Or(t){t&&(t.zrByTouch=!0)}function Pr(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var Nr=function(t,e){this.stopPropagation=Rt,this.stopImmediatePropagation=Rt,this.preventDefault=Rt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Rr={mousedown:function(t){t=Oe(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Oe(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Oe(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Pr(this,(t=Oe(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Er=!0,t=Oe(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Er||(t=Oe(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Or(t=Oe(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Rr.mousemove.call(this,t),Rr.mousedown.call(this,t)},touchmove:function(t){Or(t=Oe(this.dom,t)),this.handler.processGesture(t,"change"),Rr.mousemove.call(this,t)},touchend:function(t){Or(t=Oe(this.dom,t)),this.handler.processGesture(t,"end"),Rr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Rr.click.call(this,t)},pointerdown:function(t){Rr.mousedown.call(this,t)},pointermove:function(t){Lr(t)||Rr.mousemove.call(this,t)},pointerup:function(t){Rr.mouseup.call(this,t)},pointerout:function(t){Lr(t)||Rr.mouseout.call(this,t)}};K(["click","dblclick","contextmenu"],(function(t){Rr[t]=function(e){e=Oe(this.dom,e),this.trigger(t,e)}}));var zr={pointermove:function(t){Lr(t)||zr.mousemove.call(this,t)},pointerup:function(t){zr.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Br(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Pe(t.domTarget,e,n,i)}function Vr(t){var e,n,i,r,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,i=o[a],r=t.listenerOpts[a],e.removeEventListener(n,i,r));t.mounted={}}var Hr=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const Fr=function(t){function e(e,n){var i,r,o,a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new Hr(e,Rr),Ir&&(a._globalHandlerScope=new Hr(document,zr)),i=a,r=a._localHandlerScope,o=r.domHandlers,x.pointerEventsSupported?K(Dr.pointer,(function(t){Br(r,t,(function(e){o[t].call(i,e)}))})):(x.touchEventsSupported&&K(Dr.touch,(function(t){Br(r,t,(function(e){o[t].call(i,e),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(r)}))})),K(Dr.mouse,(function(t){Br(r,t,(function(e){e=Le(e),r.touching||o[t].call(i,e)}))}))),a}return Ht(e,t),e.prototype.dispose=function(){Vr(this._localHandlerScope),Ir&&Vr(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Ir&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){function n(n){Br(e,n,(function(i){i=Le(i),Pr(t,i.target)||(i=function(t,e){return Oe(t.dom,new Nr(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}x.pointerEventsSupported?K(kr,n):x.touchEventsSupported||K(Ar,n)}(this,e):Vr(e)}},e}(me);var Wr=1;x.hasGlobalWindow&&(Wr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Gr=Wr,jr="#333",$r="#ccc",Ur=Fe;function qr(t){return t>5e-5||t<-5e-5}var Yr=[],Xr=[],Zr=[1,0,0,1,0,0],Kr=Math.abs,Jr=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return qr(this.rotation)||qr(this.x)||qr(this.y)||qr(this.scaleX-1)||qr(this.scaleY-1)||qr(this.skewX)||qr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Ur(n),t&&(e?Ge(n,t,n):We(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Ur(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Yr);var n=Yr[0]<0?-1:1,i=Yr[1]<0?-1:1,r=((Yr[0]-n)*e+n)/Yr[0]||0,o=((Yr[1]-i)*e+i)/Yr[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],qe(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],Ge(Xr,t.invTransform,e),e=Xr);var n=this.originX,i=this.originY;(n||i)&&(Zr[4]=n,Zr[5]=i,Ge(Xr,e,Zr),Xr[4]-=n,Xr[5]-=i,e=Xr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&ue(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&ue(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Kr(t[0]-1)>1e-10&&Kr(t[3]-1)>1e-10?Math.sqrt(Kr(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){to(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;e[4]=-p*r-h*f*o,e[5]=-f*o-d*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=h*o,l&&$e(e,e,l),e[4]+=n+u,e[5]+=i+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),Qr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function to(t,e){for(var n=0;n<Qr.length;n++){var i=Qr[n];t[i]=e[i]}}const eo=Jr;function no(t){io||(io=new vi(100)),t=t||S;var e=io.get(t);return e||(e={font:t,strWidthCache:new vi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:C.measureText("国",t).width,asciiCharWidth:C.measureText("a",t).width},io.put(t,e)),e}var io,ro=0,oo=5;function ao(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(ro>=oo)){t=t||S;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=C.measureText(String.fromCharCode(i),t).width;var r=+new Date-n;return r>16?ro=oo:r>2&&ro++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function so(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=C.measureText(e,t.font).width,n.put(e,i)),i}function lo(t,e,n,i){var r=so(no(e),t),o=po(e),a=co(0,r,n),s=ho(0,o,i);return new mn(a,s,r,o)}function uo(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return lo(r[0],e,n,i);for(var o=new mn(0,0,0,0),a=0;a<r.length;a++){var s=lo(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function co(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function ho(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function po(t){return no(t).stWideCharWidth}function fo(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function go(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=fo(i[0],n.width),u+=fo(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var mo="__zr_normal__",yo=Qr.concat(["ignore"]),vo=Q(Qr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),xo={},_o=new mn(0,0,0,0),bo=[],wo=function(){function t(t){this.id=V(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;r.copyTransform(e);var u=null!=n.position,c=n.autoOverflowArea,h=void 0;if((c||u)&&(h=_o,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(xo,n,h):go(xo,n,h),r.x=xo.x,r.y=xo.y,o=xo.align,a=xo.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var p=void 0,f=void 0;"center"===d?(p=.5*h.width,f=.5*h.height):(p=fo(d[0],h.width),f=fo(d[1],h.height)),l=!0,r.originX=-r.x+p+(i?0:h.x),r.originY=-r.y+f+(i?0:h.y)}}null!=n.rotation&&(r.rotation=n.rotation);var g=n.offset;g&&(r.x+=g[0],r.y+=g[1],l||(r.originX=-g[0],r.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new mn(0,0,0,0);r.getLocalTransform(bo),qe(bo,bo),mn.copy(y,h),y.applyTransform(bo)}else m.overflowRect=null;var v=void 0,x=void 0,_=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(v=n.insideFill,x=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=x&&"auto"!==x||(x=this.getInsideTextStroke(v),_=!0)):(v=n.outsideFill,x=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=x&&"auto"!==x||(x=this.getOutsideStroke(v),_=!0)),(v=v||"#000")===m.fill&&x===m.stroke&&_===m.autoStroke&&o===m.align&&a===m.verticalAlign||(s=!0,m.fill=v,m.stroke=x,m.autoStroke=_,m.align=o,m.verticalAlign=a,e.setDefaultTextStyle(m)),e.__dirty|=On,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?$r:jr},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Ei(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Fi(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},j(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(ct(t))for(var n=nt(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==mo)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,yo)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(mo,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===mo;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(q(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~On),s}H("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~On)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=q(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=q(i,t),o=q(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];j(n,r),r.textConfig&&j(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=j({},i?this.textConfig:n.textConfig),j(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<yo.length;u++){var c=yo[u],h=r&&vo[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(u=0;u<this.animators.length;u++){var d=this.animators[u],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(e||n)[p]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new eo,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),j(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=On;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this,r=new br(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,n=q(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){So(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){So(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=So(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}})}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=On,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function So(t,e,n,i,r){var o=[];To(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d<o.length;d++){var p=o[d];c&&p.done(c),h&&p.aborted(h),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Mo(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Co(t,e,n){if(Z(e[n]))if(Z(t[n])||(t[n]=[]),dt(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Mo(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(Z(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?Mo(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Mo(o,r,a);o.length=r.length}else t[n]=e[n]}function To(t,e,n,i,r,o,a,s){for(var l=nt(i),u=r.duration,c=r.delay,h=r.additive,d=r.setToFinal,p=!ct(o),f=t.animators,g=[],m=0;m<l.length;m++){var y=l[m],v=i[y];if(null!=v&&null!=n[y]&&(p||o[y]))if(!ct(v)||Z(v)||ft(v))g.push(y);else{if(e){s||(n[y]=v,t.updateDuringAnimation(e));continue}To(t,y,n[y],v,r,o&&o[y],a,s)}else s||(n[y]=v,t.updateDuringAnimation(e),g.push(y))}var x=g.length;if(!h&&x)for(var _=0;_<f.length;_++)if((w=f[_]).targetName===e&&w.stopTracks(g)){var b=q(f,w);f.splice(b,1)}if(r.force||(g=tt(g,(function(t){return!((e=i[t])===(r=n[t])||Z(e)&&Z(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r})),x=g.length),x>0||r.force&&!a.length){var w,S=void 0,M=void 0,C=void 0;if(s)for(M={},d&&(S={}),_=0;_<x;_++)M[y=g[_]]=n[y],d?S[y]=i[y]:n[y]=i[y];else if(d)for(C={},_=0;_<x;_++)C[y=g[_]]=fr(n[y]),Co(n,i,y);(w=new br(n,!1,!1,h?tt(f,(function(t){return t.targetName===e})):null)).targetName=e,r.scope&&(w.scope=r.scope),d&&S&&w.whenWithKeys(0,S,g),C&&w.whenWithKeys(0,C,g),w.whenWithKeys(null==u?500:u,s?M:i,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}X(wo,me),X(wo,eo);const Io=wo;var Do=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return Ht(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=q(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=q(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new mn(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(mn.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(Io);Do.prototype.type="group";const Ao=Do;var ko,Eo={},Lo={},Oo=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var r=new Vn,o=n.renderer||"canvas";Eo[o]||(o=nt(Eo)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Eo[o](e,r,n,t),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l,u=x.node||x.worker||s?null:new Fr(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?x.touchEventsSupported:!!c)&&(l=xt(n.pointerSize,44)),this.handler=new In(r,a,u,a.root,l),this.animation=new Mr({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Wi(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=Wi(e[r].color,1);return(n/=i)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=wr();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=wr();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Ao&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete Lo[t])},t}();function Po(t,e){var n=new Oo(V(),t,e);return Lo[n.id]=n,n}function No(t){t.dispose()}function Ro(){for(var t in Lo)Lo.hasOwnProperty(t)&&Lo[t].dispose();Lo={}}function zo(t){return Lo[t]}function Bo(t,e){Eo[t]=e}function Vo(t){if("function"==typeof ko)return ko(t)}function Ho(t){ko=t}var Fo="6.0.0",Wo=1e-4,Go=20,jo=Math.min,$o=Math.max,Uo=Math.abs;function qo(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}var Yo=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return Xo(t,e,n)};function Xo(t,e,n){return st(t)?(i=t,i.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t;var i}function Zo(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Go),t=(+t).toFixed(e),n?t:+t}function Ko(t){return t.sort((function(t,e){return t-e})),t}function Jo(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Qo(t)}function Qo(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function ta(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Uo(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function ea(t,e,n){return t[e]&&na(t,n)[e]||0}function na(t,e){var n=Q(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var i=Math.pow(10,e),r=J(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),o=100*i,a=J(r,(function(t){return Math.floor(t)})),s=Q(a,(function(t,e){return t+e}),0),l=J(r,(function(t,e){return t-a[e]}));s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,d=l.length;h<d;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return J(a,(function(t){return t/i}))}function ia(t,e){var n=Math.max(Jo(t),Jo(e)),i=t+e;return n>Go?i:Zo(i,n)}var ra=9007199254740991;function oa(t){var e=2*Math.PI;return(t%e+e)%e}function aa(t){return t>-Wo&&t<Wo}var sa=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function la(t){if(t instanceof Date)return t;if(st(t)){var e=sa.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function ua(t){return Math.pow(10,ca(t))}function ca(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function ha(t,e){var n=ca(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function da(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function pa(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]==(n?-1:1)||!n&&s(t,e,1))}}function fa(t){var e=parseFloat(t);return e==t&&(0!==e||!st(t)||t.indexOf("x")<=0)?e:NaN}function ga(t){return!isNaN(fa(t))}function ma(){return Math.round(9*Math.random())}function ya(t,e){return 0===e?t:ya(e,t%e)}function va(t,e){return null==t?e:null==e?t:t*e/ya(t,e)}function xa(t,e,n){return(e-t)*n+t}var _a="series\0",ba="\0_ec_\0";function wa(t){return t instanceof Array?t:null==t?[]:[t]}function Sa(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Ma=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Ca(t){return!ct(t)||ot(t)||t instanceof Date?t:t.value}function Ta(t){return ct(t)&&!(t instanceof Array)}function Ia(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Et();K(e,(function(t,n){ct(t)||(e[n]=null)}));var s,l,u=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||La(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,n);return(i||r)&&function(t,e,n,i){K(i,(function(r,o){if(r&&null!=r.id){var a=Aa(r.id),s=n.get(a);if(null!=s){var l=t[s];St(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}}))}(u,t,a,e),i&&function(t,e){K(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!La(n)&&!La(o)&&Da("name",o,n))return t[r].newOption=n,void(e[i]=null)}}))}(u,e),i||r?function(t,e,n){K(e,(function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||La(i.existing)||i.existing&&null!=e.id&&!Da("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}(u,e,r):o&&function(t,e){K(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(u,e),s=u,l=Et(),K(s,(function(t){var e=t.existing;e&&l.set(e.id,t)})),K(s,(function(t){var e=t.newOption;St(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),K(s,(function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(ct(i)){if(r.name=null!=i.name?Aa(i.name):n?n.name:_a+e,n)r.id=Aa(n.id);else if(null!=i.id)r.id=Aa(i.id);else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(l.get(r.id))}l.set(r.id,t)}})),u}function Da(t,e,n){var i=ka(e[t],null),r=ka(n[t],null);return null!=i&&null!=r&&i===r}function Aa(t){return ka(t,"")}function ka(t,e){return null==t?e:st(t)?t:ut(t)||lt(t)?t+"":e}function Ea(t){var e=t.name;return!(!e||!e.indexOf(_a))}function La(t){return t&&null!=t.id&&0===Aa(t.id).indexOf(ba)}function Oa(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?ot(e.dataIndex)?J(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?ot(e.name)?J(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function Pa(){var t="__ec_inner_"+Na++;return function(e){return e[t]||(e[t]={})}}var Na=ma();function Ra(t,e,n){var i=za(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each((function(e,i){var r=Ha(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]})),a}function za(t,e){var n;if(st(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=Et(),o={},a=!1;return K(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();!s||!l||e&&e.includeMainTypes&&q(e.includeMainTypes,s)<0||(a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t)}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Ba={useDefault:!0,enableAll:!1,enableNone:!1},Va={useDefault:!1,enableAll:!0,enableNone:!0};function Ha(t,e,n,i){i=i||Ba;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===r||!1===r){if(i.enableNone)return s.models=[],s;r=-1}return"all"===r&&(r=i.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s}function Fa(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Wa(t,e){var n=Et(),i=[];return K(t,(function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)})),{keys:i,buckets:n}}function Ga(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(ut(i))return Zo(f=xa(n||0,i,r),o?Math.max(Jo(n||0),Jo(i)):e);if(st(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(r<1&&s?s:l)[c];else{var d=s&&s[c]?s[c]:0,p=l[c],f=xa(d,p,r);a[c]=Zo(f,o?Math.max(Jo(d),Jo(p)):e)}}return a}var ja=function(){function t(){}return t.prototype.reset=function(t,e,n,i){return this._list=t,this._step=i=i||1,this._idx=e,this._end=null!=n?n:i>0?t.length:0,this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)},t}();function $a(t){t.option=t.parentModel=t.ecModel=null}var Ua="___EC__COMPONENT__CONTAINER___",qa="___EC__EXTENDED_CLASS___";function Ya(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function Xa(t,e){t.$constructor=t,t.extend=function(t){var e,n,i=this;return at(n=i)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return m(e,t),e}(i):(e=function(){(t.$constructor||i).apply(this,arguments)},Y(e,this)),j(e.prototype,t),e[qa]=!0,e.extend=this.extend,e.superCall=Ja,e.superApply=Qa,e.superClass=i,e}}function Za(t,e){t.extend=e.extend}var Ka=Math.round(10*Math.random());function Ja(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Qa(t,e,n){return this.superClass.prototype[e].apply(t,n)}function ts(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){St(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),t.prototype.type=i;var r=Ya(i);if(r.sub){if(r.sub!==Ua){var o=function(t){var n=e[t.main];return n&&n[Ua]||((n=e[t.main]={})[Ua]=!0),n}(r);o[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Ua]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=Ya(t),i=[],r=e[n.main];return r&&r[Ua]?K(r,(function(t,e){e!==Ua&&i.push(t)})):i.push(r),i},t.hasClass=function(t){var n=Ya(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return K(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=Ya(t),i=e[n.main];return i&&i[Ua]}}function es(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&q(i,s)>=0||r&&q(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var ns=es([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),is=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return ns(this,t,e)},t}(),rs=new vi(50);function os(t){if("string"==typeof t){var e=rs.get(t);return e&&e.image}return t}function as(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=rs.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!ls(e=o.image)&&o.pending.push(a):((e=C.loadImage(t,ss,ss)).__zrImageSrc=t,rs.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function ss(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function ls(t){return t&&t.width&&t.height}var us=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function cs(t,e,n,i,r){var o={};return hs(o,t,e,n,i,r),o.text}function hs(t,e,n,i,r,o){if(!n)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=ds(n,i,r,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)ps(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function ds(t,e,n,i){var r=j({},i=i||{});n=xt(n,"..."),r.maxIterations=xt(i.maxIterations,2);var o=r.minChar=xt(i.minChar,0),a=r.fontMeasureInfo=no(e),s=a.asciiCharWidth;r.placeholder=xt(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var c=so(a,n);return c>l&&(n="",c=0),l=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=l,r.containerWidth=t,r}function ps(t,e,n){var i=n.containerWidth,r=n.contentWidth,o=n.fontMeasureInfo;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=so(o,e);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=r||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?fs(e,r,o):a>0?Math.floor(e.length*r/a):0;a=so(o,e=e.substr(0,l))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function fs(t,e,n){for(var i=0,r=0,o=t.length;r<o&&i<e;r++)i+=ao(n,t.charCodeAt(r));return r}var gs=function(){},ms=function(t){this.tokens=[],t&&(this.tokens=t)},ys=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function vs(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=fo(l.width,i.width)+p;u.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=f}else{var g=bs(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}o||(o=e.split("\n"));for(var m=no(c),y=0;y<o.length;y++){var v=o[y],x=new gs;if(x.styleName=r,x.text=v,x.isLineHolder=!v&&!s,"number"==typeof l.width?x.width=l.width:x.width=a?a[y]:so(m,v),y||h)u.push(new ms([x]));else{var _=(u[u.length-1]||(u[0]=new ms)).tokens,b=_.length;1===b&&_[0].isLineHolder?_[0]=x:(v||!b||s)&&_.push(x)}}}var xs=Q(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function _s(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!xs[t]}function bs(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=no(e),d=0;d<t.length;d++){var p=t.charAt(d);if("\n"!==p){var f=ao(h,p.charCodeAt(0)),g=!i&&!_s(p);(o.length?c+f>n:r+c+f>n)?c?(s||l)&&(g?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=p,s="",c=u+=f):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=f)):g?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(c+=f,g?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}function ws(t,e,n,i,r,o){if(t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;mn.set(Ss,co(n,a,r),ho(i,s,o),a,s),mn.intersect(e,Ss,null,Ms);var l=Ms.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=co(l.x,l.width,r,!0),t.baseY=ho(l.y,l.height,o,!0)}}var Ss=new mn(0,0,0,0),Ms={outIntersectRect:{},clamp:!0};function Cs(t){return null!=t?t+="":t=""}function Ts(t,e,n,i){var r=new mn(co(t.x||0,e,t.textAlign),ho(t.y||0,n,t.textBaseline),e,n),o=null!=i?i:Is(t)?t.lineWidth:0;return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function Is(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var Ds="__zr_style_"+Math.round(10*Math.random()),As={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ks={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};As[Ds]=!0;var Es=["z","z2","invisible"],Ls=["invisible"],Os=function(t){function e(e){return t.call(this,e)||this}var n;return Ht(e,t),e.prototype._init=function(e){for(var n=nt(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,o=t,a=e,Ps.copy(r.getBoundingRect()),r.transform&&Ps.applyTransform(r.transform),Ns.width=o,Ns.height=a,!Ps.intersect(Ns))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1;if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new mn(0,0,0,0)),e?mn.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new mn(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:j(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return Ot(As,t)},e.prototype.useStyle=function(t){t[Ds]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Ds]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Es)},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=nt(u),h=0;h<c.length;h++)(p=c[h])in s&&(s[p]=s[p],this.style[p]=u[p]);var d=nt(s);for(h=0;h<d.length;h++){var p=d[h];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?Ls:Es;for(h=0;h<f.length;h++)p=f[h],n&&null!=n[p]?this[p]=n[p]:l&&null!=i[p]&&(this[p]=i[p])},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return j(t,e),t},e.prototype.getAnimationStyleProps=function(){return ks},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=2|On)),e}(Io),Ps=new mn(0,0,0,0),Ns=new mn(0,0,0,0);const Rs=Os;var zs=Math.min,Bs=Math.max,Vs=Math.sin,Hs=Math.cos,Fs=2*Math.PI,Ws=Ft(),Gs=Ft(),js=Ft();function $s(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<t.length;l++)i=t[l],r=zs(r,i[0]),o=Bs(o,i[0]),a=zs(a,i[1]),s=Bs(s,i[1]);e[0]=r,e[1]=a,n[0]=o,n[1]=s}}function Us(t,e,n,i,r,o){r[0]=zs(t,n),r[1]=zs(e,i),o[0]=Bs(t,n),o[1]=Bs(e,i)}var qs=[],Ys=[];function Xs(t,e,n,i,r,o,a,s,l,u){var c=ni,h=Qn,d=c(t,n,r,a,qs);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var f=h(t,n,r,a,qs[p]);l[0]=zs(f,l[0]),u[0]=Bs(f,u[0])}for(d=c(e,i,o,s,Ys),p=0;p<d;p++){var g=h(e,i,o,s,Ys[p]);l[1]=zs(g,l[1]),u[1]=Bs(g,u[1])}l[0]=zs(t,l[0]),u[0]=Bs(t,u[0]),l[0]=zs(a,l[0]),u[0]=Bs(a,u[0]),l[1]=zs(e,l[1]),u[1]=Bs(e,u[1]),l[1]=zs(s,l[1]),u[1]=Bs(s,u[1])}function Zs(t,e,n,i,r,o,a,s){var l=li,u=ai,c=Bs(zs(l(t,n,r),1),0),h=Bs(zs(l(e,i,o),1),0),d=u(t,n,r,c),p=u(e,i,o,h);a[0]=zs(t,r,d),a[1]=zs(e,o,p),s[0]=Bs(t,r,d),s[1]=Bs(e,o,p)}function Ks(t,e,n,i,r,o,a,s,l){var u=ce,c=he,h=Math.abs(r-o);if(h%Fs<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Ws[0]=Hs(r)*n+t,Ws[1]=Vs(r)*i+e,Gs[0]=Hs(o)*n+t,Gs[1]=Vs(o)*i+e,u(s,Ws,Gs),c(l,Ws,Gs),(r%=Fs)<0&&(r+=Fs),(o%=Fs)<0&&(o+=Fs),r>o&&!a?o+=Fs:r<o&&a&&(r+=Fs),a){var d=o;o=r,r=d}for(var p=0;p<o;p+=Math.PI/2)p>r&&(js[0]=Hs(p)*n+t,js[1]=Vs(p)*i+e,u(s,js,s),c(l,js,l))}var Js={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qs=[],tl=[],el=[],nl=[],il=[],rl=[],ol=Math.min,al=Math.max,sl=Math.cos,ll=Math.sin,ul=Math.abs,cl=Math.PI,hl=2*cl,dl="undefined"!=typeof Float32Array,pl=[];function fl(t){return Math.round(t/cl*1e8)/1e8%2*cl}function gl(t,e){var n=fl(t[0]);n<0&&(n+=hl);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=hl?r=n+hl:e&&n-r>=hl?r=n-hl:!e&&n>r?r=n+(hl-fl(n-r)):e&&n<r&&(r=n-(hl-fl(r-n))),t[0]=n,t[1]=r}var ml=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=ul(n/Gr/t)||0,this._uy=ul(n/Gr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Js.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=ul(t-this._xi),i=ul(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Js.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Js.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Js.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),pl[0]=i,pl[1]=r,gl(pl,o),i=pl[0];var a=(r=pl[1])-i;return this.addData(Js.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=sl(r)*n+t,this._yi=ll(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Js.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Js.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!dl||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},t.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();var o=this.data;if(dl&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var a=0;a<i;a++)this.data[a]=o[a];for(r=0;r<e;r++){var s=t[r].data;for(a=0;a<s.length;a++)this.data[i++]=s[a]}this._len=i}},t.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,dl&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){el[0]=el[1]=il[0]=il[1]=Number.MAX_VALUE,nl[0]=nl[1]=rl[0]=rl[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(r=n=e[t],o=i=e[t+1]),a){case Js.M:n=r=e[t++],i=o=e[t++],il[0]=r,il[1]=o,rl[0]=r,rl[1]=o;break;case Js.L:Us(n,i,e[t],e[t+1],il,rl),n=e[t++],i=e[t++];break;case Js.C:Xs(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],il,rl),n=e[t++],i=e[t++];break;case Js.Q:Zs(n,i,e[t++],e[t++],e[t],e[t+1],il,rl),n=e[t++],i=e[t++];break;case Js.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],p=e[t++]+d;t+=1;var f=!e[t++];s&&(r=sl(d)*c+l,o=ll(d)*h+u),Ks(l,u,c,h,d,p,f,il,rl),n=sl(p)*c+l,i=ll(p)*h+u;break;case Js.R:Us(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],il,rl);break;case Js.Z:n=r,i=o}ce(el,el,il),he(nl,nl,rl)}return 0===t&&(el[0]=el[1]=nl[0]=nl[1]=0),new mn(el[0],el[1],nl[0]-el[0],nl[1]-el[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var d=t[h++],p=1===h;p&&(a=r=t[h],s=o=t[h+1]);var f=-1;switch(d){case Js.M:r=a=t[h++],o=s=t[h++];break;case Js.L:var g=t[h++],m=(x=t[h++])-o;(ul(A=g-r)>n||ul(m)>i||h===e-1)&&(f=Math.sqrt(A*A+m*m),r=g,o=x);break;case Js.C:var y=t[h++],v=t[h++],x=(g=t[h++],t[h++]),_=t[h++],b=t[h++];f=oi(r,o,y,v,g,x,_,b,10),r=_,o=b;break;case Js.Q:f=hi(r,o,y=t[h++],v=t[h++],g=t[h++],x=t[h++],10),r=g,o=x;break;case Js.A:var w=t[h++],S=t[h++],M=t[h++],C=t[h++],T=t[h++],I=t[h++],D=I+T;h+=1,p&&(a=sl(T)*M+w,s=ll(T)*C+S),f=al(M,C)*ol(hl,Math.abs(I)),r=sl(D)*M+w,o=ll(D)*C+S;break;case Js.R:a=r=t[h++],s=o=t[h++],f=2*t[h++]+2*t[h++];break;case Js.Z:var A=a-r;m=s-o,f=Math.sqrt(A*A+m*m),r=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,d=this.data,p=this._ux,f=this._uy,g=this._len,m=e<1,y=0,v=0,x=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_<g;){var b=d[_++],w=1===_;switch(w&&(n=r=d[_],i=o=d[_+1]),b!==Js.L&&x>0&&(t.lineTo(c,h),x=0),b){case Js.M:n=r=d[_++],i=o=d[_++],t.moveTo(r,o);break;case Js.L:a=d[_++],s=d[_++];var S=ul(a-r),M=ul(s-o);if(S>p||M>f){if(m){if(y+(Y=l[v++])>u){var C=(u-y)/Y;t.lineTo(r*(1-C)+a*C,o*(1-C)+s*C);break t}y+=Y}t.lineTo(a,s),r=a,o=s,x=0}else{var T=S*S+M*M;T>x&&(c=a,h=s,x=T)}break;case Js.C:var I=d[_++],D=d[_++],A=d[_++],k=d[_++],E=d[_++],L=d[_++];if(m){if(y+(Y=l[v++])>u){ii(r,I,A,E,C=(u-y)/Y,Qs),ii(o,D,k,L,C,tl),t.bezierCurveTo(Qs[1],tl[1],Qs[2],tl[2],Qs[3],tl[3]);break t}y+=Y}t.bezierCurveTo(I,D,A,k,E,L),r=E,o=L;break;case Js.Q:if(I=d[_++],D=d[_++],A=d[_++],k=d[_++],m){if(y+(Y=l[v++])>u){ui(r,I,A,C=(u-y)/Y,Qs),ui(o,D,k,C,tl),t.quadraticCurveTo(Qs[1],tl[1],Qs[2],tl[2]);break t}y+=Y}t.quadraticCurveTo(I,D,A,k),r=A,o=k;break;case Js.A:var O=d[_++],P=d[_++],N=d[_++],R=d[_++],z=d[_++],B=d[_++],V=d[_++],H=!d[_++],F=N>R?N:R,W=ul(N-R)>.001,G=z+B,j=!1;if(m&&(y+(Y=l[v++])>u&&(G=z+B*(u-y)/Y,j=!0),y+=Y),W&&t.ellipse?t.ellipse(O,P,N,R,V,z,G,H):t.arc(O,P,F,z,G,H),j)break t;w&&(n=sl(z)*N+O,i=ll(z)*R+P),r=sl(G)*N+O,o=ll(G)*R+P;break;case Js.R:n=r=d[_],i=o=d[_+1],a=d[_++],s=d[_++];var $=d[_++],U=d[_++];if(m){if(y+(Y=l[v++])>u){var q=u-y;t.moveTo(a,s),t.lineTo(a+ol(q,$),s),(q-=$)>0&&t.lineTo(a+$,s+ol(q,U)),(q-=U)>0&&t.lineTo(a+al($-q,0),s+U),(q-=$)>0&&t.lineTo(a,s+al(U-q,0));break t}y+=Y}t.rect(a,s,$,U);break;case Js.Z:if(m){var Y;if(y+(Y=l[v++])>u){C=(u-y)/Y,t.lineTo(r*(1-C)+n*C,o*(1-C)+i*C);break t}y+=Y}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Js,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();const yl=ml;function vl(t,e,n,i,r,o,a){if(0===r)return!1;var s,l=r;if(a>e+l&&a>i+l||a<e-l&&a<i-l||o>t+l&&o>n+l||o<t-l&&o<n-l)return!1;if(t===n)return Math.abs(o-t)<=l/2;var u=(s=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return u*u/(s*s+1)<=l/2*l/2}function xl(t,e,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;return!(c>e+h&&c>i+h&&c>o+h&&c>s+h||c<e-h&&c<i-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>r+h&&u>a+h||u<t-h&&u<n-h&&u<r-h&&u<a-h)&&ri(t,e,n,i,r,o,a,s,u,c,null)<=h/2}function _l(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>i+u&&l>o+u||l<e-u&&l<i-u&&l<o-u||s>t+u&&s>n+u&&s>r+u||s<t-u&&s<n-u&&s<r-u)&&ci(t,e,n,i,r,o,s,l,null)<=u/2}var bl=2*Math.PI;function wl(t){return(t%=bl)<0&&(t+=bl),t}var Sl=2*Math.PI;function Ml(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%Sl<1e-4)return!0;if(o){var h=i;i=wl(r),r=wl(h)}else i=wl(i),r=wl(r);i>r&&(r+=Sl);var d=Math.atan2(l,s);return d<0&&(d+=Sl),d>=i&&d<=r||d+Sl>=i&&d+Sl<=r}function Cl(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var Tl=yl.CMD,Il=2*Math.PI,Dl=[-1,-1,-1],Al=[-1,-1];function kl(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var c,h=ei(e,i,o,s,u,Dl);if(0===h)return 0;for(var d=0,p=-1,f=void 0,g=void 0,m=0;m<h;m++){var y=Dl[m],v=0===y||1===y?.5:1;Qn(t,n,r,a,y)<l||(p<0&&(p=ni(e,i,o,s,Al),Al[1]<Al[0]&&p>1&&(void 0,c=Al[0],Al[0]=Al[1],Al[1]=c),f=Qn(e,i,o,s,Al[0]),p>1&&(g=Qn(e,i,o,s,Al[1]))),2===p?y<Al[0]?d+=f<e?v:-v:y<Al[1]?d+=g<f?v:-v:d+=s<g?v:-v:y<Al[0]?d+=f<e?v:-v:d+=s<f?v:-v)}return d}function El(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(Kn(o))Jn(a)&&(c=-s/a)>=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if(Kn(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=jn(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,Dl);if(0===l)return 0;var u=li(e,i,o);if(u>=0&&u<=1){for(var c=0,h=ai(e,i,o,u),d=0;d<l;d++){var p=0===Dl[d]||1===Dl[d]?.5:1;ai(t,n,r,Dl[d])<a||(Dl[d]<u?c+=h<e?p:-p:c+=o<h?p:-p)}return c}return p=0===Dl[0]||1===Dl[0]?.5:1,ai(t,n,r,Dl[0])<a?0:o<e?p:-p}function Ll(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Dl[0]=-l,Dl[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Il-1e-4){i=0,r=Il;var c=o?1:-1;return a>=Dl[0]+t&&a<=Dl[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=Il,r+=Il);for(var d=0,p=0;p<2;p++){var f=Dl[p];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1,g<0&&(g=Il+g),(g>=i&&g<=r||g+Il>=i&&g+Il<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function Ol(t,e,n,i,r){for(var o,a,s,l,u=t.data,c=t.len(),h=0,d=0,p=0,f=0,g=0,m=0;m<c;){var y=u[m++],v=1===m;switch(y===Tl.M&&m>1&&(n||(h+=Cl(d,p,f,g,i,r))),v&&(f=d=u[m],g=p=u[m+1]),y){case Tl.M:d=f=u[m++],p=g=u[m++];break;case Tl.L:if(n){if(vl(d,p,u[m],u[m+1],e,i,r))return!0}else h+=Cl(d,p,u[m],u[m+1],i,r)||0;d=u[m++],p=u[m++];break;case Tl.C:if(n){if(xl(d,p,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],e,i,r))return!0}else h+=kl(d,p,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],i,r)||0;d=u[m++],p=u[m++];break;case Tl.Q:if(n){if(_l(d,p,u[m++],u[m++],u[m],u[m+1],e,i,r))return!0}else h+=El(d,p,u[m++],u[m++],u[m],u[m+1],i,r)||0;d=u[m++],p=u[m++];break;case Tl.A:var x=u[m++],_=u[m++],b=u[m++],w=u[m++],S=u[m++],M=u[m++];m+=1;var C=!!(1-u[m++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,v?(f=o,g=a):h+=Cl(d,p,o,a,i,r);var T=(i-x)*w/b+x;if(n){if(Ml(x,_,w,S,S+M,C,e,T,r))return!0}else h+=Ll(x,_,w,S,S+M,C,T,r);d=Math.cos(S+M)*b+x,p=Math.sin(S+M)*w+_;break;case Tl.R:if(f=d=u[m++],g=p=u[m++],o=f+u[m++],a=g+u[m++],n){if(vl(f,g,o,g,e,i,r)||vl(o,g,o,a,e,i,r)||vl(o,a,f,a,e,i,r)||vl(f,a,f,g,e,i,r))return!0}else h+=Cl(o,g,o,a,i,r),h+=Cl(f,a,f,g,i,r);break;case Tl.Z:if(n){if(vl(d,p,f,g,e,i,r))return!0}else h+=Cl(d,p,f,g,i,r);d=f,p=g}}return n||(s=p,l=g,Math.abs(s-l)<1e-4)||(h+=Cl(d,p,f,g,i,r)||0),0!==h}var Pl=$({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},As),Nl={style:$({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ks.style)},Rl=Qr.concat(["invisible","culling","z","z2","zlevel","parent"]),zl=function(t){function e(e){return t.call(this,e)||this}var n;return Ht(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<Rl.length;++s)r[Rl[s]]=this[Rl[s]];r.__dirty|=On}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=nt(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?j(this.style,a):this.useStyle(a):"shape"===o?j(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(st(t)){var e=Wi(t,0);return e>.5?jr:e>.2?"#eee":$r}if(t)return $r}return jr},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(st(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Wi(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Pn},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new yl(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&Pn)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return Ol(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return Ol(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Pn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:j(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Pn)},e.prototype.createStyle=function(t){return Ot(Pl,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=j({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=j({},i.shape),j(s,n.shape)):(s=j({},r?this.shape:i.shape),j(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=j({},this.shape);for(var u={},c=nt(s),h=0;h<c.length;h++){var d=c[h];"object"==typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return Nl},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return Ht(n,e),n.prototype.getDefaultStyle=function(){return F(t.style)},n.prototype.getDefaultShape=function(){return F(t.shape)},n}(e);for(var i in t)"function"==typeof t[i]&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=2|On|Pn)),e}(Rs);const Bl=zl;var Vl=$({strokeFirst:!0,font:S,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Pl),Hl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ht(e,t),e.prototype.hasStroke=function(){return Is(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Ot(Vl,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(e=Cs((t=this.style).text),Ts(t,so(no(n=t.font),e),po(n),null))),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Rs);Hl.prototype.type="tspan";const Fl=Hl;var Wl=$({x:0,y:0},As),Gl={style:$({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ks.style)},jl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ht(e,t),e.prototype.createStyle=function(t){return Ot(Wl,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Gl},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new mn(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Rs);jl.prototype.type="image";const $l=jl;var Ul=Math.round;function ql(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(Ul(2*i)===Ul(2*r)&&(t.x1=t.x2=Xl(i,s,!0)),Ul(2*o)===Ul(2*a)&&(t.y1=t.y2=Xl(o,s,!0)),t):t}}function Yl(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Xl(i,s,!0),t.y=Xl(r,s,!0),t.width=Math.max(Xl(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Xl(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Xl(t,e,n){if(!e)return t;var i=Ul(2*t);return(i+Ul(e))%2==0?i/2:(i+(n?1:-1))/2}var Zl=function(){this.x=0,this.y=0,this.width=0,this.height=0},Kl={},Jl=function(t){function e(e){return t.call(this,e)||this}return Ht(e,t),e.prototype.getDefaultShape=function(){return new Zl},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Yl(Kl,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Bl);Jl.prototype.type="rect";const Ql=Jl;var tu={fill:"#000"},eu={},nu={style:$({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},ks.style)},iu=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=tu,n.attr(e),n}return Ht(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,cu(t=this.style),K(t.rich,cu),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new mn(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||tu},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return j(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=nt(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},j(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return nu},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||S,n=t.padding,i=this._defaultStyle,r=t.x||0,o=t.y||0,a=t.align||i.align||"left",s=t.verticalAlign||i.verticalAlign||"top";ws(eu,i.overflowRect,r,o,a,s),r=eu.baseX,o=eu.baseY;var l=function(t,e,n,i){var r=Cs(t),o=e.overflow,a=e.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,u=e.font,c="truncate"===o,h=po(u),d=xt(e.lineHeight,h),p="truncate"===e.lineOverflow,f=!1,g=e.width;null==g&&null!=n&&(g=n-s);var m,y=e.height;null==y&&null!=i&&(y=i-l);var v=(m=null==g||"break"!==o&&"breakAll"!==o?r?r.split("\n"):[]:r?bs(r,e.font,g,"breakAll"===o,0).lines:[]).length*d;if(null==y&&(y=v),v>y&&p){var x=Math.floor(y/d);f=f||m.length>x,v=(m=m.slice(0,x)).length*d}if(r&&c&&null!=g)for(var _=ds(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<m.length;w++)ps(b,m[w],_),m[w]=b.textLine,f=f||b.isTruncated;var S=y,M=0,C=no(u);for(w=0;w<m.length;w++)M=Math.max(so(C,m[w]),M);null==g&&(g=M);var T=g;return{lines:m,height:y,outerWidth:T+=s,outerHeight:S+=l,lineHeight:d,calculatedLineHeight:h,contentWidth:M,contentHeight:v,width:g,isTruncated:f}}(fu(t),t,eu.outerWidth,eu.outerHeight),u=gu(t),c=!!t.backgroundColor,h=l.outerHeight,d=l.outerWidth,p=l.lines,f=l.lineHeight;this.isTruncated=!!l.isTruncated;var g=r,m=ho(o,l.contentHeight,s);if(u||n){var y=co(r,d,a),v=ho(o,h,s);u&&this._renderBackground(t,t,y,v,d,h)}m+=f/2,n&&(g=pu(r,a,n),"top"===s?m+=n[0]:"bottom"===s&&(m-=n[2]));for(var x=0,_=!1,b=!1,w=(du("fill"in t?t.fill:(b=!0,i.fill))),M=(hu("stroke"in t?t.stroke:c||i.autoStroke&&!b?null:(x=2,_=!0,i.stroke))),C=t.textShadowBlur>0,T=0;T<p.length;T++){var I=this._getOrCreateChild(Fl),D=I.createStyle();I.useStyle(D),D.text=p[T],D.x=g,D.y=m,a&&(D.textAlign=a),D.textBaseline="middle",D.opacity=t.opacity,D.strokeFirst=!0,C&&(D.shadowBlur=t.textShadowBlur||0,D.shadowColor=t.textShadowColor||"transparent",D.shadowOffsetX=t.textShadowOffsetX||0,D.shadowOffsetY=t.textShadowOffsetY||0),D.stroke=M,D.fill=w,M&&(D.lineWidth=t.lineWidth||x,D.lineDash=t.lineDash,D.lineDashOffset=t.lineDashOffset||0),D.font=e,lu(D,t),m+=f,I.setBoundingRect(Ts(D,l.contentWidth,l.calculatedLineHeight,_?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,i=t.verticalAlign||e.verticalAlign,r=t.x||0,o=t.y||0;ws(eu,e.overflowRect,r,o,n,i),r=eu.baseX,o=eu.baseY;var a=function(t,e,n,i,r){var o=new ys,a=Cs(t);if(!a)return o;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;null==c&&null!=n&&(c=n-l);var h=e.height;null==h&&null!=i&&(h=i-u);for(var d,p=e.overflow,f="break"!==p&&"breakAll"!==p||null==c?null:{width:c,accumWidth:0,breakAll:"breakAll"===p},g=us.lastIndex=0;null!=(d=us.exec(a));){var m=d.index;m>g&&vs(o,a.substring(g,m),e,f),vs(o,d[2],e,f,d[1]),g=us.lastIndex}g<a.length&&vs(o,a.substring(g,a.length),e,f);var y=[],v=0,x=0,_="truncate"===p,b="truncate"===e.lineOverflow,w={};function S(t,e,n){t.width=e,t.lineHeight=n,v+=n,x=Math.max(x,e)}t:for(var M=0;M<o.lines.length;M++){for(var C=o.lines[M],T=0,I=0,D=0;D<C.tokens.length;D++){var A=(H=C.tokens[D]).styleName&&e.rich[H.styleName]||{},k=H.textPadding=A.padding,E=k?k[1]+k[3]:0,L=H.font=A.font||e.font;H.contentHeight=po(L);var O=xt(A.height,H.contentHeight);if(H.innerHeight=O,k&&(O+=k[0]+k[2]),H.height=O,H.lineHeight=_t(A.lineHeight,e.lineHeight,O),H.align=A&&A.align||r,H.verticalAlign=A&&A.verticalAlign||"middle",b&&null!=h&&v+H.lineHeight>h){var P=o.lines.length;D>0?(C.tokens=C.tokens.slice(0,D),S(C,I,T),o.lines=o.lines.slice(0,M+1)):o.lines=o.lines.slice(0,M),o.isTruncated=o.isTruncated||o.lines.length<P;break t}var N=A.width,R=null==N||"auto"===N;if("string"==typeof N&&"%"===N.charAt(N.length-1))H.percentWidth=N,y.push(H),H.contentWidth=so(no(L),H.text);else{if(R){var z=A.backgroundColor,B=z&&z.image;B&&ls(B=os(B))&&(H.width=Math.max(H.width,B.width*O/B.height))}var V=_&&null!=c?c-I:null;null!=V&&V<H.width?!R||V<E?(H.text="",H.width=H.contentWidth=0):(hs(w,H.text,V-E,L,e.ellipsis,{minChar:e.truncateMinChar}),H.text=w.text,o.isTruncated=o.isTruncated||w.isTruncated,H.width=H.contentWidth=so(no(L),H.text)):H.contentWidth=so(no(L),H.text)}H.width+=E,I+=H.width,A&&(T=Math.max(T,H.lineHeight))}S(C,I,T)}for(o.outerWidth=o.width=xt(c,x),o.outerHeight=o.height=xt(h,v),o.contentHeight=v,o.contentWidth=x,o.outerWidth+=l,o.outerHeight+=u,M=0;M<y.length;M++){var H,F=(H=y[M]).percentWidth;H.width=parseInt(F,10)/100*o.width}return o}(fu(t),t,eu.outerWidth,eu.outerHeight,n),s=a.width,l=a.outerWidth,u=a.outerHeight,c=t.padding;this.isTruncated=!!a.isTruncated;var h=co(r,l,n),d=ho(o,u,i),p=h,f=d;c&&(p+=c[3],f+=c[0]);var g=p+s;gu(t)&&this._renderBackground(t,t,h,d,l,u);for(var m=!!t.backgroundColor,y=0;y<a.lines.length;y++){for(var v=a.lines[y],x=v.tokens,_=x.length,b=v.lineHeight,w=v.width,S=0,M=p,C=g,T=_-1,I=void 0;S<_&&(!(I=x[S]).align||"left"===I.align);)this._placeToken(I,t,b,f,M,"left",m),w-=I.width,M+=I.width,S++;for(;T>=0&&"right"===(I=x[T]).align;)this._placeToken(I,t,b,f,C,"right",m),w-=I.width,C-=I.width,T--;for(M+=(s-(M-p)-(g-C)-w)/2;S<=T;)I=x[S],this._placeToken(I,t,b,f,M+I.width/2,"center",m),M+=I.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&gu(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(r=pu(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var d=this._getOrCreateChild(Fl),p=d.createStyle();d.useStyle(p);var f=this._defaultStyle,g=!1,m=0,y=!1,v=du("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),x=hu("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||f.autoStroke&&!g?null:(m=2,y=!0,f.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=r,p.y=u,_&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||S,p.opacity=_t(s.opacity,e.opacity,1),lu(p,s),x&&(p.lineWidth=_t(s.lineWidth,e.lineWidth,m),p.lineDash=xt(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=x),v&&(p.fill=v),d.setBoundingRect(Ts(p,t.contentWidth,t.contentHeight,y?0:null))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,d=u&&u.image,p=u&&!d,f=t.borderRadius,g=this;if(p||t.lineHeight||c&&h){(a=this._getOrCreateChild(Ql)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=i,m.width=r,m.height=o,m.r=f,a.dirtyShape()}if(p)(l=a.style).fill=u||null,l.fillOpacity=xt(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild($l)).onload=function(){g.dirtyStyle()};var y=s.style;y.image=u.image,y.x=n,y.y=i,y.width=r,y.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=xt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var v=(a||s).style;v.shadowBlur=t.shadowBlur||0,v.shadowColor=t.shadowColor||"transparent",v.shadowOffsetX=t.shadowOffsetX||0,v.shadowOffsetY=t.shadowOffsetY||0,v.opacity=_t(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return uu(t)&&(e=[t.fontStyle,t.fontWeight,su(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Mt(e)||t.textFont||t.font},e}(Rs),ru={left:!0,right:1,center:1},ou={top:1,bottom:1,middle:1},au=["fontStyle","fontWeight","fontSize","fontFamily"];function su(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function lu(t,e){for(var n=0;n<au.length;n++){var i=au[n],r=e[i];null!=r&&(t[i]=r)}}function uu(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function cu(t){if(t){t.font=iu.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||ru[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||ou[n]?n:"top",t.padding&&(t.padding=wt(t.padding))}}function hu(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function du(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function pu(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function fu(t){var e=t.text;return null!=e&&(e+=""),e}function gu(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const mu=iu;var yu=Pa(),vu=function(t,e,n,i){if(i){var r=yu(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse((function(i){var r=yu(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"}))}},xu=1,_u={},bu=Pa(),wu=Pa(),Su=["emphasis","blur","select"],Mu=["normal","emphasis","blur","select"],Cu=10,Tu=9,Iu="highlight",Du="downplay",Au="select",ku="unselect",Eu="toggleSelect",Lu="selectchanged";function Ou(t){return null!=t&&"none"!==t}function Pu(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Nu(t){Pu(t,"emphasis",2)}function Ru(t){2===t.hoverState&&Pu(t,"normal",0)}function zu(t){Pu(t,"blur",1)}function Bu(t){1===t.hoverState&&Pu(t,"normal",0)}function Vu(t){t.selected=!0}function Hu(t){t.selected=!1}function Fu(t,e,n){e(t,n)}function Wu(t,e,n){Fu(t,e,n),t.isGroup&&t.traverse((function(t){Fu(t,e,n)}))}function Gu(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function ju(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&q(n,"select")>=0,o=!1;if(t instanceof Bl){var a=bu(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Ou(s)||Ou(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=j({},i),(u=j({},u)).fill=s):!Ou(u.fill)&&Ou(s)?(o=!0,i=j({},i),(u=j({},u)).fill=$i(s)):!Ou(u.stroke)&&Ou(l)&&(o||(i=j({},i),u=j({},u)),u.stroke=$i(l)),i.style=u}}if(i&&null==i.z2){o||(i=j({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:Cu)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=q(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=j({},n),a=j({opacity:i?r:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=j({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:Tu)}return n}(this,0,n)}return n}function $u(t){t.stateProxy=ju;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=ju),n&&(n.stateProxy=ju)}function Uu(t,e){!tc(t,e)&&!t.__highByOuter&&Wu(t,Nu)}function qu(t,e){!tc(t,e)&&!t.__highByOuter&&Wu(t,Ru)}function Yu(t,e){t.__highByOuter|=1<<(e||0),Wu(t,Nu)}function Xu(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Wu(t,Ru)}function Zu(t){Wu(t,zu)}function Ku(t){Wu(t,Bu)}function Ju(t){Wu(t,Vu)}function Qu(t){Wu(t,Hu)}function tc(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ec(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=wu(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(t){Bu(t)})),a&&n.push(r)),o.isBlured=!1})),K(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function nc(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&Ku(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(t){var r=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!r||"coordinateSystem"===n&&!(u&&s?u===s:r)||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse((function(t){t.__highByOuter&&r&&"self"===e||zu(t)})),Z(e))o(t.getData(),e);else if(ct(e))for(var c=nt(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),wu(t).isBlured=!0}})),r.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}}))}}function ic(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){wu(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){zu(t)}))}}}function rc(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===yu(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function oc(t){K(t.getAllData(),(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?Ju(e):Qu(e)}))}))}function ac(t){var e=[];return t.eachSeries((function(t){K(t.getAllData(),(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function sc(t,e,n){pc(t,!0),Wu(t,$u),uc(t,e,n)}function lc(t,e,n,i){i?function(t){pc(t,!1)}(t):sc(t,e,n)}function uc(t,e,n){var i=yu(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var cc=["emphasis","blur","select"],hc={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function dc(t,e,n,i){n=n||"itemStyle";for(var r=0;r<cc.length;r++){var o=cc[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[hc[n]]()}}function pc(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function fc(t){return!(!t||!t.__highDownDispatcher)}function gc(t){var e=t.type;return e===Au||e===ku||e===Eu}function mc(t){var e=t.type;return e===Iu||e===Du}var yc=Pa();function vc(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return i?(l=xt(i.duration,200),u=xt(i.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),at(c)&&(c=c(n,r)),at(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}function xc(t,e,n,i,r,o,a){var s,l=!1;at(r)?(a=o,o=r,r=null):ct(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=vc(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(c&&c.duration>0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function _c(t,e,n,i,r,o){xc("update",t,e,n,i,r,o)}function bc(t,e,n,i,r,o){xc("enter",t,e,n,i,r,o)}function wc(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function Sc(t,e,n,i,r,o){wc(t)||xc("leave",t,e,n,i,r,o)}function Mc(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),Sc(t,{style:{opacity:0}},e,n,i)}function Cc(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||Mc(t,e,n,i)})):Mc(t,e,n,i)}function Tc(t){yc(t).oldStyle=t.style}var Ic={};function Dc(t,e){for(var n=0;n<Su.length;n++){var i=Su[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Ac(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=at(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<Su.length;u++){var c=Su[u],h=e[c];l[c]=xt(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function kc(t,e,n,i){n=n||Ic;for(var r=t instanceof mu,o=!1,a=0;a<Mu.length;a++)if((d=e[Mu[a]])&&d.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new mu,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Ac(n,e),u=e.normal,c=!!u.getShallow("show"),h=Lc(u,i&&i.normal,n,!1,!r);for(h.text=l.normal,r||t.setTextConfig(Oc(u,n,!1)),a=0;a<Su.length;a++){var d,p=Su[a];if(d=e[p]){var f=s.ensureState(p),g=!!xt(d.getShallow("show"),c);g!==c&&(f.ignore=!g),f.style=Lc(d,i&&i[p],n,!0,!r),f.style.text=l[p],r||(t.ensureState(p).textConfig=Oc(d,n,!0))}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(Vc(s).setLabelText=function(t){var i=Ac(n,e,t);Dc(s,i)})}else s&&(s.ignore=!0);t.dirty()}function Ec(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<Su.length;i++){var r=Su[i];n[r]=t.getModel([r,e])}return n}function Lc(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||Ic;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||Ic).rich;if(n){e=e||{};for(var i=nt(n),r=0;r<i.length;r++)e[i[r]]=1}t=t.parentModel}return e}(e);if(l){o={};var u="richInheritPlainLabel",c=xt(e.get(u),a?a.get(u):void 0);for(var h in l)if(l.hasOwnProperty(h)){var d=e.getModel(["rich",h]);zc(o[h]={},d,s,e,c,n,i,r,!1,!0)}}o&&(t.rich=o);var p=e.get("overflow");p&&(t.overflow=p);var f=e.get("lineOverflow");f&&(t.lineOverflow=f);var g=t,m=e.get("minMargin");if(null!=m)m=ut(m)?m/2:0,g.margin=[m,m,m,m],g.__marginType=Wc.minMargin;else{var y=e.get("textMargin");null!=y&&(g.margin=wt(y),g.__marginType=Wc.textMargin)}zc(t,e,s,null,null,n,i,r,!0,!1)}(o,t,n,i,r),e&&j(o,e),o}function Oc(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=xt(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(r.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(r.layoutRect=e.layoutRect),r}var Pc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Nc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Rc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function zc(t,e,n,i,r,o,a,s,l,u){n=!a&&n||Ic;var c=o&&o.inheritColor,h=e.getShallow("color"),d=e.getShallow("textBorderColor"),p=xt(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),s||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(t.fill=h),null!=d&&(t.stroke=d);var f=xt(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var g=xt(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var m=xt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=m&&(t.lineDashOffset=m),a||null!=p||u||(p=o&&o.defaultOpacity),null!=p&&(t.opacity=p),a||s||null==t.fill&&o.inheritColor&&(t.fill=o.inheritColor);for(var y=0;y<Pc.length;y++){var v=Pc[y];null!=(_=!1!==r&&i?_t(e.getShallow(v),i.getShallow(v),n[v]):xt(e.getShallow(v),n[v]))&&(t[v]=_)}for(y=0;y<Nc.length;y++)v=Nc[y],null!=(_=e.getShallow(v))&&(t[v]=_);if(null==t.verticalAlign){var x=e.getShallow("baseline");null!=x&&(t.verticalAlign=x)}if(!l||!o.disableBox){for(y=0;y<Rc.length;y++){var _;v=Rc[y],null!=(_=e.getShallow(v))&&(t[v]=_)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function Bc(t,e){var n=e&&e.getModel("textStyle");return Mt([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Vc=Pa();function Hc(t,e,n,i){if(t){var r=Vc(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function Fc(t,e,n,i,r){var o=Vc(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=xt(o.interpolatedValue,o.prevValue),l=o.value;t.percent=0,(null==o.prevValue?bc:_c)(t,{percent:1},i,e,null,(function(i){var u=Ga(n,o.precision,s,l,i);o.interpolatedValue=1===i?null:u;var c=Ac({labelDataIndex:e,labelFetcher:r,defaultText:a?a(u):u+""},o.statesModels,u);Dc(t,c)}))}}var Wc={minMargin:1,textMargin:2},Gc=["textStyle","color"],jc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],$c=new mu,Uc=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Gc):null)},t.prototype.getFont=function(){return Bc({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<jc.length;n++)e[jc[n]]=this.getShallow(jc[n]);return $c.useStyle(e),$c.update(),$c.getBoundingRect()},t}();const qc=Uc;var Yc,Xc,Zc=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Kc=es(Zc),Jc=function(){function t(){}return t.prototype.getLineStyle=function(t){return Kc(this,t)},t}(),Qc=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],th=es(Qc),eh=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return th(this,t,e)},t}(),nh=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){W(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(F(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!x.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Xa(nh),Yc=nh,Xc=["__\0is_clz",Ka++].join("_"),Yc.prototype[Xc]=!0,Yc.isInstance=function(t){return!(!t||!t[Xc])},X(nh,Jc),X(nh,eh),X(nh,is),X(nh,qc);const ih=nh;var rh=Math.round(10*Math.random());function oh(t){return[t||"",rh++].join("_")}function ah(t,e){return W(W({},t,!0),e,!0)}var sh="ZH",lh="EN",uh=lh,ch={},hh={},dh=x.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||uh).toUpperCase().indexOf(sh)>-1?sh:uh;function ph(t,e){t=t.toUpperCase(),hh[t]=new ih(e),ch[t]=e}function fh(t){return hh[t]}ph(lh,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),ph(sh,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var gh=null;function mh(){return gh}var yh=36e5,vh=864e5,xh=31536e6,_h={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},bh={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},wh="{yyyy}-{MM}-{dd}",Sh={year:"{yyyy}",month:"{yyyy}-{MM}",day:wh,hour:wh+" "+bh.hour,minute:wh+" "+bh.minute,second:wh+" "+bh.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Mh=["year","month","day","hour","minute","second","millisecond"],Ch=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Th(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ih(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Dh(t,e,n,i){var r=la(t),o=r[Eh(n)](),a=r[Lh(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[Oh(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[Ph(n)](),h=(c-1)%12+1,d=r[Nh(n)](),p=r[Rh(n)](),f=r[zh(n)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=(i instanceof ih?i:fh(i||dh)||hh[uh]).getModel("time"),v=y.get("month"),x=y.get("monthAbbr"),_=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Th(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,Th(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Th(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Th(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Th(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Th(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Th(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Th(f,3)).replace(/{S}/g,f+"")}function Ah(t,e){var n=la(t),i=n[Lh(e)]()+1,r=n[Oh(e)](),o=n[Ph(e)](),a=n[Nh(e)](),s=n[Rh(e)](),l=0===n[zh(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===r;return d&&1===i?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function kh(t,e,n){switch(e){case"year":t[Vh(n)](0);case"month":t[Hh(n)](1);case"day":t[Fh(n)](0);case"hour":t[Wh(n)](0);case"minute":t[Gh(n)](0);case"second":t[jh(n)](0)}return t}function Eh(t){return t?"getUTCFullYear":"getFullYear"}function Lh(t){return t?"getUTCMonth":"getMonth"}function Oh(t){return t?"getUTCDate":"getDate"}function Ph(t){return t?"getUTCHours":"getHours"}function Nh(t){return t?"getUTCMinutes":"getMinutes"}function Rh(t){return t?"getUTCSeconds":"getSeconds"}function zh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Bh(t){return t?"setUTCFullYear":"setFullYear"}function Vh(t){return t?"setUTCMonth":"setMonth"}function Hh(t){return t?"setUTCDate":"setDate"}function Fh(t){return t?"setUTCHours":"setHours"}function Wh(t){return t?"setUTCMinutes":"setMinutes"}function Gh(t){return t?"setUTCSeconds":"setSeconds"}function jh(t){return t?"setUTCMilliseconds":"setMilliseconds"}function $h(t){if(!ga(t))return st(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Uh(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var qh=wt;function Yh(t,e,n){function i(t){return t&&Mt(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?la(t):t;if(!isNaN(+s))return Dh(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return lt(t)?i(t):ut(t)&&r(t)?t+"":"-";var l=fa(t);return r(l)?$h(l):lt(t)?i(t):"boolean"==typeof t?t+"":"-"}var Xh=["a","b","c","d","e","f","g"],Zh=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Kh(t,e,n){ot(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Xh[o];t=t.replace(Zh(a),Zh(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(Zh(Xh[l],s),n?Te(u):u)}return t}function Jh(t,e){var n=st(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Te(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Te(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Qh(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=la(e),r=n?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),c=i[r+"Seconds"](),h=i[r+"Milliseconds"]();return t.replace("MM",Th(a,2)).replace("M",a).replace("yyyy",o).replace("yy",Th(o%100+"",2)).replace("dd",Th(s,2)).replace("d",s).replace("hh",Th(l,2)).replace("h",l).replace("mm",Th(u,2)).replace("m",u).replace("ss",Th(c,2)).replace("s",c).replace("SSS",Th(h,3))}function td(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ed(t,e){return e=e||"transparent",st(t)?t:ct(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function nd(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var id={},rd={},od=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function n(n,i){var r=[];return K(n,(function(n,i){var o=n.create(t,e);r=r.concat(o||[])})),r}this._nonSeriesBoxMasterList=n(id),this._normalMasterList=n(rd)},t.prototype.update=function(t,e){K(this._normalMasterList,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){"matrix"!==t&&"calendar"!==t?rd[t]=e:id[t]=e},t.get=function(t){return rd[t]||id[t]},t}(),ad=Et();function sd(t,e){var n=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),r=0;if(n){var o="series"===t.mainType;null==i&&(i=o?"data":"box"),"data"===i?(r=1,o||(r=0)):"box"===i&&(r=2,o||function(t){return!!id[t]}(n)||(r=0))}return{coordSysType:n,kind:r}}function ld(t){var e=t.targetModel,n=t.coordSysType,i=t.coordSysProvider,r=t.isDefaultDataCoordSys;t.allowNotFound;var o=sd(e),a=o.kind,s=o.coordSysType;if(r&&1!==a&&(a=1,s=n),0===a||s!==n)return!1;var l=i(n,e);return!!l&&(1===a?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0)}var ud=function(t,e){var n=e.getReferringComponents(t,Ba).models[0];return n&&n.coordinateSystem};const cd=od;var hd=K,dd=["left","right","top","bottom","width","height"],pd=[["width","left","right"],["height","top","bottom"]];function fd(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(f?-f.y+d.y:0);(h=a+m)>r||l.newline?(o+=s+n,a=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var gd=fd;function md(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function yd(t,e){var n=function(t,e){var n,i,r=bd(t,e,{enableLayoutOnlyByCenter:!0}),o=t.getBoxLayoutParams();if(r.type===_d.point)i=r.refPoint,n=vd(o,{width:e.getWidth(),height:e.getHeight()});else{var a=t.get("center"),s=ot(a)?a:[a,a];n=vd(o,r.refContainer),i=2===r.boxCoordFrom?r.refPoint:[Yo(s[0],n.width)+n.x,Yo(s[1],n.height)+n.y]}return{viewRect:n,center:i}}(t,e),i=n.viewRect,r=n.center,o=t.get("radius");ot(o)||(o=[0,o]);var a=Yo(i.width,e.getWidth()),s=Yo(i.height,e.getHeight()),l=Math.min(a,s),u=Yo(o[0],l/2),c=Yo(o[1],l/2);return{cx:r[0],cy:r[1],r0:u,r:c,viewRect:i}}function vd(t,e,n){n=qh(n||0);var i=e.width,r=e.height,o=Yo(t.left,i),a=Yo(t.top,r),s=Yo(t.right,i),l=Yo(t.bottom,r),u=Yo(t.width,i),c=Yo(t.height,r),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new mn((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,c);return f.margin=n,f}function xd(t,e,n){var i=t.getShallow("preserveAspect",!0);if(!i)return e;var r=e.width/e.height;if(Math.abs(Math.atan(n)-Math.atan(r))<1e-9)return e;var o=t.getShallow("preserveAspectAlign",!0),a=t.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l="cover"===i;return r>n&&!l||r<n&&l?(s.width=e.height*n,"left"===o?s.left=0:"right"===o?s.right=0:s.left="center"):(s.height=e.width/n,"top"===a?s.top=0:"bottom"===a?s.bottom=0:s.top="middle"),vd(s,e)}rt(fd,"vertical"),rt(fd,"horizontal");var _d={rect:1,point:2};function bd(t,e,n){var i,r,o,a,s=t.boxCoordinateSystem;if(s){var l=function(t){var e=t.getShallow("coord",!0),n=1;if(null==e){var i=ad.get(t.type);i&&i.getCoord2&&(n=2,e=i.getCoord2(t))}return{coord:e,from:n}}(t),u=l.coord,c=l.from;if(s.dataToLayout){o=_d.rect,a=c;var h=s.dataToLayout(u);i=h.contentRect||h.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=_d.point,a=c,r=s.dataToPoint(u))}return null==o&&(o=_d.rect),o===_d.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),r=[i.x+i.width/2,i.y+i.height/2]),{type:o,refContainer:i,refPoint:r,boxCoordFrom:a}}function wd(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new mn(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(a=a.clone()).applyTransform(c)}var h=vd($({width:a.width,height:a.height},e),n,i),d=s?h.x-a.x:0,p=l?h.y-a.y:0;return"raw"===u?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===t&&t.markRedraw(),!0}function Sd(t){var e=t.layoutMode||t.constructor.layoutMode;return ct(e)?e:e?{type:e}:null}function Md(t,e,n){var i=n&&n.ignoreSize;!ot(i)&&(i=[i,i]);var r=a(pd[0],0),o=a(pd[1],1);function a(n,r){var o={},a=0,l={},u=0;if(hd(n,(function(e){l[e]=t[e]})),hd(n,(function(t){Nt(e,t)&&(o[t]=l[t]=e[t]),s(o,t)&&a++,s(l,t)&&u++})),i[r])return s(e,n[1])?l[n[2]]=null:s(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&a){if(a>=2)return o;for(var c=0;c<n.length;c++){var h=n[c];if(!Nt(o,h)&&Nt(t,h)){o[h]=t[h];break}}return o}return l}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){hd(t,(function(t){e[t]=n[t]}))}l(pd[0],t,r),l(pd[1],t,o)}function Cd(t){return Td({},t)}function Td(t,e){return e&&t&&hd(dd,(function(n){Nt(e,n)&&(t[n]=e[n])})),t}var Id=Pa(),Dd=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=oh("ec_cpt_model"),r}var n;return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Sd(this),i=n?Cd(t):{};W(t,e.getTheme().get(this.mainType)),W(t,this.getDefaultOption()),n&&Md(t,i,n)},e.prototype.mergeOption=function(t,e){W(this.option,t,!0);var n=Sd(this);n&&Md(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[qa])}(t))return t.defaultOption;var e=Id(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=W(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Ha(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){return md(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(ih);Za(Dd,ih),ts(Dd),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=Ya(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=Ya(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(Dd),function(t){function e(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,n,i,r){if(t.length){var o=function(t){var n={},i=[];return K(t,(function(r){var o,a,s=e(n,r),l=function(t,e){var n=[];return K(t,(function(t){q(e,t)>=0&&n.push(t)})),n}(s.originalDeps=(o=r,a=[],K(Dd.getClassesByMainType(o),(function(t){a=a.concat(t.dependencies||t.prototype.dependencies||[])})),a=J(a,(function(t){return Ya(t).main})),"dataset"!==o&&q(a,"dataset")<=0&&a.unshift("dataset"),a),t);s.entryCount=l.length,0===s.entryCount&&i.push(r),K(l,(function(t){q(s.predecessor,t)<0&&s.predecessor.push(t);var i=e(n,t);q(i.successor,t)<0&&i.successor.push(r)}))})),{graph:n,noEntryList:i}}(n),a=o.graph,s=o.noEntryList,l={};for(K(t,(function(t){l[t]=!0}));s.length;){var u=s.pop(),c=a[u],h=!!l[u];h&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),K(c.successor,h?p:d)}K(l,(function(){throw new Error("")}))}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function p(t){l[t]=!0,d(t)}}}(Dd);const Ad=Dd;var kd={color:{},darkColor:{},size:{}},Ed=kd.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var Ld in j(Ed,{primary:Ed.neutral80,secondary:Ed.neutral70,tertiary:Ed.neutral60,quaternary:Ed.neutral50,disabled:Ed.neutral20,border:Ed.neutral30,borderTint:Ed.neutral20,borderShade:Ed.neutral40,background:Ed.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ed.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ed.neutral70,axisLineTint:Ed.neutral40,axisTick:Ed.neutral70,axisTickMinor:Ed.neutral60,axisLabel:Ed.neutral70,axisSplitLine:Ed.neutral15,axisMinorSplitLine:Ed.neutral05}),Ed)if(Ed.hasOwnProperty(Ld)){var Od=Ed[Ld];"theme"===Ld?kd.darkColor.theme=Ed.theme.slice():"highlight"===Ld?kd.darkColor.highlight="rgba(255,231,130,0.4)":0===Ld.indexOf("accent")?kd.darkColor[Ld]=Vi(Od,null,(function(t){return.5*t}),(function(t){return Math.min(1,1.3-t)})):kd.darkColor[Ld]=Vi(Od,null,(function(t){return.9*t}),(function(t){return 1-Math.pow(t,1.5)}))}kd.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const Pd=kd;var Nd="";"undefined"!=typeof navigator&&(Nd=navigator.platform||"");var Rd="rgba(0, 0, 0, 0.2)",zd=Pd.color.theme[0],Bd=Vi(zd,null,null,.9);const Vd={darkMode:"auto",colorBy:"series",color:Pd.color.theme,gradientColor:[Bd,zd],aria:{decal:{decals:[{color:Rd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Rd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Rd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Rd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Rd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Rd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Nd.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Hd=Et(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Fd="original",Wd="arrayRows",Gd="objectRows",jd="keyedColumns",$d="typedArray",Ud="unknown",qd="column",Yd="row",Xd={Must:1,Might:2,Not:3},Zd=Pa();function Kd(t,e,n){var i={},r=Qd(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,c=Zd(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;K(t=t.slice(),(function(e,n){var r=ct(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function f(t){var e=t.dimsDef;return e?e.length:1}return K(t,(function(t,e){var n=t.name,r=f(t);if(null==o){var a=d.valueWayDim;p(i[n],a,r),p(l,a,r),d.valueWayDim+=r}else o===e?(p(i[n],0,r),p(s,0,r)):(a=d.categoryWayDim,p(i[n],a,r),p(l,a,r),d.categoryWayDim+=r)})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function Jd(t,e,n){var i={};if(!Qd(t))return i;var r,o=e.sourceFormat,a=e.dimensionsDefine;o!==Gd&&o!==jd||K(a,(function(t,e){"name"===(ct(t)?t.name:t)&&(r=e)}));var s=function(){for(var t={},i={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=ep(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var h=c===Xd.Not;if(h&&null==t.v&&l!==r&&(t.v=l),(null==t.n||t.n===t.v||!h&&s[t.n]===Xd.Not)&&(t.n=l),d(t)&&s[t.n]!==Xd.Not)return t;h||(c===Xd.Might&&null==i.v&&l!==r&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(i)?i:null}();if(s){i.value=[s.v];var l=null!=r?r:s.n;i.itemName=[l],i.seriesName=[l]}return i}function Qd(t){if(!t.get("data",!0))return Ha(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Ba).models[0]}function tp(t,e){return ep(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function ep(t,e,n,i,r,o){var a,s,l;if(dt(t))return Xd.Not;if(i){var u=i[o];ct(u)?(s=u.name,l=u.type):st(u)&&(s=u)}if(null!=l)return"ordinal"===l?Xd.Must:Xd.Not;if(e===Wd){var c=t;if(n===Yd){for(var h=c[o],d=0;d<(h||[]).length&&d<5;d++)if(null!=(a=x(h[r+d])))return a}else for(d=0;d<c.length&&d<5;d++){var p=c[r+d];if(p&&null!=(a=x(p[o])))return a}}else if(e===Gd){var f=t;if(!s)return Xd.Not;for(d=0;d<f.length&&d<5;d++)if((y=f[d])&&null!=(a=x(y[s])))return a}else if(e===jd){var g=t;if(!s)return Xd.Not;if(!(h=g[s])||dt(h))return Xd.Not;for(d=0;d<h.length&&d<5;d++)if(null!=(a=x(h[d])))return a}else if(e===Fd){var m=t;for(d=0;d<m.length&&d<5;d++){var y,v=Ca(y=m[d]);if(!ot(v))return Xd.Not;if(null!=(a=x(v[o])))return a}}function x(t){var e=st(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?Xd.Might:Xd.Not:e&&"-"!==t?Xd.Must:void 0}return Xd.Not}var np,ip,rp,op=Et(),ap=Pa(),sp=Pa(),lp=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=wa(this.get("color",!0)),r=this.get("colorLayer",!0);return cp(this,ap,i,r,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,ap)},t}();function up(t,e,n,i){var r=wa(t.get(["aria","decal","decals"]));return cp(t,sp,r,null,e,n,i)}function cp(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}var hp="\0_ec_inner",dp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new ih(i),this._locale=new ih(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=gp(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,gp(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):rp(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&K(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Et(),s=e&&e.replaceMergeMainTypeMap;Zd(this).datasetMap=Et(),K(t,(function(t,e){null!=t&&(Ad.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?F(t):W(n[e],t,!0))})),s&&s.each((function(t,e){Ad.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),Ad.topologicalTravel(o,Ad.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var i=op.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,wa(t[e])),a=i.get(e),l=Ia(a,o,a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll");(function(t,e,n){K(t,(function(t){var i=t.newOption;ct(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))}))})(l,e,Ad),n[e]=null,i.set(e,null),r.set(e,0);var u,c=[],h=[],d=0;K(l,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=Ad.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return;u=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=j({componentIndex:n},t.keyInfo);j(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),h.push(i),d++):(c.push(void 0),h.push(void 0))}),this),n[e]=c,i.set(e,h),r.set(e,d),"series"===e&&np(this)}),this),this._seriesIndices||np(this)},e.prototype.getOption=function(){var t=F(this.option);return K(t,(function(e,n){if(Ad.hasClass(n)){for(var i=wa(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!La(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[hp],t},e.prototype.setTheme=function(t){this._theme=new ih(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],K(wa(i),(function(t){a[t]&&n.push(a[t])}))):n=null!=r?pp("id",r,a):null!=o?pp("name",o,a):tt(a,(function(t){return!!t})),fp(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]});return o=fp(l?this.queryComponents(l):tt(this._componentsMap.get(s),(function(t){return!!t})),t),t.filter?tt(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(at(t)){var r=e,o=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}}))}else for(var a=st(t)?i.get(t):ct(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=ka(t,null);return tt(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return tt(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return tt(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){ip(this),K(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){K(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){ip(this),K(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return K(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return ip(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){ip(this);var n=[];K(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=Et(n)},e.prototype.restoreData=function(t){np(this);var e=this._componentsMap,n=[];e.each((function(t,e){Ad.hasClass(e)&&n.push(e)})),Ad.topologicalTravel(n,Ad.getAllClassMainTypes(),(function(n){K(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()}))}))},e.internalField=(np=function(t){var e=t._seriesIndices=[];K(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Et(e)},ip=function(t){},void(rp=function(t,e){t.option={},t.option[hp]=1,t._componentsMap=Et({series:[]}),t._componentsCount=Et();var n=e.aria;ct(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;K(e,(function(e,i){"colorLayer"===i&&n||"color"===i&&t.color||Ad.hasClass(i)||("object"==typeof e?t[i]=t[i]?W(t[i],e,!1):F(e):null==t[i]&&(t[i]=e))}))}(e,t._theme.option),W(e,Vd,!1),t._mergeOption(e,null)})),e}(ih);function pp(t,e,n){if(ot(e)){var i=Et();return K(e,(function(t){null!=t&&null!=ka(t,null)&&i.set(t,!0)})),tt(n,(function(e){return e&&i.get(e[t])}))}var r=ka(e,null);return tt(n,(function(e){return e&&null!=r&&e[t]===r}))}function fp(t,e){return e.hasOwnProperty("subType")?tt(t,(function(t){return t&&t.subType===e.subType})):t}function gp(t){var e=Et();return t&&K(wa(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}X(dp,lp);const mp=dp;var yp=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const vp=function(t){K(yp,(function(e){this[e]=it(t[e],t)}),this)};var xp=/^(min|max)?(.+)$/,_p=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(K(wa(t.series),(function(t){t&&t.data&&dt(t.data)&&Tt(t.data)})),K(wa(t.dataset),(function(t){t&&t.source&&dt(t.source)&&Tt(t.source)}))),t=F(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function d(t){K(e,(function(e){e(t,n)}))}return a?(r=a).timeline||(r.timeline=s):((h||c)&&(t.options=t.media=null),r=t),c&&ot(u)&&K(u,(function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))})),d(r),K(l,(function(t){return d(t)})),K(o,(function(t){return d(t.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],F(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=F(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)bp(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=J(s,(function(t){return F(-1===t?a.option:o[t].option)}))),this._currentMediaIndices=s,l},t}();function bp(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return K(t,(function(t,e){var n=e.match(xp);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}})),r}const wp=_p;var Sp=K,Mp=ct,Cp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Tp(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Cp.length;n<i;n++){var r=Cp[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?W(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?W(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Ip(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,$(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Dp(t){Ip(t,"itemStyle"),Ip(t,"lineStyle"),Ip(t,"areaStyle"),Ip(t,"label"),Ip(t,"labelLine"),Ip(t,"upperLabel"),Ip(t,"edgeLabel")}function Ap(t,e){var n=Mp(t)&&t[e],i=Mp(n)&&n.textStyle;if(i)for(var r=0,o=Ma.length;r<o;r++){var a=Ma[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function kp(t){t&&(Dp(t),Ap(t,"label"),t.emphasis&&Ap(t.emphasis,"label"))}function Ep(t){return ot(t)?t:t?[t]:[]}function Lp(t){return(ot(t)?t[0]:t)||{}}function Op(t){t&&K(Pp,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var Pp=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Np=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Rp=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function zp(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Rp.length;n++){var i=Rp[n][1],r=Rp[n][0];null!=e[i]&&(e[r]=e[i])}}function Bp(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Vp(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Hp(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Hp(t[n].children,e)}function Fp(t,e){(function(t,e){Sp(Ep(t.series),(function(t){Mp(t)&&function(t){if(Mp(t)){Tp(t),Dp(t),Ap(t,"label"),Ap(t,"upperLabel"),Ap(t,"edgeLabel"),t.emphasis&&(Ap(t.emphasis,"label"),Ap(t.emphasis,"upperLabel"),Ap(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Tp(e),kp(e));var n=t.markLine;n&&(Tp(n),kp(n));var i=t.markArea;i&&kp(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!dt(o))for(var a=0;a<o.length;a++)kp(o[a]);K(t.categories,(function(t){Dp(t)}))}if(r&&!dt(r))for(a=0;a<r.length;a++)kp(r[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)kp(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)ot(l[a])?(kp(l[a][0]),kp(l[a][1])):kp(l[a])}"gauge"===t.type?(Ap(t,"axisLabel"),Ap(t,"title"),Ap(t,"detail")):"treemap"===t.type?(Ip(t.breadcrumb,"itemStyle"),K(t.levels,(function(t){Dp(t)}))):"tree"===t.type&&Dp(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Sp(n,(function(e){Sp(Ep(t[e]),(function(t){t&&(Ap(t,"axisLabel"),Ap(t.axisPointer,"label"))}))})),Sp(Ep(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;Ap(e,"axisLabel"),Ap(e&&e.axisPointer,"label")})),Sp(Ep(t.calendar),(function(t){Ip(t,"itemStyle"),Ap(t,"dayLabel"),Ap(t,"monthLabel"),Ap(t,"yearLabel")})),Sp(Ep(t.radar),(function(t){Ap(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),Sp(Ep(t.geo),(function(t){Mp(t)&&(kp(t),Sp(Ep(t.regions),(function(t){kp(t)})))})),Sp(Ep(t.timeline),(function(t){kp(t),Ip(t,"label"),Ip(t,"itemStyle"),Ip(t,"controlStyle",!0);var e=t.data;ot(e)&&K(e,(function(t){ct(t)&&(Ip(t,"label"),Ip(t,"itemStyle"))}))})),Sp(Ep(t.toolbox),(function(t){Ip(t,"iconStyle"),Sp(t.feature,(function(t){Ip(t,"iconStyle")}))})),Ap(Lp(t.axisPointer),"label"),Ap(Lp(t.tooltip).axisPointer,"label")})(t,e),t.series=wa(t.series),K(t.series,(function(t){if(ct(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Bp(t.label),(r=t.data)&&!dt(r))for(var n=0;n<r.length;n++)Bp(r[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=function(t){for(var e="pointer.color".split(","),n=t,i=0;i<e.length&&null!=(n=n&&n[e[i]]);i++);return n}(t);null!=i&&function(t,e,n){for(var i,r="itemStyle.color".split(","),o=t,a=0;a<r.length-1;a++)null==o[i=r[a]]&&(o[i]={}),o=o[i];null==o[r[a]]&&(o[r[a]]=n)}(t,0,i)}else if("bar"===e){var r;if(zp(t),zp(t.backgroundStyle),zp(t.emphasis),(r=t.data)&&!dt(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(zp(r[n]),zp(r[n]&&r[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),Vp(t),Hp(t.data,Vp)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&$(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Op(t)}})),t.dataRange&&(t.visualMap=t.dataRange),K(Np,(function(e){var n=t[e];n&&(ot(n)||(n=[n]),K(n,(function(t){Op(t)})))}))}var Wp=function(t){this.data=t.data||(t.sourceFormat===jd?{}:[]),this.sourceFormat=t.sourceFormat||Ud,this.seriesLayoutBy=t.seriesLayoutBy||qd,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&tp(this,n)===Xd.Must&&(i.type="ordinal")}};function Gp(t){return t instanceof Wp}function jp(t,e,n){n=n||Up(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:qp(r),startIndex:a,dimensionsDetectedCount:o};if(e===Wd){var s=t;"auto"===i||null==i?Yp((function(t){null!=t&&"-"!==t&&(st(t)?null==a&&(a=1):a=0)}),n,s,10):a=ut(i)?i:i?1:0,r||1!==a||(r=[],Yp((function(t,e){r[e]=null!=t?t+"":""}),n,s,1/0)),o=r?r.length:n===Yd?s.length:s[0]?s[0].length:null}else if(e===Gd)r||(r=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return nt(e)}(t));else if(e===jd)r||(r=[],K(t,(function(t,e){r.push(e)})));else if(e===Fd){var l=Ca(t[0]);o=ot(l)&&l.length||1}return{startIndex:a,dimensionsDefine:qp(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new Wp({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:F(e)})}function $p(t){return new Wp({data:t,sourceFormat:dt(t)?$d:Fd})}function Up(t){var e=Ud;if(dt(t))e=$d;else if(ot(t)){0===t.length&&(e=Wd);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(ot(r)||dt(r)){e=Wd;break}if(ct(r)){e=Gd;break}}}}else if(ct(t))for(var o in t)if(Nt(t,o)&&Z(t[o])){e=jd;break}return e}function qp(t){if(t){var e=Et();return J(t,(function(t,n){var i={name:(t=ct(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i}))}}function Yp(t,e,n,i){if(e===Yd)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function Xp(t){var e=t.sourceFormat;return e===Gd||e===jd}var Zp,Kp,Jp,Qp,tf,ef,nf={},rf="undefined"!=typeof console&&console.warn&&console.log;function of(t,e){!function(t,e,n){if(rf){if(n){if(nf[e])return;nf[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function af(t){throw new Error(t)}var sf=function(){function t(t,e){var n=Gp(t)?t:$p(t);this._source=n;var i=this._data=n.data,r=n.sourceFormat;n.seriesLayoutBy,r===$d&&(this._offset=0,this._dimSize=e,this._data=i),ef(this,i,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;ef=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(j(t,tf[vf(a,s)]),a===$d)t.getItem=e,t.count=i,t.fillStorage=n;else{var c=hf(a,s);t.getItem=it(c,null,r,l,u);var h=ff(a,s);t.count=it(h,null,r,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],d=0;d<c;d++){var p=r[d*o+a];h[t+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[Wd+"_"+qd]={pure:!0,appendData:r},t[Wd+"_"+Yd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Gd]={pure:!0,appendData:r},t[jd]={pure:!0,appendData:function(t){var e=this._data;K(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t[Fd]={appendData:r},t[$d]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},tf=t}(),t}(),lf=function(t){ot(t)||of("series.data or dataset.source must be an array.")},uf=((Zp={})[Wd+"_"+qd]=lf,Zp[Wd+"_"+Yd]=lf,Zp[Gd]=lf,Zp[jd]=function(t,e){for(var n=0;n<e.length;n++)null==e[n].name&&of("dimension name must not be null/undefined.")},Zp[Fd]=lf,function(t,e,n,i){return t[i]}),cf=((Kp={})[Wd+"_"+qd]=function(t,e,n,i){return t[i+e]},Kp[Wd+"_"+Yd]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},Kp[Gd]=uf,Kp[jd]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,l=null!=s?t[s]:null;o[a]=l?l[i]:null}return o},Kp[Fd]=uf,Kp);function hf(t,e){return cf[vf(t,e)]}var df=function(t,e,n){return t.length},pf=((Jp={})[Wd+"_"+qd]=function(t,e,n){return Math.max(0,t.length-e)},Jp[Wd+"_"+Yd]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},Jp[Gd]=df,Jp[jd]=function(t,e,n){var i=n[0].name,r=null!=i?t[i]:null;return r?r.length:0},Jp[Fd]=df,Jp);function ff(t,e){return pf[vf(t,e)]}var gf=function(t,e,n){return t[e]},mf=((Qp={})[Wd]=gf,Qp[Gd]=function(t,e,n){return t[n]},Qp[jd]=gf,Qp[Fd]=function(t,e,n){var i=Ca(t);return i instanceof Array?i[e]:i},Qp[$d]=gf,Qp);function yf(t){return mf[t]}function vf(t,e){return t===Wd?t+"_"+e:t}function xf(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return yf(o)(i,a,s)}var l=i;return o===Fd&&(l=Ca(i)),l}}}var _f=/\{@(.+?)\}/g,bf=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);return o&&(s.value=o.interpolatedValue),null!=i&&ot(s.value)&&(s.value=s.value[i]),r||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),at(r)?(s.status=e,s.dimensionIndex=i,r(s)):st(r)?Kh(r,s).replace(_f,(function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=xf(a,t,r);if(o&&ot(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return xf(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function wf(t){var e,n;return ct(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Sf(t){return new Mf(t)}var Mf=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||d<p)){var f=this._progress;if(ot(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],d,p,l,u);else this._doProgress(f,d,p,l,u)}this._dueIndex=p;var m=null!=this._settedOutputEnd?this._settedOutputEnd:p;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){Cf.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Cf.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),ot(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Cf=function(){var t,e,n,i,r,o={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function Tf(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||ut(t)||null==t||"-"===t||(t=+la(t)),null==t||""===t?NaN:Number(t))}var If=Et({number:function(t){return parseFloat(t)},time:function(t){return+la(t)},trim:function(t){return st(t)?Mt(t):t}});function Df(t){return If.get(t)}var Af={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},kf=function(){function t(t,e){ut(e)||af(""),this._opFn=Af[t],this._rvalFloat=fa(e)}return t.prototype.evaluate=function(t){return ut(t)?this._opFn(t,this._rvalFloat):this._opFn(fa(t),this._rvalFloat)},t}(),Ef=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=ut(t)?t:fa(t),i=ut(e)?e:fa(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=st(t),s=st(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),Lf=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=fa(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=fa(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Of(t,e){return"eq"===t||"ne"===t?new Lf("eq"===t,e):Nt(Af,t)?new kf(t,e):null}var Pf=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Tf(t,e)},t}();function Nf(t){return Ff(t.sourceFormat)||af(""),t.data}function Rf(t){var e=t.sourceFormat,n=t.data;if(Ff(e)||af(""),e===Wd){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===Gd){for(i=[],r=0,o=n.length;r<o;r++)i.push(j({},n[r]));return i}}function zf(t,e,n){if(null!=n)return ut(n)||!isNaN(n)&&!Nt(e,n)?t[n]:Nt(e,n)?e[n]:void 0}function Bf(t){return F(t)}var Vf=Et();function Hf(t,e,n,i){e.length||af(""),ct(t)||af("");var r=t.type,o=Vf.get(r);o||af("");var a=J(e,(function(t){return function(t,e){var n=new Pf,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==qd&&af("");var a=[],s={},l=t.dimensionsDefine;if(l)K(l,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};a.push(i),null!=n&&(Nt(s,n)&&af(""),s[n]=i)}));else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var c=hf(r,qd);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(i,o,a,t)},n.getRawData=it(Nf,null,t)),n.cloneRawData=it(Rf,null,t);var h=ff(r,qd);n.count=it(h,null,i,o,a);var d=yf(r);n.retrieveValue=function(t,e){var n=c(i,o,a,t);return p(n,e)};var p=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=it(zf,null,a,s),n.cloneAllDimensionInfo=it(Bf,null,a),n}(t,o)}));return J(wa(o.transform({upstream:a[0],upstreamList:a,config:F(t.config)})),(function(t,n){var i;ct(t)||af(""),t.data||af(""),Ff(Up(t.data))||af("");var r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:qd,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:qd,sourceHeader:0,dimensions:t.dimensions};return jp(t.data,i,null)}))}function Ff(t){return t===Wd||t===Gd}var Wf,Gf="undefined",jf=typeof Uint32Array===Gf?Array:Uint32Array,$f=typeof Uint16Array===Gf?Array:Uint16Array,Uf=typeof Int32Array===Gf?Array:Int32Array,qf=typeof Float64Array===Gf?Array:Float64Array,Yf={float:qf,int:Uf,ordinal:Array,number:Array,time:qf};function Xf(t){return t>65535?jf:$f}function Zf(t,e,n,i,r){var o=Yf[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}var Kf=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Et()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=Wf[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],Xp(i),this._dimensions=J(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new Yf[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=[1/0,-1/0]);for(var s=r[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++)Zf(n,l,(p=i[l]).type,s,!0);for(var u=[],c=a;c<s;c++)for(var h=c-a,d=0;d<r;d++){var p=i[d],f=Wf.arrayRows.call(this,t[h]||u,p.property,h,d);n[d][c]=f;var g=o[d];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=J(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),Zf(r,u,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var h=[],d=t;d<e;d++){h=i.getItem(d,h);for(var p=0;p<a;p++){var f=r[p],g=this._dimValueGetter(h,l[p],d,p);f[d]=g;var m=s[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else for(t=new(n=Xf(this._rawCount))(this.count()),r=0;r<t.length;r++)t[r]=r;return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(Xf(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a)h=e(u[l][d],c);else{for(var p=0;p<a;p++)o[p]=u[t[p]][d];o[p]=c,h=e.apply(null,o)}h&&(r[s++]=d)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=nt(t),r=i.length;if(!r)return this;var o=e.count(),a=new(Xf(e._rawCount))(o),s=0,l=i[0],u=t[l][0],c=t[l][1],h=e._chunks,d=!1;if(!e._indices){var p=0;if(1===r){for(var f=h[i[0]],g=0;g<n;g++)((x=f[g])>=u&&x<=c||isNaN(x))&&(a[s++]=p),p++;d=!0}else if(2===r){f=h[i[0]];var m=h[i[1]],y=t[i[1]][0],v=t[i[1]][1];for(g=0;g<n;g++){var x=f[g],_=m[g];(x>=u&&x<=c||isNaN(x))&&(_>=y&&_<=v||isNaN(_))&&(a[s++]=p),p++}d=!0}}if(!d)if(1===r)for(g=0;g<o;g++){var b=e.getRawIndex(g);((x=h[i[0]][b])>=u&&x<=c||isNaN(x))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<r;S++){var M=i[S];((x=h[M][b])<t[M][0]||x>t[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)s[d]=i[e[d]][h];s[o]=c;var p=n&&n.apply(null,s);if(null!=p)for("object"!=typeof p&&(r[0]=p,p=r),u=0;u<p.length;u++){var f=e[u],g=p[u],m=l[f],y=i[f];y&&(y[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(Xf(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var d=1;d<s-1;d+=u){for(var p=Math.min(d+u,s-1),f=Math.min(d+2*u,s),g=(f+p)/2,m=0,y=p;y<f;y++){var v=a[C=this.getRawIndex(y)];isNaN(v)||(m+=v)}m/=f-p;var x=d,_=Math.min(d+u,s),b=d-1,w=a[c];n=-1,r=x;var S=-1,M=0;for(y=x;y<_;y++){var C;v=a[C=this.getRawIndex(y)],isNaN(v)?(M++,S<0&&(S=C)):(i=Math.abs((b-g)*(v-w)-(b-y)*(m-w)))>n&&(n=i,r=C)}M>0&&M<_-x&&(h[l++]=Math.min(S,r),r=Math.max(S,r)),h[l++]=r,c=r}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(Xf(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var c=u,h=o[this.getRawIndex(c)],d=u,p=o[this.getRawIndex(d)],f=r;u+r>a&&(f=a-u);for(var g=0;g<f;g++){var m=o[this.getRawIndex(u+g)];m<h&&(h=m,c=u+g),m>p&&(p=m,d=u+g)}var y=this.getRawIndex(c),v=this.getRawIndex(d);c<d?(s[l++]=y,s[l++]=v):(s[l++]=v,s[l++]=y)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=[1/0,-1/0],h=new(Xf(this._rawCount))(Math.ceil(u/s)),d=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var m=n(a),y=this.getRawIndex(Math.min(p+i(a,m)||0,u-1));l[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[d++]=y}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i,r,o=new t,a=this._chunks,s=e&&Q(e,(function(t,e){return t[e]=!0,t}),{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(r=void 0,(r=(i=a[l]).constructor)===Array?i.slice():new r(i)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=F(this._extent),t._rawExtent=F(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Tf(t[i],this._dimensions[i])}Wf={arrayRows:t,objectRows:function(t,e,n,i){return Tf(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Tf(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}();const Jf=Kf;var Qf=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(eg(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=dt(a=o.get("data",!0))?$d:Fd,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=xt(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=xt(c.sourceHeader,h.sourceHeader),f=xt(c.dimensions,h.dimensions);t=d!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||f?[jp(a,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s)]:[]}else{var g=n;if(r){var m=this._applyTransform(i);t=m.sourceList,e=m.upstreamSignList}else t=[jp(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);null!=r&&1!==t.length&&ng("");var o,a=[],s=[];return K(t,(function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||ng(""),a.push(e),s.push(t._getVersionSign())})),i?e=function(t,e){var n=wa(t),i=n.length;i||af("");for(var r=0,o=i;r<o;r++)e=Hf(n[r],e),r!==o-1&&(e.length=Math.max(e.length,1));return e}(i,a,n.componentIndex):null!=r&&(e=[(o=a[0],new Wp({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:F(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];eg(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new Jf).initData(new sf(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(eg(t)){var e=Qd(t);return e?[e.getSourceManager()]:[]}return J(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Ha(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Ba).models:[]}(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(eg(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function tg(t){t.option.transform&&Tt(t.option.transform)}function eg(t){return"series"===t.mainType}function ng(t){throw new Error(t)}function ig(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+Te(e+"")+"px"}function rg(t,e){var n=t.color||Pd.color.tertiary,i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||Pd.color.secondary,a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Te(i+"")+"px;color:"+Te(n)+";font-weight:"+Te(r+""),valueStyle:"font-size:"+Te(a+"")+"px;color:"+Te(o)+";font-weight:"+Te(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var og=[0,10,20,30],ag=["","\n","\n\n","\n\n\n"];function sg(t,e){return e.type=t,e}function lg(t){return"section"===t.type}function ug(t){return lg(t)?hg:dg}function cg(t){if(lg(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return K(t.blocks,(function(t){var n=cg(t);n>=e&&(e=n+ +(i&&(!n||lg(t)&&!t.noHeader)))})),e}return 0}function hg(t,e,n,i){var r,o=e.noHeader,a=(r=cg(e),{html:og[r],richText:ag[r]}),s=[],l=e.blocks||[];St(!l||ot(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Nt(c,u)){var h=new Ef(c[u],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}K(l,(function(n,r){var o=e.valueFormatter,l=ug(n)(o?j(j({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)}));var d="richText"===t.renderMode?s.join(a.richText):fg(i,s.join(""),o?n:a.html);if(o)return d;var p=Yh(e.header,"ordinal",t.useUTC),f=rg(i,t.renderMode).nameStyle,g=ig(i);return"richText"===t.renderMode?gg(t,p,f)+a.richText+d:fg(i,'<div style="'+f+";"+g+';">'+Te(p)+"</div>"+d,n)}function dg(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return J(t=ot(t)?t:[t],(function(t,e){return Yh(t,ot(p)?p[e]:p,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Pd.color.secondary,r),d=o?"":Yh(l,"ordinal",u),p=e.valueType,f=a?[]:c(e.value,e.dataIndex),g=!s||!o,m=!s&&o,y=rg(i,r),v=y.nameStyle,x=y.valueStyle;return"richText"===r?(s?"":h)+(o?"":gg(t,d,v))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(ot(e)?e.join(" "):e,o)}(t,f,g,m,x)):fg(i,(s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Te(t)+"</span>"}(d,!s,v))+(a?"":function(t,e,n,i){return'<span style="'+(e?"float:right;margin-left:"+(n?"10px":"20px"):"")+";"+i+'">'+J(t=ot(t)?t:[t],(function(t){return Te(t)})).join(" ")+"</span>"}(f,g,m,x)),n)}}function pg(t,e,n,i,r,o){if(t)return ug(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function fg(t,e,n){return'<div style="margin: '+n+"px 0 0;"+ig(t)+';">'+e+'<div style="clear:both"></div></div>'}function gg(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function mg(t,e){return ed(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function yg(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var vg=function(){function t(){this.richTextStyles={},this._nextStyleNameId=ma()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=Jh({color:e,type:t,renderMode:n,markerId:i});return st(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};ot(e)?K(e,(function(t){return j(n,t)})):j(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function xg(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=ot(h),p=mg(o,a);if(c>1||d&&!c){var f=function(t,e,n,i,r){var o=e.getData(),a=Q(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(sg("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?K(i,(function(t){c(xf(o,n,t),t)})):K(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,p);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=xf(l,a,u[0]),n=g.type}else r=e=d?h[0]:h;var m=Ea(o),y=m&&o.name||"",v=l.getName(a),x=s?y:v;return sg("section",{header:y,noHeader:s||!m,sortParam:r,blocks:[sg("nameValue",{markerType:"item",markerColor:p,name:x,noName:!Mt(x),value:e,valueType:n,dataIndex:a})].concat(i||[])})}var _g=Pa();function bg(t,e){return t.getName(e)||t.getId(e)}var wg="__universalTransitionEnabled",Sg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return m(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Sf({count:Cg,reset:Tg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(_g(this).sourceManager=new Qf(this)).prepareSource();var i=this.getInitialData(t,n);Dg(i,this),this.dataTask.context.data=i,_g(this).dataBeforeProcessed=i,Mg(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Sd(this),i=n?Cd(t):{},r=this.subType;Ad.hasClass(r)&&(r+="Series"),W(t,e.getTheme().get(this.subType)),W(t,this.getDefaultOption()),Sa(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Md(t,i,n)},e.prototype.mergeOption=function(t,e){t=W(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Sd(this);n&&Md(this.option,t,n);var i=_g(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Dg(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,_g(this).dataBeforeProcessed=r,Mg(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!dt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Sa(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=kg(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return _g(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=kg(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}_g(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Et(t)},e.prototype.getSourceManager=function(){return _g(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return _g(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,e,n,i){var r=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(t);if(!o||!a)return[];var s=a.dataToCoord(n);null==i&&(i=1/0);var l=[],u=1/0,c=-1,h=0;return r.each(e,(function(t,e){var n=a.dataToCoord(t),r=s-n,o=Math.abs(r);o<=i&&((o<u||o===u&&r>=0&&c<0)&&(u=o,c=r,h=0),r===c&&(l[h++]=e))})),l.length=h,l},e.prototype.formatTooltip=function(t,e,n){return xg({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(x.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=lp.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=bg(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=nt(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[bg(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[wg])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){ct(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=e[l];s[h=bg(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=bg(t,c);r.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((i={})[h]=t.getRawIndex(c),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Ad.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(Ad);function Mg(t){var e=t.name;Ea(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return K(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function Cg(t){return t.model.getRawData().count()}function Tg(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Ig}function Ig(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Dg(t,e){K(Lt(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,rt(Ag,e))}))}function Ag(t,e){var n=kg(t);return n&&n.setOutputEnd((e||this).count()),e}function kg(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}X(Sg,bf),X(Sg,lp),Za(Sg,Ad);const Eg=Sg;var Lg=function(){function t(){this.group=new Ao,this.uid=oh("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Xa(Lg),ts(Lg);const Og=Lg;function Pg(){var t=Pa();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Ng=yl.CMD,Rg=[[],[],[]],zg=Math.sqrt,Bg=Math.atan2;function Vg(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=Ng.M,h=Ng.C,d=Ng.L,p=Ng.R,f=Ng.A,g=Ng.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:case d:i=1;break;case h:i=3;break;case g:i=2;break;case f:var m=e[4],y=e[5],v=zg(e[0]*e[0]+e[1]*e[1]),x=zg(e[2]*e[2]+e[3]*e[3]),_=Bg(-e[1]/x,e[0]/v);l[r]*=v,l[r++]+=m,l[r]*=x,l[r++]+=y,l[r++]*=v,l[r++]*=x,l[r++]+=_,l[r++]+=_,o=r+=2;break;case p:s[0]=l[r++],s[1]=l[r++],ue(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],ue(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=Rg[a];b[0]=l[r++],b[1]=l[r++],ue(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}var Hg=Math.sqrt,Fg=Math.sin,Wg=Math.cos,Gg=Math.PI;function jg(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function $g(t,e){return(t[0]*e[0]+t[1]*e[1])/(jg(t)*jg(e))}function Ug(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos($g(t,e))}function qg(t,e,n,i,r,o,a,s,l,u,c){var h=l*(Gg/180),d=Wg(h)*(t-n)/2+Fg(h)*(e-i)/2,p=-1*Fg(h)*(t-n)/2+Wg(h)*(e-i)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=Hg(f),s*=Hg(f));var g=(r===o?-1:1)*Hg((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,m=g*a*p/s,y=g*-s*d/a,v=(t+n)/2+Wg(h)*m-Fg(h)*y,x=(e+i)/2+Fg(h)*m+Wg(h)*y,_=Ug([1,0],[(d-m)/a,(p-y)/s]),b=[(d-m)/a,(p-y)/s],w=[(-1*d-m)/a,(-1*p-y)/s],S=Ug(b,w);if($g(b,w)<=-1&&(S=Gg),$g(b,w)>=1&&(S=0),S<0){var M=Math.round(S/Gg*1e6)/1e6;S=2*Gg+M%2*Gg}c.addData(u,v,x,a,s,_,S,h,o)}var Yg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Xg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Zg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ht(e,t),e.prototype.applyTransform=function(t){},e}(Bl);function Kg(t){return null!=t.setData}function Jg(t,e){var n=function(t){var e=new yl;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=yl.CMD,l=t.match(Yg);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,p=c.match(Xg)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var m=0;m<f;){var y=void 0,v=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=i,C=r,T=void 0,I=void 0;switch(h){case"l":i+=p[m++],r+=p[m++],d=s.L,e.addData(d,i,r);break;case"L":i=p[m++],r=p[m++],d=s.L,e.addData(d,i,r);break;case"m":i+=p[m++],r+=p[m++],d=s.M,e.addData(d,i,r),o=i,a=r,h="l";break;case"M":i=p[m++],r=p[m++],d=s.M,e.addData(d,i,r),o=i,a=r,h="L";break;case"h":i+=p[m++],d=s.L,e.addData(d,i,r);break;case"H":i=p[m++],d=s.L,e.addData(d,i,r);break;case"v":r+=p[m++],d=s.L,e.addData(d,i,r);break;case"V":r=p[m++],d=s.L,e.addData(d,i,r);break;case"C":d=s.C,e.addData(d,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),i=p[m-2],r=p[m-1];break;case"c":d=s.C,e.addData(d,p[m++]+i,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i,p[m++]+r),i+=p[m-2],r+=p[m-1];break;case"S":y=i,v=r,T=e.len(),I=e.data,n===s.C&&(y+=i-I[T-4],v+=r-I[T-3]),d=s.C,M=p[m++],C=p[m++],i=p[m++],r=p[m++],e.addData(d,y,v,M,C,i,r);break;case"s":y=i,v=r,T=e.len(),I=e.data,n===s.C&&(y+=i-I[T-4],v+=r-I[T-3]),d=s.C,M=i+p[m++],C=r+p[m++],i+=p[m++],r+=p[m++],e.addData(d,y,v,M,C,i,r);break;case"Q":M=p[m++],C=p[m++],i=p[m++],r=p[m++],d=s.Q,e.addData(d,M,C,i,r);break;case"q":M=p[m++]+i,C=p[m++]+r,i+=p[m++],r+=p[m++],d=s.Q,e.addData(d,M,C,i,r);break;case"T":y=i,v=r,T=e.len(),I=e.data,n===s.Q&&(y+=i-I[T-4],v+=r-I[T-3]),i=p[m++],r=p[m++],d=s.Q,e.addData(d,y,v,i,r);break;case"t":y=i,v=r,T=e.len(),I=e.data,n===s.Q&&(y+=i-I[T-4],v+=r-I[T-3]),i+=p[m++],r+=p[m++],d=s.Q,e.addData(d,y,v,i,r);break;case"A":x=p[m++],_=p[m++],b=p[m++],w=p[m++],S=p[m++],qg(M=i,C=r,i=p[m++],r=p[m++],w,S,x,_,b,d=s.A,e);break;case"a":x=p[m++],_=p[m++],b=p[m++],w=p[m++],S=p[m++],qg(M=i,C=r,i+=p[m++],r+=p[m++],w,S,x,_,b,d=s.A,e)}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),i=o,r=a),n=d}return e.toStatic(),e}(t),i=j({},e);return i.buildPath=function(t){var e,i=Kg(t);i&&t.canSave()?(t.appendPath(n),(e=t.getContext())&&t.rebuildPath(e,1)):(e=i?t.getContext():t)&&n.rebuildPath(e,1)},i.applyTransform=function(t){Vg(n,t),this.dirtyShape()},i}function Qg(t,e){return new Zg(Jg(t,e))}function tm(t,e){e=e||{};var n=new Bl;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Vg(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var em=function(){this.cx=0,this.cy=0,this.r=0},nm=function(t){function e(e){return t.call(this,e)||this}return Ht(e,t),e.prototype.getDefaultShape=function(){return new em},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(Bl);nm.prototype.type="circle";const im=nm;var rm=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},om=function(t){function e(e){return t.call(this,e)||this}return Ht(e,t),e.prototype.getDefaultShape=function(){return new rm},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(Bl);om.prototype.type="ellipse";const am=om;var sm=Math.PI,lm=2*sm,um=Math.sin,cm=Math.cos,hm=Math.acos,dm=Math.atan2,pm=Math.abs,fm=Math.sqrt,gm=Math.max,mm=Math.min,ym=1e-4;function vm(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/fm(s*s+l*l),c=u*l,h=-u*s,d=t+c,p=e+h,f=n+c,g=i+h,m=(d+f)/2,y=(p+g)/2,v=f-d,x=g-p,_=v*v+x*x,b=r-o,w=d*g-f*p,S=(x<0?-1:1)*fm(gm(0,b*b*_-w*w)),M=(w*x-v*S)/_,C=(-w*v-x*S)/_,T=(w*x+v*S)/_,I=(-w*v+x*S)/_,D=M-m,A=C-y,k=T-m,E=I-y;return D*D+A*A>k*k+E*E&&(M=T,C=I),{cx:M,cy:C,x0:-c,y0:-h,x1:M*(r/b-1),y1:C*(r/b-1)}}var xm=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},_m=function(t){function e(e){return t.call(this,e)||this}return Ht(e,t),e.prototype.getDefaultShape=function(){return new xm},e.prototype.buildPath=function(t,e){!function(t,e){var n,i=gm(e.r,0),r=gm(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,d=pm(l-s),p=d>lm&&d%lm;if(p>ym&&(d=p),i>ym)if(d>lm-ym)t.moveTo(u+i*cm(s),c+i*um(s)),t.arc(u,c,i,s,l,!h),r>ym&&(t.moveTo(u+r*cm(l),c+r*um(l)),t.arc(u,c,r,l,s,h));else{var f=void 0,g=void 0,m=void 0,y=void 0,v=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,C=void 0,T=void 0,I=void 0,D=void 0,A=void 0,k=i*cm(s),E=i*um(s),L=r*cm(l),O=r*um(l),P=d>ym;if(P){var N=e.cornerRadius;N&&(n=function(t){var e;if(ot(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(N),f=n[0],g=n[1],m=n[2],y=n[3]);var R=pm(i-r)/2;if(v=mm(R,m),x=mm(R,y),_=mm(R,f),b=mm(R,g),M=w=gm(v,x),C=S=gm(_,b),(w>ym||S>ym)&&(T=i*cm(l),I=i*um(l),D=r*cm(s),A=r*um(s),d<sm)){var z=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,d=h*l-c*u;if(!(d*d<ym))return[t+(d=(c*(e-o)-h*(t-r))/d)*l,e+d*u]}(k,E,D,A,T,I,L,O);if(z){var B=k-z[0],V=E-z[1],H=T-z[0],F=I-z[1],W=1/um(hm((B*H+V*F)/(fm(B*B+V*V)*fm(H*H+F*F)))/2),G=fm(z[0]*z[0]+z[1]*z[1]);M=mm(w,(i-G)/(W+1)),C=mm(S,(r-G)/(W-1))}}}if(P)if(M>ym){var j=mm(m,M),$=mm(y,M),U=vm(D,A,k,E,i,j,h),q=vm(T,I,L,O,i,$,h);t.moveTo(u+U.cx+U.x0,c+U.cy+U.y0),M<w&&j===$?t.arc(u+U.cx,c+U.cy,M,dm(U.y0,U.x0),dm(q.y0,q.x0),!h):(j>0&&t.arc(u+U.cx,c+U.cy,j,dm(U.y0,U.x0),dm(U.y1,U.x1),!h),t.arc(u,c,i,dm(U.cy+U.y1,U.cx+U.x1),dm(q.cy+q.y1,q.cx+q.x1),!h),$>0&&t.arc(u+q.cx,c+q.cy,$,dm(q.y1,q.x1),dm(q.y0,q.x0),!h))}else t.moveTo(u+k,c+E),t.arc(u,c,i,s,l,!h);else t.moveTo(u+k,c+E);r>ym&&P?C>ym?(j=mm(f,C),U=vm(L,O,T,I,r,-($=mm(g,C)),h),q=vm(k,E,D,A,r,-j,h),t.lineTo(u+U.cx+U.x0,c+U.cy+U.y0),C<S&&j===$?t.arc(u+U.cx,c+U.cy,C,dm(U.y0,U.x0),dm(q.y0,q.x0),!h):($>0&&t.arc(u+U.cx,c+U.cy,$,dm(U.y0,U.x0),dm(U.y1,U.x1),!h),t.arc(u,c,r,dm(U.cy+U.y1,U.cx+U.x1),dm(q.cy+q.y1,q.cx+q.x1),h),j>0&&t.arc(u+q.cx,c+q.cy,j,dm(q.y1,q.x1),dm(q.y0,q.x0),!h))):(t.lineTo(u+L,c+O),t.arc(u,c,r,l,s,h)):t.lineTo(u+L,c+O)}else t.moveTo(u,c);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Bl);_m.prototype.type="sector";const bm=_m;var wm=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Sm=function(t){function e(e){return t.call(this,e)||this}return Ht(e,t),e.prototype.getDefaultShape=function(){return new wm},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(Bl);Sm.prototype.type="ring";const Mm=Sm;function Cm(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)ce(a,a,t[d]),he(s,s,t[d]);ce(a,a,i[0]),he(s,s,i[1])}for(d=0,p=t.length;d<p;d++){var f=t[d];if(n)r=t[d?d-1:p-1],o=t[(d+1)%p];else{if(0===d||d===p-1){l.push(Gt(t[d]));continue}r=t[d-1],o=t[d+1]}qt(u,o,r),ee(u,u,e);var g=ie(f,r),m=ie(f,o),y=g+m;0!==y&&(g/=y,m/=y),ee(c,u,-g),ee(h,u,m);var v=$t([],f,c),x=$t([],f,h);i&&(he(v,v,a),ce(v,v,s),he(x,x,a),ce(x,x,s)),l.push(v),l.push(x)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]),s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var Tm=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Im=function(t){function e(e){return t.call(this,e)||this}return Ht(e,t),e.prototype.getDefaultShape=function(){return new Tm},e.prototype.buildPath=function(t,e){Cm(t,e,!0)},e}(Bl);Im.prototype.type="polygon";const Dm=Im;var Am=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},km=function(t){function e(e){return t.call(this,e)||this}return Ht(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Am},e.prototype.buildPath=function(t,e){Cm(t,e,!1)},e}(Bl);km.prototype.type="polyline";const Em=km;var Lm={},Om=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Pm=function(t){function e(e){return t.call(this,e)||this}return Ht(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Om},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=ql(Lm,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(Bl);Pm.prototype.type="line";const Nm=Pm;var Rm=[],zm=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Bm(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?ti:Qn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?ti:Qn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?si:ai)(t.x1,t.cpx1,t.x2,e),(n?si:ai)(t.y1,t.cpy1,t.y2,e)]}var Vm=function(t){function e(e){return t.call(this,e)||this}return Ht(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zm},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,i),null==l||null==u?(c<1&&(ui(n,a,r,c,Rm),a=Rm[1],r=Rm[2],ui(i,s,o,c,Rm),s=Rm[1],o=Rm[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(ii(n,a,l,r,c,Rm),a=Rm[1],l=Rm[2],r=Rm[3],ii(i,s,u,o,c,Rm),s=Rm[1],u=Rm[2],o=Rm[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return Bm(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Bm(this.shape,t,!0);return ne(e,e)},e}(Bl);Vm.prototype.type="bezier-curve";const Hm=Vm;var Fm=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Wm=function(t){function e(e){return t.call(this,e)||this}return Ht(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Fm},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(Bl);Wm.prototype.type="arc";const Gm=Wm;var jm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return Ht(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Bl.prototype.getBoundingRect.call(this)},e}(Bl);const $m=jm;var Um=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();const qm=Um,Ym=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return Ht(e,t),e}(qm),Xm=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return Ht(e,t),e}(qm);var Zm=Math.min,Km=Math.max,Jm=Math.abs,Qm=[0,0],ty=[0,0],ey=gn(),ny=ey.minTv,iy=ey.maxTv,ry=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ze;for(n=0;n<2;n++)this._axes[n]=new Ze;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);for(Ze.sub(i[0],n[1],n[0]),Ze.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e,n){var i=!0,r=!e;return e&&Ze.set(e,0,0),ey.reset(n,!r),!this._intersectCheckOneSide(this,t,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,r,-1)&&(i=!1,r)||r||ey.negativeSize||Ze.copy(e,i?ey.useDir?ey.dirMinTv:ny:iy),i},t.prototype._intersectCheckOneSide=function(t,e,n,i){for(var r=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Qm),t._getProjMinMaxOnAxis(o,e._corners,ty),ey.negativeSize||Qm[1]<ty[0]||Qm[0]>ty[1]){if(r=!1,ey.negativeSize||n)return r;var s=Jm(ty[0]-Qm[1]),l=Jm(Qm[0]-ty[1]);Zm(s,l)>iy.len()&&(s<l?Ze.scale(iy,a,-s*i):Ze.scale(iy,a,l*i))}else n||(s=Jm(ty[0]-Qm[1]),l=Jm(Qm[0]-ty[1]),(ey.useDir||Zm(s,l)<ny.len())&&((s<l||!ey.bidirectional)&&(Ze.scale(ny,a,s*i),ey.useDir&&ey.calcDirMTV()),(s>=l||!ey.bidirectional)&&(Ze.scale(ny,a,-l*i),ey.useDir&&ey.calcDirMTV())))}return r},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=Zm(u,a),s=Km(u,s)}n[0]=a+ey.touchThreshold,n[1]=s-ey.touchThreshold,ey.negativeSize=n[1]<n[0]},t}();const oy=ry;var ay=[],sy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return Ht(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new mn(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(ay)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},e}(Rs);const ly=sy;var uy={},cy=["x","y"],hy=["width","height"];function dy(t){return Bl.extend(t)}var py=function(t,e){var n=Jg(t,e);return function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return Ht(e,t),e}(Zg)};function fy(t,e){return py(t,e)}function gy(t,e){uy[t]=e}function my(t){if(uy.hasOwnProperty(t))return uy[t]}function yy(t,e,n,i){var r=Qg(t,e);return n&&("center"===i&&(n=xy(n,r.getBoundingRect())),by(r,n)),r}function vy(t,e,n){var i=new $l({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(xy(e,r))}}});return i}function xy(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var _y=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new Bl(e);return a.createPathProxy(),a.buildPath=function(t){if(Kg(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function by(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function wy(t,e){return ql(t,t,{lineWidth:e}),t}function Sy(t,e){return Yl(t,t,e),t}var My=Xl;function Cy(t,e){for(var n=Fe([]);t&&t!==e;)Ge(n,t.getLocalTransform(),n),t=t.parent;return n}function Ty(t,e,n){return e&&!Z(e)&&(e=eo.getLocalTransform(e)),n&&(e=qe([],e)),ue([],t,e)}function Iy(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Uo(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Uo(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=Ty(o,e,n),Uo(o[0])>Uo(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Dy(t){return!t.isGroup}function Ay(t,e,n){if(t&&e){var i,r=(i={},t.traverse((function(t){Dy(t)&&t.anid&&(i[t.anid]=t)})),i);e.traverse((function(t){if(Dy(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),_c(t,i,n,yu(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=F(t.shape)),e}}function ky(t,e){return J(t,(function(t){var n=t[0];n=$o(n,e.x),n=jo(n,e.x+e.width);var i=t[1];return i=$o(i,e.y),[n,i=jo(i,e.y+e.height)]}))}function Ey(t,e){var n=$o(t.x,e.x),i=jo(t.x+t.width,e.x+e.width),r=$o(t.y,e.y),o=jo(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Ly(t,e,n){var i=j({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),$(r,n),new $l(i)):yy(t.replace("path://",""),i,n,"center")}function Oy(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Py(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Py(t,e,n,i,r,o,a,s){var l,u=n-t,c=i-e,h=a-r,d=s-o,p=Ny(h,d,u,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,m=Ny(f,g,u,c)/p;if(m<0||m>1)return!1;var y=Ny(f,g,h,d)/p;return!(y<0||y>1)}function Ny(t,e,n,i){return t*i-n*e}function Ry(t,e,n,i,r){return null==e||(ut(e)?zy[0]=zy[1]=zy[2]=zy[3]=e:(zy[0]=e[0],zy[1]=e[1],zy[2]=e[2],zy[3]=e[3]),i&&(zy[0]=$o(0,zy[0]),zy[1]=$o(0,zy[1]),zy[2]=$o(0,zy[2]),zy[3]=$o(0,zy[3])),n&&(zy[0]=-zy[0],zy[1]=-zy[1],zy[2]=-zy[2],zy[3]=-zy[3]),By(t,zy,"x","width",3,1,r&&r[0]||0),By(t,zy,"y","height",0,2,r&&r[1]||0)),t}var zy=[0,0,0,0];function By(t,e,n,i,r,o,a){var s=e[o]+e[r],l=t[i];t[i]+=s,a=$o(0,jo(a,l)),t[i]<a?(t[i]=a,t[n]+=e[r]>=0?-e[r]:e[o]>=0?l+e[o]:Uo(s)>1e-8?(l-a)*e[r]/s:0):t[n]-=e[r]}function Vy(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=st(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&K(nt(l),(function(t){Nt(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=yu(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:$({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function Hy(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Fy(t,e){if(t)if(ot(t))for(var n=0;n<t.length;n++)Hy(t[n],e);else Hy(t,e)}function Wy(t){return!t||Uo(t[1])<Gy&&Uo(t[2])<Gy||Uo(t[0])<Gy&&Uo(t[3])<Gy}var Gy=1e-5;function jy(t,e){return t?mn.copy(t,e):e.clone()}function $y(t,e){return e?We(t||[1,0,0,1,0,0],e):void 0}function Uy(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function qy(t){var e=-1/0,n=1/0;function i(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)r(t.states[e[n]]);r(t)}}function r(t){if(t){var i=t.z2;i>e&&(e=i),i<n&&(n=i)}}return Hy(t,(function(t){i(t),i(t.getTextContent()),i(t.getTextGuideLine())})),n>e&&(n=e=0),{min:n,max:e}}function Yy(t,e,n){Xy(t,e,n,-1/0)}function Xy(t,e,n,i){if(t.ignoreModelZ)return i;var r=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var a=t.childrenRef(),s=0;s<a.length;s++)i=$o(Xy(a[s],e,n,i),i);else t.z=e,t.zlevel=n,i=$o(t.z2||0,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var l=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+(l&&l.showAbove?1:-1))}return i}gy("circle",im),gy("ellipse",am),gy("sector",bm),gy("ring",Mm),gy("polygon",Dm),gy("polyline",Em),gy("rect",Ql),gy("line",Nm),gy("bezierCurve",Hm),gy("arc",Gm);var Zy=Pa(),Ky=Pg(),Jy=function(){function t(){this.group=new Ao,this.uid=oh("viewChart"),this.renderTask=Sf({plan:ev,reset:nv}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&tv(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&tv(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){Fy(this.group,t)},t.markUpdateMethod=function(t,e){Zy(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function Qy(t,e,n){t&&fc(t)&&("emphasis"===e?Yu:Xu)(t,n)}function tv(t,e,n){var i=Oa(t,e),r=e&&null!=e.highlightKey?function(t){var e=_u[t];return null==e&&xu<=32&&(e=_u[t]=xu++),e}(e.highlightKey):null;null!=i?K(wa(i),(function(e){Qy(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){Qy(t,n,r)}))}function ev(t){return Ky(t.model)}function nv(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&Zy(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),iv[l]}Xa(Jy),ts(Jy);var iv={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const rv=Jy;var ov="\0__throttleOriginMethod",av="\0__throttleRate",sv="\0__throttleType";function lv(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),o=this,a=t;var p=s||e,f=s||n;s=null,r=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function uv(t,e,n,i){var r=t[e];if(r){var o=r[ov]||r,a=r[sv];if(r[av]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=lv(o,n,"debounce"===i))[ov]=o,r[sv]=i,r[av]=n}return r}}function cv(t,e){var n=t[e];n&&n[ov]&&(n.clear&&n.clear(),t[e]=n[ov])}var hv=Pa(),dv={itemStyle:es(Qc,!0),lineStyle:es(Zc,!0)},pv={lineStyle:"stroke",itemStyle:"fill"};function fv(t,e){return t.visualStyleMapper||dv[e]||(console.warn("Unknown style type '"+e+"'."),dv.itemStyle)}function gv(t,e){return t.visualDrawType||pv[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var mv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=fv(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=gv(t,i),l=o[s],u=at(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||at(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||at(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=j({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},yv=new ih,vv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=fv(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){yv.option=n[i];var a=r(yv);j(t.ensureUniqueItemVisual(e,"style"),a),yv.option.decal&&(t.setItemVisual(e,"decal",yv.option.decal),yv.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},xv={performRawSeries:!0,overallReset:function(t){var e=Et();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),hv(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=hv(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=gv(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}},_v=Math.PI,bv=function(){function t(t,e,n,i){this._stageTaskMap=Et(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Et();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;K(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{});St(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}K(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){a(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,i.block);d.each((function(t){t.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Et(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Sf({plan:Tv,reset:Iv,count:kv}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||Sf({reset:wv});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Et(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,Sf({reset:Sv,onDirty:Cv})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}St(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(c=!1,K(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return at(t)&&(t={overallReset:t,seriesType:Ev(t)}),t.uid=oh("stageHandler"),e&&(t.visualType=e),t},t}();function wv(t){t.overallReset(t.ecModel,t.api,t.payload)}function Sv(t){return t.overallProgress&&Mv}function Mv(){this.agent.dirty(),this.getDownstream().dirty()}function Cv(){this.agent&&this.agent.dirty()}function Tv(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Iv(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=wa(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?J(e,(function(t,e){return Av(e)})):Dv}var Dv=Av(0);function Av(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function kv(t){return t.data.count()}function Ev(t){Lv=null;try{t(Ov,Pv)}catch(t){}return Lv}var Lv,Ov={},Pv={};function Nv(t,e){for(var n in e.prototype)t[n]=Rt}Nv(Ov,mp),Nv(Pv,vp),Ov.eachSeriesByType=Ov.eachRawSeriesByType=function(t){Lv=t},Ov.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Lv=t.subType)};const Rv=bv;var zv,Bv=Pd.darkColor,Vv=Bv.background,Hv=function(){return{axisLine:{lineStyle:{color:Bv.axisLine}},splitLine:{lineStyle:{color:Bv.axisSplitLine}},splitArea:{areaStyle:{color:[Bv.backgroundTint,Bv.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Bv.axisMinorSplitLine}},axisLabel:{color:Bv.axisLabel},axisName:{}}},Fv={label:{color:Bv.secondary},itemStyle:{borderColor:Bv.borderTint},dividerLineStyle:{color:Bv.border}},Wv={darkMode:!0,color:Bv.theme,backgroundColor:Vv,axisPointer:{lineStyle:{color:Bv.border},crossStyle:{color:Bv.borderShade},label:{color:Bv.tertiary}},legend:{textStyle:{color:Bv.secondary},pageTextStyle:{color:Bv.tertiary}},textStyle:{color:Bv.secondary},title:{textStyle:{color:Bv.primary},subtextStyle:{color:Bv.quaternary}},toolbox:{iconStyle:{borderColor:Bv.accent50}},tooltip:{backgroundColor:Bv.neutral20,defaultBorderColor:Bv.border,textStyle:{color:Bv.tertiary}},dataZoom:{borderColor:Bv.accent10,textStyle:{color:Bv.tertiary},brushStyle:{color:Bv.backgroundTint},handleStyle:{color:Bv.neutral00,borderColor:Bv.accent20},moveHandleStyle:{color:Bv.accent40},emphasis:{handleStyle:{borderColor:Bv.accent50}},dataBackground:{lineStyle:{color:Bv.accent30},areaStyle:{color:Bv.accent20}},selectedDataBackground:{lineStyle:{color:Bv.accent50},areaStyle:{color:Bv.accent30}}},visualMap:{textStyle:{color:Bv.secondary},handleStyle:{borderColor:Bv.neutral30}},timeline:{lineStyle:{color:Bv.accent10},label:{color:Bv.tertiary},controlStyle:{color:Bv.accent30,borderColor:Bv.accent30}},calendar:{itemStyle:{color:Bv.neutral00,borderColor:Bv.neutral20},dayLabel:{color:Bv.tertiary},monthLabel:{color:Bv.secondary},yearLabel:{color:Bv.secondary}},matrix:{x:Fv,y:Fv,backgroundColor:{borderColor:Bv.axisLine},body:{itemStyle:{borderColor:Bv.borderTint}}},timeAxis:Hv(),logAxis:Hv(),valueAxis:Hv(),categoryAxis:Hv(),line:{symbol:"circle"},graph:{color:Bv.theme},gauge:{title:{color:Bv.secondary},axisLine:{lineStyle:{color:[[1,Bv.neutral05]]}},axisLabel:{color:Bv.axisLabel},detail:{color:Bv.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Bv.background}},radar:(zv=Hv(),zv.axisName={color:Bv.axisLabel},zv.axisLine.lineStyle.color=Bv.neutral20,zv),treemap:{breadcrumb:{itemStyle:{color:Bv.neutral20,textStyle:{color:Bv.secondary}},emphasis:{itemStyle:{color:Bv.neutral30}}}},sunburst:{itemStyle:{borderColor:Bv.background}},map:{itemStyle:{borderColor:Bv.border,areaColor:Bv.neutral10},label:{color:Bv.tertiary},emphasis:{label:{color:Bv.primary},itemStyle:{areaColor:Bv.highlight}},select:{label:{color:Bv.primary},itemStyle:{areaColor:Bv.highlight}}},geo:{itemStyle:{borderColor:Bv.border,areaColor:Bv.neutral10},emphasis:{label:{color:Bv.primary},itemStyle:{areaColor:Bv.highlight}},select:{label:{color:Bv.primary},itemStyle:{color:Bv.highlight}}}};Wv.categoryAxis.splitLine.show=!1;const Gv=Wv;var jv=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(st(t)){var r=Ya(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};K(t,(function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),$v=["symbol","symbolSize","symbolRotate","symbolOffset"],Uv=$v.concat(["symbolKeepAspect"]),qv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<$v.length;a++){var s=$v[a],l=t.get(s);at(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(j({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=nt(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}},Yv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<Uv.length;i++){var r=Uv[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function Xv(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Zv(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Kv(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}function Jv(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}K([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,r){e=j({},e),r.dispatchAction(j(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}function Qv(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=Oa(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:ot(u)?l.getName(u[0]):l.getName(u),selected:st(i)?i:j({},i)})}}))}function tx(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var ex=Math.round(9*Math.random()),nx="function"==typeof Object.defineProperty,ix=function(){function t(){this._id="__ec_inner_"+ex++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return nx?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}();const rx=ix;var ox=Bl.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),ax=Bl.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),sx=Bl.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*p,l+s+d*p,n-c,l+s),t.closePath()}}),lx=Bl.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),ux={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},cx={};K({line:Nm,rect:Ql,roundRect:Ql,square:Ql,circle:im,diamond:ax,pin:sx,arrow:lx,triangle:ox},(function(t,e){cx[e]=new t}));var hx=Bl.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=go(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=cx[i];r||(r=cx[i="rect"]),ux[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function dx(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||Pd.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function px(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?vy(t.slice(8),new mn(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?yy(t.slice(7),{},new mn(e,n,i,r),a?"center":"cover"):new hx({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=dx,o&&s.setColor(o),s}function fx(t){return ot(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function gx(t,e){if(null!=t)return ot(t)||(t=[t,t]),[Yo(t[0],e[0])||0,Yo(xt(t[1],t[0]),e[1])||0]}function mx(t){return isFinite(t)}function yx(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=mx(a)?a:.5,s=mx(s)?s:.5,l=l>=0&&mx(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=mx(i)?i:0,r=mx(r)?r:1,o=mx(o)?o:0,a=mx(a)?a:0,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function vx(t){return parseInt(t,10)}function xx(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||vx(s[i])||vx(t.style[i]))-(vx(s[o])||0)-(vx(s[a])||0)|0}function _x(t){var e,n,i=t.style,r=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:ut(e)?[e]:ot(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=J(r,(function(t){return t/a})),o/=a)}return[r,o]}var bx=new yl(!0);function Sx(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Mx(t){return"string"==typeof t&&"none"!==t}function Cx(t){var e=t.fill;return null!=e&&"none"!==e}function Tx(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Ix(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Dx(t,e,n){var i=as(e.image,e.__image,n);if(ls(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*zt),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var Ax=["shadowBlur","shadowOffsetX","shadowOffsetY"],kx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ex(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){Bx(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?As.opacity:a}(i||e.blend!==n.blend)&&(o||(Bx(t,r),o=!0),t.globalCompositeOperation=e.blend||As.blend);for(var s=0;s<Ax.length;s++){var l=Ax[s];(i||e[l]!==n[l])&&(o||(Bx(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(Bx(t,r),o=!0),t.shadowColor=e.shadowColor||As.shadowColor),o}function Lx(t,e,n,i,r){var o=Vx(e,r.inHover),a=i?null:n&&Vx(n,r.inHover)||{};if(o===a)return!1;var s=Ex(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Bx(t,r),s=!0),Mx(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Bx(t,r),s=!0),Mx(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Bx(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Bx(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<kx.length;u++){var c=kx[u],h=c[0];(i||o[h]!==a[h])&&(s||(Bx(t,r),s=!0),t[h]=o[h]||c[1])}return s}function Ox(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}var Px=1,Nx=2,Rx=3,zx=4;function Bx(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Vx(t,e){return e&&t.__hoverStyle||t.style}function Hx(t,e){Fx(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Fx(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~On,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a)||(a&&a.length&&(Bx(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Bx(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),Ox(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,h,d=e instanceof Bl&&e.autoBatch&&function(t){var e=Cx(t),n=Sx(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(c=r,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(Bx(t,n),Ox(t,e)):d||Bx(t,n);var p=Vx(e,n.inHover);e instanceof Bl?(n.lastDrawType!==Px&&(l=!0,n.lastDrawType=Px),Lx(t,e,u,l,n),d&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o=Sx(n),a=Cx(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||bx,h=e.__dirty;if(!i){var d=n.fill,p=n.stroke,f=a&&!!d.colorStops,g=o&&!!p.colorStops,m=a&&!!d.image,y=o&&!!p.image,v=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(v=h?yx(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=v),g&&(x=h?yx(t,p,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),m&&(_=h||!e.__canvasFillPattern?Dx(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(b=h||!e.__canvasStrokePattern?Dx(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),f?t.fillStyle=v:m&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=x:y&&(b?t.strokeStyle=b:o=!1)}var S,M,C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(r=_x(e))[0],M=r[1]);var T=!0;(u||h&Pn)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),T=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=M),i||(n.strokeFirst?(o&&Ix(t,n),a&&Tx(t,n)):(a&&Tx(t,n),o&&Ix(t,n))),S&&t.setLineDash([])}(t,e,p,d),d&&(n.batchFill=p.fill||"",n.batchStroke=p.stroke||"")):e instanceof Fl?(n.lastDrawType!==Rx&&(l=!0,n.lastDrawType=Rx),Lx(t,e,u,l,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||S,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(i=_x(e))[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Sx(n)&&t.strokeText(r,n.x,n.y),Cx(n)&&t.fillText(r,n.x,n.y)):(Cx(n)&&t.fillText(r,n.x,n.y),Sx(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}(t,e,p)):e instanceof $l?(n.lastDrawType!==Nx&&(l=!0,n.lastDrawType=Nx),function(t,e,n,i,r){Ex(t,Vx(e,r.inHover),n&&Vx(n,r.inHover),i,r)}(t,e,u,l,n),function(t,e,n){var i=e.__image=as(n.image,e.__image,e,e.onload);if(i&&ls(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),d=s-(c=n.sy);t.drawImage(i,u,c,h,d,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,p)):e.getTemporalDisplayables&&(n.lastDrawType!==zx&&(l=!0,n.lastDrawType=zx),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o<a;o++)(c=i[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Fx(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c;for(var l=0,u=r.length;l<u;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Fx(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),d&&i&&Bx(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var Wx=new rx,Gx=new vi(100),jx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function $x(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&Wx.delete(t);var o=Wx.get(t);if(o)return o;var a=$(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,l=0;l<jx.length;++l){var u=a[jx[l]];if(null!=u&&!ot(u)&&!st(u)&&!ut(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(r?"-svg":"");var c=Gx.get(e);c&&(r?t.svgElement=c:t.image=c)}var h,d=qx(a.dashArrayX),p=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(ut(t)){var e=Math.ceil(t);return[e,e]}var n=J(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),f=Ux(a.symbol),g=J(d,(function(t){return Yx(t)})),m=Yx(p),y=!r&&C.createCanvas(),v=r&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=va(t,g[e]);var i=1;for(e=0,n=f.length;e<n;++e)i=va(i,f[e].length);t*=i;var r=m*g.length*f.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();y&&(y.width=x.width*n,y.height=x.height*n,h=y.getContext("2d")),function(){h&&(h.clearRect(0,0,y.width,y.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(t<=0))for(var o=-m,s=0,l=0,u=0;o<x.height;){if(s%2==0){for(var c=l/2%f.length,g=0,_=0,b=0;g<2*x.width;){var w=0;for(e=0;e<d[u].length;++e)w+=d[u][e];if(w<=0)break;if(_%2==0){var S=.5*(1-a.symbolSize),M=g+d[u][_]*S,C=o+p[s]*S,T=d[u][_]*a.symbolSize,I=p[s]*a.symbolSize,D=b/2%f[c].length;A(M,C,T,I,f[c][D])}g+=d[u][_],++b,++_===d[u].length&&(_=0)}++u===d.length&&(u=0)}o+=p[s],++l,++s===p.length&&(s=0)}function A(t,e,o,s,l){var u=r?1:n,c=px(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var d=i.painter.renderOneToVNode(c);d&&v.children.push(d)}else Hx(h,c)}}(),s&&Gx.put(e,y||v),t.image=y,t.svgElement=v,t.svgWidth=x.width,t.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,Wx.set(t,s),t.dirty=!1,s}function Ux(t){if(!t||0===t.length)return[["rect"]];if(st(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!st(t[n])){e=!1;break}if(e)return Ux([t]);var i=[];for(n=0;n<t.length;++n)st(t[n])?i.push([t[n]]):i.push(t[n]);return i}function qx(t){if(!t||0===t.length)return[[0,0]];if(ut(t))return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if(!ut(t[n])){e=!1;break}if(e)return qx([t]);var i=[];for(n=0;n<t.length;++n)if(ut(t[n])){var r=Math.ceil(t[n]);i.push([r,r])}else(r=J(t[n],(function(t){return Math.ceil(t)}))).length%2==1?i.push(r.concat(r)):i.push(r);return i}function Yx(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}const Xx=new me;var Zx={};function Kx(t){return Zx[t]}var Jx={};function Qx(t,e){Jx[t]=e}var t_="6.0.0",e_={zrender:"6.0.0"},n_=2e3,i_=1e3,r_=2e3,o_=3e3,a_=4500,s_={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:i_,PROGRESSIVE_LAYOUT:1100,GLOBAL:r_,CHART:o_,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:a_,ARIA:6e3,DECAL:7e3}},l_="__flagInMainProcess",u_="__mainProcessVersion",c_="__pendingUpdate",h_="__needsUpdateStatus",d_=/^[a-zA-Z0-9_]+$/,p_="__connectUpdateStatus";function f_(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return m_(this,t,e);F_(this.id)}}function g_(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return m_(this,t,e)}}function m_(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),me.prototype[e].apply(t,n)}var y_,v_,x_,__,b_,w_,S_,M_,C_,T_,I_,D_,A_,k_,E_,L_,O_,P_,N_,R_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(me),z_=R_.prototype;z_.on=g_("on"),z_.off=g_("off");var B_=function(t){function e(e,n,i){var r=t.call(this,new jv)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},r._dom=e,r[u_]=1,i.ssr&&Ho((function(t){var e=yu(t),n=e.dataIndex;if(null!=n){var i=Et();return i.set("series_index",e.seriesIndex),i.set("data_index",n),e.ssrType&&i.set("ssr_type",e.ssrType),i}}));var o=r._zr=Po(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:xt(i.useDirtyRect,!1),useCoarsePointer:xt(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=lv(it(o.flush,o),17),r._updateTheme(n),r._locale=function(t){if(st(t)){var e=ch[t.toUpperCase()]||{};return t===sh||t===lh?F(e):W(F(e),F(ch[uh]),!1)}return W(F(t),F(ch[uh]),!1)}(i.locale||dh),r._coordSysMgr=new cd;var a=r._api=E_(r);function s(t,e){return t.__prio-e.__prio}return Ln(q_,s),Ln($_,s),r._scheduler=new Rv(r,a,$_,q_),r._messageCenter=new R_,r._initEvents(),r.resize=it(r.resize,r),o.animation.on("frame",r._onframe,r),T_(o,r),I_(o,r),Tt(r),r}return m(e,t),e.prototype._onframe=function(){if(!this._disposed){P_(this);var t=this._scheduler;if(this[c_]){var e=this[c_].silent;this[l_]=!0,N_(this);try{y_(this),__.update.call(this,null,this[c_].updateParams)}catch(t){throw this[l_]=!1,this[c_]=null,t}this._zr.flush(),this[l_]=!1,this[c_]=null,M_.call(this,e),C_.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),w_(this,i),t.performVisualTasks(i),k_(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[l_])if(this._disposed)F_(this.id);else{var i,r,o;if(ct(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[l_]=!0,N_(this),!this._model||e){var a=new wp(this._api),s=this._theme,l=this._model=new mp;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},U_);var u={seriesTransition:o,optionChanged:!0};if(n)this[c_]={silent:i,updateParams:u},this[l_]=!1,this.getZr().wakeUp();else{try{y_(this),__.update.call(this,null,u)}catch(t){throw this[c_]=null,this[l_]=!1,t}this._ssr||this._zr.flush(),this[c_]=null,this[l_]=!1,M_.call(this,i),C_.call(this,i)}}},e.prototype.setTheme=function(t,e){if(!this[l_])if(this._disposed)F_(this.id);else{var n=this._model;if(n){var i=e&&e.silent,r=null;this[c_]&&(null==i&&(i=this[c_].silent),r=this[c_].updateParams,this[c_]=null),this[l_]=!0,N_(this);try{this._updateTheme(t),n.setTheme(this._theme),y_(this),__.update.call(this,{type:"setTheme"},r)}catch(t){throw this[l_]=!1,t}this[l_]=!1,M_.call(this,i),C_.call(this,i)}}},e.prototype._updateTheme=function(t){st(t)&&(t=Y_[t]),t&&((t=F(t))&&Fp(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||x.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr;return K(t.storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;K(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return K(i,(function(t){t.group.ignore=!1})),o}F_(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(K_[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();K(Z_,(function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(F(t)),p=o.getDom().getBoundingClientRect();a=i(p.left,a),s=i(p.top,s),l=r(p.right,l),u=r(p.bottom,u),c.push({dom:d,left:p.left,top:p.top})}}));var d=(l*=h)-(a*=h),p=(u*=h)-(s*=h),f=C.createCanvas(),g=Po(f,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:p}),e){var m="";return K(c,(function(t){var e=t.left-a,n=t.top-s;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Ql({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),K(c,(function(t){var e=new $l({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}F_(this.id)},e.prototype.convertToPixel=function(t,e,n){return b_(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return b_(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return b_(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return K(Ra(this._model,t),(function(t,i){i.indexOf("Models")>=0&&K(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}}),this)}),this),!!n;F_(this.id)},e.prototype.getVisual=function(t,e){var n=Ra(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?Xv(i,r,e):Zv(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;K(H_,(function(e){var n=function(n){var i,r=t.getModel(),o=n.target;if("globalout"===e?i={}:o&&tx(o,(function(t){var e=yu(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return i=j({},e.eventData),!0}),!0),i){var a=i.componentType,s=i.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=i.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&t["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:l,view:u},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}));var e=this._messageCenter;K(j_,(function(n,i){e.on(i,(function(e){t.trigger(i,e)}))})),function(t,e,n){t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(Qv("map","selectchanged",e,i,t),Qv("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Qv("map","selected",e,i,t),Qv("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Qv("map","unselected",e,i,t),Qv("pie","unselected",e,i,t))}))}(e,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?F_(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)F_(this.id);else{this._disposed=!0,this.getDom()&&Fa(this.getDom(),tb,"");var t=this,e=t._api,n=t._model;K(t._componentsViews,(function(t){t.dispose(n,e)})),K(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Z_[t.id]}},e.prototype.resize=function(t){if(!this[l_])if(this._disposed)F_(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[c_]&&(null==i&&(i=this[c_].silent),n=!0,this[c_]=null),this[l_]=!0,N_(this);try{n&&y_(this),__.update.call(this,{type:"resize",animation:j({duration:0},t&&t.animation)})}catch(t){throw this[l_]=!1,t}this[l_]=!1,M_.call(this,i),C_.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)F_(this.id);else if(ct(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),X_[t]){var n=X_[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?F_(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=j({},t);return e.type=G_[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)F_(this.id);else if(ct(e)||(e={silent:!!e}),W_[t.type]&&this._model)if(this[l_])this._pendingActions.push(t);else{var n=e.silent;S_.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&x.browser.weChat&&this._throttledZrFlush(),M_.call(this,n),C_.call(this,n)}},e.prototype.updateLabelLayout=function(){Xx.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)F_(this.id);else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=Uy(t);e.eachRendered((function(t){return Yy(t,n.z,n.zlevel),!0}))}}function i(t,e){e.eachRendered((function(t){if(!wc(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function r(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(wc(t))return;if(t instanceof Bl&&function(t){var e=bu(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}y_=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),v_(t,!0),v_(t,!1),e.plan()},v_=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=Ya(t.type);(c=new(e?Og.getClass(h.main,h.sub):rv.getClass(h.sub))).init(n,s),o[u]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}for(e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u),l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},x_=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,u=n.excludeSeriesId;null!=u&&(l=Et(),K(wa(u),(function(t){var e=ka(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){if(!l||null==l.get(e.id))if(mc(n))if(e instanceof Eg)n.type!==Iu||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=Oa(r,e);o=(ot(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=yu(a);nc(i,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&nc(i,c,h,n)}}}(e,n,t._api);else{var i=rc(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;n.type===Iu&&r&&!n.notBlur&&ic(e.mainType,e.componentIndex,t._api),o&&K(o,(function(t){n.type===Iu?Yu(t):Xu(t)}))}else gc(n)&&e instanceof Eg&&(function(t,e){if(gc(e)){var n=e.dataType,i=Oa(t.getData(n),e);ot(i)||(i=[i]),t[e.type===Eu?"toggleSelect":e.type===Au?"select":"unselect"](i,n)}}(e,n,t._api),oc(e),O_(t))}),t),o&&o.eachComponent(s,(function(e){l&&null!=l.get(e.id)||c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else K([].concat(t._componentsViews).concat(t._chartsViews),c);function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},__={prepareAndUpdate:function(t){y_(this),__.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),w_(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e);var l=i.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var u=i.get("darkMode");null!=u&&"auto"!==u&&o.setDarkMode(u),D_(this,i,r,e,n),Xx.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=Et();i.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),k_(this,i,r,e,{},a),Xx.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),rv.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),D_(this,n,this._api,e,{}),Xx.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries((function(t){t.getData().clearAllVisual()})),rv.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent((function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}})),i.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)})),Xx.trigger("afterupdate",i,this._api))},updateLayout:function(t){__.update.call(this,t)}},b_=function(t,e,n,i,r){if(t._disposed)F_(t.id);else for(var o,a=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=Ra(a,n),u=0;u<s.length;u++){var c=s[u];if(c[e]&&null!=(o=c[e](a,l,i,r)))return o}},w_=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},S_=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=W_[r],s=(a.update||"update").split(":"),l=s.pop(),u=null!=s[0]&&Ya(s[0]);this[l_]=!0,N_(this);var c=[t],h=!1;t.batch&&(h=!0,c=J(t.batch,(function(e){return(e=$(j({},e),t)).batch=null,e})));var d,p=[],f=[],g=a.nonRefinedEventType,m=gc(t),y=mc(t);if(y&&ec(this._api),K(c,(function(e){var r=a.action(e,i,n._api);if(a.refineEvent?f.push(r):d=r,(d=d||j({},e)).type=g,p.push(d),y){var o=za(t),s=o.queryOptionMap,c=o.mainTypeSpecified?s.keys()[0]:"series";x_(n,l,e,c),O_(n)}else m?(x_(n,l,e,"series"),O_(n)):u&&x_(n,l,e,u.main,u.sub)})),"none"!==l&&!y&&!m&&!u)try{this[c_]?(y_(this),__.update.call(this,t),this[c_]=null):__[l].call(this,t)}catch(t){throw this[l_]=!1,t}if(d=h?{type:g,escapeConnect:o,batch:p}:p[0],this[l_]=!1,!e){var v=void 0;if(a.refineEvent){var x=a.refineEvent(f,t,i,this._api).eventContent;St(ct(x)),(v=$({type:a.refinedEventType},x)).fromAction=t.type,v.fromActionPayload=t,v.escapeConnect=!0}var _=this._messageCenter;_.trigger(d.type,d),v&&_.trigger(v.type,v)}},M_=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();S_.call(this,n,t)}},C_=function(t){!t&&this.trigger("updated")},T_=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[c_]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},I_=function(t,e){t.on("mouseover",(function(t){var n=tx(t.target,fc);n&&(function(t,e,n){var i=yu(t),r=rc(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&ic(i.componentMainType,i.componentIndex,n),K(o,(function(t){return Uu(t,e)}))):(nc(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&ic(i.componentMainType,i.componentIndex,n),Uu(t,e))}(n,t,e._api),O_(e))})).on("mouseout",(function(t){var n=tx(t.target,fc);n&&(function(t,e,n){ec(n);var i=yu(t),r=rc(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?K(r,(function(t){return qu(t,e)})):qu(t,e)}(n,t,e._api),O_(e))})).on("click",(function(t){var n=tx(t.target,(function(t){return null!=yu(t).dataIndex}),!0);if(n){var i=n.selected?"unselect":"select",r=yu(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}}))},D_=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),i){var r,o,a=e.concat(n);Ln(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),K(a,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}(e),A_(t,e,n,i,r),K(t._chartsViews,(function(t){t.__alive=!1})),k_(t,e,n,i,r),K(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},A_=function(t,e,o,a,s,l){K(l||t._componentsViews,(function(t){var s=t.__model;i(0,t),t.render(s,e,o,a),n(s,t),r(s,t)}))},k_=function(t,e,o,a,s,l){var u=t._scheduler;s=j(s||{},{updatedSeries:e.getSeries()}),Xx.trigger("series:beforeupdate",e,o,s);var c=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(0,n),l&&l.get(e.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}(e,n),oc(e)})),u.unfinished=c||u.unfinished,Xx.trigger("series:layoutlabels",e,o,s),Xx.trigger("series:transition",e,o,s),e.eachSeries((function(e){var i=t._chartsMap[e.__viewId];n(e,i),r(e,i)})),function(t,e){var n=t._zr.storage,i=0;n.traverse((function(t){t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!x.node&&!x.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),Xx.trigger("series:afterupdate",e,o,s)},O_=function(t){t[h_]=!0,t.getZr().wakeUp()},N_=function(t){t[u_]=(t[u_]+1)%1e3},P_=function(t){t[h_]&&(t.getZr().storage.traverse((function(t){wc(t)||e(t)})),t[h_]=!1)},E_=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return m(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Yu(e,n),O_(t)},n.prototype.leaveEmphasis=function(e,n){Xu(e,n),O_(t)},n.prototype.enterBlur=function(e){Zu(e),O_(t)},n.prototype.leaveBlur=function(e){Ku(e),O_(t)},n.prototype.enterSelect=function(e){Ju(e),O_(t)},n.prototype.leaveSelect=function(e){Qu(e),O_(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n.prototype.getMainProcessVersion=function(){return t[u_]},n}(vp))(t)},L_=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][p_]=e}K(G_,(function(n,i){t._messageCenter.on(i,(function(n){if(K_[t.group]&&0!==t[p_]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];K(Z_,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,0),K(r,(function(t){1!==t[p_]&&t.dispatchAction(i)})),e(r,2)}}))}))}}(),e}(me),V_=B_.prototype;V_.on=f_("on"),V_.off=f_("off"),V_.one=function(t,e,n){var i=this;this.on.call(this,t,(function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)}),n)};var H_=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function F_(t){}var W_={},G_={},j_={},$_=[],U_=[],q_=[],Y_={},X_={},Z_={},K_={},J_=+new Date-0,Q_=+new Date-0,tb="_echarts_instance_";function eb(t,e,n){var i=!(n&&n.ssr);if(i){var r=ab(t);if(r)return r}var o=new B_(t,e,n);return o.id="ec_"+J_++,Z_[o.id]=o,i&&Fa(t,tb,o.id),L_(o),Xx.trigger("afterinit",o),o}function nb(t){if(ot(t)){var e=t;t=null,K(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+Q_++,K(e,(function(e){e.group=t}))}return K_[t]=!0,t}function ib(t){K_[t]=!1}var rb=ib;function ob(t){st(t)?t=Z_[t]:t instanceof B_||(t=ab(t)),t instanceof B_&&!t.isDisposed()&&t.dispose()}function ab(t){return Z_[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,tb)]}function sb(t){return Z_[t]}function lb(t,e){Y_[t]=e}function ub(t){q(U_,t)<0&&U_.push(t)}function cb(t,e){bb($_,t,e,n_)}function hb(t){pb("afterinit",t)}function db(t){pb("afterupdate",t)}function pb(t,e){Xx.on(t,e)}function fb(t,e,n){var i,r,o,a,s;function l(t){return t.toLowerCase()}at(e)&&(n=e,e=""),ct(t)?(i=t.type,r=t.event,a=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),o=t.refineEvent):(i=t,r=e),r=l(r||i);var u=o?l(i):r;W_[i]||(St(d_.test(i)&&d_.test(r)),o&&St(r!==i),W_[i]={actionType:i,refinedEventType:r,nonRefinedEventType:u,update:a,action:n,refineEvent:o},j_[r]=1,o&&s&&(j_[u]=1),G_[u]=i)}function gb(t,e){cd.register(t,e)}function mb(t){var e=cd.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function yb(t,e){Qx(t,e)}function vb(t,e){bb(q_,t,e,i_,"layout")}function xb(t,e){bb(q_,t,e,o_,"visual")}var _b=[];function bb(t,e,n,i,r){if((at(e)||ct(e))&&(n=e,e=i),!(q(_b,n)>=0)){_b.push(n);var o=Rv.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function wb(t,e){X_[t]=e}function Sb(t){T({createCanvas:t})}function Mb(t,e,n){var i=Kx("registerMap");i&&i(t,e,n)}function Cb(t){var e=Kx("getMap");return e&&e(t)}var Tb=function(t){var e=(t=F(t)).type;e||af("");var n=e.split(":");2!==n.length&&af("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Vf.set(e,t)};function Ib(t,e,n,i){return{eventContent:{selected:ac(n),isFromClick:e.isFromClick||!1}}}xb(r_,mv),xb(a_,vv),xb(a_,xv),xb(r_,qv),xb(a_,Yv),xb(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=$x(n,e))}));var r=i.getVisual("decal");r&&(i.getVisual("style").decal=$x(r,e))}}))})),ub(Fp),cb(900,(function(t){var e=Et();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.push(o)}})),e.each((function(t){0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),K(t,(function(e,n){e.data.setCalculationInfo("stackedOnSeries",n>0?t[n-1].seriesModel:null)})),function(t){K(t,(function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,d,p=a.get(e.stackedDimension,c);if(isNaN(p))return r;s?d=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=ia(p,y),f=y;break}}}return i[0]=p,i[1]=f,i}))}))}(t))}))})),wb("default",(function(t,e){$(e=e||{},{text:"loading",textColor:Pd.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Pd.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ao,i=new Ql({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new mu({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ql({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new Gm({shape:{startAngle:-_v/2,endAngle:-_v/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*_v/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*_v/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),fb({type:Iu,event:Iu,update:Iu},Rt),fb({type:Du,event:Du,update:Du},Rt),fb({type:Au,event:Lu,update:Au,action:Rt,refineEvent:Ib,publishNonRefinedEvent:!0}),fb({type:ku,event:Lu,update:ku,action:Rt,refineEvent:Ib,publishNonRefinedEvent:!0}),fb({type:Eu,event:Lu,update:Eu,action:Rt,refineEvent:Ib,publishNonRefinedEvent:!0}),lb("default",{}),lb("dark",Gv);var Db={},Ab=[],kb={registerPreprocessor:ub,registerProcessor:cb,registerPostInit:hb,registerPostUpdate:db,registerUpdateLifecycle:pb,registerAction:fb,registerCoordinateSystem:gb,registerLayout:vb,registerVisual:xb,registerTransform:Tb,registerLoading:wb,registerMap:Mb,registerImpl:function(t,e){Zx[t]=e},PRIORITY:s_,ComponentModel:Ad,ComponentView:Og,SeriesModel:Eg,ChartView:rv,registerComponentModel:function(t){Ad.registerClass(t)},registerComponentView:function(t){Og.registerClass(t)},registerSeriesModel:function(t){Eg.registerClass(t)},registerChartView:function(t){rv.registerClass(t)},registerCustomSeries:function(t,e){Qx(t,e)},registerSubTypeDefaulter:function(t,e){Ad.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Bo(t,e)}};function Eb(t){ot(t)?K(t,(function(t){Eb(t)})):q(Ab,t)>=0||(Ab.push(t),at(t)&&(t={install:t}),t.install(kb))}function Lb(t){return null==t?0:t.length||1}function Ob(t){return t}var Pb=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Ob,this._newKeyGetter=i||Ob,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=Lb(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=Lb(l),h=Lb(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=Lb(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=Lb(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}();const Nb=Pb;var Rb=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function zb(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Bb(t){return"category"===t?"ordinal":"time"===t?"time":"float"}const Vb=function(t){this.otherDims={},null!=t&&j(this,t)};var Hb=Pa(),Fb={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Wb=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=$b(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return xt(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Xp(this.source),n=!Ub(t),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=Fb[l]||"f",u&&(i+=u.uid),i+="$"}var d=this.source;return{dimensions:r,hash:[d.seriesLayoutBy,d.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function Gb(t){return t instanceof Wb}function jb(t){for(var e=Et(),n=0;n<(t||[]).length;n++){var i=t[n],r=ct(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function $b(t){var e=Hb(t);return e.dimNameMap||(e.dimNameMap=jb(t.dimensionsDefine))}function Ub(t){return t>30}var qb,Yb,Xb,Zb,Kb,Jb,Qb,tw=ct,ew=J,nw="undefined"==typeof Int32Array?Array:Int32Array,iw=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],rw=["_approximateExtent"],ow=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i=!1;Gb(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=st(c)?new Vb({name:c}):c instanceof Vb?c:new Vb(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(d),r[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]);var f=u;ut(h.storeDimIndex)&&(f=h.storeDimIndex),0===p.itemName&&(this._nameDimIdx=f),0===p.itemId&&(this._idDimIdx=f),i&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=Et();K(o,(function(t){g.set(r[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(ut(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof Jf&&(i=t),!i){var o=this.dimensions,a=Gp(t)||Z(t)?new sf(t,o.length):t;i=new Jf;var s=ew(o,(function(t){return{type:r._dimInfos[t].type,property:t}}));i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(t,e){var n={},i=n.encode={},r=Et(),o=[],a=[],s={};K(t.dimensions,(function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){var c=l.coordDimIndex;zb(i,u)[c]=e,l.isExtraCoord||(r.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),zb(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}Hd.each((function(t,e){var n=zb(i,e),r=l.otherDims[e];null!=r&&!1!==r&&(n[r]=l.name)}))}));var l=[],u={};r.each((function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=J(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new Rb(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&Qb(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==$d&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===Fd&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&Ta(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=ka(l,null));var u=s.id;null==r[a]&&null!=u&&(r[a]=ka(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)Qb(this,a);qb(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){tw(t)?j(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=Xb(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return Yb(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return ot(t)?i.getValues(ew(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n&&n[e];return null==i||isNaN(i)?-1:i},t.prototype.each=function(t,e,n){at(t)&&(n=e,e=t,t=[]);var i=n||this,r=ew(Zb(t),this._getStoreDimIndex,this);this._store.each(r,i?it(e,i):e)},t.prototype.filterSelf=function(t,e,n){at(t)&&(n=e,e=t,t=[]);var i=n||this,r=ew(Zb(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?it(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=nt(t),r=[];return K(i,(function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){at(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=ew(Zb(t),this._getStoreDimIndex,this),a=Jb(this);return a._store=this._store.map(o,r?it(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=ew(Zb(t),this._getStoreDimIndex,this);this._store.modify(o,r?it(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=Jb(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.minmaxDownSample=function(t,e){var n=Jb(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=Jb(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new ih(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Nb(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return Yb(t,e)}),(function(t){return Yb(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},tw(t)?j(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(ot(r=this.getVisual(e))?r=r.slice():tw(r)&&(r=j({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,tw(e)?j(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){tw(t)?j(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?j(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;vu(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){K(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ew(this.dimensions,this._getDimInfo,this),this.hostModel)),Kb(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];at(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(bt(arguments)))})},t.internalField=(qb=function(t){var e=t._invertedIndicesMap;K(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new nw(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},Xb=function(t,e,n){return ka(t._getCategory(e,n),null)},Yb=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=Xb(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},Zb=function(t){return ot(t)||(t=null!=t?[t]:[]),t},Jb=function(e){var n=new t(e._schema?e._schema:ew(e.dimensions,e._getDimInfo,e),e.hostModel);return Kb(n,e),n},Kb=function(t,e){K(iw.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,K(rw,(function(n){t[n]=F(e[n])})),t._calculationInfo=j({},e._calculationInfo)},void(Qb=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=Xb(t,r,e)),null==s&&null!=o&&(i[e]=s=Xb(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}})),t}();const aw=ow;function sw(t,e){return lw(t,e).dimensions}function lw(t,e){Gp(t)||(t=$p(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=Et(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return K(e,(function(t){var e;ct(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Ub(a),l=i===t.dimensionsDefine,u=l?$b(t):jb(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=Et(c),d=new Uf(a),p=0;p<d.length;p++)d[p]=-1;function f(t){var e=d[t];if(e<0){var n=i[t],r=ct(n)?n:{name:n},a=new Vb,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return d[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(p=0;p<a;p++)f(p);h.each((function(t,e){var n=wa(t).slice();if(1===n.length&&!st(n[0])&&n[0]<0)h.set(e,!1);else{var i=h.set(e,[]);K(n,(function(t,n){var r=st(t)?u.get(t):t;null!=r&&r<a&&(i[n]=r,m(f(r),e,n))}))}}));var g=0;function m(t,e,n){null!=Hd.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}K(n,(function(t){var e,n,i,r;if(st(t))e=t,r={};else{e=(r=t).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=j({},r)).ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=wa(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}K(s,(function(t,o){var a=f(t);if(l&&null!=r.type&&(a.type=r.type),m($(a,r),e,o),null==a.name&&n){var s=n[o];!ct(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&$(a.otherDims,i)}))}}));var y=e.generateCoord,v=e.generateCoordCount,x=null!=v;v=y?v||1:0;var _=y||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)K(o,(function(t){b(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=uw(_,r,x),S.coordDimIndex=0,(!y||v<=0)&&(S.isExtraCoord=!0),v--),b(S),null!=S.type||tp(t,w)!==Xd.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=Et(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new Wb({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function uw(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var cw=function(t){this.coordSysDims=[],this.axisMap=Et(),this.categoryAxisMap=Et(),this.coordSysName=t},hw={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Ba).models[0],o=t.getReferringComponents("yAxis",Ba).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),dw(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),dw(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Ba).models[0];e.coordSysDims=["single"],n.set("single",r),dw(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Ba).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),dw(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),dw(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();K(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),dw(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))},matrix:function(t,e,n,i){var r=t.getReferringComponents("matrix",Ba).models[0];e.coordSysDims=["x","y"];var o=r.getDimensionModel("x"),a=r.getDimensionModel("y");n.set("x",o),n.set("y",a),i.set("x",o),i.set("y",a)}};function dw(t){return"category"===t.get("type")}function pw(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!Gb(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,c,h,d=!(!t||!t.get("stack"));if(K(i,(function(t,e){st(t)&&(i[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;K(i,(function(t){t.coordDim===p&&g++}));var m={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(m.storeDimIndex=o.ensureCalculationDimension(h,f),y.storeDimIndex=o.ensureCalculationDimension(c,f)),r.appendCalculationDimension(m),r.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function fw(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function gw(t,e){return fw(t,e)?t.getCalculationInfo("stackResultDimension"):e}const mw=function(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=$p(t)):o=(i=r.getSource()).sourceFormat===Fd;var a=function(t){var e=t.get("coordinateSystem"),n=new cw(e),i=hw[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=cd.get(i);return e&&e.coordSysDims&&(n=J(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=Bb(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=at(l)?l:l?rt(Kd,s,e):null,c=lw(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var i,r;return n&&K(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}(c.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(c),p=pw(e,{schema:c,store:d}),f=new aw(c,e);f.setCalculationInfo(p);var g=null!=h&&function(t){if(t.sourceFormat===Fd){var e=function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!ot(Ca(e))}}(i)?function(t,e,n,i){return i===h?n:this.defaultDimValueGetter(t,e,n,i)}:null;return f.hasItemOption=!1,f.initData(o?i:d,null,g),f};function yw(t){return"interval"===t.type||"log"===t.type}function vw(t){var e=Math.pow(10,ca(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Zo(n*e)}function xw(t){return Jo(t)+2}function _w(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function bw(t,e){return t>=e[0]&&t<=e[1]}var ww=function(){function t(){this.normalize=Sw,this.scale=Mw}return t.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=it(t.normalize,t),this.scale=it(t.scale,t)):(this.normalize=Sw,this.scale=Mw)},t}();function Sw(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Mw(t,e){return t*(e[1]-e[0])+e[0]}function Cw(t,e,n){var i=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/i,Math.log(n?e[1]:Math.max(0,e[1]))/i]}var Tw=function(){function t(t){this._calculator=new ww,this._setting=t||{},this._extent=[1/0,-1/0];var e=mh();e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},t.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},t.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(t){var e=mh();e&&this._innerSetBreak(e.parseAxisBreakOption(t,it(this.parse,this)))},t.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();ts(Tw);const Iw=Tw;var Dw=0,Aw=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Dw,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&J(i,kw);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!st(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Et(this.categories))},t}();function kw(t){return ct(t)&&null!=t.value?t.value:t+""}const Ew=Aw;var Lw=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Ew({})),ot(i)&&(i=new Ew({categories:J(i,(function(t){return ct(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return m(e,t),e.prototype.parse=function(t){return null==t?NaN:st(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return bw(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Iw);Iw.registerClass(Lw);const Ow=Lw;var Pw=Zo,Nw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return m(e,t),e.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},e.prototype.contain=function(t){return bw(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=xw(t)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=mh(),a=[];if(!e)return a;if("only_break"===t.breakTicks&&o)return o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a;n[0]<i[0]&&(t.expandToNicedExtent?a.push({value:Pw(i[0]-e,r)}):a.push({value:n[0]}));for(var s=function(t,n){return Math.round((n-t)/e)},l=i[0];l<=i[1];){if(a.push({value:l}),l=Pw(l+e,r),this._brkCtx){var u=this._brkCtx.calcNiceTickMultiple(l,s);u>=0&&(l=Pw(l+u*e,r))}if(a.length>0&&l===a[a.length-1].value)break;if(a.length>1e4)return[]}var c=a.length?a[a.length-1].value:i[1];return n[1]>c&&(t.expandToNicedExtent?a.push({value:Pw(c+e,r)}):a.push({value:n[1]})),o&&o.pruneTicksByBreak(t.pruneByBreak,a,this._brkCtx.breaks,(function(t){return t.value}),this._interval,this._extent),"none"!==t.breakTicks&&o&&o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),r=1;r<e.length;r++){var o=e[r],a=e[r-1];if(!a.break&&!o.break){for(var s=0,l=[],u=(o.value-a.value)/t,c=xw(u);s<t-1;){var h=Pw(a.value+(s+1)*u,c);h>i[0]&&h<i[1]&&l.push(h),s++}var d=mh();d&&d.pruneTicksByBreak("auto",l,this._getNonTransBreaks(),(function(t){return t}),this._interval,i),n.push(l)}}return n},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Jo(t.value)||0:"auto"===n&&(n=this._intervalPrecision),$h(Pw(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent.slice(),r=this._getExtentSpanWithBreaks();if(isFinite(r)){r<0&&(r=-r,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var o=function(t,e,n,i,r){var o={},a=o.interval=ha(e/n,!0);null!=i&&a<i&&(a=o.interval=i),null!=r&&a>r&&(a=o.interval=r);var s=o.intervalPrecision=xw(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),_w(t,0,e),_w(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(o.niceTickExtent=[Zo(Math.ceil(t[0]/a)*a,s),Zo(Math.floor(t[1]/a)*a,s)],t),o}(i,r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent.slice();if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this._innerSetExtent(e[0],e[1]),e=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval,o=this._intervalPrecision;t.fixMin||(e[0]=Pw(Math.floor(e[0]/r)*r,o)),t.fixMax||(e[1]=Pw(Math.ceil(e[1]/r)*r,o)),this._innerSetExtent(e[0],e[1])},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Iw);Iw.registerClass(Nw);const Rw=Nw;var zw="undefined"!=typeof Float32Array,Bw=zw?Float32Array:Array;function Vw(t){return ot(t)?zw?new Float32Array(t):t:new Bw(t)}var Hw="__ec_stack_";function Fw(t){return t.get("stack")||Hw+t.seriesIndex}function Ww(t){return t.dim+t.index}function Gw(t,e){var n=[];return e.eachSeriesByType(t,(function(t){Yw(t)&&n.push(t)})),n}function jw(t){var e=function(t){var e={};K(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[r]?e[r].push(u):e[r]=[u]}}));var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort((function(t,e){return t-e}));for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return K(t,(function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),c=Math.abs(u[1]-u[0]);i=s?l/c*s:l}else{var h=t.getData();i=Math.abs(o[1]-o[0])/h.count()}var d=Yo(t.get("barWidth"),i),p=Yo(t.get("barMaxWidth"),i),f=Yo(t.get("barMinWidth")||(Xw(t)?.5:1),i),g=t.get("barGap"),m=t.get("barCategoryGap"),y=t.get("defaultBarGap");n.push({bandWidth:i,barWidth:d,barMaxWidth:p,barMinWidth:f,barGap:g,barCategoryGap:m,defaultBarGap:y,axisKey:Ww(r),stackId:Fw(t)})})),$w(n)}function $w(t){var e={};K(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:t.defaultBarGap||0,stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return K(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=nt(i).length;o=Math.max(35-4*a,15)+"%"}var s=Yo(o,r),l=Yo(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),K(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width)i=t.width,e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--;else{var i=h;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,p=0;K(i,(function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;K(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function Uw(t,e){var n=Gw(t,e),i=jw(n);K(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=Fw(t),o=i[Ww(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function qw(t){return{seriesType:t,plan:Pg(),reset:function(t){if(Yw(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),c=fw(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),d=function(t,e){var n=e.model.get("startValue");return n||(n=0),e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))}(0,r),p=Xw(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=p&&Vw(3*r),u=p&&s&&Vw(3*r),v=p&&Vw(r),x=n.master.getRect(),_=h?x.width:x.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(c?g:o,i),M=b.get(a,i),C=d,T=void 0;c&&(T=+S-b.get(o,i));var I=void 0,D=void 0,A=void 0,k=void 0;if(h){var E=n.dataToPoint([S,M]);c&&(C=n.dataToPoint([T,M])[0]),I=C,D=E[1]+y,A=E[0]-C,k=m,Math.abs(A)<f&&(A=(A<0?-1:1)*f)}else E=n.dataToPoint([M,S]),c&&(C=n.dataToPoint([M,T])[1]),I=E[0]+y,D=C,A=m,k=E[1]-C,Math.abs(k)<f&&(k=(k<=0?-1:1)*f);p?(l[w]=I,l[w+1]=D,l[w+2]=h?A:k,u&&(u[w]=h?x.x:I,u[w+1]=h?D:x.y,u[w+2]=_),v[i]=i):e.setItemLayout(i,{x:I,y:D,width:A,height:k}),w+=3}p&&e.setLayout({largePoints:l,largeDataIndices:v,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function Yw(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Xw(t){return t.pipelineContext&&t.pipelineContext.large}var Zw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return m(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Dh(t.value,Sh[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ih(this._minLevelUnit))]||Sh.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if(st(n))o=n;else if(at(n)){var a={time:t.time,level:t.time.level},s=mh();s&&s.makeAxisLabelFormatterParamBreak(a,t.break),o=n(t.value,e,a)}else{var l=t.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var c=Ah(t.value,r);o=n[c][c][0]}}return Dh(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=this._extent,i=mh(),r=[];if(!e)return r;var o=this.getSetting("useUTC");if(i&&"only_break"===t.breakTicks)return mh().addBreaksToTicks(r,this._brkCtx.breaks,this._extent),r;var a=Ah(n[1],o);r.push({value:n[0],time:{level:0,upperTimeUnit:a,lowerTimeUnit:a}});var s=function(t,e,n,i,r,o){var a,s=Ch,l=0;function u(t,e,n,r,a,s,u){for(var c=function(t,e){var n=new Date(0);n[t](1);var i=n.getTime();n[t](1+e);var r=n.getTime()-i;return function(t,e){return Math.max(0,Math.round((e-t)/r))}}(a,t),h=e,d=new Date(h);h<n&&h<=i[1]&&(u.push({value:h}),!(l++>1e4));)if(d[a](d[r]()+t),h=d.getTime(),o){var p=o.calcNiceTickMultiple(h,c);p>0&&(d[a](d[r]()+p*t),h=d.getTime())}u.push({value:h,notAdd:!0})}function c(t,r,o){var a=[],s=!r.length;if(!Jw(Ih(t),i[0],i[1],n)){s&&(r=[{value:rS(i[0],t,n)},{value:i[1]}]);for(var l=0;l<r.length-1;l++){var c=r[l].value,h=r[l+1].value;if(c!==h){var d=void 0,p=void 0,f=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/vh/365)),p=Eh(n),f=Bh(n);break;case"half-year":case"quarter":case"month":d=tS(e),p=Lh(n),f=Vh(n);break;case"week":case"half-week":case"day":d=Qw(e),p=Oh(n),f=Hh(n);break;case"half-day":case"quarter-day":case"hour":d=eS(e),p=Ph(n),f=Fh(n);break;case"minute":d=nS(e,!0),p=Nh(n),f=Wh(n);break;case"second":d=nS(e,!1),p=Rh(n),f=Gh(n);break;case"millisecond":d=iS(e),p=zh(n),f=jh(n)}h>=i[0]&&c<=i[1]&&u(d,c,h,p,f,0,a),"year"===t&&o.length>1&&0===l&&o.unshift({value:o[0].value-d})}}for(l=0;l<a.length;l++)o.push(a[l])}}for(var h=[],d=[],p=0,f=0,g=0;g<s.length;++g){var m=Ih(s[g]);if((a=s[g])===Ih(a)&&(c(s[g],h[h.length-1]||[],d),m!==(s[g+1]?Ih(s[g+1]):null))){if(d.length){f=p,d.sort((function(t,e){return t.value-e.value}));for(var y=[],v=0;v<d.length;++v){var x=d[v].value;0!==v&&d[v-1].value===x||(y.push(d[v]),x>=i[0]&&x<=i[1]&&p++)}var _=r/e;if(p>1.5*_&&f>_/1.5)break;if(h.push(y),p>_||t===s[g])break}d=[]}}var b=tt(J(h,(function(t){return tt(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),w=[],S=b.length-1;for(g=0;g<b.length;++g)for(var M=b[g],C=0;C<M.length;++C){var T=Ah(M[C].value,n);w.push({value:M[C].value,time:{level:S-g,upperTimeUnit:T,lowerTimeUnit:T}})}w.sort((function(t,e){return t.value-e.value}));var I=[];for(g=0;g<w.length;++g)0!==g&&w[g].value===w[g-1].value||I.push(w[g]);return I}(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);r=r.concat(s);var l=Ah(n[1],o);r.push({value:n[1],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});var u=this.getSetting("useUTC"),c=Mh.length-1,h=0;return K(r,(function(t){c=Math.min(c,q(Mh,t.time.upperTimeUnit)),h=Math.max(h,t.time.level)})),i&&mh().pruneTicksByBreak(t.pruneByBreak,r,this._brkCtx.breaks,(function(t){return t.value}),this._approxInterval,this._extent),i&&"none"!==t.breakTicks&&mh().addBreaksToTicks(r,this._brkCtx.breaks,this._extent,(function(t){for(var e=Math.max(q(Mh,Ah(t.vmin,u)),q(Mh,Ah(t.vmax,u))),n=0,i=0;i<Mh.length;i++)if(!Jw(Mh[i],t.vmin,t.vmax,u)){n=i;break}var r=Math.min(n,c),o=Math.max(r,e);return{level:h,lowerTimeUnit:Mh[o],upperTimeUnit:Mh[r]}})),r},e.prototype.calcNiceExtent=function(t){var e=this.getExtent();if(e[0]===e[1]&&(e[0]-=vh,e[1]+=vh),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-vh}this._innerSetExtent(e[0],e[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var r=Kw.length,o=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(Kw,this._approxInterval,0,r),r-1);this._interval=Kw[o][1],this._intervalPrecision=xw(this._interval),this._minLevelUnit=Kw[Math.max(o-1,0)][0]},e.prototype.parse=function(t){return ut(t)?t:+la(t)},e.prototype.contain=function(t){return bw(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e}(Rw),Kw=[["second",1e3],["minute",6e4],["hour",yh],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",xh/2],["year",xh]];function Jw(t,e,n,i){return kh(new Date(e),t,i).getTime()===kh(new Date(n),t,i).getTime()}function Qw(t,e){return(t/=vh)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function tS(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function eS(t){return(t/=yh)>12?12:t>6?6:t>3.5?4:t>2?2:1}function nS(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function iS(t){return ha(t,!0)}function rS(t,e,n){var i=Math.max(0,q(Mh,e)-1);return kh(new Date(t),Mh[i],n).getTime()}Iw.registerClass(Zw);const oS=Zw;var aS=Zo,sS=Math.floor,lS=Math.ceil,uS=Math.pow,cS=Math.log,hS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Rw,e}return m(e,t),e.prototype.getTicks=function(e){e=e||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),r=t.prototype.getTicks.call(this,e),o=this.base,a=this._originalScale._innerGetBreaks(),s=mh();return J(r,(function(t){var e,r=t.value,l=null,u=uS(o,r);if(r===n[0]&&this._fixMin?l=i[0]:r===n[1]&&this._fixMax&&(l=i[1]),s){var c=s.getTicksLogTransformBreak(t,o,a,dS);e=c.vBreak,null==l&&(l=c.brkRoundingCriterion)}return null!=l&&(u=dS(u,l)),{value:u,break:e}}),this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(e,n){this._originalScale.setExtent(e,n);var i=Cw(this.base,[e,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var e=this.base,n=t.prototype.getExtent.call(this);n[0]=uS(e,n[0]),n[1]=uS(e,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=dS(n[0],i[0])),this._fixMax&&(n[1]=dS(n[1],i[1])),n},e.prototype.unionExtentFromData=function(t,e){this._originalScale.unionExtentFromData(t,e);var n=Cw(this.base,t.getApproximateExtent(e),!0);this._innerUnionExtent(n)},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(isFinite(n)&&!(n<=0)){var i=ua(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[aS(lS(e[0]/i)*i),aS(sS(e[1]/i)*i)];this._interval=i,this._intervalPrecision=xw(i),this._niceExtent=r}},e.prototype.calcNiceExtent=function(e){t.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},e.prototype.contain=function(e){return e=cS(e)/cS(this.base),t.prototype.contain.call(this,e)},e.prototype.normalize=function(e){return e=cS(e)/cS(this.base),t.prototype.normalize.call(this,e)},e.prototype.scale=function(e){return e=t.prototype.scale.call(this,e),uS(this.base,e)},e.prototype.setBreaksFromOption=function(t){var e=mh();if(e){var n=e.logarithmicParseBreaksFromOption(t,this.base,it(this.parse,this)),i=n.parsedOriginal,r=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(r)}},e.type="log",e}(Rw);function dS(t,e){return aS(t,Jo(e))}Iw.registerClass(hS);const pS=hS;var fS=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=e.get("min",!0);null==r&&(r=e.get("startValue",!0));var o=this._modelMinRaw=r;at(o)?this._modelMinNum=vS(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=vS(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(at(a)?this._modelMaxNum=vS(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=vS(t,a)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=ot(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[fo(l[0],1),fo(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=yt(a)||yt(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[mS[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[gS[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),gS={min:"_determinedMin",max:"_determinedMax"},mS={min:"_dataMin",max:"_dataMax"};function yS(t,e,n){var i=t.rawExtentInfo;return i||(i=new fS(t,e,n),t.rawExtentInfo=i,i)}function vS(t,e){return null==e?null:yt(e)?NaN:t.parse(e)}function xS(t,e){var n=t.type,i=yS(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=Gw("bar",a),l=!1;if(K(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=jw(s),c=function(t,e,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=function(t,e){if(t&&e){var n=t[Ww(e)];return n}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;K(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;K(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return{min:t-=h*(s/u),max:e+=h*(l/u)}}(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function _S(t,e){var n=e,i=xS(t,n),r=i.extent,o=n.get("splitNumber");t instanceof pS&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setBreaksFromOption(AS(n)),t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function bS(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Ow({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new oS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Iw.getClass(e)||Rw)}}function wS(t){var e,n=t.getLabelModel().get("formatter");if("time"===t.type){var i=st(e=n)||at(e)?e:function(t){t=t||{};var e={},n=!0;return K(Mh,(function(e){n&&(n=null==t[e])})),K(Mh,(function(i,r){var o=t[i];e[i]={};for(var a=null,s=r;s>=0;s--){var l=Mh[s],u=ct(o)&&!ot(o)?o[l]:o,c=void 0;ot(u)?a=(c=u.slice())[0]||"":st(u)?c=[a=u]:(null==a?a=bh[i]:_h[l].test(a)||(a=e[l][l][0]+" "+a),c=[a],n&&(c[1]="{primary|"+a+"}")),e[i][l]=c}})),e}(e);return function(e,n){return t.scale.getFormattedLabel(e,n,i)}}if(st(n))return function(e){var i=t.scale.getLabel(e);return n.replace("{value}",null!=i?i:"")};if(at(n)){if("category"===t.type)return function(e,i){return n(SS(t,e),e.value-t.scale.getExtent()[0],null)};var r=mh();return function(e,i){var o=null;return r&&(o=r.makeAxisLabelFormatterParamBreak(o,e.break)),n(SS(t,e),i,o)}}return function(e){return t.scale.getLabel(e)}}function SS(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function MS(t){var e=t.get("interval");return null==e?"auto":e}function CS(t){return"category"===t.type&&0===MS(t.getLabelModel())}function TS(t,e){var n={};return K(t.mapDimensionsAll(e),(function(e){n[gw(t,e)]=!0})),nt(n)}function IS(t){return"middle"===t||"center"===t}function DS(t){return t.getShallow("show")}function AS(t){var e,n=t.get("breaks",!0);if(null!=n)return mh()?"x"!==(e=t.axis).dim&&"y"!==e.dim&&"z"!==e.dim&&"single"!==e.dim||"category"===e.type?void 0:n:void 0}var kS=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function ES(t){return mw(null,t)}var LS={isDimensionStacked:fw,enableDataStack:pw,getStackedDimension:gw};function OS(t,e){var n=e;e instanceof ih||(n=new ih(e));var i=bS(n);return i.setExtent(t[0],t[1]),_S(i,n),i}function PS(t){X(t,kS)}function NS(t,e){return Lc(t,null,null,"normal"!==(e=e||{}).state)}function RS(t,e){return Math.abs(t-e)<1e-8}function zS(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=Cl(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return RS(r[0],s[0])&&RS(r[1],s[1])||(i+=Cl(r[0],r[1],s[0],s[1],e,n)),0!==i}var BS=[];function VS(t,e){for(var n=0;n<t.length;n++)ue(t[n],t[n],e)}function HS(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(ce(e,e,o),he(n,n,o))}}var FS=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),WS=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},GS=function(t){this.type="linestring",this.points=t},jS=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return m(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,a=o&&o.length;a>n&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s<r;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,i+=(a+u)*c,o=l,a=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0];return K(this.geometries,(function(e){"polygon"===e.type?HS(e.exterior,n,i,t):K(e.points,(function(e){HS(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new mn(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(zS(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(zS(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new mn(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(VS(c.exterior,s),K(c.interiors,(function(t){VS(t,s)}))):K(c.points,(function(t){VS(t,s)}))}(r=this._rect).copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(FS),$S=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return m(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=Fe(BS),r=t;r&&!r.isGeoSVGGraphicRoot;)Ge(i,r.getLocalTransform(),i),r=r.parent;return qe(i,i),ue(n,n,i),n},e}(FS);function US(t,e,n){for(var i=0;i<t.length;i++)t[i]=qS(t[i],e[i],n)}function qS(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function YS(t,e){return J(tt((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),K(e.features,(function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=qS(r,i,n);break;case"Polygon":case"MultiLineString":US(r,i,n);break;case"MultiPolygon":K(r,(function(t,e){return US(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}(t)).features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new WS(o[0],o.slice(1)));break;case"MultiPolygon":K(i.coordinates,(function(t){t[0]&&r.push(new WS(t[0],t.slice(1)))}));break;case"LineString":r.push(new GS([i.coordinates]));break;case"MultiLineString":r.push(new GS(i.coordinates))}var a=new jS(n[e||"name"],r,n.cp);return a.properties=n,a}))}function XS(t,e,n,i,r,o,a,s){return new mu({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var ZS=Pa(),KS=Pa();function JS(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function QS(t,e){var n=J(e,(function(e){return t.scale.parse(e)}));return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function tM(t,e,n){var i,r,o=nM(t),a=MS(e),s=1===n.kind;if(!s){var l=rM(o,a);if(l)return l}at(a)?i=uM(t,a):(r="auto"===a?function(t,e){if(1===e.kind){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push((function(){return KS(t).autoInterval=n,!0})),n}var i=KS(t).autoInterval;return null!=i?i:KS(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):a,i=lM(t,r));var u={labels:i,labelCategoryInterval:r};return s?n.out.noPxChangeTryDetermine.push((function(){return oM(o,a,u),!0})):oM(o,a,u),u}var eM=iM("axisTick"),nM=iM("axisLabel");function iM(t){return function(e){return KS(e)[t]||(KS(e)[t]={list:[]})}}function rM(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function oM(t,e,n){return t.list.push({key:e,value:n}),n}function aM(t,e,n){return null==sM(t,e,n)}function sM(t,e,n){var i=ZS(t.model),r=t.getExtent(),o=i.lastAutoInterval,a=i.lastTickCount;if(null!=o&&null!=a&&Math.abs(o-e)<=1&&Math.abs(a-n)<=1&&o>e&&i.axisExtent0===r[0]&&i.axisExtent1===r[1])return o;i.lastTickCount=n,i.lastAutoInterval=e,i.axisExtent0=r[0],i.axisExtent1=r[1]}function lM(t,e,n){var i=wS(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=CS(t),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t,time:void 0,break:void 0})}return p&&f-l!==o[1]&&g(o[1]),s}function uM(t,e,n){var i=t.scale,r=wS(t),o=[];return K(i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s,time:void 0,break:void 0})})),o}var cM=[0,1],hM=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return ta(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&"ordinal"===i.type&&dM(n=n.slice(),i.count()),qo(t,cM,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&dM(n=n.slice(),i.count());var r=qo(t,n,cM,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=J(function(t,e,n){var i=t.getTickModel().get("customValues");if(i){var r=t.scale.getExtent();return{ticks:tt(QS(t,i),(function(t){return t>=r[0]&&t<=r[1]}))}}return"category"===t.type?function(t,e){var n,i,r=eM(t),o=MS(e),a=rM(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),at(o))n=uM(t,o,!0);else if("auto"===o){var s=tM(t,t.getLabelModel(),JS(2));i=s.labelCategoryInterval,n=J(s.labels,(function(t){return t.tickValue}))}else n=lM(t,i=o,!0);return oM(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:J(t.scale.getTicks(n),(function(t){return t.value}))}}(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).ticks,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,i){var r=e.length;if(t.onBand&&!n&&r){var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],e[0].onBand=!0,o=e[1]={coord:s[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;K(e,(function(t){t.coord-=u/2,t.onBand=!0}));var c=t.scale.getExtent();a=1+c[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a,tickValue:c[1]+1,onBand:!0},e.push(o)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift()),i&&d(s[0],e[0].coord)&&e.unshift({coord:s[0],onBand:!0}),d(s[1],o.coord)&&(i?o.coord=s[1]:e.pop()),i&&d(o.coord,s[1])&&e.push({coord:s[1],onBand:!0})}function d(t,e){return t=Zo(t),e=Zo(e),h?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),J(this.scale.getMinorTicks(t),(function(t){return J(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(t){return function(t,e){var n=t.getLabelModel().get("customValues");if(n){var i=wS(t),r=t.scale.getExtent();return{labels:J(tt(QS(t,n),(function(t){return t>=r[0]&&t<=r[1]})),(function(e){var n={value:e};return{formattedLabel:i(n),rawLabel:t.scale.getLabel(n),tickValue:e,time:void 0,break:void 0}}))}}return"category"===t.type?function(t,e){var n=t.getLabelModel(),i=tM(t,n,e);return!n.get("show")||t.scale.isBlank()?{labels:[]}:i}(t,e):function(t){var e=t.scale.getTicks(),n=wS(t);return{labels:J(e,(function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value,time:e.time,break:e.break}}))}}(t)}(this,t=t||JS(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var n=e.kind,i=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),r=wS(t),o=(i.axisRotate-i.labelRotate)/180*Math.PI,a=t.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var c=s[0],h=t.dataToCoord(c+1)-t.dataToCoord(c),d=Math.abs(h*Math.cos(o)),p=Math.abs(h*Math.sin(o)),f=0,g=0;c<=s[1];c+=u){var m,y,v=uo(r({value:c}),i.font,"center","top");m=1.3*v.width,y=1.3*v.height,f=Math.max(f,m,7),g=Math.max(g,y,7)}var x=f/d,_=g/p;isNaN(x)&&(x=1/0),isNaN(_)&&(_=1/0);var b=Math.max(0,Math.floor(Math.min(x,_)));if(1===n)return e.out.noPxChangeTryDetermine.push(it(aM,null,t,b,l)),b;var w=sM(t,b,l);return null!=w?w:b}(this,t=t||JS(2))},t}();function dM(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}const pM=hM;function fM(t){var e=Ad.extend(t);return Ad.registerClass(e),e}function gM(t){var e=Og.extend(t);return Og.registerClass(e),e}function mM(t){var e=Eg.extend(t);return Eg.registerClass(e),e}function yM(t){var e=rv.extend(t);return rv.registerClass(e),e}var vM=2*Math.PI,xM=yl.CMD,_M=["top","right","bottom","left"];function bM(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function wM(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+t,h=(s/=u)*n+e;if(Math.abs(i-r)%vM<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=i;i=wl(r),r=wl(d)}else i=wl(i),r=wl(r);i>r&&(r+=vM);var p=Math.atan2(s,a);if(p<0&&(p+=vM),p>=i&&p<=r||p+vM>=i&&p+vM<=r)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,m=n*Math.cos(r)+t,y=n*Math.sin(r)+e,v=(f-a)*(f-a)+(g-s)*(g-s),x=(m-a)*(m-a)+(y-s)*(y-s);return v<x?(l[0]=f,l[1]=g,Math.sqrt(v)):(l[0]=m,l[1]=y,Math.sqrt(x))}function SM(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,h=i-e,d=Math.sqrt(c*c+h*h),p=(l*(c/=d)+u*(h/=d))/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var f=a[0]=t+p*c,g=a[1]=e+p*h;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function MM(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var CM=[];function TM(t,e,n){var i=MM(e.x,e.y,e.width,e.height,t.x,t.y,CM);return n.set(CM[0],CM[1]),i}function IM(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,p=0;p<c.length;){var f=c[p++];1===p&&(s=o=c[p],l=a=c[p+1]);var g=u;switch(f){case xM.M:o=s=c[p++],a=l=c[p++];break;case xM.L:g=SM(o,a,c[p],c[p+1],h,d,CM,!0),o=c[p++],a=c[p++];break;case xM.C:g=ri(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,CM),o=c[p++],a=c[p++];break;case xM.Q:g=ci(o,a,c[p++],c[p++],c[p],c[p+1],h,d,CM),o=c[p++],a=c[p++];break;case xM.A:var m=c[p++],y=c[p++],v=c[p++],x=c[p++],_=c[p++],b=c[p++];p+=1;var w=!!(1-c[p++]);i=Math.cos(_)*v+m,r=Math.sin(_)*x+y,p<=1&&(s=i,l=r),g=wM(m,y,x,_,_+b,w,(h-m)*x/v+m,d,CM),o=Math.cos(_+b)*v+m,a=Math.sin(_+b)*x+y;break;case xM.R:g=MM(s=o=c[p++],l=a=c[p++],c[p++],c[p++],h,d,CM);break;case xM.Z:g=SM(o,a,s,l,h,d,CM,!0),o=s,a=l}g<u&&(u=g,n.set(CM[0],CM[1]))}return u}var DM=new Ze,AM=new Ze,kM=new Ze,EM=new Ze,LM=new Ze;function OM(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||_M,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=t.getComputedTransform(),h=c&&qe([],c),d=e.get("length2")||0;u&&kM.copy(u);for(var p=0;p<a.length;p++){bM(a[p],0,s,DM,EM),Ze.scaleAndAdd(AM,DM,EM,d),AM.transform(h);var f=t.getBoundingRect(),g=u?u.distance(AM):t instanceof Bl?IM(AM,t.path,kM):TM(AM,f,kM);g<l&&(l=g,AM.transform(c),kM.transform(c),kM.toArray(o[0]),AM.toArray(o[1]),DM.toArray(o[2]))}RM(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var PM=[],NM=new Ze;function RM(t,e){if(e<=180&&e>0){e=e/180*Math.PI,DM.fromArray(t[0]),AM.fromArray(t[1]),kM.fromArray(t[2]),Ze.sub(EM,DM,AM),Ze.sub(LM,kM,AM);var n=EM.len(),i=LM.len();if(!(n<.001||i<.001)){EM.scale(1/n),LM.scale(1/i);var r=EM.dot(LM);if(Math.cos(e)<r){var o=SM(AM.x,AM.y,kM.x,kM.y,DM.x,DM.y,PM,!1);NM.fromArray(PM),NM.scaleAndAdd(LM,o/Math.tan(Math.PI-e));var a=kM.x!==AM.x?(NM.x-AM.x)/(kM.x-AM.x):(NM.y-AM.y)/(kM.y-AM.y);if(isNaN(a))return;a<0?Ze.copy(NM,AM):a>1&&Ze.copy(NM,kM),NM.toArray(t[1])}}}}function zM(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,DM.fromArray(t[0]),AM.fromArray(t[1]),kM.fromArray(t[2]),Ze.sub(EM,AM,DM),Ze.sub(LM,kM,AM);var i=EM.len(),r=LM.len();if(!(i<.001||r<.001)&&(EM.scale(1/i),LM.scale(1/r),EM.dot(e)<Math.cos(n))){var o=SM(AM.x,AM.y,kM.x,kM.y,DM.x,DM.y,PM,!1);NM.fromArray(PM);var a=Math.PI/2,s=a+Math.acos(LM.dot(e))-n;if(s>=a)Ze.copy(NM,kM);else{NM.scaleAndAdd(LM,o/Math.tan(Math.PI/2-s));var l=kM.x!==AM.x?(NM.x-AM.x)/(kM.x-AM.x):(NM.y-AM.y)/(kM.y-AM.y);if(isNaN(l))return;l<0?Ze.copy(NM,AM):l>1&&Ze.copy(NM,kM)}NM.toArray(t[1])}}}function BM(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function VM(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=re(i[0],i[1]),o=re(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=le([],i[1],i[0],a/r),l=le([],i[1],i[2],a/o),u=le([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function HM(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<Mu.length;l++){var u=Mu[l],c=e[u],h="normal"===u;if(c){var d=c.get("show");if((h?s:xt(r.states[u]&&r.states[u].ignore,s))||!xt(d,a)){var p=h?i:i&&i.states[u];p&&(p.ignore=!0),i&&BM(i,!0,u,c);continue}i||(i=new Em,t.setTextGuideLine(i),h||!s&&a||BM(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),BM(i,!1,u,c)}}if(i){$(i.style,n),i.style.fill=null;var f=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=VM}}else i&&t.removeTextGuideLine()}function FM(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<Su.length;i++){var r=Su[i];n[r]=t.getModel([r,e])}return n}var WM=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function GM(t,e,n){n=n||3,e?t.dirty|=n:t.dirty&=~n}function jM(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function $M(t){if(t)return jM(t)&&UM(t,t.label,t),t}function UM(t,e,n){var i=e.getComputedTransform();t.transform=$y(t.transform,i);var r=t.localRect=jy(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,c=o.__marginType;null==c&&u&&(a=u,c=Wc.textMargin);for(var h=0;h<4;h++)qM[h]=c===Wc.minMargin&&l&&null!=l[h]?l[h]:s&&null!=s[h]?s[h]:a?a[h]:0;c===Wc.textMargin&&Ry(r,qM,!1,!1);var d=t.rect=jy(t.rect,r);return i&&d.applyTransform(i),c===Wc.minMargin&&Ry(d,qM,!1,!1),t.axisAligned=Wy(i),(t.label=t.label||{}).ignore=e.ignore,GM(t,!1),GM(t,!0,2),t}var qM=[0,0,0,0];function YM(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var r=t.obb;r&&r.fromBoundingRect(t.localRect,n)}}function XM(t,e){for(var n=0;n<WM.length;n++){var i=WM[n];null==t[i]&&(t[i]=e[i])}return $M(t)}function ZM(t){var e=t.obb;return e&&!jM(t,2)||(t.obb=e=e||new oy,e.fromBoundingRect(t.localRect,t.transform),GM(t,!1,2)),e}function KM(t,e,n,i,r){var o=t.length,a=cy[e],s=hy[e];if(o<2)return!1;t.sort((function(t,e){return t.rect[a]-e.rect[a]}));for(var l,u=0,c=!1,h=0,d=0;d<o;d++){var p=t[d],f=p.rect;(l=f[a]-u)<0&&(f[a]-=l,p.label[a]-=l,c=!0),h+=Math.max(-l,0),u=f[a]+f[s]}h>0&&r&&b(-h/o,0,o);var g,m,y=t[0],v=t[o-1];function x(){g=y.rect[a]-n,m=i-v.rect[a]-v.rect[s]}function _(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){b(i*n,0,o);var r=i+t;r<0&&w(-r*n,1)}else w(-t*n,1)}}function b(e,n,i){0!==e&&(c=!0);for(var r=n;r<i;r++){var o=t[r];o.rect[a]+=e,o.label[a]+=e}}function w(e,n){for(var i=[],r=0,l=1;l<o;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[a]-u[a]-u[s],0);i.push(c),r+=c}if(r){var h=Math.min(Math.abs(e)/r,n);if(e>0)for(l=0;l<o-1;l++)b(i[l]*h,0,l+1);else for(l=o-1;l>0;l--)b(-i[l-1]*h,l,o)}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(o-1)),i=0;i<o-1;i++)if(e>0?b(n,0,i+1):b(-n,o-i-1,o),(t-=n)<=0)return}return x(),g<0&&w(-g,.8),m<0&&w(m,.8),x(),_(g,m,1),_(m,g,-1),x(),g<0&&S(-g),m<0&&S(m),c}function JM(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort((function(t,e){return(e.suggestIgnore?1:0)-(t.suggestIgnore?1:0)||e.priority-t.priority}));for(var i=0;i<t.length;i++){var r=$M(t[i]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<e.length;l++)if(QM(r,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(r)}}}function QM(t,e,n,i){return!(!t||!e)&&!(t.label&&t.label.ignore||e.label&&e.label.ignore)&&!!t.rect.intersect(e.rect,n,i)&&(!(!t.axisAligned||!e.axisAligned)||ZM(t).intersect(ZM(e),n,i))}function tC(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function eC(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:tC(i&&i.shape.points)}}var nC=["align","verticalAlign","width","height","fontSize"],iC=new eo,rC=Pa(),oC=Pa();function aC(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var sC=["x","y","rotation"],lC=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var o=i.style,a=i.__hostTarget.textConfig||{},s=i.getComputedTransform(),l=i.getBoundingRect().plain();mn.applyTransform(l,l,s),s?iC.setLocalTransform(s):(iC.x=iC.y=iC.rotation=iC.originX=iC.originY=0,iC.scaleX=iC.scaleY=1),iC.rotation=wl(iC.rotation);var u,c=i.__hostTarget;if(c){u=c.getBoundingRect().plain();var h=c.getComputedTransform();mn.applyTransform(u,u,h)}var d=u&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOptionOrCb:r,layoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:iC.x,y:iC.y,scaleX:iC.scaleX,scaleY:iC.scaleY,rotation:iC.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:a.position,attachedRot:a.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(at(i)||nt(i).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=yu(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(t,e){return function(){OM(t,e)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=(u=at(o.layoutOptionOrCb)?o.layoutOptionOrCb(eC(o,s)):o.layoutOptionOrCb)||{},o.layoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(a.x=Yo(u.x,e),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=Yo(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),h=!1)}rC(a).needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var p=0;p<nC.length;p++){var f=nC[p];a.setStyle(f,null!=u[f]?u[f]:l.style[f])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var g=o.seriesModel;null!=o.dataIndex&&(g=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),a.on("drag",i(s,g.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=[];K(this._labelList,(function(t){t.defaultAttr.ignore||i.push(XM({},t))}));var r=tt(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=tt(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));KM(r,0,0,e),KM(o,1,0,n);var a=tt(i,(function(t){return t.layoutOption.hideOverlap}));!function(t){for(var e=0;e<t.length;e++){var n=t[e],i=n.defaultAttr,r=n.labelLine;n.label.attr("ignore",i.ignore),r&&r.attr("ignore",i.labelGuideIgnore)}}(a),JM(a)},t.prototype.processLabelsOverall=function(){var t=this;K(this._chartViewList,(function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!i,a=e.getTextContent();!o&&a&&(o=rC(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=yu(t),r=i.dataIndex;if(n&&null!=r){var o=e.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style");if(l){var u=o.getVisual("drawType");s.stroke=l[u]}var c=a.getModel("labelLine");HM(t,FM(a),s),OM(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!wc(t))){var r=(p=rC(n)).oldLayout,o=yu(t),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=e.getData(o.dataType);if(r){n.attr(r);var u=t.prevStates;u&&(q(u,"select")>=0&&n.attr(p.oldLayoutSelect),q(u,"emphasis")>=0&&n.attr(p.oldLayoutEmphasis)),_c(n,s,e,a)}else if(n.attr(s),!Vc(n).valueAnimation){var c=xt(n.style.opacity,1);n.style.opacity=0,bc(n,{style:{opacity:c}},e,a)}if(p.oldLayout=s,n.states.select){var h=p.oldLayoutSelect={};aC(h,s,sC),aC(h,n.states.select,sC)}if(n.states.emphasis){var d=p.oldLayoutEmphasis={};aC(d,s,sC),aC(d,n.states.emphasis,sC)}Fc(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){r=(p=oC(i)).oldLayout;var p,f={points:i.shape.points};r?(i.attr({shape:r}),_c(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,bc(i,{style:{strokePercent:1}},e)),p.oldLayout=f}},t}();const uC=lC;var cC=Pa();function hC(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=cC(e).labelManager;i||(i=cC(e).labelManager=new uC),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=cC(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}function dC(t,e,n){var i=C.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}Eb(hC);var pC=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Gr,"string"==typeof e?r=dC(e,n,i):ct(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(Pt(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return Ht(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=dC("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new mn(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new mn(0,0,0,0)).copy(t),o.push(e);else{for(var e,n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new mn(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var d=t.width*t.height,p=c.width*c.height,f=l.width*l.height-d-p;f<i&&(i=f,r=u)}}s&&(o[r].union(t),n=!0),n||((e=new mn(0,0,0,0)).copy(t),o.push(e)),s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c)if(p=t[c]){var h=p.shouldBePainted(n,i,!0,!0);(f=p.__isRendered&&(p.__dirty&On||!h)?p.getPrevPaintRect():null)&&u(f);var d=h&&(p.__dirty&On||!p.__isRendered)?p.getPaintRect():null;d&&u(d)}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var p,f;h=(p=e[c])&&p.shouldBePainted(n,i,!0,!0),!p||h&&p.__zr||!p.__isRendered||(f=p.getPrevPaintRect())&&u(f)}do{for(r=!1,c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var h=this.domBack;function d(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;ft(e)?(a=(e.global||e.__width===i&&e.__height===o)&&e.__canvasGradient||yx(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a,e.__width=i,e.__height=o):gt(e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=Dx(r,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,t,n,i,o),r.restore())}!n||s?d(0,0,o,a):n.length&&K(n,(function(t){d(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(me);const fC=pC;var gC=1e5,mC=314159,yC=.01,vC=function(){function t(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=j({},n||{}),this.dpr=n.devicePixelRatio||Gr,this._singleCanvas=r,this.root=t,t.style&&(Pt(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(r){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new fC(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=mC,o.push(mC),this._domRoot=t}else{this._width=xx(t,0,n),this._height=xx(t,1,n);var h=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(h)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(gC)),i||(i=n.ctx).save(),Fx(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(gC)},t.prototype.paintOne=function(t,e){Hx(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;Hn((function(){s._paintList(t,e,n,i)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(mC).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=r[a],h=l.ctx,p=o&&l.createRepaintRects(t,e,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),y=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,p);else if(f===l.__startIndex){var v=t[f];v.incremental&&v.notClear&&!n||l.clear(!1,y,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g&&Date.now()-m>15)break}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=d.dpr,b=0;b<p.length;++b){var w=p[b];h.save(),h.beginPath(),h.rect(w.x*_,w.y*_,w.width*_,w.height*_),h.clip(),x(w),h.restore()}else h.save(),x(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},d=this,p=0;p<r.length;p++)h(p);return x.wxa&&K(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(Fx(a,t,r,o),t.setPrevPaintRect(s))}else Fx(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=mC);var n=this._layers[t];return n||((n=new fC("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?W(n,this._layerConfig[t],!0):this._layerConfig[t-yC]&&W(n,this._layerConfig[t-yC],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++)if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}var i,r,o=null,a=0;for(r=0;r<t.length;r++){var s,l=(s=t[r]).zlevel,u=void 0;i!==l&&(i=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?yC:0),this._needsManuallyCompositing),u.__builtin__||H("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),s.__dirty&On&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,K(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?W(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];r!==t&&r!==t+yC||W(this._layers[r],n[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(q(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=xx(r,0,i),e=xx(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(mC).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new fC("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Fx(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const xC=vC;var _C=Math.sin,bC=Math.cos,wC=Math.PI,SC=2*Math.PI,MC=180/wC,CC=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l,u=a-o,c=!s,h=Math.abs(u),d=Yi(h-SC)||(c?u>=SC:-u>=SC),p=u>0?u%SC:u%SC+SC;l=!!d||!Yi(h)&&p>=wC==!!c;var f=t+n*bC(o),g=e+i*_C(o);this._start&&this._add("M",f,g);var m=Math.round(r*MC);if(d){var y=1/this._p,v=(c?1:-1)*(SC-y);this._add("A",n,i,m,1,+c,t+n*bC(o+v),e+i*_C(o+v)),y>.01&&this._add("A",n,i,m,0,+c,f,g)}else{var x=t+n*bC(a),_=e+i*_C(a);this._add("A",n,i,m,+l,+c,x,_)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}();const TC=CC;var IC="none",DC=Math.round,AC=["lineCap","miterLimit","lineJoin"],kC=J(AC,(function(t){return"stroke-"+t.toLowerCase()}));var EC="http://www.w3.org/2000/svg",LC="http://www.w3.org/1999/xlink",OC="ecmeta_";function PC(t){return document.createElementNS(EC,t)}function NC(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function RC(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(r,o)+("style"!==r?Te(a):a||"")+(i?""+n+J(i,(function(e){return t(e)})).join(n)+n:"")+"</"+r+">"}(t)}function zC(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function BC(t,e,n,i){return NC("svg","root",{width:t,height:e,xmlns:EC,"xmlns:xlink":LC,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var VC=0;function HC(){return VC++}var FC={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},WC="transform-origin";function GC(t,e,n){var i=j({},t.shape);j(i,e),t.buildPath(n,i);var r=new TC;return r.reset(rr(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function jC(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[WC]=n+"px "+i+"px")}var $C={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function UC(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function qC(t){return st(t)?FC[t]?"cubic-bezier("+FC[t]+")":pi(t)?t:"":""}function YC(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof $m){var s=function(t,e,n){var i,r,o=t.shape.paths,a={};if(K(o,(function(t){var e=zC(n.zrId);e.animation=!0,YC(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=nt(o),u=l.length;if(u){var c=o[r=l[u-1]];for(var h in c){var d=c[h];a[h]=a[h]||{d:""},a[h].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=UC(a,n);return i.replace(r,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=r[u],h=[c.getMaxTime()/1e3+"s"],d=qC(c.getClip().easing),p=c.getDelay();d?h.push(d):h.push("linear"),p&&h.push(p/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(r){var o,a=r[1],s=a.length,l={},u={},c={},h="animation-timing-function";function d(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],d=Math.round(c.time/r*100)+"%",p=qC(c.easing),f=c.rawValue;(st(f)||ut(f))&&(e[d]=e[d]||{},e[d][l]=c.rawValue,p&&(e[d][h]=p))}}}}for(var p=0;p<s;p++)(S=(w=a[p]).targetName)?"shape"===S&&d(w,u):!i&&d(w,l);for(var f in l){var g={};to(g,t),j(g,l[f]);var m=or(g),y=l[f][h];c[f]=m?{transform:m}:{},jC(c[f],g),y&&(c[f][h]=y)}var v=!0;for(var f in u){c[f]=c[f]||{};var x=!o;y=u[f][h],x&&(o=new yl);var _=o.len();o.reset(),c[f].d=GC(t,u[f],o);var b=o.len();if(!x&&_!==b){v=!1;break}y&&(c[f][h]=y)}if(!v)for(var f in c)delete c[f].d;if(!i)for(p=0;p<s;p++){var w,S;"style"===(S=(w=a[p]).targetName)&&d(w,c,(function(t){return $C[t]}))}var M,C=nt(c),T=!0;for(p=1;p<C.length;p++){var I=C[p-1],D=C[p];if(c[I][WC]!==c[D][WC]){T=!1;break}M=c[I][WC]}if(T&&M){for(var f in c)c[f][WC]&&delete c[f][WC];e[WC]=M}if(tt(C,(function(t){return nt(c[t]).length>0})).length)return UC(c,n)+" "+r[0]+" both"}for(var m in l)(s=g(l[m]))&&a.push(s);if(a.length){var y=n.zrId+"-cls-"+HC();n.cssNodes["."+y]={animation:a.join(",")},e.class=y}}function XC(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+HC(),n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var ZC=Math.round;function KC(t){return t&&st(t.src)}function JC(t){return t&&at(t.toDataURL)}function QC(t,e,n,i){(function(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof $l)t("opacity",r);else{if(function(t){var e=t.fill;return null!=e&&e!==IC}(e)){var o=qi(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r;(i||a<1)&&t("fill-opacity",a)}else t("fill",IC);if(function(t){var e=t.stroke;return null!=e&&e!==IC}(e)){var s=qi(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*r:s.opacity*r,h=e.strokeFirst;if((i||1!==u)&&t("stroke-width",u),(i||h)&&t("paint-order",h?"stroke":"fill"),(i||c<1)&&t("stroke-opacity",c),e.lineDash){var d=_x(n),p=d[0],f=d[1];p&&(f=DC(f||0),t("stroke-dasharray",p.join(",")),(f||i)&&t("stroke-dashoffset",f))}else i&&t("stroke-dasharray",IC);for(var g=0;g<AC.length;g++){var m=AC[g];if(i||e[m]!==Pl[m]){var y=e[m]||Pl[m];y&&t(kC[g],y)}}}else i&&t("stroke",IC)}})((function(r,o){var a="fill"===r||"stroke"===r;a&&nr(o)?cT(e,t,r,i):a&&Qi(o)?hT(n,t,r,i):t[r]=o,a&&i.ssr&&"none"===o&&(t["pointer-events"]="visible")}),e,n,!1),function(t,e,n){var i=t.style;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(i)){var r=function(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(t),o=n.shadowCache,a=o[r];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=i.shadowOffsetX||0,h=i.shadowOffsetY||0,d=i.shadowBlur,p=qi(i.shadowColor),f=p.opacity,g=p.color,m=d/2/l+" "+d/2/u;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=NC("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[NC("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:m,"flood-color":g,"flood-opacity":f})]),o[r]=a}e.filter=ir(a)}}(n,t,i)}function tT(t,e){var n=Vo(e);n&&(n.each((function(e,n){null!=e&&(t[(OC+n).toLowerCase()]=e+"")})),e.isSilent()&&(t[OC+"silent"]="true"))}function eT(t){return Yi(t[0]-1)&&Yi(t[1])&&Yi(t[2])&&Yi(t[3]-1)}function nT(t,e,n){if(e&&(!function(t){return Yi(t[4])&&Yi(t[5])}(e)||!eT(e))){var i=n?10:1e4;t.transform=eT(e)?"translate("+ZC(e[4]*i)/i+" "+ZC(e[5]*i)/i+")":function(t){return"matrix("+Xi(t[0])+","+Xi(t[1])+","+Xi(t[2])+","+Xi(t[3])+","+Zi(t[4])+","+Zi(t[5])+")"}(e)}}function iT(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(ZC(i[o][0]*n)/n),r.push(ZC(i[o][1]*n)/n);e.points=r.join(" ")}function rT(t){return!t.smooth}var oT,aT,sT={circle:[(oT=["cx","cy","r"],aT=J(oT,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,n){for(var i=0;i<aT.length;i++){var r=aT[i],o=t[r[0]];null!=o&&(e[r[1]]=ZC(o*n)/n)}})],polyline:[iT,rT],polygon:[iT,rT]};function lT(t,e){var n=t.style,i=t.shape,r=sT[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&rr(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](i)||a&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var d=h.getVersion(),p=t,f=p.__svgPathBuilder;p.__svgPathVersion===d&&f&&l===p.__svgPathStrokePercent||(f||(f=p.__svgPathBuilder=new TC),f.reset(u),h.rebuildPath(f,l),f.generateStr(),p.__svgPathVersion=d,p.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=t.type;var g=Math.pow(10,u);r[0](i,o,g)}return nT(o,t.transform),QC(o,n,t,e),tT(o,t),e.animation&&YC(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent())XC(u={"pointer-events":"none"},e,n,!0);else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},r=i.fill;if(!r){var o=t.style&&t.style.fill,a=t.states.select&&t.states.select.style&&t.states.select.style.fill,s=t.currentStates.indexOf("select")>=0&&a||o;s&&(r=$i(s))}var l=i.lineWidth;l&&(l/=!i.strokeNoScale&&t.transform?t.transform[0]:1);var u={cursor:"pointer"};r&&(u.fill=r),i.stroke&&(u.stroke=i.stroke),l&&(u["stroke-width"]=l),XC(u,e,n,!0)}}(t,o,e),NC(s,t.id+"",o)}function uT(t,e){return t instanceof Bl?lT(t,e):t instanceof $l?function(t,e){var n=t.style,i=n.image;if(i&&!st(i)&&(KC(i)?i=i.src:JC(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a={href:i,width:n.width,height:n.height};return r&&(a.x=r),o&&(a.y=o),nT(a,t.transform),QC(a,n,t,e),tT(a,t),e.animation&&YC(t,a,e),NC("image",t.id+"",a)}}(t,e):t instanceof Fl?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||S,o=n.x||0,a=function(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}(n.y||0,po(r),n.textBaseline),s={"dominant-baseline":"central","text-anchor":Ki[n.textAlign]||n.textAlign};if(uu(n)){var l="",u=n.fontStyle,c=su(n.fontSize);if(!parseFloat(c))return;var h=n.fontFamily||w,d=n.fontWeight;l+="font-size:"+c+";font-family:"+h+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),d&&"normal"!==d&&(l+="font-weight:"+d+";"),s.style=l}else s.style="font: "+r;return i.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),nT(s,t.transform),QC(s,n,t,e),tT(s,t),e.animation&&YC(t,s,e),NC("text",t.id+"",s,void 0,i)}}(t,e):void 0}function cT(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(tr(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!er(o))return;r="radialGradient",a.cx=xt(o.x,.5),a.cy=xt(o.y,.5),a.r=xt(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*Zi(s[u].offset)+"%",d=qi(s[u].color),p=d.color,f=d.opacity,g={offset:h};g["stop-color"]=p,f<1&&(g["stop-opacity"]=f),l.push(NC("stop",u+"",g))}var m=RC(NC(r,"",a,l)),y=i.gradientCache,v=y[m];v||(v=i.zrId+"-g"+i.gradientIdx++,y[m]=v,a.id=v,i.defs[v]=NC(r,v,a,l)),e[n]=ir(v)}function hT(t,e,n,i){var r,o=t.style[n],a=t.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,c="repeat-x"===l,h="repeat-y"===l;if(Ji(o)){var d=o.imageWidth,p=o.imageHeight,f=void 0,g=o.image;if(st(g)?f=g:KC(g)?f=g.src:JC(g)&&(f=g.toDataURL()),"undefined"==typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";St(d,m),St(p,m)}else if(null==d||null==p){var y=function(t,e){if(t){var n=t.elm,i=d||e.width,r=p||e.height;"pattern"===t.tag&&(c?(r=1,i/=a.width):h&&(i=1,r/=a.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},v=as(f,null,t,(function(t){u||y(w,t),y(r,t)}));v&&v.width&&v.height&&(d=d||v.width,p=p||v.height)}r=NC("image","img",{href:f,width:d,height:p}),s.width=d,s.height=p}else o.svgElement&&(r=F(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(r){var x,_;u?x=_=1:c?(_=1,x=s.width/a.width):h?(x=1,_=s.height/a.height):s.patternUnits="userSpaceOnUse",null==x||isNaN(x)||(s.width=x),null==_||isNaN(_)||(s.height=_);var b=or(o);b&&(s.patternTransform=b);var w=NC("pattern","",s,[r]),S=RC(w),M=i.patternCache,C=M[S];C||(C=i.zrId+"-p"+i.patternIdx++,M[S]=C,s.id=C,w=i.defs[C]=NC("pattern",C,s,[r])),e[n]=ir(C)}}function dT(t,e,n){var i=n.clipPathCache,r=n.defs,o=i[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};i[t.id]=o,r[o]=NC("clipPath",o,a,[lT(t,n)])}e["clip-path"]=ir(o)}function pT(t){return document.createTextNode(t)}function fT(t,e,n){t.insertBefore(e,n)}function gT(t,e){t.removeChild(e)}function mT(t,e){t.appendChild(e)}function yT(t){return t.parentNode}function vT(t){return t.nextSibling}function xT(t,e){t.textContent=e}var _T=NC("","");function bT(t){return void 0===t}function wT(t){return void 0!==t}function ST(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}function MT(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function CT(t){var e,n=t.children,i=t.tag;if(wT(i)){var r=t.elm=PC(i);if(DT(_T,t),ot(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&mT(r,CT(o))}else wT(t.text)&&!ct(t.text)&&mT(r,pT(t.text))}else t.elm=pT(t.text);return t.elm}function TT(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&fT(t,CT(o),e)}}function IT(t,e,n,i){for(;n<=i;++n){var r=e[n];null!=r&&(wT(r.tag)?gT(yT(r.elm),r.elm):gT(t,r.elm))}}function DT(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:120!==n.charCodeAt(0)?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?i.setAttributeNS(LC,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function AT(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(DT(t,e),bT(e.text)?wT(i)&&wT(r)?i!==r&&function(t,e,n){for(var i,r,o,a=0,s=0,l=e.length-1,u=e[0],c=e[l],h=n.length-1,d=n[0],p=n[h];a<=l&&s<=h;)null==u?u=e[++a]:null==c?c=e[--l]:null==d?d=n[++s]:null==p?p=n[--h]:MT(u,d)?(AT(u,d),u=e[++a],d=n[++s]):MT(c,p)?(AT(c,p),c=e[--l],p=n[--h]):MT(u,p)?(AT(u,p),fT(t,u.elm,vT(c.elm)),u=e[++a],p=n[--h]):MT(c,d)?(AT(c,d),fT(t,c.elm,u.elm),c=e[--l],d=n[++s]):(bT(i)&&(i=ST(e,a,l)),bT(r=i[d.key])||(o=e[r]).tag!==d.tag?fT(t,CT(d),u.elm):(AT(o,d),e[r]=void 0,fT(t,o.elm,u.elm)),d=n[++s]);(a<=l||s<=h)&&(a>l?TT(t,null==n[h+1]?null:n[h+1].elm,n,s,h):IT(t,e,a,l))}(n,i,r):wT(r)?(wT(t.text)&&xT(n,""),TT(n,null,r,0,r.length-1)):wT(i)?IT(n,i,0,i.length-1):wT(t.text)&&xT(n,""):t.text!==e.text&&(wT(i)&&IT(n,i,0,i.length-1),xT(n,e.text)))}var kT=0,ET=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=n=j({},n),this.root=t,this._id="zr"+kT++,this._oldVNode=BC(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=PC("svg");DT(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(MT(t,e))AT(t,e);else{var n=t.elm,i=yT(n);CT(e),null!==i&&(fT(i,e.elm,vT(n)),IT(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return uT(t,zC(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=zC(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=NC("rect","bg",{width:t,height:e,x:"0",y:"0"}),nr(n))cT({fill:n},r.attrs,"fill",i);else if(Qi(n))hT({style:{fill:n},dirty:Rt,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=qi(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=t.compress?null:this._mainVNode=NC("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=J(nt(r.defs),(function(t){return r.defs[t]}));if(l.length&&o.push(NC("defs","defs",{},l)),t.animation){var u=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=J(nt(t),(function(e){return e+r+J(nt(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=J(nt(e),(function(t){return"@keyframes "+t+r+J(nt(e[t]),(function(n){return n+r+J(nt(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?["<![CDATA[",a,s,"]]>"].join(i):""}(r.cssNodes,r.cssAnims,{newline:!0});if(u){var c=NC("style","stl",{},[],u);o.push(c)}}return BC(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},RC(this.renderToVNode({animation:xt(t.cssAnimation,!0),emphasis:xt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:xt(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,d=h&&h.length||0,p=r&&r.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0&&(!h||!r||h[f]!==r[f]);f--);for(var g=p-1;g>f;g--)i=a[--s-1];for(var m=f+1;m<d;m++){var y={};dT(h[m],y,e);var v=NC("g","clip-g-"+l++,y,[]);(i?i.children:n).push(v),a[s++]=v,i=v}r=h;var x=uT(c,e);x&&(i?i.children:n).push(x)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=xx(i,0,n),e=xx(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+"px",o.height=e+"px"}if(Qi(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=ar(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();const LT=ET;var OT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.getInitialData=function(t){return mw(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Ao,n=px("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=px(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=Pd.color.neutral00,s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Eg);const PT=OT;function NT(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=xf(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(xf(t,e,n[a]));return o.join(" ")}}function RT(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!ot(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}var zT=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return m(e,t),e.prototype._createSymbol=function(t,e,n,i,r,o){this.removeAll();var a=px(t,-1,-1,2,2,null,o);a.attr({z2:xt(r,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=BT,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Yu(this.childAt(0))},e.prototype.downplay=function(){Xu(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=e.getSymbolZ2(t,n),u=o!==this._symbolType,c=r&&r.disableAnimation;if(u){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,l,h)}else{(p=this.childAt(0)).silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};c?p.attr(d):_c(p,d,a,n),Tc(p)}if(this._updateCommon(t,n,s,i,r),u){var p=this.childAt(0);c||(d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}},p.scaleX=p.scaleY=0,p.style.opacity=0,bc(p,d,a,n))}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,d,p,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,d=i.hoverScale,p=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(e),y=m.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),h=Ec(m),d=y.getShallow("scale"),p=m.getShallow("cursor")}var v=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(v||0)*Math.PI/180||0);var x=gx(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),p&&f.attr("cursor",p);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof $l){var w=f.style;f.useStyle(j({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(j({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var C=r&&r.useNameLabel;kc(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return C?t.getName(e):NT(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var I=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;T.scaleX=this._sizeX*I,T.scaleY=this._sizeY*I,this.setSymbolScale(1),lc(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=yu(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Sc(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Sc(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return fx(t.getItemVisual(e,"symbolSize"))},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(Ao);function BT(t,e){this.parent.drift(t,e)}const VT=zT;function HT(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function FT(t){return null==t||ct(t)||(t={isIgnore:t}),t||{}}function WT(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ec(e),cursorStyle:e.get("cursor")}}var GT=function(){function t(t){this.group=new Ao,this._SymbolCtor=t||VT}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=FT(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=WT(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(HT(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,h){var d=r.getItemGraphicEl(h),p=u(c);if(HT(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),(d=new o(t,c,s,l)).setPosition(p);else{d.updateData(t,c,s,l);var m={x:p[0],y:p[1]};a?d.attr(m):_c(d,m,i)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=WT(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=FT(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(HT(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){Fy(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}();const jT=GT;function $T(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:ut(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=J(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return fw(e,h[0])&&(d=!0,h[0]=p),fw(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function UT(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var qT=Math.min,YT=Math.max;function XT(t,e){return isNaN(t)||isNaN(e)}function ZT(t,e,n,i,r,o,a,s,l){for(var u,c,h,d,p,f,g=n,m=0;m<i;m++){var y=e[2*g],v=e[2*g+1];if(g>=r||g<0)break;if(XT(y,v)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,v),h=y,d=v;else{var x=y-u,_=v-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===y&&S===v&&m<i;)m++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],x=(y=e[2*g])-u,_=(v=e[2*g+1])-c;var M=m+1;if(l)for(;XT(w,S)&&M<i;)M++,w=e[2*(b+=o)],S=e[2*b+1];var C=.5,T=0,I=0,D=void 0,A=void 0;if(M>=i||XT(w,S))p=y,f=v;else{T=w-u,I=S-c;var k=y-u,E=w-y,L=v-c,O=S-v,P=void 0,N=void 0;if("x"===s){var R=T>0?1:-1;p=y-R*(P=Math.abs(k))*a,f=v,D=y+R*(N=Math.abs(E))*a,A=v}else if("y"===s){var z=I>0?1:-1;p=y,f=v-z*(P=Math.abs(L))*a,D=y,A=v+z*(N=Math.abs(O))*a}else P=Math.sqrt(k*k+L*L),p=y-T*a*(1-(C=(N=Math.sqrt(E*E+O*O))/(N+P))),f=v-I*a*(1-C),A=v+I*a*C,D=qT(D=y+T*a*C,YT(w,y)),A=qT(A,YT(S,v)),D=YT(D,qT(w,y)),f=v-(I=(A=YT(A,qT(S,v)))-v)*P/N,p=qT(p=y-(T=D-y)*P/N,YT(u,y)),f=qT(f,YT(c,v)),D=y+(T=y-(p=YT(p,qT(u,y))))*N/P,A=v+(I=v-(f=YT(f,qT(c,v))))*N/P}t.bezierCurveTo(h,d,p,f,y,v),h=D,d=A}else t.lineTo(y,v)}u=y,c=v,g+=o}return m}var KT=function(){this.smooth=0,this.smoothConstraint=!0},JT=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:Pd.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new KT},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&XT(n[2*r-2],n[2*r-1]);r--);for(;i<r&&XT(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=ZT(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=yl.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],c=r[l++],(g=a?(t-n)/(u-n):(t-i)/(c-i))<=1&&g>=0){var m=a?(c-i)*g+i:(u-n)*g+n;return a?[t,m]:[m,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],d=r[l++],p=r[l++],f=r[l++];var y=a?ei(n,u,h,p,t,s):ei(i,c,d,f,t,s);if(y>0)for(var v=0;v<y;v++){var x=s[v];if(x<=1&&x>=0)return m=a?Qn(i,c,d,f,x):Qn(n,u,h,p,x),a?[t,m]:[m,t]}n=p,i=f}}},e}(Bl),QT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(KT),tI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return m(e,t),e.prototype.getDefaultShape=function(){return new QT},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&XT(n[2*o-2],n[2*o-1]);o--);for(;r<o&&XT(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=ZT(t,n,r,o,o,1,e.smooth,a,e.connectNulls);ZT(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(Bl);function eI(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new Ql({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=at(r)?function(t){r(t,h)}:null;bc(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return h}function nI(t,e,n){var i=t.getArea(),r=Zo(i.r0,1),o=Zo(i.r,1),a=new bm({shape:{cx:Zo(t.cx,1),cy:Zo(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,bc(a,{shape:{endAngle:i.endAngle,r:o}},n)),a}function iI(t,e,n,i,r){return t?"polar"===t.type?nI(t,e,n):"cartesian2d"===t.type?eI(t,e,n,i,r):null:null}function rI(t,e){return t.type===e}function oI(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function aI(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function sI(t,e){var n=aI(t),i=n[0],r=n[1],o=aI(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function lI(t){return ut(t)?t:t?.5:0}function uI(t,e,n,i,r){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(r){for(l=0;l<t.length;l+=2){var p=e||t;isNaN(p[l])||isNaN(p[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),i){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var f=(c[a]+h[a])/2,g=[];u[a]=g[a]=f,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function cI(t,e){return[t[2*e],t[2*e+1]]}function hI(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Su.length;e++)if(t.get([Su[e],"endLabel","show"]))return!0;return!1}function dI(t,e,n,i){if(rI(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=hI(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=eI(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return nI(e,n,i)}var pI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.init=function(){var t=new Ao,e=new jT;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=it(this._changePolyState,this)},e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===i.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,f=this._lineGroup,g=!e.ssr&&t.get("animation"),m=!s.isEmpty(),y=s.get("origin"),v=$T(i,o,y),x=m&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=Vw(2*i),o=0;o<i;o++){var a=UT(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(i,o,v),_=t.get("showSymbol"),b=t.get("connectNulls"),w=_&&!u&&function(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*VT.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return K(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,o,i),S=this._data;S&&S.eachItemGraphicEl((function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))})),_||h.remove(),r.add(f);var M,C=!u&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(M=i.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var T=function(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=J(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:zi((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=d[0].coord-10,g=d[p-1].coord+10,m=g-f;if(m<.001)return"transparent";K(d,(function(t){t.offset=(t.coord-f)/m})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var y=new Ym(0,0,0,0,d,!0);return y[r]=f,y[r+"2"]=g,y}}}(o,i,n)||o.getVisual("style")[o.getVisual("drawType")];if(d&&c.type===i.type&&C===this._step){m&&!p?p=this._newPolygon(l,x):p&&!m&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,ed(T));var I=f.getClipPath();I?bc(I,{shape:dI(this,i,!1,t).shape},t):f.setClipPath(dI(this,i,!0,t)),_&&h.updateData(o,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),oI(this._stackedOnPoints,x)&&oI(this._points,l)||(g?this._doUpdateAnimation(o,x,i,n,C,y,b):(C&&(x&&(x=uI(x,l,i,C,b)),l=uI(l,null,i,C,b)),d.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:x})))}else _&&h.updateData(o,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(o,i,M),C&&(x&&(x=uI(x,l,i,C,b)),l=uI(l,null,i,C,b)),d=this._newPolyline(l),m?p=this._newPolygon(l,x):p&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,ed(T)),f.setClipPath(dI(this,i,!0,t));var D=t.getModel("emphasis"),A=D.get("focus"),k=D.get("blurScope"),E=D.get("disabled");d.useStyle($(a.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),dc(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),yu(d).seriesIndex=t.seriesIndex,lc(d,A,k,E);var L=lI(t.get("smooth")),O=t.get("smoothMonotone");if(d.setShape({smooth:L,smoothMonotone:O,connectNulls:b}),p){var P=o.getCalculationInfo("stackedOnSeries"),N=0;p.useStyle($(s.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),P&&(N=lI(P.get("smooth"))),p.setShape({smooth:L,stackedOnSmooth:N,smoothMonotone:O,connectNulls:b}),dc(p,t,"areaStyle"),yu(p).seriesIndex=t.seriesIndex,lc(p,A,k,E)}var R=this._changePolyState;o.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=R)})),this._polyline.onHoverStateChange=R,this._data=o,this._coordSys=i,this._stackedOnPoints=x,this._points=l,this._step=C,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){yu(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Oa(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new VT(r,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else rv.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Oa(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else rv.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Gu(this._polyline,t),e&&Gu(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new JT({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new tI({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");at(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=at(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,m=e.pointToCoord(h);i?(d=g.startAngle,p=g.endAngle,f=-m[1]/180*Math.PI):(d=g.r0,p=g.r,f=m[0])}else{var y=n;i?(d=y.x,p=y.x+y.width,f=t.x):(d=y.y+y.height,p=y.y,f=t.y)}var v=p===d?0:(f-d)/(p-d);a&&(v=1-v);var x=at(u)?u(o):l*v+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(hI(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new mu({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(a);l>=0&&(kc(o,Ec(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?RT(r,n):NT(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,y=e.shape,v=m?g?y.x:y.y+y.height:g?y.x+y.width:y.y,x=(g?p:0)*(m?-1:1),_=(g?0:-p)*(m?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,v,b),S=w.range,M=S[1]-S[0],C=void 0;if(M>=1){if(M>1&&!h){var T=cI(u,S[0]);s.attr({x:T[0]+x,y:T[1]+_}),r&&(C=c.getRawValue(S[0]))}else{(T=l.getPointOn(v,b))&&s.attr({x:T[0]+x,y:T[1]+_});var I=c.getRawValue(S[0]),D=c.getRawValue(S[1]);r&&(C=Ga(n,d,I,D,w.t))}i.lastFrameIndex=S[0]}else{var A=1===t||i.lastFrameIndex>0?S[0]:0;T=cI(u,A),r&&(C=c.getRawValue(A)),s.attr({x:T[0]+x,y:T[1]+_})}if(r){var k=Vc(s);"function"==typeof k.setLabelText&&k.setLabelText(C)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,i,r,o,a){for(var s=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),l=[],u=[],c=[],h=[],d=[],p=[],f=[],g=$T(r,e,a),m=t.getLayout("points")||[],y=e.getLayout("points")||[],v=0;v<s.length;v++){var x=s[v],_=!0,b=void 0,w=void 0;switch(x.cmd){case"=":b=2*x.idx,w=2*x.idx1;var S=m[b],M=m[b+1],C=y[w],T=y[w+1];(isNaN(S)||isNaN(M))&&(S=C,M=T),l.push(S,M),u.push(C,T),c.push(n[b],n[b+1]),h.push(i[w],i[w+1]),f.push(e.getRawIndex(x.idx1));break;case"+":var I=x.idx,D=g.dataDimsForPoint,A=r.dataToPoint([e.get(D[0],I),e.get(D[1],I)]);w=2*I,l.push(A[0],A[1]),u.push(y[w],y[w+1]);var k=UT(g,r,e,I);c.push(k[0],k[1]),h.push(i[w],i[w+1]),f.push(e.getRawIndex(I));break;case"-":_=!1}_&&(d.push(x),p.push(p.length))}p.sort((function(t,e){return f[t]-f[e]}));var E=l.length,L=Vw(E),O=Vw(E),P=Vw(E),N=Vw(E),R=[];for(v=0;v<p.length;v++){var z=p[v],B=2*v,V=2*z;L[B]=l[V],L[B+1]=l[V+1],O[B]=u[V],O[B+1]=u[V+1],P[B]=c[V],P[B+1]=c[V+1],N[B]=h[V],N[B+1]=h[V+1],R[v]=d[z]}return{current:L,next:O,stackedOnCurrent:P,stackedOnNext:N,status:R}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(d=uI(c.stackedOnCurrent,c.current,n,r,a),h=uI(c.current,null,n,r,a),f=uI(c.stackedOnNext,c.next,n,r,a),p=uI(c.next,null,n,r,a)),sI(h,p)>3e3||l&&sI(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),_c(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),_c(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],y=c.status,v=0;v<y.length;v++)if("="===y[v].cmd){var x=t.getItemGraphicEl(y[v].idx1);x&&m.push({el:x,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<m.length;e++){var n=m[e].el,i=2*m[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(rv);const fI=pI;function gI(t,e){return{seriesType:t,plan:Pg(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=J(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");fw(n,a[0])&&(a[0]=l),fw(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&Vw(n*s),a=[],l=[],d=t.start,p=0;d<t.end;d++){var f=void 0;if(1===s){var g=u.get(c,d);f=i.dataToPoint(g,null,l)}else a[0]=u.get(c,d),a[1]=u.get(h,d),f=i.dataToPoint(a,null,l);o?(r[p++]=f[0],r[p++]=f[1]):e.setItemLayout(d,f.slice())}o&&e.setLayout("points",r)}}}}}}var mI={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},yI=function(t){return Math.round(t.length/2)};function vI(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/d));var p=void 0;st(r)?p=mI[r]:at(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,p,yI))}}}}}var xI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(t,e){return mw(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)K(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),i.length<2)return;if(2===i.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,d=0;d<i.length;d++){var p=i[d].coord,f=d===i.length-1?i[d-1].tickValue+h:i[d].tickValue;if(f===s){c=p;break}if(f<s)u=p;else if(null!=u&&f>s){c=(p+u)/2;break}1===d&&(h=f-i[0].tickValue)}null==c&&(u?u&&(c=i[i.length-1].coord):c=i[0].coord),o[n]=t.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(Eg);Eg.registerClass(xI);const _I=xI,bI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(){return mw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ah(_I.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Pd.color.primary,borderWidth:2}},realtimeSort:!1}),e}(_I);var wI=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},SI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return m(e,t),e.prototype.getDefaultShape=function(){return new wI},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),m=Math.sin(u);d?(t.moveTo(p*r+n,f*r+i),t.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!c)):t.moveTo(p*o+n,f*o+i),t.arc(n,i,o,l,u,!c),t.arc(g*s+n,m*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&t.arc(n,i,r,u,l,c)},e}(Bl);const MI=SI;function CI(t,e,n){return e*Math.sin(t)*(n?-1:1)}function TI(t,e,n){return e*Math.cos(t)*(n?1:-1)}function II(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;ot(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:J(i,(function(t){return fo(t,r)}))}}var DI=Math.max,AI=Math.min,kI=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return m(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Fy(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var d=t.get("clip",!0)||h,p=function(t,e){var n=t.getArea&&t.getArea();if(rI(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),y=m.get("borderRadius")||0,v=[],x=this._backgroundEls,_=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(t){var e=BI[l.type](a,t);if(!e)return null;var n=function(t,e,n){return new("polar"===t.type?bm:Ql)({shape:$I(e,n,t),silent:!0,z2:0})}(l,r,e);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",y):n.setShape("cornerRadius",y),v[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),i=BI[l.type](a,e,n);if(i&&(g&&w(e),a.hasValue(e)&&zI[l.type](i))){var s=!1;d&&(s=EI[l.type](p,i));var m=LI[l.type](t,a,e,i,r,c,u.model,!1,f);h&&(m.forceLabelAnimation=!0),HI(m,a,e,n,i,t,r,"polar"===l.type),_?m.attr({shape:i}):h?OI(h,c,m,i,e,r,!1,!1):bc(m,{shape:i},t,e),a.setItemGraphicEl(e,m),o.add(m),m.ignore=s}})).update((function(e,n){var i=a.getItemModel(e),S=BI[l.type](a,e,i);if(S){if(g){var M=void 0;0===x.length?M=w(n):((M=x[n]).useStyle(m.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",y):M.setShape("cornerRadius",y),v[e]=M);var C=BI[l.type](a,e);_c(M,{shape:$I(r,C,l)},c,e)}var T=s.getItemGraphicEl(n);if(a.hasValue(e)&&zI[l.type](S)){var I=!1;if(d&&(I=EI[l.type](p,S))&&o.remove(T),T&&("sector"===T.type&&f||"sausage"===T.type&&!f)&&(T&&Cc(T,t,n),T=null),T?Tc(T):T=LI[l.type](t,a,e,S,r,c,u.model,!0,f),h&&(T.forceLabelAnimation=!0),b){var D=T.getTextContent();if(D){var A=Vc(D);null!=A.prevValue&&(A.prevValue=A.value)}}else HI(T,a,e,i,S,t,r,"polar"===l.type);_?T.attr({shape:S}):h?OI(h,c,T,S,e,r,!0,b):_c(T,{shape:S},t,e,null),a.setItemGraphicEl(e,T),T.ignore=I,o.add(T)}else o.remove(T)}})).remove((function(e){var n=s.getItemGraphicEl(e);n&&Cc(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Ao);S.removeAll();for(var M=0;M<v.length;++M)S.add(v[M]);o.add(S),this._backgroundEls=v,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),GI(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),GI(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&iI(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:J(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Cc(e,t,yu(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(rv),EI={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=DI(e.x,t.x),s=AI(e.x+e.width,r),l=DI(e.y,t.y),u=AI(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>r?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=AI(e.r,t.r),o=DI(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;return n<0&&(i=e.r,e.r=e.r0,e.r0=i),a}},LI={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new Ql({shape:j({},i),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?MI:bm,c=new u({shape:i,z2:1});c.name="item";var h,d,p=VI(r);if(c.calculateTextPosition=(h=p,d=({isRoundCap:u===MI}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return go(t,e,n);var r=h(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,p=(u+c)/2,f=a.startAngle,g=a.endAngle,m=(f+g)/2,y=d?Math.abs(u-c)/2:0,v=Math.cos,x=Math.sin,_=s+u*v(f),b=l+u*x(f),w="left",S="top";switch(r){case"startArc":_=s+(c-o)*v(m),b=l+(c-o)*x(m),w="center",S="top";break;case"insideStartArc":_=s+(c+o)*v(m),b=l+(c+o)*x(m),w="center",S="bottom";break;case"startAngle":_=s+p*v(f)+CI(f,o+y,!1),b=l+p*x(f)+TI(f,o+y,!1),w="right",S="middle";break;case"insideStartAngle":_=s+p*v(f)+CI(f,-o+y,!1),b=l+p*x(f)+TI(f,-o+y,!1),w="left",S="middle";break;case"middle":_=s+p*v(m),b=l+p*x(m),w="center",S="middle";break;case"endArc":_=s+(u+o)*v(m),b=l+(u+o)*x(m),w="center",S="bottom";break;case"insideEndArc":_=s+(u-o)*v(m),b=l+(u-o)*x(m),w="center",S="top";break;case"endAngle":_=s+p*v(g)+CI(g,o+y,!0),b=l+p*x(g)+TI(g,o+y,!0),w="left",S="middle";break;case"insideEndAngle":_=s+p*v(g)+CI(g,-o+y,!0),b=l+p*x(g)+TI(g,-o+y,!0),w="right",S="middle";break;default:return go(t,e,n)}return(t=t||{}).x=_,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=r?"r":"endAngle",g={};c.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?_c:bc)(c,{shape:g},o)}return c}};function OI(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?_c:bc)(n,{shape:l},e,r,null),(a?_c:bc)(n,{shape:u},e?t.baseAxis.model:null,r)}function PI(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var NI=["x","y","width","height"],RI=["cx","cy","r","startAngle","endAngle"],zI={cartesian2d:function(t){return!PI(t,NI)},polar:function(t){return!PI(t,RI)}},BI={cartesian2d:function(t,e,n){var i=t.getItemLayout(e);if(!i)return null;var r=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function VI(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function HI(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape;j(u,II(i.getModel("itemStyle"),u,!0)),t.setShape(u)}}else{var c=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var h=i.getShallow("cursor");h&&t.attr("cursor",h);var d=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",p=Ec(i);kc(t,p,{labelFetcher:o,labelDataIndex:n,defaultText:NT(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var f=t.getTextContent();if(s&&f){var g=i.get(["label","position"]);t.textConfig.inside="middle"===g||null,function(t,e,n,i){if(ut(i))t.setTextConfig({rotation:i});else if(ot(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===g?d:g,VI(a),i.get(["label","rotate"]))}Hc(f,p,o.getRawValue(n),(function(t){return RT(e,t)}));var m=i.getModel(["emphasis"]);lc(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),dc(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",K(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var FI=function(){},WI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return m(e,t),e.prototype.getDefaultShape=function(){return new FI},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(Bl);function GI(t,e,n,i){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new WI({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var h=new WI({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(r.getVisual("style")),h.style.stroke=null,yu(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",jI),h.on("mousemove",jI)),n&&n.push(h)}var jI=lv((function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var d=3*c;if(l[i]=u,l[r]=o[d+2],s[i]=o[d+i],s[r]=o[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);yu(this).dataIndex=e>=0?e:null}),30,!1);function $I(t,e,n){if(rI(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}const UI=kI;var qI=2*Math.PI,YI=Math.PI/180;function XI(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=yd(t,n),o=r.cx,a=r.cy,s=r.r,l=r.r0,u=r.viewRect,c=-t.get("startAngle")*YI,h=t.get("endAngle"),d=t.get("padAngle")*YI;h="auto"===h?c-qI:-h*YI;var p=t.get("minAngle")*YI+d,f=0;e.each(i,(function(t){!isNaN(t)&&f++}));var g=e.getSum(i),m=Math.PI/(g||f)*2,y=t.get("clockwise"),v=t.get("roseType"),x=t.get("stillShowZeroSum"),_=e.getDataExtent(i);_[0]=0;var b=y?1:-1,w=[c,h],S=b*d/2;gl(w,!y),c=w[0],h=w[1];var M=ZI(t);M.startAngle=c,M.endAngle=h,M.clockwise=y,M.cx=o,M.cy=a,M.r=s,M.r0=l;var C=Math.abs(h-c),T=C,I=0,D=c;if(e.setLayout({viewRect:u,r:s}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:o,cy:a,r0:l,r:v?NaN:s});else{(i="area"!==v?0===g&&x?m:t*m:C/f)<p?(i=p,T-=p):I+=t;var r=D+b*i,u=0,c=0;d>i?c=u=D+b*i/2:(u=D+S,c=r-S),e.setItemLayout(n,{angle:i,startAngle:u,endAngle:c,clockwise:y,cx:o,cy:a,r0:l,r:v?qo(t,_,[l,s]):s}),D=r}})),T<qI&&f)if(T<=.001){var A=C/f;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=A;var r=0,o=0;A<d?o=r=c+b*(n+.5)*A:(r=c+b*n*A+S,o=c+b*(n+1)*A-S),i.startAngle=r,i.endAngle=o}}))}else m=T/I,D=c,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===p?p:t*m,o=0,a=0;r<d?a=o=D+b*r/2:(o=D+S,a=D+b*r-S),i.startAngle=o,i.endAngle=a,D+=b*r}}))}))}var ZI=Pa();function KI(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}var JI=Math.PI/180;function QI(t,e,n,i,r,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}KM(t,1,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}p(o),p(a)}(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=c*c,d=Math.sqrt(Math.abs((1-u*u/a)*h)),p=e+(d+l.len2)*r,f=p-l.label.x;tD(l,l.targetTextWidth-f*r,!0),l.label.x=p}}}function tD(t,e,n){if(null==t.labelStyleWidth){var i=t.label,r=i.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(e<c||n){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var h=i.getBoundingRect();i.setStyle("width",Math.ceil(h.width)),i.setStyle("backgroundColor",a)}else{var d=e-l,p=e<c?d:n?d>t.unconstrainedWidth?null:d:null;i.setStyle("width",p)}eD(o,i)}}}function eD(t,e){iD.rect=t,UM(iD,e,nD)}var nD={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},iD={};function rD(t){return"center"===t.position}var oD=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new mu;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return m(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=j(II(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(bc(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,bc(r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),bc(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,_c(r,{shape:{endAngle:l.endAngle}},o,e))}else Tc(r),_c(r,{shape:u},o,e);r.useStyle(t.getItemVisual(e,"style")),dc(r,a);var h=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),p=Math.cos(h)*d,f=Math.sin(h)*d,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=j({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},II(s.getModel("itemStyle"),l)),j(r.ensureState("select"),{x:p,y:f,shape:II(a.getModel(["select","itemStyle"]),l)}),j(r.ensureState("blur"),{shape:II(a.getModel(["blur","itemStyle"]),l)});var m=r.getTextGuideLine(),y=r.getTextContent();m&&j(m.ensureState("select"),{x:p,y:f}),j(y.ensureState("select"),{x:p,y:f}),lc(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;kc(i,Ec(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=r.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Em,this.setTextGuideLine(h)),HM(this,FM(r),{stroke:s,opacity:_t(o.get(["lineStyle","opacity"]),l,1)})}},e}(bm);const aD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return m(e,t),e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=ZI(t),h=new bm({shape:F(c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}o.diff(a).add((function(t){var e=new oD(o,t,r);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){Cc(a.getItemGraphicEl(e),t,e)})).execute(),function(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*JI,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function p(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),h=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),m=i.getItemModel(t),y=m.getModel("label"),v=y.get("position")||m.get(["emphasis","label","position"]),x=y.get("distanceToLabelLine"),_=y.get("alignTo"),b=Yo(y.get("edgeDistance"),u),w=y.get("bleedMargin");null==w&&(w=Math.min(u,d)>200?10:2);var S=m.getModel("labelLine"),M=S.get("length");M=Yo(M,u);var C=S.get("length2");if(C=Yo(C,u),Math.abs(h.endAngle-h.startAngle)<a)return K(f.states,p),f.ignore=!0,void(g&&(K(g.states,p),g.ignore=!0));if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(f)){var T,I,D,A,k=(h.startAngle+h.endAngle)/2,E=Math.cos(k),L=Math.sin(k);e=h.cx,n=h.cy;var O="inside"===v||"inner"===v;if("center"===v)T=h.cx,I=h.cy,A="center";else{var P=(O?(h.r+h.r0)/2*E:h.r*E)+e,N=(O?(h.r+h.r0)/2*L:h.r*L)+n;if(T=P+3*E,I=N+3*L,!O){var R=P+E*(M+l-h.r),z=N+L*(M+l-h.r),B=R+(E<0?-1:1)*C;T="edge"===_?E<0?c+b:c+u-b:B+(E<0?-x:x),I=z,D=[[P,N],[R,z],[B,z]]}A=O?"center":"edge"===_?E>0?"right":"left":E>0?"left":"right"}var V=Math.PI,H=0,F=y.get("rotate");if(ut(F))H=F*(V/180);else if("center"===v)H=0;else if("radial"===F||!0===F)H=E<0?-k+V:-k;else if("tangential"===F&&"outside"!==v&&"outer"!==v){var W=Math.atan2(E,L);W<0&&(W=2*V+W),L>0&&(W=V+W),H=W-V}if(o=!!H,f.x=T,f.y=I,f.rotation=H,f.setStyle({verticalAlign:"middle"}),O){f.setStyle({align:A});var G=f.states.select;G&&(G.x+=f.x,G.y+=f.y)}else{var j=new mn(0,0,0,0);eD(j,f),r.push({label:f,labelLine:g,position:v,len:M,len2:C,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Ze(E,L),linePoints:D,textAlign:A,labelDistance:x,labelAlignTo:_,edgeDistance:b,bleedMargin:w,rect:j,unconstrainedWidth:j.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:O})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;rD(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(h=Math.max(h,p.x),u.push(t[d])))}for(d=0;d<t.length;d++)if(!rD(m=t[d])&&m.linePoints){if(null!=m.labelStyleWidth)continue;p=m.label;var f,g=m.linePoints;f="edge"===m.labelAlignTo?p.x<e?g[2][0]-m.labelDistance-a-m.edgeDistance:a+r-m.edgeDistance-g[2][0]-m.labelDistance:"labelLine"===m.labelAlignTo?p.x<e?c-a-m.bleedMargin:a+r-h-m.bleedMargin:p.x<e?p.x-a-m.bleedMargin:a+r-p.x-m.bleedMargin,m.targetTextWidth=f,tD(m,f,!1)}for(QI(u,e,n,i,1,0,o,0,s,h),QI(l,e,n,i,-1,0,o,0,s,c),d=0;d<t.length;d++){var m;if(!rD(m=t[d])&&m.linePoints){p=m.label,g=m.linePoints;var y="edge"===m.labelAlignTo,v=p.style.padding,x=v?v[1]+v[3]:0,_=p.style.backgroundColor?0:x,b=m.rect.width+_,w=g[1][0]-g[2][0];y?p.x<e?g[2][0]=a+m.edgeDistance+b+m.labelDistance:g[2][0]=a+r-m.edgeDistance-b-m.labelDistance:(p.x<e?g[2][0]=p.x+m.labelDistance:g[2][0]=p.x-m.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=p.y}}}(r,e,n,l,u,d,c,h);for(var f=0;f<r.length;f++){var g=r[f],m=g.label,y=g.labelLine,v=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),v&&(K(m.states,p),m.ignore=!0);var x=m.states.select;x&&(x.x+=m.x,x.y+=m.y)}if(y){var _=g.linePoints;v||!_?(K(y.states,p),y.ignore=!0):(RM(_,g.minTurnAngle),zM(_,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:_}),m.__hostTarget.textGuideLineConfig={anchor:new Ze(_[0][0],_[0][1])})}}}(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="pie",e}(rv);function sD(t,e,n){e=ot(e)&&{coordDimensions:e}||j({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=lw(i,e).dimensions,o=new aw(r,t);return o.initData(i,n),o}var lD=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}();const uD=lD;var cD,hD=Pa(),dD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new uD(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return sD(this,{coordDimensions:["value"],encodeDefaulter:rt(Jd,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=hD(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=na(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){Sa(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Eg);cD={fullType:dD.type,getCoord2:function(t){return t.getShallow("center")}},ad.set(cD.fullType,{getCoord2:void 0}).getCoord2=cD.getCoord2;const pD=dD,fD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){return mw(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Pd.color.primary}},universalTransition:{divideShape:"clone"}},e}(Eg);var gD=function(){},mD=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return m(e,t),e.prototype.getDefaultShape=function(){return new gD},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];isNaN(c)||isNaN(h)||u&&!u.contain(c,h)||(a.x=c-r[0]/2,a.y=h-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(t,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1])}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],d=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(d,s),u=Math.max(d,u)}t=this._rect=new mn(a-r/2,s-o/2,l-a+r,u-s+o)}return t},e}(Bl),yD=function(){function t(){this.group=new Ao}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new mD({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=px(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=yu(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const vD=yD,xD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=gI("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new vD:new jT,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(rv);var _D={left:0,right:0,top:0,bottom:0},bD=["25%","25%"];const wD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var i=Cd(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&e.outerBounds&&Md(e.outerBounds,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Md(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:_D,outerBoundsContain:"all",outerBoundsClampWidth:bD[0],outerBoundsClampHeight:bD[1],backgroundColor:Pd.color.transparent,borderWidth:1,borderColor:Pd.color.neutral30},e}(Ad);var SD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ba).models[0]},e.type="cartesian2dAxis",e}(Ad);X(SD,kS);var MD={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:Pd.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Pd.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Pd.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Pd.color.backgroundTint,Pd.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Pd.color.neutral00,borderColor:Pd.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},CD=W({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},MD),TD=W({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Pd.color.axisMinorSplitLine,width:1}}},MD);const ID={category:CD,value:TD,time:W({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},TD),log:$({logBase:10},TD)};var DD={value:1,category:1,time:1,log:1},AD=null;function kD(){return AD}function ED(t,e,n,i){K(DD,(function(r,o){var a=W(W({},ID[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return m(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Sd(this),i=n?Cd(t):{};W(t,e.getTheme().get(o+"Axis")),W(t,this.getDefaultOption()),t.type=LD(t),n&&Md(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Ew.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(t){var e=kD();return e?e.updateModelAxisBreak(this,t):{breaks:[]}},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",LD)}function LD(t){return t.type||(t.data?"category":"value")}var OD=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return J(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),tt(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),PD=["x","y"];function ND(t){return("interval"===t.type||"time"===t.type)&&!t.hasBreaks()}var RD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=PD,e}return m(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(ND(t)&&ND(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=qe([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new mn(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return ue(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e,n){if(n=n||[],this._invTransform)return ue(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new mn(i,r,o,a)},e}(OD);const zD=RD;var BD=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return m(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(pM);const VD=BD;var HD="expandAxisBreak",FD="collapseAxisBreak",WD="toggleAxisBreak",GD="axisbreakchanged",jD={type:HD,event:GD,update:"update",refineEvent:qD},$D={type:FD,event:GD,update:"update",refineEvent:qD},UD={type:WD,event:GD,update:"update",refineEvent:qD};function qD(t,e,n,i){var r=[];return K(t,(function(t){r=r.concat(t.eventBreaks)})),{eventContent:{breaks:r}}}var YD=Math.PI,XD=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],ZD=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],KD=Pa(),JD=Pa(),QD=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,i=this.recordMap,r=i[e]||(i[e]=[]);return r[n]||(r[n]={ready:{}})},t}(),tA=[1,0,0,1,0,0],eA=new mn(0,0,0,0),nA=function(t,e,n,i,r,o){if(IS(t.nameLocation)){var a=o.stOccupiedRect;a&&iA(function(t,e,n){return t.transform=$y(t.transform,n),t.localRect=jy(t.localRect,e),t.rect=jy(t.rect,e),n&&t.rect.applyTransform(n),t.axisAligned=Wy(n),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}({},a,o.transGroup.transform),i,r)}else rA(o.labelInfoList,o.dirVec,i,r)};function iA(t,e,n){var i=new Ze;QM(t,e,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&YM(e,i)}function rA(t,e,n,i){for(var r=Ze.dot(i,e)>=0,o=0,a=t.length;o<a;o++){var s=t[r?o:a-1-o];s.label.ignore||iA(s,n,i)}}var oA=function(){function t(t,e,n,i){this.group=new Ao,this._axisModel=t,this._api=e,this._local={},this._shared=i||new QD(nA),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},i=xt(t.axisName,e.get("name")),r=e.get("nameMoveOverlap");null!=r&&"auto"!==r||(r=xt(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:xt(t.nameDirection,1),tickDirection:xt(t.tickDirection,1),labelDirection:xt(t.labelDirection,1),labelOffset:xt(t.labelOffset,0),silent:xt(t.silent,!0),axisName:i,nameLocation:_t(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:mA(i)&&r,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var a=new Ao({x:o.position[0],y:o.position[1],rotation:o.rotation});a.updateTransform(),this._transformGroup=a;var s=this._shared.ensureRecord(e);s.transGroup=this._transformGroup,s.dirVec=new Ze(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),K(aA,(function(i){t[i]&&sA[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})})),this},t.innerTextLayout=function(t,e,n){var i,r,o=oa(e-t);return aa(o)?(r=n>0?"top":"bottom",i="center"):aa(o-YD)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<YD?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),aA=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],sA={axisLine:function(t,e,n,i,r,o,a){var s=i.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=i.axis.getExtent(),u=o.transform,c=[l[0],0],h=[l[1],0],d=c[0]>h[0];u&&(ue(c,c,u),ue(h,h,u));var p=j({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),f={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(i.get(["axisLine","breakLine"])&&i.axis.scale.hasBreaks())kD().buildAxisBreakLine(i,r,o,f);else{var g=new Nm(j({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},f));wy(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var m=i.get(["axisLine","symbol"]);if(null!=m){var y=i.get(["axisLine","symbolSize"]);st(m)&&(m=[m,m]),(st(y)||ut(y))&&(y=[y,y]);var v=gx(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],_=y[1];K([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],(function(e,n){if("none"!==m[n]&&null!=m[n]){var i=px(m[n],-x/2,-_/2,x,_,p.stroke,!0),o=e.r+e.offset,a=d?h:c;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),r.add(i)}}))}}},axisTickLabelEstimate:function(t,e,n,i,r,o,a,s){hA(e,r,s)&&lA(t,e,n,i,r,o,a,1)},axisTickLabelDetermine:function(t,e,n,i,r,o,a,s){hA(e,r,s)&&lA(t,e,n,i,r,o,a,2);var l=function(t,e,n,i){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow)),!a||r.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),u=cA(r.getTicksCoords(),n.transform,l,$(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(t,r,o,i);!function(t,e,n){t.showMinorTicks||K(e,(function(t){if(t&&t.label.ignore)for(var e=0;e<n.length;e++){var i=n[e],r=JD(i),o=KD(t.label);if(null!=r.tickValue&&!r.onBand&&r.tickValue===o.tickValue)return void uA(i)}}))}(t,e.labelLayoutList,l),function(t,e,n,i,r){var o=i.axis,a=i.getModel("minorTick");if(t.showMinorTicks&&!o.scale.isBlank()){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=r*a.get("length"),c=$(l.getLineStyle(),$(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var d=cA(s[h],n.transform,u,c,"minorticks_"+h),p=0;p<d.length;p++)e.add(d[p])}}(t,r,o,i,t.tickDirection)},axisName:function(t,e,n,i,r,o,a,s){var l=n.ensureRecord(i);e.nameEl&&(r.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(mA(u)){var c=t.nameLocation,h=t.nameDirection,d=i.getModel("nameTextStyle"),p=i.get("nameGap")||0,f=i.axis.getExtent(),g=i.axis.inverse?-1:1,m=new Ze(0,0),y=new Ze(0,0);"start"===c?(m.x=f[0]-g*p,y.x=-g):"end"===c?(m.x=f[1]+g*p,y.x=g):(m.x=(f[0]+f[1])/2,m.y=t.labelOffset+h*p,y.y=h);var v=[1,0,0,1,0,0];y.transform($e(v,v,t.rotation));var x,_,b=i.get("nameRotate");null!=b&&(b=b*YD/180),IS(c)?x=oA.innerTextLayout(t.rotation,null!=b?b:t.rotation,h):(x=function(t,e,n,i){var r,o,a=oa(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return aa(a-YD/2)?(o=l?"bottom":"top",r="center"):aa(a-1.5*YD)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*YD&&a>YD/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,c,b||0,f),null!=(_=t.raw.axisNameAvailableWidth)&&(_=Math.abs(_/Math.sin(x.rotation)),!isFinite(_)&&(_=null)));var w=d.getFont(),S=i.get("nameTruncate",!0)||{},M=S.ellipsis,C=vt(t.raw.nameTruncateMaxWidth,S.maxWidth,_),T=s.nameMarginLevel||0,I=new mu({x:m.x,y:m.y,rotation:x.rotation,silent:oA.isLabelSilent(i),style:Lc(d,{text:u,font:w,overflow:"truncate",width:C,ellipsis:M,fill:d.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:d.get("align")||x.textAlign,verticalAlign:d.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(Vy({el:I,componentModel:i,itemName:u}),I.__fullText=u,I.anid="name",i.get("triggerEvent")){var D=oA.makeAxisEventDataBase(i);D.targetType="axisName",D.name=u,yu(I).eventData=D}o.add(I),I.updateTransform(),e.nameEl=I;var A=l.nameLayout=$M({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:IS(c)?XD[T]:ZD[T]});if(l.nameLocation=c,r.add(I),I.decomposeTransform(),t.shouldNameMoveOverlap&&A){var k=n.ensureRecord(i);n.resolveAxisNameOverlap(t,n,i,A,y,k)}}}};function lA(t,e,n,i,r,o,a,s){dA(e)||function(t,e,n,i,r,o){var a=r.axis,s=vt(t.raw.axisLabelShow,r.get(["axisLabel","show"])),l=new Ao;n.add(l);var u=JS(i);if(s&&!a.scale.isBlank()){var c=r.getModel("axisLabel"),h=a.getViewLabels(u),d=(vt(t.raw.labelRotate,c.get("rotate"))||0)*YD/180,p=oA.innerTextLayout(t.rotation,d,t.labelDirection),f=r.getCategories&&r.getCategories(!0),g=[],m=r.get("triggerEvent"),y=1/0,v=-1/0;K(h,(function(t,e){var n,i="ordinal"===a.scale.type?a.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,s=t.formattedLabel,u=t.rawLabel,d=c;if(f&&f[i]){var x=f[i];ct(x)&&x.textStyle&&(d=new ih(x.textStyle,c,r.ecModel))}var _=d.getTextColor()||r.get(["axisLine","lineStyle","color"]),b=d.getShallow("align",!0)||p.textAlign,w=xt(d.getShallow("alignMinLabel",!0),b),S=xt(d.getShallow("alignMaxLabel",!0),b),M=d.getShallow("verticalAlign",!0)||d.getShallow("baseline",!0)||p.textVerticalAlign,C=xt(d.getShallow("verticalAlignMinLabel",!0),M),T=xt(d.getShallow("verticalAlignMaxLabel",!0),M),I=10+((null===(n=t.time)||void 0===n?void 0:n.level)||0);y=Math.min(y,I),v=Math.max(v,I);var D=new mu({x:0,y:0,rotation:0,silent:oA.isLabelSilent(r),z2:I,style:Lc(d,{text:s,align:0===e?w:e===h.length-1?S:b,verticalAlign:0===e?C:e===h.length-1?T:M,fill:at(_)?_("category"===a.type?u:"value"===a.type?i+"":i,e):_})});D.anid="label_"+i;var A=KD(D);if(A.break=t.break,A.tickValue=i,A.layoutRotation=p.rotation,Vy({el:D,componentModel:r,itemName:s,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:u,tickIndex:e}}),m){var k=oA.makeAxisEventDataBase(r);k.targetType="axisLabel",k.value=u,k.tickIndex=e,t.break&&(k.break={start:t.break.parsedBreak.vmin,end:t.break.parsedBreak.vmax}),"category"===a.type&&(k.dataIndex=i),yu(D).eventData=k,t.break&&function(t,e,n,i){n.on("click",(function(n){var r={type:HD,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};r[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(r)}))}(r,o,D,t.break)}g.push(D),l.add(D)})),pA(e,J(g,(function(t){return{label:t,priority:KD(t).break?t.z2+(v-y+1):t.z2,defaultAttr:{ignore:t.ignore}}})),l,u)}else pA(e,[],l,u)}(t,e,r,s,i,a);var l=e.labelLayoutList;!function(t,e,n,i){var r=e.get(["axisLabel","margin"]);K(n,(function(n,o){var a=$M(n);if(a){var s=a.label,l=KD(s);a.suggestIgnore=s.ignore,s.ignore=!1,to(fA,gA),fA.x=e.axis.dataToCoord(l.tickValue),fA.y=t.labelOffset+t.labelDirection*r,fA.rotation=l.layoutRotation,i.add(fA),fA.updateTransform(),i.remove(fA),fA.decomposeTransform(),to(s,fA),s.markRedraw(),GM(a,!0),$M(a)}}))}(t,i,l,o),function(t,e,n){var i=mh();if(i){var r=i.retrieveAxisBreakPairs(n,(function(t){return t&&KD(t.label).break}),!0),o=t.get(["breakLabelLayout","moveOverlap"],!0);!0!==o&&"auto"!==o||K(r,(function(i){kD().adjustBreakLabelPair(t.axis.inverse,e,[$M(n[i[0]]),$M(n[i[1]])])}))}}(i,t.rotation,l);var u=t.optionHideOverlap;!function(t,e,n){if(!CS(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]),o=e.length;a(i,0,1),a(r,o-1,o-2)}function a(t,i,r){var o=$M(e[i]),a=$M(e[r]);if(o&&a)if(!1===t||o.suggestIgnore)uA(o.label);else if(a.suggestIgnore)uA(a.label);else{if(!n){var s=[0,0,0,0];o=XM({marginForce:s},o),a=XM({marginForce:s},a)}QM(o,a,null,{touchThreshold:.1})&&uA(t?a.label:o.label)}}}(i,l,u),u&&JM(tt(l,(function(t){return t&&!t.label.ignore}))),function(t,e,n,i){var r,o=n.axis,a=e.ensureRecord(n),s=[],l=mA(t.axisName)&&IS(t.nameLocation);K(i,(function(t){var e=$M(t);if(e&&!e.label.ignore){s.push(e);var n=a.transGroup;l&&(n.transform?qe(tA,n.transform):Fe(tA),e.transform&&Ge(tA,tA,e.transform),mn.copy(eA,e.localRect),eA.applyTransform(tA),r?r.union(eA):mn.copy(r=new mn(0,0,0,0),eA))}}));var u=Math.abs(a.dirVec.x)>.1?"x":"y",c=a.transGroup[u];if(s.sort((function(t,e){return Math.abs(t.label[u]-c)-Math.abs(e.label[u]-c)})),l&&r){var h=o.getExtent(),d=Math.min(h[0],h[1]),p=Math.max(h[0],h[1])-d;r.union(new mn(d,0,p,1))}a.stOccupiedRect=r,a.labelInfoList=s}(t,n,i,l)}function uA(t){t&&(t.ignore=!0)}function cA(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(ue(a,a,e),ue(s,s,e));var c=new Nm({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});wy(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,o.push(c);var h=JD(c);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return o}function hA(t,e,n){if(dA(t)){var i=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var r=!0,o=0;o<i.length;o++)r=r&&i[o]();if(r)return!1}i.length&&(e.remove(t.labelGroup),pA(t,null,null,null))}return!0}function dA(t){return!!t.labelLayoutList}function pA(t,e,n,i){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=i}var fA=new Ql,gA=new Ql;function mA(t){return!!t}const yA=oA;function vA(t,e,n){n=n||{};var i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,d="x"===l?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(p,d[1]),d[0])}r.position=["y"===l?d[c[s]]:u[0],"x"===l?d[c[s]]:u[3]],r.rotation=Math.PI/2*("x"===l?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?d[c[a]]-d[c.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),vt(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var f=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===s?-f:f,r.z2=1,r}function xA(t){var e={xAxisModel:null,yAxisModel:null};return K(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Ba).models[0];e[i]=o})),e}function _A(t,e,n){var i=Rw.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,{expandToNicedExtent:!0}),a=r.length-1,s=i.getInterval.call(n),l=xS(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;"log"===t.type&&(u=Cw(t.base,u,!0)),t.setBreaksFromOption(AS(e)),t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=i.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var p=i.getInterval.call(t),f=u[0],g=u[1];if(c&&h)p=(g-f)/a;else if(c)for(g=u[0]+p*a;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=vw(p),g=u[0]+p*a;else if(h)for(f=u[1]-p*a;f>u[0]&&isFinite(f)&&isFinite(u[0]);)p=vw(p),f=u[1]-p*a;else{t.getTicks().length-1>a&&(p=vw(p));var m=p*a;(f=Zo((g=Math.ceil(u[1]/p)*p)-m))<0&&u[0]>=0?(f=0,g=Zo(m)):g>0&&u[1]<=0&&(g=0,f=-Zo(m))}var y=(r[0].value-o[0].value)/s,v=(r[a].value-o[a].value)/s;i.setExtent.call(t,f+p*y,g+p*v),i.setInterval.call(t,p),(y||v)&&i.setNiceExtent.call(t,f+p,g-p)}var bA,wA=[[3,1],[0,2]],SA=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=PD,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=nt(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;yw(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(_S(l,s),yw(l)&&(e=a))}r.length&&(e||_S((e=r.pop()).scale,e.model),K(r,(function(t){_A(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};K(n.x,(function(t){CA(n,"y",t,r)})),K(n.y,(function(t){CA(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=bd(t,e),r=this._rect=vd(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(IA(o,r),!n){var l=function(t,e,n,i,r){var o=new QD(EA);return K(n,(function(n){return K(n,(function(n){if(DS(n.model)){var a=!i;n.axisBuilder=function(t,e,n,i,r,o){for(var a=vA(t,n),s=!1,l=!1,u=0;u<e.length;u++)yw(e[u].getOtherAxis(n.axis).scale)&&(s=l=!0,"category"===n.axis.type&&n.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new yA(n,i,a,r)}(t,e,n.model,r,o,a)}}))})),o}(r,a,o,s,e),u=void 0;if(s)bA?(bA(this._axesList,r),IA(o,r)):u=AA(r.clone(),"axisLabel",null,r,o,l,i);else{var c=function(t,e,n){var i,r=t.get("outerBoundsMode",!0);"same"===r?i=e.clone():null!=r&&"auto"!==r||(i=vd(t.get("outerBounds",!0)||_D,n.refContainer));var o=t.get("outerBoundsContain",!0);return{outerBoundsRect:i,parsedOuterBoundsContain:null==o||"auto"===o||q(["all","axisLabel"],o)<0?"all":o,outerBoundsClamp:[Xo(xt(t.get("outerBoundsClampWidth",!0),bD[0]),e.width),Xo(xt(t.get("outerBoundsClampHeight",!0),bD[1]),e.height)]}}(t,r,i),h=c.outerBoundsRect,d=c.parsedOuterBoundsContain,p=c.outerBoundsClamp;h&&(u=AA(h,d,p,r,o,l,i))}kA(r,o,2,null,u,i)}K(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}ct(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Ba).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Ba).models[0],a=t.gridModel,s=this._coordsList;return i?q(s,e=i.coordinateSystem)<0&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(MA(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new VD(e,bS(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,K(a.x,(function(e,n){K(a.y,(function(r,o){var a="x"+n+"y"+o,s=new zD(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){K(TS(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}K(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(function(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}(t)){var i=xA(t),r=i.xAxisModel,o=i.yAxisModel;if(!MA(r,e)||!MA(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return K(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);q(e,r)<0&&e.push(r),q(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),e.eachSeries((function(t){ld({targetModel:t,coordSysType:"cartesian2d",coordSysProvider:function(){var e=xA(t),n=e.xAxisModel,i=e.yAxisModel;return n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,i.componentIndex)}})})),i},t.dimensions=PD,t}();function MA(t,e){return t.getCoordSysModel()===e}function CA(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)TA(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&TA(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function TA(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}function IA(t,e){K(t.x,(function(t){return DA(t,e.x,e.width)})),K(t.y,(function(t){return DA(t,e.y,e.height)}))}function DA(t,e,n){var i=[0,n],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e)}function AA(t,e,n,i,r,o,a){kA(i,r,1,e,!1,a);var s=[0,0,0,0];u(0),u(1),c(i,0,NaN),c(i,1,NaN);var l=null==et(s,(function(t){return t>0}));return Ry(i,s,!0,!0,n),IA(r,i),l;function u(t){K(r[cy[t]],(function(e){if(DS(e.model)){var n=o.ensureRecord(e.model),i=n.labelInfoList;if(i)for(var r=0;r<i.length;r++){var a=i[r],s=e.scale.normalize(KD(a.label).tickValue);s=1===t?1-s:s,c(a.rect,t,s),c(a.rect,1-t,NaN)}var l=n.nameLayout;l&&(s=IS(n.nameLocation)?.5:NaN,c(l.rect,t,s),c(l.rect,1-t,NaN))}}))}function c(e,n,i){var r=t[cy[n]]-e[cy[n]],o=e[hy[n]]+e[cy[n]]-(t[hy[n]]+t[cy[n]]);r=h(r,1-i),o=h(o,i);var a=wA[n][0],l=wA[n][1];s[a]=$o(s[a],r),s[l]=$o(s[l],o)}function h(t,e){return t>0&&!yt(e)&&e>1e-4&&(t/=e),t}}function kA(t,e,n,i,r,o){var a=2===n;K(e,(function(e){return K(e,(function(e){DS(e.model)&&(function(t,e,n){var i=vA(e,n);t.updateCfg(i)}(e.axisBuilder,t,e.model),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r}))}))}));var s={x:0,y:0};function l(e){s[cy[1-e]]=t[hy[e]]<=.5*o.refContainer[hy[e]]?0:1-e==1?2:1}l(0),l(1),K(e,(function(t,e){return K(t,(function(t){DS(t.model)&&(("all"===i||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))}))}))}var EA=function(t,e,n,i,r,o){var a="x"===n.axis.dim?"y":"x";nA(t,0,0,i,r,o),IS(t.nameLocation)||K(e.recordMap[a],(function(t){t&&t.labelInfoList&&t.dirVec&&rA(t.labelInfoList,t.dirVec,i,r)}))};const LA=SA;function OA(t,e){return"all"===t||ot(t)&&q(t,e)>=0||t===e}function PA(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[RA(t)]}function NA(t){return!!t.get(["handle","show"])}function RA(t){return t.type+"||"+t.id}var zA={},BA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=PA(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=NA(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=PA(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){zA[t]=e},e.getAxisPointerClass=function(t){return t&&zA[t]},e.type="axis",e}(Og);const VA=BA;var HA=Pa();function FA(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,h=HA(t).splitAreaColors,d=Et(),p=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var m=r.toGlobalCoord(u[0].coord),y=a.getAreaStyle();for(s=ot(s)?s:[s],f=1;f<u.length;f++){var v=r.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;r.isHorizontal()?(x=m,_=l.y,b=v-x,w=l.height,m=x+b):(x=l.x,_=m,b=l.width,m=_+(w=v-_));var S=u[f-1].tickValue;null!=S&&d.set(S,p),e.add(new Ql({anid:null!=S?"area_"+S:null,shape:{x,y:_,width:b,height:w},style:$({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%c}HA(t).splitAreaColors=d}}}function WA(t){HA(t).splitAreaColors=null}var GA=["splitArea","splitLine","minorSplitLine","breakArea"],jA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return m(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new Ao,this.group.add(this._axisGroup),DS(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),K(GA,(function(t){e.get([t,"show"])&&$A[t](this,this._axisGroup,e,e.getCoordSysModel(),i)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||Ay(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r))},e.prototype.remove=function(){WA(this)},e.type="cartesianAxis",e}(VA),$A={splitLine:function(t,e,n,i,r){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=!1!==a.get("showMinLine"),c=!1!==a.get("showMaxLine");l=ot(l)?l:[l];for(var h=i.coordinateSystem.getRect(),d=o.isHorizontal(),p=0,f=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],m=[],y=s.getLineStyle(),v=0;v<f.length;v++){var x=o.toGlobalCoord(f[v].coord);if((0!==v||u)&&(v!==f.length-1||c)){var _=f[v].tickValue;d?(g[0]=x,g[1]=h.y,m[0]=x,m[1]=h.y+h.height):(g[0]=h.x,g[1]=x,m[0]=h.x+h.width,m[1]=x);var b=p++%l.length,w=new Nm({anid:null!=_?"line_"+_:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:$({stroke:l[b]},y),silent:!0});wy(w.shape,y.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,n,i,r){var o=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=o.toGlobalCoord(u[p][f].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var m=new Nm({anid:"minor_line_"+u[p][f].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0});wy(m.shape,d.lineWidth),e.add(m)}},splitArea:function(t,e,n,i,r){FA(t,e,n,i)},breakArea:function(t,e,n,i,r){var o=kD(),a=n.axis.scale;o&&"ordinal"!==a.type&&o.rectCoordBuildBreakAxis(e,t,n,i.coordinateSystem.getRect(),r)}},UA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="xAxis",e}(jA),qA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=UA.type,e}return m(e,t),e.type="yAxis",e}(jA),YA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return m(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Ql({shape:t.coordinateSystem.getRect(),style:$({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Og),XA={offset:0};function ZA(t){t.registerComponentView(YA),t.registerComponentModel(wD),t.registerCoordinateSystem("cartesian2d",LA),ED(t,"x",SD,XA),ED(t,"y",SD,XA),t.registerComponentView(UA),t.registerComponentView(qA),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}var KA=Pa();function JA(t,e,n,i){if(t instanceof VD){var r=t.scale.type;if("category"!==r&&"ordinal"!==r)return n}var o=t.model,a=o.get("jitter"),s=o.get("jitterOverlap"),l=o.get("jitterMargin")||0,u="ordinal"===t.scale.type?t.getBandWidth():null;return a>0?s?QA(n,a,u,i):function(t,e,n,i,r,o){var a=KA(t);a.items||(a.items=[]);var s=a.items,l=tk(s,e,n,i,r,o,1),u=tk(s,e,n,i,r,o,-1),c=Math.abs(l-n)<Math.abs(u-n)?l:u,h="ordinal"===t.scale.type?t.getBandWidth():null,d=Math.abs(c-n);return d>r/2||h&&d>h/2-i?QA(n,r,h,i):(s.push({fixedCoord:e,floatCoord:c,r:i}),c)}(t,e,n,i,a,l):n}function QA(t,e,n,i){if(null===n)return t+(Math.random()-.5)*e;var r=n-2*i,o=Math.min(Math.max(0,e),r);return t+(Math.random()-.5)*o}function tk(t,e,n,i,r,o,a){for(var s=n,l=0;l<t.length;l++){var u=t[l],c=e-u.fixedCoord,h=s-u.floatCoord,d=c*c+h*h,p=i+u.r+o;if(d<p*p){var f=u.floatCoord+Math.sqrt(p*p-c*c)*a;if(Math.abs(f-n)>r/2)return Number.MAX_VALUE;if(1===a&&f>s||-1===a&&f<s){s=f,l=-1;continue}}}return s}function ek(t){t.eachSeriesByType("scatter",(function(t){var e=t.coordinateSystem;if(e&&("cartesian2d"===e.type||"single"===e.type)){var n=e.getBaseAxis?e.getBaseAxis():null,i=n&&function(t,e){var n=t.coordinateSystem,i=n&&n.type,r=n&&n.getBaseAxis&&n.getBaseAxis(),o=r&&r.scale&&r.scale.type,a="cartesian2d"===i&&"ordinal"===o||"single"===i,s=e.model.get("jitter")>0;return a&&s}(t,n);if(i){var r=t.getData();r.each((function(t){var e=n.dim,i=n.orient,o="horizontal"===i&&"category"!==n.type||"vertical"===i&&"category"===n.type,a=r.getItemLayout(t),s=r.getItemVisual(t,"symbolSize"),l=s instanceof Array?(s[1]+s[0])/2:s;if("y"===e||"single"===e&&o){var u=JA(n,a[0],a[1],l/2);r.setItemLayout(t,[a[0],u])}else("x"===e||"single"===e&&!o)&&(u=JA(n,a[1],a[0],l/2),r.setItemLayout(t,[u,a[1]]))}))}}}))}function nk(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();K(r,(function(t,o){e.each(e.mapDimension(r[o].dim),(function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,o);n[e][o]=ik(r)?r:rk(i)}))})),e.each((function(t){var r=et(n[t],(function(t){return ik(t)}))||rk(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])}))}}))}function ik(t){return!isNaN(t[0])&&!isNaN(t[1])}function rk(t){return[t.cx,t.cy]}function ok(t){var e=t.polar;if(e){ot(e)||(e=[e]);var n=[];K(e,(function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],ot(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}K(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var ak=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=fx(t.getItemVisual(e,"symbolSize")),r=px(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function u(e,n,i,r,o,a){i.removeAll();for(var u=0;u<n.length-1;u++){var c=s(r,o);c&&(c.__dimIdx=u,e[u]?(c.setPosition(e[u]),l[a?"initProps":"updateProps"](c,{x:n[u][0],y:n[u][1]},t,o)):c.setPosition(n[u]),i.add(c))}}function c(t){return J(t,(function(t){return[i.cx,i.cy]}))}o.diff(a).add((function(e){var n=o.getItemLayout(e);if(n){var i=new Dm,r=new Em,a={shape:{points:n}};i.shape.points=c(n),r.shape.points=c(n),bc(i,a,t,e),bc(r,a,t,e);var s=new Ao,l=new Ao;s.add(r),s.add(i),s.add(l),u(r.shape.points,n,l,o,e,!0),o.setItemGraphicEl(e,s)}})).update((function(e,n){var i=a.getItemGraphicEl(n),r=i.childAt(0),s=i.childAt(1),l=i.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(u(r.shape.points,c.shape.points,l,o,e,!1),Tc(s),Tc(r),_c(r,c,t),_c(s,c,t),o.setItemGraphicEl(e,i))})).remove((function(t){r.remove(a.getItemGraphicEl(t))})).execute(),o.eachItemGraphicEl((function(t,e){var n=o.getItemModel(e),i=t.childAt(0),a=t.childAt(1),s=t.childAt(2),l=o.getItemVisual(e,"style"),u=l.fill;r.add(t),i.useStyle($(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),dc(i,n,"lineStyle"),dc(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,K(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),r=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=r&&h;var o=n.getModel([t,"lineStyle"]).getLineStyle();i.ensureState(t).style=o;var l=e.getAreaStyle();a.ensureState(t).style=l;var u=n.getModel([t,"itemStyle"]).getItemStyle();s.eachChild((function(e){e.ensureState(t).style=F(u)}))})),a.useStyle($(n.getModel("areaStyle").getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis");s.eachChild((function(t){if(t instanceof $l){var i=t.style;t.useStyle(j({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;var r=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==r||isNaN(r))&&(r=""),kc(t,Ec(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:u,defaultOpacity:l.opacity})})),lc(t,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(rv);const sk=ak;var lk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new uD(it(this.getData,this),it(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return sD(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),a=""===o?this.name:o,s=mg(this,t);return sg("section",{header:a,sortBlocks:!0,blocks:J(r,(function(e){var n=i.get(i.mapDimension(e.dim),t);return sg("nameValue",{markerType:"subItem",markerColor:s,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(J(n.dimensions,(function(t){return e.mapDimension(t)})),t),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Eg);const uk=lk;var ck=ID.value;function hk(t,e){return $({show:e},t)}var dk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=J(this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=a;null!=h.color&&(d=$({color:h.color},a));var p=W(F(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(st(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else at(l)&&(p.name=l(p.name,p));var g=new ih(p,null,this.ecModel);return X(g,kS.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:Pd.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:W({lineStyle:{color:Pd.color.neutral20}},ck.axisLine),axisLabel:hk(ck.axisLabel,!1),axisTick:hk(ck.axisTick,!1),splitLine:hk(ck.splitLine,!0),splitArea:hk(ck.splitArea,!0),indicator:[]},e}(Ad);const pk=dk;var fk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t,n),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,e){var n=t.coordinateSystem;K(J(n.getIndicatorAxes(),(function(t){var i=t.model.get("showName")?t.name:"";return new yA(t.model,e,{axisName:i,position:[n.cx,n.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(t){t.build(),this.group.add(t.group)}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),d=ot(c)?c:[c],p=ot(h)?h:[h],f=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),y=e.cx,v=e.cy,x=0;x<m.length;x++)l&&f[I(f,d,x)].push(new im({shape:{cx:y,cy:v,r:m[x].coord}})),u&&x<m.length-1&&g[I(g,p,x)].push(new Mm({shape:{cx:y,cy:v,r0:m[x].coord,r:m[x+1].coord}}));else{var _,b=J(n,(function(t,n){var i=t.getTicksCoords();return _=null==_?i.length-1:Math.min(i.length-1,_),J(i,(function(t){return e.coordToPoint(t.coord,n)}))})),w=[];for(x=0;x<=_;x++){for(var S=[],M=0;M<n.length;M++)S.push(b[M][x]);S[0]&&S.push(S[0].slice()),l&&f[I(f,d,x)].push(new Em({shape:{points:S}})),u&&w&&g[I(g,p,x-1)].push(new Dm({shape:{points:S.concat(w)}})),w=S.slice().reverse()}}var C=a.getLineStyle(),T=s.getAreaStyle();K(g,(function(t,e){this.group.add(_y(t,{style:$({stroke:"none",fill:p[e%p.length]},T),silent:!0}))}),this),K(f,(function(t,e){this.group.add(_y(t,{style:$({fill:"none",stroke:d[e%d.length]},C),silent:!0}))}),this)}function I(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(Og);const gk=fk;var mk=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return m(e,t),e}(pM);const yk=mk;var vk=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=J(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new yk(n,new Rw);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(r=u,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=bd(t,e).refContainer,i=t.get("center"),r=Math.min(n.width,n.height)/2;this.cx=Yo(i[0],n.width)+n.x,this.cy=Yo(i[1],n.height)+n.y,this.startAngle=t.get("startAngle")*Math.PI/180;var o=t.get("radius");(st(o)||ut(o))&&(o=[0,o]),this.r0=Yo(o[0],r),this.r=Yo(o[1],r),K(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;K(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var o=e.getData();K(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var r=i.get("splitNumber"),o=new Rw;o.setExtent(0,r),o.setInterval(1),K(n,(function(t,e){_A(t.scale,t.model,o)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},t.dimensions=[],t}();const xk=vk;function _k(t){t.registerCoordinateSystem("radar",xk),t.registerComponentModel(pk),t.registerComponentView(gk),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}var bk=Pa();function wk(t,e){return!!bk(t)[e]}fb({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Rt);var Sk={axisPointer:1,tooltip:1,brush:1};function Mk(t,e,n){var i=e.getComponentByElement(t.topTarget);if(!i||i===n||Sk.hasOwnProperty(i.mainType))return!1;var r=i.coordinateSystem;if(!r||r.model===n)return!1;var o=Uy(i),a=Uy(n);return!((o.zlevel-a.zlevel||o.z-a.z)<=0)}var Ck=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=it(n._mousedownHandler,n),r=it(n._mousemoveHandler,n),o=it(n._mouseupHandler,n),a=it(n._mousewheelHandler,n),s=it(n._pinchHandler,n);return n.enable=function(t,n){var l=n.zInfo,u=Uy(l.component),c=u.z,h=u.zlevel,d={component:l.component,z:c,zlevel:h,z2:xt(l.z2,-1/0)},p=j({},n.triggerInfo);this._opt=$(j({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:d,triggerInfo:p}),null==t&&(t=!0),this._enabled&&this._controlType===t||(this._enabled=!0,this.disable(),!0!==t&&"move"!==t&&"pan"!==t||(Ak(e,"mousedown",i,d),Ak(e,"mousemove",r,d),Ak(e,"mouseup",o,d)),!0!==t&&"scale"!==t&&"zoom"!==t||(Ak(e,"mousewheel",a,d),Ak(e,"pinch",s,d)))},n.disable=function(){this._enabled=!1,kk(e,"mousedown",i),kk(e,"mousemove",r),kk(e,"mouseup",o),kk(e,"mousewheel",a),kk(e,"pinch",s)},n}return m(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,e,n){var i=this._opt,r=i.zInfoParsed;if(Mk(t,i.api,r.component))return!1;var o=i.triggerInfo,a=!1;return"global"===o.roamTrigger&&(a=!0),a||(a=o.isInSelf(t,e,n)),a&&o.isInClip&&!o.isInClip(t,e,n)&&(a=!1),a},e.prototype._decideCursorStyle=function(t,e,n,i){var r=t.target;return!r&&this._checkPointer(t,e,n)?"grab":i?r&&r.cursor||"default":void 0},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!Re(t)&&!Tk(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this._checkPointer(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var e=this._zr;if("pinch"!==t.gestureEvent&&!wk(e,"globalPan")&&!Tk(t)){var n=t.offsetX,i=t.offsetY;if(this._dragging&&Ok("moveOnMouseMove",t,this._opt)){e.setCursorStyle("grabbing");var r=this._x,o=this._y,a=n-r,s=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&Ne(t.event),t.__ecRoamConsumed=!0,Lk(this,"pan","moveOnMouseMove",t,{dx:a,dy:s,oldX:r,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}else{var l=this._decideCursorStyle(t,n,i,!1);l&&e.setCursorStyle(l)}}},e.prototype._mouseupHandler=function(t){if(!Tk(t)){var e=this._zr;if(!Re(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&e.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!Tk(t)){var e=Ok("zoomOnMouseWheel",t,this._opt),n=Ok("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!wk(this._zr,"globalPan")&&!Tk(t)){var e=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,e,n,i,r){t._checkPointer(i,r.originX,r.originY)&&(Ne(i.event),i.__ecRoamConsumed=!0,Lk(t,e,n,i,r))},e}(me);function Tk(t){return t.__ecRoamConsumed}var Ik=Pa();function Dk(t){var e=Ik(t);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function Ak(t,e,n,i){for(var r=Dk(t).roam,o=r[e]=r[e]||[],a=0;a<o.length;a++){var s=o[a].zInfoParsed;if((s.zlevel-i.zlevel||s.z-i.z||s.z2-i.z2)<=0)break}o.splice(a,0,{listener:n,zInfoParsed:i}),function(t,e){var n=Dk(t);n.uniform[e]||t.on(e,n.uniform[e]=function(t){var i=n.roam[e];if(i)for(var r=0;r<i.length;r++)i[r].listener(t)})}(t,e)}function kk(t,e,n){for(var i=Dk(t).roam[e]||[],r=0;r<i.length;r++)if(i[r].listener===n)return i.splice(r,1),void(i.length||Ek(t,e))}function Ek(t,e){var n=Dk(t).uniform;n[e]&&(t.off(e,n[e]),n[e]=null)}function Lk(t,e,n,i,r){r.isAvailableBehavior=it(Ok,null,n,i),t.trigger(e,r)}function Ok(t,e,n){var i=n[t];return!t||i&&(!st(i)||e.event[i+"Key"])}const Pk=Ck;function Nk(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function Rk(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1,s=(a=Fk(a*=e,o))/t.zoom;t.zoom=a,Hk(r,n,i,s),r.dirty()}function zk(t,e,n,i,r,o){var a=new mn(0,0,0,0);i.enable(t.get("roam"),{api:e,zInfo:{component:t},triggerInfo:{roamTrigger:t.get("roamTrigger"),isInSelf:function(t,e,i){return a.copy(n.getBoundingRect()),a.applyTransform(n.getComputedTransform()),a.contain(e,i)},isInClip:function(t,e,n){return!o||o.contain(e,n)}}}),r.zoomLimit=t.get("scaleLimit");var s=t.coordinateSystem;r.zoom=s?s.getZoom():1;var l=t.subType+"Roam";i.off("pan").off("zoom").on("pan",(function(n){Nk(r,n.dx,n.dy),e.dispatchAction({seriesId:t.id,type:l,dx:n.dx,dy:n.dy})})).on("zoom",(function(n){Rk(r,n.scale,n.originX,n.originY),e.dispatchAction({seriesId:t.id,type:l,zoom:n.scale,originX:n.originX,originY:n.originY}),e.updateLabelLayout()}))}function Bk(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function Vk(t,e,n){var i=t.getZoom(),r=t.getCenter(),o=e.zoom,a=t.projectedToPoint?t.projectedToPoint(r):t.dataToPoint(r);return null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter(Bk(t,a))),null!=o&&(o=Fk(i*o,n)/i,Hk(t,e.originX,e.originY,o),t.updateTransform(),t.setCenter(Bk(t,a)),t.setZoom(o*i)),{center:t.getCenter(),zoom:t.getZoom()}}function Hk(t,e,n,i){t.x-=(e-t.x)*(i-1),t.y-=(n-t.y)*(i-1),t.scaleX*=i,t.scaleY*=i}function Fk(t,e){if(e){var n=e.min||0,i=e.max||1/0;t=Math.max(Math.min(i,t),n)}return t}function Wk(t){st(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var Gk,jk={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},$k=nt(jk),Uk={"alignment-baseline":"textBaseline","stop-color":"stopColor"},qk=nt(Uk),Yk=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=Wk(t);this._defsUsePending=[];var i=new Ao;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),tE(n,i,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=rE(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=uE(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=i;(i=new Ao).add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new Ql({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=Gk[s];if(u&&Nt(Gk,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var d=Xk[s];if(d&&Nt(Xk,s)){var p=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new Fl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Jk(e,n),tE(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(Gk={g:function(t,e){var n=new Ao;return Jk(e,n),tE(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Ql;return Jk(e,n),tE(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new im;return Jk(e,n),tE(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Nm;return Jk(e,n),tE(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new am;return Jk(e,n),tE(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=Qk(i));var r=new Dm({shape:{points:n||[]},silent:!0});return Jk(e,r),tE(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=Qk(i));var r=new Em({shape:{points:n||[]},silent:!0});return Jk(e,r),tE(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new $l;return Jk(e,n),tE(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Ao;return Jk(e,a),tE(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new Ao;return Jk(e,a),tE(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=Qg(t.getAttribute("d")||"");return Jk(e,n),tE(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),Xk={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new Ym(e,n,i,r);return Zk(t,o),Kk(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new Xm(e,n,i);return Zk(t,r),Kk(t,r),r}};function Zk(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function Kk(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i,r=n.getAttribute("offset");i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};lE(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000",s=o.stopOpacity||n.getAttribute("stop-opacity");if(s){var l=Ei(a);l&&l[3]&&(l[3]*=Si(s),a=Fi(l,"rgba"))}e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function Jk(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),$(e.__inheritedStyle,t.__inheritedStyle))}function Qk(t){for(var e=rE(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}function tE(t,e,n,i,r){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(oE,(function(t,e,n){return i.push(e,n),""}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=rE(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":je(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Ue(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":$e(r,r,-parseFloat(l[0])*aE,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":Ge(r,[1,0,Math.tan(parseFloat(l[0])*aE),1,0,0],r);break;case"skewY":Ge(r,[1,Math.tan(parseFloat(l[0])*aE),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),lE(t,a,s),i||function(t,e,n){for(var i=0;i<$k.length;i++){var r=$k[i];null!=(o=t.getAttribute(r))&&(e[jk[r]]=o)}for(i=0;i<qk.length;i++){var o;r=qk[i],null!=(o=t.getAttribute(r))&&(n[Uk[r]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=nE(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=nE(o,"stroke",a.stroke,n)),K(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),K(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=J(rE(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var eE=/^url\(\s*#(.*?)\)/;function nE(t,e,n,i){var r=n&&n.match(eE);if(!r)return"none"===n&&(n=null),n;var o=Mt(r[1]);i.push([t,e,o])}var iE=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function rE(t){return t.match(iE)||[]}var oE=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,aE=Math.PI/180,sE=/([^\s:;]+)\s*:\s*([^:;]+)/g;function lE(t,e,n){var i,r=t.getAttribute("style");if(r)for(sE.lastIndex=0;null!=(i=sE.exec(r));){var o=i[1],a=Nt(jk,o)?jk[o]:null;a&&(e[a]=i[2]);var s=Nt(Uk,o)?Uk[o]:null;s&&(n[s]=i[2])}}function uE(t,e){var n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}for(var cE=Et(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),hE=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Et(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Wk(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=Et();return K(t,(function(t){if(null==t.namedFrom){var i=new $S(t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,i;try{St(null!=(n=(e=t&&(i=t,(new Yk).parse(i,{ignoreViewBox:!0,ignoreRootClip:!0}))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var r=new Ao;r.add(n),r.isGeoSVGGraphicRoot=!0;var o=e.width,a=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,h=void 0,d=void 0;if(null!=o?(u=0,h=o):s&&(u=s.x,h=s.width),null!=a?(c=0,d=a):s&&(c=s.y,d=s.height),null==u||null==c){var p=n.getBoundingRect();null==u&&(u=p.x,h=p.width),null==c&&(c=p.y,d=p.height)}l=this._boundingRect=new mn(u,c,h,d)}if(s){var f=uE(s,l);n.scaleX=n.scaleY=f.scale,n.x=f.x,n.y=f.y}r.setClipPath(new Ql({shape:l.plain()}));var g=[];return K(e.named,(function(t){var e;null!=cE.get(t.svgNodeTagLower)&&(g.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:r,boundingRect:l,named:g}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}(),dE=[126,25],pE="南海诸岛",fE=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],gE=0;gE<fE.length;gE++)for(var mE=0;mE<fE[gE].length;mE++)fE[gE][mE][0]/=10.5,fE[gE][mE][1]/=-14,fE[gE][mE][0]+=dE[0],fE[gE][mE][1]+=dE[1];var yE={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]},vE=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],xE=function(){function t(t,e,n){var i;this.type="geoJSON",this._parsedMap=Et(),this._mapName=t,this._specialAreas=n,this._geoJSON=st(i=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:_E(i)})}var r=Et(),o=[];return K(n.regions,(function(e){var n=e.name;t&&Nt(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),r.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new mn(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?YS(i,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===pE)return;e.push(new jS(pE,J(fE,(function(t){return{type:"polygon",exterior:t}})),dE))}}(n,e),K(e,(function(t){var e=t.name;!function(t,e){if("china"===t){var n=yE[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}(n,t),function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:vE[0]})}(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function _E(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}var bE=Et();const wE=function(t){return bE.get(t)},SE=function(t,e,n){var i=bE.get(t);if(i)return i.load(e,n)};var ME=["rect","circle","line","ellipse","polygon","polyline","path"],CE=Et(ME),TE=Et(ME.concat(["g"])),IE=Et(ME.concat(["g"])),DE=Pa();function AE(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function kE(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var EE=function(){function t(t){var e=this.group=new Ao,n=this._transformGroup=new Ao;e.add(n),this.uid=oh("ec_map_draw"),this._controller=new Pk(t.getZr()),this._controllerHost={target:n},n.add(this._regionsGroup=new Ao),n.add(this._svgGroup=new Ao)}return t.prototype.draw=function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s,l=t.coordinateSystem,u=this._regionsGroup,c=this._transformGroup,h=l.getTransformInfo(),d=h.raw,p=h.roam,f=!u.childAt(0)||r;t.getShallow("clip",!0)?(s=l.getViewRect().clone(),this.group.setClipPath(new Ql({shape:s.clone()}))):this.group.removeClipPath(),f?(c.x=p.x,c.y=p.y,c.scaleX=p.scaleX,c.scaleY=p.scaleY,c.dirty()):_c(c,p,t);var g=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,m={api:n,geo:l,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:d};"geoJSON"===l.resourceType?this._buildGeoJSON(m):"geoSVG"===l.resourceType&&this._buildSVG(m),this._updateController(t,s,e,n),this._updateMapSelectHandler(t,u,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Et(),n=Et(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function c(t){for(var e=[],n=!l&&s&&s.project,i=0;i<t.length;++i){var r=u(t[i],n);r&&e.push(r)}return e}function h(t){return{shape:{points:c(t)}}}i.removeAll(),K(t.geo.regions,(function(r){var c=r.name,d=e.get(c),p=n.get(c)||{},f=p.dataIdx,g=p.regionModel;if(!d){d=e.set(c,new Ao),i.add(d),f=a?a.indexOfName(c):null;var m=(g=t.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null).get("silent",!0);null!=m&&(d.silent=m),n.set(c,{dataIdx:f,regionModel:g})}var y=[],v=[];K(r.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=zE(e,l)),K(e,(function(t){y.push(new Dm(h(t)))}))}else{var n=t.points;l&&(n=zE(n,l,!0)),K(n,(function(t){v.push(new Em(h(t)))}))}}));var x=u(r.getCenter(),s&&s.project);function _(e,n){if(e.length){var i=new $m({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(i),LE(t,i,f,g),OE(t,i,c,g,o,f,x),n&&(kE(i),K(i.states,kE))}}_(y),_(v,!0)})),e.each((function(e,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;PE(t,e,i,s,o,a),NE(t,e,i,s,o),RE(t,e,i,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=Et(),r=!1;K(this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);null!=CE.get(s)&&l instanceof Rs&&LE(t,l,u,c),l instanceof Rs&&(l.culling=!0);var h=c.get("silent",!0);null!=h&&(l.silent=h),l.z2EmphasisLift=0,e.namedFrom||(null!=IE.get(s)&&OE(t,l,n,c,o,u,null),PE(t,l,n,c,o,u),NE(t,l,n,c,o),null!=TE.get(s)&&("self"===RE(t,l,n,c,o)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(r,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){$u(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=wE(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=wE(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n,i){var r=t.coordinateSystem,o=this._controller,a=this._controllerHost;a.zoomLimit=t.get("scaleLimit"),a.zoom=r.getZoom(),o.enable(t.get("roam")||!1,{api:i,zInfo:{component:t},triggerInfo:{roamTrigger:t.get("roamTrigger"),isInSelf:function(t,e,n){return r.containPoint([e,n])},isInClip:function(t,n,i){return!e||e.contain(n,i)}}});var s=t.mainType;function l(){var e={type:"geoRoam",componentType:s};return e[s+"Id"]=t.id,e}o.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,Nk(a,t.dx,t.dy),i.dispatchAction(j(l(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),o.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,Rk(a,t.scale,t.originX,t.originY),i.dispatchAction(j(l(),{totalZoom:a.zoom,zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this)},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=DE(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){r._mouseDownFlag=!0})),e.on("click",(function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},t}();function LE(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=AE(r),u=AE(o),c=AE(s),h=AE(a),d=t.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=$x(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,$u(e)}function OE(t,e,n,i,r,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;kc(e,Ec(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=e.getTextContent();if(f&&(DE(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function PE(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):yu(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function NE(t,e,n,i,r){t.data||Vy({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function RE(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return lc(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var i=yu(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}function zE(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),K(t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}const BE=EE;var VE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id)(o=this._mapDraw)&&r.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new BE(n);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new im({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:Cu+1)});if(!s){var u=t.mainSeries.getData(),c=i.getName(n),h=u.indexOfName(c),d=i.getItemModel(n),p=d.getModel("label"),f=u.getItemGraphicEl(h);kc(l,Ec(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){Gu(l,t)}}r.add(l)}}}))},e.type="map",e}(rv);const HE=VE;var FE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return m(e,t),e.prototype.getInitialData=function(t){for(var e=sD(this,{coordDimensions:["value"],encodeDefaulter:rt(Jd,this)}),n=Et(),i=[],r=0,o=e.count();r<o;r++){var a=e.getName(r);n.set(a,r)}return K(SE(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(t){var r,o=t.name,a=n.get(o),s=t.properties&&t.properties.echartsStyle;null==a?(r={name:o},i.push(r)):r=e.getRawDataItem(a),s&&W(r,s)})),e.appendData(i),e},e.prototype.getHostGeoModel=function(){if(2!==sd(this).kind)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),r=this.getRawValue(t),o=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return sg("section",{header:s.join(", "),noHeader:!s.length,blocks:[sg("nameValue",{name:o,value:r})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=px(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=Pd.color.neutral00,n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:Pd.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Pd.color.border,areaColor:Pd.color.background},emphasis:{label:{show:!0,color:Pd.color.primary},itemStyle:{areaColor:Pd.color.highlight}},select:{label:{show:!0,color:Pd.color.primary},itemStyle:{color:Pd.color.highlight}},nameProperty:"name"},e}(Eg);const WE=FE;function GE(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),K(e,(function(t,e){for(var n,i,r,o=(n=J(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),r={},K(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=r[o].length,c=0;c<u;c++)s=Math.min(s,r[o][c]),l=Math.max(l,r[o][c]),a+=r[o][c];return 0===u?NaN:"min"===i?s:"max"===i?l:"average"===i?a/u:a}))),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]}))}function jE(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var r={};K(n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var o=i.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!r[e],o.setItemLayout(t,n)})),e[i]=!0}}))}var $E=ue,UE=function(t){function e(e,n){var i=t.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new eo,i._rawTransformable=new eo,i.name=e,i._opt=n,i}return m(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new mn(t,e,n,i),this._updateCenterAndZoom(),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new mn(t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new mn(t,e,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t){var e=this._opt;e&&e.api&&e.ecModel&&e.ecModel.getShallow("legacyViewCoordSysCenterBase")&&t&&(t=[Yo(t[0],e.api.getWidth()),Yo(t[1],e.api.getWidth())]),this._centerOption=F(t),this._updateCenterAndZoom()},e.prototype.setZoom=function(t){this._zoom=Fk(t||1,this.zoomLimit),this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._centerOption,e=this._rect;t&&e&&(this._center=[Yo(t[0],e.width,e.x),Yo(t[1],e.height,e.y)]);var n=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,r=this.getDefaultCenter(),o=this.getCenter(),a=this.getZoom();o=ue([],o,n),r=ue([],r,n),i.originX=o[0],i.originY=o[1],i.x=r[0]-o[0],i.y=r[1]-o[1],i.scaleX=i.scaleY=a,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),We(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],qe(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new eo;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?$E(n,t,i):Wt(n,t)},e.prototype.pointToData=function(t,e,n){n=n||[];var i=this.invTransform;return i?$E(n,t,i):(n[0]=t[0],n[1]=t[1],n)},e.prototype.convertToPixel=function(t,e,n){var i=qE(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=qE(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(eo);function qE(t){var e=t.seriesModel;return e?e.coordinateSystem:null}const YE=UE;var XE={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},ZE=["lng","lat"],KE=function(t){function e(e,n,i){var r=t.call(this,e,{api:i.api,ecModel:i.ecModel})||this;r.dimensions=ZE,r.type="geo",r._nameCoordMap=Et(),r.map=n;var o,a=i.projection,s=SE(n,i.nameMap,i.nameProperty),l=wE(n),u=(r.resourceType=l?l.type:null,r.regions=s.regions),c=XE[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,r.projection=a,a)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(a);(o=o||d.clone()).union(d)}else o=s.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:xt(i.aspectScale,c.aspectScale),r._invertLongitute=!a&&c.invertLongitute,r}return m(e,t),e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new mn(t,e,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(st(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t,e,n){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.pointToProjected(t,n)},e.prototype.pointToProjected=function(e,n){return t.prototype.pointToData.call(this,e,0,n)},e.prototype.projectedToPoint=function(e,n,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=JE(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=JE(e);return i===this?i.pointToData(n):null},e}(YE);function JE(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Ba).models[0]||{}).coordinateSystem:null}X(KE,YE);const QE=KE;function tL(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,u=0;u<=100;u++){var c=u/100,h=o.project([t+s*c,e+l*c]);ce(i,i,h),he(r,r,h)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}}var h,d,p,f=this.getBoundingRect(),g=t.get("layoutCenter"),m=t.get("layoutSize"),y=bd(t,e).refContainer,v=f.width/f.height*this.aspectScale,x=!1;if(g&&m&&(h=[Yo(g[0],y.width)+y.x,Yo(g[1],y.height)+y.y],d=Yo(m,Math.min(y.width,y.height)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(x=!0)),x)p={},v>1?(p.width=d,p.height=d/v):(p.height=d,p.width=d*v),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var _=t.getBoxLayoutParams();_.aspect=v,p=xd(t,p=vd(_,y),v)}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}var eL=function(){function t(){this.dimensions=ZE}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(r,o){var a=r.get("map"),s=new QE(a+o,a,j({nameMap:r.get("nameMap"),api:e,ecModel:t},i(r)));s.zoomLimit=r.get("scaleLimit"),n.push(s),r.coordinateSystem=s,s.model=r,s.resize=tL,s.resize(r,e)})),t.eachSeries((function(t){ld({targetModel:t,coordSysType:"geo",coordSysProvider:function(){var e="map"===t.subType?t.getHostGeoModel():t.getReferringComponents("geo",Ba).models[0];return e&&e.coordinateSystem},allowNotFound:!0})}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),K(r,(function(r,o){var a=J(r,(function(t){return t.get("nameMap")})),s=new QE(o,o,j({nameMap:G(a),api:e,ecModel:t},i(r[0])));s.zoomLimit=vt.apply(null,J(r,(function(t){return t.get("scaleLimit")}))),n.push(s),s.resize=tL,s.resize(r[0],e),K(r,(function(t){t.coordinateSystem=s,function(t,e){K(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(s,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=Et(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);return K(SE(e,n,i).regions,(function(t){var e=t.name,n=o.get(e),i=t.properties&&t.properties.echartsStyle;n||(n={name:e},r.push(n)),i&&W(n,i)})),r},t}();const nL=new eL;var iL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n);var i=wE(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color=t.defaultItemStyleColor||Pd.color.backgroundTint)}Sa(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=nL.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=Q(e.regions||[],(function(e,i){var r=i.name;return r&&(e.set(r,new ih(i,t,t.ecModel)),i.selected&&(n[r]=!0)),e}),Et()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new ih(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:t};return at(i)?(r.status=e,i(r)):st(i)?i.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:Pd.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Pd.color.border},emphasis:{label:{show:!0,color:Pd.color.primary},itemStyle:{color:Pd.color.highlight}},select:{label:{show:!0,color:Pd.color.primary},itemStyle:{color:Pd.color.highlight}},regions:[]},e}(Ad);const rL=iL;var oL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return m(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new BE(n));var r=this._mapDraw;r.draw(t,e,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;tx(t.target,(function(t){return null!=(e=yu(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=yu(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Og);const aL=oL;function sL(t,e,n){!function(t,e,n){if(e.svg){var i=new hE(t,e.svg);bE.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e,i=new xE(t,r,n),bE.set(t,i)}}(t,e,n)}function lL(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name),K(n.coordinateSystem.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var o=[];K(i,(function(t,e){i[e]&&o.push(e)})),r.push({geoIndex:n.componentIndex,name:o})})),{selected:i,allSelected:r,name:t.name}}))}t.registerCoordinateSystem("geo",nL),t.registerComponentModel(rL),t.registerComponentView(aL),t.registerImpl("registerMap",sL),t.registerImpl("getMap",(function(t){return function(t){var e=bE.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()}(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var i=t.componentType;i||(null!=t.geoId?i="geo":null!=t.seriesId&&(i="series")),i||(i="series"),e.eachComponent({mainType:i,query:t},(function(e){var n=e.coordinateSystem;if("geo"===n.type){var r=Vk(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom),"series"===i&&K(e.seriesGroup,(function(t){t.setCenter(r.center),t.setZoom(r.zoom)}))}}))}))}function uL(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){!function(t){for(var e=t.children,n=e.length,i=0,r=0;--n>=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=pL(s),o=fL(o),s&&o;){r=pL(r),a=fL(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);d>0&&(mL(gL(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!pL(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!fL(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function cL(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function hL(t){return arguments.length?t:yL}function dL(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function pL(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function fL(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function gL(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function mL(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function yL(t,e){return t.parentNode===e.parentNode?1:2}var vL=function(){this.parentPoint=[],this.childPoints=[]},xL=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:Pd.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new vL},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Yo(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),h[l]=p[l],t.lineTo(h[0],h[1])}},e}(Bl),_L=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new Ao,n}return m(e,t),e.prototype.init=function(t,e){this._controller=new Pk(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,o=this._mainGroup;"radial"===t.get("layout")?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(t,n),this._updateController(t,null,e,n);var a=this._data;i.diff(a).add((function(e){bL(i,e)&&wL(i,e,null,o,t)})).update((function(e,n){var r=a.getItemGraphicEl(n);bL(i,e)?wL(i,e,r,o,t):r&&CL(a,n,r,o,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&CL(a,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])}));var r=[],o=[];$s(i,r,o);var a=this._min,s=this._max;o[0]-r[0]==0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]==0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new YE(null,{api:e,ecModel:t.ecModel});l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(t.get("center")),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},e.prototype._updateController=function(t,e,n,i){var r=this;zk(t,i,this.group,this._controller,this._controllerHost,e),this._controller.on("zoom",(function(e){r._updateNodeAndLinkScale(t)}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1;return((e.getZoom()-1)*n+1)/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(rv);function bL(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function wL(t,e,n,i,r){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:Pd.color.neutral00,c=t.tree.root,h=a.parentNode===c?a:a.parentNode||a,d=t.getItemGraphicEl(h.dataIndex),p=h.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=a.getLayout();o?((n=new VT(t,e,null,{symbolInnerColor:u,useNameLabel:!0})).x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,_c(n,{x:g.x,y:g.y},r);var m=n.getSymbolPath();if("radial"===r.get("layout")){var y=c.children[0],v=y.getLayout(),x=y.children.length,_=void 0,b=void 0;if(g.x===v.x&&!0===a.isExpand&&y.children.length){var w={x:(y.children[0].getLayout().x+y.children[x-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[x-1].getLayout().y)/2};(_=Math.atan2(w.y-v.y,w.x-v.x))<0&&(_=2*Math.PI+_),(b=w.x<v.x)&&(_-=Math.PI)}else(_=Math.atan2(g.y-v.y,g.x-v.x))<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(b=g.x<v.x)&&(_-=Math.PI):(b=g.x>v.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),C=M.get("rotate"),T=C*(Math.PI/180),I=m.getTextContent();I&&(m.setTextConfig({position:M.get("position")||S,rotation:null==C?-_:T,origin:"center"}),I.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),A="relative"===D?Lt(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():null;A&&(yu(n).focus=A),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new Hm({shape:TL(c,h,d,r,r)})),_c(g,{shape:TL(c,h,d,o,a)},t));else if("polyline"===u&&"orthogonal"===c&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var m=e.children,y=[],v=0;v<m.length;v++){var x=m[v].getLayout();y.push([x.x,x.y])}g||(g=i.__edge=new xL({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:p}})),_c(g,{shape:{parentPoint:[a.x,a.y],childPoints:y}},t)}g&&("polyline"!==u||e.isExpand)&&(g.useStyle($({strokeNoScale:!0,fill:null},f)),dc(g,l,"lineStyle"),$u(g),s.add(g))}(r,a,c,n,f,p,g,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&1===i.hoverState||Gu(n.__edge,e)}})}function SL(t,e,n,i,r){var o=ML(e.tree.root,t),a=o.source,s=o.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var u=e.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(!1===a.isExpand||1===a.children.length?u:void 0),h=i.get("edgeShape"),d=i.get("layout"),p=i.get("orient"),f=i.get(["lineStyle","curveness"]);c&&("curve"===h?Sc(c,{shape:TL(d,p,f,s,s),style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}):"polyline"===h&&"orthogonal"===i.get("layout")&&Sc(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}))}}function ML(t,e){for(var n,i=e.parentNode===t?e:e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode===t?i:i.parentNode||i;return{source:i,sourceLayout:n}}function CL(t,e,n,i,r){var o=t.tree.getNodeByDataIndex(e),a=ML(t.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};Sc(n,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach((function(e){SL(e,t,i,r,s)})),SL(o,t,i,r,s)}function TL(t,e,n,i,r){var o,a,s,l,u,c,h,d;if("radial"===t){u=i.rawX,h=i.rawY,c=r.rawX,d=r.rawY;var p=dL(u,h),f=dL(u,h+(d-h)*n),g=dL(c,d+(h-d)*n),m=dL(c,d);return{x1:p.x||0,y1:p.y||0,x2:m.x||0,y2:m.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,h=i.y,c=r.x,d=r.y,"LR"!==e&&"RL"!==e||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=d),"TB"!==e&&"BT"!==e||(o=u,a=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}const IL=_L;var DL=Pa();function AL(t,e){if(DL(this).mainData===this){var n=j({},DL(this).datas);n[this.dataType]=e,PL(e,n,t)}else NL(e,this.dataType,DL(this).mainData,t);return e}function kL(t,e){return t.struct&&t.struct.update(),e}function EL(t,e){return K(DL(e).datas,(function(n,i){n!==e&&NL(n.cloneShallow(),i,e,t)})),e}function LL(t){var e=DL(this).mainData;return null==t||null==e?e:DL(e).datas[t]}function OL(){var t=DL(this).mainData;return null==t?[{data:t}]:J(nt(DL(t).datas),(function(e){return{type:e,data:DL(t).datas[e]}}))}function PL(t,e,n){DL(t).datas={},K(e,(function(e,i){NL(e,i,t,n)}))}function NL(t,e,n,i){DL(n).datas[e]=t,DL(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=LL,t.getLinkedDataAll=OL}const RL=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,PL(e,n,t),K(n,(function(n){K(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,rt(AL,t))}))})),e.wrapMethod("cloneShallow",rt(EL,t)),K(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,rt(kL,t))})),St(n[e.dataType]===e)};var zL=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){at(t)&&(n=e,e=t,t=null),st(t=t||{})&&(t={order:t});var i,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),BL=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var r=new t(n),o=[],a=1;!function t(e,n){var i=e.value;a=Math.max(a,ot(i)?i.length:1),o.push(e);var s=new zL(ka(e.name,""),r);n?function(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}(s,n):r.root=s,r._nodes.push(s);var l=e.children;if(l)for(var u=0;u<l.length;u++)t(l[u],s)}(e),r.root.updateDepthAndHeight(0);var s=lw(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new aw(s,n);return l.initData(o),i&&i(l),RL({mainData:l,struct:r,structAttr:"tree"}),r.update(),r},t}();const VL=BL;function HL(t,e,n){if(t&&q(e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if(st(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function FL(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function WL(t,e){return q(FL(t),e)>=0}function GL(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var jL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return m(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new ih(n,this,this.ecModel),r=VL.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))})),o=0;r.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return sg("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=GL(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:Pd.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Eg);const $L=jL;function UL(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function qL(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=bd(t,e).refContainer,i=vd(t.getBoxLayoutParams(),n);t.layoutInfo=i;var r=t.get("layout"),o=0,a=0,s=null;"radial"===r?(o=2*Math.PI,a=Math.min(i.height,i.width)/2,s=hL((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(o=i.width,a=i.height,s=hL());var l=t.getData().tree.root,u=l.children[0];if(u){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(l),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;i=o.pop();)e(i,n)}(u,uL,s),l.hierNode.modifier=-u.hierNode.prelim,UL(u,cL);var c=u,h=u,d=u;UL(u,(function(t){var e=t.getLayout().x;e<c.getLayout().x&&(c=t),e>h.getLayout().x&&(h=t),t.depth>d.depth&&(d=t)}));var p=c===h?1:s(c,h)/2,f=p-c.getLayout().x,g=0,m=0,y=0,v=0;if("radial"===r)g=o/(h.getLayout().x+p+f),m=a/(d.depth-1||1),UL(u,(function(t){y=(t.getLayout().x+f)*g,v=(t.depth-1)*m;var e=dL(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)}));else{var x=t.getOrient();"RL"===x||"LR"===x?(m=a/(h.getLayout().x+p+f),g=o/(d.depth-1||1),UL(u,(function(t){v=(t.getLayout().x+f)*m,y="LR"===x?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)}))):"TB"!==x&&"BT"!==x||(g=o/(h.getLayout().x+p+f),m=a/(d.depth-1||1),UL(u,(function(t){y=(t.getLayout().x+f)*g,v="TB"===x?(t.depth-1)*m:a-(t.depth-1)*m,t.setLayout({x:y,y:v},!0)})))}}}(t,e)}))}function YL(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();j(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)}))}))}var XL=["treemapZoomToNode","treemapRender","treemapMove"];function ZL(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=up(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)}))}function KL(t){var e=0;K(t.children,(function(t){KL(t);var n=t.value;ot(n)&&(n=n[0]),e+=n}));var n=t.value;ot(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),ot(t.value)?t.value[0]=n:t.value=n}const JL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};KL(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new ih({itemStyle:r},this,e);i=t.levels=function(t,e){var n,i,r=wa(e.get("color")),o=wa(e.get(["aria","decal","decals"]));if(r){K(t=t||[],(function(t){var e=new ih(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)}));var a=t[0]||(t[0]={});return n||(a.color=r.slice()),!i&&o&&(a.decal=o.slice()),t}}(i,e);var a=J(i||[],(function(t){return new ih(t,o,e)}),this),s=VL.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}));return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return sg("nameValue",{name:i.getName(t),value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=GL(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},j(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=Et(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){ZL(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:Pd.size.l,top:Pd.size.xxxl,right:Pd.size.l,bottom:Pd.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:Pd.size.m,emptyItemWidth:25,itemStyle:{color:Pd.color.backgroundShade,textStyle:{color:Pd.color.secondary}},emphasis:{itemStyle:{color:Pd.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:Pd.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:Pd.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Eg);var QL=function(){function t(t){this.group=new Ao,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c=bd(t,e).refContainer,h={left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},d={emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]},p=vd(h,c);this._prepare(n,d,l),this._renderContent(t,d,p,a,s,l,u,i),wd(o,h,c)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=ka(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a,s){for(var l=0,u=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),h=e.totalWidth,d=e.renderList,p=r.getModel("itemStyle").getItemStyle(),f=d.length-1;f>=0;f--){var g=d[f],m=g.node,y=g.width,v=g.text;h>n.width&&(h-=y-u,y=u,v=null);var x=new Dm({shape:{points:tO(l,0,y,c,f===d.length-1,0===f)},style:$(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new mu({style:Lc(o,{text:v})}),textConfig:{position:"inside"},z2:1e4*Cu,onclick:rt(s,m)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=Lc(a,{text:v}),x.ensureState("emphasis").style=p,lc(x,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(x),eO(x,t,m),l+=y+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function tO(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function eO(t,e,n){yu(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&GL(n,e)}}const nO=QL;var iO=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}(),rO=Ao,oO=Ql,aO="label",sO="upperLabel",lO=10*Cu,uO=2*Cu,cO=3*Cu,hO=es([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),dO=function(t){var e=hO(t);return e.stroke=e.fill=e.lineWidth=null,e},pO=Pa(),fO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return m(e,t),e.prototype.render=function(t,e,n,i){if(!(q(e.findComponents({mainType:"series",subType:"treemap",query:i}),t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var r=HL(i,["treemapZoomToNode","treemapRootToNode"],t),o=i&&i.type,a=t.layoutInfo,s=!this._oldTree,l=this._storage,u="treemapRootToNode"===o&&r&&l?{rootNodeGroup:l.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,c=this._giveContainerGroup(a),h=t.get("animation"),d=this._doRender(c,t,u);!h||s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?d.renderFinally():this._doAnimation(c,d,t,u),this._resetController(n),this._renderBreadcrumb(t,n,r)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new rO,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i=e.getData().tree,r=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function u(t,i,r,u){return function(t,e,n,i,r,o,a,s,l,u){if(a){var c=a.getLayout(),h=t.getData(),d=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var p=c.width,f=c.height,g=c.borderWidth,m=c.invisible,y=a.getRawIndex(),v=s&&s.getRawIndex(),x=a.viewChildren,_=c.upperHeight,b=x&&x.length,w=d.getModel("itemStyle"),S=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),C=d.getModel(["select","itemStyle"]),T=w.get("borderRadius")||0,I=V("nodeGroup",rO);if(I){if(l.add(I),I.x=c.x||0,I.y=c.y||0,I.markRedraw(),pO(I).nodeWidth=p,pO(I).nodeHeight=f,c.isAboveViewRoot)return I;var D=V("background",oO,u,uO);D&&function(e,n,i){var r=yu(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:T}),m)R(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=dO(w);l.fill=s;var u=hO(S);u.fill=S.get("borderColor");var c=hO(M);c.fill=M.get("borderColor");var h=hO(C);if(h.fill=C.get("borderColor"),i){var d=p-2*g;z(n,s,o.opacity,{x:g,y:0,width:d,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,$u(n)}e.add(n)}(I,D,b&&c.upperLabelHeight);var A=d.getModel("emphasis"),k=A.get("focus"),E=A.get("blurScope"),L=A.get("disabled"),O="ancestor"===k?a.getAncestorsIndices():"descendant"===k?a.getDescendantIndices():k;if(b)fc(I)&&pc(I,!1),D&&(pc(D,!L),h.setItemGraphicEl(a.dataIndex,D),uc(D,O,E));else{var P=V("content",oO,u,cO);P&&function(e,n){var i=yu(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(p-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:T}),m)R(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=dO(w);u.fill=l,u.decal=s.decal;var c=hO(S),h=hO(M),d=hO(C);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,$u(n)}e.add(n)}(I,P),D.disableMorphing=!0,D&&fc(D)&&pc(D,!1),pc(I,!L),h.setItemGraphicEl(a.dataIndex,I);var N=d.getShallow("cursor");N&&P.attr("cursor",N),uc(I,O,E)}return I}}}function R(t){!t.invisible&&o.push(t)}function z(e,n,i,r){var o=d.getModel(r?sO:aO),s=ka(d.get("name"),null),l=o.getShallow("show");kc(e,Ec(d,r?sO:aO),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var h=u.style,p=wt(h.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:e.shape.height)-p[0]-p[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",B(h,r,c);var f=u.getState("emphasis");B(f?f.style:null,r,c)}}function B(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function V(t,o,s,l){var u=null!=v&&n[t][v],c=r[t];return u?(n[t][v]=null,function(t,e){var n=t[y]={};e instanceof rO?(n.oldX=e.x,n.oldY=e.y):n.oldShape=j({},e.shape)}(c,u)):m||((u=new o)instanceof Rs&&(u.z2=function(t,e){return t*lO+e}(s,l)),function(t,e){var n=t[y]={},o=a.parentNode,s=e instanceof Ao;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}(c,u)),e[t][y]=u}}(e,a,s,n,o,l,t,i,r,u)}!function t(e,n,i,r,o){function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,c=null!=s?n[s]:null,h=u(l,c,i,o);h&&t(l&&l.viewChildren||[],c&&c.viewChildren||[],h,r,o+1)}r?(n=e,K(e,(function(t,e){!t.isRemoved()&&s(e,e)}))):new Nb(n,e,a,a).add(s).update(s).remove(rt(s,null)).execute()}(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var c=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&K(t,(function(t,n){var i=e[n];K(t,(function(t){t&&(i.push(t),pO(t).willDelete=!0)}))})),e}(s);if(this._oldTree=i,this._storage=a,this._controllerHost){var h=this.seriesModel.layoutInfo,d=i.root.getLayout();d.width===h.width&&d.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:c,renderFinally:function(){K(c,(function(t){K(t,(function(t){t.parent&&t.parent.remove(t)}))})),K(l,(function(t){t.invisible=!0,t.dirty()}))}}},e.prototype._doAnimation=function(t,e,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(at(r)?0:r)||0,s=(at(o)?null:o)||"cubicOut",l=new iO;K(e.willDeleteEls,(function(t,e){K(t,(function(t,n){if(!t.invisible){var r,o=t.parent,u=pO(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),r="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}r&&l.add(t,r,a,0,s)}}))})),K(this._storage,(function(t,n){K(t,(function(t,i){var r=e.lastsForAnimation[n][i],o={};r&&(t instanceof Ao?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=j({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))}))}),this),this._state="animating",l.finished(it((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this,n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost);var r=this.seriesModel;n||((n=this._controller=new Pk(t.getZr())).on("pan",it(this._onPan,this)),n.on("zoom",it(this._onZoom,this))),n.enable(r.get("roam"),{api:t,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:function(t,n,i){var r=e._containerGroup;return!!r&&r.getBoundingRect().contain(n-r.x,i-r.y)}}}),i.zoomLimit=r.get("scaleLimit"),i.zoom=r.get("zoom")},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,i=t.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var a,s=new mn(o.x,o.y,o.width,o.height),l=this._controllerHost;a=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=i,a){var c=a.min||0,h=a.max||1/0;u=Math.max(Math.min(h,u),c)}var d=u/l.zoom;l.zoom=u;var p=this.seriesModel.layoutInfo,f=[1,0,0,1,0,0];je(f,f,[-(e-=p.x),-(n-=p.y)]),Ue(f,f,[d,d]),je(f,f,[e,n]),s.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&nd(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new nO(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(WL(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(rv);const gO=fO;var mO=K,yO=ct,vO=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=F(e);this.type=i,this.mappingMethod=n,this._normalizeData=DO[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(xO(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,K(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(mO(e,(function(t,e){n[t]=e})),!ot(i)){var r=[];ct(i)?mO(i,(function(t,e){var i=n[e];r[null!=i?i:-1]=t})):r[-1]=i,i=IO(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):xO(r,!0):(St("linear"!==n||r.dataExtent),xO(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return it(this._normalizeData,this)},t.listVisualTypes=function(){return nt(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){ct(t)?K(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=ot(e)?[]:ct(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&mO(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(ot(t))t=t.slice();else{if(!yO(t))return[];var e=[];mO(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||st(s)&&s===t+"")return o;n&&h(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(AO(c[1],t,u[1]))return o}else if(u[1]===1/0){if(AO(c[0],u[0],t))return o}else if(AO(c[0],u[0],t)&&AO(c[1],t,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}},t.visualHandlers={color:{applyVisual:wO("color"),getColorMapper:function(){var t=this.option;return it("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),SO.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=Ni(e,t.parsedVisual,i),r?i:Fi(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Fi(Ni(t,this.option.parsedVisual),"rgba")},category:SO,piecewise:function(t,e){var n=TO.call(this,e);return null==n&&(n=Fi(Ni(t,this.option.parsedVisual),"rgba")),n},fixed:MO}},colorHue:_O((function(t,e){return Vi(t,e)})),colorSaturation:_O((function(t,e){return Vi(t,null,e)})),colorLightness:_O((function(t,e){return Vi(t,null,null,e)})),colorAlpha:_O((function(t,e){return Hi(t,e)})),decal:{applyVisual:wO("decal"),_normalizedToVisual:{linear:null,category:SO,piecewise:null,fixed:null}},opacity:{applyVisual:wO("opacity"),_normalizedToVisual:CO([0,1])},liftZ:{applyVisual:wO("liftZ"),_normalizedToVisual:{linear:MO,category:MO,piecewise:MO,fixed:MO}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:bO,category:SO,piecewise:function(t,e){var n=TO.call(this,e);return null==n&&(n=bO.call(this,t)),n},fixed:MO}},symbolSize:{applyVisual:wO("symbolSize"),_normalizedToVisual:CO([0,1])}},t}();function xO(t,e){var n=t.visual,i=[];ct(n)?mO(n,(function(t){i.push(t)})):null!=n&&i.push(n),e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),IO(t,i)}function _O(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:CO([0,1])}}function bO(t){var e=this.option.visual;return e[Math.round(qo(t,[0,1],[0,e.length-1],!0))]||{}}function wO(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function SO(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function MO(){return this.option.visual[0]}function CO(t){return{linear:function(e){return qo(e,t,this.option.visual,!0)},category:SO,piecewise:function(e,n){var i=TO.call(this,n);return null==i&&(i=qo(e,t,this.option.visual,!0)),i},fixed:MO}}function TO(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[vO.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function IO(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=J(e,(function(t){return Ei(t)||[0,0,0,1]}))),e}var DO={linear:function(t){return qo(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=vO.findPieceIndex(t,e,!0);if(null!=n)return qo(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?-1:e},fixed:Rt};function AO(t,e,n){return t?e<=n:e<n}const kO=vO;var EO=Pa();const LO={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||OO(e,{},t.getViewRoot().getAncestors(),t)}};function OO(t,e,n,i){var r=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel("itemStyle"),u=function(t,e,n){var i=j({},e),r=n.designatedVisualItemStyle;return K(["color","colorAlpha","colorSaturation"],(function(n){r[n]=e[n];var o=t.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}(l,e,i),c=a.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(h=function(t,e){return null!=e?Vi(e,null,null,t):null}(d,s=PO(u))),c.stroke=h;var p=t.viewChildren;if(p&&p.length){var f=function(t,e,n,i,r,o){if(o&&o.length){var a=RO(e,"color")||null!=r.color&&"none"!==r.color&&(RO(e,"colorAlpha")||RO(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new kO(h);return EO(d).drColorMappingBy=c,d}}}(0,r,o,0,u,p);K(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=j({},e);if(r){var s=r.type,l="color"===s&&EO(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(r,u,t,e,f,i);OO(t,o,n,i)}}))}else s=PO(u),c.fill=s}}function PO(t){var e=NO(t,"color");if(e){var n=NO(t,"colorAlpha"),i=NO(t,"colorSaturation");return i&&(e=Vi(e,null,null,i)),n&&(e=Hi(e,n)),e}}function NO(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function RO(t,e){var n=t.get(e);return ot(n)&&n.length?{name:e,range:n}:null}var zO=Math.max,BO=Math.min,VO=vt,HO=K,FO=["itemStyle","borderWidth"],WO=["itemStyle","gapWidth"],GO=["upperLabel","show"],jO=["upperLabel","height"];const $O={seriesType:"treemap",reset:function(t,e,n,i){var r=t.option,o=bd(t,n).refContainer,a=vd(t.getBoxLayoutParams(),o),s=r.size||[],l=Yo(VO(a.width,s[0]),o.width),u=Yo(VO(a.height,s[1]),o.height),c=i&&i.type,h=HL(i,["treemapZoomToNode","treemapRootToNode"],t),d="treemapRender"===c||"treemapMove"===c?i.rootRect:null,p=t.getViewRoot(),f=FL(p);if("treemapMove"!==c){var g="treemapZoomToNode"===c?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var c=0,h=o.children,d=0,p=h.length;d<p;d++)c+=h[d].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=o.getModel(),m=g.get(FO);(u+=4*m*m+(3*m+Math.max(m,ZO(g)))*Math.pow(u,.5))>ra&&(u=ra),a=o}u<l&&(u=l);var y=Math.pow(u/l,.5);return[i*y,r*y]}(t,h,p,l,u):d?[d.width,d.height]:[l,u],m=r.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var y={squareRatio:r.squareRatio,sort:m,leafDepth:r.leafDepth};p.hostTree.clearLayouts();var v={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};p.setLayout(v),UO(p,y,!1,0),v=p.getLayout(),HO(f,(function(t,e){var n=(f[e+1]||p).getValue();t.setLayout(j({dataExtent:[n,n],borderWidth:0,upperHeight:0},v))}))}var x=t.getData().tree.root;x.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;for(var a=[o.width/2,o.height/2],s=r;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(a,d,h),!0),t.setLayoutInfo(a),XO(x,new mn(-a.x,-a.y,n.getWidth(),n.getHeight()),f,p,0)}};function UO(t,e,n,i){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=t.getModel(),l=s.get(FO),u=s.get(WO)/2,c=ZO(s),h=Math.max(l,c),d=l-u,p=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0);var f=(r=zO(r-2*d,0))*(o=zO(o-d-p,0)),g=function(t,e,n,i,r,o){var a=t.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return t.viewChildren=[];a=tt(a,(function(t){return!t.isRemoved()})),function(t,e){e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i}))}(a,s);var u=function(t,e,n){for(var i=0,r=0,o=e.length;r<o;r++)i+=e[r].getValue();var a,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],HO(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var d=a[c].getValue()/u.sum*n;a[c].setLayout({area:d})}return l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}(t,s,f,e,n,i);if(g.length){var m={x:d,y:p,width:r,height:o},y=BO(r,o),v=1/0,x=[];x.area=0;for(var _=0,b=g.length;_<b;){var w=g[_];x.push(w),x.area+=w.getLayout().area;var S=qO(x,y,e.squareRatio);S<=v?(_++,v=S):(x.area-=x.pop().getLayout().area,YO(x,y,m,u,!1),y=BO(m.width,m.height),x.length=x.area=0,v=1/0)}if(x.length&&YO(x,y,m,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(_=0,b=g.length;_<b;_++)UO(g[_],e,n,i+1)}}}function qO(t,e,n){for(var i=0,r=1/0,o=0,a=void 0,s=t.length;o<s;o++)(a=t[o].getLayout().area)&&(a<r&&(r=a),a>i&&(i=a));var l=t.area*t.area,u=e*e*n;return l?zO(u*i/l,l/(u*r)):1/0}function YO(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;h<d;h++){var p=t[h],f={},g=c?p.getLayout().area/c:0,m=f[l[a]]=zO(c-2*i,0),y=n[s[o]]+n[l[o]]-u,v=h===d-1||y<g?y:g,x=f[l[o]]=zO(v-2*i,0);f[s[a]]=n[s[a]]+BO(i,m/2),f[s[o]]=u+BO(i,x/2),u+=v,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function XO(t,e,n,i,r){var o=t.getLayout(),a=n[r],s=a&&a===t;if(!(a&&!s||r===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new mn(e.x-o.x,e.y-o.y,e.width,e.height);HO(t.viewChildren||[],(function(t){XO(t,l,n,i,r+1)}))}}function ZO(t){return t.get(GO)?t.get(jO):0}function KO(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph().data,r=n.mapArray(n.getName);i.filterSelf((function(t){var n=i.getItemModel(t).getShallow("category");if(null!=n){ut(n)&&(n=r[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0}))}))}function JO(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){st(e)&&(e=r["ec-"+e]);var o=n.getItemVisual(e,"style");j(i.ensureUniqueItemVisual(t,"style"),o);for(var a=["symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)i.setItemVisual(t,a[s],n.getItemVisual(e,a[s]))}}))}))}function QO(t){return t instanceof Array||(t=[t,t]),t}function tP(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=QO(t.get("edgeSymbol")),r=QO(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),r=e.getEdgeByIndex(t),o=QO(i.getShallow("symbol",!0)),a=QO(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(j(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style"),l.stroke=u&&u.fill}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])}))}))}var eP="--\x3e",nP=function(t){return t.get("autoCurveness")||null},iP=function(t,e){var n=nP(t),i=20,r=[];if(ut(n))i=n;else if(ot(n))return void(t.__curvenessList=n);e>i&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=r},rP=function(t,e,n){var i=[t.id,t.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[n.uid,i,r].join(eP)},oP=function(t){var e=t.split(eP);return[e[0],e[2],e[1]].join(eP)},aP=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function sP(t,e,n,i){var r=nP(e),o=ot(r);if(!r)return null;var a=function(t,e){var n=rP(t.node1,t.node2,e);return e.__edgeMap[n]}(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=function(t,e){return aP(rP(t.node1,t.node2,e),e)+aP(rP(t.node2,t.node1,e),e)}(t,e);iP(e,u),t.lineStyle=t.lineStyle||{};var c=rP(t.node1,t.node2,e),h=e.__curvenessList,d=o||u%2?0:1;if(a.isForward)return h[d+s];var p=oP(c),f=aP(p,e),g=h[s+f+d];return i?o?r&&0===r[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:h[s+f+d]}function lP(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),uP(n,t)}}function uP(t,e){t.eachEdge((function(t,n){var i=_t(t.getModel().get(["lineStyle","curveness"]),-sP(t,e,n,!0),0),r=Gt(t.node1.getLayout()),o=Gt(t.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),t.setLayout(a)}))}function cP(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),r=[];K(n.dimensions,(function(t){r=r.concat(i.mapDimensionsAll(t))}));for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}uP(i.graph,t)}else e&&"none"!==e||lP(t)}))}function hP(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scaleX;return((e.getZoom()-1)*n+1)/i}function dP(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var pP=Math.PI,fP=[];function gP(t,e,n,i){var r=t.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),h){if(n){var d=r.pointToData(i),p=d[0],f=d[1],g=[p-l,f-u];ne(g,g),ee(g,g,c),n.setLayout([l+g[0],u+g[1]],!0),yP(n,t.get(["circular","rotateLabel"]),l,u)}mP[e](t,s,a,c,l,u,h),s.eachEdge((function(e,n){var i,r=_t(e.getModel().get(["lineStyle","curveness"]),sP(e,t,n),0),o=Gt(e.node1.getLayout()),a=Gt(e.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+r&&(i=[l*(r*=3)+s*(1-r),u*r+c*(1-r)]),e.setLayout([o,a,i])}))}}}var mP={value:function(t,e,n,i,r,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,i,r,o,a){var s=0;fP.length=a;var l=hP(t);e.eachNode((function(t){var e=dP(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=pP/2),fP[t.dataIndex]=n,s+=2*n}));var u=(2*pP-s)/a/2,c=0;e.eachNode((function(t){var e=u+fP[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+o]),c+=e}))}};function yP(t,e,n,i){var r=t.getGraphicEl();if(r){var o=t.getModel().get(["label","rotate"])||0,a=r.getSymbolPath();if(e){var s=t.getLayout(),l=Math.atan2(s[1]-i,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var c=u?"left":"right";a.setTextConfig({rotation:-l,position:c,origin:"center"});var h=a.ensureState("emphasis");j(h.textConfig||(h.textConfig={}),{position:c})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function vP(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&gP(t,"symbolSize")}))}var xP=Ut;function _P(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,o=i.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?r.each((function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&gP(t,"value"):lP(t);var l=r.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),d=ot(c)?c:[c,c],p=ot(h)?h:[h,h];p=[p[1],p[0]];var f=r.mapArray("value",(function(t,e){var n=r.getItemLayout(e),i=qo(t,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(e,n){var r=i.getEdgeByIndex(n),o=qo(e,u,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=r.getModel(),s=_t(r.getModel().get(["lineStyle","curveness"]),-sP(r,t,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),m=e.getBoundingRect(),y=function(t,e,n){for(var i=t,r=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var h=i[c];h.p||(h.p=Ft(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=Gt(h.p),h.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){p=t},step:function(t){d&&d(i,r);for(var e=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1;qt(e,(m=a.n2).p,s.p);var c=Yt(e)-a.d,h=m.w/(s.w+m.w);isNaN(h)&&(h=0),ne(e,e),!s.fixed&&xP(s.p,s.p,e,h*c*g),!m.fixed&&xP(m.p,m.p,e,-(1-h)*c*g)}}for(o=0;o<n;o++)(x=i[o]).fixed||(qt(e,l,x.p),xP(x.p,x.p,e,u*g));for(o=0;o<n;o++){s=i[o];for(var f=o+1;f<n;f++){var m;qt(e,(m=i[f]).p,s.p),0===(c=Yt(e))&&(jt(e,Math.random()-.5,Math.random()-.5),c=1);var y=(s.rep+m.rep)/c/c;!s.fixed&&xP(s.pp,s.pp,e,y),!m.fixed&&xP(m.pp,m.pp,e,-y)}}var v=[];for(o=0;o<n;o++){var x;(x=i[o]).fixed||(qt(v,x.p,x.pp),xP(x.p,x.p,v,g),Wt(x.pp,x.p))}var _=(g*=.992)<.01;p&&p(i,r,_),t&&t(_)}}}(f,g,{rect:m,gravity:a.get("gravity"),friction:a.get("friction")});y.beforeStep((function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].fixed&&Wt(t[n].p,i.getNodeByIndex(n).getLayout())})),y.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||i.getNodeByIndex(a).setLayout(t[a].p),n[r.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=i.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,d=u.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],Wt(d[0],c),Wt(d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}})),t.forceLayout=y,t.preservedPoints=n,y.step()}else t.forceLayout=null}))}function bP(t,e){var n=[];return t.eachSeriesByType("graph",(function(i){ld({targetModel:i,coordSysType:"view",coordSysProvider:function(){var r=i.getData(),o=[],a=[];$s(r.mapArray((function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]})),o,a),a[0]-o[0]==0&&(a[0]+=1,o[0]-=1),a[1]-o[1]==0&&(a[1]+=1,o[1]-=1);var s=(a[0]-o[0])/(a[1]-o[1]),l=function(t,e,n){var i=bd(t,e),r=j(t.getBoxLayoutParams(),{aspect:n});return xd(t,vd(r,i.refContainer),n)}(i,e,s);isNaN(s)&&(o=[l.x,l.y],a=[l.x+l.width,l.y+l.height]);var u=a[0]-o[0],c=a[1]-o[1],h=new YE(null,{api:e,ecModel:t});return h.zoomLimit=i.get("scaleLimit"),h.setBoundingRect(o[0],o[1],u,c),h.setViewRect(l.x,l.y,l.width,l.height),h.setCenter(i.get("center")),h.setZoom(i.get("zoom")),n.push(h),h},isDefaultDataCoordSys:!0})})),n}var wP,SP=Nm.prototype,MP=Hm.prototype,CP=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function TP(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}m((function(){return null!==wP&&wP.apply(this,arguments)||this}),wP=CP);const IP=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:Pd.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new CP},e.prototype.buildPath=function(t,e){TP(e)?SP.buildPath.call(this,t,e):MP.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return TP(this.shape)?SP.pointAt.call(this,t):MP.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=TP(e)?[e.x2-e.x1,e.y2-e.y1]:MP.tangentAt.call(this,t);return ne(n,n)},e}(Bl);var DP=["fromSymbol","toSymbol"];function AP(t){return"_"+t+"Type"}function kP(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=fx(r);return i+l+gx(a||0,l)+(o||"")+(s||"")}function EP(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=fx(r),u=gx(a||0,l),c=px(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function LP(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var OP=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return m(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,r=t.getItemLayout(e),o=t.getItemVisual(e,"z2"),a=function(t){var e=new IP({name:"line",subPixelOptimize:!0});return LP(e.shape,t),e}(r);a.shape.percent=0,bc(a,{z2:xt(o,0),shape:{percent:1}},i,e),this.add(a),K(DP,(function(n){var i=EP(n,t,e);this.add(i),this[AP(n)]=kP(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};LP(a.shape,o),_c(r,a,i,e),K(DP,(function(n){var i=kP(n,t,e),r=AP(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=EP(n,t,e);this.add(o)}this[r]=i}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(e),p=d.getModel("emphasis");o=p.getModel("lineStyle").getLineStyle(),a=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),u=p.get("disabled"),c=p.get("focus"),h=p.get("blurScope"),l=Ec(d)}var f=t.getItemVisual(e,"style"),g=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,K(DP,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<Su.length;n++){var i=Su[n],o=r.getState(i);if(o){var a=o.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var m=i.getRawValue(e);kc(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||Pd.color.neutral99,defaultOpacity:f.opacity,defaultText:(null==m?t.getName(e):isFinite(m)?Zo(m):m)+""});var y=this.getTextContent();if(y){var v=l.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=v.get("position")||"middle";var x=v.get("distance");ot(x)||(x=[x,x]),y.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),lc(this,c,h,u)},e.prototype.highlight=function(){Yu(this)},e.prototype.downplay=function(){Xu(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");LP(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(e||n||i&&!i.ignore){for(var r=1,o=this.parent;o;)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=qt([],u,l);if(ne(c,c),e&&(e.setPosition(l),S(e,0),e.scaleX=e.scaleY=r*s,e.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,p=i.__labelDistance,f=p[0]*r,g=p[1]*r,m=s/2,y=a.tangentAt(m),v=[y[1],-y[0]],x=a.pointAt(m);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var _=y[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(y[1],y[0]);u[0]<l[0]&&(b=Math.PI+b),i.rotation=b}var w=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(i.__position){case"end":i.x=c[0]*f+u[0],i.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+w,h=y[0]<0?"right":"left",i.originX=-f*_,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+w,h="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+u[0],i.y=u[1]+w,h=y[0]>=0?"right":"left",i.originX=f*_,i.originY=-w}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(Ao);const PP=OP;function NP(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Ec(e)}}function RP(t){return isNaN(t[0])||isNaN(t[1])}function zP(t){return t&&!RP(t[0])&&!RP(t[1])}const BP=function(){function t(t){this.group=new Ao,this._LineCtor=t||PP}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=NP(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=NP(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++)if(zP(e.getItemLayout(i))){var r=new this._LineCtor(e,i,this._seriesScope);r.traverse(n),this.group.add(r),e.setItemGraphicEl(i,r),this._progressiveEls.push(r)}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){Fy(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(zP(t.getItemLayout(e))){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,i,r){var o=t.getItemGraphicEl(n);zP(e.getItemLayout(i))?(o?o.updateData(e,i,r):o=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},t}();var VP=[],HP=[],FP=[],WP=ai,GP=ae,jP=Math.abs;function $P(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1)VP[0]=WP(r[0],o[0],a[0],c),VP[1]=WP(r[1],o[1],a[1],c),(p=jP(GP(VP,e)-l))<s&&(s=p,i=c);for(var h=0;h<32;h++){var d=i+u;HP[0]=WP(r[0],o[0],a[0],i),HP[1]=WP(r[1],o[1],a[1],i),FP[0]=WP(r[0],o[0],a[0],d),FP[1]=WP(r[1],o[1],a[1],d);var p=GP(HP,e)-l;if(jP(p)<.01)break;var f=GP(FP,e)-l;u/=2,p<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function UP(t,e){var n=[],i=ui,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[Gt(l[0]),Gt(l[1])],l[2]&&l.__original.push(Gt(l[2])));var h=l.__original;if(null!=l[2]){if(Wt(r[0],h[0]),Wt(r[1],h[2]),Wt(r[2],h[1]),u&&"none"!==u){var d=dP(t.node1),p=$P(r,h[0],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}c&&"none"!==c&&(d=dP(t.node2),p=$P(r,h[1],d*e),i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]),Wt(l[0],r[0]),Wt(l[1],r[2]),Wt(l[2],r[1])}else Wt(o[0],h[0]),Wt(o[1],h[1]),qt(a,o[1],o[0]),ne(a,a),u&&"none"!==u&&(d=dP(t.node1),Ut(o[0],o[0],a,d*e)),c&&"none"!==c&&(d=dP(t.node2),Ut(o[1],o[1],a,-d*e)),Wt(l[0],o[0]),Wt(l[1],o[1])}))}var qP=Pa();function YP(t,e){t&&(qP(t).bridge=e)}function XP(t){return"view"===t.type}var ZP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){var n=new jT,i=new BP,r=this.group,o=new Ao;this._controller=new Pk(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),r.add(o),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=o,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=!1;this._model=t,this._api=n,this._active=!0;var a=this._getThumbnailInfo();a&&a.bridge.reset(n);var s=this._symbolDraw,l=this._lineDraw;if(XP(r)){var u={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?this._mainGroup.attr(u):_c(this._mainGroup,u,t)}UP(t.getGraph(),hP(t));var c=t.getData();s.updateData(c);var h=t.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(null,t,n),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get(["force","layoutAnimation"]);d&&(o=!0,this._startForceLayoutIteration(d,n,p));var f=t.get("layout");c.graph.eachNode((function(e){var r=e.dataIndex,o=e.getGraphicEl(),a=e.getModel();if(o){o.off("drag").off("dragend");var s=a.get("draggable");s&&o.on("drag",(function(a){switch(f){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(r),c.setItemLayout(r,[o.x,o.y]);break;case"circular":c.setItemLayout(r,[o.x,o.y]),e.setLayout({fixed:!0},!0),gP(t,"symbolSize",e,[a.offsetX,a.offsetY]),i.updateLayout(t);break;default:c.setItemLayout(r,[o.x,o.y]),uP(t.getGraph(),t),i.updateLayout(t)}})).on("dragend",(function(){d&&d.setUnfixed(r)})),o.setDraggable(s,!!a.get("cursor")),"adjacency"===a.get(["emphasis","focus"])&&(yu(o).focus=e.getAdjacentDataIndices())}})),c.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(yu(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var g="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),m=c.getLayout("cx"),y=c.getLayout("cy");c.graph.eachNode((function(t){yP(t,g,m,y)})),this._firstRender=!1,o||this._renderThumbnail(t,n,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e,n){var i=this,r=!1;!function o(){t.step((function(t){i.updateLayout(i._model),!t&&r||(r=!0,i._renderThumbnail(i._model,e,i._symbolDraw,i._lineDraw)),(i._layouting=!t)&&(n?i._layoutTimeout=setTimeout(o,16):o())}))}()},e.prototype._updateController=function(t,e,n){var i=this._controller,r=this._controllerHost,o=e.coordinateSystem;XP(o)?(i.enable(e.get("roam"),{api:n,zInfo:{component:e},triggerInfo:{roamTrigger:e.get("roamTrigger"),isInSelf:function(t,e,n){return o.containPoint([e,n])},isInClip:function(e,n,i){return!t||t.contain(n,i)}}}),r.zoomLimit=e.get("scaleLimit"),r.zoom=o.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY})}))):i.disable()},e.prototype.updateViewOnPan=function(t,e,n){this._active&&(Nk(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},e.prototype.updateViewOnZoom=function(t,e,n){this._active&&(Rk(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),UP(t.getGraph(),hP(t)),this._lineDraw.updateLayout(),e.updateLabelLayout(),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=hP(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){this._active&&(UP(t.getGraph(),hP(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,e=t.coordinateSystem;if("view"===e.type){var n=function(t){if(t)return qP(t).bridge}(t);if(n)return{bridge:n,coordSys:e}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(t.coordSys.transform,this._api)},e.prototype._renderThumbnail=function(t,e,n,i){var r=this._getThumbnailInfo();if(r){var o=new Ao,a=n.group.children(),s=i.group.children(),l=new Ao,u=new Ao;o.add(u),o.add(l);for(var c=0;c<a.length;c++){var h=(y=a[c]).children()[0],d=y.x,p=y.y,f=j(F(h.shape),{width:h.scaleX,height:h.scaleY,x:d-h.scaleX/2,y:p-h.scaleY/2}),g=F(h.style),m=new h.constructor({shape:f,style:g,z2:151});u.add(m)}for(c=0;c<s.length;c++){var y,v=(y=s[c]).children()[0],x=(g=F(v.style),f=F(v.shape),new IP({style:g,shape:f,z2:151}));l.add(x)}r.bridge.renderContent({api:e,roamType:t.get("roam"),viewportRect:null,group:o,targetTrans:r.coordSys.transform})}},e.type="graph",e}(rv);const KP=ZP;function JP(t){return"_EC_"+t}var QP=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[JP(t)]){var i=new tN(t,e);return i.hostGraph=this,this.nodes.push(i),n[JP(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[JP(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(ut(t)&&(t=this.nodes[t]),ut(e)&&(e=this.nodes[e]),t instanceof tN||(t=i[JP(t)]),e instanceof tN||(e=i[JP(e)]),t&&e){var o=t.id+"-"+e.id,a=new eN(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof tN&&(t=t.id),e instanceof tN&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof tN||(e=this._nodesMap[JP(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null))for(var a=[e];a.length;){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(i,c,s))return;a.push(c),c.__visited=!0}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)n[t.getRawIndex(r)].dataIndex=r;for(e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0})),r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)e.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),tN=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=Et(),e=Et(),n=0,i=this.edges.length;n<i;n++){var r=this.edges[n];if(!(r.dataIndex<0)){t.set(r.dataIndex,!0);for(var o=[r.node1],a=[r.node2],s=0;s<o.length;){var l=o[s];s++,e.set(l.dataIndex,!0);for(var u=l.inEdges,c=0,h=u.length,d=void 0,p=void 0;c<h;c++)(p=(d=u[c]).dataIndex)>=0&&!t.hasKey(p)&&(t.set(p,!0),o.push(d.node1))}for(s=0;s<a.length;){var f=a[s];s++,e.set(f.dataIndex,!0);for(var g=f.outEdges,m=(c=0,g.length),y=void 0,v=void 0;c<m;c++)(v=(y=g[c]).dataIndex)>=0&&!t.hasKey(v)&&(t.set(v,!0),a.push(y.node2))}}}return{edge:t.keys(),node:e.keys()}},t}(),eN=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=Et(),e=Et();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],r=0;r<n.length;){var o=n[r];r++,e.set(o.dataIndex,!0);for(var a=0,s=o.inEdges.length,l=void 0,u=void 0;a<s;a++)(u=(l=o.inEdges[a]).dataIndex)>=0&&!t.hasKey(u)&&(t.set(u,!0),n.push(l.node1))}for(r=0;r<i.length;){var c=i[r];r++,e.set(c.dataIndex,!0),a=0,s=c.outEdges.length;for(var h=void 0,d=void 0;a<s;a++)(d=(h=c.outEdges[a]).dataIndex)>=0&&!t.hasKey(d)&&(t.set(d,!0),i.push(h.node2))}return{edge:t.keys(),node:e.keys()}},t}();function nN(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}X(tN,nN("hostGraph","data")),X(eN,nN("hostGraph","edgeData"));const iN=QP;function rN(t,e,n,i,r){for(var o=new iN(i),a=0;a<t.length;a++)o.addNode(vt(t[a].id,t[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<e.length;a++){var c=e[a],h=c.source,d=c.target;o.addEdge(h,d,u)&&(l.push(c),s.push(vt(ka(c.id,null),h+" > "+d)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f||"matrix"===f)p=mw(t,n);else{var g=cd.get(f),m=g&&g.dimensions||[];q(m,"value")<0&&m.concat(["value"]);var y=lw(t,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;(p=new aw(y,n)).initData(t)}var v=new aw(["value"],n);return v.initData(l,s),r&&r(p,v),RL({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:v},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var oN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new uD(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Sa(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i){nP(n=this)&&(n.__curvenessList=[],n.__edgeMap={},iP(n));var a=rN(r,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=ih.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))}));return K(a.edges,(function(t){!function(t,e,n,i){if(nP(n)){var r=rP(t,e,n),o=n.__edgeMap,a=o[oP(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),sg("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return xg({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],(function(t){return null!=t.value?t:j({value:0},t)})),e=new aw(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:Pd.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:Pd.color.primary}}},e}(Eg);const aN=oN;var sN=function(t){function e(e,n,i){var r=t.call(this)||this;yu(r).dataType="node",r.z2=2;var o=new mu;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return m(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.graph.getNodeByIndex(e),a=t.hostModel,s=o.getModel(),l=s.getModel("emphasis"),u=t.getItemLayout(e),c=j(II(s.getModel("itemStyle"),u,!0),u),h=this;if(isNaN(c.startAngle))h.setShape(c);else{i?h.setShape(c):_c(h,{shape:c},a,e);var d=j(II(s.getModel("itemStyle"),u,!0),u);r.setShape(d),r.useStyle(t.getItemVisual(e,"style")),dc(r,s),this._updateLabel(a,s,o),t.setItemGraphicEl(e,h),dc(h,s,"itemStyle");var p=l.get("focus");lc(this,"adjacency"===p?o.getAdjacentDataIndices():p,l.get("blurScope"),l.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this.getTextContent(),r=n.getLayout(),o=(r.startAngle+r.endAngle)/2,a=Math.cos(o),s=Math.sin(o),l=e.getModel("label");i.ignore=!l.get("show");var u=Ec(e),c=n.getVisual("style");kc(i,u,{labelFetcher:{getFormattedLabel:function(n,i,r,o,a,s){return t.getFormattedLabel(n,i,"node",o,_t(a,u.normal&&u.normal.get("formatter"),e.get("name")),s)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:"startArc"});var h,d=l.get("position")||"outside",p=l.get("distance")||0;h="outside"===d?r.r+p:(r.r+r.r0)/2,this.textConfig={inside:"outside"!==d};var f="outside"!==d?l.get("align")||"center":a>0?"left":"right",g="outside"!==d?l.get("verticalAlign")||"middle":s>0?"top":"bottom";i.attr({x:a*h+r.cx,y:s*h+r.cy,rotation:0,style:{align:f,verticalAlign:g}})},e}(bm);const lN=sN;var uN=function(t){function e(e,n,i,r){var o=t.call(this)||this;return yu(o).dataType="edge",o.updateData(e,n,i,r,!0),o}return m(e,t),e.prototype.buildPath=function(t,e){t.moveTo(e.s1[0],e.s1[1]);var n=.7,i=e.clockwise;t.arc(e.cx,e.cy,e.r,e.sStartAngle,e.sEndAngle,!i),t.bezierCurveTo((e.cx-e.s2[0])*n+e.s2[0],(e.cy-e.s2[1])*n+e.s2[1],(e.cx-e.t1[0])*n+e.t1[0],(e.cy-e.t1[1])*n+e.t1[1],e.t1[0],e.t1[1]),t.arc(e.cx,e.cy,e.r,e.tStartAngle,e.tEndAngle,!i),t.bezierCurveTo((e.cx-e.t2[0])*n+e.t2[0],(e.cy-e.t2[1])*n+e.t2[1],(e.cx-e.s1[0])*n+e.s1[0],(e.cy-e.s1[1])*n+e.s1[1],e.s1[0],e.s1[1]),t.closePath()},e.prototype.updateData=function(t,e,n,i,r){var o=t.hostModel,a=e.graph.getEdgeByIndex(n),s=a.getLayout(),l=a.node1.getModel(),u=e.getItemModel(a.dataIndex),c=u.getModel("lineStyle"),h=u.getModel("emphasis"),d=h.get("focus"),p=j(II(l.getModel("itemStyle"),s,!0),s),f=this;isNaN(p.sStartAngle)||isNaN(p.tStartAngle)?f.setShape(p):(r?(f.setShape(p),cN(f,a,t,c)):(Tc(f),cN(f,a,t,c),_c(f,{shape:p},o,n)),lc(this,"adjacency"===d?a.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),dc(f,u,"lineStyle"),e.setItemGraphicEl(a.dataIndex,f))},e}(Bl);function cN(t,e,n,i){var r=e.node1,o=e.node2,a=t.style;switch(t.setStyle(i.getLineStyle()),i.get("color")){case"source":a.fill=n.getItemVisual(r.dataIndex,"style").fill,a.decal=r.getVisual("style").decal;break;case"target":a.fill=n.getItemVisual(o.dataIndex,"style").fill,a.decal=o.getVisual("style").decal;break;case"gradient":var s=n.getItemVisual(r.dataIndex,"style").fill,l=n.getItemVisual(o.dataIndex,"style").fill;if(st(s)&&st(l)){var u=t.shape,c=(u.s1[0]+u.s2[0])/2,h=(u.s1[1]+u.s2[1])/2,d=(u.t1[0]+u.t2[0])/2,p=(u.t1[1]+u.t2[1])/2;a.fill=new Ym(c,h,d,p,[{offset:0,color:s},{offset:1,color:l}],!0)}}}var hN=Math.PI/180,dN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group,a=-t.get("startAngle")*hN;if(i.diff(r).add((function(t){if(i.getItemLayout(t)){var e=new lN(i,t,a);yu(e).dataIndex=t,o.add(e)}})).update((function(e,n){var s=r.getItemGraphicEl(n);i.getItemLayout(e)?(s?s.updateData(i,e,a):s=new lN(i,e,a),o.add(s)):s&&Cc(s,t,n)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&Cc(n,t,e)})).execute(),!r){var s=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=Yo(s[0],n.getWidth()),this.group.originY=Yo(s[1],n.getHeight()),bc(this.group,{scaleX:1,scaleY:1},t)}this._data=i,this.renderEdges(t,a)},e.prototype.renderEdges=function(t,e){var n=t.getData(),i=t.getEdgeData(),r=this._edgeData,o=this.group;i.diff(r).add((function(t){var r=new uN(n,i,t,e);yu(r).dataIndex=t,o.add(r)})).update((function(t,a){var s=r.getItemGraphicEl(a);s.updateData(n,i,t,e),o.add(s)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&Cc(n,t,e)})).execute(),this._edgeData=i},e.prototype.dispose=function(){},e.type="chord",e}(rv);const pN=dN,fN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new uD(it(this.getData,this),it(this.getRawData,this))},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[];if(i&&n)return rN(i,n,this,!0,(function(t,e){var n=ih.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))})).data},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){var i=this.getDataParams(t,n);if("edge"===n){var r=this.getData(),o=r.graph.getEdgeByIndex(t),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),sg("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return sg("nameValue",{name:i.name,value:i.value,noValue:null==i.value})},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if("node"===n){var r=this.getData(),o=this.getGraph().getNodeByIndex(e);if(null==i.name&&(i.name=r.getName(e)),null==i.value){var a=o.getLayout().value;i.value=a}}return i},e.type="series.chord",e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},e}(Eg);var gN=Math.PI/180;function mN(t,e){t.eachSeriesByType("chord",(function(t){!function(t,e){var n=t.getData(),i=n.graph,r=t.getEdgeData();if(r.count()){var o=yd(t,e),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=Math.max((t.get("padAngle")||0)*gN,0),h=Math.max((t.get("minAngle")||0)*gN,0),d=-t.get("startAngle")*gN,p=d+2*Math.PI,f=t.get("clockwise"),g=f?1:-1,m=[d,p];gl(m,!f);var y=m[0],v=m[1]-y,x=0===n.getSum("value")&&0===r.getSum("value"),_=[],b=0;i.eachEdge((function(t){var e=x?1:t.getValue("value");x&&(e>0||h)&&(b+=2);var n=t.node1.dataIndex,i=t.node2.dataIndex;_[n]=(_[n]||0)+e,_[i]=(_[i]||0)+e}));var w=0;if(i.eachNode((function(t){var e=t.getValue("value");isNaN(e)||(_[t.dataIndex]=Math.max(e,_[t.dataIndex]||0)),!x&&(_[t.dataIndex]>0||h)&&b++,w+=_[t.dataIndex]||0})),0!==b&&0!==w){c*b>=Math.abs(v)&&(c=Math.max(0,(Math.abs(v)-h*b)/b)),(c+h)*b>=Math.abs(v)&&(h=(Math.abs(v)-c*b)/b);var S=(v-c*b*g)/w,M=0,C=0,T=0,I=1/0;i.eachNode((function(t){var e=_[t.dataIndex]||0,n=S*(w?e:1)*g;Math.abs(n)<h?M+=h-Math.abs(n):(I=Math.min(I,Math.abs(n)-h),C+=Math.abs(n)-h,T+=Math.abs(n)),t.setLayout({angle:n,value:e})}));var D=!1;if(M>C){var A=M/C;i.eachNode((function(t){var e=t.getLayout().angle;Math.abs(e)>=h?t.setLayout({angle:e*A,ratio:A},!0):t.setLayout({angle:h,ratio:0===h?1:e/h},!0)}))}else i.eachNode((function(t){if(!D){var e=t.getLayout().angle;e-Math.min(e/T,1)*M<h&&(D=!0)}}));var k=M;i.eachNode((function(t){if(!(k<=0)){var e=t.getLayout().angle;if(e>h&&h>0){var n=D?1:Math.min(e/T,1),i=e-h,r=Math.min(i,Math.min(k,M*n));k-=r,t.setLayout({angle:e-r,ratio:(e-r)/e},!0)}else h>0&&t.setLayout({angle:h,ratio:0===e?1:h/e},!0)}}));var E=y,L=[];i.eachNode((function(t){var e=Math.max(t.getLayout().angle,h);t.setLayout({cx:a,cy:s,r0:u,r:l,startAngle:E,endAngle:E+e*g,clockwise:f},!0),L[t.dataIndex]=E,E+=(e+c)*g})),i.eachEdge((function(t){var e=x?1:t.getValue("value"),n=S*(w?e:1)*g,i=t.node1.dataIndex,r=L[i]||0,o=r+Math.abs((t.node1.getLayout().ratio||1)*n)*g,l=[a+u*Math.cos(r),s+u*Math.sin(r)],c=[a+u*Math.cos(o),s+u*Math.sin(o)],h=t.node2.dataIndex,d=L[h]||0,p=d+Math.abs((t.node2.getLayout().ratio||1)*n)*g,m=[a+u*Math.cos(d),s+u*Math.sin(d)],y=[a+u*Math.cos(p),s+u*Math.sin(p)];t.setLayout({s1:l,s2:c,sStartAngle:r,sEndAngle:o,t1:m,t2:y,tStartAngle:d,tEndAngle:p,cx:a,cy:s,r:u,value:e,clockwise:f}),L[i]=o,L[h]=p}))}}}(t,e)}))}var yN=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},vN=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return m(e,t),e.prototype.getDefaultShape=function(){return new yN},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(Bl);const xN=vN;function _N(t,e){var n=null==t?"":t+"";return e&&(st(e)?n=e.replace("{value}",n):at(e)&&(n=e(t))),n}var bN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:Yo(n[0],e.getWidth()),cy:Yo(n[1],e.getHeight()),r:Yo(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?MI:bm,h=u.get("show"),d=u.getModel("lineStyle"),p=d.get("width"),f=[s,l];gl(f,!a);for(var g=(l=f[1])-(s=f[0]),m=s,y=[],v=0;h&&v<i.length;v++){var x=new c({shape:{startAngle:m,endAngle:l=s+g*Math.min(Math.max(i[v][0],0),1),cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-p,r:r.r},silent:!0});x.setStyle({fill:i[v][1]}),x.setStyle(d.getLineStyle(["color","width"])),y.push(x),m=l}y.reverse(),K(y,(function(t){return o.add(t)}));var _=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,_,r,s,l,a,p),this._renderTitleAndDetail(t,e,n,_,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,_,r,s,l,a,p)},e.prototype._renderTicks=function(t,e,n,i,r,o,a,s,l){for(var u,c,h=this.group,d=r.cx,p=r.cy,f=r.r,g=+t.get("min"),m=+t.get("max"),y=t.getModel("splitLine"),v=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),b=v.get("splitNumber"),w=Yo(y.get("length"),f),S=Yo(v.get("length"),f),M=o,C=(a-o)/_,T=C/b,I=y.getModel("lineStyle").getLineStyle(),D=v.getModel("lineStyle").getLineStyle(),A=y.get("distance"),k=0;k<=_;k++){if(u=Math.cos(M),c=Math.sin(M),y.get("show")){var E=new Nm({shape:{x1:u*(f-(L=A?A+l:l))+d,y1:c*(f-L)+p,x2:u*(f-w-L)+d,y2:c*(f-w-L)+p},style:I,silent:!0});"auto"===I.stroke&&E.setStyle({stroke:i(k/_)}),h.add(E)}if(x.get("show")){var L=x.get("distance")+A,O=_N(Zo(k/_*(m-g)+g),x.get("formatter")),P=i(k/_),N=u*(f-w-L)+d,R=c*(f-w-L)+p,z=x.get("rotate"),B=0;"radial"===z?(B=-M+2*Math.PI)>Math.PI/2&&(B+=Math.PI):"tangential"===z?B=-M-Math.PI/2:ut(z)&&(B=z*Math.PI/180),0===B?h.add(new mu({style:Lc(x,{text:O,x:N,y:R,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:P}),silent:!0})):h.add(new mu({style:Lc(x,{text:O,x:N,y:R,verticalAlign:"middle",align:"center"},{inheritColor:P}),silent:!0,originX:N,originY:R,rotation:B}))}if(v.get("show")&&k!==_){L=(L=v.get("distance"))?L+l:l;for(var V=0;V<=b;V++){u=Math.cos(M),c=Math.sin(M);var H=new Nm({shape:{x1:u*(f-L)+d,y1:c*(f-L)+p,x2:u*(f-S-L)+d,y2:c*(f-S-L)+p},silent:!0,style:D});"auto"===D.stroke&&H.setStyle({stroke:i((k+V/b)/_)}),h.add(H),M+=T}M-=T}else M+=C}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],p=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),m=t.getData(),y=m.mapDimension("value"),v=+t.get("min"),x=+t.get("max"),_=[v,x],b=[o,a];function w(e,n){var i,o=m.getItemModel(e).getModel("pointer"),a=Yo(o.get("width"),r.r),s=Yo(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=Yo(u[0],r.r),h=Yo(u[1],r.r),d=o.get("keepAspect");return(i=l?px(l,c-a/2,h-s,a,s,null,d):new xN({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=f.get("roundCap")?MI:bm,i=f.get("overlap"),a=i?f.get("width"):l/m.count(),u=i?r.r-a:r.r-(t+1)*a,c=i?r.r:r.r-t*a,h=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:c}});return i&&(h.z2=qo(m.get(y,t),[v,x],[100,0],!0)),h}(g||p)&&(m.diff(c).add((function(e){var n=m.get(y,e);if(p){var i=w(e,o);bc(i,{rotation:-((isNaN(+n)?b[0]:qo(n,_,b,!0))+Math.PI/2)},t),u.add(i),m.setItemGraphicEl(e,i)}if(g){var r=S(e,o),a=f.get("clip");bc(r,{shape:{endAngle:qo(n,_,b,a)}},t),u.add(r),vu(t.seriesIndex,m.dataType,e,r),d[e]=r}})).update((function(e,n){var i=m.get(y,e);if(p){var r=c.getItemGraphicEl(n),a=r?r.rotation:o,s=w(e,a);s.rotation=a,_c(s,{rotation:-((isNaN(+i)?b[0]:qo(i,_,b,!0))+Math.PI/2)},t),u.add(s),m.setItemGraphicEl(e,s)}if(g){var l=h[n],v=S(e,l?l.shape.endAngle:o),x=f.get("clip");_c(v,{shape:{endAngle:qo(i,_,b,x)}},t),u.add(v),vu(t.seriesIndex,m.dataType,e,v),d[e]=v}})).execute(),m.each((function(t){var e=m.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=m.getItemGraphicEl(t),l=m.getItemVisual(t,"style"),u=l.fill;if(s instanceof $l){var c=s.style;s.useStyle(j({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(qo(m.get(y,t),_,[0,1],!0))),s.z2EmphasisLift=0,dc(s,e),lc(s,r,o,a)}if(g){var h=d[t];h.useStyle(m.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,dc(h,e),lc(h,r,o,a)}})),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=px(r,e.cx-i/2+Yo(o[0],e.r),e.cy-i/2+Yo(o[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new Ao,h=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new mu({silent:!0}),d[t]=new mu({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],d[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new Ao,m=i(qo(o,[l,u],[0,1],!0)),y=n.getModel("title");if(y.get("show")){var v=y.get("offsetCenter"),x=r.cx+Yo(v[0],r.r),_=r.cy+Yo(v[1],r.r);(D=h[e]).attr({z2:f?0:2,style:Lc(y,{x,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(D)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),S=r.cx+Yo(w[0],r.r),M=r.cy+Yo(w[1],r.r),C=Yo(b.get("width"),r.r),T=Yo(b.get("height"),r.r),I=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:m,D=d[e],A=b.get("formatter");D.attr({z2:f?0:2,style:Lc(b,{x:S,y:M,text:_N(o,A),width:isNaN(C)?null:C,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:I})}),Hc(D,{normal:b},o,(function(t){return _N(t,A)})),p&&Fc(D,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return _N(a?a.interpolatedValue:o,A)}}),g.add(D)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(rv);const wN=bN,SN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return m(e,t),e.prototype.getInitialData=function(t,e){return sD(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,Pd.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:Pd.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:Pd.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:Pd.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:Pd.color.neutral00,borderWidth:0,borderColor:Pd.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:Pd.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:Pd.color.transparent,borderWidth:0,borderColor:Pd.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:Pd.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Eg);var MN=["itemStyle","opacity"],CN=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new Em,a=new mu;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return m(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(MN);l=null==l?1:l,n||Tc(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,bc(i,{style:{opacity:l}},r,e)):_c(i,{style:{opacity:l},shape:{points:a.points}},r,e),dc(i,o),this._updateLabel(t,e),lc(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;kc(r,Ec(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}});var c="inherit"===a.getModel("label").get("color")?u:null;n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:c,outsideFill:c});var h=s.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Ze(h[0][0],h[0][1]):null},_c(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),HM(n,FM(a),{stroke:u})},e}(Dm);const TN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new CN(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){Cc(r.getItemGraphicEl(e),t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(rv);var IN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new uD(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return sD(this,{coordDimensions:["value"],encodeDefaulter:rt(Jd,this)})},e.prototype._defaultLabelLine=function(t){Sa(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:Pd.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:Pd.color.primary}}},e}(Eg);const DN=IN;function AN(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=bd(t,e),a=vd(t.getBoxLayoutParams(),o.refContainer),s=t.get("orient"),l=a.width,u=a.height,c=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();a<s;a++)r[a]=a;return at(e)?r.sort(e):"none"!==e&&r.sort((function(t,e){return o?i[t]-i[e]:i[e]-i[t]})),r}(n,r),h=a.x,d=a.y,p="horizontal"===s?[Yo(t.get("minSize"),u),Yo(t.get("maxSize"),u)]:[Yo(t.get("minSize"),l),Yo(t.get("maxSize"),l)],f=n.getDataExtent(i),g=t.get("min"),m=t.get("max");null==g&&(g=Math.min(f[0],0)),null==m&&(m=f[1]);var y=t.get("funnelAlign"),v=t.get("gap"),x=(("horizontal"===s?l:u)-v*(n.count()-1))/n.count(),_=function(t,e){if("horizontal"===s){var r=qo(n.get(i,t)||0,[g,m],p,!0),o=void 0;switch(y){case"top":o=d;break;case"center":o=d+(u-r)/2;break;case"bottom":o=d+(u-r)}return[[e,o],[e,o+r]]}var a,c=qo(n.get(i,t)||0,[g,m],p,!0);switch(y){case"left":a=h;break;case"center":a=h+(l-c)/2;break;case"right":a=h+l-c}return[[a,e],[a+c,e]]};"ascending"===r&&(x=-x,v=-v,"horizontal"===s?h+=l:d+=u,c=c.reverse());for(var b=0;b<c.length;b++){var w=c[b],S=c[b+1],M=n.getItemModel(w);if("horizontal"===s){var C=M.get(["itemStyle","width"]);null==C?C=x:(C=Yo(C,l),"ascending"===r&&(C=-C));var T=_(w,h),I=_(S,h+C);h+=C+v,n.setItemLayout(w,{points:T.concat(I.slice().reverse())})}else{var D=M.get(["itemStyle","height"]);null==D?D=x:(D=Yo(D,u),"ascending"===r&&(D=-D)),T=_(w,d),I=_(S,d+D),d+=D+v,n.setItemLayout(w,{points:T.concat(I.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each((function(n){var i,r,o,a,s=t.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=t.getItemLayout(n),h=c.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(r=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,i="left"):"insideRight"===l?(r=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,i="right"):(r=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,i="center"),a=[[r,o],[r,o]];else{var p=void 0,f=void 0,g=void 0,m=void 0,y=u.get("length");"left"===l?(p=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,r=(g=p-y)-5,i="right"):"right"===l?(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,r=(g=p+y)+5,i="left"):"top"===l?(p=(h[3][0]+h[0][0])/2,o=(m=(f=(h[3][1]+h[0][1])/2)-y)-5,i="center"):"bottom"===l?(p=(h[1][0]+h[2][0])/2,o=(m=(f=(h[1][1]+h[2][1])/2)+y)+5,i="center"):"rightTop"===l?(p="horizontal"===e?h[3][0]:h[1][0],f="horizontal"===e?h[3][1]:h[1][1],"horizontal"===e?(o=(m=f-y)-5,i="center"):(r=(g=p+y)+5,i="top")):"rightBottom"===l?(p=h[2][0],f=h[2][1],"horizontal"===e?(o=(m=f+y)+5,i="center"):(r=(g=p+y)+5,i="bottom")):"leftTop"===l?(p=h[0][0],f="horizontal"===e?h[0][1]:h[1][1],"horizontal"===e?(o=(m=f-y)-5,i="center"):(r=(g=p-y)-5,i="right")):"leftBottom"===l?(p="horizontal"===e?h[1][0]:h[3][0],f="horizontal"===e?h[1][1]:h[2][1],"horizontal"===e?(o=(m=f+y)+5,i="center"):(r=(g=p-y)-5,i="right")):(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,"horizontal"===e?(o=(m=f+y)+5,i="center"):(r=(g=p+y)+5,i="left")),"horizontal"===e?r=g=p:o=m=f,a=[[p,f],[g,m]]}c.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:d}}))}(n)}))}var kN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new Ao,n._initialized=!1,n}return m(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=ON(t);if(o.diff(a).add((function(t){PN(LN(o,r,t,l,s),o,t,u)})).update((function(e,n){var i=a.getItemGraphicEl(n),r=EN(o,e,l,s);o.setItemGraphicEl(e,i),_c(i,{shape:{points:r}},t,e),Tc(i),PN(i,o,e,u)})).remove((function(t){var e=a.getItemGraphicEl(t);r.remove(e)})).execute(),!this._initialized){this._initialized=!0;var c=function(t,e){var n=t.model,i=t.getRect(),o=new Ql({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===n.get("layout")?"width":"height";return o.setShape(a,0),bc(o,{shape:{width:i.width,height:i.height}},e,(function(){setTimeout((function(){r.removeClipPath()}))})),o}(s,t);r.setClipPath(c)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,a=ON(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=LN(i,this._dataGroup,l,o,r);u.incremental=!0,PN(u,i,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(rv);function EN(t,e,n,i){for(var r,o=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);r=l,("category"===i.getAxis(s).type?null==r:null==r||isNaN(r))||o.push(i.dataToPoint(l,s))}return o}function LN(t,e,n,i,r){var o=EN(t,n,i,r),a=new Em({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function ON(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),yt(e=fa(e))&&(e=0),{smooth:e}}function PN(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var r=e.getItemModel(n),o=r.getModel("emphasis");dc(t,r,"lineStyle"),lc(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}const NN=kN;function RN(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return K(e.dimensions,(function(t){var e=+t.replace("dim","");n[t]=e})),n}}const zN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return m(e,t),e.prototype.getInitialData=function(t,e){return mw(null,this,{useEncodeDefaulter:it(RN,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Eg);var BN=["lineStyle","opacity"];const VN={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var r=i[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(BN,!0);null!=o&&(r=o)}e.ensureUniqueItemVisual(n,"style").opacity=r}),t.start,t.end)}}}};function HN(t){!function(t){if(!t.parallel){var e=!1;K(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}(t),function(t){K(wa(t.parallelAxis),(function(e){if(ct(e)){var n=e.parallelIndex||0,i=wa(t.parallel)[n];i&&i.parallelAxisDefault&&W(e,i.parallelAxisDefault,!1)}}))}(t)}var FN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},K(WN,(function(t,e){n.getZr().on(e,this._handlers[e]=it(t,this))}),this)),uv(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){cv(this,"_throttledDispatchExpand"),K(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(j({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Og),WN={mousedown:function(t){GN(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(GN(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&GN(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function GN(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}const jN=FN;var $N=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&W(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){K(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];K(tt(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this),(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Ad);const UN=$N;var qN=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return m(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(pM);const YN=qN;function XN(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=KN(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=KN(s,[0,a]),r=o=KN(s,[r,o]),i=0}e[0]=KN(e[0],n),e[1]=KN(e[1],n);var l=ZN(e,i);e[i]+=t;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[i]=KN(e[i],h),u=ZN(e,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(e[1-i]=e[i]+l.sign*r),u=ZN(e,i),null!=o&&u.span>o&&(e[1-i]=e[i]+u.sign*o),e}function ZN(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function KN(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var JN=K,QN=Math.min,tR=Math.max,eR=Math.floor,nR=Math.ceil,iR=Zo,rR=Math.PI,oR=function(){function t(t,e,n){this.type="parallel",this._axesMap=Et(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;JN(i,(function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new YN(t,bS(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();JN(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),_S(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){var n=bd(t,e).refContainer;this._rect=vd(t.getBoxLayoutParams(),n),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=aR(e.get("axisExpandWidth"),l),h=aR(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");p?(t=aR(p[1]-p[0],l),p[1]=p[0]+t):(t=aR(c*(h-1),l),(p=[c*(e.get("axisExpandCenter")||eR(u/2))-t/2])[1]=p[0]+t);var f=(s-t)/(u-h);f<3&&(f=0);var g=[eR(iR(p[0]/c,1))+1,nR(iR(p[1]/c,1))-1],m=f/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:f,axisExpandWindow:p,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),JN(n,(function(e,n){var o=(i.axisExpandable?lR:sR)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:rR/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],c=[1,0,0,1,0,0];$e(c,c,u),je(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];K(o,(function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(a,u),d=0,p=o.length;d<p;d++)if("inactive"===s[d].getActiveState(h[d])){c="inactive";break}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){return Ty([t,0],this._axesLayout[e].transform)},t.prototype.getAxisLayout=function(t){return F(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<r*c[0]?(l="jump",a=s-r*c[2]):h&&u&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?XN(a,i,o,"all"):l="none";else{var d=i[1]-i[0];(i=[tR(0,o[1]*s/d-d/2)])[1]=QN(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();function aR(t,e){return QN(tR(t,e[0]),e[1])}function sR(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function lR(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(n=r-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}const uR=oR,cR={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(i,r){var o=new uR(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",Ba).models[0];t.coordinateSystem=e.coordinateSystem}})),n}};var hR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return m(e,t),e.prototype.getAreaSelectStyle=function(){return es([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=F(t);if(e)for(var n=e.length-1;n>=0;n--)Ko(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(Ad);X(hR,kS);const dR=hR;var pR=!0,fR=Math.min,gR=Math.max,mR=Math.pow,yR="globalPan",vR={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},xR={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},_R={brushStyle:{lineWidth:2,stroke:Pd.color.backgroundTint,fill:Pd.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},bR=0,wR=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new Ao,n._uid="brushController_"+bR++,K(XR,(function(t,e){this._handlers[e]=it(t,this)}),n),n}return m(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||function(t,e,n){bk(t)[e]=n}(e,yR,this._uid),K(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=W(F(_R),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;!function(t,e,n){var i=bk(t);i[e]===n&&(i[e]=null)}(t,yR,this._uid),K(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};K(t,(function(t){e[t.panelId]=F(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=J(t,(function(t){return W(F(_R),t,!0)}));var e=this._covers,n=this._covers=[],i=this,r=this._creatingCover;return new Nb(e,t,(function(t,e){return o(t.__brushOption,e)}),o).add(a).update(a).remove((function(t){e[t]!==r&&i.group.remove(e[t])})).execute(),this;function o(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function a(o,a){var s=t[o];if(null!=a&&e[a]===r)n[o]=e[a];else{var l=n[o]=null!=a?(e[a].__brushOption=s,e[a]):MR(i,SR(i,s));IR(i,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),ER(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(me);function SR(t,e){var n=KR[e.brushType].createCover(t,e);return n.__brushOption=e,TR(n,e),t.group.add(n),n}function MR(t,e){var n=DR(e);return n.endCreating&&(n.endCreating(t,e),TR(e,e.__brushOption)),e}function CR(t,e){var n=e.__brushOption;DR(e).updateCoverShape(t,e,n.range,n)}function TR(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function IR(t,e){DR(e).updateCommon(t,e),CR(t,e)}function DR(t){return KR[t.__brushOption.brushType]}function AR(t,e,n){var i,r=t._panels;if(!r)return pR;var o=t._transform;return K(r,(function(t){t.isTargetByCursor(e,n,o)&&(i=t)})),i}function kR(t,e){var n=t._panels;if(!n)return pR;var i=e.__brushOption.panelId;return null!=i?n[i]:pR}function ER(t){var e=t._covers,n=e.length;return K(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function LR(t,e){var n=J(t._covers,(function(t){var e=t.__brushOption,n=F(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function OR(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function PR(t,e,n,i){var r=new Ao;return r.add(new Ql({name:"main",style:BR(n),silent:!0,draggable:!0,cursor:"move",drift:rt(FR,t,e,r,["n","s","w","e"]),ondragend:rt(LR,e,{isEnd:!0})})),K(i,(function(n){r.add(new Ql({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:rt(FR,t,e,r,n),ondragend:rt(LR,e,{isEnd:!0})}))})),r}function NR(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=gR(r,6),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-o+r/2,p=h-o+r/2,f=c-a,g=h-s,m=f+r,y=g+r;zR(t,e,"main",a,s,f,g),i.transformable&&(zR(t,e,"w",l,u,o,y),zR(t,e,"e",d,u,o,y),zR(t,e,"n",l,u,m,o),zR(t,e,"s",l,p,m,o),zR(t,e,"nw",l,u,o,o),zR(t,e,"ne",d,u,o,o),zR(t,e,"sw",l,p,o,o),zR(t,e,"se",d,p,o,o))}function RR(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(BR(n)),r.attr({silent:!i,cursor:i?"move":"default"}),K([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=e.childOfName(n.join("")),o=1===n.length?HR(t,n[0]):function(t,e){var n=[HR(t,e[0]),HR(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?xR[o]+"-resize":null})}))}function zR(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(function(t){var e=fR(t[0][0],t[1][0]),n=fR(t[0][1],t[1][1]);return{x:e,y:n,width:gR(t[0][0],t[1][0])-e,height:gR(t[0][1],t[1][1])-n}}(jR(t,e,[[i,r],[i+o,r+a]])))}function BR(t){return $({strokeNoScale:!0},t.brushStyle)}function VR(t,e,n,i){var r=[fR(t,n),fR(e,i)],o=[gR(t,n),gR(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function HR(t,e){var n=Iy({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return Cy(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function FR(t,e,n,i,r,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=GR(e,r,o);K(i,(function(t){var e=vR[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(VR(s[0][0],s[1][0],s[0][1],s[1][1])),IR(e,n),LR(e,{isEnd:!1})}function WR(t,e,n,i){var r=e.__brushOption.range,o=GR(t,n,i);K(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),IR(t,e),LR(t,{isEnd:!1})}function GR(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function jR(t,e,n){var i=kR(t,e);return i&&i!==pR?i.clipPath(n,t._transform):F(n)}function $R(t){var e=t.event;e.preventDefault&&e.preventDefault()}function UR(t,e,n){return t.childOfName("main").contain(e,n)}function qR(t,e,n,i){var r,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return mR(r*r+o*o,.5)>6}(t)||o){if(a&&!o){"single"===s.brushMode&&ER(t);var l=F(s);l.brushType=YR(l.brushType,a),l.panelId=a===pR?null:a.panelId,o=t._creatingCover=SR(t,l),t._covers.push(o)}if(o){var u=KR[YR(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(jR(t,o,t._track)),i&&(MR(t,o),u.updateCommon(t,o)),CR(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&AR(t,e,n)&&ER(t)&&(r={isEnd:i,removeOnClick:!0});return r}function YR(t,e){return"auto"===t?e.defaultBrushType:t}var XR={mousedown:function(t){if(this._dragging)ZR(this,t);else if(!t.target||!t.target.draggable){$R(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=AR(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=AR(t,e,n);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===pR||s.panelId===o.panelId)&&KR[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}(this,t,i),this._dragging){$R(t);var r=qR(this,t,i,!1);r&&LR(this,r)}},mouseup:function(t){ZR(this,t)}};function ZR(t,e){if(t._dragging){$R(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),o=qR(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&LR(t,o)}}var KR={lineX:JR(0),lineY:JR(1),rect:{createCover:function(t,e){function n(t){return t}return PR({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=OR(t);return VR(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){NR(t,e,n,i)},updateCommon:RR,contain:UR},polygon:{createCover:function(t,e){var n=new Ao;return n.add(new Em({name:"main",style:BR(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Dm({name:"main",draggable:!0,drift:rt(WR,t,e),ondragend:rt(LR,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:jR(t,e,n)})},updateCommon:RR,contain:UR}};function JR(t){return{createCover:function(e,n){return PR({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=OR(e);return[fR(n[0][t],n[1][t]),gR(n[0][t],n[1][t])]},updateCoverShape:function(e,n,i,r){var o,a=kR(e,n);if(a!==pR&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),NR(e,n,l,r)},updateCommon:RR,contain:UR}}const QR=wR;function tz(t){return t=iz(t),function(e){return ky(e,t)}}function ez(t,e){return t=iz(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function nz(t,e,n){var i=iz(t);return function(t,r){return i.contain(r[0],r[1])&&!Mk(t,e,n)}}function iz(t){return mn.create(t)}const rz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new QR(n.getZr())).on("brush",it(this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Ao,this.group.add(this._axisGroup),t.get("show")){var o=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=j({strokeContainThreshold:l},a.getAxisLayout(u)),h=new yA(t,n,c);h.build(),this._axisGroup.add(h.group),this._refreshBrushController(c,s,t,o,l,n),Ay(r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=mn.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:tz(u),isTargetByCursor:nz(u,o,i),getLinearBrushOtherExtent:ez(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return J(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=J(e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Og);var oz={type:"axisAreaSelect",event:"axisAreaSelected"},az={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function sz(t){t.registerComponentView(jN),t.registerComponentModel(UN),t.registerCoordinateSystem("parallel",cR),t.registerPreprocessor(HN),t.registerComponentModel(dR),t.registerComponentView(rz),ED(t,"parallel",dR,az),function(t){t.registerAction(oz,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}(t)}var lz=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},uz=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new lz},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){Yu(this)},e.prototype.downplay=function(){Xu(this)},e}(Bl),cz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new Ao,n._focusAdjacencyDisabled=!1,n}return m(e,t),e.prototype.init=function(t,e){this._controller=new Pk(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),o=this._mainGroup,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,this._updateViewCoordSys(t,n),zk(t,n,o,this._controller,this._controllerHost,null),r.eachEdge((function(e){var n=new uz,i=yu(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var r,a,u,d,p,f,g,m,y=e.getModel(),v=y.getModel("lineStyle"),x=v.get("curveness"),_=e.node1.getLayout(),b=e.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=e.node2.getLayout(),C=e.node2.getModel(),T=C.get("localX"),I=C.get("localY"),D=e.getLayout();n.shape.extent=Math.max(1,D.dy),n.shape.orient=h,"vertical"===h?(r=(null!=w?w*s:_.x)+D.sy,a=(null!=S?S*l:_.y)+_.dy,u=(null!=T?T*s:M.x)+D.ty,p=r,f=a*(1-x)+(d=null!=I?I*l:M.y)*x,g=u,m=a*x+d*(1-x)):(r=(null!=w?w*s:_.x)+_.dx,a=(null!=S?S*l:_.y)+D.sy,p=r*(1-x)+(u=null!=T?T*s:M.x)*x,f=a,g=r*x+u*(1-x),m=d=(null!=I?I*l:M.y)+D.ty),n.setShape({x1:r,y1:a,x2:u,y2:d,cpx1:p,cpy1:f,cpx2:g,cpy2:m}),n.useStyle(v.getItemStyle()),hz(n.style,h,e);var A=""+y.get("value"),k=Ec(y,"edgeLabel");kc(n,k,{labelFetcher:{getFormattedLabel:function(e,n,i,r,o,a){return t.getFormattedLabel(e,n,"edge",r,_t(o,k.normal&&k.normal.get("formatter"),A),a)}},labelDataIndex:e.dataIndex,defaultText:A}),n.setTextConfig({position:"inside"});var E=y.getModel("emphasis");dc(n,y,"lineStyle",(function(t){var n=t.getItemStyle();return hz(n,h,e),n})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var L=E.get("focus");lc(n,"adjacency"===L?e.getAdjacentDataIndices():"trajectory"===L?e.getTrajectoryDataIndices():L,E.get("blurScope"),E.get("disabled"))})),r.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),h=i.get(["itemStyle","borderRadius"])||0,d=new Ql({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy,r:h},style:i.getModel("itemStyle").getItemStyle(),z2:10});kc(d,Ec(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),dc(d,i),o.add(d),u.setItemGraphicEl(e.dataIndex,d),yu(d).dataType="node";var p=c.get("focus");lc(d,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(e,r){u.getItemModel(r).get("draggable")&&(e.drift=function(e,o){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(function(t,e){var n=new Ql({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return bc(n,{shape:{width:t.width+20}},e,(function(){o.removeClipPath()})),n}(o.getBoundingRect(),t)),this._data=t.getData()},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._updateViewCoordSys=function(t,e){var n=t.layoutInfo,i=n.width,r=n.height,o=t.coordinateSystem=new YE(null,{api:e,ecModel:t.ecModel});o.zoomLimit=t.get("scaleLimit"),o.setBoundingRect(0,0,i,r),o.setCenter(t.get("center")),o.setZoom(t.get("zoom")),this._controllerHost.target.attr({x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY})},e.type="sankey",e}(rv);function hz(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");st(i)&&st(r)&&(t.fill=new Ym(0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:r,offset:1}]))}}const dz=cz;var pz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=t.levels||[];this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new ih(r[a],this,e));var s=rN(i,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}))}));return s.data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value;return sg("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return sg("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},e.type="series.sankey",e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:Pd.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:Pd.color.primary}},animationEasing:"linear",animationDuration:1e3},e}(Eg);const fz=pz;function gz(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=bd(t,e).refContainer,o=vd(t.getBoxLayoutParams(),r);t.layoutInfo=o;var a=o.width,s=o.height,l=t.getGraph(),u=l.nodes,c=l.edges;!function(t){K(t,(function(t){var e=Cz(t.outEdges,Mz),n=Cz(t.inEdges,Mz),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}(u),function(t,e,n,i,r,o,a,s,l){(function(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&u.push(t[d]);for(var p=-1;u.length;){for(var f=0;f<u.length;f++){var g=u[f],m=g.hostGraph.data.getRawDataItem(g.dataIndex),y=null!=m.depth&&m.depth>=0;y&&m.depth>p&&(p=m.depth),g.setLayout({depth:y?m.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var v=0;v<g.outEdges.length;v++){var x=g.outEdges[v];s[e.indexOf(x)]=0;var _=x.node2;0==--l[t.indexOf(_)]&&c.indexOf(_)<0&&c.push(_)}}++h,u=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var b=p>h-1?p:h-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];r.indexOf(c.node1)<0&&r.push(c.node1)}}o=r,r=[],++a}K(t,(function(t){mz(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&function(t,e){K(t,(function(t){mz(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}(t,i)}(t,a,0,b),function(t,e,n){K(t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}(t,"vertical"===o?(r-n)/b:(i-n)/b,o)})(t,e,n,r,o,s,l),function(t,e,n,i,r,o,a){var s=function(t,e){var n=[],i="vertical"===e?"y":"x",r=Wa(t,(function(t){return t.getLayout()[i]}));return r.keys.sort((function(t,e){return t-e})),K(r.keys,(function(t){n.push(r.buckets.get(t))})),n}(t,a);(function(t,e,n,i,r,o){var a=1/0;K(t,(function(t){var e=t.length,s=0;K(t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(i-(e-1)*r)/s:(n-(e-1)*r)/s;l<a&&(a=l)})),K(t,(function(t){K(t,(function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),K(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))})(s,e,n,i,r,a),yz(s,r,n,i,a);for(var l=1;o>0;o--)vz(s,l*=.99,a),yz(s,r,n,i,a),Tz(s,l,a),yz(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";K(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),K(t,(function(t){var e=0,n=0;K(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),K(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(u,c,n,i,a,s,0!==tt(u,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function mz(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function yz(t,e,n,i,r){var o="vertical"===r?"x":"y";K(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,h="vertical"===r?"dx":"dy",d=0;d<c;d++)(l=u-(s=t[d]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===r?i:n))>0)for(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a,d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}))}function vz(t,e,n){K(t.slice().reverse(),(function(t){K(t,(function(t){if(t.outEdges.length){var i=Cz(t.outEdges,xz,n)/Cz(t.outEdges,Mz);if(isNaN(i)){var r=t.outEdges.length;i=r?Cz(t.outEdges,_z,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Sz(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Sz(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function xz(t,e){return Sz(t.node2,e)*t.getValue()}function _z(t,e){return Sz(t.node2,e)}function bz(t,e){return Sz(t.node1,e)*t.getValue()}function wz(t,e){return Sz(t.node1,e)}function Sz(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Mz(t){return t.getValue()}function Cz(t,e,n){for(var i=0,r=t.length,o=-1;++o<r;){var a=+e(t[o],n);isNaN(a)||(i+=a)}return i}function Tz(t,e,n){K(t,(function(t){K(t,(function(t){if(t.inEdges.length){var i=Cz(t.inEdges,bz,n)/Cz(t.inEdges,Mz);if(isNaN(i)){var r=t.inEdges.length;i=r?Cz(t.inEdges,wz,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Sz(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Sz(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function Iz(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var r=1/0,o=-1/0;K(n,(function(t){var e=t.getLayout().value;e<r&&(r=e),e>o&&(o=e)})),K(n,(function(e){var n=new kO({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),i=e.getModel().get(["itemStyle","color"]);null!=i?(e.setVisual("color",i),e.setVisual("style",{fill:i})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))}))}i.length&&K(i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}var Dz=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!this._hasEncodeRule("x")):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[r,o],p=d[u].get("type"),f=d[1-u].get("type"),g=t.data;if(g&&i){var m=[];K(g,(function(t,e){var n;ot(t)?(n=t.slice(),t.unshift(e)):ot(t.value)?((n=j({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,m.push(n)})),t.data=m}var y=this.defaultValueDimensions,v=[{name:c,type:Bb(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Bb(f),dimsDef:y.slice()}];return sD(this,{coordDimensions:v,dimensionsCount:y.length+1,encodeDefaulter:rt(Kd,v,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),Az=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return m(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:Pd.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Pd.color.shadow}},animationDuration:800},e}(Eg);X(Az,Dz,!0);const kz=Az;var Ez=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=Pz(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(Tc(n),Nz(s,n,i,t)):n=Pz(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(rv),Lz=function(){},Oz=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return m(e,t),e.prototype.getDefaultShape=function(){return new Lz},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(Bl);function Pz(t,e,n,i,r){var o=t.ends,a=new Oz({shape:{points:r?Rz(o,i,t):o}});return Nz(t,a,e,n,r),a}function Nz(t,e,n,i,r){var o=n.hostModel;(0,l[r?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var a=n.getItemModel(i),s=a.getModel("emphasis");dc(e,a),lc(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function Rz(t,e,n){return J(t,(function(t){return(t=t.slice())[e]=n.initBaseline,t}))}const zz=Ez;var Bz=K;function Vz(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var i=t.getBaseAxis(),r=q(n,i);r<0&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)})),e}(t);Bz(e,(function(t){var e=t.seriesModels;e.length&&(function(t){var e,n=t.axis,i=t.seriesModels,r=i.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;Bz(i,(function(t){l=Math.max(l,t.getData().count())}));var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}Bz(i,(function(t){var n=t.get("boxWidth");ot(n)||(n=[n,n]),s.push([Yo(n[0],e)||0,Yo(n[1],e)||0])}));var c=.8*e-2,h=c/r*.3,d=(c-h*(r-1))/r,p=d/2-c/2;Bz(i,(function(t,e){a.push(p),p+=h+d,o.push(Math.min(Math.max(d,s[e][0]),s[e][1]))}))}(t),Bz(e,(function(e,n){!function(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=r.mapDimension(l[a]),c=r.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<r.count();h++){var d=r.get(u,h),p=x(d,c[2],h),f=x(d,c[0],h),g=x(d,c[1],h),m=x(d,c[3],h),y=x(d,c[4],h),v=[];_(v,g,!1),_(v,m,!0),v.push(f,g,y,m),b(v,f),b(v,y),b(v,p),r.setItemLayout(h,{initBaseline:p[s],ends:v})}function x(t,n,o){var l,u=r.get(n,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c))[a]+=e,l}function _(t,e,n){var i=e.slice(),r=e.slice();i[a]+=o,r[a]-=o,n?t.push(i,r):t.push(r,i)}function b(t,e){var n=e.slice(),i=e.slice();n[a]-=o,i[a]+=o,t.push(n,i)}}(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}var Hz={type:"echarts:boxplot",transform:function(t){var e=t.upstream;e.sourceFormat!==Wd&&af("");var n=function(t,e){for(var n=[],i=[],r=(e=e||{}).boundIQR,o="none"===r||0===r,a=0;a<t.length;a++){var s=Ko(t[a].slice()),l=da(s,.25),u=da(s,.5),c=da(s,.75),h=s[0],d=s[s.length-1],p=(null==r?1.5:r)*(c-l),f=o?h:Math.max(h,l-p),g=o?d:Math.min(d,c+p),m=e.itemNameFormatter,y=at(m)?m({value:a}):st(m)?m.replace("{value}",a+""):a+"";n.push([y,f,l,u,c,g]);for(var v=0;v<s.length;v++){var x=s[v];if(x<f||x>g){var _=[y,x];i.push(_)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},Fz=["itemStyle","borderColor"],Wz=["itemStyle","borderColor0"],Gz=["itemStyle","borderColorDoji"],jz=["itemStyle","color"],$z=["itemStyle","color0"];function Uz(t,e){return e.get(t>0?jz:$z)}function qz(t,e){return e.get(0===t?Gz:t>0?Fz:Wz)}const Yz={seriesType:"candlestick",plan:Pg(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),r=e.getItemLayout(n).sign,o=i.getItemStyle();o.fill=Uz(r,i),o.stroke=qz(r,i)||o.fill,j(e.ensureUniqueItemVisual(n,"style"),o)}}}}};var Xz=["color","borderColor"],Zz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){Fy(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&tB(s,a))return;var l=Qz(a,0,!0);bc(l,{shape:{points:a.ends}},t,n),eB(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&tB(s,c)?i.remove(u):(u?(_c(u,{shape:{points:c.ends}},t,a),Tc(u)):u=Qz(c),eB(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),oB(t,this.group);var e=t.get("clip",!0)?iI(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=Qz(i.getItemLayout(n));eB(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){oB(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(rv),Kz=function(){},Jz=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return m(e,t),e.prototype.getDefaultShape=function(){return new Kz},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(Bl);function Qz(t,e,n){var i=t.ends;return new Jz({shape:{points:n?nB(i,t):i},z2:100})}function tB(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function eB(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,dc(t,r);var o=e.getItemLayout(n).sign;K(t.states,(function(t,e){var n=r.getModel(e),i=Uz(o,n),a=qz(o,n)||i,s=t.style||(t.style={});i&&(s.fill=i),a&&(s.stroke=a)}));var a=r.getModel("emphasis");lc(t,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function nB(t,e){return J(t,(function(t){return(t=t.slice())[1]=e.initBaseline,t}))}var iB=function(){},rB=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return m(e,t),e.prototype.getDefaultShape=function(){return new iB},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(Bl);function oB(t,e,n,i){var r=t.getData(),o=r.getLayout("largePoints"),a=new rB({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new rB({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new rB({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),aB(1,a,t),aB(-1,s,t),aB(0,l,t),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function aB(t,e,n,i){var r=qz(t,n)||Uz(t,n),o=n.getModel("itemStyle").getItemStyle(Xz);e.useStyle(o),e.style.fill=null,e.style.stroke=r}const sB=Zz;var lB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return m(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Eg);X(lB,Dz,!0);const uB=lB;function cB(t){t&&ot(t.series)&&K(t.series,(function(t){ct(t)&&"k"===t.type&&(t.type="candlestick")}))}var hB={seriesType:"candlestick",plan:Pg(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Yo(xt(t.get("barMaxWidth"),r),r),a=Yo(xt(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?Yo(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=["x","y"],o=n.getDimensionIndex(n.mapDimension(r[0])),a=J(n.mapDimensionsAll(r[1]),n.getDimensionIndex,n),s=a[0],l=a[1],u=a[2],c=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(n,i){for(var r,a,h=Vw(4*n.count),d=0,p=[],f=[],g=i.getStore(),m=!!t.get(["itemStyle","borderColorDoji"]);null!=(a=n.next());){var y=g.get(o,a),v=g.get(s,a),x=g.get(l,a),_=g.get(u,a),b=g.get(c,a);isNaN(y)||isNaN(_)||isNaN(b)?(h[d++]=NaN,d+=3):(h[d++]=dB(g,a,v,x,l,m),p[0]=y,p[1]=_,r=e.dataToPoint(p,null,f),h[d++]=r?r[0]:NaN,h[d++]=r?r[1]:NaN,p[1]=b,r=e.dataToPoint(p,null,f),h[d++]=r?r[1]:NaN)}i.setLayout("largePoints",h)}:function(t,n){for(var r,a=n.getStore();null!=(r=t.next());){var h=a.get(o,r),d=a.get(s,r),p=a.get(l,r),f=a.get(u,r),g=a.get(c,r),m=Math.min(d,p),y=Math.max(d,p),v=M(m,h),x=M(y,h),_=M(f,h),b=M(g,h),w=[];C(w,x,0),C(w,v,1),w.push(I(b),I(x),I(_),I(v));var S=!!n.getItemModel(r).get(["itemStyle","borderColorDoji"]);n.setItemLayout(r,{sign:dB(a,r,d,p,l,S),initBaseline:d>p?x[1]:v[1],ends:w,brushRect:T(f,g,h)})}function M(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function C(t,e,n){var r=e.slice(),o=e.slice();r[0]=My(r[0]+i/2,1,!1),o[0]=My(o[0]-i/2,1,!0),n?t.push(r,o):t.push(o,r)}function T(t,e,n){var r=M(t,n),o=M(e,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function I(t){return t[0]=My(t[0],1),t}}}}};function dB(t,e,n,i,r,o){return n>i?-1:n<i?1:o?0:e>0?t.get(r,e-1)<=i?1:-1:1}const pB=hB;function fB(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var gB=function(t){function e(e,n){var i=t.call(this)||this,r=new VT(e,n),o=new Ao;return i.add(r),i.add(o),i.updateData(e,n),i}return m(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=px(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),r.add(a)}fB(r,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}fB(n,t)},e.prototype.highlight=function(){Yu(this)},e.prototype.downplay=function(){Xu(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=fx(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=o.getModel("emphasis");r.setScale(s),r.traverse((function(t){t.setStyle("fill",u)}));var h=gx(t.getItemVisual(e,"symbolOffset"),s);h&&(r.x=h[0],r.y=h[1]);var d=t.getItemVisual(e,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=a,p.color=u,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,lc(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Ao);const mB=gB,yB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){this._symbolDraw=new jT(mB)},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(r.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var r=gI("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=Ye(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(rv),vB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){return mw(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Eg);var xB=function(t){function e(e,n,i){var r=t.call(this)||this;return r.add(r.createLine(e,n,i)),r._updateEffectSymbol(e,n),r}return m(e,t),e.prototype.createLine=function(t,e,n){return new PP(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");ot(i)||(i=[i,i]);var o=t.getItemVisual(e,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==r&&(this.remove(s),(s=px(r,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=i[0],s.scaleY=i[1],s.setColor(a),this._symbolType=r,this._symbolScale=i,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),u=vt(e.get("delay"),(function(e){return e/t.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var c=void 0;c=at(u)?u(n):u,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));i||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return re(t.__p1,t.__cp1)+re(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=ai,l=si;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),c=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*re(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*re(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(Ao);const _B=xB;var bB=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createPolyline(e,n,i),r}return m(e,t),e.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new Em({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel;_c(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=r.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,lc(this,a,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(Ao);const wB=bB;var SB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return m(e,t),e.prototype.createLine=function(t,e,n){return new wB(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var o=e[r-1],a=e[r];i+=re(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(e<this._lastFramePercent){for(o=Math.min(a+1,r-1);o>=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;o<r&&!(i[o]>e);o++);o=Math.min(o-1,r-2)}var s=(e-i[o])/(i[o+1]-i[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var c=t.__t<1?u[0]-l[0]:l[0]-u[0],h=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(h,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(_B);const MB=SB;var CB=function(){this.polyline=!1,this.curveness=0,this.segs=[]},TB=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return m(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:Pd.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new CB},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){t.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],c=i[n++];if(t.moveTo(s,l),r>0){var h=(s+u)/2-(l-c)*r,d=(l+c)/2-(u-s)*r;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],c=i[s++],h=1;h<l;h++)if(vl(u,c,d=i[s++],p=i[s++],o,t,e))return a;a++}else for(a=0,s=0;s<i.length;){u=i[s++],c=i[s++];var d=i[s++],p=i[s++];if(r>0){if(_l(u,c,(u+d)/2-(c-p)*r,(c+p)/2-(d-u)*r,d,p,o,t,e))return a}else if(vl(u,c,d,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a<e.length;){var s=e[a++],l=e[a++];n=Math.min(s,n),r=Math.max(s,r),i=Math.min(l,i),o=Math.max(l,o)}t=this._rect=new mn(n,i,r,o)}return t},e}(Bl);const IB=function(){function t(){this.group=new Ao}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new TB({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null);var o=yu(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();var DB={seriesType:"lines",plan:Pg(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=r.start;c<r.end;c++){var p=t.getLineCoords(c,a);n&&(s[h++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(a[f],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=o.getItemModel(c),m=(p=t.getLineCoords(c,a),[]);if(n)for(var y=0;y<p;y++)m.push(e.dataToPoint(a[y]));else{m[0]=e.dataToPoint(a[0]),m[1]=e.dataToPoint(a[1]);var v=g.get(["lineStyle","curveness"]);+v&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*v,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*v])}o.setItemLayout(c,m)}}}}}};const AB=DB,kB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&iI(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=AB.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new IB:new BP(r?i?MB:wB:i?_B:PP),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(rv);var EB="undefined"==typeof Uint32Array?Array:Uint32Array,LB="undefined"==typeof Float64Array?Array:Float64Array;function OB(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=J(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),G([e,t[0],t[1]])})))}var PB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return m(e,t),e.prototype.init=function(e){e.data=e.data||[],OB(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(OB(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Lt(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Lt(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(t);for(r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),ut(t[0])){for(var n=t.length,i=new EB(n),r=new LB(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];i[a++]=o+e,i[a++]=u;for(var c=0;c<u;c++){var h=t[l++],d=t[l++];r[o++]=h,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new aw(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().getItemModel(t),r=i.get("name");if(r)return r;var o=i.get("fromName"),a=i.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),sg("nameValue",{name:s.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Eg);const NB=PB;function RB(t){return t instanceof Array||(t=[t,t]),t}const zB={seriesType:"lines",reset:function(t){var e=RB(t.get("symbol")),n=RB(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=RB(n.getShallow("symbol",!0)),r=RB(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var BB=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=C.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],m=f[1],y=i(f[2]);h.globalAlpha=y,h.drawImage(a,g-u,m-u)}if(!c.width||!c.height)return c;for(var v=h.getImageData(0,0,c.width,c.height),x=v.data,_=0,b=x.length,w=this.minOpacity,S=this.maxOpacity-w;_<b;){y=x[_+3]/256;var M=4*Math.floor(255*y);if(y>0){var C=o(y)?s:l;y>0&&(y=y*S+w),x[_++]=C[M],x[_++]=C[M+1],x[_++]=C[M+2],x[_++]=C[M+3]*y*256}else _+=4}return h.putImageData(v,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=C.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor=Pd.color.neutral99,i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();const VB=BB;function HB(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var FB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type||"matrix"===r.type?this._renderOnGridLike(t,n,0,t.getData().count()):HB(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(HB(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnGridLike(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Fy(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,c=rI(u,"cartesian2d"),h=rI(u,"matrix");if(c){var d=u.getAxis("x"),p=u.getAxis("y");o=d.getBandWidth()+.5,a=p.getBandWidth()+.5,s=d.scale.getExtent(),l=p.scale.getExtent()}for(var f=this.group,g=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),x=t.get(["itemStyle","borderRadius"]),_=Ec(t),b=t.getModel("emphasis"),w=b.get("focus"),S=b.get("blurScope"),M=b.get("disabled"),C=c||h?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],T=n;T<i;T++){var I=void 0,D=g.getItemVisual(T,"style");if(c){var A=g.get(C[0],T),k=g.get(C[1],T);if(isNaN(g.get(C[2],T))||isNaN(A)||isNaN(k)||A<s[0]||A>s[1]||k<l[0]||k>l[1])continue;var E=u.dataToPoint([A,k]);I=new Ql({shape:{x:E[0]-o/2,y:E[1]-a/2,width:o,height:a},style:D})}else if(h){if(yt((L=u.dataToLayout([g.get(C[0],T),g.get(C[1],T)]).rect).x))continue;I=new Ql({z2:1,shape:L,style:D})}else{if(isNaN(g.get(C[1],T)))continue;var L,O=u.dataToLayout([g.get(C[0],T)]);if(yt((L=O.contentRect||O.rect).x)||yt(L.y))continue;I=new Ql({z2:1,shape:L,style:D})}if(g.hasItemOption){var P=g.getItemModel(T),N=P.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),y=P.getModel(["blur","itemStyle"]).getItemStyle(),v=P.getModel(["select","itemStyle"]).getItemStyle(),x=P.get(["itemStyle","borderRadius"]),w=N.get("focus"),S=N.get("blurScope"),M=N.get("disabled"),_=Ec(P)}I.shape.r=x;var R=t.getRawValue(T),z="-";R&&null!=R[2]&&(z=R[2]+""),kc(I,_,{labelFetcher:t,labelDataIndex:T,defaultOpacity:D.opacity,defaultText:z}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=y,I.ensureState("select").style=v,lc(I,w,S,M),I.incremental=r,r&&(I.states.emphasis.hoverLayer=!0),f.add(I),g.setItemGraphicEl(T,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new VB;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-c,g=p-h,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],y=a.mapArray(m,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=c,r[1]-=h,r.push(i),r})),v=n.getExtent(),x="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(v,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=J(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}))).length,o=0;return function(t){var i;for(i=o;i<r;i++)if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}if(i===r)for(i=o-1;i>=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}(v,n.getPieceList(),n.option.selected);s.update(y,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new $l({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(rv);const WB=FB,GB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(t,e){return mw(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=cd.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Pd.color.primary}}},e}(Eg);var jB=["itemStyle","borderWidth"],$B=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UB=new im,qB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:$B[+s],categoryDim:$B[1-+s]};r.diff(o).add((function(t){if(r.hasValue(t)){var e=eV(r,t),n=YB(r,t,e,u),o=rV(r,u,n);r.setItemGraphicEl(t,o),i.add(o),uV(o,u,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=eV(r,t),s=YB(r,t,a,u),l=aV(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var i=n.animationModel,r=n.dataIndex;_c(t.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?KB(t,e,n,!0):JB(t,0,n,!0),QB(t,n,!0),tV(t,e,n,!0)}(n,u,s):n=rV(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),uV(n,u,s)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&oV(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var c=t.get("clip",!0)?iI(t.coordinateSystem,!1,t):null;return c?i.setClipPath(c):i.removeClipPath(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){oV(i,yu(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(rv);function YB(t,e,n,i){var r=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),h={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?n:null,hoverScale:c&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,i,r){var o,a=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(ot(s)){var h=[XB(l,s[0])-u,XB(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?XB(l,s)-u:e?i.coordSysExtent[a.index][c]-u:n[a.wh];r.boundingLength=o,e&&(r.repeatCutLength=n[a.wh]);var d="x"===a.xy,p=l.inverse;r.pxSign=d&&!p||!d&&p?o>=0?1:-1:o>0?1:-1}(n,o,r,i,h),function(t,e,n,i,r,o,a,s,l,u){var c,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=t.getItemVisual(e,"symbolSize");(c=ot(f)?f.slice():null==f?["100%","100%"]:[f,f])[d.index]=Yo(c[d.index],p),c[h.index]=Yo(c[h.index],i?p:Math.abs(o)),u.symbolSize=c,(u.symbolScale=[c[0]/s,c[1]/s])[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,h.boundingLength,h.pxSign,u,i,h),function(t,e,n,i,r){var o=t.get(jB)||0;o&&(UB.attr({scaleX:e[0],scaleY:e[1],rotation:n}),UB.updateTransform(),o/=UB.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o||0}(n,h.symbolScale,l,i,h);var d=h.symbolSize,p=gx(n.get("symbolOffset"),d);return function(t,e,n,i,r,o,a,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,f=h.pxSign,g=Math.max(e[p.index]+s,0),m=g;if(i){var y=Math.abs(l),v=vt(t.get("symbolMargin"),"15%")+"",x=!1;v.lastIndexOf("!")===v.length-1&&(x=!0,v=v.slice(0,v.length-1));var _=Yo(v,e[p.index]),b=Math.max(g+2*_,0),w=x?0:2*_,S=ga(i),M=S?i:cV((y+w)/b);b=g+2*(_=(y-M*g)/2/(x?M:Math.max(M-1,1))),w=x?0:2*_,S||"fixed"===i||(M=u?cV((Math.abs(u)+w)/b):0),m=M*b-w,h.repeatTimes=M,h.symbolMargin=_}var C=f*(m/2),T=h.pathPosition=[];T[d.index]=n[d.wh]/2,T[p.index]="start"===a?C:"end"===a?l-C:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var I=h.bundlePosition=[];I[d.index]=n[d.xy],I[p.index]=n[p.xy];var D=h.barRectShape=j({},n);D[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(T[p.index]+C)),D[d.wh]=n[d.wh];var A=h.clipShape={};A[d.xy]=-n[d.xy],A[d.wh]=c.ecSize[d.wh],A[p.xy]=0,A[p.wh]=n[p.wh]}(n,d,r,o,0,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function XB(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function ZB(t){var e=t.symbolPatternSize,n=px(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function KB(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(sV(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?lV(t,null,f(c),n,i):lV(t,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(t)})),c++}));c<u;c++){var d=ZB(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,r.add(d);var p=f(c);lV(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-t),e[l.index]=h*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function JB(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?lV(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=ZB(n),r.add(o),lV(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function QB(t,e,n){var i=j({},e.barRectShape),r=t.__pictorialBarRect;r?lV(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new Ql({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function tV(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=j({},n.clipShape),a=e.valueDim,s=n.animationModel,u=n.dataIndex;if(r)_c(r,{shape:o},s,u);else{o[a.wh]=0,r=new Ql({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var c={};c[a.wh]=n.clipShape[a.wh],l[i?"updateProps":"initProps"](r,{shape:c},s,u)}}}function eV(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=nV,n.isAnimationEnabled=iV,n}function nV(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function iV(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function rV(t,e,n,i){var r=new Ao,o=new Ao;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?KB(r,e,n):JB(r,0,n),QB(r,n,i),tV(r,e,n,i),r.__pictorialShapeStr=aV(t,n),r.__pictorialSymbolMeta=n,r}function oV(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];sV(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),K(o,(function(t){Sc(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function aV(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function sV(t,e,n){K(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function lV(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&l[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function uV(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");sV(t,(function(t){if(t instanceof $l){var e=t.style;t.useStyle(j({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var p=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,kc(f,Ec(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:NT(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),lc(t,c,h,o.get("disabled"))}function cV(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const hV=qB,dV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return m(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=ah(_I.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:Pd.color.primary}}}),e}(_I);var pV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new Nb(this._layersSeries||[],a,c,c),d=[];function p(e,n,s){var l=r._layers;if("remove"!==e){for(var u,c,h=[],p=[],f=a[n].indices,g=0;g<f.length;g++){var m=i.getItemLayout(f[g]),y=m.x,v=m.y0,x=m.y;h.push(y,v),p.push(y,v+x),u=i.getItemVisual(f[g],"style")}var _=i.getItemLayout(f[0]),b=t.getModel("label").get("margin"),w=t.getModel("emphasis");if("add"===e){var S=d[n]=new Ao;c=new tI({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),o.add(S),t.isAnimationEnabled()&&c.setClipPath(function(t,e){var n=new Ql({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return bc(n,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,(function(){c.removeClipPath()})),n}(c.getBoundingRect(),t))}else S=l[s],c=S.childAt(0),o.add(S),d[n]=S,_c(c,{shape:{points:h,stackedOnPoints:p}},t),Tc(c);kc(c,Ec(t),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var M=c.getTextContent();M&&(M.x=_.x-b,M.y=_.y0+_.y/2),c.useStyle(u),i.setItemGraphicEl(n,c),dc(c,t),lc(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else o.remove(l[n])}h.add(it(p,this,"add")).update(it(p,this,"update")).remove(it(p,this,"remove")).execute(),this._layersSeries=a,this._layers=d},e.type="themeRiver",e}(rv);const fV=pV;var gV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new uD(it(this.getData,this),it(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=Wa(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",Ba).models[0].get("type"),i=tt(t.data,(function(t){return void 0!==t[2]})),r=this.fixData(i||[]),o=[],a=this.nameMap=Et(),s=0,l=0;l<r.length;++l)o.push(r[l][2]),a.get(r[l][2])||(a.set(r[l][2],s),s++);var u=lw(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Bb(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new aw(u,this);return c.initData(r),c},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),o=Wa(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(r,e)-t.get(r,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){ot(t)||(t=t?[t]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,d=0;d<h;++d){var p=r.get(t[0],o[l].indices[d]),f=Math.abs(p-e);f<=u&&(i=p,u=f,c=o[l].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData();return sg("nameValue",{name:i.getName(t),value:i.get(i.mapDimension("value"),t)})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Eg);const mV=gV;function yV(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=t.get("boundaryGap"),a=n.getAxis();i.boundaryGap=o,"horizontal"===a.orient?(o[0]=Yo(o[0],r.height),o[1]=Yo(o[1],r.height),vV(e,t,r.height-o[0]-o[1])):(o[0]=Yo(o[0],r.width),o[1]=Yo(o[1],r.width),vV(e,t,r.width-o[0]-o[1])),e.setLayout("layoutInfo",i)}))}function vV(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=J(o,(function(e){return J(e.indices,(function(e){var n=r.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),u=function(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(o-i[u])/2;o=0;for(var c=0;c<n;++c){var h=i[c]+r[c];h>o&&(o=h)}return{y0:r,max:o}}(l),c=u.y0,h=n/u.max,d=o.length,p=o[0].indices.length,f=0;f<p;++f){i=c[f]*h,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*h});for(var g=1;g<d;++g)i+=l[g-1][f][1]*h,t.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*h})}}var xV=function(t){function e(e,n,i,r){var o=t.call(this)||this;o.z2=2,o.textConfig={inside:!0},yu(o).seriesIndex=n.seriesIndex;var a=new mu({z2:4,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,i,r),o}return m(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;yu(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=j({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=$x(h,r));var d=II(a.getModel("itemStyle"),u,!0);j(u,d),K(Su,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=II(n,u);i&&(e.shape=i)})),t?(o.setShape(u),o.shape.r=l.r0,bc(o,{shape:{r:l.r}},n,e.dataIndex)):(_c(o,{shape:u},n),Tc(o)),o.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus");lc(this,"relative"===f?Lt(e.getAncestorsIndices(),e.getDescendantIndices()):"ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(o)<d);function f(t,e){var n=t.get(e);return null==n?i.get(e):n}c.ignore=!p,K(Mu,(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,g=p?c:c.ensureState(i),m=t.getFormattedLabel(h,i);p&&(m=m||e.node.name),g.style=Lc(d,{},null,"normal"!==i,!0),m&&(g.style.text=m);var y=d.get("show");null==y||p||(g.ignore=!y);var v,x=f(d,"position"),_=p?u:u.states[i],b=_.style.fill;_.textConfig={outsideFill:"inherit"===d.get("color")?b:null,inside:"outside"!==x};var w=f(d,"distance")||0,S=f(d,"align"),M=f(d,"rotate"),C=.5*Math.PI,T=1.5*Math.PI,I=wl("tangential"===M?Math.PI/2-a:a),D=I>C&&!aa(I-C)&&I<T;"outside"===x?(v=r.r+w,S=D?"right":"left"):S&&"center"!==S?"left"===S?(v=r.r0+w,S=D?"right":"left"):"right"===S&&(v=r.r-w,S=D?"left":"right"):(v=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=v*s+r.cx,g.y=v*l+r.cy;var A=0;"radial"===M?A=wl(-a)+(D?Math.PI:0):"tangential"===M?A=wl(Math.PI/2-a)+(D?Math.PI:0):ut(M)&&(A=M*Math.PI/180),g.rotation=wl(A)})),c.dirtyStyle()},e}(bm);const _V=xV;var bV="sunburstRootToNode",wV="sunburstHighlight",SV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h=this._oldChildren||[];!function(i,r){function s(t){return t.getId()}function c(s,c){!function(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):(c=r)&&c.piece&&(l.remove(c.piece),c.piece=null);else if(i){var s=new _V(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}var c}(null==s?null:i[s],null==c?null:r[c])}0===i.length&&0===r.length||new Nb(r,i,s,s).add(c).update(c).remove(rt(c,null)).execute()}(c,h),function(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new _V(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");a&&nd(a,o.get("target",!0)||"_blank")}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:bV,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(rv);const MV=SV;function CV(t){var e=0;K(t.children,(function(t){CV(t);var n=t.value;ot(n)&&(n=n[0]),e+=n}));var n=t.value;ot(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),ot(t.value)?t.value[0]=n:t.value=n}const TV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};CV(n);var i=this._levelModels=J(t.levels||[],(function(t){return new ih(t,this,e)}),this),r=VL.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t}))}));return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=GL(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){ZL(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Eg);var IV=Math.PI/180;function DV(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");ot(i)||(i=[0,i]),ot(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Yo(e[0],r),l=Yo(e[1],o),u=Yo(i[0],a/2),c=Yo(i[1],a/2),h=-t.get("startAngle")*IV,d=t.get("minAngle")*IV,p=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,m=t.get("sort");null!=m&&AV(f,m);var y=0;K(f.children,(function(t){!isNaN(t.getValue())&&y++}));var v=f.getValue(),x=Math.PI/(v||y)*2,_=f.depth>0,b=f.height-(_?-1:1),w=(c-u)/(b||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),C=S?1:-1,T=function(e,n){if(e){var i=n;if(e!==p){var r=e.getValue(),o=0===v&&M?x:r*x;o<d&&(o=d),i=n+C*o;var c=e.depth-g-(_?-1:1),h=u+w*c,f=u+w*(c+1),m=t.getLevelModel(e);if(m){var y=m.get("r0",!0),b=m.get("r",!0),I=m.get("radius",!0);null!=I&&(y=I[0],b=I[1]),null!=y&&(h=Yo(y,a/2)),null!=b&&(f=Yo(b,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:h,r:f})}if(e.children&&e.children.length){var D=0;K(e.children,(function(t){D+=T(t,n+D)}))}return i-n}};if(_){var I=u,D=u+w,A=2*Math.PI;p.setLayout({angle:A,startAngle:h,endAngle:h+A,clockwise:S,cx:s,cy:l,r0:I,r:D})}T(f,h)}))}function AV(t,e){var n=t.children||[];t.children=function(t,e){if(at(e)){var n=J(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),J(n,(function(e){return t[e.index]}))}var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}(n,e),n.length&&K(t.children,(function(t){AV(t,e)}))}function kV(t){var e={};t.eachSeriesByType("sunburst",(function(t){var n=t.getData(),i=n.tree;i.eachNode((function(r){var o=r.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(t,n,i){if(0===t.depth)return Pd.color.neutral50;for(var r=t;r&&r.depth>1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&st(o)&&(o=Oi(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height)),j(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)}))}))}var EV={color:"fill",borderColor:"stroke"},LV={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},OV=Pa();const PV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return mw(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=OV(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Eg);function NV(t,e){return e=e||[0,0],J(["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function RV(t,e){return e=e||[0,0],J([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function zV(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function BV(t,e){return e=e||[0,0],J(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}function VV(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Nt(t,"text")))}function HV(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},Nt(a,"text")&&(o.text=a.text),Nt(a,"rich")&&(o.rich=a.rich),Nt(a,"textFill")&&(o.fill=a.textFill),Nt(a,"textStroke")&&(o.stroke=a.textStroke),Nt(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Nt(a,"fontSize")&&(o.fontSize=a.fontSize),Nt(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Nt(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=Nt(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Nt(a,"textPosition")&&(i.position=a.textPosition),Nt(a,"textOffset")&&(i.offset=a.textOffset),Nt(a,"textRotation")&&(i.rotation=a.textRotation),Nt(a,"textDistance")&&(i.distance=a.textDistance)}return FV(o,t),K(o.rich,(function(t){FV(t,t)})),{textConfig:i,textContent:r}}function FV(t,e){e&&(e.font=e.textFont||e.font,Nt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Nt(e,"textAlign")&&(t.align=e.textAlign),Nt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Nt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Nt(e,"textWidth")&&(t.width=e.textWidth),Nt(e,"textHeight")&&(t.height=e.textHeight),Nt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Nt(e,"textPadding")&&(t.padding=e.textPadding),Nt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Nt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Nt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Nt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Nt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Nt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Nt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function WV(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||Pd.color.neutral99;GV(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||Pd.color.neutral00,!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||Pd.color.neutral00),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,K(e.rich,(function(t){GV(t,t)})),i}function GV(t,e){e&&(Nt(e,"fill")&&(t.textFill=e.fill),Nt(e,"stroke")&&(t.textStroke=e.fill),Nt(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Nt(e,"font")&&(t.font=e.font),Nt(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Nt(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Nt(e,"fontSize")&&(t.fontSize=e.fontSize),Nt(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Nt(e,"align")&&(t.textAlign=e.align),Nt(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Nt(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Nt(e,"width")&&(t.textWidth=e.width),Nt(e,"height")&&(t.textHeight=e.height),Nt(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Nt(e,"padding")&&(t.textPadding=e.padding),Nt(e,"borderColor")&&(t.textBorderColor=e.borderColor),Nt(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Nt(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Nt(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Nt(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Nt(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Nt(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Nt(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Nt(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Nt(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Nt(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var jV={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},$V=nt(jV),UV=(Q(Qr,(function(t,e){return t[e]=1,t}),{}),Qr.join(", "),["","style","shape","extra"]),qV=Pa();function YV(t,e,n,i,r){var o=t+"Animation",a=vc(t,i,r)||{},s=qV(e).userDuring;return a.duration>0&&(a.during=s?it(eH,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),j(a,n[o]),a}function XV(t,e,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=qV(t),u=e.style;l.userDuring=e.during;var c={},h={};if(function(t,e,n){for(var i=0;i<$V.length;i++){var r=$V[i],o=jV[r],a=e[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<Qr.length;i++){var s=Qr[i];null!=e[s]&&(n[s]=e[s])}}(0,e,h),"compound"===t.type)for(var d=t.shape.paths,p=e.shape.paths,f=0;f<p.length;f++)iH("shape",p[f],d[f]);else iH("shape",e,h),iH("extra",e,h);if(!o&&s&&(function(t,e,n){for(var i=e.transition,r=JV(i)?Qr:wa(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];n[a]=s}}}(t,e,c),nH("shape",t,e,c),nH("extra",t,e,c),function(t,e,n,i){if(n){var r,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!JV(a)){var l=wa(a);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var c=o[f=l[u]];r[f]=c}}else if(t.getAnimationStyleProps&&(JV(s)||JV(a)||q(s,"style")>=0)){var h=t.getAnimationStyleProps(),d=h?h.style:null;if(d){!r&&(r=i.style={});var p=nt(n);for(u=0;u<p.length;u++){var f;d[f=p[u]]&&(c=o[f],r[f]=c)}}}}}}(t,e,u,c)),h.style=u,function(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}(t,h,a),function(t,e){Nt(e,"silent")&&(t.silent=e.silent),Nt(e,"ignore")&&(t.ignore=e.ignore),t instanceof Rs&&Nt(e,"invisible")&&(t.invisible=e.invisible),t instanceof Bl&&Nt(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(o){var g={};K(UV,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(g[t]=g[t]||{}),j(t?g[t]:g,n.enterFrom))}));var m=YV("enter",t,e,n,r);m.duration>0&&t.animateFrom(g,m)}else!function(t,e,n,i,r){if(r){var o=YV("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}(t,e,r||0,n,c);ZV(t,e),u?t.dirty():t.markRedraw()}function ZV(t,e){for(var n=qV(t).leaveToProps,i=0;i<UV.length;i++){var r=UV[i],o=r?e[r]:e;o&&o.leaveTo&&(n||(n=qV(t).leaveToProps={}),r&&(n[r]=n[r]||{}),j(r?n[r]:n,o.leaveTo))}}function KV(t,e,n,i){if(t){var r=t.parent,o=qV(t).leaveToProps;if(o){var a=YV("update",t,e,n,0);a.done=function(){r&&r.remove(t),i&&i()},t.animateTo(o,a)}else r&&r.remove(t),i&&i()}}function JV(t){return"all"===t}var QV={},tH={setTransform:function(t,e){return QV.el[t]=e,this},getTransform:function(t){return QV.el[t]},setShape:function(t,e){var n=QV.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=QV.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=QV.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=QV.el.style;if(e)return e[t]},setExtra:function(t,e){return(QV.el.extra||(QV.el.extra={}))[t]=e,this},getExtra:function(t){var e=QV.el.extra;if(e)return e[t]}};function eH(){var t=this,e=t.el;if(e){var n=qV(e).userDuring,i=t.userDuring;n===i?(QV.el=e,i(tH)):t.el=t.userDuring=null}}function nH(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[t]={}),JV(l))j(o,a);else for(var u=wa(l),c=0;c<u.length;c++){var h=a[p=u[c]];o[p]=h}else if(JV(s)||q(s,t)>=0){!o&&(o=i[t]={});var d=nt(a);for(c=0;c<d.length;c++){var p;h=a[p=d[c]],rH(r[p],h)&&(o[p]=h)}}}}}function iH(t,e,n){var i=e[t];if(i)for(var r=n[t]={},o=nt(i),a=0;a<o.length;a++){var s=o[a];r[s]=fr(i[s])}}function rH(t,e){return Z(t)?t!==e:null!=t&&isFinite(t)}var oH=Pa(),aH=["percent","easing","shape","style","extra"];function sH(t){t.stopAnimation("keyframe"),t.attr(oH(t))}function lH(t,e,n){if(n.isAnimationEnabled()&&e)if(ot(e))K(e,(function(e){lH(t,e,n)}));else{var i=e.keyframes,r=e.duration;if(n&&null==r){var o=vc("enter",n,0);r=o&&o.duration}if(i&&r){var a=oH(t);K(UV,(function(n){var o;n&&!t[n]||(i.sort((function(t,e){return t.percent-e.percent})),K(i,(function(i){var s=t.animators,l=n?i[n]:i;if(l){var u=nt(l);if(n||(u=tt(u,(function(t){return q(aH,t)<0}))),u.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var h=n?a[n]:a;K(u,(function(e){h[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(r*i.percent,l,u,i.easing)}}})),o&&o.delay(e.delay||0).duration(r).start(e.easing))}))}}}var uH="emphasis",cH="normal",hH="blur",dH="select",pH=[cH,uH,hH,dH],fH={normal:["itemStyle"],emphasis:[uH,"itemStyle"],blur:[hH,"itemStyle"],select:[dH,"itemStyle"]},gH={normal:["label"],emphasis:[uH,"label"],blur:[hH,"label"],select:[dH,"label"]},mH=["x","y"],yH={normal:{},emphasis:{},blur:{},select:{}},vH={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:it(NV,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:it(RV,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:it(zV,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:it(BV,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)},layout:function(e,n){return t.dataToLayout(e,n)}}}},matrix:function(t){var e=t.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e,n){return t.dataToPoint(e,n)},layout:function(e,n){return t.dataToLayout(e,n)}}}}};function xH(t){return t instanceof Bl}function _H(t){return t instanceof Rs}const bH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=TH(t,o,e,n);r||a.removeAll(),o.diff(r).add((function(e){DH(n,null,e,s(e,i),t,a,o)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&KV(n,OV(n).option,t)})).update((function(e,l){var u=r.getItemGraphicEl(l);DH(n,u,e,s(e,i),t,a,o)})).execute();var l=t.get("clip",!0)?iI(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=TH(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=DH(null,null,u,a(u,r),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){Fy(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},e.type="custom",e}(rv);function wH(t){var e,n=t.type;if("path"===n){var i=null!=(o=t.shape).width&&null!=o.height?{x:o.x||0,y:o.y||0,width:o.width,height:o.height}:null,r=BH(o);e=yy(r,null,i,o.layout||"center"),OV(e).customPathData=r}else if("image"===n)e=new $l({}),OV(e).customImagePath=t.style.image;else if("text"===n)e=new mu({});else if("group"===n)e=new Ao;else if("compoundPath"===n){var o;(o=t.shape)&&o.paths||af("");var a=J(o.paths,(function(t){if("path"===t.type)return yy(t.shape.pathData,t,null);var e=my(t.type);return e||af(""),new e}));e=new $m({shape:{paths:a}})}else{var s=my(n);s||af(""),e=new s}return OV(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function SH(t,e,n,i,r,o,a){sH(e);var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=mH);var l=i&&i.style;if(l){if("text"===e.type){var u=l;Nt(u,"textFill")&&(u.fill=u.textFill),Nt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=xH(e)?l.decal:null;t&&h&&(h.dirty=!0,c=$x(h,t)),l.__decalPattern=c}_H(e)&&l&&(c=l.__decalPattern)&&(l.decal=c),XV(e,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),lH(e,i.keyframeAnimation,o)}function MH(t,e,n,i,r){var o=e.isGroup?null:e,a=r&&r[t].cfg;if(o){var s=o.ensureState(t);if(!1===i){var l=o.getState(t);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),$u(o)}}function CH(t,e,n){var i=n===cH,r=i?e:LH(e,n),o=r?r.z2:null;null!=o&&((i?t:t.ensureState(n)).z2=o||0)}function TH(t,e,n,i){var r=t.get("renderItem");if("string"==typeof r){var o=Jx[r];o&&(r=o)}var a=t.coordinateSystem,s={};a&&(s=a.prepareCustoms?a.prepareCustoms(a):vH[a.type](a));for(var l,u,c=$({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=l),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,i){null==i&&(i=l);var r=e.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,s=x(i,cH).getItemStyle();null!=o&&(s.fill=o),null!=a&&(s.opacity=a);var u={inheritColor:st(o)?o:Pd.color.neutral99},c=_(i,cH),h=Lc(c,null,u,!1,!0);h.text=c.getShallow("show")?xt(t.getFormattedLabel(i,cH),NT(e,i)):null;var d=Oc(c,u,!1);return w(n,s),s=WV(s,h,d),n&&b(s,n),s.legacy=!0,s},ordinalRawValue:function(t,n){null==n&&(n=l),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,i){null==i&&(i=l);var r=x(i,uH).getItemStyle(),o=_(i,uH),a=Lc(o,null,null,!0,!0);a.text=o.getShallow("show")?_t(t.getFormattedLabel(i,uH),t.getFormattedLabel(i,cH),NT(e,i)):null;var s=Oc(o,null,!0);return w(n,r),r=WV(r,a,s),n&&b(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=l),Nt(EV,t)){var i=e.getItemVisual(n,"style");return i?i[EV[t]]:null}if(Nt(LV,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===a.type)return function(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o<t.count;o++)e.push($({bandWidth:r,axisKey:i,stackId:Hw+o},t));var a=$w(e),s=[];for(o=0;o<t.count;o++){var l=a[i][Hw+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}($({axis:a.getBaseAxis()},t))},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return Bc(t,n)}},s.api||{}),h={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:IH(t.getData()),itemPayload:t.get("itemPayload")||{}},d={},p={},f={},g={},m=0;m<pH.length;m++){var y=pH[m];f[y]=t.getModel(fH[y]),g[y]=t.getModel(gH[y])}function v(t){return t===l?u||(u=e.getItemModel(t)):e.getItemModel(t)}function x(t,n){return e.hasItemOption?t===l?d[n]||(d[n]=v(t).getModel(fH[n])):v(t).getModel(fH[n]):f[n]}function _(t,n){return e.hasItemOption?t===l?p[n]||(p[n]=v(t).getModel(gH[n])):v(t).getModel(gH[n]):g[n]}return function(t,n){return l=t,u=null,d={},p={},r&&r($({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},h),c)};function b(t,e){for(var n in e)Nt(e,n)&&(t[n]=e[n])}function w(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function IH(t){var e={};return K(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim;(e[r]=e[r]||[])[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function DH(t,e,n,i,r,o,a){if(i){var s=AH(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&lc(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(e)}function AH(t,e,n,i,r,o){var a=-1,s=e;e&&kH(e,i,r)&&(a=q(o.childrenRef(),e),e=null);var l,u,c=!e,h=e;h?h.clearStates():(h=wH(i),s&&(l=s,(u=h).copyTransform(l),_H(u)&&_H(l)&&(u.setStyle(l.style),u.z=l.z,u.z2=l.z2,u.zlevel=l.zlevel,u.invisible=l.invisible,u.ignore=l.ignore,xH(u)&&xH(l)&&u.setShape(l.shape)))),!1===i.morph?h.disableMorphing=!0:h.disableMorphing&&(h.disableMorphing=!1),i.tooltipDisabled&&(h.tooltipDisabled=!0),yH.normal.cfg=yH.normal.conOpt=yH.emphasis.cfg=yH.emphasis.conOpt=yH.blur.cfg=yH.blur.conOpt=yH.select.cfg=yH.select.conOpt=null,yH.isLegacy=!1,function(t,e,n,i,r,o){if(!t.isGroup&&"compoundPath"!==t.type){EH(n,null,o),EH(n,uH,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=wH(a),t.setTextContent(c)),SH(null,c,e,a,null,i,r);for(var h=a&&a.style,d=0;d<pH.length;d++){var p=pH[d];if(p!==cH)MH(p,c,0,OH(a,o[p].conOpt,p),null)}h?c.dirty():c.markRedraw()}}}}(h,n,i,r,c,yH),function(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&kH(a,o,i)&&(a=null),a||(a=wH(o),t.setClipPath(a)),SH(null,a,e,o,null,i,r)}}(h,n,i,r,c),SH(t,h,n,i,yH,r,c),Nt(i,"info")&&(OV(h).info=i.info);for(var d=0;d<pH.length;d++){var p=pH[d];if(p!==cH)MH(p,h,0,OH(i,LH(i,p),p),yH)}return function(t,e,n){if(!t.isGroup){var i=t,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=e.z2;null!=a&&(i.z2=a||0);for(var s=0;s<pH.length;s++)CH(i,e,pH[s])}}(h,i,r),"group"===i.type&&function(t,e,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(a||l||u){if(l)return c={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:e},void new Nb(c.oldChildren,c.newChildren,NH,NH,c).add(RH).update(RH).remove(zH).execute();var c;u&&e.removeAll();for(var h=0;h<a;h++){var d=o[h],p=e.childAt(h);d?(null==d.ignore&&(d.ignore=!1),AH(t,p,n,d,r,e)):p.ignore=!0}for(var f=e.childCount()-1;f>=h;f--){var g=e.childAt(f);PH(e,g,r)}}}(t,h,n,i,r),a>=0?o.replaceAt(h,a):o.add(h),h}function kH(t,e,n){var i,r=OV(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&(i=a)&&(Nt(i,"pathData")||Nt(i,"d"))&&BH(a)!==r.customPathData||"image"===o&&Nt(s,"image")&&s.image!==r.customImagePath}function EH(t,e,n){var i=e?LH(t,e):t,r=e?OH(t,i,uH):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?LH(s,e):s:null;if(r&&(n.isLegacy||VV(r,o,!!a,!!l))){n.isLegacy=!0;var u=HV(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function LH(t,e){return e?t?t[e]:null:t}function OH(t,e,n){var i=e&&e.style;return null==i&&n===uH&&t&&(i=t.styleEmphasis),i}function PH(t,e,n){e&&KV(e,OV(t).option,n)}function NH(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function RH(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;AH(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function zH(t){var e=this.context,n=e.oldChildren[t];n&&KV(n,OV(n).option,e.seriesModel)}function BH(t){return t&&(t.pathData||t.d)}var VH=Pa(),HH=F,FH=it,WH=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=rt(GH,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Ao,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);qH(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=PA(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=VH(t).pointerEl=new l[r.type](HH(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=VH(t).labelEl=new mu(HH(e.label));t.add(r),$H(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=VH(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=VH(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),$H(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Ly(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ne(t.event)},onmousedown:FH(this._onHandleDragMove,this,0,0),drift:FH(this._onHandleDragMove,this),ondragend:FH(this._onHandleDragEnd,this)}),i.add(r)),qH(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");ot(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,uv(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){GH(this._axisPointerModel,!e&&this._moveAnimation,this._handle,UH(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(UH(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(UH(i)),VH(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),cv(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function GH(t,e,n,i){jH(VH(n).lastProp,i)||(VH(n).lastProp=i,e?_c(n,i,t):(n.stopAnimation(),n.attr(i)))}function jH(t,e){if(ct(t)&&ct(e)){var n=!0;return K(e,(function(e,i){n=n&&jH(t[i],e)})),!!n}return t===e}function $H(t,e){t[e.get(["label","show"])?"show":"hide"]()}function UH(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function qH(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}const YH=WH;function XH(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function ZH(t,e,n,i,r){var o=KH(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=qh(a.get("padding")||0),l=a.getFont(),u=uo(o,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],p=r.align;"right"===p&&(c[0]-=h),"center"===p&&(c[0]-=h/2);var f=r.verticalAlign;"bottom"===f&&(c[1]-=d),"middle"===f&&(c[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Lc(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function KH(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:SS(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};K(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),st(a)?o=a.replace("{value}",o):at(a)&&(o=a(s))}return o}function JH(t,e,n){var i=[1,0,0,1,0,0];return $e(i,i,n.rotation),je(i,i,n.position),Ty([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function QH(t,e,n,i,r,o){var a=yA.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),ZH(e,i,r,o,{position:JH(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function tF(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function eF(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function nF(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var iF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=rF(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=XH(i),h=oF[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}QH(e,t,vA(a.getRect(),n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=vA(e.axis.grid.getRect(),e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=JH(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=rF(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];return h[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(YH);function rF(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var oF={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:tF([e,n[0]],[e,n[1]],aF(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:eF([e-i/2,n[0]],[i,r],aF(t))}}};function aF(t){return"x"===t.dim?0:1}const sF=iF,lF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Pd.color.border,width:1,type:"dashed"},shadowStyle:{color:Pd.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Pd.color.neutral00,padding:[5,7,5,7],backgroundColor:Pd.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:Pd.color.accent40,throttle:40}},e}(Ad);var uF=Pa(),cF=K;function hF(t,e,n){if(!x.node){var i=e.getZr();uF(i).records||(uF(i).records={}),function(t,e){function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);cF(uF(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}uF(t).initialized||(uF(t).initialized=!0,n("click",rt(pF,"click")),n("mousemove",rt(pF,"mousemove")),n("globalout",dF))}(i,e),(uF(i).records[t]||(uF(i).records[t]={})).handler=n}}function dF(t,e,n){t.handler("leave",null,n)}function pF(t,e,n,i){e.handler(t,n,i)}function fF(t,e){if(!x.node){var n=e.getZr();(uF(n).records||{})[t]&&(uF(n).records[t]=null)}}var gF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";hF("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){fF("axisPointer",e)},e.prototype.dispose=function(t,e){fF("axisPointer",e)},e.type="axisPointer",e}(Og);const mF=gF;function yF(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Oa(o,t);if(null==a||a<0||ot(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,d="x"===c||"radius"===c?1:0,p=o.mapDimension(h),f=[];f[d]=o.get(p,a),f[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(J(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var vF=Pa();function xF(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||it(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){MF(r)&&(r=yF({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=MF(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||MF(r),d={},p={},f={list:[],map:{}},g={showPointer:rt(bF,p),showTooltip:rt(wF,f)};K(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);K(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&_F(t,a,g,!1,d)}}))}));var m={};return K(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&K(n.axesInfo,(function(e,i){var r=p[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,SF(e),SF(t)))),m[t.key]=o}}))})),K(m,(function(t,e){_F(c[e],t,g,!0,d)})),function(t,e,n){var i=n.axesInfo=[];K(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(p,c,d),function(t,e,n,i){if(!MF(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=vF(i)[r]||{},a=vF(i)[r]={};K(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&K(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];K(o,(function(t,e){!a[e]&&l.push(t)})),K(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function _F(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return K(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.indicesOfNearest(i,h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,r=u,o.length=0),K(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&j(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function bF(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function wF(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=RA(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function SF(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function MF(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function CF(t){VA.registerAxisPointerClass("CartesianAxisPointer",sF),t.registerComponentModel(lF),t.registerComponentView(mF),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!ot(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];K(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=RA(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(K(n.getAxes(),rt(p,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&K(d.baseAxes,rt(p,!h||"cross",c)),h&&K(d.otherAxes,rt(p,"cross",!1))}}function p(i,s,c){var h=c.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||NA(h))){null==s&&(s=h.get("triggerTooltip")),h=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};K(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=F(a.get(t))})),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&$(l,c.textStyle)}}return t.model.getModel("axisPointer",new ih(s,n,i))}(c,u,r,e,i,s):h;var p=h.get("snap"),f=h.get("triggerEmphasis"),g=RA(c.model),m=s||p||"category"===c.type,y=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:f,involveSeries:m,snap:p,useHandle:NA(h),seriesModels:[],linkGroup:null};l[g]=y,t.seriesInvolved=t.seriesInvolved||m;var v=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(OA(o[i+"AxisId"],n.id)||OA(o[i+"AxisIndex"],n.componentIndex)||OA(o[i+"AxisName"],n.name))return r}}(o,c);if(null!=v){var x=a[v]||(a[v]={axesInfo:{}});x.axesInfo[g]=y,x.mapper=o[v].mapper,y.linkGroup=x}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&n.model&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&K(t.coordSysAxesInfo[RA(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},xF)}var TF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),u=i.get("type");if(u&&"none"!==u){var c=XH(i),h=IF[u](o,a,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=function(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=[1,0,0,1,0,0];$e(d,d,s),je(d,d,[i.cx,i.cy]),l=Ty([a,-r],d);var p=e.getModel("axisLabel").get("rotate")||0,f=yA.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,a]);var m=i.cx,y=i.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",c=Math.abs(l[1]-y)/g<.3?"middle":l[1]>y?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,a,i.get(["label","margin"]));ZH(t,n,i,r,d)},e}(YH),IF={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:tF(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:nF(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:nF(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}};const DF=TF,AF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Ad);var kF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ba).models[0]},e.type="polarAxis",e}(Ad);X(kF,kS);var EF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="angleAxis",e}(kF),LF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="radiusAxis",e}(kF),OF=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return m(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(pM);OF.prototype.dataToRadius=pM.prototype.dataToCoord,OF.prototype.radiusToData=pM.prototype.coordToData;const PF=OF;var NF=Pa(),RF=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return m(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=uo(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),h=NF(t.model),d=h.lastAutoInterval,p=h.lastTickCount;return null!=d&&null!=p&&Math.abs(d-c)<=1&&Math.abs(p-r)<=1&&d>c?c=d:(h.lastTickCount=r,h.lastAutoInterval=c),c},e}(pM);RF.prototype.dataToAngle=pM.prototype.dataToCoord,RF.prototype.angleToData=pM.prototype.coordToData;const zF=RF;var BF=["radius","angle"],VF=function(){function t(t){this.dimensions=BF,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new PF,this._angleAxis=new zF,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],n)},t.prototype.pointToData=function(t,e,n){n=n||[];var i=this.pointToCoord(t);return n[0]=this._radiusAxis.radiusToData(i[0],e),n[1]=this._angleAxis.angleToData(i[1],e),n},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t,e){e=e||[];var n=t[0],i=t[1]/180*Math.PI;return e[0]=Math.cos(i)*n+this.cx,e[1]=-Math.sin(i)*n+this.cy,e},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180,r=1e-4;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,o=n*n+i*i,a=this.r,s=this.r0;return a!==s&&o-r<=a*a&&o+r>=s*s},x:this.cx-e[1],y:this.cy-e[1],width:2*e[1],height:2*e[1]}},t.prototype.convertToPixel=function(t,e,n){return HF(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return HF(e)===this?this.pointToData(n):null},t}();function HF(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const FF=VF;function WF(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();K(TS(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),K(TS(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),_S(i.scale,i.model),_S(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function GF(t,e){var n;if(t.type=e.get("type"),t.scale=bS(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle"),r=null!==(n=e.get("endAngle"))&&void 0!==n?n:i+(t.inverse?-360:360);t.setExtent(i,r)}e.axis=t,t.model=e}const jF={dimensions:BF,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new FF(i+"");r.update=WF;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");GF(o,s),GF(a,l),function(t,e,n){var i=e.get("center"),r=bd(e,n).refContainer;t.cx=Yo(i[0],r.width)+r.x,t.cy=Yo(i[1],r.height)+r.y;var o=t.getRadiusAxis(),a=Math.min(r.width,r.height)/2,s=e.get("radius");null==s?s=[0,"100%"]:ot(s)||(s=[0,s]);var l=[Yo(s[0],a),Yo(s[1],a)];o.inverse?o.setExtent(l[1],l[0]):o.setExtent(l[0],l[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",Ba).models[0];t.coordinateSystem=e.coordinateSystem}})),n}};var $F=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function UF(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function qF(t){return t.getRadiusAxis().inverse?0:1}function YF(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var XF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return m(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords({breakTicks:"none"}),a=n.getMinorTicksCoords(),s=J(n.getViewLabels(),(function(t){t=F(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));YF(s),YF(o),K($F,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||ZF[e](this.group,t,i,o,a,r,s)}),this)}},e.type="angleAxis",e}(VA),ZF={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),u=n.getAngleAxis(),c=Math.PI/180,h=u.getExtent(),d=qF(n),p=d?0:1,f=360===Math.abs(h[1]-h[0])?"Circle":"Arc";(a=0===o[p]?new l[f]({shape:{cx:n.cx,cy:n.cy,r:o[d],startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:u.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new Mm({shape:{cx:n.cx,cy:n.cy,r:o[d],r0:o[p]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[qF(n)],u=J(i,(function(t){return new Nm({shape:UF(n,[l,l+s],t.coord)})}));t.add(_y(u,{style:$(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[qF(n)],c=[],h=0;h<r.length;h++)for(var d=0;d<r[h].length;d++)c.push(new Nm({shape:UF(n,[u,u+l],r[h][d].coord)}));t.add(_y(c,{style:$(s.getModel("lineStyle").getLineStyle(),$(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,r,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");K(a,(function(i,r){var a=l,h=i.tickValue,d=o[qF(n)],p=n.coordToPoint([d+u,i.coord]),f=n.cx,g=n.cy,m=Math.abs(p[0]-f)/d<.3?"center":p[0]>f?"left":"right",y=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[h]){var v=s[h];ct(v)&&v.textStyle&&(a=new ih(v.textStyle,l,l.ecModel))}var x=new mu({silent:yA.isLabelSilent(e),style:Lc(a,{x:p[0],y:p[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:y})});if(t.add(x),Vy({el:x,componentModel:e,itemName:i.formattedLabel,formatterParamsExtra:{isTruncated:function(){return x.isTruncated},value:i.rawLabel,tickIndex:r}}),c){var _=yA.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=i.rawLabel,yu(x).eventData=_}}),this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<i.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new Nm({shape:UF(n,o,i[c].coord)}))}for(c=0;c<u.length;c++)t.add(_y(u[c],{style:$({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new Nm({shape:UF(n,o,r[l][u].coord)}));t.add(_y(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,r,o){if(i.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,h=-i[0].coord*c,d=Math.min(o[0],o[1]),p=Math.max(o[0],o[1]),f=e.get("clockwise"),g=1,m=i.length;g<=m;g++){var y=g===m?i[0].coord:i[g].coord,v=l++%s.length;u[v]=u[v]||[],u[v].push(new bm({shape:{cx:n.cx,cy:n.cy,r0:d,r:p,startAngle:h,endAngle:-y*c,clockwise:f},silent:!0})),h=-y*c}for(g=0;g<u.length;g++)t.add(_y(u[g],{style:$({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}};const KF=XF;var JF=["splitLine","splitArea","minorSplitLine"],QF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return m(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this._axisGroup,r=this._axisGroup=new Ao;this.group.add(r);var o=t.axis,a=o.polar,s=a.getAngleAxis(),l=o.getTicksCoords(),u=o.getMinorTicksCoords(),c=s.getExtent()[0],h=o.getExtent(),d=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(a,t,c),p=new yA(t,n,d);p.build(),r.add(p.group),Ay(i,r,t),K(JF,(function(e){t.get([e,"show"])&&!o.scale.isBlank()&&tW[e](this.group,t,a,c,h,l,u)}),this)}},e.type="radiusAxis",e}(VA),tW={splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),u=0,c=n.getAngleAxis(),h=Math.PI/180,d=c.getExtent(),p=360===Math.abs(d[1]-d[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var f=[],g=0;g<o.length;g++){var m=u++%s.length;f[m]=f[m]||[],f[m].push(new l[p]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[g].coord,0),startAngle:-d[0]*h,endAngle:-d[1]*h,clockwise:c.inverse}}))}for(g=0;g<f.length;g++)t.add(_y(f[g],{style:$({stroke:s[g%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,r,o,a){if(a.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new im({shape:{cx:n.cx,cy:n.cy,r:a[u][c].coord}}));t.add(_y(l,{style:$({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,r,o){if(o.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=o[0].coord,h=1;h<o.length;h++){var d=l++%s.length;u[d]=u[d]||[],u[d].push(new bm({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[h].coord}for(h=0;h<u.length;h++)t.add(_y(u[h],{style:$({fill:s[h%s.length]},a.getAreaStyle()),silent:!0}))}}};const eW=QF;function nW(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function iW(t,e){return e.dim+t.model.componentIndex}const rW=function(t,e,n){var i={},r=function(t){var e={};K(t,(function(t,n){var i=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=iW(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var h=nW(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=Yo(t.get("barWidth"),l),p=Yo(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),p&&(c[h].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return K(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=Yo(t.categoryGap,r),a=Yo(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),K(i,(function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;K(i,(function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+a)})),c&&(h-=c.width*a);var d=-h/2;K(i,(function(t,i){n[e][i]=n[e][i]||{offset:d,width:t.width},d+=t.width*(1+a)}))})),n}(tt(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=iW(n,o),s=nW(t),l=r[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),d=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var m=e.mapDimension(h.dim),y=e.mapDimension(o.dim),v=fw(e,m),x="radius"!==o.dim||!t.get("roundCap",!0),_=h.model.get("startValue"),b=h.dataToCoord(_||0),w=0,S=e.count();w<S;w++){var M=e.get(m,w),C=e.get(y,w),T=M>=0?"p":"n",I=b;v&&(i[s][C]||(i[s][C]={p:b,n:b}),I=i[s][C][T]);var D=void 0,A=void 0,k=void 0,E=void 0;if("radius"===h.dim){var L=h.dataToCoord(M)-b,O=o.dataToCoord(C);Math.abs(L)<f&&(L=(L<0?-1:1)*f),D=I,A=I+L,E=(k=O-u)-c,v&&(i[s][C][T]=A)}else{var P=h.dataToCoord(M,x)-b,N=o.dataToCoord(C);Math.abs(P)<g&&(P=(P<0?-1:1)*g),A=(D=N+u)+c,k=I,E=I+P,v&&(i[s][C][T]=E)}e.setItemLayout(w,{cx:d,cy:p,r0:D,r:A,startAngle:-k*Math.PI/180,endAngle:-E*Math.PI/180,clockwise:k>=E})}}}))};var oW={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},aW={splitNumber:5},sW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="polar",e}(Og);function lW(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]],r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a],r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),vt(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var c=t.get(["axisLabel","rotate"]);return r.labelRotate="top"===o?-c:c,r.z2=1,r}var uW=["splitArea","splitLine","breakArea"],cW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return m(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Ao;var s=lW(e),l=new yA(e,i,s);l.build(),o.add(this._axisGroup),o.add(l.group),K(uW,(function(t){e.get([t,"show"])&&hW[t](this,this.group,this._axisGroup,e,i)}),this),Ay(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){WA(this)},e.type="singleAxis",e}(VA),hW={splitLine:function(t,e,n,i,r){var o=i.axis;if(!o.scale.isBlank()){var a=i.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),c=i.coordinateSystem.getRect(),h=o.isHorizontal(),d=[],p=0,f=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],m=[],y=0;y<f.length;++y){var v=o.toGlobalCoord(f[y].coord);h?(g[0]=v,g[1]=c.y,m[0]=v,m[1]=c.y+c.height):(g[0]=c.x,g[1]=v,m[0]=c.x+c.width,m[1]=v);var x=new Nm({shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},silent:!0});wy(x.shape,u);var _=p++%l.length;d[_]=d[_]||[],d[_].push(x)}var b=s.getLineStyle(["color"]);for(y=0;y<d.length;++y)e.add(_y(d[y],{style:$({stroke:l[y%l.length]},b),silent:!0}))}},splitArea:function(t,e,n,i,r){FA(t,n,i,i)},breakArea:function(t,e,n,i,r){var o=kD(),a=i.axis.scale;o&&"ordinal"!==a.type&&o.rectCoordBuildBreakAxis(e,t,i,i.coordinateSystem.getRect(),r)}};const dW=cW;var pW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},e}(Ad);X(pW,kS.prototype);const fW=pW;var gW=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return m(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(pM);const mW=gW;var yW=["single"],vW=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=yW,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=this.dimension,r=new mW(i,bS(t),[0,0],t.get("type"),t.get("position")),o="category"===r.type;r.onBand=o&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();K(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),_S(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){var n=bd(t,e).refContainer;this._rect=vd(t.getBoxLayoutParams(),n),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.inverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t,e,n){n=n||[];var i=this.getAxis();return n[0]=i.coordToData(i.toLocalCoord(t["horizontal"===i.orient?0:1])),n},t.prototype.dataToPoint=function(t,e,n){var i=this.getAxis(),r=this.getRect();n=n||[];var o="horizontal"===i.orient?0:1;return t instanceof Array&&(t=t[0]),n[o]=i.toGlobalCoord(i.dataToCoord(+t)),n[1-o]=0===o?r.y+r.height/2:r.x+r.width/2,n},t.prototype.convertToPixel=function(t,e,n){return xW(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return xW(e)===this?this.pointToData(n):null},t}();function xW(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const _W=vW,bW={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new _W(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",Ba).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:yW};var wW=["x","y"],SW=["width","height"],MW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=IW(a,1-TW(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var c=XH(i),h=CW[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}QH(e,t,lW(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=lW(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=JH(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=TW(r),s=IW(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=IW(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(YH),CW={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:tF([e,n[0]],[e,n[1]],TW(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:eF([e-i/2,n[0]],[i,r],TW(t))}}};function TW(t){return t.isHorizontal()?0:1}function IW(t,e){var n=t.getRect();return[n[wW[e]],n[wW[e]]+n[SW[e]]]}const DW=MW;var AW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="single",e}(Og);function kW(t,e){var n,i=t.cellSize;1===(n=ot(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=J([0,1],(function(t){return function(t,e){return null!=t[pd[e][0]]||null!=t[pd[e][1]]&&null!=t[pd[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Md(t,e,{type:"box",ignoreSize:r})}const EW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e,n,i){var r=Cd(e);t.prototype.init.apply(this,arguments),kW(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),kW(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:Pd.color.axisLine,width:1,type:"solid"}},itemStyle:{color:Pd.color.neutral00,borderWidth:1,borderColor:Pd.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:Pd.size.s,color:Pd.color.secondary},monthLabel:{show:!0,position:"start",margin:Pd.size.s,align:"center",formatter:null,color:Pd.color.secondary},yearLabel:{show:!0,position:null,margin:Pd.size.xl,formatter:null,color:Pd.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Ad);var LW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToCalendarLayout([s],!1).tl,u=new Ql({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToCalendarLayout([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Em({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToCalendarLayout([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return st(t)&&t?(n=t,K(e,(function(t,e){n=n.replace("{"+e+"}",t)})),n):at(t)?t(e):e.nameMap;var n},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),m=new mu({z2:30,style:Lc(r,{text:g}),silent:r.get("silent")});m.attr(this._yearTextPositionControl(m,h[a],n,a,o)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!st(o)||(o&&(e=fh(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,p=r.get("silent"),f=0;f<u[c].length-1;f++){var g=u[c][f].slice(),m=this._firstDayOfMonth[f];if(d){var y=this._firstDayPoints[f];g[h]=(y[h]+u[0][f+1][h])/2}var v=r.get("formatter"),x=o[+m.m-1],_={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:x},b=this._formatterLabel(v,_),w=new mu({z2:30,style:j(Lc(r,{text:b}),this._monthTextPositionControl(g,d,n,s,a)),silent:p});i.add(w)}}},e.prototype._weekTextPositionControl=function(t,e,n,i,r){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,i,r){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();l&&!st(l)||(l&&(e=fh(l)||e),l=e.get(["time","dayOfWeekShort"])||J(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]})));var h=a.getNextNDay(n.end.time,7-n.lweek).time,d=[a.getCellWidth(),a.getCellHeight()];u=Yo(u,Math.min(d[1],d[0])),"start"===s&&(h=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var p=o.get("silent"),f=0;f<7;f++){var g,m=a.getNextNDay(h,f),y=a.dataToCalendarLayout([m.time],!1).center;g=Math.abs((f+c)%7);var v=new mu({z2:30,style:j(Lc(o,{text:l[g]}),this._weekTextPositionControl(y,i,s,u,d)),silent:p});r.add(v)}}},e.type="calendar",e}(Og);const OW=LW;var PW=864e5,NW=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e,this._update(n,i)}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=la(t)).getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,r=t.getDate(),o=r<10?"0"+r:""+r,a=t.getDay();return{y:e+"",m:i,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},t.prototype._update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];K([0,1],(function(t){u(r,t)&&(o[i[t]]=r[t]*a[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=vd(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}K([0,1],(function(t){u(r,t)||(r[t]=l[i[t]]/a[t])})),this._sw=r[0],this._sh=r[1]},t.prototype.dataToPoint=function(t,e,n){n=n||[],ot(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),r=this._rangeInfo,o=i.formatedDate;if(e&&!(i.time>=r.start.time&&i.time<r.end.time+PW))return n[0]=n[1]=NaN,n;var a=i.day,s=this._getRangeInfo([r.start.time,o]).nthWeek;return"vertical"===this._orient?(n[0]=this._rect.x+a*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2):(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+a*this._sh+this._sh/2),n},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToLayout=function(t,e,n){var i=(n=n||{}).rect=n.rect||{},r=n.contentRect=n.contentRect||{},o=this.dataToPoint(t,e);return i.x=o[0]-this._sw/2,i.y=o[1]-this._sh/2,i.width=this._sw,i.height=this._sh,mn.copy(r,i),Ry(r,this._lineWidth/2,!0,!0),n},t.prototype.dataToCalendarLayout=function(t,e){var n=this.dataToPoint(t,e);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},t.prototype.convertToPixel=function(t,e,n){var i=RW(e);return i===this?i.dataToPoint(n):null},t.prototype.convertToLayout=function(t,e,n){var i=RW(e);return i===this?i.dataToLayout(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=RW(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(ot(e)&&1===e.length&&(e=e[0]),ot(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/PW)-Math.floor(n[0].time/PW)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachComponent((function(t,e){ld({targetModel:e,coordSysType:"calendar",coordSysProvider:ud})})),i},t.dimensions=["time","value"],t}();function RW(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}const zW=NW;var BW={none:0,all:1,body:2,corner:3};function VW(t,e,n){var i=e[cy[n]].getCell(t);return!i&&ut(t)&&t<0&&(i=e[cy[1-n]].getUnitLayoutInfo(n,Math.round(t))),i}function HW(t){var e=t||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function FW(t,e,n,i,r){WW(t[0],e,r,n,i,0),WW(t[1],e,r,n,i,1)}function WW(t,e,n,i,r,o){t[0]=1/0,t[1]=-1/0;var a=i[o],s=ot(a)?a:[a],l=s.length,u=!!n;if(l>=1?(GW(t,0,s,0,r,o,0),l>1&&GW(t,0,s,0,r,o,l-1)):t[0]=t[1]=NaN,u){var c=-r[cy[1-o]].getLocatorCount(o),h=r[cy[o]].getLocatorCount(o)-1;n===BW.body?c=$o(0,c):n===BW.corner&&(h=jo(-1,h)),h<c&&(c=h=NaN),yt(t[0])&&(t[0]=c),yt(t[1])&&(t[1]=h),t[0]=$o(jo(t[0],h),c),t[1]=$o(jo(t[1],h),c)}}function GW(t,e,n,i,r,o,a){var s=VW(n[a],r,o);if(s){var l,u=s.id[cy[o]],c=u,h=!(l=s)||2!==l.type&&3!==l.type?null:l;h&&(c+=h.span[cy[o]]-1),t[0]=jo(t[0],u,c),t[1]=$o(t[1],u,c)}else t[0]=t[1]=NaN}function jW(t,e){return yt(t[e][0])||yt(t[e][1])}function $W(t,e,n,i){e=e||UW;for(var r=0;r<i;r++)e[r]=!1;for(;;){var o=!1;for(r=0;r<i;r++){var a=n[r];!e[r]&&a.cellMergeOwner&&(s=t,l=a.locatorRange,qW(s[0],l[0])&&qW(s[1],l[1])&&(s[0][0]=jo(s[0][0],l[0][0]),s[0][1]=$o(s[0][1],l[0][1]),s[1][0]=jo(s[1][0],l[1][0]),s[1][1]=$o(s[1][1],l[1][1]),1))&&(e[r]=!0,o=!0)}if(!o)break}var s,l}var UW=[];function qW(t,e){return t[1]>=e[0]&&t[0]<=e[1]}function YW(t,e){t.id.set(e[0][0],e[1][0]),t.span.set(e[0][1]-t.id.x+1,e[1][1]-t.id.y+1)}function XW(t,e,n,i){var r=VW(e[i][0],n,i),o=VW(e[i][1],n,i);t[cy[i]]=t[hy[i]]=NaN,r&&o&&(t[cy[i]]=r.xy,t[hy[i]]=o.xy+o.wh-r.xy)}function ZW(t,e,n,i){return t[cy[e]]=n,t[cy[1-e]]=i,t}var KW=function(){function t(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx="x"===t?0:1,this._model=e,this._uniqueValueGen=function(t){var e=t.toUpperCase(),n=new RegExp("^"+e+"([0-9]+)$"),i=0;return{calcDupBase:function(t){var e;null!=t&&(e=t.match(n))&&(i=$o(i,+e[1]+1))},ensureValueUnique:function(t,n){for(var r=Et(),o=0;o<t.length;o++){var a=t[o];null!=a&&null==r.get(a)||(t[o]=a=""+e+i++,n[o].option=$({value:a},n[o].option)),r.set(a,!0)}}}}(t);var n=e.get("data",!0);null==n||ot(n)||(n=[]),n?this._initByDimModelData(n):this._initBySeriesData()}return t.prototype._initByDimModelData=function(t){var e=this,n=e._cells,i=e._levels,r=[],o=0;return e._leavesCount=function t(n,a,s){var l=0;return n?(K(n,(function(n,u){var c;st(n)?c={value:n}:ct(n)?(c=n,null==n.value||st(n.value)||(c={value:null})):c={value:null};var h={type:3,ordinal:NaN,level:s,firstLeafLocator:a,id:new Ze,span:ZW(new Ze,e.dimIdx,1,1),option:c,xy:NaN,wh:NaN,dim:e,rect:{x:NaN,y:NaN,width:NaN,height:NaN}};o++,(r[a]||(r[a]=[])).push(h),i[s]||(i[s]={type:1,xy:NaN,wh:NaN,option:null,id:new Ze,dim:e});var d=t(c.children,a,s+1),p=Math.max(1,d);h.span[cy[e.dimIdx]]=p,l+=p,a+=p})),l):l}(t,0,0),void function(){for(var t=[];n.length<o;)for(var i=0;i<r.length;i++){var a=r[i].pop();if(a){a.ordinal=t.length;var s=a.option.value;t.push(s),n.push(a),e._uniqueValueGen.calcDupBase(s)}}e._uniqueValueGen.ensureValueUnique(t,n);var l=e._ordinalMeta=new Ew({categories:t,needCollect:!1,deduplication:!1});e._scale=new Ow({ordinalMeta:l});for(var u=0;u<e._leavesCount;u++){var c=e._cells[u];c.type=2,c.span[cy[1-e.dimIdx]]=e._levels.length-c.level}e._initCellsId(),e._initLevelIdOptions()}()},t.prototype._initBySeriesData=function(){var t=this;t._leavesCount=0,t._levels=[{type:1,xy:NaN,wh:NaN,option:null,id:new Ze,dim:t}],t._initLevelIdOptions();var e=t._ordinalMeta=new Ew({needCollect:!0,deduplication:!0,onCollect:function(e,n){var i=t._cells[n]={type:2,ordinal:n,level:0,firstLeafLocator:n,id:new Ze,span:ZW(new Ze,t.dimIdx,1,1),option:{value:e+""},xy:NaN,wh:NaN,dim:t,rect:{x:NaN,y:NaN,width:NaN,height:NaN}};t._leavesCount++,t._setCellId(i)}});t._scale=new Ow({ordinalMeta:e})},t.prototype._setCellId=function(t){var e=this._levels.length,n=this.dimIdx;ZW(t.id,n,t.firstLeafLocator,t.level-e)},t.prototype._initCellsId=function(){var t=this._levels.length,e=this.dimIdx;K(this._cells,(function(n){ZW(n.id,e,n.firstLeafLocator,n.level-t)}))},t.prototype._initLevelIdOptions=function(){var t=this._levels.length,e=this.dimIdx,n=this._model.get("levels",!0);n=ot(n)?n:[],K(this._levels,(function(i,r){ZW(i.id,e,0,r-t),i.option=n[r]}))},t.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},t.prototype.resetLayoutIterator=function(t,e,n,i){if(t=t||new ja,e===this.dimIdx){var r=this._leavesCount,o=null!=n?Math.max(0,n):0;i=null!=i?Math.min(i,r):r,t.reset(this._cells,o,o+i)}else r=this._levels.length,o=null!=n?Math.max(0,n+r):0,i=null!=i?Math.min(i,r):r,t.reset(this._levels,o,o+i);return t},t.prototype.resetCellIterator=function(t){return(t||new ja).reset(this._cells,0)},t.prototype.resetLevelIterator=function(t){return(t||new ja).reset(this._levels,0)},t.prototype.getLayout=function(t,e,n){var i=this.getUnitLayoutInfo(e,n);t[cy[e]]=i?i.xy:NaN,t[hy[e]]=i?i.wh:NaN},t.prototype.getUnitLayoutInfo=function(t,e){return t===this.dimIdx?e<this._leavesCount?this._cells[e]:void 0:this._levels[e+this._levels.length]},t.prototype.getCell=function(t){var e=this._scale.parse(t);return yt(e)?void 0:this._cells[e]},t.prototype.getLocatorCount=function(t){return t===this.dimIdx?this._leavesCount:this._levels.length},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t}(),JW=function(){function t(t,e,n){this._model=e,this._dims=n,this._kind=t,this._cellMergeOwnerList=[]}return t.prototype._ensureCellMap=function(){var t=this,e=t._cellMap;return e||(e=t._cellMap=Et(),function(){var e=[],i=t._model.getShallow("data");i&&!ot(i)&&(i=null),K(i,(function(n,i){if(ct(n)&&ot(n.coord)){var r=HW([]);if(FW(r,null,n.coord,t._dims,n.coordClamp?BW[t._kind]:BW.none),!jW(r,0)&&!jW(r,1)){var o=n&&n.mergeCells,a={id:new Ze,span:new Ze,locatorRange:r,option:n,cellMergeOwner:o};YW(a,r),e.push(a)}}}));for(var r=[],o=0;o<e.length;o++){var a=e[o];if(a.cellMergeOwner){var s=a.locatorRange;$W(s,r,e,o);for(var l=0;l<o;l++)r[l]&&(e[l].cellMergeOwner=!1);if(s[0][0]!==a.id.x||s[1][0]!==a.id.y){a.cellMergeOwner=!1;var u=j({},a.option);u.coord=null;var c={id:new Ze,span:new Ze,locatorRange:s,option:u,cellMergeOwner:!0};YW(c,s),e.push(c)}}}K(e,(function(e){var i=n(e.id.x,e.id.y);if(e.cellMergeOwner&&(i.cellMergeOwner=!0,i.span=e.span,i.locatorRange=e.locatorRange,i.spanRect={x:NaN,y:NaN,width:NaN,height:NaN},t._cellMergeOwnerList.push(i)),e.cellMergeOwner||e.option)for(var r=0;r<e.span.y;r++)for(var o=0;o<e.span.x;o++){var a=n(e.id.x+o,e.id.y+r);a.option=e.option,e.cellMergeOwner&&(a.inSpanOf=i)}}))}()),e;function n(t,n){var i=tG(t,n),r=e.get(i);return r||(r=e.set(i,{id:new Ze(t,n),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),r}},t.prototype.getCell=function(t){return this._ensureCellMap().get(tG(t[0],t[1]))},t.prototype.travelExistingCells=function(t){this._ensureCellMap().each(t)},t.prototype.expandRangeByCellMerge=function(t){if(!jW(t,0)&&!jW(t,1)&&t[0][0]===t[0][1]&&t[1][0]===t[1][1]){QW[0]=t[0][0],QW[1]=t[1][0];var e=this.getCell(QW),n=e&&e.inSpanOf;if(n)return void function(t,e){t[0][0]=e[0][0],t[0][1]=e[0][1],t[1][0]=e[1][0],t[1][1]=e[1][1]}(t,n.locatorRange)}var i=this._cellMergeOwnerList;$W(t,null,i,i.length)},t}(),QW=[];function tG(t,e){return t+"|"+e}var eG={show:!0,color:Pd.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function nG(t){return{color:"none",borderWidth:1,borderColor:t?"none":Pd.color.borderTint}}var iG={show:!0,label:eG,itemStyle:nG(!1),silent:void 0,dividerLineStyle:{width:1,color:Pd.color.border}},rG={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:iG,y:iG,body:{label:eG,itemStyle:nG(!1),silent:void 0},corner:{label:eG,itemStyle:nG(!0),silent:void 0},backgroundStyle:{color:"none",borderColor:Pd.color.axisLine,borderWidth:1}},oG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(){var t=this._dimModels={x:new aG(this.get("x",!0)||{}),y:new aG(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var e={x:t.x.dim=new KW("x",t.x),y:t.y.dim=new KW("y",t.y)};this._body=new JW("body",new ih(this.getShallow("body")),e),this._corner=new JW("corner",new ih(this.getShallow("corner")),e)},e.prototype.getDimensionModel=function(t){return this._dimModels[t]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=rG,e}(Ad),aG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e}(ih);const sG=oG;var lG=Math.round,uG={normal:25,special:100},cG={normal:50,special:125},hG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e){this.group.removeAll();var n=this.group,i=t.coordinateSystem.getRect(),r=t.getDimensionModel("x"),o=t.getDimensionModel("y"),a=r.dim,s=o.dim;!function(t,e,n){function i(i){var r=e.getDimensionModel(cy[i]),o=r.dim;if(o.shouldShow())for(var a=r.getModel("itemStyle"),s=r.getModel("label"),l=e.getShallow("tooltip",!0),u=[],c=o.resetCellIterator();c.next();){var h=c.item,d={};mn.copy(d,h.rect),jt(u,h.id.x,h.id.y),dG(u,e,t,n,h.option,a,s,r,d,h.option.value,cG,l)}}i(0),i(1)}(n,t,e),function(t,e,n,i,r){function o(n,i,o,a){var s=new ih(e.getShallow(n,!0)),l=s.getModel("itemStyle"),u=s.getModel("label"),c=new ja,h=new ja,d=[],p=e.getShallow("tooltip",!0);for(a.resetLayoutIterator(h,1);h.next();)for(o.resetLayoutIterator(c,0);c.next();){var f=c.item,g=h.item;jt(d,f.id.x,g.id.y);var m=i.getCell(d);if(!m||!m.inSpanOf||m.inSpanOf===m){var y={};m&&m.span?mn.copy(y,m.spanRect):(f.dim.getLayout(y,0,d[0]),g.dim.getLayout(y,1,d[1]));var v=m?m.option:null;dG(d,e,t,r,v,l,u,s,y,v?v.value:null,uG,p)}}}o("body",e.getBody(),n,i),n.shouldShow()&&i.shouldShow()&&o("corner",e.getCorner(),i,n)}(n,t,a,s,e);var l=xt(t.getShallow("borderZ2",!0),99),u=l-1,c=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);c.lineWidth=0;var h=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);h.fill="none";var d=yG(i.clone(),c,0),p=yG(i.clone(),h,l);d.silent=!0,p.silent=!0,n.add(d),n.add(p);var f=a.getUnitLayoutInfo(0,0),g=s.getUnitLayoutInfo(1,0);f&&g&&(a.shouldShow()&&n.add(vG({x1:i.x,y1:g.xy,x2:i.x+i.width,y2:g.xy},r.getModel("dividerLineStyle").getLineStyle(),u)),s.shouldShow()&&n.add(vG({x1:f.xy,y1:i.y,x2:f.xy,y2:i.y+i.height},o.getModel("dividerLineStyle").getLineStyle(),u)))},e.type="matrix",e}(Og);function dG(t,e,n,i,r,o,a,s,l,u,c,h){var d;fG.option=r?r.itemStyle:null,fG.parentModel=o,pG.option=r,pG.parentModel=s;var p=xt(pG.getShallow("z2"),r&&r.itemStyle?c.special:c.normal),f=h&&h.show,g=yG(l,fG.getItemStyle(),p);n.add(g);var m,y=pG.get("cursor");if(null!=y&&g.attr("cursor",y),null!=u){var v=u+"";if(gG.option=r?r.label:null,gG.parentModel=a,gG.ecModel=i,kc(g,{normal:gG},{defaultText:v,autoOverflowArea:!0,layoutRect:F(g.shape)}),m=g.getTextContent()){m.z2=p+1;var x=m.style;if(x&&x.overflow&&"none"!==x.overflow&&x.lineOverflow){var _={};mn.copy(_,l),Ry(_,((null===(d=g.style)||void 0===d?void 0:d.lineWidth)||0)/2,!0,!0),g.updateInnerText(),m.getLocalTransform(mG),qe(mG,mG),mn.applyTransform(_,_,mG),m.setClipPath(new Ql({shape:_}))}}Vy({el:g,componentModel:e,itemName:v,itemTooltipOption:h,formatterParamsExtra:{xyLocator:t.slice()}})}if(m){var b=gG.get("silent");null==b&&(b=!f),m.silent=b,m.ignoreHostSilent=!0}var w=pG.get("silent");null==w&&(w=!g.style||"none"===g.style.fill||!g.style.fill),g.silent=w,$a(pG),$a(fG),$a(gG)}var pG=new ih,fG=new ih,gG=new ih,mG=[];function yG(t,e,n){var i=e.lineWidth;if(i){var r=t.x+t.width,o=t.y+t.height;t.x=Xl(t.x,i,!0),t.y=Xl(t.y,i,!0),t.width=Xl(r,i,!0)-t.x,t.height=Xl(o,i,!0)-t.y}return new Ql({shape:t,style:e,z2:n})}function vG(t,e,n){var i=e.lineWidth;return i&&(lG(2*t.x1)===lG(2*t.x2)&&(t.x1=t.x2=Xl(t.x1,i,!0)),lG(2*t.y1)===lG(2*t.y2)&&(t.y1=t.y2=Xl(t.y1,i,!0))),new Nm({shape:t,style:e,silent:!0,z2:n})}const xG=hG;var _G=function(){function t(e,n,i){this.dimensions=t.dimensions,this.type="matrix",this._model=e;var r=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:r.x.dim,y:r.y.dim},this._resize(e,i)}return t.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},t.create=function(e,n){var i=[];return e.eachComponent("matrix",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachComponent((function(t,e){ld({targetModel:e,coordSysType:"matrix",coordSysProvider:ud})})),i},t.prototype.getRect=function(){return this._rect},t.prototype._resize=function(t,e){var n=this._dims,i=this._dimModels,r=this._rect=vd(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});MG(i,n,r,0),MG(i,n,r,1),CG(0,n),CG(1,n),TG(this._model.getBody(),n),TG(this._model.getCorner(),n)},t.prototype.dataToPoint=function(t,e,n){return n=n||[],this.dataToLayout(t,e,bG),n[0]=bG.rect.x+bG.rect.width/2,n[1]=bG.rect.y+bG.rect.height/2,n},t.prototype.dataToLayout=function(t,e,n){var i=this._dims,r=(n=n||{}).rect=n.rect||{};r.x=r.y=r.width=r.height=NaN;var o=n.matrixXYLocatorRange=HW(n.matrixXYLocatorRange);return ot(t)?(FW(o,null,t,i,xt(e&&e.clamp,BW.none)),e&&e.ignoreMergeCells||(e&&e.clamp===BW.corner||this._model.getBody().expandRangeByCellMerge(o),e&&e.clamp===BW.body||this._model.getCorner().expandRangeByCellMerge(o)),XW(r,o,i,0),XW(r,o,i,1),n):n},t.prototype.pointToData=function(t,e,n){var i=this._dims;return LG(EG,0,i,t,e&&e.clamp),LG(EG,1,i,t,e&&e.clamp),(n=n||[])[0]=n[1]=NaN,EG.y===kG.inCorner&&EG.x===kG.inBody?OG(EG,n,0,i):EG.x===kG.inCorner&&EG.y===kG.inBody?OG(EG,n,1,i):(PG(EG,n,0,i),PG(EG,n,1,i)),n},t.prototype.convertToPixel=function(t,e,n,i){var r=AG(e);return r===this?r.dataToPoint(n,i):void 0},t.prototype.convertToLayout=function(t,e,n,i){var r=AG(e);return r===this?r.dataToLayout(n,i):void 0},t.prototype.convertFromPixel=function(t,e,n,i){var r=AG(e);return r===this?r.pointToData(n,i):void 0},t.prototype.containPoint=function(t){return this._rect.contain(t[0],t[1])},t.dimensions=["x","y","value"],t}(),bG={rect:{x:NaN,y:NaN,width:NaN,height:NaN}},wG=new ja,SG=new ja;function MG(t,e,n,i){for(var r=1-i,o=e[cy[i]],a=e[cy[r]],s=a.shouldShow(),l=o.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=a.resetLayoutIterator(null,i);u.next();)u.item.wh=u.item.xy=NaN;for(var c=n[hy[i]],h=o.getLocatorCount(i)+a.getLocatorCount(i),d=new ih,p=a.resetLevelIterator();p.next();)d.option=p.item.option,d.parentModel=t[cy[r]],m(p.item,s?d.get("levelSize"):0);for(var f=new ih,g=o.resetCellIterator();g.next();)2===g.item.type&&(f.option=g.item.option,f.parentModel=void 0,m(g.item,f.get("size")));function m(t,e){var r=function(t,e,n){return DG(Xo(t,n[hy[e]]),n[hy[e]])}(e,i,n);yt(r)||(t.wh=DG(r,c),c=DG(c-t.wh),h--)}var y=h?c/h:0,v=!h&&c>=1,x=n[cy[i]],_=o.getLocatorCount(i)-1,b=new ja;for(a.resetLayoutIterator(b,i);b.next();)w(b.item);for(o.resetLayoutIterator(b,i);b.next();)w(b.item);function w(t){yt(t.wh)&&(t.wh=y),t.xy=x,t.id[cy[i]]!==_||v||(t.wh=n[cy[i]]+n[hy[i]]-t.xy),x+=t.wh}}function CG(t,e){for(var n=e[cy[t]].resetCellIterator();n.next();){var i=n.item;IG(i.rect,t,i.id,i.span,e),IG(i.rect,1-t,i.id,i.span,e),3===i.type&&(i.xy=i.rect[cy[t]],i.wh=i.rect[hy[t]])}}function TG(t,e){t.travelExistingCells((function(t){var n=t.span;if(n){var i=t.spanRect,r=t.id;IG(i,0,r,n,e),IG(i,1,r,n,e)}}))}function IG(t,e,n,i,r){t[hy[e]]=0;var o=n[cy[e]]<0?r[cy[1-e]]:r[cy[e]],a=o.getUnitLayoutInfo(e,n[cy[e]]);if(t[cy[e]]=a.xy,t[hy[e]]=a.wh,i[cy[e]]>1){var s=o.getUnitLayoutInfo(e,n[cy[e]]+i[cy[e]]-1);t[hy[e]]=s.xy+s.wh-a.xy}}function DG(t,e){return Math.max(Math.min(t,xt(e,1/0)),0)}function AG(t){var e=t.matrixModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}var kG={inBody:1,inCorner:2,outside:3},EG={x:null,y:null,point:[]};function LG(t,e,n,i,r){var o=n[cy[e]],a=n[cy[1-e]],s=o.getUnitLayoutInfo(e,o.getLocatorCount(e)-1),l=o.getUnitLayoutInfo(e,0),u=a.getUnitLayoutInfo(e,-a.getLocatorCount(e)),c=a.shouldShow()?a.getUnitLayoutInfo(e,-1):null,h=t.point[e]=i[e];if(l||c)if(r!==BW.body)if(r!==BW.corner){var d=l?l.xy:c?c.xy+c.wh:NaN,p=u?u.xy:d,f=s?s.xy+s.wh:d;if(h<p){if(!r)return void(t[cy[e]]=kG.outside);h=p}else if(h>f){if(!r)return void(t[cy[e]]=kG.outside);h=f}t.point[e]=h,t[cy[e]]=d<=h&&h<=f?kG.inBody:p<=h&&h<=d?kG.inCorner:kG.outside}else c?(t[cy[e]]=kG.inCorner,h=jo(c.xy+c.wh,$o(u.xy,h)),t.point[e]=h):t[cy[e]]=kG.outside;else l?(t[cy[e]]=kG.inBody,h=jo(s.xy+s.wh,$o(l.xy,h)),t.point[e]=h):t[cy[e]]=kG.outside;else t[cy[e]]=kG.outside}function OG(t,e,n,i){var r=1-n;if(t[cy[n]]!==kG.outside)for(i[cy[n]].resetCellIterator(SG);SG.next();){var o=SG.item;if(NG(t.point[n],o.rect,n)&&NG(t.point[r],o.rect,r))return e[n]=o.ordinal,void(e[r]=o.id[cy[r]])}}function PG(t,e,n,i){var r,o;if(t[cy[n]]!==kG.outside)for((t[cy[n]]===kG.inCorner?i[cy[1-n]]:i[cy[n]]).resetLayoutIterator(wG,n);wG.next();)if(r=t.point[n],(o=wG.item).xy<=r&&r<=o.xy+o.wh)return void(e[n]=wG.item.id[cy[n]])}function NG(t,e,n){return e[cy[n]]<=t&&t<=e[cy[n]]+e[hy[n]]}const RG=_G;function zG(t,e){var n;return K(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var BG=["transition","enterFrom","leaveTo"],VG=BG.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function HG(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?BG:VG,r=0;r<i.length;r++){var o=i[r];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var FG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return m(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=Ia(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];K(a,(function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var i=j({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(W(r,i,!0),Md(r,i,{ignoreSize:!0}),Td(n,r),HG(n,r),HG(n,r,"shape"),HG(n,r,"style"),HG(n,r,"extra"),n.clipPath=r.clipPath):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}(r,e,n),function(t,e){if(t&&(t.hv=e.hv=[zG(e,["left","right"]),zG(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(r[e],n))}),this),n.elements=tt(r,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){K(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Ad),WG={path:null,compoundPath:null,group:Ao,image:$l,text:mu},GG=Pa(),jG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){this._elMap=Et()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get("z"),o=t.get("zlevel");K(e,(function(e){var a=ka(e.id,null),s=null!=a?n.get(a):null,l=ka(e.parentId,null),u=null!=l?n.get(l):i,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=e.textContent,p=e.textConfig;if(h&&VV(h,c,!!p,!!d)){var f=HV(h,c,!0);!p&&f.textConfig&&(p=e.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=function(t){return t=j({},t),K(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(dd),(function(e){delete t[e]})),t}(e),m=e.$action||"merge",y="merge"===m,v="replace"===m;if(y){var x=s;(T=!s)?x=UG(a,u,e.type,n):(x&&(GG(x).isNew=!1),sH(x)),x&&(XV(x,g,t,{isInit:T}),YG(x,e,r,o))}else if(v){qG(s,e,n,t);var _=UG(a,u,e.type,n);_&&(XV(_,g,t,{isInit:!0}),YG(_,e,r,o))}else"remove"===m&&(ZV(s,e),qG(s,e,n,t));var b=n.get(a);if(b&&d)if(y){var w=b.getTextContent();w?w.attr(d):b.setTextContent(new mu(d))}else v&&b.setTextContent(new mu(d));if(b){var S=e.clipPath;if(S){var M=S.type,C=void 0,T=!1;if(y){var I=b.getClipPath();C=(T=!I||GG(I).type!==M)?$G(M):I}else v&&(T=!0,C=$G(M));b.setClipPath(C),XV(C,S,t,{isInit:T}),lH(C,S.keyframeAnimation,t)}var D=GG(b);b.setTextConfig(p),D.option=e,function(t,e,n){var i=yu(t).eventData;t.silent||t.ignore||i||(i=yu(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}(b,t,e),Vy({el:b,componentModel:t,itemName:b.name,itemTooltipOption:e.tooltip}),lH(b,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++)if((f=null!=(p=ka((d=n[l]).id,null))?r.get(p):null)&&f.isGroup){var u=(g=f.parent)===i,c=GG(f),h=GG(g);c.width=Yo(c.option.width,u?o:h.width)||0,c.height=Yo(c.option.height,u?a:h.height)||0}for(l=n.length-1;l>=0;l--){var d,p,f;if(f=null!=(p=ka((d=n[l]).id,null))?r.get(p):null){var g=f.parent,m=(h=GG(g),{}),y=wd(f,d,g===i?{width:o,height:a}:{width:h.width,height:h.height},null,{hv:d.hv,boundingMode:d.bounding},m);if(!GG(f).isNew&&y){for(var v=d.transition,x={},_=0;_<s.length;_++){var b=s[_],w=m[b];v&&(JV(v)||q(v,b)>=0)?x[b]=w:f[b]=w}_c(f,x,t,0)}else f.attr(m)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){qG(n,GG(n).option,e,t._lastGraphicModel)})),this._elMap=Et()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Og);function $G(t){var e=new(Nt(WG,t)?WG[t]:my(t))({});return GG(e).type=t,e}function UG(t,e,n,i){var r=$G(n);return e.add(r),i.set(t,r),GG(r).id=t,GG(r).isNew=!0,r}function qG(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){qG(t,e,n,i)})),KV(t,e,i),n.removeKey(GG(t).id))}function YG(t,e,n,i){t.isGroup||K([["cursor",Rs.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];Nt(e,i)?t[i]=xt(e[i],n[1]):null==t[i]&&(t[i]=n[1])})),K(nt(e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=at(i)?i:null}})),Nt(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var XG=["x","y","radius","angle","single"],ZG=["cartesian2d","polar","singleAxis"];function KG(t){return t+"Axis"}function JG(t){var e=t.ecModel,n={infoList:[],infoMap:Et()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(KG(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var QG=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),tj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return m(e,t),e.prototype.init=function(t,e,n){var i=ej(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=ej(t);W(this.option,t,!0),W(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;K([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Et();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return K(XG,(function(n){var i=this.getReferringComponents(KG(n),Va);if(i.specified){e=!0;var r=new QG;K(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}function o(e,n){var r=e[0];if(r){var o=new QG;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",Ba).models[0];a&&K(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",Ba).models[0]&&o.add(t.componentIndex)}))}}}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),i&&K(XG,(function(e){if(i){var r=n.findComponents({mainType:KG(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new QG;o.add(r[0].componentIndex),t.set(e,o),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");K([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(KG(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){K(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(KG(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;K([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;K(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Ad);function ej(t){var e={};return K(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}const nj=tj,ij=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.select",e}(nj),rj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(Og),oj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.select",e}(rj);var aj=K,sj=Ko,lj=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(function(t){var e=t.get("coordinateSystem");return q(ZG,e)>=0}(e)){var n=KG(this._dimName),i=e.getReferringComponents(n,Ba).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return F(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];aj(["start","end"],(function(l,u){var c=t[l],h=t[l+"Value"];"percent"===r[u]?(null==c&&(c=o[u]),h=i.parse(qo(c,o,n))):(e=!0,c=qo(h=null==h?n[u]:i.parse(h),n,o)),s[u]=null==h||isNaN(h)?n[u]:h,a[u]=null==c||isNaN(c)?o[u]:c})),sj(s),sj(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";XN(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=qo(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];aj(n,(function(t){!function(t,e,n){e&&K(TS(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])}))}(i,t.getData(),e)}));var r=t.getAxisModel(),o=yS(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&aj(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=J(i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,l=0;l<i.length;l++){var u=a.get(s[l],t),c=!isNaN(u),h=u<o[0],d=u>o[1];if(c&&!h&&!d)return!0;c&&(r=!0),h&&(e=!0),d&&(n=!0)}return r&&e&&n}))}else aj(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}}));aj(i,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;aj(["min","max"],(function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=qo(n[0]+o,n,[0,100],!0):null!=r&&(o=qo(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=ta(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();const uj=lj,cj={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent(KG(i),r);e(i,r,o,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new uj(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=Et();return K(n,(function(t){K(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};var hj=!1;function dj(t){hj||(hj=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,cj),function(t){t.registerAction("dataZoom",(function(t,e){K(function(t,e){var n,i=Et(),r=[],o=Et();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}(e,t),(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function pj(t){t.registerComponentModel(ij),t.registerComponentView(oj),dj(t)}var fj=function(){},gj={};function mj(t,e){gj[t]=e}function yj(t){return gj[t]}const vj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;K(this.option.feature,(function(t,n){var i=yj(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),W(t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:Pd.color.border,borderRadius:0,borderWidth:0,padding:Pd.size.m,itemSize:15,itemGap:Pd.size.s,showTitle:!0,iconStyle:{borderColor:Pd.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:Pd.color.accent50}},tooltip:{show:!1,position:"bottom"}},e}(Ad);function xj(t,e){var n=qh(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new Ql({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var _j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];K(s,(function(t,e){u.push(e)})),new Nb(this._featureNames||[],u).add(f).update(f).remove(rt(f,null)).execute(),this._featureNames=u;var c=bd(t,n).refContainer,h=t.getBoxLayoutParams(),d=t.get("padding"),p=vd(h,c,d);gd(t.get("orient"),r,t.get("itemGap"),p.width,p.height),wd(r,h,c,d),r.add(xj(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!at(l)&&e){var u=l.style||(l.style={}),c=uo(e,mu.makeFont(u)),h=t.x+r.x,d=!1;t.y+r.y+o+c.height>n.getHeight()&&(a.position="top",d=!0);var p=d?-5-c.height:o+10;h+c.width/2>n.getWidth()?(a.position=["100%",p],u.align="right"):h-c.width/2<0&&(a.position=[0,p],u.align="left")}}))}function f(c,h){var d,p=u[c],f=u[h],g=s[p],m=new ih(g,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===p&&(g.title=i.newTitle),p&&!f){if(function(t){return 0===t.indexOf("my")}(p))d={onclick:m.option.onclick,featureName:p};else{var y=yj(p);if(!y)return;d=new y}l[p]=d}else if(!(d=l[f]))return;d.uid=oh("toolbox-feature"),d.model=m,d.ecModel=e,d.api=n;var v=d instanceof fj;p||!f?!m.get("show")||v&&d.unusable?v&&d.remove&&d.remove(e,n):(function(i,s,l){var u,c,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof fj&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};st(p)?(u={})[l]=p:u=p,st(f)?(c={})[l]=f:c=f;var g=i.iconPaths={};K(u,(function(l,u){var p=Ly(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(h.getItemStyle()),p.ensureState("emphasis").style=d.getItemStyle();var f=new mu({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:Bc({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},e)},ignore:!0});p.setTextContent(f),Vy({el:p,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var e=d.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";f.setStyle({fill:d.get("textFill")||e.fill||e.stroke||Pd.color.neutral99,backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),f.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===i.get(["iconStatus",u])?Yu:Xu)(p),r.add(p),p.on("click",it(s.onclick,s,e,n,u)),g[u]=p}))}(m,d,p),m.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Yu:Xu)(i[t])},d instanceof fj&&d.render&&d.render(m,e,n,i)):v&&d.dispose&&d.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){K(this._features,(function(t){t instanceof fj&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){K(this._features,(function(n){n instanceof fj&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){K(this._features,(function(n){n instanceof fj&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(Og);const bj=_j,wj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||Pd.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=x.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||r){var l=a.split(","),u=l[0].indexOf("base64")>-1,c=r?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var h=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var d=c.length,p=new Uint8Array(d);d--;)p[d]=c.charCodeAt(d);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var m=g.contentWindow,y=m.document;y.open("image/svg+xml","replace"),y.write(c),y.close(),m.focus(),y.execCommand("SaveAs",!0,h),document.body.removeChild(g)}}else{var v=n.get("lang"),_='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(v&&v[0]||"")+'" /></body>',b=window.open();b.document.write(_),b.document.title=i}else{var w=document.createElement("a");w.download=i+"."+o,w.target="_blank",w.href=a;var S=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(S)}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:Pd.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(fj);var Sj="__ec_magicType_stack__",Mj=[["line","bar"],["stack"]],Cj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return K(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(Tj[n]){var o,a={series:[]};K(Mj,(function(t){q(t,n)>=0&&K(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(t){var e=t.subType,r=t.id,o=Tj[n](e,r,t,i);o&&($(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=t.getReferringComponents(u,Ba).models[0].componentIndex;a[u]=a[u]||[];for(var h=0;h<=c;h++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=W({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(fj),Tj={line:function(t,e,n,i){if("bar"===t)return W({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return W({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===Sj;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),W({id:e,stack:r?"":Sj},i.get(["option","stack"])||{},!0)}};fb({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));const Ij=Cj;var Dj=new Array(60).join("-"),Aj="\t";function kj(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var Ej=new RegExp("[\t]+","g");var Lj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||Pd.color.neutral00;var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=i.get("optionToContent"),c=i.get("contentToOption"),h=function(t){var e,n,i,r=function(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}(t);return{value:tt([(n=r.seriesGroupByCategoryAxis,i=[],K(n,(function(t,e){var n=t.categoryAxis,r=t.valueAxis.dim,o=[" "].concat(J(t.series,(function(t){return t.name}))),a=[n.model.getCategories()];K(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),(function(t){return t})))}));for(var s=[o.join(Aj)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(Aj))}i.push(s.join("\n"))})),i.join("\n\n"+Dj+"\n\n")),(e=r.other,J(e,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)i[a]=arguments[a];n.push((o?o+Aj:"")+i.join(Aj))})),n.join("\n")})).join("\n\n"+Dj+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+Dj+"\n\n"),meta:r.meta}}(t);if(at(u)){var d=u(e.getOption());st(d)?s.innerHTML=d:pt(d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var p=l.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=h.value,s.appendChild(l)}var f=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",y=document.createElement("div"),v=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function _(){n.removeChild(r),x._dom=null}Pe(y,"click",_),Pe(v,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)_();else{var t;try{t=at(c)?c(s,e.getOption()):function(t,e){var n=t.split(new RegExp("\n*"+Dj+"\n*","g")),i={series:[]};return K(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(Aj)>=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=[],i=J(kj(e.shift()).split(Ej),(function(t){return{name:t,data:[]}})),r=0;r<e.length;r++){var o=kj(e[r]).split(Ej);n.push(o.shift());for(var a=0;a<o.length;a++)i[a]&&(i[a].data[r]=o[a])}return{series:i,categories:n}}(t),o=e[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else r=function(t){for(var e=t.split(/\n+/g),n=kj(e.shift()),i=[],r=0;r<e.length;r++){var o=kj(e[r]);if(o){var a=o.split(Ej),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}(t),i.series.push(r)})),i}(l.value,f)}catch(t){throw _(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),_()}})),y.innerHTML=a[1],v.innerHTML=a[2],v.style.cssText=y.style.cssText=m,!i.get("readOnly")&&g.appendChild(v),g.appendChild(y),r.appendChild(o),r.appendChild(s),r.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:Pd.color.background,textColor:Pd.color.primary,textareaColor:Pd.color.background,textareaBorderColor:Pd.color.border,buttonColor:Pd.color.accent50,buttonTextColor:Pd.color.neutral00}},e}(fj);function Oj(t,e){return J(t,(function(t,n){var i=e&&e[n];if(ct(i)&&!ot(i)){ct(t)&&!ot(t)||(t={value:t});var r=null!=i.name&&null==t.name;return t=$(t,i),r&&delete t.name,t}return t}))}fb({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];K(t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:Oj(t.data,r)})}else n.push(j({type:"scatter"},t))})),e.mergeOption($({series:n},t.newOption))}));const Pj=Lj;var Nj=K,Rj=Pa();function zj(t){var e=Rj(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Bj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.onclick=function(t,e){!function(t){Rj(t).snapshots=null}(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(fj);fb({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));const Vj=Bj;var Hj=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Fj=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=Gj(e,t);K(jj,(function(t,e){(!n||!n.include||q(n.include,e)>=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=qj[t.brushType](0,n,e);t.__rangeOffset={offset:Xj[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){K(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&K(i.coordSyses,(function(i){var r=qj[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){K(t,(function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=qj[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?Xj[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=Kj(n),o=Kj(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return J(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:tz(i),isTargetByCursor:nz(i,t,n.coordSysModel),getLinearBrushOtherExtent:ez(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&q(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=Gj(e,t),r=0;r<n.length;r++){var o=n[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<$j.length;s++)if($j[s](i,o))return o}return!0},t}();function Wj(t){return t[0]>t[1]&&t.reverse(),t}function Gj(t,e){return Ra(t,e,{includeMainTypes:Hj})}var jj={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=Et(),a={},s={};(n||i||r)&&(K(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),K(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),K(r,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];K(r.getCartesians(),(function(t,e){(q(n,t.getAxis("x").model)>=0||q(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:Uj.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){K(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:Uj.geo})}))}},$j=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],Uj={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Cy(t)),e}},qj={lineX:rt(Yj,0),lineY:rt(Yj,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[Wj([r[0],o[0]]),Wj([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:J(n,(function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o})),xyMinMax:r}}};function Yj(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=Wj(J([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var Xj={lineX:rt(Zj,0),lineY:rt(Zj,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return J(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function Zj(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function Kj(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const Jj=Fj;var Qj,t$,e$=K,n$=ba+"toolbox-dataZoom_",i$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new QR(n.getZr()),this._brushController.on("brush",it(this._onBrush,this)).mount()),function(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new Jj(o$(t),e,{include:["grid"]}).makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return zj(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){r$[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new Jj(o$(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}})),function(t,e){var n=zj(t);Nj(e,(function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}})),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=XN(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];e$(t,(function(t,n){e.push(F(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:Pd.color.backgroundTint}}},e}(fj),r$={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=zj(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return Nj(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}})),i}(this.ecModel))}};function o$(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}Qj="dataZoom",t$=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=Ra(t,o$(i));return e$(o.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),e$(o.yAxisModels,(function(t){return a(t,"yAxis","yAxisIndex")})),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:n$+e+o};a[n]=o,r.push(a)}},St(null==op.get(Qj)&&t$),op.set(Qj,t$);const a$=i$,s$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Pd.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Pd.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Pd.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Pd.color.tertiary,fontSize:14}},e}(Ad);function l$(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function u$(t){if(x.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var c$=u$(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function h$(t,e){if(!t)return e;e=Uh(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var d$=h$(u$(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),p$=h$(c$,"transform"),f$="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(x.transform3dSupported?"will-change:transform;":"");function g$(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!x.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=x.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+p$+":"+a+";":[["top",0],["left",0],[c$,a]]}function m$(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,i,r){we(be,e,i,r,!0)&&we(t,n,be[0],be[1])}(t,a,n,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var y$=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,x.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&(st(r)?document.querySelector(r):pt(r)?r:at(r)&&r(t.getDom()));m$(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler;Oe(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(r=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?o?a[o]:a:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=f$+function(t,e,n,i){var r=[],o=t.get("transitionDuration"),a=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),h=t.getModel("textStyle"),d=yg(t,"html"),p=u+"px "+c+"px "+s+"px "+l;return r.push("box-shadow:"+p),e&&o>0&&r.push(function(t,e,n){var i="cubic-bezier(0.23,1,0.32,1)",r="",o="";return n&&(o="opacity"+(r=" "+t/2+"s "+i)+",visibility"+r),e||(r=" "+t+"s "+i,o+=(o.length?",":"")+(x.transformSupported?""+p$+r:",left"+r+",top"+r)),d$+":"+o}(o,n,i)),a&&r.push("background-color:"+a),K(["width","color","radius"],(function(e){var n="border-"+e,i=Uh(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=xt(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),K(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}(h)),null!=d&&r.push("padding:"+qh(d).join("px ")+"px"),r.join(";")+";"}(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+g$(r[0],r[1],!0)+"border-color:"+ed(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(st(r)&&"item"===n.get("trigger")&&!l$(n)&&(a=function(t,e,n){if(!st(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=ed(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(r),6),u="",c=p$+":";q(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,d=l+r,p=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),f=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((p-Math.SQRT2*r)/2+Math.SQRT2*r-(p-d)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),st(t))o.innerHTML=t+a;else if(t){o.innerHTML="",ot(t)||(t=[t]);for(var s=0;s<t.length;s++)pt(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(m$(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;K(g$(n[0],n[1]),(function(t){i[t[0]]=t[1]}))}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",x.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(it(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;!function(t,e){function n(t){var e=t[_e];e&&(e.clearMarkers&&e.clearMarkers(),delete t[_e])}t&&n(t),e&&n(e)}(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},t}();const v$=y$;function x$(t){return Math.max(0,t)}function _$(t){var e=x$(t.shadowBlur||0),n=x$(t.shadowOffsetX||0),i=x$(t.shadowOffsetY||0);return{left:x$(e-n),right:x$(e+n),top:x$(e-i),bottom:x$(e+i)}}function b$(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const w$=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),b$(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;ct(t)&&af(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new mu({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:yg(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),K(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),K(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=_$(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;b$(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=x$(r.borderWidth||0),a=_$(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(it(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();var S$=new Ql({shape:{x:-1,y:-1,width:2,height:2}}),M$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){if(!x.node&&e.getDom()){var n,i=t.getComponent("tooltip"),r=this._renderMode="auto"===(n=i.get("renderMode"))?x.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===r?new w$(e):new v$(e,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!x.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?uv(this,"_updatePosition",50,"fixRate"):cv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");hF("itemTooltip",this._api,it((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!x.node&&n.getDom()){var r=T$(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=za(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,a=Ha(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse((function(e){var n=yu(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0})),o?{componentMainType:r,componentIndex:a.componentIndex,el:o}:void 0}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=S$;l.x=i.x,l.y=i.y,l.update(),yu(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=yF(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(T$(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===C$([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;if("legend"===yu(n).ssrType)return;this._lastDataByCoordSys=null,tx(n,(function(t){if(t.tooltipDisabled)return r=o=null,!0;r||o||(null!=yu(t).dataIndex?r=t:null!=yu(t).tooltipConfig&&(o=t))}),!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=it(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=C$([e.tooltipOption],i),a=this._renderMode,s=[],l=sg("section",{blocks:[],noHeader:!0}),u=[],c=new vg;K(t,(function(t){K(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=KH(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=sg("section",{header:o,noHeader:!Mt(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),K(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=SS(e.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",ed(f.color),a);var g=wf(d.formatTooltip(p,!0,null)),m=g.frag;if(m){var y=C$([d],i).get("valueFormatter");h.blocks.push(y?j({valueFormatter:y},m):m)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,d=o.get("order"),p=pg(l,c,a,d,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=yu(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,p=C$([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),m=new vg;g.marker=m.makeTooltipMarker("item",ed(g.color),h);var y=wf(s.formatTooltip(l,!1,u)),v=p.get("order"),x=p.get("valueFormatter"),_=y.frag,b=_?pg(x?j({valueFormatter:x},_):_,m,h,v,i.get("useUTC"),p.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,b,g,w,t.offsetX,t.offsetY,t.position,t.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=yu(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;st(o)&&(o={content:o,formatter:o},a=!0),a&&i&&o.content&&((o=F(o)).content=Te(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=C$(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),d=Math.random()+"",p=new vg;this._showOrMove(c,(function(){var n=F(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,d,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(c)if(st(c)){var p=t.ecModel.get("useUTC"),f=ot(n)?n[0]:n;h=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(h=Dh(f.axisValue,h,p)),h=Kh(h,n,!0)}else if(at(c)){var g=it((function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,h=c(n,i,g)}else h=c;u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i,r){return"axis"===n||ot(e)?{color:i||r}:ot(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),at(e)&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),ot(e))n=Yo(e[0],s),i=Yo(e[1],l);else if(ct(e)){var p=e;p.width=u[0],p.height=u[1];var f=vd(p,{width:s,height:l});n=f.x,i=f.y,c=null,h=null}else if(st(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth"));n=g[0],i=g[1]}else g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,c?null:20,h?null:20),n=g[0],i=g[1];c&&(n-=I$(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=I$(h)?u[1]/2:"bottom"===h?u[1]:0),l$(t)&&(g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,i,r,s,l),n=g[0],i=g[1]),r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&K(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&K(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&K(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&K(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!x.node&&e.getDom()&&(cv(this,"_updatePosition"),this._tooltipContent.dispose(),fF("itemTooltip",e))},e.type="tooltip",e}(Og);function C$(t,e,n){var i,r=e.ecModel;n?(i=new ih(n,r,r),i=new ih(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof ih&&(a=a.get("tooltip",!0)),st(a)&&(a={formatter:a}),a&&(i=new ih(a,i,r)))}return i}function T$(t,e){return t.dispatchAction||it(e.dispatchAction,e)}function I$(t){return"center"===t||"middle"===t}const D$=M$;var A$=["rect","polygon","keep","clear"];function k$(t,e){var n=wa(t?t.brush:[]);if(n.length){var i=[];K(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;ot(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),function(t){var e={};K(t,(function(t){e[t]=1})),t.length=0,K(e,(function(e,n){t.push(n)}))}(s),e&&!s.length&&s.push.apply(s,A$)}}var E$=K;function L$(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function O$(t,e,n){var i={};return E$(e,(function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);E$(t[e],(function(t,i){if(kO.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new kO(r),"opacity"===i&&((r=F(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new kO(r))}}))})),i}function P$(t,e,n){var i;K(n,(function(t){e.hasOwnProperty(t)&&L$(e[t])&&(i=!0)})),i&&K(n,(function(n){e.hasOwnProperty(n)&&L$(e[n])?t[n]=F(e[n]):delete t[n]}))}var N$={lineX:R$(0),lineY:R$(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&zS(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(zS(i,r,o)||zS(i,r+a,o)||zS(i,r,o+s)||zS(i,r+a,o+s)||mn.create(t).contain(l[0],l[1])||Oy(r,o,r+a,o,i)||Oy(r,o,r,o+s,i)||Oy(r+a,o,r+a,o+s,i)||Oy(r,o+s,r+a,o+s,i))||void 0}}};function R$(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return z$(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),z$(s[0],a)||z$(s[1],a)||z$(a[0],s)||z$(a[1],s)}}}}function z$(t,e){return e[0]<=t&&t<=e[1]}var B$=["inBrush","outOfBrush"],V$="__ecBrushSelect",H$="__ecInBrushSelectEvent";function F$(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new Jj(e.option,t)).setInputRanges(e.areas,t)}))}function W$(t,e,n){var i,r,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),F$(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:F(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,u=[],c=[],h=[],d=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=J(e.areas,(function(t){var e=$$[t.brushType],n=$({boundingRect:e?e(t):void 0},t);return n.selectors=function(t){var e=t.brushType,n={point:function(i){return N$[e].point(i,n,t)},rect:function(i){return N$[e].rect(i,n,t)}};return n}(n),n})),f=O$(e.option,B$,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function m(t){return!!t.length}ot(l)&&K(l,(function(t){u[t]=1})),t.eachSeries((function(n,i){var r=h[i]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;d=d||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}(n,i):function(n,i,r){if(n.brushSelector&&!function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(ot(n)?q(n,e)<0:e!==n)}(e,i)&&(K(p,(function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),d=d||m(r)})),g(i)&&m(r))){var o=n.getData();o.each((function(t){j$(n,r,o,t)&&(c[t]=1)}))}}(n,i,r)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var i=h[e],r=t.getData(),o=g(e)?function(t){return c[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return j$(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?d:m(i))&&function(t,e,n,i){var r,o={};function a(t){return Xv(n,r,t)}function s(t,e){Kv(n,r,t,e)}function l(t,l){r=t;var u=n.getRawDataItem(r);if(!u||!1!==u.visualMap)for(var c=i.call(undefined,t),h=e[c],d=o[c],p=0,f=d.length;p<f;p++){var g=d[p];h[g]&&h[g].applyVisual(t,a,s)}}K(t,(function(t){var n=kO.prepareVisualTypes(e[t]);o[t]=n})),n.each(l)}(B$,f,r,o)}))})),function(t,e,n,i,r){if(r){var o=t.getZr();if(!o[H$])o[V$]||(o[V$]=G$),uv(o,V$,n,e)(t,i)}}(e,i,r,o,n)}function G$(t,e){if(!t.isDisposed()){var n=t.getZr();n[H$]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[H$]=!1}}function j$(t,e,n,i){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t.brushSelector(i,n,a.selectors,a))return!0}}var $$={rect:function(t){return U$(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&U$(e)}};function U$(t){return new mn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}const q$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new QR(e.getZr())).on("brush",it(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){F$(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:F(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:F(n),$from:e})},e.type="brush",e}(Og);function Y$(t,e){return W({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new ih(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const X$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return m(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&P$(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,(function(t){return Y$(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=Y$(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:Pd.color.backgroundTint,borderColor:Pd.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:Pd.color.disabled},e}(Ad);var Z$=["rect","polygon","lineX","lineY","keep","clear"];const K$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=i,this._brushMode=r,K(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return K(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:Z$.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(fj);var J$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return m(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Pd.size.m,backgroundColor:Pd.color.transparent,borderColor:Pd.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Pd.color.primary},subtextStyle:{fontSize:12,color:Pd.color.quaternary}},e}(Ad),Q$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=xt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new mu({style:Lc(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new mu({style:Lc(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,h.silent=!p&&!f,d&&l.on("click",(function(){nd(d,"_"+t.get("target"))})),p&&h.on("click",(function(){nd(p,"_"+t.get("subtarget"))})),yu(l).eventData=yu(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var y=vd(m,bd(t,n).refContainer,t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),i.x=y.x,i.y=y.y,i.markRedraw();var v={align:a,verticalAlign:s};l.setStyle(v),h.setStyle(v),g=i.getBoundingRect();var x=y.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new Ql({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(Og),tU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],K(n,(function(e,n){var i,o=ka(Ca(e),"");ct(e)?(i=F(e)).value=n:i=n,t.push(i),r.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new aw([{name:"value",type:o}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:Pd.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:Pd.color.secondary},data:[]},e}(Ad);const eU=tU;var nU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="timeline.slider",e.defaultOption=ah(eU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:Pd.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:Pd.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:Pd.color.tertiary},itemStyle:{color:Pd.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:Pd.color.accent50,borderColor:Pd.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:Pd.color.accent50,borderColor:Pd.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:Pd.color.accent60},itemStyle:{color:Pd.color.accent60,borderColor:Pd.color.accent60},controlStyle:{color:Pd.color.accent70,borderColor:Pd.color.accent70}},progress:{lineStyle:{color:Pd.color.accent30},itemStyle:{color:Pd.color.accent40}},data:[]}),e}(eU);X(nU,bf.prototype);const iU=nU,rU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="timeline",e}(Og);var oU=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return m(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(pM);const aU=oU;var sU=Math.PI,lU=Pa(),uU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return sg("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},K(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,a,t)}),this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i,r,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return vd(t.getBoxLayoutParams(),bd(t,e).refContainer,t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<e.getHeight()/2?"-":"+":l.x+l.width/2<e.getWidth()/2?"+":"-":st(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:sU/2},d="vertical"===s?l.height:l.width,p=t.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,m=f?p.get("itemGap"):0,y=g+m,v=t.get(["label","rotate"])||0;v=v*sU/180;var x=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),b=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),S=0,M=d;"left"===x||"bottom"===x?(_&&(i=[0,0],S+=y),b&&(r=[S,0],S+=y),w&&(o=[M-g,0],M-=y)):(_&&(i=[M-g,0],M-=y),b&&(r=[0,0],S+=y),w&&(o=[M-g,0],M-=y));var C=[S,M];return t.get("inverse")&&C.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:h[s],labelRotation:v,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:C,controlSize:g,controlGap:m}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=r.x,s=r.y+r.height;je(o,o,[-a,-s]),$e(o,o,-sU/2),je(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),c=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var p,f=t.labelPosOpt;function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function y(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}null==f||st(f)?(y(h,u,l,1,p="+"===f?0:1),y(d,c,l,1,1-p)):(y(h,u,l,1,p=f>=0?0:1),d[1]=h[1]+f),n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Ow({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new oS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Rw}}(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new aU("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Ao;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Nm({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:j({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Nm({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:$({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],K(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:it(r._changeTimeline,r,t.value)},d=cU(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),sc(d);var p=yu(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],K(a,(function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new mu({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:it(r._changeTimeline,r,a),silent:!1,style:Lc(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=Lc(u),d.ensureState("progress").style=Lc(c),e.add(d),sc(d),lU(d).dataIndex=a,r._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(t,n,l,u){if(t){var c=fo(xt(i.get(["controlStyle",n+"BtnSize"]),r),r),h=function(t,e,n,i){var r=i.style,o=Ly(t.get(["controlStyle",e]),i||{},new mn(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}(i,n+"Icon",[0,-c/2,c,c],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,e.add(h),sc(h)}}c(t.nextBtnPosition,"next",it(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",it(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",it(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=it(s._handlePointerDrag,s),t.ondragend=it(s._handlePointerDragend,s),hU(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){hU(t,s._progressLine,o,n,i)}};this._currentPointer=cU(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=Ko(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var r=this._progressLine;r&&(r.shape.x2=n,r.dirty());var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){return Ty(t,this._mainGroup.getLocalTransform(),!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-t);s<i&&(i=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",lU(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(rU);function cU(t,e,n,i,r,o){var a=e.get("color");r?(r.setColor(a),n.add(r),o&&o.onUpdate(r)):((r=px(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r));var s=e.getItemStyle(["color"]);r.setStyle(s),i=W({rectHover:!0,z2:100},i,!0);var l=fx(t.get("symbolSize"));i.scaleX=l[0]/2,i.scaleY=l[1]/2;var u=gx(t.get("symbolOffset"),l);u&&(i.x=(i.x||0)+u[0],i.y=(i.y||0)+u[1]);var c=t.get("symbolRotate");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function hU(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const dU=uU;function pU(t){var e=t&&t.timeline;ot(e)||(e=e?[e]:[]),K(e,(function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),fU(t),gU(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});gU(i,"position")||(i.position=t.controlPosition),"none"!==i.position||gU(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}K(t.data||[],(function(t){ct(t)&&!ot(t)&&(!gU(t,"value")&&gU(t,"name")&&(t.value=t.name),fU(t))}))}(t)}))}function fU(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};K(i,(function(t,e){o[e]||gU(r,e)||(r[e]=t)})),n.label&&!gU(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function gU(t,e){return t.hasOwnProperty(e)}function mU(t,e){if(!t)return!1;for(var n=ot(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function yU(t){Sa(t,"label",["show"])}var vU=Pa(),xU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(x.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=vU(t)[r];n&&n.data?(o?o._mergeOption(n,e,!0):(i&&yU(n),K(n.data,(function(t){t instanceof Array?(yU(t[0]),yU(t[1])):yU(t)})),j(o=this.createMarkerModelFromSeries(n,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),vU(t)[r]=o):vU(t)[r]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return sg("section",{header:this.name,blocks:[sg("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var n=bf.prototype.getDataParams.call(this,t,e),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,e){return vU(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Ad);X(xU,bf.prototype);const _U=xU,bU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(_U);function wU(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function SU(t,e,n,i,r,o,a){var s=[],l=fw(e,r)?e.getCalculationInfo("stackResultDimension"):r,u=AU(e,l,t),c=e.hostModel.indicesOfNearest(n,l,u)[0];s[o]=e.get(i,c),s[a]=e.get(l,c);var h=e.get(r,c),d=Jo(e.get(r,c));return(d=Math.min(d,20))>=0&&(s[a]=+s[a].toFixed(d)),[s,h]}var MU={min:rt(SU,"min"),max:rt(SU,"max"),average:rt(SU,"average"),median:rt(SU,"median")};function CU(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!ot(e.coord)&&ot(r)){var o=TU(e,n,i,t);if((e=F(e)).type&&MU[e.type]&&o.baseAxis&&o.valueAxis){var a=q(r,o.baseAxis.dim),s=q(r,o.valueAxis.dim),l=MU[e.type](n,o.valueAxis.dim,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&ot(r))for(var u=e.coord,c=0;c<2;c++)MU[u[c]]&&(u[c]=AU(n,n.mapDimension(r[c]),u[c]));else{e.coord=[];var h=t.getBaseAxis();if(h&&e.type&&MU[e.type]){var d=i.getOtherAxis(h);d&&(e.value=AU(n,n.mapDimension(d.dim),e.type))}}return e}}function TU(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function IU(t,e){return!(t&&t.containData&&e.coord&&!wU(e))||t.containData(e.coord)}function DU(t,e){return t?function(t,n,i,r){return Tf(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return Tf(t.value,e[r])}}function AU(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var kU=Pa(),EU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){this.markerGroupMap=Et()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){kU(t).keep=!1})),e.eachSeries((function(t){var r=_U.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!kU(t).keep&&i.group.remove(t.group)})),function(t,e,n){t.eachSeries((function(t){var i=_U.getMarkerModelFromSeries(t,n),r=e.get(t.id);if(i&&r&&r.group){var o=Uy(i),a=o.z,s=o.zlevel;Yy(r.group,a,s)}}))}(e,r,this.type)},e.prototype.markKeep=function(t){kU(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;K(t,(function(t){var i=_U.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl((function(t){t&&(e?Zu(t):Ku(t))}))}))},e.type="marker",e}(Og);const LU=EU;function OU(t,e,n){var i=e.coordinateSystem,r=n.getWidth(),o=n.getHeight(),a=i&&i.getArea&&i.getArea();t.each((function(n){var s,l=t.getItemModel(n),u="coordinate"===l.get("relativeTo"),c=u?a?a.width:0:r,h=u?a?a.height:0:o,d=u&&a?a.x:0,p=u&&a?a.y:0,f=Yo(l.get("x"),c)+d,g=Yo(l.get("y"),h)+p;if(isNaN(f)||isNaN(g)){if(e.getMarkerPosition)s=e.getMarkerPosition(t.getValues(t.dimensions,n));else if(i){var m=t.get(i.dimensions[0],n),y=t.get(i.dimensions[1],n);s=i.dataToPoint([m,y])}}else s=[f,g];isNaN(f)||(s[0]=f),isNaN(g)||(s[1]=g),t.setItemLayout(n,s)}))}var PU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=_U.getMarkerModelFromSeries(t,"markPoint");e&&(OU(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new jT),u=function(t,e,n){var i;i=t?J(t&&t.dimensions,(function(t){return j(j({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new aw(i,n),o=J(n.get("data"),rt(CU,e));t&&(o=tt(o,rt(IU,t)));var a=DU(!!t,i);return r.initData(o,null,a),r}(r,t,e);e.setData(u),OU(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(at(i)||at(r)||at(o)||at(s)){var c=e.getRawValue(t),h=e.getDataParams(t);at(i)&&(i=i(c,h)),at(r)&&(r=r(c,h)),at(o)&&(o=o(c,h)),at(s)&&(s=s(c,h))}var d=n.getModel("itemStyle").getItemStyle(),p=n.get("z2"),f=Zv(a,"color");d.fill||(d.fill=f),u.setItemVisual(t,{z2:xt(p,0),symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){yu(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(LU);const NU=PU,RU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(_U);var zU=Pa(),BU=function(t,e,n,i){var r,o=t.getData();if(ot(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=vt(i.yAxis,i.xAxis);else{var u=TU(i,o,e,t);s=u.valueAxis,l=AU(o,gw(o,u.valueDataDim),a)}var c="x"===s.dim?0:1,h=1-c,d=F(i),p={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,p.coord[h]=1/0;var f=n.get("precision");f>=0&&ut(l)&&(l=+l.toFixed(Math.min(f,20))),d.coord[c]=p.coord[c]=l,r=[d,p,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[CU(t,r[0]),CU(t,r[1]),j({},r[2])];return g[2].type=g[2].type||null,W(g[2],g[0]),W(g[2],g[1]),g};function VU(t){return!isNaN(t)&&!isFinite(t)}function HU(t,e,n,i){var r=1-t,o=i.dimensions[t];return VU(e[r])&&VU(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function FU(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(HU(1,n,i,t)||HU(0,n,i,t)))return!0}return IU(t,e[0])&&IU(t,e[1])}function WU(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Yo(s.get("x"),r.getWidth()),u=Yo(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);o=a.dataToPoint([h,d])}if(rI(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions,VU(t.get(c[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):VU(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}const GU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=_U.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=zU(e).from,o=zU(e).to;r.each((function(e){WU(r,e,!0,t,n),WU(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new BP);this.group.add(l.group);var u=function(t,e,n){var i;i=t?J(t&&t.dimensions,(function(t){return j(j({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new aw(i,n),o=new aw(i,n),a=new aw([],n),s=J(n.get("data"),rt(BU,e,t,n));t&&(s=tt(s,rt(FU,t)));var l=DU(!!t,i);return r.initData(J(s,(function(t){return t[0]})),null,l),o.initData(J(s,(function(t){return t[1]})),null,l),a.initData(J(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),c=u.from,h=u.to,d=u.line;zU(e).from=c,zU(e).to=h,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),m=e.get("symbolOffset");function y(e,n,r){var o=e.getItemModel(n);WU(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Zv(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:xt(o.get("symbolOffset",!0),m[r?0:1]),symbolRotate:xt(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:xt(o.get("symbolSize"),f[r?0:1]),symbol:xt(o.get("symbol",!0),p[r?0:1]),style:s})}ot(p)||(p=[p,p]),ot(f)||(f=[f,f]),ot(g)||(g=[g,g]),ot(m)||(m=[m,m]),u.from.each((function(t){y(c,t,!0),y(h,t,!1)})),d.each((function(t){var e=d.getItemModel(t),n=e.getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]);var i=e.get("z2");null==n.stroke&&(n.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{z2:xt(i,0),fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:n})})),l.updateData(d),u.line.eachItemGraphicEl((function(t){yu(t).dataModel=e,t.traverse((function(t){yu(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(LU),jU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(_U);var $U=Pa(),UU=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=CU(t,r),s=CU(t,o),l=a.coord,u=s.coord;l[0]=vt(l[0],-1/0),l[1]=vt(l[1],-1/0),u[0]=vt(u[0],1/0),u[1]=vt(u[1],1/0);var c=G([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function qU(t){return!isNaN(t)&&!isFinite(t)}function YU(t,e,n,i){var r=1-t;return qU(e[r])&&qU(n[r])}function XU(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return rI(t,"cartesian2d")?!(!n||!i||!YU(1,n,i)&&!YU(0,n,i))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!wU(e)&&!wU(n))||t.containZone(e.coord,n.coord)}(t,r,o):IU(t,r)||IU(t,o)}function ZU(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Yo(s.get(n[0]),r.getWidth()),u=Yo(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),d=a.clampData(c),p=a.clampData(h),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?h[0]:c[0]:f[0]=d[0]>p[0]?c[0]:h[0],"y0"===n[1]?f[1]=d[1]>p[1]?h[1]:c[1]:f[1]=d[1]>p[1]?c[1]:h[1],o=i.getMarkerPosition(f,n,!0)}else{var g=[v=t.get(n[0],e),x=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(rI(a,"cartesian2d")){var m=a.getAxis("x"),y=a.getAxis("y"),v=t.get(n[0],e),x=t.get(n[1],e);qU(v)?o[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):qU(x)&&(o[1]=y.toGlobalCoord(y.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var KU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],JU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=_U.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=J(KU,(function(r){return ZU(i,e,r,t,n)}));i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Ao});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var i,r;if(t){var o=J(t&&t.dimensions,(function(t){var n=e.getData();return j(j({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})}));r=J(["x0","y0","x1","y1"],(function(t,e){return{name:t,type:o[e%2].type}})),i=new aw(r,n)}else i=new aw(r=[{name:"value",type:"float"}],n);var a=J(n.get("data"),rt(UU,e,t,n));t&&(a=tt(a,rt(XU,t)));var s=t?function(t,e,n,i){return Tf(t.coord[Math.floor(i/2)][i%2],r[i])}:function(t,e,n,i){return Tf(t.value,r[i])};return i.initData(a,null,s),i.hasItemOption=!0,i}(r,t,e);e.setData(u),u.each((function(e){var n=J(KU,(function(n){return ZU(u,e,n,t,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];Ko(h),Ko(d);var p=!!(l[0]>h[1]||l[1]<h[0]||c[0]>d[1]||c[1]<d[0]);u.setItemLayout(e,{points:n,allClipped:p});var f=u.getItemModel(e),g=f.getModel("itemStyle").getItemStyle(),m=f.get("z2"),y=Zv(a,"color");g.fill||(g.fill=y,st(g.fill)&&(g.fill=Hi(g.fill,.4))),g.stroke||(g.stroke=y),u.setItemVisual(e,"style",g),u.setItemVisual(e,"z2",xt(m,0))})),u.diff($U(l).data).add((function(t){var e=u.getItemLayout(t),n=u.getItemVisual(t,"z2");if(!e.allClipped){var i=new Dm({z2:xt(n,0),shape:{points:e.points}});u.setItemGraphicEl(t,i),l.group.add(i)}})).update((function(t,n){var i=$U(l).data.getItemGraphicEl(n),r=u.getItemLayout(t),o=u.getItemVisual(t,"z2");r.allClipped?i&&l.group.remove(i):(i?_c(i,{z2:xt(o,0),shape:{points:r.points}},e,t):i=new Dm({shape:{points:r.points}}),u.setItemGraphicEl(t,i),l.group.add(i))})).remove((function(t){var e=$U(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),kc(t,Ec(i),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:st(r.fill)?Hi(r.fill,1):Pd.color.neutral99}),dc(t,i),lc(t,null,null,i.get(["emphasis","disabled"])),yu(t).dataModel=e})),$U(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(LU);const QU=JU;var tq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),ot(e)&&K(e,(function(t,i){st(t)&&(t={type:t}),e[i]=W(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&Ea(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,r=Et(),o=J(i,(function(t){return(st(t)||ut(t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new ih(t,this,this.ecModel))}),this);this._data=tt(o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&K(this._data,(function(t){e[t.get("name")]=!1})),e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;K(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;K(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&q(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:Pd.size.m,align:"auto",backgroundColor:Pd.color.transparent,borderColor:Pd.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Pd.color.disabled,inactiveBorderColor:Pd.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:Pd.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Pd.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Pd.color.tertiary,borderWidth:1,borderColor:Pd.color.border},emphasis:{selectorLabel:{show:!0,color:Pd.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(Ad);const eq=tq;var nq=rt,iq=K,rq=Ao,oq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return m(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new rq),this.group.add(this._selectorGroup=new rq),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=bd(t,n).refContainer,u=t.getBoxLayoutParams(),c=t.get("padding"),h=vd(u,l,c),d=this.layoutInner(t,r,h,i,a,s),p=vd($({width:d.width,height:d.height},u),l,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=xj(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=Et(),u=e.get("selectedMode"),c=e.get("triggerEvent"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),iq(e.getData(),(function(r,o){var a=this,d=r.get("name");if(!this.newlineDisabled&&(""===d||"\n"===d)){var p=new rq;return p.newline=!0,void s.add(p)}var f=n.getSeriesByName(d)[0];if(!l.get(d))if(f){var g=f.getData(),m=g.getVisual("legendLineStyle")||{},y=g.getVisual("legendIcon"),v=g.getVisual("style"),x=this._createItem(f,d,o,r,e,t,m,v,y,u,i);x.on("click",nq(aq,d,null,i,h)).on("mouseover",nq(lq,f.name,null,i,h)).on("mouseout",nq(uq,f.name,null,i,h)),n.ssr&&x.eachChild((function(t){var e=yu(t);e.seriesIndex=f.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),c&&x.eachChild((function(t){a.packEventData(t,e,f,o,d)})),l.set(d,!0)}else n.eachRawSeries((function(a){var s=this;if(!l.get(d)&&a.legendVisualProvider){var p=a.legendVisualProvider;if(!p.containName(d))return;var f=p.indexOfName(d),g=p.getItemVisual(f,"style"),m=p.getItemVisual(f,"legendIcon"),y=Ei(g.fill);y&&0===y[3]&&(y[3]=.2,g=j(j({},g),{fill:Fi(y,"rgba")}));var v=this._createItem(a,d,o,r,e,t,{},g,m,u,i);v.on("click",nq(aq,null,d,i,h)).on("mouseover",nq(lq,null,d,i,h)).on("mouseout",nq(uq,null,d,i,h)),n.ssr&&v.eachChild((function(t){var e=yu(t);e.seriesIndex=a.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),c&&v.eachChild((function(t){s.packEventData(t,e,a,o,d)})),l.set(d,!0)}}),this)}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype.packEventData=function(t,e,n,i,r){var o={componentType:"legend",componentIndex:e.componentIndex,dataIndex:i,value:r,seriesIndex:n.seriesIndex};yu(t).eventData=o},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();iq(t,(function(t){var i=t.type,r=new mu({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r),kc(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),sc(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,c){var h=t.visualDrawType,d=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),y=i.get("icon"),v=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),iq(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?$x(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=y||l||"roundRect",i,a,s,h,f,c),x=new rq,_=i.getModel("textStyle");if(!at(t.getLegendIcon)||y&&"inherit"!==y){var b="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;x.add(function(t){var e=t.icon||"roundRect",n=px(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=Pd.color.neutral00,n.style.lineWidth=2),n}({itemWidth:d,itemHeight:p,icon:l,iconRotate:b,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:m}))}else x.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:m}));var w="left"===o?d+5:-5,S=o,M=r.get("formatter"),C=e;st(M)&&M?C=M.replace("{name}",null!=e?e:""):at(M)&&(C=M(e));var T=f?_.getTextColor():i.get("inactiveColor");x.add(new mu({style:Lc(_,{text:C,x:w,y:p/2,fill:T,align:S,verticalAlign:"middle"},{inheritColor:T})}));var I=new Ql({shape:x.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&Vy({el:I,componentModel:r,itemName:e,itemTooltipOption:D.option}),x.add(I),x.eachChild((function(t){t.silent=!0})),I.silent=!u,this.getContentGroup().add(x),sc(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();gd(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){gd("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+d+c[f],y[g]=Math.max(l[g],c[g]),y[m]=Math.min(0,c[m]+h[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Og);function aq(t,e,n,i){uq(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),lq(t,e,n,i)}function sq(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function lq(t,e,n,i){sq(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function uq(t,e,n,i){sq(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}const cq=oq;function hq(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function dq(t,e,n){var i="allSelect"===t||"inverseSelect"===t,r={},o=[];n.eachComponent({mainType:"legend",query:e},(function(n){i?n[t]():n[t](e.name),pq(n,r),o.push(n.componentIndex)}));var a={};return n.eachComponent("legend",(function(t){K(r,(function(e,n){t[e?"select":"unSelect"](n)})),pq(t,a)})),i?{selected:a,legendIndex:o}:{name:e.name,selected:a}}function pq(t,e){var n=e||{};return K(t.getData(),(function(e){var i=e.get("name");if("\n"!==i&&""!==i){var r=t.isSelected(i);Nt(n,i)?n[i]=n[i]&&r:n[i]=r}})),n}function fq(t){t.registerComponentModel(eq),t.registerComponentView(cq),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,hq),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",rt(dq,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",rt(dq,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",rt(dq,"inverseSelect")),t.registerAction("legendSelect","legendselected",rt(dq,"select")),t.registerAction("legendUnSelect","legendunselected",rt(dq,"unSelect"))}(t)}function gq(t,e,n){var i=[1,1];i[t.getOrient().index]=0,Md(e,n,{type:"box",ignoreSize:!!i})}const mq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=Cd(e);t.prototype.init.call(this,e,n,i),gq(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),gq(this,this.option,e)},e.type="legend.scroll",e.defaultOption=ah(eq.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:Pd.color.accent50,pageIconInactiveColor:Pd.color.accent10,pageIconSize:15,pageTextStyle:{color:Pd.color.tertiary},animationDurationUpdate:800}),e}(eq);var yq=Ao,vq=["width","height"],xq=["x","y"],_q=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return m(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new yq),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new yq)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=ot(c)?c:[c,c];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var i=t+"DataIndex",o=Ly(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:it(l._pageGo,l,i,n,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new mu({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=vq[s],u=xq[s],c=vq[1-s],h=xq[1-s];r&&gd("horizontal",a,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=F(n);r&&(g[l]=n[l]-p[l]-d);var m=this._layoutContentAndController(t,i,g,s,l,c,h,u);if(r){if("end"===o)f[s]+=m[l]+d;else{var y=p[l]+d;f[s]-=y,m[u]-=y}m[l]+=p[l]+d,f[1-s]+=m[h]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[h]=Math.min(m[h],p[h]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;gd(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),gd("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[r]>n[r],f=[-h.x,-h.y];e||(f[i]=l[s]);var g=[0,0],m=[-d.x,-d.y],y=xt(t.get("pageButtonGap",!0),t.get("itemGap",!0));p&&("end"===t.get("pageButtonPosition",!0)?m[i]+=n[r]-d[r]:g[i]+=d[r]+y),m[1-i]+=h[o]/2-d[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(m);var v={x:0,y:0};if(v[r]=p?n[r]:h[r],v[o]=Math.max(h[o],d[o]),v[a]=Math.min(0,d[a]+m[1-i]),u.__rectSize=n[r],p){var x={x:0,y:0};x[r]=Math.max(n[r]-d[r]-y,0),x[o]=v[o],u.setClipPath(new Ql({shape:x})),u.__rectSize=x[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&_c(l,{x:_.contentPosition[0],y:_.contentPosition[1]},p?t:null),this._updatePageInfoView(t,_),v},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;K(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",st(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=vq[r],a=xq[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=v(u);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,m=p,y=null;f<=c;++f)(!(y=v(l[f]))&&m.e>g.s+i||y&&!x(y,g.s))&&(g=m.i>g.i?m:y)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=y;for(f=s-1,g=p,m=p,y=null;f>=-1;--f)(y=v(l[f]))&&x(m,y.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=y;return d;function v(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function x(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(cq);const bq=_q;function wq(t){Eb(fq),t.registerComponentModel(mq),t.registerComponentView(bq),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}const Sq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.inside",e.defaultOption=ah(nj.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(nj);var Mq=Pa();function Cq(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function Tq(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Iq(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}var Dq=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return m(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){Mq(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}(i,e,{pan:it(Aq.pan,this),zoom:it(Aq.zoom,this),scrollMove:it(Aq.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=Mq(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||Cq(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(rj),Aq={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=Eq[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return XN(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:kq((function(t,e,n,i,r,o){var a=Eq[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:kq((function(t,e,n,i,r,o){return Eq[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta}))};function kq(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return XN(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var Eq={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const Lq=Dq;function Oq(t){dj(t),t.registerComponentModel(Sq),t.registerComponentView(Lq),function(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=Mq(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Et());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){K(JG(t).infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:rt(Iq,e),dispatchAction:rt(Tq,t),dataZoomInfoMap:null,controller:null},i=n.controller=new Pk(t.getZr());return K(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=Et())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var n,r=t.controller,o=t.dataZoomInfoMap;if(o){var a=o.keys()[0];null!=a&&(n=o.get(a))}if(n){var s=function(t,e,n){var i,r="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return t.each((function(t){var e=t.model,n=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");o[r+n]>o[r+i]&&(i=n),a=a&&e.get("preventDefaultMouseMove",!0)})),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a,api:n,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint}}}}(o,t,e);r.enable(s.controlType,s.opt),uv(t,"dispatchAction",n.model.get("throttle",!0),"fixRate")}else Cq(i,t)}))}))}(t)}const Pq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ah(nj.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:Pd.color.accent10,borderRadius:0,backgroundColor:Pd.color.transparent,dataBackground:{lineStyle:{color:Pd.color.accent30,width:.5},areaStyle:{color:Pd.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:Pd.color.accent40,width:.5},areaStyle:{color:Pd.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:Pd.color.neutral00,borderColor:Pd.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:Pd.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:Pd.color.tertiary},brushSelect:!0,brushStyle:{color:Pd.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Pd.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(nj);var Nq=Ql,Rq="horizontal",zq="vertical",Bq=["line","bar","candlestick","scatter"],Vq={easing:"cubicOut",duration:100,delay:0},Hq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return m(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),uv(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){cv(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Ao;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=bd(t,e).refContainer,r=this._findCoordRect(),o=t.get("defaultLocationEdgeGap",!0)||0,a=this._orient===Rq?{right:i.width-r.x-r.width,top:i.height-30-o-n,width:r.width,height:30}:{right:o,top:r.y,width:30,height:r.height},s=Cd(t.option);K(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=a[t])}));var l=vd(s,i);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===zq&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==Rq||r?n===Rq&&r?{scaleY:a?1:-1,scaleX:-1}:n!==zq||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new Nq({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new Nq({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=r.getDataExtent(t.thisDim),c=r.getDataExtent(a),h=.3*(c[1]-c[0]);c=[c[0]-h,c[1]+h];var d,p=[0,e[1]],f=[0,e[0]],g=[[e[0],0],[0,0]],m=[],y=f[1]/Math.max(1,r.count()-1),v=e[0]/(u[1]-u[0]),x="time"===t.thisAxis.type,_=-y,b=Math.round(r.count()/e[0]);r.each([t.thisDim,a],(function(t,e,n){if(b>0&&n%b)x||(_+=y);else{_=x?(+t-u[0])*v:_+y;var i=null==e||isNaN(e)||""===e,r=i?0:qo(e,c,p,!0);i&&!d&&n?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!i&&d&&(g.push([_,0]),m.push([_,0])),i||(g.push([_,r]),m.push([_,r])),d=i}})),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=m}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var w=this.dataZoomModel,S=0;S<3;S++){var M=C(1===S);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}}}function C(t){var e=w.getModel(t?"selectedDataBackground":"dataBackground"),n=new Ao,i=new Dm({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Em({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,o){K(t.getAxisProxy(r,o).getTargetSeriesModels(),(function(t){if(!(n||!0!==e&&q(Bq,t.get("type"))<0)){var a,s=i.getComponent(KG(r),o).axis,l=function(t){return{x:"y",y:"x",radius:"angle",angle:"radius"}[t]}(r),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l);var c=t.getData().mapDimension(r);n={thisAxis:s,series:t,thisDim:c,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new Nq({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new Nq({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:Pd.color.transparent}})),K([0,1],(function(e){var o=a.get("handleIcon");!cx[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s,l=px(o,-1,0,2,2,null,!0);l.attr({cursor:(s=this._orient,"vertical"===s?"ns-resize":"ew-resize"),draggable:!0,drift:it(this._onDragMove,this,e),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var u=l.getBoundingRect(),c=a.get("handleSize");this._handleHeight=Yo(c,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,l.setStyle(a.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),sc(l);var h=a.get("handleColor");null!=h&&(l.style.fill=h),r.add(n[e]=l);var d=a.getModel("textStyle"),p=(a.get("handleLabel")||{}).show||!1;t.add(i[e]=new mu({silent:!0,invisible:!p,style:Lc(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var h=c;if(u){var d=Yo(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new Ql({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=px(a.get("moveHandleIcon"),-f/2,-f/2,f,f,Pd.color.neutral00,!0);g.silent=!0,g.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(d,10));(h=e.moveZone=new Ql({invisible:!0,shape:{y:o[1]-m,height:d+m}})).on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:"default",drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[qo(t[0],[0,100],e,!0),qo(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];XN(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?qo(o.minSpan,a,r,!0):null,null!=o.maxSpan?qo(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Ko([qo(i[0],r,a,!0),qo(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=Ko(n.slice()),r=this._size;K([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new Ql,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=Ko(this._handleEnds.slice());function h(t){var e=Cy(n.handles[t].parent,this.group),a=Iy(0===t?"right":"left",e),s=this._handleWidth/2+5,l=Ty([c[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===Rq?"middle":a,align:r===Rq?a:"center",text:o[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return at(i)?i(t,o):st(i)?i.replace("{value}",o):o},e.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,i=t||this._dragging?n:e,r=this._displayables,o=r.handleLabels;o[0].attr("invisible",!i),o[1].attr("invisible",!i),r.moveHandle&&this.api[i?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Ne(i.event);var r=Ty([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,r[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Ze(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100],o=this._handleEnds=[n.x,n.x+n.width],a=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();XN(0,o,i,0,null!=a.minSpan?qo(a.minSpan,r,i,!0):null,null!=a.maxSpan?qo(a.maxSpan,r,i,!0):null),this._range=Ko([qo(o[0],i,r,!0),qo(o[1],i,r,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Ne(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new Nq({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Vq:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=JG(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(rj);const Fq=Hq;function Wq(t){t.registerComponentModel(Pq),t.registerComponentView(Fq),dj(t)}var Gq={get:function(t,e,n){var i=F((jq[t]||{})[e]);return n&&ot(i)?i[i.length-1]:i}},jq={color:{active:["#006edd","#e0ffff"],inactive:[Pd.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const $q=Gq;var Uq=kO.mapVisual,qq=kO.eachVisual,Yq=ot,Xq=K,Zq=Ko,Kq=qo,Jq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&P$(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=it(t,this),this.controllerVisuals=O$(this.option.controller,e,t),this.targetVisuals=O$(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,e=this.option.seriesIndex;return null==e&&null==t&&(e="all"),J(Ha(this.ecModel,"series",{index:e,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models,(function(t){return t.componentIndex}))},e.prototype.eachTargetSeries=function(t,e){K(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],ot(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return st(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):at(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=Zq([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});W(i,n),W(r,n);var o=this.isCategory();function a(n){Yq(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},Xq(i,(function(t,e){if(kO.isValidType(e)){var n=$q.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";Xq(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&F(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&F(n)||(o?s[0]:[s[0],s[0]])),l.symbol=Uq(l.symbol,(function(t){return"none"===t?r:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;qq(u,(function(t){t>c&&(c=t)})),l.symbolSize=Uq(u,(function(t){return Kq(t,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:Pd.color.transparent,borderColor:Pd.color.borderTint,contentColor:Pd.color.theme[0],inactiveColor:Pd.color.disabled,borderWidth:0,padding:Pd.size.m,textGap:10,precision:0,textStyle:{color:Pd.color.secondary}},e}(Ad);const Qq=Jq;var tY=[20,140],eY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=tY[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=tY[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):ot(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),K(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=Ko((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent(),i=xt(this.option.unboundedRange,!0);return(i&&e[0]<=n[0]||e[0]<=t)&&(i&&e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=nY(0,0,this.getExtent()),n=nY(0,0,this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&r(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=ah(Qq.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:Pd.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:Pd.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Pd.color.shadow}}),e}(Qq);function nY(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}const iY=eY;var rY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return m(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=qh(e.get("padding")||0),i=t.getBoundingRect();t.add(new Ql({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var i=(n=n||{}).forceState,r=this.visualMapModel,o={};if("color"===e){var a=r.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=r.controllerVisuals[i||r.getValueState(t)];return K(kO.prepareVisualTypes(u),(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),kO.dependsOn(i,e)&&r&&r.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=bd(e,this.api).refContainer;wd(t,e.getBoxLayoutParams(),n)},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(Og);const oY=rY;var aY=[["left","right","width"],["top","bottom","height"]];function sY(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===i.orient?1:0,s=aY[a],l=[0,null,10],u={},c=0;c<3;c++)u[aY[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],d=vd(u,o,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function lY(t,e){return K(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var uY=qo,cY=K,hY=Math.min,dY=Math.max,pY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return m(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=it(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=it(this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new mu({style:Lc(h,{x:l[0],y:l[1],verticalAlign:h.get("verticalAlign")||("horizontal"===c?"middle":u),align:h.get("align")||("horizontal"===c?u:"center"),text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,o=this._useHandle,a=sY(e,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new Ao;s.add(l),l.add(n.outOfRange=fY()),l.add(n.inRange=fY(null,o?mY(this._orient):null,it(this._dragHandle,this,"all",!1),it(this._dragHandle,this,"all",!0))),l.setClipPath(new Ql({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=dY(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,c,r),this._createHandle(e,s,1,i,c,r)),this._createIndicator(e,s,i,c,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,o){var a=it(this._dragHandle,this,n,!1),s=it(this._dragHandle,this,n,!0),l=fo(t.get("handleSize"),i[0]),u=px(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=mY(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Ne(t.event)}}),u.x=i[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),pc(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,d=new mu({cursor:c,draggable:!0,drift:a,onmousemove:function(t){Ne(t.event)},ondragend:s,style:Lc(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=p,f.handleLabels[n]=d},e.prototype._createIndicator=function(t,e,n,i,r){var o=fo(t.get("indicatorSize"),n[0]),a=px(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof $l){var l=a.style;a.useStyle(j({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,c=new mu({silent:!0,invisible:!0,style:Lc(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===r?i/2:6)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():gY(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[uY(e[0],n,i,!0),uY(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];XN(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[uY(i[0],r,o,!0),uY(i[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new Ym(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+i*r;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Ao("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent(),l=this._applyTransform("left",n.mainGroup);cY([0,1],(function(u){var c=r[u];c.setStyle("fill",e.handlesColor[u]),c.y=t[u];var h=uY(t[u],[0,a[1]],s,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/a[0],c.x=a[0]-d/2;var p=Ty(n.handleLabelPoints[u],Cy(c,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(a[0]-d)/2:(a[0]-d)/-2;p[1]+=f}o[u].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),d=uY(t,o,s,!0),p=a[0]-h/2,f={x:u.x,y:u.y};u.y=d,u.x=p;var g=Ty(l.indicatorLabelPoint,Cy(u,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),v="horizontal"===this._orient;m.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:v?y:"middle",align:v?"center":y});var x={x:p,y:d,style:{fill:c}},_={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),m.animateTo(_,b)}else u.attr(x),m.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this.api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=hY(dY(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=hY(dY(r[0],t),r[1]);var a=function(t,e,n){var i=6,r=t.get("hoverLinkDataSize");return r&&(i=uY(r,e,n,!0)/2),i}(n,o,r),s=[t-a,t+a],l=uY(t,r,o,!0),u=[uY(s[0],r,o,!0),uY(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||gY(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var o=ka(t[i].seriesId,null);if(null==o)return;for(var a=wa(t[i].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function o(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}(c,h);this._dispatchHighDown("downplay",lY(d[0],n)),this._dispatchHighDown("highlight",lY(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(tx(t.target,(function(t){var n=yu(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",lY(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var r=Cy(e,i?null:this.group);return ot(t)?Ty(t,r,n):Iy(t,r,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(oY);function fY(t,e,n,i){return new Dm({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Ne(t.event)},ondragend:i})}function gY(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function mY(t){return"vertical"===t?"ns-resize":"ew-resize"}const yY=pY;var vY={type:"selectDataRange",event:"dataRangeSelected",update:"update"},xY=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},_Y=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i,r,o,a,s,l=t.pipelineContext;!e.isTargetSeries(t)||l&&l.large||n.push((i=e.stateList,r=e.targetVisuals,o=it(e.getValueState,e),a=e.getDataDimensionIndex(t.getData()),s={},K(i,(function(t){var e=kO.prepareVisualTypes(r[t]);s[t]=e})),{progress:function(t,e){var n,i;function l(t){return Xv(e,i,t)}function u(t,n){Kv(e,i,t,n)}null!=a&&(n=e.getDimensionIndex(a));for(var c=e.getStore();null!=(i=t.next());){var h=e.getRawDataItem(i);if(!h||!1!==h.visualMap)for(var d=null!=a?c.get(n,i):i,p=o(d),f=r[p],g=s[p],m=0,y=g.length;m<y;m++){var v=g[m];f[v]&&f[v].applyVisual(d,l,u)}}}}))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(it(bY,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function bY(t,e,n,i){for(var r=e.targetVisuals[i],o=kO.prepareVisualTypes(r),a={color:Zv(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return a.color;function h(t){return a[t]}function d(t,e){a[t]=e}}var wY=K;function SY(t){var e=t&&t.visualMap;ot(e)||(e=e?[e]:[]),wY(e,(function(t){if(t){MY(t,"splitList")&&!MY(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&ot(e)&&wY(e,(function(t){ct(t)&&(MY(t,"start")&&!MY(t,"min")&&(t.min=t.start),MY(t,"end")&&!MY(t,"max")&&(t.max=t.end))}))}}))}function MY(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var CY=!1;function TY(t){CY||(CY=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(vY,xY),K(_Y,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(SY))}function IY(t){t.registerComponentModel(iY),t.registerComponentView(yY),TY(t)}var DY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return m(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],AY[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=F(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=J(this._pieceList,(function(t){return t=F(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=kO.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}K(e.pieces,(function(t){K(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),K(n,(function(t,n){var i=!1;K(this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&K(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=$q.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,K(i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;K(i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=F(t)},e.prototype.getValueState=function(t){var e=kO.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){kO.findPieceIndex(e,n)===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return K(r,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=ah(Qq.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Qq),AY={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),pa(t),K(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;K(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),kY(e,t)},pieces:function(t){var e=this.option;K(e.pieces,(function(e,n){ct(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==o[c];d++)o[c]=e[h[d]],a[c]=s[d],u[c]=2===d;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=kO.retrieveVisuals(e),t.push(i)}),this),kY(e,t),pa(t),K(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function kY(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}const EY=DY;var LY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=this._getItemAlign(),o=e.itemSize,a=this._getViewData(),s=a.endsText,l=vt(e.get("showLabel",!0),!s),u=!e.get("selectedMode");s&&this._renderEndsText(t,s[0],o,l,r),K(a.viewPieceList,(function(a){var s=a.piece,c=new Ao;c.onclick=it(this._onItemClick,this,s),this._enableHoverLink(c,a.indexInModelPieceList);var h=e.getRepresentValue(s);if(this._createItemSymbol(c,h,[0,0,o[0],o[1]],u),l){var d=this.visualMapModel.getValueState(h),p=i.get("align")||r;c.add(new mu({style:Lc(i,{x:"right"===p?-n:o[0]+n,y:o[1]/2,text:s.text,verticalAlign:i.get("verticalAlign")||"middle",align:p,opacity:xt(i.get("opacity"),"outOfRange"===d?.5:1)}),silent:u}))}t.add(c)}),this),s&&this._renderEndsText(t,s[1],o,l,r),gd(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:lY(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return sY(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new Ao,a=this.visualMapModel.textStyleModel;o.add(new mu({style:Lc(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=J(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n,i){var r=px(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));r.silent=i,t.add(r)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=F(n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,K(r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(oY);const OY=LY;function PY(t){t.registerComponentModel(EY),t.registerComponentView(OY),TY(t)}var NY=function(){function t(t){this._thumbnailModel=t}return t.prototype.reset=function(t){this._renderVersion=t.getMainProcessVersion()},t.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:qy(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},t.prototype.updateWindow=function(t,e){var n=e.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},t}(),RY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return m(e,t),e.prototype.optionUpdated=function(t,e){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new NY(this);this._target=null,this.ecModel.eachSeries((function(t){YP(t,null)})),this.shouldShow()&&YP(this.getTarget().baseMapProvider,t)},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?"graph"!==t.subType&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:Pd.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:Pd.color.neutral30,borderColor:Pd.color.neutral40,opacity:.3},z:10},e}(Ad),zY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){if(this._api=n,this._model=t,this._coordSys||(this._coordSys=new YE),this._isEnabled()){this._renderVersion=n.getMainProcessVersion();var i=this.group;i.removeAll();var r=t.getModel("itemStyle"),o=r.getItemStyle();null==o.fill&&(o.fill=e.get("backgroundColor")||Pd.color.neutral00);var a=bd(t,n).refContainer,s=vd(md(t,!0),a),l=o.lineWidth||0,u=this._contentRect=Ry(s.clone(),l/2,!0,!0),c=new Ao;i.add(c),c.setClipPath(new Ql({shape:u.plain()}));var h=this._targetGroup=new Ao;c.add(h);var d=s.plain();d.r=r.getShallow("borderRadius",!0),i.add(this._bgRect=new Ql({style:o,shape:d,silent:!1,cursor:"grab"}));var p=t.getModel("windowStyle"),f=p.getShallow("borderRadius",!0);c.add(this._windowRect=new Ql({shape:{x:0,y:0,width:0,height:0,r:f},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),VY(t,this)}else this._clear()},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),VY(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(t&&t.renderVersion===this._renderVersion){var e=this._targetGroup,n=this._coordSys,i=this._contentRect;if(e.removeAll(),t){var r=t.group,o=r.getBoundingRect();e.add(r),this._bgRect.z2=t.z2Range.min-10,n.setBoundingRect(o.x,o.y,o.width,o.height);var a=vd({left:"center",top:"center",aspect:o.width/o.height},i);n.setViewRect(a.x,a.y,a.width,a.height),r.attr(n.getTransformInfo().raw),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var e=this._bridgeRendered;e&&e.renderVersion===t.renderVersion&&(e.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(t&&t.renderVersion===this._renderVersion){var e=qe([],t.targetTrans),n=Ge([],this._coordSys.transform,e);this._transThisToTarget=qe([],n);var i=t.viewportRect;(i=i?i.clone():new mn(0,0,this._api.getWidth(),this._api.getHeight())).applyTransform(n);var r=this._windowRect,o=r.shape.r;r.setShape($({r:o},i))}},e.prototype._resetRoamController=function(t){var e=this,n=this._api,i=this._roamController;i||(i=this._roamController=new Pk(n.getZr())),t&&this._isEnabled()?(i.enable(t,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(t,n,i){return e._contentRect.contain(n,i)}}}),i.off("pan").off("zoom").on("pan",it(this._onPan,this)).on("zoom",it(this._onZoom,this))):i.disable()},e.prototype._onPan=function(t){var e=this._transThisToTarget;if(this._isEnabled()&&e){var n=ue([],[t.oldX,t.oldY],e),i=ue([],[t.oldX-t.dx,t.oldY-t.dy],e);this._api.dispatchAction(BY(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},e.prototype._onZoom=function(t){var e=this._transThisToTarget;if(this._isEnabled()&&e){var n=ue([],[t.originX,t.originY],e);this._api.dispatchAction(BY(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:n[0],originY:n[1]}))}},e.prototype._isEnabled=function(){var t=this._model;return!(!t||!t.shouldShow()||!t.getTarget().baseMapProvider)},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e}(Og);function BY(t,e){var n={type:"series"===t.mainType?t.subType+"Roam":t.mainType+"Roam"};return n[t.mainType+"Id"]=t.id,j(n,e),n}function VY(t,e){var n=Uy(t);Yy(e.group,n.z,n.zlevel)}var HY={label:{enabled:!0},decal:{show:!1}},FY=Pa(),WY={};function GY(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=F(HY);W(i.label,t.getLocaleModel().get("aria"),!1),W(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=Et();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),FY(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(at(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=up(e.ecModel,e.name,WY,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=e.getRawData(),a={},s=FY(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var i=a[t],r=o.getName(t)||t+"",c=up(e.ecModel,r,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(h,c))}))}}function u(t,e){var n=t?j(j({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var i=e.getZr().dom;if(i){var o=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=$(a.option,o),a.get("enabled"))if(i.setAttribute("role","img"),a.get("description"))i.setAttribute("aria-label",a.get("description"));else{var s,l=t.getSeriesCount(),u=a.get(["data","maxCount"])||10,c=a.get(["series","maxCount"])||10,h=Math.min(l,c);if(!(l<1)){var d=function(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}();s=d?r(a.get(["general","withTitle"]),{title:d}):a.get(["general","withoutTitle"]);var p=[];s+=r(l>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,n){if(n<h){var i=void 0,o=e.get("name")?"withName":"withoutName";i=r(i=l>1?a.get(["series","multiple",o]):a.get(["series","single",o]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(_=e.subType,b=t.getLocaleModel().get(["series","typeNames"]),b[_]||b.chart)});var s=e.getData();s.count()>u?i+=r(a.get(["data","partialData"]),{displayCnt:u}):i+=a.get(["data","allData"]);for(var c=a.get(["data","separator","middle"]),d=a.get(["data","separator","end"]),f=a.get(["data","excludeDimensionId"]),g=[],m=0;m<s.count();m++)if(m<u){var y=s.getName(m),v=f?tt(s.getValues(m),(function(t,e){return-1===q(f,e)})):s.getValues(m),x=a.get(["data",y?"withName":"withoutName"]);g.push(r(x,{name:y,value:v.join(c)}))}i+=g.join(c)+d,p.push(i)}var _,b}));var f=a.getModel(["series","multiple","separator"]),g=f.get("middle"),m=f.get("end");s+=p.join(g)+m,i.setAttribute("aria-label",s)}}}}()}function r(t,e){if(!st(t))return t;var n=t;return K(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}}function jY(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},K(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}var $Y={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},UY=function(){function t(t){null==(this._condVal=st(t)?new RegExp(t):mt(t)?t:null)&&af("")}return t.prototype.evaluate=function(t){var e=typeof t;return st(e)?this._condVal.test(t):!!ut(e)&&this._condVal.test(t+"")},t}(),qY=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),YY=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),XY=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),ZY=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),KY=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0},t}();function JY(t,e){if(!0===t||!1===t){var n=new qY;return n.value=t,n}return tX(t)||af(""),t.and?QY("and",t,e):t.or?QY("or",t,e):t.not?function(t,e){var n=t.not;tX(n)||af("");var i=new ZY;return i.child=JY(n,e),i.child||af(""),i}(t,e):function(t,e){for(var n=e.prepareGetValue(t),i=[],r=nt(t),o=t.parser,a=o?Df(o):null,s=0;s<r.length;s++){var l=r[s];if("parser"!==l&&!e.valueGetterAttrMap.get(l)){var u=Nt($Y,l)?$Y[l]:l,c=t[l],h=a?a(c):c,d=Of(u,h)||"reg"===u&&new UY(h);d||af(""),i.push(d)}}i.length||af("");var p=new KY;return p.valueGetterParam=n,p.valueParser=a,p.getValue=e.getValue,p.subCondList=i,p}(t,e)}function QY(t,e,n){var i=e[t];ot(i)||af(""),i.length||af("");var r="and"===t?new YY:new XY;return r.children=J(i,(function(t){return JY(t,n)})),r.children.length||af(""),r}function tX(t){return ct(t)&&!Z(t)}var eX=function(){function t(t,e){this._cond=JY(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}(),nX={type:"echarts:filter",transform:function(t){for(var e,n,i,r=t.upstream,o=(n=t.config,i={valueGetterAttrMap:Et({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;Nt(t,"dimension")||af("");var n=r.getDimensionInfo(e);return n||af(""),{dimIdx:n.index}},getValue:function(t){return r.retrieveValueFromItem(e,t.dimIdx)}},new eX(n,i)),a=[],s=0,l=r.count();s<l;s++)e=r.getRawDataItem(s),o.evaluate()&&a.push(e);return{data:a}}},iX={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i="",r=wa(n);r.length||af(i);var o=[];K(r,(function(t){var n=t.dimension,r=t.order,a=t.parser,s=t.incomparable;null==n&&af(i),"asc"!==r&&"desc"!==r&&af(i),s&&"min"!==s&&"max"!==s&&af(""),"asc"!==r&&"desc"!==r&&af("");var l=e.getDimensionInfo(n);l||af(i);var u=a?Df(a):null;a&&!u&&af(i),o.push({dimIdx:l.index,parser:u,comparator:new Ef(r,s)})}));var a=e.sourceFormat;a!==Wd&&a!==Gd&&af(i);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var i=0;i<o.length;i++){var r=o[i],a=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx);r.parser&&(a=r.parser(a),s=r.parser(s));var l=r.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}},rX=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return m(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new Qf(this),tg(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),tg(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:qd},e}(Ad),oX=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return m(e,t),e.type="dataset",e}(Og),aX=yl.CMD;function sX(t,e){return Math.abs(t-e)<1e-5}function lX(t){var e,n,i,r,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,i,r){sX(t,i)&&sX(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),d=Math.cos(n),p=Math.sin(n),f=c*o+i,g=h*a+r,m=d*o+i,y=p*a+r,v=o*l*u,x=a*l*u;e.push(f-v*h,g+x*c,m+v*p,y-x*d,m,y)}for(var m=0;m<s;){var y=a[m++],v=1===m;switch(v&&(h=u=a[m],d=c=a[m+1],y!==aX.L&&y!==aX.C&&y!==aX.Q||(e=[h,d])),y){case aX.M:u=h=a[m++],c=d=a[m++],p(h,d);break;case aX.L:f(u,c,n=a[m++],i=a[m++]),u=n,c=i;break;case aX.C:e.push(a[m++],a[m++],a[m++],a[m++],u=a[m++],c=a[m++]);break;case aX.Q:n=a[m++],i=a[m++],r=a[m++],o=a[m++],e.push(u+2/3*(n-u),c+2/3*(i-c),r+2/3*(n-r),o+2/3*(i-o),r,o),u=r,c=o;break;case aX.A:var x=a[m++],_=a[m++],b=a[m++],w=a[m++],S=a[m++],M=a[m++]+S;m+=1;var C=!a[m++];n=Math.cos(S)*b+x,i=Math.sin(S)*w+_,v?p(h=n,d=i):f(u,c,n,i),u=Math.cos(M)*b+x,c=Math.sin(M)*w+_;for(var T=(C?-1:1)*Math.PI/2,I=S;C?I>M:I<M;I+=T)g(I,C?Math.max(I+T,M):Math.min(I+T,M),x,_,b,w);break;case aX.R:h=u=a[m++],d=c=a[m++],n=h+a[m++],i=d+a[m++],p(n,d),f(n,d,n,i),f(n,i,h,i),f(h,i,h,d),f(h,d,n,d);break;case aX.Z:e&&f(u,c,h,d),u=h,c=d}}return e&&e.length>2&&l.push(e),l}function uX(t,e,n,i,r,o,a,s,l,u){if(sX(t,n)&&sX(e,i)&&sX(r,a)&&sX(o,s))l.push(a,s);else{var c=2/u,h=c*c,d=a-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,m=i-e,y=r-a,v=o-s,x=g*g+m*m,_=y*y+v*v;if(x<h&&_<h)l.push(a,s);else{var b=d*g+p*m,w=-d*y-p*v;if(x-b*b<h&&b>=0&&_-w*w<h&&w>=0)l.push(a,s);else{var S=[],M=[];ii(t,n,r,a,.5,S),ii(e,i,o,s,.5,M),uX(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,u),uX(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,u)}}}}function cX(t,e,n){var i=t[e],r=t[1-e],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=n-a*s;if(c>0)for(u=0;u<c;u++)l[u%a]+=1;return l}function hX(t,e,n){for(var i=t.r0,r=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*r,u=r-i,c=l>Math.abs(u),h=cX([l,u],c?0:1,e),d=(c?s:u)/h.length,p=0;p<h.length;p++)for(var f=(c?u:s)/h[p],g=0;g<h[p];g++){var m={};c?(m.startAngle=o+d*p,m.endAngle=o+d*(p+1),m.r0=i+f*g,m.r=i+f*(g+1)):(m.startAngle=o+f*g,m.endAngle=o+f*(g+1),m.r0=i+d*p,m.r=i+d*(p+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,n.push(m)}}function dX(t,e,n,i){return t*i-n*e}function pX(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,d=dX(c,h,l,u);if(Math.abs(d)<1e-6)return null;var p=dX(t-r,e-o,c,h)/d;return p<0||p>1?null:new Ze(p*l+t,p*u+e)}function fX(t,e,n){var i=new Ze;Ze.sub(i,n,e),i.normalize();var r=new Ze;return Ze.sub(r,t,e),r.dot(i)}function gX(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function mX(t){var e=t.points,n=[],i=[];$s(e,n,i);var r=new mn(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new Ze,c=new Ze;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;o<i;o++){var a=t[o],s=t[(o+1)%i],l=pX(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&r.push({projPt:fX(l,e,n),pt:l,idx:o})}if(r.length<2)return[{points:t},{points:t}];r.sort((function(t,e){return t.projPt-e.projPt}));var u=r[0],c=r[r.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var d=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],f=[d],g=[p];for(o=u.idx+1;o<=c.idx;o++)gX(f,t[o].slice());for(gX(f,p),gX(f,d),o=c.idx+1;o<=u.idx+i;o++)gX(g,t[o%i].slice());return gX(g,d),gX(g,p),[{points:f},{points:g}]}(e,u,c)}function yX(t,e,n,i){if(1===n)i.push(e);else{var r=Math.floor(n/2),o=t(e);yX(t,o[0],r,i),yX(t,o[1],n-r,i)}return i}function vX(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function xX(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=[],o=[],a=n<i?t:e,s=Math.min(n,i),l=Math.abs(i-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],d=l,p=2;p<s;){var f=a[p-2],g=a[p-1],m=a[p++],y=a[p++],v=a[p++],x=a[p++],_=a[p++],b=a[p++];if(d<=0)h.push(m,y,v,x,_,b);else{for(var w=Math.min(d,c-1)+1,S=1;S<=w;S++){var M=S/w;ii(f,m,v,_,M,r),ii(g,y,x,b,M,o),f=r[3],g=o[3],h.push(r[1],o[1],r[2],o[2],f,g),m=r[5],y=o[5],v=r[6],x=o[6]}d-=w-1}}return a===t?[h,e]:[t,h]}function _X(t,e){for(var n=t.length,i=t[n-2],r=t[n-1],o=[],a=0;a<e.length;)o[a++]=i,o[a++]=r;return o}function bX(t){for(var e=0,n=0,i=0,r=t.length,o=0,a=r-2;o<r;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],c=t[o+1],h=s*c-u*l;e+=h,n+=(s+u)*h,i+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function wX(t,e,n,i){for(var r=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<r;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var p=0===d?c:(c+d-2)%l+2,f=t[p]-n[0],g=t[p+1]-n[1],m=e[d]-i[0]-f,y=e[d+1]-i[1]-g;h+=m*m+y*y}h<o&&(o=h,a=u)}return a}function SX(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}function MX(t){return t.__isCombineMorphing}var CX="__mOriginal_";function TX(t,e,n){var i=CX+e,r=t[i]||t[e];t[i]||(t[i]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):r.apply(this,e),a&&a.apply(this,e),t}}function IX(t,e){var n=CX+e;t[n]&&(t[e]=t[n],t[n]=null)}function DX(t,e){for(var n=0;n<t.length;n++)for(var i=t[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=e[0]*o+e[2]*a+e[4],i[r++]=e[1]*o+e[3]*a+e[5]}}function AX(t,e){var n=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),r=function(t,e){for(var n,i,r,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(i=c=(n=xX(l,u))[0],r=h=n[1]):(h=_X(r||l,l),c=l):(c=_X(i||u,u),h=u),o.push(c),a.push(h)}return[o,a]}(lX(n),lX(i)),o=r[0],a=r[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&DX(o,s),l&&DX(a,l),TX(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var u=function(t,e,n,i){for(var r,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=bX(s),c=bX(l);null==r&&(r=u[2]<0!=c[2]<0);var h=[],d=[],p=0,f=1/0,g=[],m=s.length;r&&(s=SX(s));for(var y=6*wX(s,l,u,c),v=m-2,x=0;x<v;x+=2){var _=(y+x)%v+2;h[x+2]=s[_]-u[0],h[x+3]=s[_+1]-u[1]}h[0]=s[y]-u[0],h[1]=s[y+1]-u[1];for(var b=i/10,w=-i/2;w<=i/2;w+=b){var S=Math.sin(w),M=Math.cos(w),C=0;for(x=0;x<s.length;x+=2){var T=h[x],I=h[x+1],D=l[x]-c[0],A=l[x+1]-c[1],k=D*M-A*S,E=D*S+A*M;g[x]=k,g[x+1]=E;var L=k-T,O=E-I;C+=L*L+O*O}if(C<f){f=C,p=w;for(var P=0;P<g.length;P++)d[P]=g[P]}}o.push({from:h,to:d,fromCp:u,toCp:c,rotation:-p})}return o}(o,a,0,Math.PI),c=[];TX(e,"buildPath",{replace:function(t){for(var n=e.__morphT,i=1-n,r=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,h=a.rotation*n,d=a.fromCp,p=a.toCp,f=Math.sin(h),g=Math.cos(h);le(r,d,p,n);for(var m=0;m<s.length;m+=2){var y=s[m],v=s[m+1],x=y*i+(S=l[m])*n,_=v*i+(M=l[m+1])*n;c[m]=x*g-_*f+r[0],c[m+1]=x*f+_*g+r[1]}var b=c[0],w=c[1];for(t.moveTo(b,w),m=2;m<s.length;){var S=c[m++],M=c[m++],C=c[m++],T=c[m++],I=c[m++],D=c[m++];b===S&&w===M&&C===I&&T===D?t.lineTo(I,D):t.bezierCurveTo(S,M,C,T,I,D),b=I,w=D}}}})}function kX(t,e,n){if(!t||!e)return e;var i=n.done,r=n.during;return AX(t,e),e.__morphT=0,e.animateTo({__morphT:1},$({during:function(t){e.dirtyShape(),r&&r(t)},done:function(){IX(e,"buildPath"),IX(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),i&&i()}},n)),e}function EX(t,e,n,i,r,o){t=r===n?0:Math.round(32767*(t-n)/(r-n)),e=o===i?0:Math.round(32767*(e-i)/(o-i));for(var a,s=0,l=32768;l>0;l/=2){var u=0,c=0;(t&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function LX(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,o=J(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]}));return J(o,(function(o,a){return{cp:o,z:EX(o[0],o[1],e,n,i,r),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function OX(t){return function(t,e){var n,i=[],r=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var i=t.width,r=t.height,o=i>r,a=cX([i,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,d=0;d<a.length;d++)for(var p=t[l]/a[d],f=0;f<a[d];f++){var g={};g[u]=d*h,g[c]=f*p,g[s]=h,g[l]=p,g.x+=t.x,g.y+=t.y,n.push(g)}}(r,e,i),n=Ql;break;case"sector":hX(r,e,i),n=bm;break;case"circle":hX({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,i),n=bm;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=J(function(t,e){var n=lX(t),i=[];e=e||1;for(var r=0;r<n.length;r++){var o=n[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++];uX(s,l,c,h,d,p,f,g,a,e),s=f,l=g}i.push(a)}return i}(t.getUpdatedPathProxy(),a),(function(t){return function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}(t)})),l=s.length;if(0===l)yX(mX,{points:s[0]},e,i);else if(l===e)for(var u=0;u<l;u++)i.push({points:s[u]});else{var c=0,h=J(s,(function(t){var e=[],n=[];$s(t,e,n);var i=(n[1]-e[1])*(n[0]-e[0]);return c+=i,{poly:t,area:i}}));h.sort((function(t,e){return e.area-t.area}));var d=e;for(u=0;u<l;u++){var p=h[u];if(d<=0)break;var f=u===l-1?d:Math.ceil(p.area/c*e);f<0||(yX(mX,{points:p.poly},f,i),d-=f)}}n=Dm}if(!n)return function(t,e){for(var n=[],i=0;i<e;i++)n.push(tm(t));return n}(t,e);var g=[];for(u=0;u<i.length;u++){var m=new n;m.setShape(i[u]),vX(t,m),g.push(m)}return g}(t.path,t.count)}function PX(t){return ot(t[0])}function NX(t,e){for(var n=[],i=t.length,r=0;r<i;r++)n.push({one:t[r],many:[]});for(r=0;r<e.length;r++){var o=e[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(e[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var RX={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var r=tm(t.path);r.setStyle("opacity",n),e.push(r)}return e},split:null};function zX(t,e,n,i,r,o){if(t.length&&e.length){var a=vc("update",i,r);if(a&&a.duration>0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);PX(t)&&(s=t,l=e),PX(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,d=s?NX(l,s):NX(h?e:t,[h?t:e]),p=0,f=0;f<d.length;f++)p+=d[f].many.length;var g=0;for(f=0;f<d.length;f++)m(d[f],h,g,p),g+=d[f].many.length}}function m(t,e,i,r,a){var s=t.many,l=t.one;if(1!==s.length||a)for(var h=$({dividePath:RX[n],individualDelay:u&&function(t,e,n,o){return u(t+i,r)}},c),d=e?function(t,e,n){var i=[];!function t(e){for(var n=0;n<e.length;n++){var r=e[n];MX(r)?t(r.childrenRef()):r instanceof Bl&&i.push(r)}}(t);var r=i.length;if(!r)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||OX)({path:e,count:r});if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};i=LX(i),o=LX(o);for(var a=n.done,s=n.during,l=n.individualDelay,u=new eo,c=0;c<r;c++){var h=i[c],d=o[c];d.parent=e,d.copyTransform(u),l||AX(h,d)}function p(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function f(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,IX(e,"addSelfToZr"),IX(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},TX(e,"addSelfToZr",{after:function(t){p(t)}}),TX(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var g=o.length;if(l){var m=g,y=function(){0==--m&&(f(),a&&a())};for(c=0;c<g;c++){var v=l?$({delay:(n.delay||0)+l(c,g,i[c],o[c]),done:y},n):n;kX(i[c],o[c],v)}}else e.__morphT=0,e.animateTo({__morphT:1},$({during:function(t){for(var n=0;n<g;n++){var i=o[n];i.__morphT=e.__morphT,i.dirtyShape()}s&&s(t)},done:function(){f();for(var e=0;e<t.length;e++)IX(t[e],"updateTransform");a&&a()}},n));return e.__zr&&p(e.__zr),{fromIndividuals:i,toIndividuals:o,count:g}}(s,l,h):function(t,e,n){var i=e.length,r=[],o=n.dividePath||OX;if(MX(t)){!function t(e){for(var n=0;n<e.length;n++){var i=e[n];MX(i)?t(i.childrenRef()):i instanceof Bl&&r.push(i)}}(t.childrenRef());var a=r.length;if(a<i)for(var s=0,l=a;l<i;l++)r.push(tm(r[s++%a]));r.length=i}else{r=o({path:t,count:i});var u=t.getComputedTransform();for(l=0;l<r.length;l++)r[l].setLocalTransform(u);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}r=LX(r),e=LX(e);var c=n.individualDelay;for(l=0;l<i;l++){var h=c?$({delay:(n.delay||0)+c(l,i,r[l],e[l])},n):n;kX(r[l],e[l],h)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}(l,s,h),p=d.fromIndividuals,f=d.toIndividuals,g=p.length,y=0;y<g;y++)v=u?$({delay:u(y,g)},c):c,o(p[y],f[y],e?s[y]:t.one,e?t.one:s[y],v);else{var v,x=e?s[0]:l,_=e?l:s[0];MX(x)?m({many:[x],one:_},!0,i,r,!0):(kX(x,_,v=u?$({delay:u(i,r)},c):c),o(x,_,x,_,v))}}}function BX(t){if(!t)return[];if(ot(t)){for(var e=[],n=0;n<t.length;n++)e.push(BX(t[n]));return e}var i=[];return t.traverse((function(t){t instanceof Bl&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)})),i}var VX=Pa();function HX(t,e,n,i){var r=function(t,e){for(var n=t.dimensions,i=0;i<n.length;i++){var r=t.getDimensionInfo(n[i]);if(r&&0===r.otherDims[e])return n[i]}}(t,i?"itemChildGroupId":"itemGroupId");if(r){var o=function(t,e,n){var i=t.getDimensionInfo(n),r=i&&i.ordinalMeta;if(i){var o=t.get(i.name,e);return r&&r.categories[o]||o+""}}(t,e,r);return o}var a=t.getRawDataItem(e),s=i?"childGroupId":"groupId";return a&&a[s]?a[s]+"":i?void 0:n||t.getId(e)}function FX(t){var e=[];return K(t,(function(t){var n=t.data,i=t.dataGroupId;if(!(n.count()>1e4))for(var r=n.getIndices(),o=0;o<r.length;o++)e.push({data:n,groupId:HX(n,o,i,!1),childGroupId:HX(n,o,i,!0),divide:t.divide,dataIndex:o})})),e}function WX(t,e,n){t.traverse((function(t){t instanceof Bl&&bc(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function GX(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function jX(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function $X(t,e,n){var i=FX(t),r=FX(e);function o(t,e,n,i,r){(n||t)&&e.animateFrom({style:n&&n!==t?j(j({},n.style),t.style):t.style},r)}var a=!1,s=0,l=Et(),u=Et();i.forEach((function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&u.set(t.childGroupId,!0)}));for(var c=0;c<r.length;c++){var h=r[c].groupId;if(u.get(h)){s=1;break}var d=r[c].childGroupId;if(d&&l.get(d)){s=2;break}}function p(t,e){return function(n){var i=n.data,r=n.dataIndex;return e?i.getId(r):t?1===s?n.childGroupId:n.groupId:2===s?n.childGroupId:n.groupId}}var f=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var r=t[i],o=e[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(i,r),g={};if(!f)for(c=0;c<r.length;c++){var m=r[c],y=m.data.getItemGraphicEl(m.dataIndex);y&&(g[y.id]=!0)}function v(t,e){var n=i[e],s=r[t],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&g[u.id]||c&&(jX(c),u?(jX(u),GX(u),a=!0,zX(BX(u),BX(c),s.divide,l,t,o)):WX(c,l,t)):c&&function(t,e,n){var i=vc("update",n,e);i&&t.traverse((function(t){if(t instanceof Rs){var e=function(t){return yc(t).oldStyle}(t);e&&t.animateFrom({style:e},i)}}))}(c,s.dataIndex,l)}new Nb(i,r,p(!0,f),p(!1,f),null,"multiple").update(v).updateManyToOne((function(t,e){var n=r[t],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=tt(J(e,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==u&&!g[t.id]}));u&&(jX(u),c.length?(K(c,(function(t){jX(t),GX(t)})),a=!0,zX(BX(c),BX(u),n.divide,l,t,o)):WX(u,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=i[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=tt(J(t,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==s})),u=r[t[0]].data.hostModel;l.length&&(K(l,(function(t){return jX(t)})),s?(jX(s),GX(s),a=!0,zX(BX(s),BX(l),n.divide,u,t[0],o)):K(l,(function(e){return WX(e,u,t[0])})))}})).updateManyToMany((function(t,e){new Nb(e,t,(function(t){return i[t].data.getId(i[t].dataIndex)}),(function(t){return r[t].data.getId(r[t].dataIndex)})).update((function(n,i){v(t[n],e[i])})).execute()})).execute(),a&&K(e,(function(t){var e=t.data.hostModel,i=e&&n.getViewOfSeriesModel(e),r=vc("update",e,0);i&&e.isAnimationEnabled()&&r&&r.duration>0&&i.group.traverse((function(t){t instanceof Bl&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)}))}))}function UX(t){return t.getModel("universalTransition").get("seriesKey")||t.id}function qX(t){return ot(t)?t.sort().join(","):t}function YX(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function XX(t,e){for(var n=0;n<t.length;n++)if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}var ZX=function(){function t(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return t.prototype.setBreaks=function(t){this.breaks=t.breaks},t.prototype.update=function(t){!function(t,e){var n=0,i={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},r={S:{tpAbs:{has:!1,span:NaN,inExtFrac:NaN,val:NaN},tpPrct:{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},E:{tpAbs:{has:!1,span:NaN,inExtFrac:NaN,val:NaN},tpPrct:{has:!1,span:NaN,inExtFrac:NaN,val:NaN}}};K(t.breaks,(function(t){var o=t.gapParsed;"tpPrct"===o.type&&(n+=o.val);var a=nZ(t,e);if(a){var s=a.vmin!==t.vmin,l=a.vmax!==t.vmax,u=a.vmax-a.vmin;if(s&&l);else if(s||l){var c=s?"S":"E";r[c][o.type].has=!0,r[c][o.type].span=u,r[c][o.type].inExtFrac=u/(t.vmax-t.vmin),r[c][o.type].val=o.val}else i[o.type].span+=u,i[o.type].val+=o.val}}));var o=n*(e[1]-e[0]+0+(i.tpAbs.val-i.tpAbs.span)+(r.S.tpAbs.has?(r.S.tpAbs.val-r.S.tpAbs.span)*r.S.tpAbs.inExtFrac:0)+(r.E.tpAbs.has?(r.E.tpAbs.val-r.E.tpAbs.span)*r.E.tpAbs.inExtFrac:0)-i.tpPrct.span-(r.S.tpPrct.has?r.S.tpPrct.span*r.S.tpPrct.inExtFrac:0)-(r.E.tpPrct.has?r.E.tpPrct.span*r.E.tpPrct.inExtFrac:0))/(1-i.tpPrct.val-(r.S.tpPrct.has?r.S.tpPrct.val*r.S.tpPrct.inExtFrac:0)-(r.E.tpPrct.has?r.E.tpPrct.val*r.E.tpPrct.inExtFrac:0));K(t.breaks,(function(t){var e=t.gapParsed;"tpPrct"===e.type&&(t.gapReal=0!==n?Math.max(o,0)*e.val/n:0),"tpAbs"===e.type&&(t.gapReal=e.val),null==t.gapReal&&(t.gapReal=0)}))}(this,t);var e=this._elapsedExtent;e[0]=this.elapse(t[0]),e[1]=this.elapse(t[1])},t.prototype.hasBreaks=function(){return!!this.breaks.length},t.prototype.calcNiceTickMultiple=function(t,e){for(var n=0;n<this.breaks.length;n++){var i=this.breaks[n];if(i.vmin<t&&t<i.vmax)return e(t,i.vmax)}return 0},t.prototype.getExtentSpan=function(){return this._elapsedExtent[1]-this._elapsedExtent[0]},t.prototype.normalize=function(t){var e=this._elapsedExtent[1]-this._elapsedExtent[0];return 0===e?.5:(this.elapse(t)-this._elapsedExtent[0])/e},t.prototype.scale=function(t){return this.unelapse(t*(this._elapsedExtent[1]-this._elapsedExtent[0])+this._elapsedExtent[0])},t.prototype.elapse=function(t){for(var e=JX,n=QX,i=!0,r=0;r<this.breaks.length;r++){var o=this.breaks[r];if(t<=o.vmax){t>o.vmin?e+=o.vmin-n+(t-o.vmin)/(o.vmax-o.vmin)*o.gapReal:e+=t-n,n=o.vmax,i=!1;break}e+=o.vmin-n+o.gapReal,n=o.vmax}return i&&(e+=t-n),e},t.prototype.unelapse=function(t){for(var e=JX,n=QX,i=!0,r=0,o=0;o<this.breaks.length;o++){var a=this.breaks[o],s=e+a.vmin-n,l=s+a.gapReal;if(t<=l){r=t>s?a.vmin+(t-s)/(l-s)*(a.vmax-a.vmin):n+t-e,n=a.vmax,i=!1;break}e=l,n=a.vmax}return i&&(r=n+t-e),r},t}();function KX(){return new ZX}var JX=0,QX=0;function tZ(t,e,n,i,r,o){"no"!==t&&K(n,(function(n){var a=nZ(n,o);if(a)for(var s=e.length-1;s>=0;s--){var l=e[s],u=i(l),c=3*r/4;u>a.vmin-c&&u<a.vmax+c&&("preserve_extent_bound"!==t||u!==o[0]&&u!==o[1])&&e.splice(s,1)}}))}function eZ(t,e,n,i){K(e,(function(e){var r=nZ(e,n);r&&(t.push({value:r.vmin,break:{type:"vmin",parsedBreak:r},time:i?i(r):void 0}),t.push({value:r.vmax,break:{type:"vmax",parsedBreak:r},time:i?i(r):void 0}))})),e.length&&t.sort((function(t,e){return t.value-e.value}))}function nZ(t,e){var n=Math.max(t.vmin,e[0]),i=Math.min(t.vmax,e[1]);return n<i||n===i&&n>e[0]&&n<e[1]?{vmin:n,vmax:i,breakOption:t.breakOption,gapParsed:t.gapParsed,gapReal:t.gapReal}:null}function iZ(t,e,n){var i=[];if(!t)return{breaks:i};K(t,(function(t){if(t&&null!=t.start&&null!=t.end&&!t.isExpanded){var r={breakOption:F(t),vmin:e(t.start),vmax:e(t.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(null!=t.gap){var o=!1;if(st(t.gap)){var a=Mt(t.gap);if(a.match(/%$/)){var s=parseFloat(a)/100;(function(t){return t>=0&&t<.99999})(s)||(s=0),r.gapParsed.type="tpPrct",r.gapParsed.val=s,o=!0}}if(!o){var l=e(t.gap);(!isFinite(l)||l<0)&&(l=0),r.gapParsed.type="tpAbs",r.gapParsed.val=l}}if(r.vmin===r.vmax&&(r.gapParsed.type="tpAbs",r.gapParsed.val=0),n&&n.noNegative&&K(["vmin","vmax"],(function(t){r[t]<0&&(r[t]=0)})),r.vmin>r.vmax){var u=r.vmax;r.vmax=r.vmin,r.vmin=u}i.push(r)}})),i.sort((function(t,e){return t.vmin-e.vmin}));var r=-1/0;return K(i,(function(t,e){r>t.vmin&&(i[e]=null),r=t.vmax})),{breaks:i.filter((function(t){return!!t}))}}function rZ(t,e){return oZ(e)===oZ(t)}function oZ(t){return t.start+"_\0_"+t.end}function aZ(t,e,n){var i=[];K(t,(function(t,n){var r=e(t);r&&"vmin"===r.type&&i.push([n])})),K(t,(function(n,r){var o=e(n);if(o&&"vmax"===o.type){var a=et(i,(function(n){return rZ(e(t[n[0]]).parsedBreak.breakOption,o.parsedBreak.breakOption)}));a&&a.push(r)}}));var r=[];return K(i,(function(e){2===e.length&&r.push(n?e:[t[e[0]],t[e[1]]])})),r}function sZ(t,e,n,i){var r,o;if(t.break){var a=t.break.parsedBreak,s=et(n,(function(e){return rZ(e.breakOption,t.break.parsedBreak.breakOption)})),l=i(Math.pow(e,a.vmin),s.vmin),u=i(Math.pow(e,a.vmax),s.vmax),c={type:a.gapParsed.type,val:"tpAbs"===a.gapParsed.type?Zo(Math.pow(e,a.vmin+a.gapParsed.val))-l:a.gapParsed.val};r={type:t.break.type,parsedBreak:{breakOption:a.breakOption,vmin:l,vmax:u,gapParsed:c,gapReal:a.gapReal}},o=s[t.break.type]}return{brkRoundingCriterion:o,vBreak:r}}function lZ(t,e,n){var i={noNegative:!0},r=iZ(t,n,i),o=iZ(t,n,i),a=Math.log(e);return o.breaks=J(o.breaks,(function(t){var e=Math.log(t.vmin)/a;return{vmin:e,vmax:Math.log(t.vmax)/a,gapParsed:{type:t.gapParsed.type,val:"tpAbs"===t.gapParsed.type?Math.log(t.vmin+t.gapParsed.val)/a-e:t.gapParsed.val},gapReal:t.gapReal,breakOption:t.breakOption}})),{parsedOriginal:r,parsedLogged:o}}var uZ={vmin:"start",vmax:"end"};function cZ(t,e){return e&&((t=t||{}).break={type:uZ[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),t}var hZ=Pa();function dZ(t,e,n,i,r){var o=n.axis;if(!o.scale.isBlank()&&mh()){var a=mh().retrieveAxisBreakPairs(o.scale.getTicks({breakTicks:"only_break"}),(function(t){return t.break}),!1);if(a.length){var s=n.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),c=s.get("zigzagMaxSpan");u=Math.max(2,u||0),c=Math.max(u,c||0);var h=s.get("expandOnClick"),d=s.get("zigzagZ"),p=s.getModel("itemStyle").getItemStyle(),f=p.stroke,g=p.lineWidth,m=p.lineDash,y=p.fill,v=new Ao({ignoreModelZ:!0}),x=o.isHorizontal(),_=hZ(e).visualList||(hZ(e).visualList=[]);K(_,(function(t){return t.shouldRemove=!0}));for(var b=function(t){var e=a[t][0].break.parsedBreak,s=[];s[0]=o.toGlobalCoord(o.dataToCoord(e.vmin,!0)),s[1]=o.toGlobalCoord(o.dataToCoord(e.vmax,!0)),s[1]<s[0]&&s.reverse();var b,w,S,M=(w=e,(S=et(b=_,(function(t){return mh().identifyAxisBreak(t.parsedBreak.breakOption,w.breakOption)})))||b.push(S={zigzagRandomList:[],parsedBreak:w,shouldRemove:!1}),S);M.shouldRemove=!1;var C=new Ao;!function(t,e,n,r,o,a){var s={stroke:f,lineWidth:g,lineDash:m,fill:"none"},h=o?0:1,v=1-h,x=i[cy[v]]+i[hy[v]];function _(t){var e=[],n=[];e[h]=n[h]=t,e[v]=i[cy[v]],n[v]=x;var r={x1:e[0],y1:e[1],x2:n[0],y2:n[1]};return ql(r,r,{lineWidth:1}),e[0]=r.x1,e[1]=r.y1,e[h]}n=_(n),r=_(r);for(var b=[],w=[],S=!0,M=i[cy[v]],C=0;;C++){var T=M===i[cy[v]],I=M>=x;I&&(M=x);var D=[],A=[];D[h]=n,A[h]=r,T||I||(D[h]+=S?-l:l,A[h]-=S?l:-l),D[v]=M,A[v]=M,b.push(D),w.push(A);var k=void 0;if(C<t.length?k=t[C]:(k=Math.random(),t.push(k)),M+=k*(c-u)+u,S=!S,I)break}var E=mh().serializeAxisBreakIdentifier(a.breakOption);if(e.add(new Em({anid:"break_a_"+E,shape:{points:b},style:s,z:d})),0!==a.gapReal){e.add(new Em({anid:"break_b_"+E,shape:{points:w},style:s,z:d}));var L=w.slice();L.reverse();var O=b.concat(L);e.add(new Dm({anid:"break_c_"+E,shape:{points:O},style:{fill:y,opacity:p.opacity},z:d}))}}(M.zigzagRandomList,C,s[0],s[1],x,e),h&&C.on("click",(function(){var t={type:HD,breaks:[{start:e.breakOption.start,end:e.breakOption.end}]};t[o.dim+"AxisIndex"]=n.componentIndex,r.dispatchAction(t)})),C.silent=!h,v.add(C)},w=0;w<a.length;w++)b(w);t.add(v),function(t){for(var e=t.length-1;e>=0;e--)t[e].shouldRemove&&t.splice(e,1)}(_)}}}function pZ(t,e,n,i){var r=t.axis,o=n.transform;St(i.style);var a=r.getExtent();r.inverse&&(a=a.slice()).reverse();var s=J(mh().retrieveAxisBreakPairs(r.scale.getTicks({breakTicks:"only_break"}),(function(t){return t.break}),!1),(function(t){var e=t[0].break.parsedBreak,n=[r.dataToCoord(e.vmin,!0),r.dataToCoord(e.vmax,!0)];return n[0]>n[1]&&n.reverse(),{coordPair:n,brkId:mh().serializeAxisBreakIdentifier(e.breakOption)}}));s.sort((function(t,e){return t.coordPair[0]-e.coordPair[0]}));for(var l=a[0],u=null,c=0;c<s.length;c++){var h=s[c],d=Math.max(h.coordPair[0],a[0]),p=Math.min(h.coordPair[1],a[1]);l<=d&&f(l,d,u,h),l=p,u=h}function f(t,n,r,a){function s(t,e){o&&(ue(t,t,o),ue(e,e,o))}function l(t,e){var n={x1:t[0],y1:t[1],x2:e[0],y2:e[1]};ql(n,n,i.style),t[0]=n.x1,t[1]=n.y1,e[0]=n.x2,e[1]=n.y2}var u=[t,0],c=[n,0],h=[t,5],d=[n,5];s(u,h),l(u,h),s(c,d),l(c,d),l(u,c);var p=new Nm(j({shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]}},i));e.add(p),p.anid="breakLine_"+(r?r.brkId:"\0")+"_\0_"+(a?a.brkId:"\0")}l<=a[1]&&f(l,a[1],u,null)}function fZ(t,e,n){if(!et(n,(function(t){return!t}))){var i=new Ze;if(QM(n[0],n[1],i,{direction:-(t?e+Math.PI:e),touchThreshold:0,bidirectional:!1})){var r=[1,0,0,1,0,0];$e(r,r,-e);var o=J(n,(function(t){return t.transform?Ge([1,0,0,1,0,0],r,t.transform):r})),a=.5;if(g(0)||g(1)){var s=J(n,(function(t,e){var n=t.localRect.clone();return n.applyTransform(o[e]),n})),l=new Ze;l.copy(n[0].label).add(n[1].label).scale(.5),l.transform(r);var u=i.clone().transform(r),c=(s[0].x+s[1].x+(u.x>=0?s[0].width:s[1].width)+u.x)/2-l.x,h=Math.min(c,c-u.x),d=Math.max(c,c-u.x);a=(c-(d<0?d:h>0?h:0))/u.x}var p=new Ze,f=new Ze;Ze.scale(p,i,-a),Ze.scale(f,i,1-a),YM(n[0],p),YM(n[1],f)}}function g(t){var e=n[0].localRect,i=new Ze(e[hy[t]]*o[0][0],e[hy[t]]*o[0][1]);return Math.abs(i.y)<1e-5}}function gZ(t,e){var n={breaks:[]};return K(e.breaks,(function(i){if(i){var r=et(t.get("breaks",!0),(function(t){return mh().identifyAxisBreak(t,i)}));if(r){var o=e.type,a={isExpanded:!!r.isExpanded};r.isExpanded=o===HD||o!==FD&&(o===WD?!r.isExpanded:r.isExpanded),n.breaks.push({start:r.start,end:r.end,isExpanded:!!r.isExpanded,old:a})}}})),n}function mZ(t,e){K(t,(function(t){if(!t.model.get(["axisLabel","inside"])){var n=function(t){var e,n,i=t.model,r=t.scale;if(i.get(["axisLabel","show"])&&!r.isBlank()){var o=r.getExtent();n=r instanceof Ow?r.count():(e=r.getTicks()).length;var a,s=t.getLabelModel(),l=wS(t),u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var h=l(e?e[c]:{value:o[0]+c},c),d=p(s.getTextRect(h),s.get("rotate")||0);a?a.union(d):a=d}return a}function p(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new mn(t.x,t.y,o,a)}}(t);if(n){var i=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);e[i]-=n[i]+r,"top"===t.position?e.y+=n.height+r:"left"===t.position&&(e.x+=n.width+r)}}}))}Eb([function(t){t.registerPainter("canvas",xC)}]),Eb([function(t){t.registerPainter("svg",LT)}]),Eb([function(t){t.registerChartView(fI),t.registerSeriesModel(PT),t.registerLayout(gI("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,vI("line"))},function(t){t.registerChartView(UI),t.registerSeriesModel(bI),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,rt(Uw,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qw("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,vI("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))},function(t){t.registerChartView(aD),t.registerSeriesModel(pD),Jv("pie",t.registerAction),t.registerLayout(rt(XI,"pie")),t.registerProcessor(KI("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(ut(i)&&!isNaN(i)&&i<0)}))}})},function(t){Eb(ZA),t.registerSeriesModel(fD),t.registerChartView(xD),t.registerLayout(gI("scatter"))},function(t){Eb(_k),t.registerChartView(sk),t.registerSeriesModel(uk),t.registerLayout(nk),t.registerProcessor(KI("radar")),t.registerPreprocessor(ok)},function(t){Eb(lL),t.registerChartView(HE),t.registerSeriesModel(WE),t.registerLayout(jE),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,GE),Jv("map",t.registerAction)},function(t){t.registerChartView(IL),t.registerSeriesModel($L),t.registerLayout(qL),t.registerVisual(YL),function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=Vk(e.coordinateSystem,t,e.get("scaleLimit"));e.setCenter(n.center),e.setZoom(n.zoom)}))}))}(t)},function(t){t.registerSeriesModel(JL),t.registerChartView(gO),t.registerVisual(LO),t.registerLayout($O),function(t){for(var e=0;e<XL.length;e++)t.registerAction({type:XL[e],update:"updateView"},Rt);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,n){var i=HL(t,["treemapZoomToNode","treemapRootToNode"],e);if(i){var r=e.getViewRoot();r&&(t.direction=WL(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}))}))}(t)},function(t){t.registerChartView(KP),t.registerSeriesModel(aN),t.registerProcessor(KO),t.registerVisual(JO),t.registerVisual(tP),t.registerLayout(cP),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,vP),t.registerLayout(_P),t.registerCoordinateSystem("graphView",{dimensions:YE.dimensions,create:bP}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Rt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Rt),t.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=n.getViewOfSeriesModel(e);i&&(null!=t.dx&&null!=t.dy&&i.updateViewOnPan(e,n,t),null!=t.zoom&&null!=t.originX&&null!=t.originY&&i.updateViewOnZoom(e,n,t));var r=Vk(e.coordinateSystem,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))},function(t){t.registerChartView(pN),t.registerSeriesModel(fN),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,mN),t.registerProcessor(KI("chord"))},function(t){t.registerChartView(wN),t.registerSeriesModel(SN)},function(t){t.registerChartView(TN),t.registerSeriesModel(DN),t.registerLayout(AN),t.registerProcessor(KI("funnel"))},function(t){Eb(sz),t.registerChartView(NN),t.registerSeriesModel(zN),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,VN)},function(t){t.registerChartView(dz),t.registerSeriesModel(fz),t.registerLayout(gz),t.registerVisual(Iz),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))})),t.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){var n=Vk(e.coordinateSystem,t,e.get("scaleLimit"));e.setCenter(n.center),e.setZoom(n.zoom)}))}))},function(t){t.registerSeriesModel(kz),t.registerChartView(zz),t.registerLayout(Vz),t.registerTransform(Hz)},function(t){t.registerChartView(sB),t.registerSeriesModel(uB),t.registerPreprocessor(cB),t.registerVisual(Yz),t.registerLayout(pB)},function(t){t.registerChartView(yB),t.registerSeriesModel(vB),t.registerLayout(gI("effectScatter"))},function(t){t.registerChartView(kB),t.registerSeriesModel(NB),t.registerLayout(AB),t.registerVisual(zB)},function(t){t.registerChartView(WB),t.registerSeriesModel(GB)},function(t){t.registerChartView(hV),t.registerSeriesModel(dV),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,rt(Uw,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qw("pictorialBar"))},function(t){t.registerChartView(fV),t.registerSeriesModel(mV),t.registerLayout(yV),t.registerProcessor(KI("themeRiver"))},function(t){t.registerChartView(MV),t.registerSeriesModel(TV),t.registerLayout(rt(DV,"sunburst")),t.registerProcessor(rt(KI,"sunburst")),t.registerVisual(kV),function(t){t.registerAction({type:bV,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var i=HL(t,[bV],e);if(i){var r=e.getViewRoot();r&&(t.direction=WL(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}))})),t.registerAction({type:wV,update:"none"},(function(t,e,n){t=j({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){var n=HL(t,[wV],e);n&&(t.dataIndex=n.node.dataIndex)})),n.dispatchAction(j(t,{type:"highlight"}))})),t.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e,n){t=j({},t),n.dispatchAction(j(t,{type:"downplay"}))}))}(t)},function(t){t.registerChartView(bH),t.registerSeriesModel(PV)}]),Eb((function(t){Eb(ZA),Eb(CF)})),Eb((function(t){Eb(CF),VA.registerAxisPointerClass("PolarAxisPointer",DF),t.registerCoordinateSystem("polar",jF),t.registerComponentModel(AF),t.registerComponentView(sW),ED(t,"angle",EF,oW),ED(t,"radius",LF,aW),t.registerComponentView(KF),t.registerComponentView(eW),t.registerLayout(rt(rW,"bar"))})),Eb(lL),Eb((function(t){Eb(CF),VA.registerAxisPointerClass("SingleAxisPointer",DW),t.registerComponentView(AW),t.registerComponentView(dW),t.registerComponentModel(fW),ED(t,"single",fW,fW.defaultOption),t.registerCoordinateSystem("single",bW)})),Eb(sz),Eb((function(t){t.registerComponentModel(EW),t.registerComponentView(OW),t.registerCoordinateSystem("calendar",zW)})),Eb((function(t){t.registerComponentModel(sG),t.registerComponentView(xG),t.registerCoordinateSystem("matrix",RG)})),Eb((function(t){t.registerComponentModel(FG),t.registerComponentView(jG),t.registerPreprocessor((function(t){var e=t.graphic;ot(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))})),Eb((function(t){t.registerComponentModel(vj),t.registerComponentView(bj),mj("saveAsImage",wj),mj("magicType",Ij),mj("dataView",Pj),mj("dataZoom",a$),mj("restore",Vj),Eb(pj)})),Eb((function(t){Eb(CF),t.registerComponentModel(s$),t.registerComponentView(D$),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Rt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Rt)})),Eb(CF),Eb((function(t){t.registerComponentView(q$),t.registerComponentModel(X$),t.registerPreprocessor(k$),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,W$),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Rt),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Rt),mj("brush",K$)})),Eb((function(t){t.registerComponentModel(J$),t.registerComponentView(Q$)})),Eb((function(t){t.registerComponentModel(iU),t.registerComponentView(dU),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),$({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}(t),t.registerPreprocessor(pU)})),Eb((function(t){t.registerComponentModel(bU),t.registerComponentView(NU),t.registerPreprocessor((function(t){mU(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))})),Eb((function(t){t.registerComponentModel(RU),t.registerComponentView(GU),t.registerPreprocessor((function(t){mU(t.series,"markLine")&&(t.markLine=t.markLine||{})}))})),Eb((function(t){t.registerComponentModel(jU),t.registerComponentView(QU),t.registerPreprocessor((function(t){mU(t.series,"markArea")&&(t.markArea=t.markArea||{})}))})),Eb((function(t){Eb(fq),Eb(wq)})),Eb((function(t){Eb(Oq),Eb(Wq)})),Eb(Oq),Eb(Wq),Eb((function(t){Eb(IY),Eb(PY)})),Eb(IY),Eb(PY),Eb((function(t){t.registerComponentModel(RY),t.registerComponentView(zY)})),Eb((function(t){t.registerPreprocessor(jY),t.registerVisual(t.PRIORITY.VISUAL.ARIA,GY)})),Eb((function(t){t.registerTransform(nX),t.registerTransform(iX)})),Eb((function(t){t.registerComponentModel(rX),t.registerComponentView(oX)})),Eb((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){K(wa(n.seriesTransition),(function(t){K(wa(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][wg]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var i=VX(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)K(wa(r),(function(t){!function(t,e,n,i){var r=[],o=[];K(wa(t.from),(function(t){var n=XX(e.oldSeries,t);n>=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:YX(e.oldData[n]),groupIdDim:t.dimension})})),K(wa(t.to),(function(t){var i=XX(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:YX(r),groupIdDim:t.dimension})}})),r.length>0&&o.length>0&&$X(r,o,i)}(t,i,n,e)}));else{var o=function(t,e){var n=Et(),i=Et(),r=Et();return K(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=UX(e),l=qX(s);i.set(l,{dataGroupId:o,data:a}),ot(s)&&K(s,(function(t){r.set(t,{key:l,dataGroupId:o,data:a})}))})),K(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=UX(t),s=qX(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:YX(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:YX(o),data:o}]});else if(ot(a)){var u=[];K(a,(function(t){var e=i.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:YX(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:YX(o)}]})}else{var c=r.get(a);if(c){var h=n.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:YX(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({dataGroupId:e,data:o,divide:YX(o)})}}}})),n}(i,n);K(o.keys(),(function(t){var n=o.get(t);$X(n.oldSeries,n.newSeries,e)}))}K(n.updatedSeries,(function(t){t[wg]&&(t[wg]=!1)}))}for(var a=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],u=i.oldData=[],c=0;c<a.length;c++){var h=a[c].getData();h.count()<1e4&&(s.push(a[c]),l.push(a[c].get("dataGroupId")),u.push(h))}}))})),Eb(hC),Eb((function(t){!function(t){function e(t,e){var n=[],i=Ra(e,t);function r(e,r){K(i[e],(function(e){K(e.updateAxisBreaks(t).breaks,(function(t){var i;n.push($(((i={})[r]=e.componentIndex,i),t))}))}))}return r("xAxisModels","xAxisIndex"),r("yAxisModels","yAxisIndex"),r("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}t.registerAction(jD,e),t.registerAction($D,e),t.registerAction(UD,e)}(t),gh||(gh={createScaleBreakContext:KX,pruneTicksByBreak:tZ,addBreaksToTicks:eZ,parseAxisBreakOption:iZ,identifyAxisBreak:rZ,serializeAxisBreakIdentifier:oZ,retrieveAxisBreakPairs:aZ,getTicksLogTransformBreak:sZ,logarithmicParseBreaksFromOption:lZ,makeAxisLabelFormatterParamBreak:cZ}),AD||(AD={adjustBreakLabelPair:fZ,buildAxisBreakLine:pZ,rectCoordBuildBreakAxis:dZ,updateModelAxisBreak:gZ})})),Eb((function(){bA=mZ})),Eb((function(t){t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,ek)}))},283:()=>{},336:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Alert:()=>Ie,Button:()=>Ae,Carousel:()=>cn,Collapse:()=>Mn,Dropdown:()=>Xn,Modal:()=>ki,Offcanvas:()=>Yi,Popover:()=>xr,ScrollSpy:()=>kr,Tab:()=>Qr,Toast:()=>go,Tooltip:()=>fr});var i={};n.r(i),n.d(i,{afterMain:()=>S,afterRead:()=>_,afterWrite:()=>T,applyStyles:()=>O,arrow:()=>Q,auto:()=>l,basePlacements:()=>u,beforeMain:()=>b,beforeRead:()=>v,beforeWrite:()=>M,bottom:()=>o,clippingParents:()=>d,computeStyles:()=>it,createPopper:()=>Lt,createPopperBase:()=>Et,createPopperLite:()=>Ot,detectOverflow:()=>vt,end:()=>h,eventListeners:()=>ot,flip:()=>xt,hide:()=>wt,left:()=>s,main:()=>w,modifierPhases:()=>I,offset:()=>St,placements:()=>y,popper:()=>f,popperGenerator:()=>kt,popperOffsets:()=>Mt,preventOverflow:()=>Ct,read:()=>x,reference:()=>g,right:()=>a,start:()=>c,top:()=>r,variationPlacements:()=>m,viewport:()=>p,write:()=>C});var r="top",o="bottom",a="right",s="left",l="auto",u=[r,o,a,s],c="start",h="end",d="clippingParents",p="viewport",f="popper",g="reference",m=u.reduce((function(t,e){return t.concat([e+"-"+c,e+"-"+h])}),[]),y=[].concat(u,[l]).reduce((function(t,e){return t.concat([e,e+"-"+c,e+"-"+h])}),[]),v="beforeRead",x="read",_="afterRead",b="beforeMain",w="main",S="afterMain",M="beforeWrite",C="write",T="afterWrite",I=[v,x,_,b,w,S,M,C,T];function D(t){return t?(t.nodeName||"").toLowerCase():null}function A(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function k(t){return t instanceof A(t).Element||t instanceof Element}function E(t){return t instanceof A(t).HTMLElement||t instanceof HTMLElement}function L(t){return"undefined"!=typeof ShadowRoot&&(t instanceof A(t).ShadowRoot||t instanceof ShadowRoot)}const O={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];E(r)&&D(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});E(i)&&D(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function P(t){return t.split("-")[0]}var N=Math.max,R=Math.min,z=Math.round;function B(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function V(){return!/^((?!chrome|android).)*safari/i.test(B())}function H(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),r=1,o=1;e&&E(t)&&(r=t.offsetWidth>0&&z(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&z(i.height)/t.offsetHeight||1);var a=(k(t)?A(t):window).visualViewport,s=!V()&&n,l=(i.left+(s&&a?a.offsetLeft:0))/r,u=(i.top+(s&&a?a.offsetTop:0))/o,c=i.width/r,h=i.height/o;return{width:c,height:h,top:u,right:l+c,bottom:u+h,left:l,x:l,y:u}}function F(t){var e=H(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function W(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&L(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function G(t){return A(t).getComputedStyle(t)}function j(t){return["table","td","th"].indexOf(D(t))>=0}function $(t){return((k(t)?t.ownerDocument:t.document)||window.document).documentElement}function U(t){return"html"===D(t)?t:t.assignedSlot||t.parentNode||(L(t)?t.host:null)||$(t)}function q(t){return E(t)&&"fixed"!==G(t).position?t.offsetParent:null}function Y(t){for(var e=A(t),n=q(t);n&&j(n)&&"static"===G(n).position;)n=q(n);return n&&("html"===D(n)||"body"===D(n)&&"static"===G(n).position)?e:n||function(t){var e=/firefox/i.test(B());if(/Trident/i.test(B())&&E(t)&&"fixed"===G(t).position)return null;var n=U(t);for(L(n)&&(n=n.host);E(n)&&["html","body"].indexOf(D(n))<0;){var i=G(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function X(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Z(t,e,n){return N(t,R(e,n))}function K(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function J(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}const Q={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,l=t.options,c=n.elements.arrow,h=n.modifiersData.popperOffsets,d=P(n.placement),p=X(d),f=[s,a].indexOf(d)>=0?"height":"width";if(c&&h){var g=function(t,e){return K("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:J(t,u))}(l.padding,n),m=F(c),y="y"===p?r:s,v="y"===p?o:a,x=n.rects.reference[f]+n.rects.reference[p]-h[p]-n.rects.popper[f],_=h[p]-n.rects.reference[p],b=Y(c),w=b?"y"===p?b.clientHeight||0:b.clientWidth||0:0,S=x/2-_/2,M=g[y],C=w-m[f]-g[v],T=w/2-m[f]/2+S,I=Z(M,T,C),D=p;n.modifiersData[i]=((e={})[D]=I,e.centerOffset=I-T,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&W(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tt(t){return t.split("-")[1]}var et={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nt(t){var e,n=t.popper,i=t.popperRect,l=t.placement,u=t.variation,c=t.offsets,d=t.position,p=t.gpuAcceleration,f=t.adaptive,g=t.roundOffsets,m=t.isFixed,y=c.x,v=void 0===y?0:y,x=c.y,_=void 0===x?0:x,b="function"==typeof g?g({x:v,y:_}):{x:v,y:_};v=b.x,_=b.y;var w=c.hasOwnProperty("x"),S=c.hasOwnProperty("y"),M=s,C=r,T=window;if(f){var I=Y(n),D="clientHeight",k="clientWidth";I===A(n)&&"static"!==G(I=$(n)).position&&"absolute"===d&&(D="scrollHeight",k="scrollWidth"),(l===r||(l===s||l===a)&&u===h)&&(C=o,_-=(m&&I===T&&T.visualViewport?T.visualViewport.height:I[D])-i.height,_*=p?1:-1),l!==s&&(l!==r&&l!==o||u!==h)||(M=a,v-=(m&&I===T&&T.visualViewport?T.visualViewport.width:I[k])-i.width,v*=p?1:-1)}var E,L=Object.assign({position:d},f&&et),O=!0===g?function(t,e){var n=t.x,i=t.y,r=e.devicePixelRatio||1;return{x:z(n*r)/r||0,y:z(i*r)/r||0}}({x:v,y:_},A(n)):{x:v,y:_};return v=O.x,_=O.y,p?Object.assign({},L,((E={})[C]=S?"0":"",E[M]=w?"0":"",E.transform=(T.devicePixelRatio||1)<=1?"translate("+v+"px, "+_+"px)":"translate3d("+v+"px, "+_+"px, 0)",E)):Object.assign({},L,((e={})[C]=S?_+"px":"",e[M]=w?v+"px":"",e.transform="",e))}const it={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,u={placement:P(e.placement),variation:tt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,nt(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,nt(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var rt={passive:!0};const ot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,l=A(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach((function(t){t.addEventListener("scroll",n.update,rt)})),s&&l.addEventListener("resize",n.update,rt),function(){o&&u.forEach((function(t){t.removeEventListener("scroll",n.update,rt)})),s&&l.removeEventListener("resize",n.update,rt)}},data:{}};var at={left:"right",right:"left",bottom:"top",top:"bottom"};function st(t){return t.replace(/left|right|bottom|top/g,(function(t){return at[t]}))}var lt={start:"end",end:"start"};function ut(t){return t.replace(/start|end/g,(function(t){return lt[t]}))}function ct(t){var e=A(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ht(t){return H($(t)).left+ct(t).scrollLeft}function dt(t){var e=G(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function pt(t){return["html","body","#document"].indexOf(D(t))>=0?t.ownerDocument.body:E(t)&&dt(t)?t:pt(U(t))}function ft(t,e){var n;void 0===e&&(e=[]);var i=pt(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),o=A(i),a=r?[o].concat(o.visualViewport||[],dt(i)?i:[]):i,s=e.concat(a);return r?s:s.concat(ft(U(a)))}function gt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function mt(t,e,n){return e===p?gt(function(t,e){var n=A(t),i=$(t),r=n.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){o=r.width,a=r.height;var u=V();(u||!u&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:o,height:a,x:s+ht(t),y:l}}(t,n)):k(e)?function(t,e){var n=H(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):gt(function(t){var e,n=$(t),i=ct(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=N(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=N(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+ht(t),l=-i.scrollTop;return"rtl"===G(r||n).direction&&(s+=N(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}($(t)))}function yt(t){var e,n=t.reference,i=t.element,l=t.placement,u=l?P(l):null,d=l?tt(l):null,p=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2;switch(u){case r:e={x:p,y:n.y-i.height};break;case o:e={x:p,y:n.y+n.height};break;case a:e={x:n.x+n.width,y:f};break;case s:e={x:n.x-i.width,y:f};break;default:e={x:n.x,y:n.y}}var g=u?X(u):null;if(null!=g){var m="y"===g?"height":"width";switch(d){case c:e[g]=e[g]-(n[m]/2-i[m]/2);break;case h:e[g]=e[g]+(n[m]/2-i[m]/2)}}return e}function vt(t,e){void 0===e&&(e={});var n=e,i=n.placement,s=void 0===i?t.placement:i,l=n.strategy,c=void 0===l?t.strategy:l,h=n.boundary,m=void 0===h?d:h,y=n.rootBoundary,v=void 0===y?p:y,x=n.elementContext,_=void 0===x?f:x,b=n.altBoundary,w=void 0!==b&&b,S=n.padding,M=void 0===S?0:S,C=K("number"!=typeof M?M:J(M,u)),T=_===f?g:f,I=t.rects.popper,A=t.elements[w?T:_],L=function(t,e,n,i){var r="clippingParents"===e?function(t){var e=ft(U(t)),n=["absolute","fixed"].indexOf(G(t).position)>=0&&E(t)?Y(t):t;return k(n)?e.filter((function(t){return k(t)&&W(t,n)&&"body"!==D(t)})):[]}(t):[].concat(e),o=[].concat(r,[n]),a=o[0],s=o.reduce((function(e,n){var r=mt(t,n,i);return e.top=N(r.top,e.top),e.right=R(r.right,e.right),e.bottom=R(r.bottom,e.bottom),e.left=N(r.left,e.left),e}),mt(t,a,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(k(A)?A:A.contextElement||$(t.elements.popper),m,v,c),O=H(t.elements.reference),P=yt({reference:O,element:I,strategy:"absolute",placement:s}),z=gt(Object.assign({},I,P)),B=_===f?z:O,V={top:L.top-B.top+C.top,bottom:B.bottom-L.bottom+C.bottom,left:L.left-B.left+C.left,right:B.right-L.right+C.right},F=t.modifiersData.offset;if(_===f&&F){var j=F[s];Object.keys(V).forEach((function(t){var e=[a,o].indexOf(t)>=0?1:-1,n=[r,o].indexOf(t)>=0?"y":"x";V[t]+=j[n]*e}))}return V}const xt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var h=n.mainAxis,d=void 0===h||h,p=n.altAxis,f=void 0===p||p,g=n.fallbackPlacements,v=n.padding,x=n.boundary,_=n.rootBoundary,b=n.altBoundary,w=n.flipVariations,S=void 0===w||w,M=n.allowedAutoPlacements,C=e.options.placement,T=P(C),I=g||(T!==C&&S?function(t){if(P(t)===l)return[];var e=st(t);return[ut(t),e,ut(e)]}(C):[st(C)]),D=[C].concat(I).reduce((function(t,n){return t.concat(P(n)===l?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?y:l,h=tt(i),d=h?s?m:m.filter((function(t){return tt(t)===h})):u,p=d.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=d);var f=p.reduce((function(e,n){return e[n]=vt(t,{placement:n,boundary:r,rootBoundary:o,padding:a})[P(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:n,boundary:x,rootBoundary:_,padding:v,flipVariations:S,allowedAutoPlacements:M}):n)}),[]),A=e.rects.reference,k=e.rects.popper,E=new Map,L=!0,O=D[0],N=0;N<D.length;N++){var R=D[N],z=P(R),B=tt(R)===c,V=[r,o].indexOf(z)>=0,H=V?"width":"height",F=vt(e,{placement:R,boundary:x,rootBoundary:_,altBoundary:b,padding:v}),W=V?B?a:s:B?o:r;A[H]>k[H]&&(W=st(W));var G=st(W),j=[];if(d&&j.push(F[z]<=0),f&&j.push(F[W]<=0,F[G]<=0),j.every((function(t){return t}))){O=R,L=!1;break}E.set(R,j)}if(L)for(var $=function(t){var e=D.find((function(e){var n=E.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return O=e,"break"},U=S?3:1;U>0&&"break"!==$(U);U--);e.placement!==O&&(e.modifiersData[i]._skip=!0,e.placement=O,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function _t(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function bt(t){return[r,a,o,s].some((function(e){return t[e]>=0}))}const wt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=vt(e,{elementContext:"reference"}),s=vt(e,{altBoundary:!0}),l=_t(a,i),u=_t(s,r,o),c=bt(l),h=bt(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}},St={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,l=void 0===o?[0,0]:o,u=y.reduce((function(t,n){return t[n]=function(t,e,n){var i=P(t),o=[s,r].indexOf(i)>=0?-1:1,l="function"==typeof n?n(Object.assign({},e,{placement:t})):n,u=l[0],c=l[1];return u=u||0,c=(c||0)*o,[s,a].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}}(n,e.rects,l),t}),{}),c=u[e.placement],h=c.x,d=c.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=h,e.modifiersData.popperOffsets.y+=d),e.modifiersData[i]=u}},Mt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=yt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Ct={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,l=n.mainAxis,u=void 0===l||l,h=n.altAxis,d=void 0!==h&&h,p=n.boundary,f=n.rootBoundary,g=n.altBoundary,m=n.padding,y=n.tether,v=void 0===y||y,x=n.tetherOffset,_=void 0===x?0:x,b=vt(e,{boundary:p,rootBoundary:f,padding:m,altBoundary:g}),w=P(e.placement),S=tt(e.placement),M=!S,C=X(w),T="x"===C?"y":"x",I=e.modifiersData.popperOffsets,D=e.rects.reference,A=e.rects.popper,k="function"==typeof _?_(Object.assign({},e.rects,{placement:e.placement})):_,E="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,O={x:0,y:0};if(I){if(u){var z,B="y"===C?r:s,V="y"===C?o:a,H="y"===C?"height":"width",W=I[C],G=W+b[B],j=W-b[V],$=v?-A[H]/2:0,U=S===c?D[H]:A[H],q=S===c?-A[H]:-D[H],K=e.elements.arrow,J=v&&K?F(K):{width:0,height:0},Q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=Q[B],nt=Q[V],it=Z(0,D[H],J[H]),rt=M?D[H]/2-$-it-et-E.mainAxis:U-it-et-E.mainAxis,ot=M?-D[H]/2+$+it+nt+E.mainAxis:q+it+nt+E.mainAxis,at=e.elements.arrow&&Y(e.elements.arrow),st=at?"y"===C?at.clientTop||0:at.clientLeft||0:0,lt=null!=(z=null==L?void 0:L[C])?z:0,ut=W+ot-lt,ct=Z(v?R(G,W+rt-lt-st):G,W,v?N(j,ut):j);I[C]=ct,O[C]=ct-W}if(d){var ht,dt="x"===C?r:s,pt="x"===C?o:a,ft=I[T],gt="y"===T?"height":"width",mt=ft+b[dt],yt=ft-b[pt],xt=-1!==[r,s].indexOf(w),_t=null!=(ht=null==L?void 0:L[T])?ht:0,bt=xt?mt:ft-D[gt]-A[gt]-_t+E.altAxis,wt=xt?ft+D[gt]+A[gt]-_t-E.altAxis:yt,St=v&&xt?function(t,e,n){var i=Z(t,e,n);return i>n?n:i}(bt,ft,wt):Z(v?bt:mt,ft,v?wt:yt);I[T]=St,O[T]=St-ft}e.modifiersData[i]=O}},requiresIfExists:["offset"]};function Tt(t,e,n){void 0===n&&(n=!1);var i,r,o=E(e),a=E(e)&&function(t){var e=t.getBoundingClientRect(),n=z(e.width)/t.offsetWidth||1,i=z(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),s=$(e),l=H(t,a,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&(("body"!==D(e)||dt(s))&&(u=(i=e)!==A(i)&&E(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:ct(i)),E(e)?((c=H(e,!0)).x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=ht(s))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function It(t){var e=new Map,n=new Set,i=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&r(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),i}var Dt={placement:"bottom",modifiers:[],strategy:"absolute"};function At(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function kt(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,r=e.defaultOptions,o=void 0===r?Dt:r;return function(t,e,n){void 0===n&&(n=o);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dt,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(n){var r="function"==typeof n?n(s.options):n;h(),s.options=Object.assign({},o,s.options,r),s.scrollParents={reference:k(t)?ft(t):t.contextElement?ft(t.contextElement):[],popper:ft(e)};var a,u,d=function(t){var e=It(t);return I.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((a=[].concat(i,s.options.modifiers),u=a.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(u).map((function(t){return u[t]}))));return s.orderedModifiers=d.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,r=t.effect;if("function"==typeof r){var o=r({state:s,name:e,instance:c,options:i});l.push(o||function(){})}})),c.update()},forceUpdate:function(){if(!u){var t=s.elements,e=t.reference,n=t.popper;if(At(e,n)){s.rects={reference:Tt(e,Y(n),"fixed"===s.options.strategy),popper:F(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var r=s.orderedModifiers[i],o=r.fn,a=r.options,l=void 0===a?{}:a,h=r.name;"function"==typeof o&&(s=o({state:s,options:l,name:h,instance:c})||s)}else s.reset=!1,i=-1}}},update:(r=function(){return new Promise((function(t){c.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(r())}))}))),a}),destroy:function(){h(),u=!0}};if(!At(t,e))return c;function h(){l.forEach((function(t){return t()})),l=[]}return c.setOptions(n).then((function(t){!u&&n.onFirstUpdate&&n.onFirstUpdate(t)})),c}}var Et=kt(),Lt=kt({defaultModifiers:[ot,Mt,it,O,St,xt,Ct,Q,wt]}),Ot=kt({defaultModifiers:[ot,Mt,it,O]});const Pt=new Map,Nt={set(t,e,n){Pt.has(t)||Pt.set(t,new Map);const i=Pt.get(t);i.has(e)||0===i.size?i.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,e)=>Pt.has(t)&&Pt.get(t).get(e)||null,remove(t,e){if(!Pt.has(t))return;const n=Pt.get(t);n.delete(e),0===n.size&&Pt.delete(t)}},Rt="transitionend",zt=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),Bt=t=>{t.dispatchEvent(new Event(Rt))},Vt=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Ht=t=>Vt(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(zt(t)):null,Ft=t=>{if(!Vt(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e},Wt=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),Gt=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Gt(t.parentNode):null},jt=()=>{},$t=t=>{t.offsetHeight},Ut=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,qt=[],Yt=()=>"rtl"===document.documentElement.dir,Xt=t=>{var e;e=()=>{const e=Ut();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=i,t.jQueryInterface)}},"loading"===document.readyState?(qt.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of qt)t()})),qt.push(e)):e()},Zt=(t,e=[],n=t)=>"function"==typeof t?t.call(...e):n,Kt=(t,e,n=!0)=>{if(!n)return void Zt(t);const i=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),r=Number.parseFloat(n);return i||r?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e)+5;let r=!1;const o=({target:n})=>{n===e&&(r=!0,e.removeEventListener(Rt,o),Zt(t))};e.addEventListener(Rt,o),setTimeout((()=>{r||Bt(e)}),i)},Jt=(t,e,n,i)=>{const r=t.length;let o=t.indexOf(e);return-1===o?!n&&i?t[r-1]:t[0]:(o+=n?1:-1,i&&(o=(o+r)%r),t[Math.max(0,Math.min(o,r-1))])},Qt=/[^.]*(?=\..*)\.|.*/,te=/\..*/,ee=/::\d+$/,ne={};let ie=1;const re={mouseenter:"mouseover",mouseleave:"mouseout"},oe=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ae(t,e){return e&&`${e}::${ie++}`||t.uidEvent||ie++}function se(t){const e=ae(t);return t.uidEvent=e,ne[e]=ne[e]||{},ne[e]}function le(t,e,n=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===n))}function ue(t,e,n){const i="string"==typeof e,r=i?n:e||n;let o=pe(t);return oe.has(o)||(o=t),[i,r,o]}function ce(t,e,n,i,r){if("string"!=typeof e||!t)return;let[o,a,s]=ue(e,n,i);if(e in re){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};a=t(a)}const l=se(t),u=l[s]||(l[s]={}),c=le(u,a,o?n:null);if(c)return void(c.oneOff=c.oneOff&&r);const h=ae(a,e.replace(Qt,"")),d=o?function(t,e,n){return function i(r){const o=t.querySelectorAll(e);for(let{target:a}=r;a&&a!==this;a=a.parentNode)for(const s of o)if(s===a)return ge(r,{delegateTarget:a}),i.oneOff&&fe.off(t,r.type,e,n),n.apply(a,[r])}}(t,n,a):function(t,e){return function n(i){return ge(i,{delegateTarget:t}),n.oneOff&&fe.off(t,i.type,e),e.apply(t,[i])}}(t,a);d.delegationSelector=o?n:null,d.callable=a,d.oneOff=r,d.uidEvent=h,u[h]=d,t.addEventListener(s,d,o)}function he(t,e,n,i,r){const o=le(e[n],i,r);o&&(t.removeEventListener(n,o,Boolean(r)),delete e[n][o.uidEvent])}function de(t,e,n,i){const r=e[n]||{};for(const[o,a]of Object.entries(r))o.includes(i)&&he(t,e,n,a.callable,a.delegationSelector)}function pe(t){return t=t.replace(te,""),re[t]||t}const fe={on(t,e,n,i){ce(t,e,n,i,!1)},one(t,e,n,i){ce(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const[r,o,a]=ue(e,n,i),s=a!==e,l=se(t),u=l[a]||{},c=e.startsWith(".");if(void 0===o){if(c)for(const n of Object.keys(l))de(t,l,n,e.slice(1));for(const[n,i]of Object.entries(u)){const r=n.replace(ee,"");s&&!e.includes(r)||he(t,l,a,i.callable,i.delegationSelector)}}else{if(!Object.keys(u).length)return;he(t,l,a,o,r?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=Ut();let r=null,o=!0,a=!0,s=!1;e!==pe(e)&&i&&(r=i.Event(e,n),i(t).trigger(r),o=!r.isPropagationStopped(),a=!r.isImmediatePropagationStopped(),s=r.isDefaultPrevented());const l=ge(new Event(e,{bubbles:o,cancelable:!0}),n);return s&&l.preventDefault(),a&&t.dispatchEvent(l),l.defaultPrevented&&r&&r.preventDefault(),l}};function ge(t,e={}){for(const[n,i]of Object.entries(e))try{t[n]=i}catch(e){Object.defineProperty(t,n,{configurable:!0,get:()=>i})}return t}function me(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function ye(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const ve={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${ye(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${ye(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),e[n]=me(t.dataset[i])}return e},getDataAttribute:(t,e)=>me(t.getAttribute(`data-bs-${ye(e)}`))};class xe{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=Vt(e)?ve.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...Vt(e)?ve.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,r]of Object.entries(e)){const e=t[i],o=Vt(e)?"element":null==(n=e)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${r}".`)}var n}}class _e extends xe{constructor(t,e){super(),(t=Ht(t))&&(this._element=t,this._config=this._getConfig(e),Nt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Nt.remove(this._element,this.constructor.DATA_KEY),fe.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,n=!0){Kt(t,e,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Nt.get(Ht(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.5"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const be=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&"#"!==n?n.trim():null}return e?e.split(",").map((t=>zt(t))).join(","):null},we={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const n=[];let i=t.parentNode.closest(e);for(;i;)n.push(i),i=i.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!Wt(t)&&Ft(t)))},getSelectorFromElement(t){const e=be(t);return e&&we.findOne(e)?e:null},getElementFromSelector(t){const e=be(t);return e?we.findOne(e):null},getMultipleElementsFromSelector(t){const e=be(t);return e?we.find(e):[]}},Se=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,i=t.NAME;fe.on(document,n,`[data-bs-dismiss="${i}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Wt(this))return;const r=we.getElementFromSelector(this)||this.closest(`.${i}`);t.getOrCreateInstance(r)[e]()}))},Me=".bs.alert",Ce=`close${Me}`,Te=`closed${Me}`;class Ie extends _e{static get NAME(){return"alert"}close(){if(fe.trigger(this._element,Ce).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),fe.trigger(this._element,Te),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=Ie.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}Se(Ie,"close"),Xt(Ie);const De='[data-bs-toggle="button"]';class Ae extends _e{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=Ae.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}fe.on(document,"click.bs.button.data-api",De,(t=>{t.preventDefault();const e=t.target.closest(De);Ae.getOrCreateInstance(e).toggle()})),Xt(Ae);const ke=".bs.swipe",Ee=`touchstart${ke}`,Le=`touchmove${ke}`,Oe=`touchend${ke}`,Pe=`pointerdown${ke}`,Ne=`pointerup${ke}`,Re={endCallback:null,leftCallback:null,rightCallback:null},ze={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Be extends xe{constructor(t,e){super(),this._element=t,t&&Be.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Re}static get DefaultType(){return ze}static get NAME(){return"swipe"}dispose(){fe.off(this._element,ke)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Zt(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&Zt(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(fe.on(this._element,Pe,(t=>this._start(t))),fe.on(this._element,Ne,(t=>this._end(t))),this._element.classList.add("pointer-event")):(fe.on(this._element,Ee,(t=>this._start(t))),fe.on(this._element,Le,(t=>this._move(t))),fe.on(this._element,Oe,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Ve=".bs.carousel",He=".data-api",Fe="ArrowLeft",We="ArrowRight",Ge="next",je="prev",$e="left",Ue="right",qe=`slide${Ve}`,Ye=`slid${Ve}`,Xe=`keydown${Ve}`,Ze=`mouseenter${Ve}`,Ke=`mouseleave${Ve}`,Je=`dragstart${Ve}`,Qe=`load${Ve}${He}`,tn=`click${Ve}${He}`,en="carousel",nn="active",rn=".active",on=".carousel-item",an=rn+on,sn={[Fe]:Ue,[We]:$e},ln={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},un={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class cn extends _e{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=we.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===en&&this.cycle()}static get Default(){return ln}static get DefaultType(){return un}static get NAME(){return"carousel"}next(){this._slide(Ge)}nextWhenVisible(){!document.hidden&&Ft(this._element)&&this.next()}prev(){this._slide(je)}pause(){this._isSliding&&Bt(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?fe.one(this._element,Ye,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void fe.one(this._element,Ye,(()=>this.to(t)));const n=this._getItemIndex(this._getActive());if(n===t)return;const i=t>n?Ge:je;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&fe.on(this._element,Xe,(t=>this._keydown(t))),"hover"===this._config.pause&&(fe.on(this._element,Ze,(()=>this.pause())),fe.on(this._element,Ke,(()=>this._maybeEnableCycle()))),this._config.touch&&Be.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of we.find(".carousel-item img",this._element))fe.on(t,Je,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder($e)),rightCallback:()=>this._slide(this._directionToOrder(Ue)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Be(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=sn[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=we.findOne(rn,this._indicatorsElement);e.classList.remove(nn),e.removeAttribute("aria-current");const n=we.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(nn),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const n=this._getActive(),i=t===Ge,r=e||Jt(this._getItems(),n,i,this._config.wrap);if(r===n)return;const o=this._getItemIndex(r),a=e=>fe.trigger(this._element,e,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:o});if(a(qe).defaultPrevented)return;if(!n||!r)return;const s=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const l=i?"carousel-item-start":"carousel-item-end",u=i?"carousel-item-next":"carousel-item-prev";r.classList.add(u),$t(r),n.classList.add(l),r.classList.add(l),this._queueCallback((()=>{r.classList.remove(l,u),r.classList.add(nn),n.classList.remove(nn,u,l),this._isSliding=!1,a(Ye)}),n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return we.findOne(an,this._element)}_getItems(){return we.find(on,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Yt()?t===$e?je:Ge:t===$e?Ge:je}_orderToDirection(t){return Yt()?t===je?$e:Ue:t===je?Ue:$e}static jQueryInterface(t){return this.each((function(){const e=cn.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}fe.on(document,tn,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=we.getElementFromSelector(this);if(!e||!e.classList.contains(en))return;t.preventDefault();const n=cn.getOrCreateInstance(e),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===ve.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),fe.on(window,Qe,(()=>{const t=we.find('[data-bs-ride="carousel"]');for(const e of t)cn.getOrCreateInstance(e)})),Xt(cn);const hn=".bs.collapse",dn=`show${hn}`,pn=`shown${hn}`,fn=`hide${hn}`,gn=`hidden${hn}`,mn=`click${hn}.data-api`,yn="show",vn="collapse",xn="collapsing",_n=`:scope .${vn} .${vn}`,bn='[data-bs-toggle="collapse"]',wn={parent:null,toggle:!0},Sn={parent:"(null|element)",toggle:"boolean"};class Mn extends _e{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=we.find(bn);for(const t of n){const e=we.getSelectorFromElement(t),n=we.find(e).filter((t=>t===this._element));null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return wn}static get DefaultType(){return Sn}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>Mn.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(fe.trigger(this._element,dn).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(vn),this._element.classList.add(xn),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(xn),this._element.classList.add(vn,yn),this._element.style[e]="",fe.trigger(this._element,pn)}),this._element,!0),this._element.style[e]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(fe.trigger(this._element,fn).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,$t(this._element),this._element.classList.add(xn),this._element.classList.remove(vn,yn);for(const t of this._triggerArray){const e=we.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(xn),this._element.classList.add(vn),fe.trigger(this._element,gn)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(yn)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Ht(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(bn);for(const e of t){const t=we.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=we.find(_n,this._config.parent);return we.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle("collapsed",!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const n=Mn.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}fe.on(document,mn,bn,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of we.getMultipleElementsFromSelector(this))Mn.getOrCreateInstance(t,{toggle:!1}).toggle()})),Xt(Mn);const Cn="dropdown",Tn=".bs.dropdown",In=".data-api",Dn="ArrowUp",An="ArrowDown",kn=`hide${Tn}`,En=`hidden${Tn}`,Ln=`show${Tn}`,On=`shown${Tn}`,Pn=`click${Tn}${In}`,Nn=`keydown${Tn}${In}`,Rn=`keyup${Tn}${In}`,zn="show",Bn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Vn=`${Bn}.${zn}`,Hn=".dropdown-menu",Fn=Yt()?"top-end":"top-start",Wn=Yt()?"top-start":"top-end",Gn=Yt()?"bottom-end":"bottom-start",jn=Yt()?"bottom-start":"bottom-end",$n=Yt()?"left-start":"right-start",Un=Yt()?"right-start":"left-start",qn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Yn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Xn extends _e{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=we.next(this._element,Hn)[0]||we.prev(this._element,Hn)[0]||we.findOne(Hn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return qn}static get DefaultType(){return Yn}static get NAME(){return Cn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Wt(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!fe.trigger(this._element,Ln,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))fe.on(t,"mouseover",jt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(zn),this._element.classList.add(zn),fe.trigger(this._element,On,t)}}hide(){if(Wt(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!fe.trigger(this._element,kn,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))fe.off(t,"mouseover",jt);this._popper&&this._popper.destroy(),this._menu.classList.remove(zn),this._element.classList.remove(zn),this._element.setAttribute("aria-expanded","false"),ve.removeDataAttribute(this._menu,"popper"),fe.trigger(this._element,En,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Vt(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Cn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){let t=this._element;"parent"===this._config.reference?t=this._parent:Vt(this._config.reference)?t=Ht(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Lt(t,this._menu,e)}_isShown(){return this._menu.classList.contains(zn)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return $n;if(t.classList.contains("dropstart"))return Un;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Wn:Fn:e?jn:Gn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(ve.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Zt(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const n=we.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>Ft(t)));n.length&&Jt(n,e,t===An,!n.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Xn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=we.find(Vn);for(const n of e){const e=Xn.getInstance(n);if(!e||!1===e._config.autoClose)continue;const i=t.composedPath(),r=i.includes(e._menu);if(i.includes(e._element)||"inside"===e._config.autoClose&&!r||"outside"===e._config.autoClose&&r)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n="Escape"===t.key,i=[Dn,An].includes(t.key);if(!i&&!n)return;if(e&&!n)return;t.preventDefault();const r=this.matches(Bn)?this:we.prev(this,Bn)[0]||we.next(this,Bn)[0]||we.findOne(Bn,t.delegateTarget.parentNode),o=Xn.getOrCreateInstance(r);if(i)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),r.focus())}}fe.on(document,Nn,Bn,Xn.dataApiKeydownHandler),fe.on(document,Nn,Hn,Xn.dataApiKeydownHandler),fe.on(document,Pn,Xn.clearMenus),fe.on(document,Rn,Xn.clearMenus),fe.on(document,Pn,Bn,(function(t){t.preventDefault(),Xn.getOrCreateInstance(this).toggle()})),Xt(Xn);const Zn="backdrop",Kn="show",Jn=`mousedown.bs.${Zn}`,Qn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ti={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ei extends xe{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Qn}static get DefaultType(){return ti}static get NAME(){return Zn}show(t){if(!this._config.isVisible)return void Zt(t);this._append();const e=this._getElement();this._config.isAnimated&&$t(e),e.classList.add(Kn),this._emulateAnimation((()=>{Zt(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Kn),this._emulateAnimation((()=>{this.dispose(),Zt(t)}))):Zt(t)}dispose(){this._isAppended&&(fe.off(this._element,Jn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Ht(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),fe.on(t,Jn,(()=>{Zt(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){Kt(t,this._getElement(),this._config.isAnimated)}}const ni=".bs.focustrap",ii=`focusin${ni}`,ri=`keydown.tab${ni}`,oi="backward",ai={autofocus:!0,trapElement:null},si={autofocus:"boolean",trapElement:"element"};class li extends xe{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ai}static get DefaultType(){return si}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),fe.off(document,ni),fe.on(document,ii,(t=>this._handleFocusin(t))),fe.on(document,ri,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,fe.off(document,ni))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const n=we.focusableChildren(e);0===n.length?e.focus():this._lastTabNavDirection===oi?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?oi:"forward")}}const ui=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ci=".sticky-top",hi="padding-right",di="margin-right";class pi{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,hi,(e=>e+t)),this._setElementAttributes(ui,hi,(e=>e+t)),this._setElementAttributes(ci,di,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,hi),this._resetElementAttributes(ui,hi),this._resetElementAttributes(ci,di)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const i=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+i)return;this._saveInitialAttribute(t,e);const r=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${n(Number.parseFloat(r))}px`)}))}_saveInitialAttribute(t,e){const n=t.style.getPropertyValue(e);n&&ve.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const n=ve.getDataAttribute(t,e);null!==n?(ve.removeDataAttribute(t,e),t.style.setProperty(e,n)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(Vt(t))e(t);else for(const n of we.find(t,this._element))e(n)}}const fi=".bs.modal",gi=`hide${fi}`,mi=`hidePrevented${fi}`,yi=`hidden${fi}`,vi=`show${fi}`,xi=`shown${fi}`,_i=`resize${fi}`,bi=`click.dismiss${fi}`,wi=`mousedown.dismiss${fi}`,Si=`keydown.dismiss${fi}`,Mi=`click${fi}.data-api`,Ci="modal-open",Ti="show",Ii="modal-static",Di={backdrop:!0,focus:!0,keyboard:!0},Ai={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ki extends _e{constructor(t,e){super(t,e),this._dialog=we.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new pi,this._addEventListeners()}static get Default(){return Di}static get DefaultType(){return Ai}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||fe.trigger(this._element,vi,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ci),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(fe.trigger(this._element,gi).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ti),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){fe.off(window,fi),fe.off(this._dialog,fi),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ei({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new li({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=we.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),$t(this._element),this._element.classList.add(Ti),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,fe.trigger(this._element,xi,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){fe.on(this._element,Si,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),fe.on(window,_i,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),fe.on(this._element,wi,(t=>{fe.one(this._element,bi,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(Ci),this._resetAdjustments(),this._scrollBar.reset(),fe.trigger(this._element,yi)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(fe.trigger(this._element,mi).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Ii)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Ii),this._queueCallback((()=>{this._element.classList.remove(Ii),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;if(n&&!t){const t=Yt()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!n&&t){const t=Yt()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const n=ki.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}}))}}fe.on(document,Mi,'[data-bs-toggle="modal"]',(function(t){const e=we.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),fe.one(e,vi,(t=>{t.defaultPrevented||fe.one(e,yi,(()=>{Ft(this)&&this.focus()}))}));const n=we.findOne(".modal.show");n&&ki.getInstance(n).hide(),ki.getOrCreateInstance(e).toggle(this)})),Se(ki),Xt(ki);const Ei=".bs.offcanvas",Li=".data-api",Oi=`load${Ei}${Li}`,Pi="show",Ni="showing",Ri="hiding",zi=".offcanvas.show",Bi=`show${Ei}`,Vi=`shown${Ei}`,Hi=`hide${Ei}`,Fi=`hidePrevented${Ei}`,Wi=`hidden${Ei}`,Gi=`resize${Ei}`,ji=`click${Ei}${Li}`,$i=`keydown.dismiss${Ei}`,Ui={backdrop:!0,keyboard:!0,scroll:!1},qi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Yi extends _e{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ui}static get DefaultType(){return qi}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||fe.trigger(this._element,Bi,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new pi).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ni),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Pi),this._element.classList.remove(Ni),fe.trigger(this._element,Vi,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(fe.trigger(this._element,Hi).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ri),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Pi,Ri),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new pi).reset(),fe.trigger(this._element,Wi)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new ei({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():fe.trigger(this._element,Fi)}:null})}_initializeFocusTrap(){return new li({trapElement:this._element})}_addEventListeners(){fe.on(this._element,$i,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():fe.trigger(this._element,Fi))}))}static jQueryInterface(t){return this.each((function(){const e=Yi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}fe.on(document,ji,'[data-bs-toggle="offcanvas"]',(function(t){const e=we.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Wt(this))return;fe.one(e,Wi,(()=>{Ft(this)&&this.focus()}));const n=we.findOne(zi);n&&n!==e&&Yi.getInstance(n).hide(),Yi.getOrCreateInstance(e).toggle(this)})),fe.on(window,Oi,(()=>{for(const t of we.find(zi))Yi.getOrCreateInstance(t).show()})),fe.on(window,Gi,(()=>{for(const t of we.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Yi.getOrCreateInstance(t).hide()})),Se(Yi),Xt(Yi);const Xi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Zi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ki=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Ji=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!Zi.has(n)||Boolean(Ki.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(n)))},Qi={allowList:Xi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},tr={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},er={entry:"(string|element|function|null)",selector:"(string|element)"};class nr extends xe{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Qi}static get DefaultType(){return tr}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,n]of Object.entries(this._config.content))this._setContent(t,n,e);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},er)}_setContent(t,e,n){const i=we.findOne(n,t);i&&((e=this._resolvePossibleFunction(e))?Vt(e)?this._putElementInTemplate(Ht(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),r=[].concat(...i.body.querySelectorAll("*"));for(const t of r){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const i=[].concat(...t.attributes),r=[].concat(e["*"]||[],e[n]||[]);for(const e of i)Ji(e,r)||t.removeAttribute(e.nodeName)}return i.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Zt(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const ir=new Set(["sanitize","allowList","sanitizeFn"]),rr="fade",or="show",ar=".tooltip-inner",sr=".modal",lr="hide.bs.modal",ur="hover",cr="focus",hr={AUTO:"auto",TOP:"top",RIGHT:Yt()?"left":"right",BOTTOM:"bottom",LEFT:Yt()?"right":"left"},dr={allowList:Xi,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},pr={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class fr extends _e{constructor(t,e){super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return dr}static get DefaultType(){return pr}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),fe.off(this._element.closest(sr),lr,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=fe.trigger(this._element,this.constructor.eventName("show")),e=(Gt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),fe.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(or),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))fe.on(t,"mouseover",jt);this._queueCallback((()=>{fe.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!fe.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(or),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))fe.off(t,"mouseover",jt);this._activeTrigger.click=!1,this._activeTrigger[cr]=!1,this._activeTrigger[ur]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),fe.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(rr,or),e.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(rr),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new nr({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ar]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(rr)}_isShown(){return this.tip&&this.tip.classList.contains(or)}_createPopper(t){const e=Zt(this._config.placement,[this,t,this._element]),n=hr[e.toUpperCase()];return Lt(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Zt(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...Zt(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)fe.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===ur?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=e===ur?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");fe.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?cr:ur]=!0,e._enter()})),fe.on(this._element,n,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?cr:ur]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},fe.on(this._element.closest(sr),lr,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=ve.getDataAttributes(this._element);for(const t of Object.keys(e))ir.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:Ht(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,n]of Object.entries(this._config))this.constructor.Default[e]!==n&&(t[e]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=fr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Xt(fr);const gr=".popover-header",mr=".popover-body",yr={...fr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},vr={...fr.DefaultType,content:"(null|string|element|function)"};class xr extends fr{static get Default(){return yr}static get DefaultType(){return vr}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[gr]:this._getTitle(),[mr]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=xr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Xt(xr);const _r=".bs.scrollspy",br=`activate${_r}`,wr=`click${_r}`,Sr=`load${_r}.data-api`,Mr="active",Cr="[href]",Tr=".nav-link",Ir=`${Tr}, .nav-item > ${Tr}, .list-group-item`,Dr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ar={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class kr extends _e{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Dr}static get DefaultType(){return Ar}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Ht(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(fe.off(this._config.target,wr),fe.on(this._config.target,wr,Cr,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const n=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),n=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},i=(this._rootElement||document.documentElement).scrollTop,r=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&t){if(n(o),!i)return}else r||t||n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=we.find(Cr,this._config.target);for(const e of t){if(!e.hash||Wt(e))continue;const t=we.findOne(decodeURI(e.hash),this._element);Ft(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Mr),this._activateParents(t),fe.trigger(this._element,br,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))we.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Mr);else for(const e of we.parents(t,".nav, .list-group"))for(const t of we.prev(e,Ir))t.classList.add(Mr)}_clearActiveClass(t){t.classList.remove(Mr);const e=we.find(`${Cr}.${Mr}`,t);for(const t of e)t.classList.remove(Mr)}static jQueryInterface(t){return this.each((function(){const e=kr.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}fe.on(window,Sr,(()=>{for(const t of we.find('[data-bs-spy="scroll"]'))kr.getOrCreateInstance(t)})),Xt(kr);const Er=".bs.tab",Lr=`hide${Er}`,Or=`hidden${Er}`,Pr=`show${Er}`,Nr=`shown${Er}`,Rr=`click${Er}`,zr=`keydown${Er}`,Br=`load${Er}`,Vr="ArrowLeft",Hr="ArrowRight",Fr="ArrowUp",Wr="ArrowDown",Gr="Home",jr="End",$r="active",Ur="fade",qr="show",Yr=".dropdown-toggle",Xr=`:not(${Yr})`,Zr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Kr=`.nav-link${Xr}, .list-group-item${Xr}, [role="tab"]${Xr}, ${Zr}`,Jr=`.${$r}[data-bs-toggle="tab"], .${$r}[data-bs-toggle="pill"], .${$r}[data-bs-toggle="list"]`;class Qr extends _e{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),fe.on(this._element,zr,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),n=e?fe.trigger(e,Lr,{relatedTarget:t}):null;fe.trigger(t,Pr,{relatedTarget:e}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add($r),this._activate(we.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),fe.trigger(t,Nr,{relatedTarget:e})):t.classList.add(qr)}),t,t.classList.contains(Ur)))}_deactivate(t,e){t&&(t.classList.remove($r),t.blur(),this._deactivate(we.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),fe.trigger(t,Or,{relatedTarget:e})):t.classList.remove(qr)}),t,t.classList.contains(Ur)))}_keydown(t){if(![Vr,Hr,Fr,Wr,Gr,jr].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!Wt(t)));let n;if([Gr,jr].includes(t.key))n=e[t.key===Gr?0:e.length-1];else{const i=[Hr,Wr].includes(t.key);n=Jt(e,t.target,i,!0)}n&&(n.focus({preventScroll:!0}),Qr.getOrCreateInstance(n).show())}_getChildren(){return we.find(Kr,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",e),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=we.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const n=this._getOuterElement(t);if(!n.classList.contains("dropdown"))return;const i=(t,i)=>{const r=we.findOne(t,n);r&&r.classList.toggle(i,e)};i(Yr,$r),i(".dropdown-menu",qr),n.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,n){t.hasAttribute(e)||t.setAttribute(e,n)}_elemIsActive(t){return t.classList.contains($r)}_getInnerElement(t){return t.matches(Kr)?t:we.findOne(Kr,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=Qr.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}fe.on(document,Rr,Zr,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),Wt(this)||Qr.getOrCreateInstance(this).show()})),fe.on(window,Br,(()=>{for(const t of we.find(Jr))Qr.getOrCreateInstance(t)})),Xt(Qr);const to=".bs.toast",eo=`mouseover${to}`,no=`mouseout${to}`,io=`focusin${to}`,ro=`focusout${to}`,oo=`hide${to}`,ao=`hidden${to}`,so=`show${to}`,lo=`shown${to}`,uo="hide",co="show",ho="showing",po={animation:"boolean",autohide:"boolean",delay:"number"},fo={animation:!0,autohide:!0,delay:5e3};class go extends _e{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return fo}static get DefaultType(){return po}static get NAME(){return"toast"}show(){fe.trigger(this._element,so).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(uo),$t(this._element),this._element.classList.add(co,ho),this._queueCallback((()=>{this._element.classList.remove(ho),fe.trigger(this._element,lo),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(fe.trigger(this._element,oo).defaultPrevented||(this._element.classList.add(ho),this._queueCallback((()=>{this._element.classList.add(uo),this._element.classList.remove(ho,co),fe.trigger(this._element,ao)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(co),super.dispose()}isShown(){return this._element.classList.contains(co)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){fe.on(this._element,eo,(t=>this._onInteraction(t,!0))),fe.on(this._element,no,(t=>this._onInteraction(t,!1))),fe.on(this._element,io,(t=>this._onInteraction(t,!0))),fe.on(this._element,ro,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=go.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}Se(go),Xt(go)},347:(t,e,n)=>{"use strict";function i(t){const e="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},r=t.inherit(i,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),o={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},a={begin:/\{/,end:/\}/,contains:[o],illegal:"\\n",relevance:0},s={begin:"\\[",end:"\\]",contains:[o],illegal:"\\n",relevance:0},l=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},{className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},a,s,i],u=[...l];return u.pop(),u.push(r),o.contains=u,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:l}}n.d(e,{A:()=>i})},359:(t,e,n)=>{"use strict";function i(t){const e=t.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(r,{begin:/\(/,end:/\)/}),a=t.inherit(t.APOS_STRING_MODE,{className:"string"}),s=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[r,s,a,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,o,s,a]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[s]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}n.d(e,{A:()=>i})},402:(t,e,n)=>{"use strict";function i(t){const e=["true","false","null"],n={scope:"literal",beginKeywords:e.join(" ")};return{name:"JSON",keywords:{literal:e},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},t.QUOTE_STRING_MODE,n,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}n.d(e,{A:()=>i})},416:t=>{function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((n=>{const i=t[n],r=typeof i;"object"!==r&&"function"!==r||Object.isFrozen(i)||e(i)})),t}class n{constructor(t){void 0===t.data&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(t,...e){const n=Object.create(null);for(const e in t)n[e]=t[e];return e.forEach((function(t){for(const e in t)n[e]=t[e]})),n}const o=t=>!!t.scope;class a{constructor(t,e){this.buffer="",this.classPrefix=e.classPrefix,t.walk(this)}addText(t){this.buffer+=i(t)}openNode(t){if(!o(t))return;const e=((t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map(((t,e)=>`${t}${"_".repeat(e+1)}`))].join(" ")}return`${e}${t}`})(t.scope,{prefix:this.classPrefix});this.span(e)}closeNode(t){o(t)&&(this.buffer+="</span>")}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const s=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class l{constructor(){this.rootNode=s(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const e=s({scope:t});this.add(e),this.stack.push(e)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,e){return"string"==typeof e?t.addText(e):e.children&&(t.openNode(e),e.children.forEach((e=>this._walk(t,e))),t.closeNode(e)),t}static _collapse(t){"string"!=typeof t&&t.children&&(t.children.every((t=>"string"==typeof t))?t.children=[t.children.join("")]:t.children.forEach((t=>{l._collapse(t)})))}}class u extends l{constructor(t){super(),this.options=t}addText(t){""!==t&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,e){const n=t.root;e&&(n.scope=`language:${e}`),this.add(n)}toHTML(){return new a(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(t){return t?"string"==typeof t?t:t.source:null}function h(t){return f("(?=",t,")")}function d(t){return f("(?:",t,")*")}function p(t){return f("(?:",t,")?")}function f(...t){return t.map((t=>c(t))).join("")}function g(...t){const e=function(t){const e=t[t.length-1];return"object"==typeof e&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}(t);return"("+(e.capture?"":"?:")+t.map((t=>c(t))).join("|")+")"}function m(t){return new RegExp(t.toString()+"|").exec("").length-1}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function v(t,{joinWith:e}){let n=0;return t.map((t=>{n+=1;const e=n;let i=c(t),r="";for(;i.length>0;){const t=y.exec(i);if(!t){r+=i;break}r+=i.substring(0,t.index),i=i.substring(t.index+t[0].length),"\\"===t[0][0]&&t[1]?r+="\\"+String(Number(t[1])+e):(r+=t[0],"("===t[0]&&n++)}return r})).map((t=>`(${t})`)).join(e)}const x="[a-zA-Z]\\w*",_="[a-zA-Z_]\\w*",b="\\b\\d+(\\.\\d+)?",w="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",S="\\b(0b[01]+)",M={begin:"\\\\[\\s\\S]",relevance:0},C={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[M]},T={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[M]},I=function(t,e,n={}){const i=r({scope:"comment",begin:t,end:e,contains:[]},n);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=g("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return i.contains.push({begin:f(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},D=I("//","$"),A=I("/\\*","\\*/"),k=I("#","$"),E={scope:"number",begin:b,relevance:0},L={scope:"number",begin:w,relevance:0},O={scope:"number",begin:S,relevance:0},P={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[M,{begin:/\[/,end:/\]/,relevance:0,contains:[M]}]},N={scope:"title",begin:x,relevance:0},R={scope:"title",begin:_,relevance:0},z={begin:"\\.\\s*"+_,relevance:0};var B=Object.freeze({__proto__:null,APOS_STRING_MODE:C,BACKSLASH_ESCAPE:M,BINARY_NUMBER_MODE:O,BINARY_NUMBER_RE:S,COMMENT:I,C_BLOCK_COMMENT_MODE:A,C_LINE_COMMENT_MODE:D,C_NUMBER_MODE:L,C_NUMBER_RE:w,END_SAME_AS_BEGIN:function(t){return Object.assign(t,{"on:begin":(t,e)=>{e.data._beginMatch=t[1]},"on:end":(t,e)=>{e.data._beginMatch!==t[1]&&e.ignoreMatch()}})},HASH_COMMENT_MODE:k,IDENT_RE:x,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:z,NUMBER_MODE:E,NUMBER_RE:b,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:T,REGEXP_MODE:P,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=f(e,/.*\b/,t.binary,/\b.*/)),r({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,e)=>{0!==t.index&&e.ignoreMatch()}},t)},TITLE_MODE:N,UNDERSCORE_IDENT_RE:_,UNDERSCORE_TITLE_MODE:R});function V(t,e){"."===t.input[t.index-1]&&e.ignoreMatch()}function H(t,e){void 0!==t.className&&(t.scope=t.className,delete t.className)}function F(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=V,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,void 0===t.relevance&&(t.relevance=0))}function W(t,e){Array.isArray(t.illegal)&&(t.illegal=g(...t.illegal))}function G(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function j(t,e){void 0===t.relevance&&(t.relevance=1)}const $=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach((e=>{delete t[e]})),t.keywords=n.keywords,t.begin=f(n.beforeMatch,h(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},U=["of","and","for","in","not","or","if","then","parent","list","value"];function q(t,e,n="keyword"){const i=Object.create(null);return"string"==typeof t?r(n,t.split(" ")):Array.isArray(t)?r(n,t):Object.keys(t).forEach((function(n){Object.assign(i,q(t[n],e,n))})),i;function r(t,n){e&&(n=n.map((t=>t.toLowerCase()))),n.forEach((function(e){const n=e.split("|");i[n[0]]=[t,Y(n[0],n[1])]}))}}function Y(t,e){return e?Number(e):function(t){return U.includes(t.toLowerCase())}(t)?0:1}const X={},Z=t=>{console.error(t)},K=(t,...e)=>{console.log(`WARN: ${t}`,...e)},J=(t,e)=>{X[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),X[`${t}/${e}`]=!0)},Q=new Error;function tt(t,e,{key:n}){let i=0;const r=t[n],o={},a={};for(let t=1;t<=e.length;t++)a[t+i]=r[t],o[t+i]=!0,i+=m(e[t-1]);t[n]=a,t[n]._emit=o,t[n]._multi=!0}function et(t){!function(t){t.scope&&"object"==typeof t.scope&&null!==t.scope&&(t.beginScope=t.scope,delete t.scope)}(t),"string"==typeof t.beginScope&&(t.beginScope={_wrap:t.beginScope}),"string"==typeof t.endScope&&(t.endScope={_wrap:t.endScope}),function(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Z("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Q;if("object"!=typeof t.beginScope||null===t.beginScope)throw Z("beginScope must be object"),Q;tt(t,t.begin,{key:"beginScope"}),t.begin=v(t.begin,{joinWith:""})}}(t),function(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Z("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Q;if("object"!=typeof t.endScope||null===t.endScope)throw Z("endScope must be object"),Q;tt(t,t.end,{key:"endScope"}),t.end=v(t.end,{joinWith:""})}}(t)}function nt(t){function e(e,n){return new RegExp(c(e),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(t,e){e.position=this.position++,this.matchIndexes[this.matchAt]=e,this.regexes.push([e,t]),this.matchAt+=m(t)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const t=this.regexes.map((t=>t[1]));this.matcherRe=e(v(t,{joinWith:"|"}),!0),this.lastIndex=0}exec(t){this.matcherRe.lastIndex=this.lastIndex;const e=this.matcherRe.exec(t);if(!e)return null;const n=e.findIndex(((t,e)=>e>0&&void 0!==t)),i=this.matchIndexes[n];return e.splice(0,n),Object.assign(e,i)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(t){if(this.multiRegexes[t])return this.multiRegexes[t];const e=new n;return this.rules.slice(t).forEach((([t,n])=>e.addRule(t,n))),e.compile(),this.multiRegexes[t]=e,e}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(t,e){this.rules.push([t,e]),"begin"===e.type&&this.count++}exec(t){const e=this.getMatcher(this.regexIndex);e.lastIndex=this.lastIndex;let n=e.exec(t);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const e=this.getMatcher(0);e.lastIndex=this.lastIndex+1,n=e.exec(t)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=r(t.classNameAliases||{}),function n(o,a){const s=o;if(o.isCompiled)return s;[H,G,et,$].forEach((t=>t(o,a))),t.compilerExtensions.forEach((t=>t(o,a))),o.__beforeBegin=null,[F,W,j].forEach((t=>t(o,a))),o.isCompiled=!0;let l=null;return"object"==typeof o.keywords&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),l=o.keywords.$pattern,delete o.keywords.$pattern),l=l||/\w+/,o.keywords&&(o.keywords=q(o.keywords,t.case_insensitive)),s.keywordPatternRe=e(l,!0),a&&(o.begin||(o.begin=/\B|\b/),s.beginRe=e(s.begin),o.end||o.endsWithParent||(o.end=/\B|\b/),o.end&&(s.endRe=e(s.end)),s.terminatorEnd=c(s.end)||"",o.endsWithParent&&a.terminatorEnd&&(s.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(s.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map((function(t){return function(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map((function(e){return r(t,{variants:null},e)}))),t.cachedVariants?t.cachedVariants:it(t)?r(t,{starts:t.starts?r(t.starts):null}):Object.isFrozen(t)?r(t):t}("self"===t?o:t)}))),o.contains.forEach((function(t){n(t,s)})),o.starts&&n(o.starts,a),s.matcher=function(t){const e=new i;return t.contains.forEach((t=>e.addRule(t.begin,{rule:t,type:"begin"}))),t.terminatorEnd&&e.addRule(t.terminatorEnd,{type:"end"}),t.illegal&&e.addRule(t.illegal,{type:"illegal"}),e}(s),s}(t)}function it(t){return!!t&&(t.endsWithParent||it(t.starts))}class rt extends Error{constructor(t,e){super(t),this.name="HTMLInjectionError",this.html=e}}const ot=i,at=r,st=Symbol("nomatch"),lt=function(t){const i=Object.create(null),r=Object.create(null),o=[];let a=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let c={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:u};function m(t){return c.noHighlightRe.test(t)}function y(t,e,n){let i="",r="";"object"==typeof e?(i=t,n=e.ignoreIllegals,r=e.language):(J("10.7.0","highlight(lang, code, ...args) has been deprecated."),J("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),r=t,i=e),void 0===n&&(n=!0);const o={code:i,language:r};T("before:highlight",o);const a=o.result?o.result:v(o.language,o.code,n);return a.code=o.code,T("after:highlight",a),a}function v(t,e,r,o){const l=Object.create(null);function u(){if(!T.keywords)return void D.addText(A);let t=0;T.keywordPatternRe.lastIndex=0;let e=T.keywordPatternRe.exec(A),n="";for(;e;){n+=A.substring(t,e.index);const r=w.case_insensitive?e[0].toLowerCase():e[0],o=(i=r,T.keywords[i]);if(o){const[t,i]=o;if(D.addText(n),n="",l[r]=(l[r]||0)+1,l[r]<=7&&(k+=i),t.startsWith("_"))n+=e[0];else{const n=w.classNameAliases[t]||t;d(e[0],n)}}else n+=e[0];t=T.keywordPatternRe.lastIndex,e=T.keywordPatternRe.exec(A)}var i;n+=A.substring(t),D.addText(n)}function h(){null!=T.subLanguage?function(){if(""===A)return;let t=null;if("string"==typeof T.subLanguage){if(!i[T.subLanguage])return void D.addText(A);t=v(T.subLanguage,A,!0,I[T.subLanguage]),I[T.subLanguage]=t._top}else t=x(A,T.subLanguage.length?T.subLanguage:null);T.relevance>0&&(k+=t.relevance),D.__addSublanguage(t._emitter,t.language)}():u(),A=""}function d(t,e){""!==t&&(D.startScope(e),D.addText(t),D.endScope())}function p(t,e){let n=1;const i=e.length-1;for(;n<=i;){if(!t._emit[n]){n++;continue}const i=w.classNameAliases[t[n]]||t[n],r=e[n];i?d(r,i):(A=r,u(),A=""),n++}}function f(t,e){return t.scope&&"string"==typeof t.scope&&D.openNode(w.classNameAliases[t.scope]||t.scope),t.beginScope&&(t.beginScope._wrap?(d(A,w.classNameAliases[t.beginScope._wrap]||t.beginScope._wrap),A=""):t.beginScope._multi&&(p(t.beginScope,e),A="")),T=Object.create(t,{parent:{value:T}}),T}function g(t,e,i){let r=function(t,e){const n=t&&t.exec(e);return n&&0===n.index}(t.endRe,i);if(r){if(t["on:end"]){const i=new n(t);t["on:end"](e,i),i.isMatchIgnored&&(r=!1)}if(r){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return g(t.parent,e,i)}function m(t){return 0===T.matcher.regexIndex?(A+=t[0],1):(O=!0,0)}function y(t){const n=t[0],i=e.substring(t.index),r=g(T,t,i);if(!r)return st;const o=T;T.endScope&&T.endScope._wrap?(h(),d(n,T.endScope._wrap)):T.endScope&&T.endScope._multi?(h(),p(T.endScope,t)):o.skip?A+=n:(o.returnEnd||o.excludeEnd||(A+=n),h(),o.excludeEnd&&(A=n));do{T.scope&&D.closeNode(),T.skip||T.subLanguage||(k+=T.relevance),T=T.parent}while(T!==r.parent);return r.starts&&f(r.starts,t),o.returnEnd?0:n.length}let _={};function b(i,o){const s=o&&o[0];if(A+=i,null==s)return h(),0;if("begin"===_.type&&"end"===o.type&&_.index===o.index&&""===s){if(A+=e.slice(o.index,o.index+1),!a){const e=new Error(`0 width match regex (${t})`);throw e.languageName=t,e.badRule=_.rule,e}return 1}if(_=o,"begin"===o.type)return function(t){const e=t[0],i=t.rule,r=new n(i),o=[i.__beforeBegin,i["on:begin"]];for(const n of o)if(n&&(n(t,r),r.isMatchIgnored))return m(e);return i.skip?A+=e:(i.excludeBegin&&(A+=e),h(),i.returnBegin||i.excludeBegin||(A=e)),f(i,t),i.returnBegin?0:e.length}(o);if("illegal"===o.type&&!r){const t=new Error('Illegal lexeme "'+s+'" for mode "'+(T.scope||"<unnamed>")+'"');throw t.mode=T,t}if("end"===o.type){const t=y(o);if(t!==st)return t}if("illegal"===o.type&&""===s)return 1;if(L>1e5&&L>3*o.index)throw new Error("potential infinite loop, way more iterations than matches");return A+=s,s.length}const w=S(t);if(!w)throw Z(s.replace("{}",t)),new Error('Unknown language: "'+t+'"');const M=nt(w);let C="",T=o||M;const I={},D=new c.__emitter(c);!function(){const t=[];for(let e=T;e!==w;e=e.parent)e.scope&&t.unshift(e.scope);t.forEach((t=>D.openNode(t)))}();let A="",k=0,E=0,L=0,O=!1;try{if(w.__emitTokens)w.__emitTokens(e,D);else{for(T.matcher.considerAll();;){L++,O?O=!1:T.matcher.considerAll(),T.matcher.lastIndex=E;const t=T.matcher.exec(e);if(!t)break;const n=b(e.substring(E,t.index),t);E=t.index+n}b(e.substring(E))}return D.finalize(),C=D.toHTML(),{language:t,value:C,relevance:k,illegal:!1,_emitter:D,_top:T}}catch(n){if(n.message&&n.message.includes("Illegal"))return{language:t,value:ot(e),illegal:!0,relevance:0,_illegalBy:{message:n.message,index:E,context:e.slice(E-100,E+100),mode:n.mode,resultSoFar:C},_emitter:D};if(a)return{language:t,value:ot(e),illegal:!1,relevance:0,errorRaised:n,_emitter:D,_top:T};throw n}}function x(t,e){e=e||c.languages||Object.keys(i);const n=function(t){const e={value:ot(t),illegal:!1,relevance:0,_top:l,_emitter:new c.__emitter(c)};return e._emitter.addText(t),e}(t),r=e.filter(S).filter(C).map((e=>v(e,t,!1)));r.unshift(n);const o=r.sort(((t,e)=>{if(t.relevance!==e.relevance)return e.relevance-t.relevance;if(t.language&&e.language){if(S(t.language).supersetOf===e.language)return 1;if(S(e.language).supersetOf===t.language)return-1}return 0})),[a,s]=o,u=a;return u.secondBest=s,u}function _(t){let e=null;const n=function(t){let e=t.className+" ";e+=t.parentNode?t.parentNode.className:"";const n=c.languageDetectRe.exec(e);if(n){const e=S(n[1]);return e||(K(s.replace("{}",n[1])),K("Falling back to no-highlight mode for this block.",t)),e?n[1]:"no-highlight"}return e.split(/\s+/).find((t=>m(t)||S(t)))}(t);if(m(n))return;if(T("before:highlightElement",{el:t,language:n}),t.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",t);if(t.children.length>0&&(c.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(t)),c.throwUnescapedHTML))throw new rt("One of your code blocks includes unescaped HTML.",t.innerHTML);e=t;const i=e.textContent,o=n?y(i,{language:n,ignoreIllegals:!0}):x(i);t.innerHTML=o.value,t.dataset.highlighted="yes",function(t,e,n){const i=e&&r[e]||n;t.classList.add("hljs"),t.classList.add(`language-${i}`)}(t,n,o.language),t.result={language:o.language,re:o.relevance,relevance:o.relevance},o.secondBest&&(t.secondBest={language:o.secondBest.language,relevance:o.secondBest.relevance}),T("after:highlightElement",{el:t,result:o,text:i})}let b=!1;function w(){"loading"!==document.readyState?document.querySelectorAll(c.cssSelector).forEach(_):b=!0}function S(t){return t=(t||"").toLowerCase(),i[t]||i[r[t]]}function M(t,{languageName:e}){"string"==typeof t&&(t=[t]),t.forEach((t=>{r[t.toLowerCase()]=e}))}function C(t){const e=S(t);return e&&!e.disableAutodetect}function T(t,e){const n=t;o.forEach((function(t){t[n]&&t[n](e)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){b&&w()}),!1),Object.assign(t,{highlight:y,highlightAuto:x,highlightAll:w,highlightElement:_,highlightBlock:function(t){return J("10.7.0","highlightBlock will be removed entirely in v12.0"),J("10.7.0","Please use highlightElement now."),_(t)},configure:function(t){c=at(c,t)},initHighlighting:()=>{w(),J("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){w(),J("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(e,n){let r=null;try{r=n(t)}catch(t){if(Z("Language definition for '{}' could not be registered.".replace("{}",e)),!a)throw t;Z(t),r=l}r.name||(r.name=e),i[e]=r,r.rawDefinition=n.bind(null,t),r.aliases&&M(r.aliases,{languageName:e})},unregisterLanguage:function(t){delete i[t];for(const e of Object.keys(r))r[e]===t&&delete r[e]},listLanguages:function(){return Object.keys(i)},getLanguage:S,registerAliases:M,autoDetection:C,inherit:at,addPlugin:function(t){!function(t){t["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=e=>{t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=e=>{t["after:highlightBlock"](Object.assign({block:e.el},e))})}(t),o.push(t)},removePlugin:function(t){const e=o.indexOf(t);-1!==e&&o.splice(e,1)}}),t.debugMode=function(){a=!1},t.safeMode=function(){a=!0},t.versionString="11.9.0",t.regex={concat:f,lookahead:h,either:g,optional:p,anyNumberOfTimes:d};for(const t in B)"object"==typeof B[t]&&e(B[t]);return Object.assign(t,B),t},ut=lt({});ut.newInstance=()=>lt({}),t.exports=ut,ut.HighlightJS=ut,ut.default=ut},430:(t,e,n)=>{"use strict";n.d(e,{A:()=>A});const i=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],r={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:t=>"undefined"!=typeof console&&console.warn(t),getWeek:t=>{const e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var n=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},o={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:t=>{const e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},a=o,s=(t,e=2)=>`000${t}`.slice(-1*e),l=t=>!0===t?1:0;function u(t,e){let n;return function(){clearTimeout(n),n=setTimeout((()=>t.apply(this,arguments)),e)}}const c=t=>t instanceof Array?t:[t];function h(t,e,n){if(!0===n)return t.classList.add(e);t.classList.remove(e)}function d(t,e,n){const i=window.document.createElement(t);return e=e||"",n=n||"",i.className=e,void 0!==n&&(i.textContent=n),i}function p(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function f(t,e){return e(t)?t:t.parentNode?f(t.parentNode,e):void 0}function g(t,e){const n=d("div","numInputWrapper"),i=d("input","numInput "+t),r=d("span","arrowUp"),o=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==e)for(const t in e)i.setAttribute(t,e[t]);return n.appendChild(i),n.appendChild(r),n.appendChild(o),n}function m(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}const y=()=>{},v=(t,e,n)=>n.months[e?"shorthand":"longhand"][t],x={D:y,F:function(t,e,n){t.setMonth(n.months.longhand.indexOf(e))},G:(t,e)=>{t.setHours(parseFloat(e))},H:(t,e)=>{t.setHours(parseFloat(e))},J:(t,e)=>{t.setDate(parseFloat(e))},K:(t,e,n)=>{t.setHours(t.getHours()%12+12*l(new RegExp(n.amPM[1],"i").test(e)))},M:function(t,e,n){t.setMonth(n.months.shorthand.indexOf(e))},S:(t,e)=>{t.setSeconds(parseFloat(e))},U:(t,e)=>new Date(1e3*parseFloat(e)),W:function(t,e,n){const i=parseInt(e),r=new Date(t.getFullYear(),0,2+7*(i-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek),r},Y:(t,e)=>{t.setFullYear(parseFloat(e))},Z:(t,e)=>new Date(e),d:(t,e)=>{t.setDate(parseFloat(e))},h:(t,e)=>{t.setHours(parseFloat(e))},i:(t,e)=>{t.setMinutes(parseFloat(e))},j:(t,e)=>{t.setDate(parseFloat(e))},l:y,m:(t,e)=>{t.setMonth(parseFloat(e)-1)},n:(t,e)=>{t.setMonth(parseFloat(e)-1)},s:(t,e)=>{t.setSeconds(parseFloat(e))},u:(t,e)=>new Date(parseFloat(e)),w:y,y:(t,e)=>{t.setFullYear(2e3+parseFloat(e))}},_={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},b={Z:t=>t.toISOString(),D:function(t,e,n){return e.weekdays.shorthand[b.w(t,e,n)]},F:function(t,e,n){return v(b.n(t,e,n)-1,!1,e)},G:function(t,e,n){return s(b.h(t,e,n))},H:t=>s(t.getHours()),J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:(t,e)=>e.amPM[l(t.getHours()>11)],M:function(t,e){return v(t.getMonth(),!0,e)},S:t=>s(t.getSeconds()),U:t=>t.getTime()/1e3,W:function(t,e,n){return n.getWeek(t)},Y:t=>s(t.getFullYear(),4),d:t=>s(t.getDate()),h:t=>t.getHours()%12?t.getHours()%12:12,i:t=>s(t.getMinutes()),j:t=>t.getDate(),l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:t=>s(t.getMonth()+1),n:t=>t.getMonth()+1,s:t=>t.getSeconds(),u:t=>t.getTime(),w:t=>t.getDay(),y:t=>String(t.getFullYear()).substring(2)},w=({config:t=r,l10n:e=o,isMobile:n=!1})=>(i,r,o)=>{const a=o||e;return void 0===t.formatDate||n?r.split("").map(((e,n,r)=>b[e]&&"\\"!==r[n-1]?b[e](i,a,t):"\\"!==e?e:"")).join(""):t.formatDate(i,r,a)},S=({config:t=r,l10n:e=o})=>(n,i,o,a)=>{if(0!==n&&!n)return;const s=a||e;let l;const u=n;if(n instanceof Date)l=new Date(n.getTime());else if("string"!=typeof n&&void 0!==n.toFixed)l=new Date(n);else if("string"==typeof n){const e=i||(t||r).dateFormat,a=String(n).trim();if("today"===a)l=new Date,o=!0;else if(/Z$/.test(a)||/GMT$/.test(a))l=new Date(n);else if(t&&t.parseDate)l=t.parseDate(n,e);else{l=t&&t.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);let i,r=[];for(let t=0,o=0,a="";t<e.length;t++){const u=e[t],c="\\"===u,h="\\"===e[t-1]||c;if(_[u]&&!h){a+=_[u];const t=new RegExp(a).exec(n);t&&(i=!0)&&r["Y"!==u?"push":"unshift"]({fn:x[u],val:t[++o]})}else c||(a+=".");r.forEach((({fn:t,val:e})=>l=t(l,e,s)||l))}l=i?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===o&&l.setHours(0,0,0,0),l;t.errorHandler(new Error(`Invalid date provided: ${u}`))};function M(t,e,n=!0){return!1!==n?new Date(t.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):t.getTime()-e.getTime()}function C(t){let e=t.defaultHour,n=t.defaultMinute,i=t.defaultSeconds;if(void 0!==t.minDate){const r=t.minDate.getHours(),o=t.minDate.getMinutes(),a=t.minDate.getSeconds();e<r&&(e=r),e===r&&n<o&&(n=o),e===r&&n===o&&i<a&&(i=t.minDate.getSeconds())}if(void 0!==t.maxDate){const r=t.maxDate.getHours(),o=t.maxDate.getMinutes();e=Math.min(e,r),e===r&&(n=Math.min(o,n)),e===r&&n===o&&(i=t.maxDate.getSeconds())}return{hours:e,minutes:n,seconds:i}}function T(t,e){const n={config:Object.assign(Object.assign({},r),D.defaultConfig),l10n:a};function o(t){return t.bind(n)}function y(){const t=n.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),void 0!==n.daysContainer){const e=(n.days.offsetWidth+1)*t.showMonths;n.daysContainer.style.width=e+"px",n.calendarContainer.style.width=e+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}}))}function x(t){if(0===n.selectedDates.length){const t=void 0===n.config.minDate||M(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),e=C(n.config);t.setHours(e.hours,e.minutes,e.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();const e="keydown"===t.type,i=m(t),r=i;void 0!==n.amPM&&i===n.amPM&&(n.amPM.textContent=n.l10n.amPM[l(n.amPM.textContent===n.l10n.amPM[0])]);const o=parseFloat(r.getAttribute("min")),a=parseFloat(r.getAttribute("max")),u=parseFloat(r.getAttribute("step")),c=parseInt(r.value,10);let h=c+u*(t.delta||(e?38===t.which?1:-1:0));if(void 0!==r.value&&2===r.value.length){const t=r===n.hourElement,e=r===n.minuteElement;h<o?(h=a+h+l(!t)+(l(t)&&l(!n.amPM)),e&&P(void 0,-1,n.hourElement)):h>a&&(h=r===n.hourElement?h-a-l(!n.amPM):o,e&&P(void 0,1,n.hourElement)),n.amPM&&t&&(1===u?h+c===23:Math.abs(h-c)>u)&&(n.amPM.textContent=n.l10n.amPM[l(n.amPM.textContent===n.l10n.amPM[0])]),r.value=s(h)}}(t);const e=n._input.value;b(),yt(),n._input.value!==e&&n._debouncedChange()}function b(){if(void 0===n.hourElement||void 0===n.minuteElement)return;let t=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,e=(parseInt(n.minuteElement.value,10)||0)%60,i=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;var r,o;void 0!==n.amPM&&(r=t,o=n.amPM.textContent,t=r%12+12*l(o===n.l10n.amPM[1]));const a=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===M(n.latestSelectedDateObj,n.config.minDate,!0);if(void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===M(n.latestSelectedDateObj,n.config.maxDate,!0)){const r=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;t=Math.min(t,r.getHours()),t===r.getHours()&&(e=Math.min(e,r.getMinutes())),e===r.getMinutes()&&(i=Math.min(i,r.getSeconds()))}if(a){const r=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;t=Math.max(t,r.getHours()),t===r.getHours()&&e<r.getMinutes()&&(e=r.getMinutes()),e===r.getMinutes()&&(i=Math.max(i,r.getSeconds()))}I(t,e,i)}function T(t){const e=t||n.latestSelectedDateObj;e&&I(e.getHours(),e.getMinutes(),e.getSeconds())}function I(t,e,i){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(t%24,e,i||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=s(n.config.time_24hr?t:(12+t)%12+12*l(t%12==0)),n.minuteElement.value=s(e),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[l(t>=12)]),void 0!==n.secondElement&&(n.secondElement.value=s(i)))}function A(t){const e=m(t),n=parseInt(e.value)+(t.delta||0);(n/1e3>1||"Enter"===t.key&&!/[^\d]/.test(n.toString()))&&X(n)}function k(t,e,i,r){return e instanceof Array?e.forEach((e=>k(t,e,i,r))):t instanceof Array?t.forEach((t=>k(t,e,i,r))):(t.addEventListener(e,i,r),void n._handlers.push({remove:()=>t.removeEventListener(e,i)}))}function E(){dt("onChange")}function L(t,e){const i=void 0!==t?n.parseDate(t):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),r=n.currentYear,o=n.currentMonth;try{void 0!==i&&(n.currentYear=i.getFullYear(),n.currentMonth=i.getMonth())}catch(t){t.message="Invalid date supplied: "+i,n.config.errorHandler(t)}e&&n.currentYear!==r&&(dt("onYearChange"),F()),!e||n.currentYear===r&&n.currentMonth===o||dt("onMonthChange"),n.redraw()}function O(t){const e=m(t);~e.className.indexOf("arrow")&&P(t,e.classList.contains("arrowUp")?1:-1)}function P(t,e,n){const i=t&&m(t),r=n||i&&i.parentNode&&i.parentNode.firstChild,o=pt("increment");o.delta=e,r&&r.dispatchEvent(o)}function N(t,e,i,r){const o=Z(e,!0),a=d("span","flatpickr-day "+t,e.getDate().toString());return a.dateObj=e,a.$i=r,a.setAttribute("aria-label",n.formatDate(e,n.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===M(e,n.now)&&(n.todayDateElem=a,a.classList.add("today"),a.setAttribute("aria-current","date")),o?(a.tabIndex=-1,ft(e)&&(a.classList.add("selected"),n.selectedDateElem=a,"range"===n.config.mode&&(h(a,"startRange",n.selectedDates[0]&&0===M(e,n.selectedDates[0],!0)),h(a,"endRange",n.selectedDates[1]&&0===M(e,n.selectedDates[1],!0)),"nextMonthDay"===t&&a.classList.add("inRange")))):a.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(t){return!("range"!==n.config.mode||n.selectedDates.length<2)&&M(t,n.selectedDates[0])>=0&&M(t,n.selectedDates[1])<=0}(e)&&!ft(e)&&a.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==t&&i%7==1&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(e)+"</span>"),dt("onDayCreate",a),a}function R(t){t.focus(),"range"===n.config.mode&&tt(t)}function z(t){const e=t>0?0:n.config.showMonths-1,i=t>0?n.config.showMonths:-1;for(let r=e;r!=i;r+=t){const e=n.daysContainer.children[r],i=t>0?0:e.children.length-1,o=t>0?e.children.length:-1;for(let n=i;n!=o;n+=t){const t=e.children[n];if(-1===t.className.indexOf("hidden")&&Z(t.dateObj))return t}}}function B(t,e){const i=K(document.activeElement||document.body),r=void 0!==t?t:i?document.activeElement:void 0!==n.selectedDateElem&&K(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&K(n.todayDateElem)?n.todayDateElem:z(e>0?1:-1);void 0===r?n._input.focus():i?function(t,e){const i=-1===t.className.indexOf("Month")?t.dateObj.getMonth():n.currentMonth,r=e>0?n.config.showMonths:-1,o=e>0?1:-1;for(let a=i-n.currentMonth;a!=r;a+=o){const r=n.daysContainer.children[a],s=i-n.currentMonth===a?t.$i+e:e<0?r.children.length-1:0,l=r.children.length;for(let n=s;n>=0&&n<l&&n!=(e>0?l:-1);n+=o){const i=r.children[n];if(-1===i.className.indexOf("hidden")&&Z(i.dateObj)&&Math.abs(t.$i-n)>=Math.abs(e))return R(i)}}n.changeMonth(o),B(z(o),0)}(r,e):R(r)}function V(t,e){const i=(new Date(t,e,1).getDay()-n.l10n.firstDayOfWeek+7)%7,r=n.utils.getDaysInMonth((e-1+12)%12,t),o=n.utils.getDaysInMonth(e,t),a=window.document.createDocumentFragment(),s=n.config.showMonths>1,l=s?"prevMonthDay hidden":"prevMonthDay",u=s?"nextMonthDay hidden":"nextMonthDay";let c=r+1-i,h=0;for(;c<=r;c++,h++)a.appendChild(N(l,new Date(t,e-1,c),c,h));for(c=1;c<=o;c++,h++)a.appendChild(N("",new Date(t,e,c),c,h));for(let r=o+1;r<=42-i&&(1===n.config.showMonths||h%7!=0);r++,h++)a.appendChild(N(u,new Date(t,e+1,r%o),r,h));const p=d("div","dayContainer");return p.appendChild(a),p}function H(){if(void 0===n.daysContainer)return;p(n.daysContainer),n.weekNumbers&&p(n.weekNumbers);const t=document.createDocumentFragment();for(let e=0;e<n.config.showMonths;e++){const i=new Date(n.currentYear,n.currentMonth,1);i.setMonth(n.currentMonth+e),t.appendChild(V(i.getFullYear(),i.getMonth()))}n.daysContainer.appendChild(t),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&tt()}function F(){if(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)return;const t=function(t){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&t<n.config.minDate.getMonth()||void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&t>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(let e=0;e<12;e++){if(!t(e))continue;const i=d("option","flatpickr-monthDropdown-month");i.value=new Date(n.currentYear,e).getMonth().toString(),i.textContent=v(e,n.config.shorthandCurrentMonth,n.l10n),i.tabIndex=-1,n.currentMonth===e&&(i.selected=!0),n.monthsDropdownContainer.appendChild(i)}}function W(){const t=d("div","flatpickr-month"),e=window.document.createDocumentFragment();let i;n.config.showMonths>1||"static"===n.config.monthSelectorType?i=d("span","cur-month"):(n.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),k(n.monthsDropdownContainer,"change",(t=>{const e=m(t),i=parseInt(e.value,10);n.changeMonth(i-n.currentMonth),dt("onMonthChange")})),F(),i=n.monthsDropdownContainer);const r=g("cur-year",{tabindex:"-1"}),o=r.getElementsByTagName("input")[0];o.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&o.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(o.setAttribute("max",n.config.maxDate.getFullYear().toString()),o.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());const a=d("div","flatpickr-current-month");return a.appendChild(i),a.appendChild(r),e.appendChild(a),t.appendChild(e),{container:t,yearElement:o,monthElement:i}}function G(){p(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(let t=n.config.showMonths;t--;){const t=W();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function j(){n.weekdayContainer?p(n.weekdayContainer):n.weekdayContainer=d("div","flatpickr-weekdays");for(let t=n.config.showMonths;t--;){const t=d("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(t)}return $(),n.weekdayContainer}function $(){if(!n.weekdayContainer)return;const t=n.l10n.firstDayOfWeek;let e=[...n.l10n.weekdays.shorthand];t>0&&t<e.length&&(e=[...e.splice(t,e.length),...e.splice(0,t)]);for(let t=n.config.showMonths;t--;)n.weekdayContainer.children[t].innerHTML=`\n <span class='flatpickr-weekday'>\n ${e.join("</span><span class='flatpickr-weekday'>")}\n </span>\n `}function U(t,e=!0){const i=e?t:t-n.currentMonth;i<0&&!0===n._hidePrevMonthArrow||i>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=i,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,dt("onYearChange"),F()),H(),dt("onMonthChange"),gt())}function q(t){return!(!n.config.appendTo||!n.config.appendTo.contains(t))||n.calendarContainer.contains(t)}function Y(t){if(n.isOpen&&!n.config.inline){const e=m(t),i=q(e),r=e===n.input||e===n.altInput||n.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(n.input)||~t.path.indexOf(n.altInput)),o="blur"===t.type?r&&t.relatedTarget&&!q(t.relatedTarget):!r&&!i&&!q(t.relatedTarget),a=!n.config.ignoredFocusElements.some((t=>t.contains(e)));o&&a&&(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&x(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&(n.clear(!1),n.redraw()))}}function X(t){if(!t||n.config.minDate&&t<n.config.minDate.getFullYear()||n.config.maxDate&&t>n.config.maxDate.getFullYear())return;const e=t,i=n.currentYear!==e;n.currentYear=e||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),i&&(n.redraw(),dt("onYearChange"),F())}function Z(t,e=!0){var i;const r=n.parseDate(t,void 0,e);if(n.config.minDate&&r&&M(r,n.config.minDate,void 0!==e?e:!n.minDateHasTime)<0||n.config.maxDate&&r&&M(r,n.config.maxDate,void 0!==e?e:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===r)return!1;const o=!!n.config.enable,a=null!==(i=n.config.enable)&&void 0!==i?i:n.config.disable;for(let t,e=0;e<a.length;e++){if(t=a[e],"function"==typeof t&&t(r))return o;if(t instanceof Date&&void 0!==r&&t.getTime()===r.getTime())return o;if("string"==typeof t){const e=n.parseDate(t,void 0,!0);return e&&e.getTime()===r.getTime()?o:!o}if("object"==typeof t&&void 0!==r&&t.from&&t.to&&r.getTime()>=t.from.getTime()&&r.getTime()<=t.to.getTime())return o}return!o}function K(t){return void 0!==n.daysContainer&&-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(t)}function J(t){t.target!==n._input||!(n.selectedDates.length>0||n._input.value.length>0)||t.relatedTarget&&q(t.relatedTarget)||n.setDate(n._input.value,!0,t.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function Q(e){const i=m(e),r=n.config.wrap?t.contains(i):i===n._input,o=n.config.allowInput,a=n.isOpen&&(!o||!r),s=n.config.inline&&r&&!o;if(13===e.keyCode&&r){if(o)return n.setDate(n._input.value,!0,i===n.altInput?n.config.altFormat:n.config.dateFormat),i.blur();n.open()}else if(q(i)||a||s){const t=!!n.timeContainer&&n.timeContainer.contains(i);switch(e.keyCode){case 13:t?(e.preventDefault(),x(),st()):lt(e);break;case 27:e.preventDefault(),st();break;case 8:case 46:r&&!n.config.allowInput&&(e.preventDefault(),n.clear());break;case 37:case 39:if(t||r)n.hourElement&&n.hourElement.focus();else if(e.preventDefault(),void 0!==n.daysContainer&&(!1===o||document.activeElement&&K(document.activeElement))){const t=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),U(t),B(z(1),0)):B(void 0,t)}break;case 38:case 40:e.preventDefault();const a=40===e.keyCode?1:-1;n.daysContainer&&void 0!==i.$i||i===n.input||i===n.altInput?e.ctrlKey?(e.stopPropagation(),X(n.currentYear-a),B(z(1),0)):t||B(void 0,7*a):i===n.currentYearElement?X(n.currentYear-a):n.config.enableTime&&(!t&&n.hourElement&&n.hourElement.focus(),x(e),n._debouncedChange());break;case 9:if(t){const t=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((t=>t)),r=t.indexOf(i);if(-1!==r){const i=t[r+(e.shiftKey?-1:1)];e.preventDefault(),(i||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(i)&&e.shiftKey&&(e.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&i===n.amPM)switch(e.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],b(),yt();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],b(),yt()}(r||q(i))&&dt("onKeyDown",e)}function tt(t){if(1!==n.selectedDates.length||t&&(!t.classList.contains("flatpickr-day")||t.classList.contains("flatpickr-disabled")))return;const e=t?t.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),i=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),r=Math.min(e,n.selectedDates[0].getTime()),o=Math.max(e,n.selectedDates[0].getTime());let a=!1,s=0,l=0;for(let t=r;t<o;t+=864e5)Z(new Date(t),!0)||(a=a||t>r&&t<o,t<i&&(!s||t>s)?s=t:t>i&&(!l||t<l)&&(l=t));for(let r=0;r<n.config.showMonths;r++){const o=n.daysContainer.children[r];for(let r=0,d=o.children.length;r<d;r++){const d=o.children[r],p=d.dateObj.getTime(),f=s>0&&p<s||l>0&&p>l;f?(d.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((t=>{d.classList.remove(t)}))):a&&!f||(["startRange","inRange","endRange","notAllowed"].forEach((t=>{d.classList.remove(t)})),void 0!==t&&(t.classList.add(e<=n.selectedDates[0].getTime()?"startRange":"endRange"),i<e&&p===i?d.classList.add("startRange"):i>e&&p===i&&d.classList.add("endRange"),p>=s&&(0===l||p<=l)&&(c=i,h=e,(u=p)>Math.min(c,h)&&u<Math.max(c,h))&&d.classList.add("inRange")))}}var u,c,h}function et(){!n.isOpen||n.config.static||n.config.inline||ot()}function nt(t){return e=>{const i=n.config[`_${t}Date`]=n.parseDate(e,n.config.dateFormat),r=n.config[`_${"min"===t?"max":"min"}Date`];void 0!==i&&(n["min"===t?"minDateHasTime":"maxDateHasTime"]=i.getHours()>0||i.getMinutes()>0||i.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((t=>Z(t))),n.selectedDates.length||"min"!==t||T(i),yt()),n.daysContainer&&(at(),void 0!==i?n.currentYearElement[t]=i.getFullYear().toString():n.currentYearElement.removeAttribute(t),n.currentYearElement.disabled=!!r&&void 0!==i&&r.getFullYear()===i.getFullYear())}}function it(){return n.config.wrap?t.querySelector("[data-input]"):t}function rt(){"object"!=typeof n.config.locale&&void 0===D.l10ns[n.config.locale]&&n.config.errorHandler(new Error(`flatpickr: invalid locale ${n.config.locale}`)),n.l10n=Object.assign(Object.assign({},D.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?D.l10ns[n.config.locale]:void 0),_.K=`(${n.l10n.amPM[0]}|${n.l10n.amPM[1]}|${n.l10n.amPM[0].toLowerCase()}|${n.l10n.amPM[1].toLowerCase()})`,void 0===Object.assign(Object.assign({},e),JSON.parse(JSON.stringify(t.dataset||{}))).time_24hr&&void 0===D.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=w(n),n.parseDate=S({config:n.config,l10n:n.l10n})}function ot(t){if("function"==typeof n.config.position)return void n.config.position(n,t);if(void 0===n.calendarContainer)return;dt("onPreCalendarPosition");const e=t||n._positionElement,i=Array.prototype.reduce.call(n.calendarContainer.children,((t,e)=>t+e.offsetHeight),0),r=n.calendarContainer.offsetWidth,o=n.config.position.split(" "),a=o[0],s=o.length>1?o[1]:null,l=e.getBoundingClientRect(),u=window.innerHeight-l.bottom,c="above"===a||"below"!==a&&u<i&&l.top>i,d=window.pageYOffset+l.top+(c?-i-2:e.offsetHeight+2);if(h(n.calendarContainer,"arrowTop",!c),h(n.calendarContainer,"arrowBottom",c),n.config.inline)return;let p=window.pageXOffset+l.left,f=!1,g=!1;"center"===s?(p-=(r-l.width)/2,f=!0):"right"===s&&(p-=r-l.width,g=!0),h(n.calendarContainer,"arrowLeft",!f&&!g),h(n.calendarContainer,"arrowCenter",f),h(n.calendarContainer,"arrowRight",g);const m=window.document.body.offsetWidth-(window.pageXOffset+l.right),y=p+r>window.document.body.offsetWidth,v=m+r>window.document.body.offsetWidth;if(h(n.calendarContainer,"rightMost",y),!n.config.static)if(n.calendarContainer.style.top=`${d}px`,y)if(v){const t=function(){let t=null;for(let e=0;e<document.styleSheets.length;e++){const n=document.styleSheets[e];try{n.cssRules}catch(t){continue}t=n;break}return null!=t?t:function(){const t=document.createElement("style");return document.head.appendChild(t),t.sheet}()}();if(void 0===t)return;const e=window.document.body.offsetWidth,i=Math.max(0,e/2-r/2),o=".flatpickr-calendar.centerMost:before",a=".flatpickr-calendar.centerMost:after",s=t.cssRules.length,u=`{left:${l.left}px;right:auto;}`;h(n.calendarContainer,"rightMost",!1),h(n.calendarContainer,"centerMost",!0),t.insertRule(`${o},${a}${u}`,s),n.calendarContainer.style.left=`${i}px`,n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=`${m}px`;else n.calendarContainer.style.left=`${p}px`,n.calendarContainer.style.right="auto"}function at(){n.config.noCalendar||n.isMobile||(F(),gt(),H())}function st(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function lt(t){t.preventDefault(),t.stopPropagation();const e=f(m(t),(t=>t.classList&&t.classList.contains("flatpickr-day")&&!t.classList.contains("flatpickr-disabled")&&!t.classList.contains("notAllowed")));if(void 0===e)return;const i=e,r=n.latestSelectedDateObj=new Date(i.dateObj.getTime()),o=(r.getMonth()<n.currentMonth||r.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=i,"single"===n.config.mode)n.selectedDates=[r];else if("multiple"===n.config.mode){const t=ft(r);t?n.selectedDates.splice(parseInt(t),1):n.selectedDates.push(r)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=r,n.selectedDates.push(r),0!==M(r,n.selectedDates[0],!0)&&n.selectedDates.sort(((t,e)=>t.getTime()-e.getTime())));if(b(),o){const t=n.currentYear!==r.getFullYear();n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth(),t&&(dt("onYearChange"),F()),dt("onMonthChange")}if(gt(),H(),yt(),o||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():R(i),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){const t="single"===n.config.mode&&!n.config.enableTime,e="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(t||e)&&st()}E()}n.parseDate=S({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=k,n._setHoursFromDate=T,n._positionCalendar=ot,n.changeMonth=U,n.changeYear=X,n.clear=function(t=!0,e=!0){if(n.input.value="",void 0!==n.altInput&&(n.altInput.value=""),void 0!==n.mobileInput&&(n.mobileInput.value=""),n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===e&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth()),!0===n.config.enableTime){const{hours:t,minutes:e,seconds:i}=C(n.config);I(t,e,i)}n.redraw(),t&&dt("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active")),dt("onClose")},n._createElement=d,n.destroy=function(){void 0!==n.config&&dt("onDestroy");for(let t=n._handlers.length;t--;)n._handlers[t].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){const t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput),n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((t=>{try{delete n[t]}catch(t){}}))},n.isEnabled=Z,n.jumpToDate=L,n.open=function(t,e=n._positionElement){if(!0===n.isMobile){if(t){t.preventDefault();const e=m(t);e&&e.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void dt("onOpen")}if(n._input.disabled||n.config.inline)return;const i=n.isOpen;n.isOpen=!0,i||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),dt("onOpen"),ot(e)),!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==t&&n.timeContainer.contains(t.relatedTarget)||setTimeout((()=>n.hourElement.select()),50))},n.redraw=at,n.set=function(t,e){if(null!==t&&"object"==typeof t){Object.assign(n.config,t);for(const e in t)void 0!==ut[e]&&ut[e].forEach((t=>t()))}else n.config[t]=e,void 0!==ut[t]?ut[t].forEach((t=>t())):i.indexOf(t)>-1&&(n.config[t]=c(e));n.redraw(),yt(!0)},n.setDate=function(t,e=!1,i=n.config.dateFormat){if(0!==t&&!t||t instanceof Array&&0===t.length)return n.clear(e);ct(t,i),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),L(void 0,e),T(),0===n.selectedDates.length&&n.clear(!1),yt(e),e&&dt("onChange")},n.toggle=function(t){if(!0===n.isOpen)return n.close();n.open(t)};const ut={locale:[rt,$],showMonths:[G,y,j],minDate:[L],maxDate:[L],clickOpens:[()=>{!0===n.config.clickOpens?(k(n._input,"focus",n.open),k(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function ct(t,e){let i=[];if(t instanceof Array)i=t.map((t=>n.parseDate(t,e)));else if(t instanceof Date||"number"==typeof t)i=[n.parseDate(t,e)];else if("string"==typeof t)switch(n.config.mode){case"single":case"time":i=[n.parseDate(t,e)];break;case"multiple":i=t.split(n.config.conjunction).map((t=>n.parseDate(t,e)));break;case"range":i=t.split(n.l10n.rangeSeparator).map((t=>n.parseDate(t,e)))}else n.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(t)}`));n.selectedDates=n.config.allowInvalidPreload?i:i.filter((t=>t instanceof Date&&Z(t,!1))),"range"===n.config.mode&&n.selectedDates.sort(((t,e)=>t.getTime()-e.getTime()))}function ht(t){return t.slice().map((t=>"string"==typeof t||"number"==typeof t||t instanceof Date?n.parseDate(t,void 0,!0):t&&"object"==typeof t&&t.from&&t.to?{from:n.parseDate(t.from,void 0),to:n.parseDate(t.to,void 0)}:t)).filter((t=>t))}function dt(t,e){if(void 0===n.config)return;const i=n.config[t];if(void 0!==i&&i.length>0)for(let t=0;i[t]&&t<i.length;t++)i[t](n.selectedDates,n.input.value,n,e);"onChange"===t&&(n.input.dispatchEvent(pt("change")),n.input.dispatchEvent(pt("input")))}function pt(t){const e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}function ft(t){for(let e=0;e<n.selectedDates.length;e++)if(0===M(n.selectedDates[e],t))return""+e;return!1}function gt(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach(((t,e)=>{const i=new Date(n.currentYear,n.currentMonth,1);i.setMonth(n.currentMonth+e),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[e].textContent=v(i.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=i.getMonth().toString(),t.value=i.getFullYear().toString()})),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function mt(t){return n.selectedDates.map((e=>n.formatDate(e,t))).filter(((t,e,i)=>"range"!==n.config.mode||n.config.enableTime||i.indexOf(t)===e)).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function yt(t=!0){void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=mt(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=mt(n.config.altFormat)),!1!==t&&dt("onValueUpdate")}function vt(t){const e=m(t),i=n.prevMonthNav.contains(e),r=n.nextMonthNav.contains(e);i||r?U(i?-1:1):n.yearElements.indexOf(e)>=0?e.select():e.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):e.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=t,n.isOpen=!1,function(){const a=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],s=Object.assign(Object.assign({},JSON.parse(JSON.stringify(t.dataset||{}))),e),l={};n.config.parseDate=s.parseDate,n.config.formatDate=s.formatDate,Object.defineProperty(n.config,"enable",{get:()=>n.config._enable,set:t=>{n.config._enable=ht(t)}}),Object.defineProperty(n.config,"disable",{get:()=>n.config._disable,set:t=>{n.config._disable=ht(t)}});const u="time"===s.mode;if(!s.dateFormat&&(s.enableTime||u)){const t=D.defaultConfig.dateFormat||r.dateFormat;l.dateFormat=s.noCalendar||u?"H:i"+(s.enableSeconds?":S":""):t+" H:i"+(s.enableSeconds?":S":"")}if(s.altInput&&(s.enableTime||u)&&!s.altFormat){const t=D.defaultConfig.altFormat||r.altFormat;l.altFormat=s.noCalendar||u?"h:i"+(s.enableSeconds?":S K":" K"):t+` h:i${s.enableSeconds?":S":""} K`}Object.defineProperty(n.config,"minDate",{get:()=>n.config._minDate,set:nt("min")}),Object.defineProperty(n.config,"maxDate",{get:()=>n.config._maxDate,set:nt("max")});const h=t=>e=>{n.config["min"===t?"_minTime":"_maxTime"]=n.parseDate(e,"H:i:S")};Object.defineProperty(n.config,"minTime",{get:()=>n.config._minTime,set:h("min")}),Object.defineProperty(n.config,"maxTime",{get:()=>n.config._maxTime,set:h("max")}),"time"===s.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0),Object.assign(n.config,l,s);for(let t=0;t<a.length;t++)n.config[a[t]]=!0===n.config[a[t]]||"true"===n.config[a[t]];i.filter((t=>void 0!==n.config[t])).forEach((t=>{n.config[t]=c(n.config[t]||[]).map(o)})),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let t=0;t<n.config.plugins.length;t++){const e=n.config.plugins[t](n)||{};for(const t in e)i.indexOf(t)>-1?n.config[t]=c(e[t]).map(o).concat(n.config[t]):void 0===s[t]&&(n.config[t]=e[t])}s.altInputClass||(n.config.altInputClass=it().className+" "+n.config.altInputClass),dt("onParseConfig")}(),rt(),n.input=it(),n.input?(n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=d(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling)),n.config.allowInput||n._input.setAttribute("readonly","readonly"),n._positionElement=n.config.positionElement||n._input):n.config.errorHandler(new Error("Invalid input element specified")),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;const t=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);t&&ct(t,n.config.dateFormat),n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]),void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i")),void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i")),n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:(t=n.currentMonth,e=n.currentYear)=>1===t&&(e%4==0&&e%100!=0||e%400==0)?29:n.l10n.daysInMonth[t]},n.isMobile||function(){const t=window.document.createDocumentFragment();if(n.calendarContainer=d("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(t.appendChild((n.monthNav=d("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=d("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=d("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,G(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:()=>n.__hidePrevMonthArrow,set(t){n.__hidePrevMonthArrow!==t&&(h(n.prevMonthNav,"flatpickr-disabled",t),n.__hidePrevMonthArrow=t)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:()=>n.__hideNextMonthArrow,set(t){n.__hideNextMonthArrow!==t&&(h(n.nextMonthNav,"flatpickr-disabled",t),n.__hideNextMonthArrow=t)}}),n.currentYearElement=n.yearElements[0],gt(),n.monthNav)),n.innerContainer=d("div","flatpickr-innerContainer"),n.config.weekNumbers){const{weekWrapper:t,weekNumbers:e}=function(){n.calendarContainer.classList.add("hasWeeks");const t=d("div","flatpickr-weekwrapper");t.appendChild(d("span","flatpickr-weekday",n.l10n.weekAbbreviation));const e=d("div","flatpickr-weeks");return t.appendChild(e),{weekWrapper:t,weekNumbers:e}}();n.innerContainer.appendChild(t),n.weekNumbers=e,n.weekWrapper=t}n.rContainer=d("div","flatpickr-rContainer"),n.rContainer.appendChild(j()),n.daysContainer||(n.daysContainer=d("div","flatpickr-days"),n.daysContainer.tabIndex=-1),H(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),t.appendChild(n.innerContainer)}n.config.enableTime&&t.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");const t=C(n.config);n.timeContainer=d("div","flatpickr-time"),n.timeContainer.tabIndex=-1;const e=d("span","flatpickr-time-separator",":"),i=g("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=i.getElementsByTagName("input")[0];const r=g("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});if(n.minuteElement=r.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),n.minuteElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():t.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(i),n.timeContainer.appendChild(e),n.timeContainer.appendChild(r),n.config.time_24hr&&n.timeContainer.classList.add("time24hr"),n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");const e=g("flatpickr-second");n.secondElement=e.getElementsByTagName("input")[0],n.secondElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():t.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(e)}return n.config.time_24hr||(n.amPM=d("span","flatpickr-am-pm",n.l10n.amPM[l((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM)),n.timeContainer}()),h(n.calendarContainer,"rangeMode","range"===n.config.mode),h(n.calendarContainer,"animate",!0===n.config.animate),h(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(t);const e=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!e&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){const t=d("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(t,n.element),t.appendChild(n.element),n.altInput&&t.appendChild(n.altInput),t.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){if(n.config.wrap&&["open","close","toggle","clear"].forEach((t=>{Array.prototype.forEach.call(n.element.querySelectorAll(`[data-${t}]`),(e=>k(e,"click",n[t])))})),n.isMobile)return void function(){const t=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=d("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=t,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr)),n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d")),n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d")),n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step"))),n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(t){}k(n.mobileInput,"change",(t=>{n.setDate(m(t).value,!1,n.mobileFormatStr),dt("onChange"),dt("onClose")}))}();const t=u(et,50);if(n._debouncedChange=u(E,300),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&k(n.daysContainer,"mouseover",(t=>{"range"===n.config.mode&&tt(m(t))})),k(window.document.body,"keydown",Q),n.config.inline||n.config.static||k(window,"resize",t),void 0!==window.ontouchstart?k(window.document,"touchstart",Y):k(window.document,"mousedown",Y),k(window.document,"focus",Y,{capture:!0}),!0===n.config.clickOpens&&(k(n._input,"focus",n.open),k(n._input,"click",n.open)),void 0!==n.daysContainer&&(k(n.monthNav,"click",vt),k(n.monthNav,["keyup","increment"],A),k(n.daysContainer,"click",lt)),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){const t=t=>m(t).select();k(n.timeContainer,["increment"],x),k(n.timeContainer,"blur",x,{capture:!0}),k(n.timeContainer,"click",O),k([n.hourElement,n.minuteElement],["focus","click"],t),void 0!==n.secondElement&&k(n.secondElement,"focus",(()=>n.secondElement&&n.secondElement.select())),void 0!==n.amPM&&k(n.amPM,"click",(t=>{x(t),E()}))}n.config.allowInput&&k(n._input,"blur",J)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&T(n.config.noCalendar?n.latestSelectedDateObj:void 0),yt(!1)),y();const a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&a&&ot(),dt("onReady")}(),n}function I(t,e){const n=Array.prototype.slice.call(t).filter((t=>t instanceof HTMLElement)),i=[];for(let t=0;t<n.length;t++){const r=n[t];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=T(r,e||{}),i.push(r._flatpickr)}catch(t){console.error(t)}}return 1===i.length?i[0]:i}n(990),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return I(this,t)},HTMLElement.prototype.flatpickr=function(t){return I([this],t)});var D=function(t,e){return"string"==typeof t?I(window.document.querySelectorAll(t),e):t instanceof Node?I([t],e):I(t,e)};D.defaultConfig={},D.l10ns={en:Object.assign({},a),default:Object.assign({},a)},D.localize=t=>{D.l10ns.default=Object.assign(Object.assign({},D.l10ns.default),t)},D.setDefaults=t=>{D.defaultConfig=Object.assign(Object.assign({},D.defaultConfig),t)},D.parseDate=S({}),D.formatDate=w({}),D.compareDates=M,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(t){return I(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof t?parseInt(t,10):t))},"undefined"!=typeof window&&(window.flatpickr=D);const A=D},458:(t,e,n)=>{var i,r,o;r=[n(692)],void 0===(o="function"==typeof(i=function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var n,i,r;return e&&e.requirejs||(e?i=e:e={},function(t){var e,o,a,s,l={},u={},c={},h={},d=Object.prototype.hasOwnProperty,p=[].slice,f=/\.js$/;function g(t,e){return d.call(t,e)}function m(t,e){var n,i,r,o,a,s,l,u,h,d,p,g=e&&e.split("/"),m=c.map,y=m&&m["*"]||{};if(t){for(a=(t=t.split("/")).length-1,c.nodeIdCompat&&f.test(t[a])&&(t[a]=t[a].replace(f,"")),"."===t[0].charAt(0)&&g&&(t=g.slice(0,g.length-1).concat(t)),h=0;h<t.length;h++)if("."===(p=t[h]))t.splice(h,1),h-=1;else if(".."===p){if(0===h||1===h&&".."===t[2]||".."===t[h-1])continue;h>0&&(t.splice(h-1,2),h-=2)}t=t.join("/")}if((g||y)&&m){for(h=(n=t.split("/")).length;h>0;h-=1){if(i=n.slice(0,h).join("/"),g)for(d=g.length;d>0;d-=1)if((r=m[g.slice(0,d).join("/")])&&(r=r[i])){o=r,s=h;break}if(o)break;!l&&y&&y[i]&&(l=y[i],u=h)}!o&&l&&(o=l,s=u),o&&(n.splice(0,s,o),t=n.join("/"))}return t}function y(e,n){return function(){var i=p.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),o.apply(t,i.concat([e,n]))}}function v(t){return function(e){l[t]=e}}function x(n){if(g(u,n)){var i=u[n];delete u[n],h[n]=!0,e.apply(t,i)}if(!g(l,n)&&!g(h,n))throw new Error("No "+n);return l[n]}function _(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function b(t){return t?_(t):[]}function w(t){return function(){return c&&c.config&&c.config[t]||{}}}a=function(t,e){var n,i,r=_(t),o=r[0],a=e[1];return t=r[1],o&&(n=x(o=m(o,a))),o?t=n&&n.normalize?n.normalize(t,(i=a,function(t){return m(t,i)})):m(t,a):(o=(r=_(t=m(t,a)))[0],t=r[1],o&&(n=x(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:n}},s={require:function(t){return y(t)},exports:function(t){var e=l[t];return void 0!==e?e:l[t]={}},module:function(t){return{id:t,uri:"",exports:l[t],config:w(t)}}},e=function(e,n,i,r){var o,c,d,p,f,m,_,w=[],S=typeof i;if(m=b(r=r||e),"undefined"===S||"function"===S){for(n=!n.length&&i.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if("require"===(c=(p=a(n[f],m)).f))w[f]=s.require(e);else if("exports"===c)w[f]=s.exports(e),_=!0;else if("module"===c)o=w[f]=s.module(e);else if(g(l,c)||g(u,c)||g(h,c))w[f]=x(c);else{if(!p.p)throw new Error(e+" missing "+c);p.p.load(p.n,y(r,!0),v(c),{}),w[f]=l[c]}d=i?i.apply(l[e],w):void 0,e&&(o&&o.exports!==t&&o.exports!==l[e]?l[e]=o.exports:d===t&&_||(l[e]=d))}else e&&(l[e]=i)},n=i=o=function(n,i,r,l,u){if("string"==typeof n)return s[n]?s[n](i):x(a(n,b(i)).f);if(!n.splice){if((c=n).deps&&o(c.deps,c.callback),!i)return;i.splice?(n=i,i=r,r=null):n=t}return i=i||function(){},"function"==typeof r&&(r=l,l=u),l?e(t,n,i,r):setTimeout((function(){e(t,n,i,r)}),4),o},o.config=function(t){return o(t)},n._defined=l,(r=function(t,e,n){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(n=e,e=[]),g(l,t)||g(u,t)||(u[t]=[t,e,n])}).amd={jQuery:!0}}(),e.requirejs=n,e.require=i,e.define=r),e.define("almond",(function(){})),e.define("jquery",[],(function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),e.define("select2/utils",["jquery"],(function(t){var e={};function n(t){var e=t.prototype,n=[];for(var i in e)"function"==typeof e[i]&&"constructor"!==i&&n.push(i);return n}e.Extend=function(t,e){var n={}.hasOwnProperty;function i(){this.constructor=t}for(var r in e)n.call(e,r)&&(t[r]=e[r]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},e.Decorate=function(t,e){var i=n(e),r=n(t);function o(){var n=Array.prototype.unshift,i=e.prototype.constructor.length,r=t.prototype.constructor;i>0&&(n.call(arguments,t.prototype.constructor),r=e.prototype.constructor),r.apply(this,arguments)}e.displayName=t.displayName,o.prototype=new function(){this.constructor=o};for(var a=0;a<r.length;a++){var s=r[a];o.prototype[s]=t.prototype[s]}for(var l=function(t){var n=function(){};t in o.prototype&&(n=o.prototype[t]);var i=e.prototype[t];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}},u=0;u<i.length;u++){var c=i[u];o.prototype[c]=l(c)}return o};var i=function(){this.listeners={}};i.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},i.prototype.trigger=function(t){var e=Array.prototype.slice,n=e.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=t,t in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].apply(this,e)},e.Observable=i,e.generateChars=function(t){for(var e="",n=0;n<t;n++)e+=Math.floor(36*Math.random()).toString(36);return e},e.bind=function(t,e){return function(){t.apply(e,arguments)}},e._convertData=function(t){for(var e in t){var n=e.split("-"),i=t;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=t[e]),i=i[o]}delete t[e]}}return t},e.hasScroll=function(e,n){var i=t(n),r=n.style.overflowX,o=n.style.overflowY;return(r!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===r||"scroll"===o||i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth)},e.escapeMarkup=function(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},e.appendMany=function(e,n){if("1.7"===t.fn.jquery.substr(0,3)){var i=t();t.map(n,(function(t){i=i.add(t)})),n=i}e.append(n)},e.__cache={};var r=0;return e.GetUniqueElementId=function(t){var e=t.getAttribute("data-select2-id");return null==e&&(t.id?(e=t.id,t.setAttribute("data-select2-id",e)):(t.setAttribute("data-select2-id",++r),e=r.toString())),e},e.StoreData=function(t,n,i){var r=e.GetUniqueElementId(t);e.__cache[r]||(e.__cache[r]={}),e.__cache[r][n]=i},e.GetData=function(n,i){var r=e.GetUniqueElementId(n);return i?e.__cache[r]&&null!=e.__cache[r][i]?e.__cache[r][i]:t(n).data(i):e.__cache[r]},e.RemoveData=function(t){var n=e.GetUniqueElementId(t);null!=e.__cache[n]&&delete e.__cache[n],t.removeAttribute("data-select2-id")},e})),e.define("select2/results",["jquery","./utils"],(function(t,e){function n(t,e,i){this.$element=t,this.data=i,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(e){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=t('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);i.append(n(r(e.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var n=0;n<t.results.length;n++){var i=t.results[n],r=this.option(i);e.push(r)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(t,e){e.find(".select2-results").append(t)},n.prototype.sort=function(t){return this.options.get("sorter")(t)},n.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");e.length>0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current((function(i){var r=t.map(i,(function(t){return t.id.toString()}));n.$results.find(".select2-results__option[aria-selected]").each((function(){var n=t(this),i=e.GetData(this,"data"),o=""+i.id;null!=i.element&&i.element.selected||null==i.element&&t.inArray(o,r)>-1?n.attr("aria-selected","true"):n.attr("aria-selected","false")}))}))},n.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},n=this.option(e);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.className="select2-results__option";var r={role:"option","aria-selected":"false"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var a in(null!=n.element&&o.call(n.element,":disabled")||null==n.element&&n.disabled)&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==n.id&&delete r["aria-selected"],null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(r.role="group",r["aria-label"]=n.text,delete r["aria-selected"]),r){var s=r[a];i.setAttribute(a,s)}if(n.children){var l=t(i),u=document.createElement("strong");u.className="select2-results__group",t(u),this.template(n,u);for(var c=[],h=0;h<n.children.length;h++){var d=n.children[h],p=this.option(d);c.push(p)}var f=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});f.append(c),l.append(u),l.append(f)}else this.template(n,i);return e.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var r=this,o=n.id+"-results";this.$results.attr("id",o),n.on("results:all",(function(t){r.clear(),r.append(t.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),n.on("results:append",(function(t){r.append(t.data),n.isOpen()&&r.setClasses()})),n.on("query",(function(t){r.hideMessages(),r.showLoading(t)})),n.on("select",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),n.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),n.on("results:select",(function(){var t=r.getHighlightedResults();if(0!==t.length){var n=e.GetData(t[0],"data");"true"==t.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:n})}})),n.on("results:previous",(function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t);if(!(n<=0)){var i=n-1;0===t.length&&(i=0);var o=e.eq(i);o.trigger("mouseenter");var a=r.$results.offset().top,s=o.offset().top,l=r.$results.scrollTop()+(s-a);0===i?r.$results.scrollTop(0):s-a<0&&r.$results.scrollTop(l)}})),n.on("results:next",(function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t)+1;if(!(n>=e.length)){var i=e.eq(n);i.trigger("mouseenter");var o=r.$results.offset().top+r.$results.outerHeight(!1),a=i.offset().top+i.outerHeight(!1),s=r.$results.scrollTop()+a-o;0===n?r.$results.scrollTop(0):a>o&&r.$results.scrollTop(s)}})),n.on("results:focus",(function(t){t.element.addClass("select2-results__option--highlighted")})),n.on("results:message",(function(t){r.displayMessage(t)})),t.fn.mousewheel&&this.$results.on("mousewheel",(function(t){var e=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-e+t.deltaY,i=t.deltaY>0&&e-t.deltaY<=0,o=t.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(n){var i=t(this),o=e.GetData(this,"data");"true"!==i.attr("aria-selected")?r.trigger("select",{originalEvent:n,data:o}):r.options.get("multiple")?r.trigger("unselect",{originalEvent:n,data:o}):r.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(n){var i=e.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:i,element:t(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]").index(t),n=this.$results.offset().top,i=t.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*t.outerHeight(!1),e<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},n.prototype.template=function(e,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),o=i(e,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=r(o):t(n).append(o)},n})),e.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),e.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,n){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var n=t('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=e.GetData(this.$element[0],"old-tabindex")?this._tabindex=e.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},i.prototype.bind=function(t,e){var i=this,r=t.id+"-results";this.container=t,this.$selection.on("focus",(function(t){i.trigger("focus",t)})),this.$selection.on("blur",(function(t){i._handleBlur(t)})),this.$selection.on("keydown",(function(t){i.trigger("keypress",t),t.which===n.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){i.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){i.update(t.data)})),t.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(t)})),t.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(t)})),t.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),t.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(e){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||t.contains(n.$selection[0],document.activeElement)||n.trigger("blur",e)}),1)},i.prototype._attachCloseHandler=function(n){t(document.body).on("mousedown.select2."+n.id,(function(n){var i=t(n.target).closest(".select2");t(".select2.select2-container--open").each((function(){this!=i[0]&&e.GetData(this,"element").select2("close")}))}))},i.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},i.prototype.position=function(t,e){e.find(".selection").append(t)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",(function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("focus",(function(e){t.isOpen()||n.$selection.trigger("focus")}))},r.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},r.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},r.prototype.selectionContainer=function(){return t("<span></span>")},r.prototype.update=function(t){if(0!==t.length){var e=t[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(e,n);n.empty().append(i);var r=e.title||e.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r})),e.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,n){function i(t,e){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,e),i.prototype.render=function(){var t=i.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},i.prototype.bind=function(e,r){var o=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(t){o.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){if(!o.isDisabled()){var i=t(this).parent(),r=n.GetData(i[0],"data");o.trigger("unselect",{originalEvent:e,data:r})}}))},i.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},i.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},i.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},i.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],i=0;i<t.length;i++){var r=t[i],o=this.selectionContainer(),a=this.display(r,o);o.append(a);var s=r.title||r.text;s&&o.attr("title",s),n.StoreData(o[0],"data",r),e.push(o)}var l=this.$selection.find(".select2-selection__rendered");n.appendMany(l,e)}},i})),e.define("select2/selection/placeholder",["../utils"],(function(t){function e(t,e,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var n=this.selectionContainer();return n.html(this.display(e)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},e.prototype.update=function(t,e){var n=1==e.length&&e[0].id!=this.placeholder.id;if(e.length>1||n)return t.call(this,e);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e})),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(t,e,n){function i(){}return i.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(t){i._handleClear(t)})),e.on("keypress",(function(t){i._handleKeyboardClear(t,e)}))},i.prototype._handleClear=function(t,e){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){e.stopPropagation();var r=n.GetData(i[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var a={data:r};if(this.trigger("clear",a),a.prevented)this.$element.val(o);else{for(var s=0;s<r.length;s++)if(a={data:r[s]},this.trigger("unselect",a),a.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(t,n,i){i.isOpen()||n.which!=e.DELETE&&n.which!=e.BACKSPACE||this._handleClear(n)},i.prototype.update=function(e,i){if(e.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var r=this.options.get("translations").get("removeAllItems"),o=t('<span class="select2-selection__clear" title="'+r()+'">×</span>');n.StoreData(o[0],"data",i),this.$selection.find(".select2-selection__rendered").prepend(o)}},i})),e.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,n){function i(t,e,n){t.call(this,e,n)}return i.prototype.render=function(e){var n=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=e.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(t,i,r){var o=this,a=i.id+"-results";t.call(this,i,r),i.on("open",(function(){o.$search.attr("aria-controls",a),o.$search.trigger("focus")})),i.on("close",(function(){o.$search.val(""),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")})),i.on("enable",(function(){o.$search.prop("disabled",!1),o._transferTabIndex()})),i.on("disable",(function(){o.$search.prop("disabled",!0)})),i.on("focus",(function(t){o.$search.trigger("focus")})),i.on("results:focus",(function(t){t.data._resultId?o.$search.attr("aria-activedescendant",t.data._resultId):o.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(t){o.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){o._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){if(t.stopPropagation(),o.trigger("keypress",t),o._keyUpPrevented=t.isDefaultPrevented(),t.which===n.BACKSPACE&&""===o.$search.val()){var i=o.$searchContainer.prev(".select2-selection__choice");if(i.length>0){var r=e.GetData(i[0],"data");o.searchRemoveChoice(r),t.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(t){o.$search.val()&&t.stopPropagation()}));var s=document.documentMode,l=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){l?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){if(l&&"input"===t.type)o.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=n.SHIFT&&e!=n.CTRL&&e!=n.ALT&&e!=n.TAB&&o.handleSearch(t)}}))},i.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},i.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var t;t=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em",this.$search.css("width",t)},i})),e.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,n,i){var r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];e.call(this,n,i),n.on("*",(function(e,n){if(-1!==t.inArray(e,o)){n=n||{};var i=t.Event("select2:"+e,{params:n});r.$element.trigger(i),-1!==t.inArray(e,a)&&(n.prevented=i.isDefaultPrevented())}}))},e})),e.define("select2/translation",["jquery","require"],(function(t,e){function n(t){this.dict=t||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(t){return this.dict[t]},n.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},n._cache={},n.loadPath=function(t){if(!(t in n._cache)){var i=e(t);n._cache[t]=i}return new n(n._cache[t])},n})),e.define("select2/diacritics",[],(function(){return{"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H",Ɥ:"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Œ:"OE",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",œ:"oe",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ώ:"ω",ς:"σ","’":"'"}})),e.define("select2/data/base",["../utils"],(function(t){function e(t,n){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,n){var i=e.id+"-result-";return i+=t.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+t.generateChars(4),i},e})),e.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,n){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,t),i.prototype.current=function(t){var e=[],i=this;this.$element.find(":selected").each((function(){var t=n(this),r=i.item(t);e.push(r)})),t(e)},i.prototype.select=function(t){var e=this;if(t.selected=!0,n(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(i){var r=[];(t=[t]).push.apply(t,i);for(var o=0;o<t.length;o++){var a=t[o].id;-1===n.inArray(a,r)&&r.push(a)}e.$element.val(r),e.$element.trigger("input").trigger("change")}));else{var i=t.id;this.$element.val(i),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,n(t.element).is("option"))return t.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(i){for(var r=[],o=0;o<i.length;o++){var a=i[o].id;a!==t.id&&-1===n.inArray(a,r)&&r.push(a)}e.$element.val(r),e.$element.trigger("input").trigger("change")}))}},i.prototype.bind=function(t,e){var n=this;this.container=t,t.on("select",(function(t){n.select(t.data)})),t.on("unselect",(function(t){n.unselect(t.data)}))},i.prototype.destroy=function(){this.$element.find("*").each((function(){e.RemoveData(this)}))},i.prototype.query=function(t,e){var i=[],r=this;this.$element.children().each((function(){var e=n(this);if(e.is("option")||e.is("optgroup")){var o=r.item(e),a=r.matches(t,o);null!==a&&i.push(a)}})),e({results:i})},i.prototype.addOptions=function(t){e.appendMany(this.$element,t)},i.prototype.option=function(t){var i;t.children?(i=document.createElement("optgroup")).label=t.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=t.text:i.innerText=t.text,void 0!==t.id&&(i.value=t.id),t.disabled&&(i.disabled=!0),t.selected&&(i.selected=!0),t.title&&(i.title=t.title);var r=n(i),o=this._normalizeItem(t);return o.element=i,e.StoreData(i,"data",o),r},i.prototype.item=function(t){var i={};if(null!=(i=e.GetData(t[0],"data")))return i;if(t.is("option"))i={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){i={text:t.prop("label"),children:[],title:t.prop("title")};for(var r=t.children("option"),o=[],a=0;a<r.length;a++){var s=n(r[a]),l=this.item(s);o.push(l)}i.children=o}return(i=this._normalizeItem(i)).element=t[0],e.StoreData(t[0],"data",i),i},i.prototype._normalizeItem=function(t){t!==Object(t)&&(t={id:t,text:t});return null!=(t=n.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),n.extend({},{selected:!1,disabled:!1},t)},i.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},i})),e.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,n){function i(t,e){this._dataToConvert=e.get("data")||[],i.__super__.constructor.call(this,t,e)}return e.Extend(i,t),i.prototype.bind=function(t,e){i.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,n){return n.value==t.id.toString()}));0===e.length&&(e=this.option(t),this.addOptions(e)),i.__super__.select.call(this,t)},i.prototype.convertToOptions=function(t){var i=this,r=this.$element.find("option"),o=r.map((function(){return i.item(n(this)).id})).get(),a=[];function s(t){return function(){return n(this).val()==t.id}}for(var l=0;l<t.length;l++){var u=this._normalizeItem(t[l]);if(n.inArray(u.id,o)>=0){var c=r.filter(s(u)),h=this.item(c),d=n.extend(!0,{},u,h),p=this.option(d);c.replaceWith(p)}else{var f=this.option(u);if(u.children){var g=this.convertToOptions(u.children);e.appendMany(f,g)}a.push(f)}}return a},i})),e.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,n){function i(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,t,e)}return e.Extend(i,t),i.prototype._applyDefaults=function(t){var e={data:function(t){return n.extend({},t,{q:t.term})},transport:function(t,e,i){var r=n.ajax(t);return r.then(e),r.fail(i),r}};return n.extend({},e,t,!0)},i.prototype.processResults=function(t){return t},i.prototype.query=function(t,e){var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=n.extend({type:"GET"},this.ajaxOptions);function o(){var o=r.transport(r,(function(r){var o=i.processResults(r,t);i.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)}),(function(){(!("status"in o)||0!==o.status&&"0"!==o.status)&&i.trigger("results:message",{message:"errorLoading"})}));i._request=o}"function"==typeof r.url&&(r.url=r.url.call(this.$element,t)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},i})),e.define("select2/data/tags",["jquery"],(function(t){function e(e,n,i){var r=i.get("tags"),o=i.get("createTag");void 0!==o&&(this.createTag=o);var a=i.get("insertTag");if(void 0!==a&&(this.insertTag=a),e.call(this,n,i),t.isArray(r))for(var s=0;s<r.length;s++){var l=r[s],u=this._normalizeItem(l),c=this.option(u);this.$element.append(c)}}return e.prototype.query=function(t,e,n){var i=this;this._removeOldTags(),null!=e.term&&null==e.page?t.call(this,e,(function t(r,o){for(var a=r.results,s=0;s<a.length;s++){var l=a[s],u=null!=l.children&&!t({results:l.children},!0);if((l.text||"").toUpperCase()===(e.term||"").toUpperCase()||u)return!o&&(r.data=a,void n(r))}if(o)return!0;var c=i.createTag(e);if(null!=c){var h=i.option(c);h.attr("data-select2-tag",!0),i.addOptions([h]),i.insertTag(a,c)}r.results=a,n(r)})):t.call(this,e,n)},e.prototype.createTag=function(e,n){var i=t.trim(n.term);return""===i?null:{id:i,text:i}},e.prototype.insertTag=function(t,e,n){e.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each((function(){this.selected||t(this).remove()}))},e})),e.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),t.call(this,e,n)}return e.prototype.bind=function(t,e,n){t.call(this,e,n),this.$search=e.dropdown.$search||e.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,n,i){var r=this;n.term=n.term||"";var o=this.tokenizer(n,this.options,(function(e){var n=r._normalizeItem(e);if(!r.$element.find("option").filter((function(){return t(this).val()===n.id})).length){var i=r.option(n);i.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([i])}!function(t){r.trigger("select",{data:t})}(n)}));o.term!==n.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),n.term=o.term),e.call(this,n,i)},e.prototype.tokenizer=function(e,n,i,r){for(var o=i.get("tokenSeparators")||[],a=n.term,s=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};s<a.length;){var u=a[s];if(-1!==t.inArray(u,o)){var c=a.substr(0,s),h=l(t.extend({},n,{term:c}));null!=h?(r(h),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},e})),e.define("select2/data/minimumInputLength",[],(function(){function t(t,e,n){this.minimumInputLength=n.get("minimumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t})),e.define("select2/data/maximumInputLength",[],(function(){function t(t,e,n){this.maximumInputLength=n.get("maximumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",this.maximumInputLength>0&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t})),e.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("select",(function(){i._checkIfMaximumSelected()}))},t.prototype.query=function(t,e,n){var i=this;this._checkIfMaximumSelected((function(){t.call(i,e,n)}))},t.prototype._checkIfMaximumSelected=function(t,e){var n=this;this.current((function(t){var i=null!=t?t.length:0;n.maximumSelectionLength>0&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):e&&e()}))},t})),e.define("select2/dropdown",["jquery","./utils"],(function(t,e){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),e.define("select2/dropdown/search",["jquery","../utils"],(function(t,e){function n(){}return n.prototype.render=function(e){var n=e.call(this),i=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(e,n,i){var r=this,o=n.id+"-results";e.call(this,n,i),this.$search.on("keydown",(function(t){r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){r.handleSearch(t)})),n.on("open",(function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",o),r.$search.trigger("focus"),window.setTimeout((function(){r.$search.trigger("focus")}),0)})),n.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||r.$search.trigger("focus")})),n.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(r.showSearch(t)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))})),n.on("results:focus",(function(t){t.data._resultId?r.$search.attr("aria-activedescendant",t.data._resultId):r.$search.removeAttr("aria-activedescendant")}))},n.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.showSearch=function(t,e){return!0},n})),e.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,i)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),i=e.length-1;i>=0;i--){var r=e[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},t})),e.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,n,i){this.lastParams={},t.call(this,e,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("query",(function(t){i.lastParams=t,i.loading=!0})),e.on("query:append",(function(t){i.lastParams=t,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=t.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore()},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return e.html(n(this.lastParams)),e},e})),e.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function n(e,n,i){this.$dropdownParent=t(i.get("dropdownParent")||document.body),e.call(this,n,i)}return n.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(e),i._bindContainerResultHandlers(e)})),e.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},n.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(e){var n=t("<span></span>"),i=e.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(t,e){if(!this._containerResultsHandlersBound){var n=this;e.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var r=this,o="scroll.select2."+i.id,a="resize.select2."+i.id,s="orientationchange.select2."+i.id,l=this.$container.parents().filter(e.hasScroll);l.each((function(){e.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),l.on(o,(function(n){var i=e.GetData(this,"select2-scroll-position");t(this).scrollTop(i.y)})),t(window).on(o+" "+a+" "+s,(function(t){r._positionDropdown(),r._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,o="resize.select2."+i.id,a="orientationchange.select2."+i.id;this.$container.parents().filter(e.hasScroll).off(r),t(window).off(r+" "+o+" "+a)},n.prototype._positionDropdown=function(){var e=t(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),r=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=o.top,a.bottom=o.top+a.height;var s=this.$dropdown.outerHeight(!1),l=e.scrollTop(),u=e.scrollTop()+e.height(),c=l<o.top-s,h=u>o.bottom+s,d={left:o.left,top:a.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var f={top:0,left:0};(t.contains(document.body,p[0])||p[0].isConnected)&&(f=p.offset()),d.top-=f.top,d.left-=f.left,n||i||(r="below"),h||!c||n?!c&&h&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(d.top=a.top-f.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},n.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},n.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),e.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(e){for(var n=0,i=0;i<e.length;i++){var r=e[i];r.children?n+=t(r.children):n++}return n}function e(t,e,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,n,i)}return e.prototype.showSearch=function(e,n){return!(t(n.data.results)<this.minimumResultsForSearch)&&e.call(this,n)},e})),e.define("select2/dropdown/selectOnClose",["../utils"],(function(t){function e(){}return e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("close",(function(t){i._handleSelectOnClose(t)}))},e.prototype._handleSelectOnClose=function(e,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var o=t.GetData(r[0],"data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},e})),e.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("select",(function(t){i._selectTriggered(t)})),e.on("unselect",(function(t){i._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var n=e.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:e})},t})),e.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,n="Please delete "+e+" character";return 1!=e&&(n+="s"),n},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}})),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(t,e,n,i,r,o,a,s,l,u,c,h,d,p,f,g,m,y,v,x,_,b,w,S,M,C,T,I,D){function A(){this.reset()}return A.prototype.apply=function(c){if(null==(c=t.extend(!0,{},this.defaults,c)).dataAdapter){if(null!=c.ajax?c.dataAdapter=f:null!=c.data?c.dataAdapter=p:c.dataAdapter=d,c.minimumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,y)),c.maximumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,v)),c.maximumSelectionLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,x)),c.tags&&(c.dataAdapter=u.Decorate(c.dataAdapter,g)),null==c.tokenSeparators&&null==c.tokenizer||(c.dataAdapter=u.Decorate(c.dataAdapter,m)),null!=c.query){var h=e(c.amdBase+"compat/query");c.dataAdapter=u.Decorate(c.dataAdapter,h)}if(null!=c.initSelection){var D=e(c.amdBase+"compat/initSelection");c.dataAdapter=u.Decorate(c.dataAdapter,D)}}if(null==c.resultsAdapter&&(c.resultsAdapter=n,null!=c.ajax&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,S)),null!=c.placeholder&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,w)),c.selectOnClose&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,T))),null==c.dropdownAdapter){if(c.multiple)c.dropdownAdapter=_;else{var A=u.Decorate(_,b);c.dropdownAdapter=A}if(0!==c.minimumResultsForSearch&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,C)),c.closeOnSelect&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,I)),null!=c.dropdownCssClass||null!=c.dropdownCss||null!=c.adaptDropdownCssClass){var k=e(c.amdBase+"compat/dropdownCss");c.dropdownAdapter=u.Decorate(c.dropdownAdapter,k)}c.dropdownAdapter=u.Decorate(c.dropdownAdapter,M)}if(null==c.selectionAdapter){if(c.multiple?c.selectionAdapter=r:c.selectionAdapter=i,null!=c.placeholder&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,o)),c.allowClear&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,a)),c.multiple&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,s)),null!=c.containerCssClass||null!=c.containerCss||null!=c.adaptContainerCssClass){var E=e(c.amdBase+"compat/containerCss");c.selectionAdapter=u.Decorate(c.selectionAdapter,E)}c.selectionAdapter=u.Decorate(c.selectionAdapter,l)}c.language=this._resolveLanguage(c.language),c.language.push("en");for(var L=[],O=0;O<c.language.length;O++){var P=c.language[O];-1===L.indexOf(P)&&L.push(P)}return c.language=L,c.translations=this._processTranslations(c.language,c.debug),c},A.prototype.reset=function(){function e(t){return t.replace(/[^\u0000-\u007E]/g,(function(t){return h[t]||t}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:{},matcher:function n(i,r){if(""===t.trim(i.term))return r;if(r.children&&r.children.length>0){for(var o=t.extend(!0,{},r),a=r.children.length-1;a>=0;a--)null==n(i,r.children[a])&&o.children.splice(a,1);return o.children.length>0?o:n(i,o)}var s=e(r.text).toUpperCase(),l=e(i.term).toUpperCase();return s.indexOf(l)>-1?r:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},A.prototype.applyFromElement=function(t,e){var n=t.language,i=this.defaults.language,r=e.prop("lang"),o=e.closest("[lang]").prop("lang"),a=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));return t.language=a,t},A.prototype._resolveLanguage=function(e){if(!e)return[];if(t.isEmptyObject(e))return[];if(t.isPlainObject(e))return[e];var n;n=t.isArray(e)?e:[e];for(var i=[],r=0;r<n.length;r++)if(i.push(n[r]),"string"==typeof n[r]&&n[r].indexOf("-")>0){var o=n[r].split("-")[0];i.push(o)}return i},A.prototype._processTranslations=function(e,n){for(var i=new c,r=0;r<e.length;r++){var o=new c,a=e[r];if("string"==typeof a)try{o=c.loadPath(a)}catch(t){try{a=this.defaults.amdLanguageBase+a,o=c.loadPath(a)}catch(t){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else o=t.isPlainObject(a)?new c(a):a;i.extend(o)}return i},A.prototype.set=function(e,n){var i={};i[t.camelCase(e)]=n;var r=u._convertData(i);t.extend(!0,this.defaults,r)},new A})),e.define("select2/options",["require","jquery","./defaults","./utils"],(function(t,e,n,i){function r(e,r){if(this.options=e,null!=r&&this.fromElement(r),null!=r&&(this.options=n.applyFromElement(this.options,r)),this.options=n.apply(this.options),r&&r.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,o)}}return r.prototype.fromElement=function(t){var n=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),i.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(t[0],"data",i.GetData(t[0],"select2Tags")),i.StoreData(t[0],"tags",!0)),i.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",i.GetData(t[0],"ajaxUrl")),i.StoreData(t[0],"ajax-Url",i.GetData(t[0],"ajaxUrl")));var r={};function o(t,e){return e.toUpperCase()}for(var a=0;a<t[0].attributes.length;a++){var s=t[0].attributes[a].name,l="data-";if(s.substr(0,5)==l){var u=s.substring(5),c=i.GetData(t[0],u);r[u.replace(/-([a-z])/g,o)]=c}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(r=e.extend(!0,{},t[0].dataset,r));var h=e.extend(!0,{},i.GetData(t[0]),r);for(var d in h=i._convertData(h))e.inArray(d,n)>-1||(e.isPlainObject(this.options[d])?e.extend(this.options[d],h[d]):this.options[d]=h[d]);return this},r.prototype.get=function(t){return this.options[t]},r.prototype.set=function(t,e){this.options[t]=e},r})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,n,i){var r=function(t,i){null!=n.GetData(t[0],"select2")&&n.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),i=i||{},this.options=new e(i,t),r.__super__.constructor.call(this);var o=t.attr("tabindex")||0;n.StoreData(t[0],"old-tabindex",o),t.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(t,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var u=this.options.get("dropdownAdapter");this.dropdown=new u(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var h=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){h.trigger("selection:update",{data:t})})),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(t[0],"select2",this),t.data("select2",this)};return n.Extend(r,n.Observable),r.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},r.prototype._resolveWidth=function(t,e){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var i=this._resolveWidth(t,"style");return null!=i?i:this._resolveWidth(t,"element")}if("element"==e){var r=t.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==e){var o=t.attr("style");if("string"!=typeof o)return null;for(var a=o.split(";"),s=0,l=a.length;s<l;s+=1){var u=a[s].replace(/\s/g,"").match(n);if(null!==u&&u.length>=1)return u[1]}return null}return"computedstyle"==e?window.getComputedStyle(t[0]).width:e},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",(function(){t.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))})),this.$element.on("focus.select2",(function(e){t.trigger("focus",e)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e((function(e){t._syncA(),t._syncS(null,e)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},r.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,n){t.trigger(e,n)}))},r.prototype._registerSelectionEvents=function(){var e=this,n=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(i,r){-1===t.inArray(i,n)&&e.trigger(i,r)}))},r.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,n){t.trigger(e,n)}))},r.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,n){t.trigger(e,n)}))},r.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container.addClass("select2-container--open")})),this.on("close",(function(){t.$container.removeClass("select2-container--open")})),this.on("enable",(function(){t.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){t.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){t.$container.removeClass("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(n){t.trigger("results:all",{data:n,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(n){t.trigger("results:append",{data:n,query:e})}))})),this.on("keypress",(function(e){var n=e.which;t.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&e.altKey?(t.close(e),e.preventDefault()):n===i.ENTER?(t.trigger("results:select",{}),e.preventDefault()):n===i.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):n===i.UP?(t.trigger("results:previous",{}),e.preventDefault()):n===i.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e,n){var i=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(n)if(n.addedNodes&&n.addedNodes.length>0)for(var o=0;o<n.addedNodes.length;o++)n.addedNodes[o].selected&&(i=!0);else n.removedNodes&&n.removedNodes.length>0?i=!0:t.isArray(n)&&t.each(n,(function(t,e){if(r._isChangeMutation(t,e))return i=!0,!1}));else i=!0;return i}},r.prototype._syncSubtree=function(t,e){var n=this._isChangeMutation(t,e),i=this;n&&this.dataAdapter.current((function(t){i.trigger("selection:update",{data:t})}))},r.prototype.trigger=function(t,e){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===e&&(e={}),t in i){var o=i[t],a={prevented:!1,name:t,args:e};if(n.call(this,o,a),a.prevented)return void(e.prevented=!0)}n.call(this,t,e)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(t){this.isOpen()&&this.trigger("close",{originalEvent:t})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current((function(e){t=e})),t},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var n=e[0];t.isArray(n)&&(n=t.map(n,(function(t){return t.toString()}))),this.$element.val(n).trigger("input").trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),n.StoreData(e[0],"element",this.$element),e},r})),e.define("jquery-mousewheel",["jquery"],(function(t){return t})),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(t,e,n,i,r){if(null==t.fn.select2){var o=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var i=t.extend(!0,{},e);new n(t(this),i)})),this;if("string"==typeof e){var i,a=Array.prototype.slice.call(arguments,1);return this.each((function(){var t=r.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),i=t[e].apply(t,a)})),t.inArray(e,o)>-1?this:i}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=i),n})),{define:e.define,require:e.require}}(),n=e.require("jquery.select2");return t.fn.select2.amd=e,n})?i.apply(e,r):i)||(t.exports=o)},576:function(t){var e;e=function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return x}});var i=n(279),r=n.n(i),o=n(370),a=n.n(o),s=n(817),l=n.n(s);function u(t){try{return document.execCommand(t)}catch(t){return!1}}var c=function(t){var e=l()(t);return u("cut"),e},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";if("string"==typeof t){var i=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(i,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(i),n=l()(i),u("copy"),i.remove()}else n=l()(t),u("copy");return n};function d(t){return d="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},d(t)}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},p(t)}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function g(t,e){return g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},g(t,e)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function y(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var 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&&g(t,e)}(l,t);var e,n,i,r,o,s=(r=l,o=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}}(),function(){var t,e=m(r);if(o){var n=m(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,t)});function l(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(n=s.call(this)).resolveOptions(e),n.listenClick(t),n}return e=l,n=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===p(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,i=t.container,r=t.target,o=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r){if(!r||"object"!==d(r)||1!==r.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&r.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?h(o,{container:i}):r?"cut"===n?c(r):h(r,{container:i}):void 0}({action:this.action(e),container:this.container,target:this.target(e),text:this.text(e)});this.emit(n?"success":"error",{action:this.action,text:n,trigger:e,clearSelection:function(){e&&e.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return y("action",t)}},{key:"defaultTarget",value:function(t){var e=y("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return y("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],i=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return h(t,e)}},{key:"cut",value:function(t){return c(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}],n&&f(e.prototype,n),i&&f(e,i),l}(r()),x=v},828:function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var i=n(828);function r(t,e,n,i,r){var a=o.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function o(t,e,n,r){return function(n){n.delegateTarget=i(n.target,e),n.delegateTarget&&r.call(t,n)}}t.exports=function(t,e,n,i,o){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return r(t,e,n,i,o)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var i=n(879),r=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!i.string(e))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(i.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(i.string(t))return function(t,e,n){return r(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(t),i.removeAllRanges(),i.addRange(r),e=i.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var i=this;function r(){i.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],r=[];if(i&&e)for(var o=0,a=i.length;o<a;o++)i[o].fn!==e&&i[o].fn._!==e&&r.push(i[o]);return r.length?n[t]=r:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{}};return t[i](r,r.exports,n),r.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n(686)}().default},t.exports=e()},692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},u=o.push,c=o.indexOf,h={},d=h.toString,p=h.hasOwnProperty,f=p.toString,g=f.call(Object),m={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},v=function(t){return null!=t&&t===t.window},x=i.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function b(t,e,n){var i,r,o=(n=n||x).createElement("script");if(o.text=t,e)for(i in _)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?h[d.call(t)]||"object":typeof t}var S="3.7.1",M=/HTML$/i,C=function(t,e){return new C.fn.init(t,e)};function T(t){var e=!!t&&"length"in t&&t.length,n=w(t);return!y(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function I(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}C.fn=C.prototype={jquery:S,constructor:C,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=C.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return C.each(this,t)},map:function(t){return this.pushStack(C.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(C.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},C.extend=C.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(u&&i&&(C.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[e],o=r&&!Array.isArray(n)?[]:r||C.isPlainObject(n)?n:{},r=!1,a[e]=C.extend(u,o,i)):void 0!==i&&(a[e]=i));return a},C.extend({expando:"jQuery"+(S+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==d.call(t)||(e=a(t))&&("function"!=typeof(n=p.call(e,"constructor")&&e.constructor)||f.call(n)!==g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){b(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(T(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=C.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(T(Object(t))?C.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:c.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!M.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,a=[];if(T(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=o[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){h["[object "+e+"]"]=e.toLowerCase()}));var D=o.pop,A=o.sort,k=o.splice,E="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g");C.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function P(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}C.escapeSelector=function(t){return(t+"").replace(O,P)};var N=x,R=u;!function(){var t,e,n,r,a,l,u,h,d,f,g=R,y=C.expando,v=0,x=0,_=tt(),b=tt(),w=tt(),S=tt(),M=function(t,e){return t===e&&(a=!0),0},T="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",P="\\["+E+"*("+O+")(?:"+E+"*([*^$|!~]?=)"+E+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+E+"*\\]",z=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",B=new RegExp(E+"+","g"),V=new RegExp("^"+E+"*,"+E+"*"),H=new RegExp("^"+E+"*([>+~]|"+E+")"+E+"*"),F=new RegExp(E+"|>"),W=new RegExp(z),G=new RegExp("^"+O+"$"),j={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),bool:new RegExp("^(?:"+T+")$","i"),needsContext:new RegExp("^"+E+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\([^\\r\\n\\f])","g"),Z=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},K=function(){lt()},J=dt((function(t){return!0===t.disabled&&I(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(N.childNodes),N.childNodes),o[N.childNodes.length].nodeType}catch(t){g={apply:function(t,e){R.apply(t,s.call(e))},call:function(t){R.apply(t,s.call(arguments,1))}}}function Q(t,e,n,i){var r,o,a,s,u,c,p,f=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!i&&(lt(e),e=e||l,h)){if(11!==v&&(u=q.exec(t)))if(r=u[1]){if(9===v){if(!(a=e.getElementById(r)))return n;if(a.id===r)return g.call(n,a),n}else if(f&&(a=f.getElementById(r))&&Q.contains(e,a)&&a.id===r)return g.call(n,a),n}else{if(u[2])return g.apply(n,e.getElementsByTagName(t)),n;if((r=u[3])&&e.getElementsByClassName)return g.apply(n,e.getElementsByClassName(r)),n}if(!(S[t+" "]||d&&d.test(t))){if(p=t,f=e,1===v&&(F.test(t)||H.test(t))){for((f=Y.test(t)&&st(e.parentNode)||e)==e&&m.scope||((s=e.getAttribute("id"))?s=C.escapeSelector(s):e.setAttribute("id",s=y)),o=(c=ct(t)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+ht(c[o]);p=c.join(",")}try{return g.apply(n,f.querySelectorAll(p)),n}catch(e){S(t,!0)}finally{s===y&&e.removeAttribute("id")}}}return vt(t.replace(L,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[y]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return I(e,"input")&&e.type===t}}function rt(t){return function(e){return(I(e,"input")||I(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function at(t){return et((function(e){return e=+e,et((function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function st(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:N;return i!=l&&9===i.nodeType&&i.documentElement?(u=(l=i).documentElement,h=!C.isXMLDoc(l),f=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&N!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",K),m.getById=nt((function(t){return u.appendChild(t).id=C.expando,!l.getElementsByName||!l.getElementsByName(C.expando).length})),m.disconnectedMatch=nt((function(t){return f.call(t,"*")})),m.scope=nt((function(){return l.querySelectorAll(":scope")})),m.cssHas=nt((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),m.getById?(e.filter.ID=function(t){var e=t.replace(X,Z);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(X,Z);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&h)return e.getElementsByClassName(t)},d=[],nt((function(t){var e;u.appendChild(t).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||d.push("\\["+E+"*(?:value|"+T+")"),t.querySelectorAll("[id~="+y+"-]").length||d.push("~="),t.querySelectorAll("a#"+y+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),u.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+E+"*name"+E+"*="+E+"*(?:''|\"\")")})),m.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),M=function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==N&&Q.contains(N,t)?-1:e===l||e.ownerDocument==N&&Q.contains(N,e)?1:r?c.call(r,t)-c.call(r,e):0:4&n?-1:1)},l):l}for(t in Q.matches=function(t,e){return Q(t,null,null,e)},Q.matchesSelector=function(t,e){if(lt(t),h&&!S[e+" "]&&(!d||!d.test(e)))try{var n=f.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){S(e,!0)}return Q(e,l,null,[t]).length>0},Q.contains=function(t,e){return(t.ownerDocument||t)!=l&<(t),C.contains(t,e)},Q.attr=function(t,n){(t.ownerDocument||t)!=l&<(t);var i=e.attrHandle[n.toLowerCase()],r=i&&p.call(e.attrHandle,n.toLowerCase())?i(t,n,!h):void 0;return void 0!==r?r:t.getAttribute(n)},Q.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},C.uniqueSort=function(t){var e,n=[],i=0,o=0;if(a=!m.sortStable,r=!m.sortStable&&s.call(t,0),A.call(t,M),a){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)k.call(t,n[i],1)}return r=null,t},C.fn.uniqueSort=function(){return this.pushStack(C.uniqueSort(s.apply(this)))},e=C.expr={cacheLength:50,createPseudo:et,match:j,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(X,Z),t[3]=(t[3]||t[4]||t[5]||"").replace(X,Z),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Q.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Q.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return j.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=ct(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(X,Z).toLowerCase();return"*"===t?function(){return!0}:function(t){return I(t,e)}},CLASS:function(t){var e=_[t+" "];return e||(e=new RegExp("(^|"+E+")"+t+"("+E+"|$)"))&&_(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=Q.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(B," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,h,d,p,f=o!==a?"nextSibling":"previousSibling",g=e.parentNode,m=s&&e.nodeName.toLowerCase(),x=!l&&!s,_=!1;if(g){if(o){for(;f;){for(h=e;h=h[f];)if(s?I(h,m):1===h.nodeType)return!1;p=f="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&x){for(_=(d=(u=(c=g[y]||(g[y]={}))[t]||[])[0]===v&&u[1])&&u[2],h=d&&g.childNodes[d];h=++d&&h&&h[f]||(_=d=0)||p.pop();)if(1===h.nodeType&&++_&&h===e){c[t]=[v,d,_];break}}else if(x&&(_=d=(u=(c=e[y]||(e[y]={}))[t]||[])[0]===v&&u[1]),!1===_)for(;(h=++d&&h&&h[f]||(_=d=0)||p.pop())&&(!(s?I(h,m):1===h.nodeType)||!++_||(x&&((c=h[y]||(h[y]={}))[t]=[v,_]),h!==e)););return(_-=r)===i||_%i==0&&_/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Q.error("unsupported pseudo: "+t);return r[y]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var i,o=r(t,n),a=o.length;a--;)t[i=c.call(t,o[a])]=!(e[i]=o[a])})):function(t){return r(t,0,i)}):r}},pseudos:{not:et((function(t){var e=[],n=[],i=yt(t.replace(L,"$1"));return i[y]?et((function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return Q(t,e).length>0}})),contains:et((function(t){return t=t.replace(X,Z),function(e){return(e.textContent||C.text(e)).indexOf(t)>-1}})),lang:et((function(t){return G.test(t||"")||Q.error("unsupported lang: "+t),t=t.replace(X,Z).toLowerCase(),function(e){var n;do{if(n=h?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===u},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return I(t,"input")&&!!t.checked||I(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return U.test(t.nodeName)},input:function(t){return $.test(t.nodeName)},button:function(t){return I(t,"input")&&"button"===t.type||I(t,"button")},text:function(t){var e;return I(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:at((function(){return[0]})),last:at((function(t,e){return[e-1]})),eq:at((function(t,e,n){return[n<0?n+e:n]})),even:at((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:at((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:at((function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:at((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function ut(){}function ct(t,n){var i,r,o,a,s,l,u,c=b[t+" "];if(c)return n?0:c.slice(0);for(s=t,l=[],u=e.preFilter;s;){for(a in i&&!(r=V.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=H.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(L," ")}),s=s.slice(i.length)),e.filter)!(r=j[a].exec(s))||u[a]&&!(r=u[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?Q.error(t):b(t,l).slice(0)}function ht(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function dt(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,s=x++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,l){var u,c,h=[v,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(c=e[y]||(e[y]={}),r&&I(e,r))e=e[i]||e;else{if((u=c[o])&&u[0]===v&&u[1]===s)return h[2]=u[2];if(c[o]=h,h[2]=t(e,n,l))return!0}return!1}}function pt(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function ft(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),u&&e.push(s)));return a}function gt(t,e,n,i,r,o){return i&&!i[y]&&(i=gt(i)),r&&!r[y]&&(r=gt(r,o)),et((function(o,a,s,l){var u,h,d,p,f=[],m=[],y=a.length,v=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)Q(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),x=!t||!o&&e?v:ft(v,f,t,s,l);if(n?n(x,p=r||(o?t:y||i)?[]:a,s,l):p=x,i)for(u=ft(p,m),i(u,[],s,l),h=u.length;h--;)(d=u[h])&&(p[m[h]]=!(x[m[h]]=d));if(o){if(r||t){if(r){for(u=[],h=p.length;h--;)(d=p[h])&&u.push(x[h]=d);r(null,p=[],u,l)}for(h=p.length;h--;)(d=p[h])&&(u=r?c.call(o,d):f[h])>-1&&(o[u]=!(a[u]=d))}}else p=ft(p===a?p.splice(y,p.length):p),r?r(null,a,p,l):g.apply(a,p)}))}function mt(t){for(var i,r,o,a=t.length,s=e.relative[t[0].type],l=s||e.relative[" "],u=s?1:0,h=dt((function(t){return t===i}),l,!0),d=dt((function(t){return c.call(i,t)>-1}),l,!0),p=[function(t,e,r){var o=!s&&(r||e!=n)||((i=e).nodeType?h(t,e,r):d(t,e,r));return i=null,o}];u<a;u++)if(r=e.relative[t[u].type])p=[dt(pt(p),r)];else{if((r=e.filter[t[u].type].apply(null,t[u].matches))[y]){for(o=++u;o<a&&!e.relative[t[o].type];o++);return gt(u>1&&pt(p),u>1&&ht(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(L,"$1"),r,u<o&&mt(t.slice(u,o)),o<a&&mt(t=t.slice(o)),o<a&&ht(t))}p.push(r)}return pt(p)}function yt(t,i){var r,o=[],a=[],s=w[t+" "];if(!s){for(i||(i=ct(t)),r=i.length;r--;)(s=mt(i[r]))[y]?o.push(s):a.push(s);s=w(t,function(t,i){var r=i.length>0,o=t.length>0,a=function(a,s,u,c,d){var p,f,m,y=0,x="0",_=a&&[],b=[],w=n,S=a||o&&e.find.TAG("*",d),M=v+=null==w?1:Math.random()||.1,T=S.length;for(d&&(n=s==l||s||d);x!==T&&null!=(p=S[x]);x++){if(o&&p){for(f=0,s||p.ownerDocument==l||(lt(p),u=!h);m=t[f++];)if(m(p,s||l,u)){g.call(c,p);break}d&&(v=M)}r&&((p=!m&&p)&&y--,a&&_.push(p))}if(y+=x,r&&x!==y){for(f=0;m=i[f++];)m(_,b,s,u);if(a){if(y>0)for(;x--;)_[x]||b[x]||(b[x]=D.call(c));b=ft(b)}g.apply(c,b),d&&!a&&b.length>0&&y+i.length>1&&C.uniqueSort(c)}return d&&(v=M,n=w),_};return r?et(a):a}(a,o)),s.selector=t}return s}function vt(t,n,i,r){var o,a,s,l,u,c="function"==typeof t&&t,d=!r&&ct(t=c.selector||t);if(i=i||[],1===d.length){if((a=d[0]=d[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&h&&e.relative[a[1].type]){if(!(n=(e.find.ID(s.matches[0].replace(X,Z),n)||[])[0]))return i;c&&(n=n.parentNode),t=t.slice(a.shift().value.length)}for(o=j.needsContext.test(t)?0:a.length;o--&&(s=a[o],!e.relative[l=s.type]);)if((u=e.find[l])&&(r=u(s.matches[0].replace(X,Z),Y.test(a[0].type)&&st(n.parentNode)||n))){if(a.splice(o,1),!(t=r.length&&ht(a)))return g.apply(i,r),i;break}}return(c||yt(t,d))(r,n,!h,i,!n||Y.test(t)&&st(n.parentNode)||n),i}ut.prototype=e.filters=e.pseudos,e.setFilters=new ut,m.sortStable=y.split("").sort(M).join("")===y,lt(),m.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),C.find=Q,C.expr[":"]=C.expr.pseudos,C.unique=C.uniqueSort,Q.compile=yt,Q.select=vt,Q.setDocument=lt,Q.tokenize=ct,Q.escape=C.escapeSelector,Q.getText=C.text,Q.isXML=C.isXMLDoc,Q.selectors=C.expr,Q.support=C.support,Q.uniqueSort=C.uniqueSort}();var z=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&C(t).is(n))break;i.push(t)}return i},B=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},V=C.expr.match.needsContext,H=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(t,e,n){return y(e)?C.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?C.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?C.grep(t,(function(t){return c.call(e,t)>-1!==n})):C.filter(e,t,n)}C.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?C.find.matchesSelector(i,t)?[i]:[]:C.find.matches(t,C.grep(e,(function(t){return 1===t.nodeType})))},C.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(C(t).filter((function(){for(e=0;e<i;e++)if(C.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)C.find(t,r[e],n);return i>1?C.uniqueSort(n):n},filter:function(t){return this.pushStack(F(this,t||[],!1))},not:function(t){return this.pushStack(F(this,t||[],!0))},is:function(t){return!!F(this,"string"==typeof t&&V.test(t)?C(t):t||[],!1).length}});var W,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||W,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:G.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:x,!0)),H.test(i[1])&&C.isPlainObject(e))for(i in e)y(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=x.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(C):C.makeArray(t,this)}).prototype=C.fn,W=C(x);var j=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function U(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(C.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&C(t);if(!V.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?C.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(C(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return z(t,"parentNode")},parentsUntil:function(t,e,n){return z(t,"parentNode",n)},next:function(t){return U(t,"nextSibling")},prev:function(t){return U(t,"previousSibling")},nextAll:function(t){return z(t,"nextSibling")},prevAll:function(t){return z(t,"previousSibling")},nextUntil:function(t,e,n){return z(t,"nextSibling",n)},prevUntil:function(t,e,n){return z(t,"previousSibling",n)},siblings:function(t){return B((t.parentNode||{}).firstChild,t)},children:function(t){return B(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(I(t,"template")&&(t=t.content||t),C.merge([],t.childNodes))}},(function(t,e){C.fn[t]=function(n,i){var r=C.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=C.filter(i,r)),this.length>1&&($[t]||C.uniqueSort(r),j.test(t)&&r.reverse()),this.pushStack(r)}}));var q=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function X(t){throw t}function Z(t,e,n,i){var r;try{t&&y(r=t.promise)?r.call(t).done(e).fail(n):t&&y(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}C.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return C.each(t.match(q)||[],(function(t,n){e[n]=!0})),e}(t):C.extend({},t);var e,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){C.each(n,(function(n,i){y(i)?t.unique&&u.has(i)||o.push(i):i&&i.length&&"string"!==w(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return C.each(arguments,(function(t,e){for(var n;(n=C.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?C.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},C.extend({Deferred:function(t){var e=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return C.Deferred((function(n){C.each(e,(function(e,i){var r=y(t[i[4]])&&t[i[4]];o[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,r){var o=0;function a(t,e,n,r){return function(){var s=this,l=arguments,u=function(){var i,u;if(!(t<o)){if((i=n.apply(s,l))===e.promise())throw new TypeError("Thenable self-resolution");u=i&&("object"==typeof i||"function"==typeof i)&&i.then,y(u)?r?u.call(i,a(o,e,Y,r),a(o,e,X,r)):(o++,u.call(i,a(o,e,Y,r),a(o,e,X,r),a(o,e,Y,e.notifyWith))):(n!==Y&&(s=void 0,l=[i]),(r||e.resolveWith)(s,l))}},c=r?u:function(){try{u()}catch(i){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(i,c.error),t+1>=o&&(n!==X&&(s=void 0,l=[i]),e.rejectWith(s,l))}};t?c():(C.Deferred.getErrorHook?c.error=C.Deferred.getErrorHook():C.Deferred.getStackHook&&(c.error=C.Deferred.getStackHook()),i.setTimeout(c))}}return C.Deferred((function(i){e[0][3].add(a(0,i,y(r)?r:Y,i.notifyWith)),e[1][3].add(a(0,i,y(t)?t:Y)),e[2][3].add(a(0,i,y(n)?n:X))})).promise()},promise:function(t){return null!=t?C.extend(t,r):r}},o={};return C.each(e,(function(t,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add((function(){n=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=s.call(arguments),o=C.Deferred(),a=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?s.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(Z(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||y(r[n]&&r[n].then)))return o.then();for(;n--;)Z(r[n],a(n),o.reject);return o.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&K.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},C.readyException=function(t){i.setTimeout((function(){throw t}))};var J=C.Deferred();function Q(){x.removeEventListener("DOMContentLoaded",Q),i.removeEventListener("load",Q),C.ready()}C.fn.ready=function(t){return J.then(t).catch((function(t){C.readyException(t)})),this},C.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==t&&--C.readyWait>0||J.resolveWith(x,[C]))}}),C.ready.then=J.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?i.setTimeout(C.ready):(x.addEventListener("DOMContentLoaded",Q),i.addEventListener("load",Q));var tt=function(t,e,n,i,r,o,a){var s=0,l=t.length,u=null==n;if("object"===w(n))for(s in r=!0,n)tt(t,e,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,y(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(C(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:u?e.call(t):l?e(t[0],n):o},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(nt,it)}var ot=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function at(){this.expando=C.expando+at.uid++}at.uid=1,at.prototype={cache:function(t){var e=t[this.expando];return e||(e={},ot(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[rt(e)]=n;else for(i in e)r[rt(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in i?[e]:e.match(q)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||C.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!C.isEmptyObject(e)}};var st=new at,lt=new at,ut=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ct=/[A-Z]/g;function ht(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ct,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ut.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}C.extend({hasData:function(t){return lt.hasData(t)||st.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return st.access(t,e,n)},_removeData:function(t,e){st.remove(t,e)}}),C.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=lt.get(o),1===o.nodeType&&!st.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=rt(i.slice(5)),ht(o,i,r[i]));st.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){lt.set(this,t)})):tt(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=lt.get(o,t))||void 0!==(n=ht(o,t))?n:void 0;this.each((function(){lt.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){lt.remove(this,t)}))}}),C.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=st.get(t,e),n&&(!i||Array.isArray(n)?i=st.access(t,e,C.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=C.queue(t,e),i=n.length,r=n.shift(),o=C._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){C.dequeue(t,e)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return st.get(t,n)||st.access(t,n,{empty:C.Callbacks("once memory").add((function(){st.remove(t,[e+"queue",n])}))})}}),C.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?C.queue(this[0],t):void 0===e?this:this.each((function(){var n=C.queue(this,t,e);C._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&C.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){C.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=C.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=st.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=new RegExp("^(?:([+-])=|)("+dt+")([a-z%]*)$","i"),ft=["Top","Right","Bottom","Left"],gt=x.documentElement,mt=function(t){return C.contains(t.ownerDocument,t)},yt={composed:!0};gt.getRootNode&&(mt=function(t){return C.contains(t.ownerDocument,t)||t.getRootNode(yt)===t.ownerDocument});var vt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&mt(t)&&"none"===C.css(t,"display")};function xt(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return C.css(t,e,"")},l=s(),u=n&&n[3]||(C.cssNumber[e]?"":"px"),c=t.nodeType&&(C.cssNumber[e]||"px"!==u&&+l)&&pt.exec(C.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)C.style(t,e,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,C.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var _t={};function bt(t){var e,n=t.ownerDocument,i=t.nodeName,r=_t[i];return r||(e=n.body.appendChild(n.createElement(i)),r=C.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),_t[i]=r,r)}function wt(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=st.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&vt(i)&&(r[o]=bt(i))):"none"!==n&&(r[o]="none",st.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}C.fn.extend({show:function(){return wt(this,!0)},hide:function(){return wt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){vt(this)?C(this).show():C(this).hide()}))}});var St,Mt,Ct=/^(?:checkbox|radio)$/i,Tt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,It=/^$|^module$|\/(?:java|ecma)script/i;St=x.createDocumentFragment().appendChild(x.createElement("div")),(Mt=x.createElement("input")).setAttribute("type","radio"),Mt.setAttribute("checked","checked"),Mt.setAttribute("name","t"),St.appendChild(Mt),m.checkClone=St.cloneNode(!0).cloneNode(!0).lastChild.checked,St.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!St.cloneNode(!0).lastChild.defaultValue,St.innerHTML="<option></option>",m.option=!!St.lastChild;var Dt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function At(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&I(t,e)?C.merge([t],n):n}function kt(t,e){for(var n=0,i=t.length;n<i;n++)st.set(t[n],"globalEval",!e||st.get(e[n],"globalEval"))}Dt.tbody=Dt.tfoot=Dt.colgroup=Dt.caption=Dt.thead,Dt.th=Dt.td,m.option||(Dt.optgroup=Dt.option=[1,"<select multiple='multiple'>","</select>"]);var Et=/<|&#?\w+;/;function Lt(t,e,n,i,r){for(var o,a,s,l,u,c,h=e.createDocumentFragment(),d=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===w(o))C.merge(d,o.nodeType?[o]:o);else if(Et.test(o)){for(a=a||h.appendChild(e.createElement("div")),s=(Tt.exec(o)||["",""])[1].toLowerCase(),l=Dt[s]||Dt._default,a.innerHTML=l[1]+C.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;C.merge(d,a.childNodes),(a=h.firstChild).textContent=""}else d.push(e.createTextNode(o));for(h.textContent="",p=0;o=d[p++];)if(i&&C.inArray(o,i)>-1)r&&r.push(o);else if(u=mt(o),a=At(h.appendChild(o),"script"),u&&kt(a),n)for(c=0;o=a[c++];)It.test(o.type||"")&&n.push(o);return h}var Ot=/^([^.]*)(?:\.(.+)|)/;function Pt(){return!0}function Nt(){return!1}function Rt(t,e,n,i,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)Rt(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Nt;else if(!r)return t;return 1===o&&(a=r,r=function(t){return C().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=C.guid++)),t.each((function(){C.event.add(this,e,r,i,n)}))}function zt(t,e,n){n?(st.set(t,e,!1),C.event.add(t,e,{namespace:!1,handler:function(t){var n,i=st.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(C.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=s.call(arguments),st.set(this,e,i),this[e](),n=st.get(this,e),st.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(st.set(this,e,C.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Pt)}})):void 0===st.get(t,e)&&C.event.add(t,e,Pt)}C.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,u,c,h,d,p,f,g,m=st.get(t);if(ot(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&C.find.matchesSelector(gt,r),n.guid||(n.guid=C.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return void 0!==C&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(q)||[""]).length;u--;)p=g=(s=Ot.exec(e[u])||[])[1],f=(s[2]||"").split(".").sort(),p&&(h=C.event.special[p]||{},p=(r?h.delegateType:h.bindType)||p,h=C.event.special[p]||{},c=C.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&C.expr.match.needsContext.test(r),namespace:f.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,f,a)||t.addEventListener&&t.addEventListener(p,a)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),C.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,u,c,h,d,p,f,g,m=st.hasData(t)&&st.get(t);if(m&&(l=m.events)){for(u=(e=(e||"").match(q)||[""]).length;u--;)if(p=g=(s=Ot.exec(e[u])||[])[1],f=(s[2]||"").split(".").sort(),p){for(h=C.event.special[p]||{},d=l[p=(i?h.delegateType:h.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!r&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,h.remove&&h.remove.call(t,c));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,f,m.handle)||C.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)C.event.remove(t,p+e[u],n,i,!0);C.isEmptyObject(l)&&st.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=new Array(arguments.length),l=C.event.fix(t),u=(st.get(this,"events")||Object.create(null))[l.type]||[],c=C.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=C.event.handlers.call(this,l,u),e=0;(r=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((C.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,a,s=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?C(r,this).index(u)>-1:C.find(r,this,null,[u]).length),a[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<e.length&&s.push({elem:u,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(C.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[C.expando]?t:new C.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Ct.test(e.type)&&e.click&&I(e,"input")&&zt(e,"click",!0),!1},trigger:function(t){var e=this||t;return Ct.test(e.type)&&e.click&&I(e,"input")&&zt(e,"click"),!0},_default:function(t){var e=t.target;return Ct.test(e.type)&&e.click&&I(e,"input")&&st.get(e,"click")||I(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},C.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},C.Event=function(t,e){if(!(this instanceof C.Event))return new C.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Pt:Nt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&C.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Nt,isPropagationStopped:Nt,isImmediatePropagationStopped:Nt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Pt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Pt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Pt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(x.documentMode){var n=st.get(this,"handle"),i=C.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else C.event.simulate(e,t.target,C.event.fix(t))}C.event.special[t]={setup:function(){var i;if(zt(this,t,!0),!x.documentMode)return!1;(i=st.get(this,e))||this.addEventListener(e,n),st.set(this,e,(i||0)+1)},trigger:function(){return zt(this,t),!0},teardown:function(){var t;if(!x.documentMode)return!1;(t=st.get(this,e)-1)?st.set(this,e,t):(this.removeEventListener(e,n),st.remove(this,e))},_default:function(e){return st.get(e.target,t)},delegateType:e},C.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=x.documentMode?this:i,o=st.get(r,e);o||(x.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),st.set(r,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=x.documentMode?this:i,o=st.get(r,e)-1;o?st.set(r,e,o):(x.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),st.remove(r,e))}}})),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){C.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||C.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),C.fn.extend({on:function(t,e,n,i){return Rt(this,t,e,n,i)},one:function(t,e,n,i){return Rt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,C(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Nt),this.each((function(){C.event.remove(this,t,n,e)}))}});var Bt=/<script|<style|<link/i,Vt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ht=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ft(t,e){return I(t,"table")&&I(11!==e.nodeType?e:e.firstChild,"tr")&&C(t).children("tbody")[0]||t}function Wt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Gt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function jt(t,e){var n,i,r,o,a,s;if(1===e.nodeType){if(st.hasData(t)&&(s=st.get(t).events))for(r in st.remove(e,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)C.event.add(e,r,s[r][n]);lt.hasData(t)&&(o=lt.access(t),a=C.extend({},o),lt.set(e,a))}}function $t(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Ct.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ut(t,e,n,i){e=l(e);var r,o,a,s,u,c,h=0,d=t.length,p=d-1,f=e[0],g=y(f);if(g||d>1&&"string"==typeof f&&!m.checkClone&&Vt.test(f))return t.each((function(r){var o=t.eq(r);g&&(e[0]=f.call(this,r,o.html())),Ut(o,e,n,i)}));if(d&&(o=(r=Lt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=(a=C.map(At(r,"script"),Wt)).length;h<d;h++)u=r,h!==p&&(u=C.clone(u,!0,!0),s&&C.merge(a,At(u,"script"))),n.call(t[h],u,h);if(s)for(c=a[a.length-1].ownerDocument,C.map(a,Gt),h=0;h<s;h++)u=a[h],It.test(u.type||"")&&!st.access(u,"globalEval")&&C.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?C._evalUrl&&!u.noModule&&C._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):b(u.textContent.replace(Ht,""),u,c))}return t}function qt(t,e,n){for(var i,r=e?C.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||C.cleanData(At(i)),i.parentNode&&(n&&mt(i)&&kt(At(i,"script")),i.parentNode.removeChild(i));return t}C.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),l=mt(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(a=At(s),i=0,r=(o=At(t)).length;i<r;i++)$t(o[i],a[i]);if(e)if(n)for(o=o||At(t),a=a||At(s),i=0,r=o.length;i<r;i++)jt(o[i],a[i]);else jt(t,s);return(a=At(s,"script")).length>0&&kt(a,!l&&At(t,"script")),s},cleanData:function(t){for(var e,n,i,r=C.event.special,o=0;void 0!==(n=t[o]);o++)if(ot(n)){if(e=n[st.expando]){if(e.events)for(i in e.events)r[i]?C.event.remove(n,i):C.removeEvent(n,i,e.handle);n[st.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),C.fn.extend({detach:function(t){return qt(this,t,!0)},remove:function(t){return qt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?C.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ut(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ft(this,t).appendChild(t)}))},prepend:function(){return Ut(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(C.cleanData(At(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return C.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Bt.test(t)&&!Dt[(Tt.exec(t)||["",""])[1].toLowerCase()]){t=C.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(C.cleanData(At(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ut(this,arguments,(function(e){var n=this.parentNode;C.inArray(this,t)<0&&(C.cleanData(At(this)),n&&n.replaceChild(e,this))}),t)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){C.fn[t]=function(t){for(var n,i=[],r=C(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),C(r[a])[e](n),u.apply(i,n.get());return this.pushStack(i)}}));var Yt=new RegExp("^("+dt+")(?!px)[a-z%]+$","i"),Xt=/^--/,Zt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Kt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Jt=new RegExp(ft.join("|"),"i");function Qt(t,e,n){var i,r,o,a,s=Xt.test(e),l=t.style;return(n=n||Zt(t))&&(a=n.getPropertyValue(e)||n[e],s&&a&&(a=a.replace(L,"$1")||void 0),""!==a||mt(t)||(a=C.style(t,e)),!m.pixelBoxStyles()&&Yt.test(a)&&Jt.test(e)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==a?a+"":a}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(u).appendChild(c);var t=i.getComputedStyle(c);n="1%"!==t.top,l=12===e(t.marginLeft),c.style.right="60%",a=36===e(t.right),r=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),gt.removeChild(u),c=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,a,s,l,u=x.createElement("div"),c=x.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,C.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,r;return null==s&&(t=x.createElement("table"),e=x.createElement("tr"),n=x.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",gt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,gt.removeChild(t)),s}}))}();var ee=["Webkit","Moz","ms"],ne=x.createElement("div").style,ie={};function re(t){return C.cssProps[t]||ie[t]||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var oe=/^(none|table(?!-c[ea]).+)/,ae={position:"absolute",visibility:"hidden",display:"block"},se={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=pt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ue(t,e,n,i,r,o){var a="width"===e?1:0,s=0,l=0,u=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=C.css(t,n+ft[a],!0,r)),i?("content"===n&&(l-=C.css(t,"padding"+ft[a],!0,r)),"margin"!==n&&(l-=C.css(t,"border"+ft[a]+"Width",!0,r))):(l+=C.css(t,"padding"+ft[a],!0,r),"padding"!==n?l+=C.css(t,"border"+ft[a]+"Width",!0,r):s+=C.css(t,"border"+ft[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l+u}function ce(t,e,n){var i=Zt(t),r=(!m.boxSizingReliable()||n)&&"border-box"===C.css(t,"boxSizing",!1,i),o=r,a=Qt(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Yt.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&I(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===C.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===C.css(t,"boxSizing",!1,i),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ue(t,e,n||(r?"border":"content"),o,i,a)+"px"}function he(t,e,n,i,r){return new he.prototype.init(t,e,n,i,r)}C.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Qt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=rt(e),l=Xt.test(e),u=t.style;if(l||(e=re(s)),a=C.cssHooks[e]||C.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:u[e];"string"==(o=typeof n)&&(r=pt.exec(n))&&r[1]&&(n=xt(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(C.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var r,o,a,s=rt(e);return Xt.test(e)||(e=re(s)),(a=C.cssHooks[e]||C.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=Qt(t,e,i)),"normal"===r&&e in se&&(r=se[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),C.each(["height","width"],(function(t,e){C.cssHooks[e]={get:function(t,n,i){if(n)return!oe.test(C.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,e,i):Kt(t,ae,(function(){return ce(t,e,i)}))},set:function(t,n,i){var r,o=Zt(t),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===C.css(t,"boxSizing",!1,o),l=i?ue(t,e,i,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ue(t,e,"border",!1,o)-.5)),l&&(r=pt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=C.css(t,e)),le(0,n,l)}}})),C.cssHooks.marginLeft=te(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Qt(t,"marginLeft"))||t.getBoundingClientRect().left-Kt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(t,e){C.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+ft[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(C.cssHooks[t+e].set=le)})),C.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=Zt(t),r=e.length;a<r;a++)o[e[a]]=C.css(t,e[a],!1,i);return o}return void 0!==n?C.style(t,e,n):C.css(t,e)}),t,e,arguments.length>1)}}),C.Tween=he,he.prototype={constructor:he,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||C.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(C.cssNumber[n]?"":"px")},cur:function(){var t=he.propHooks[this.prop];return t&&t.get?t.get(this):he.propHooks._default.get(this)},run:function(t){var e,n=he.propHooks[this.prop];return this.options.duration?this.pos=e=C.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):he.propHooks._default.set(this),this}},he.prototype.init.prototype=he.prototype,he.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=C.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):1!==t.elem.nodeType||!C.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:C.style(t.elem,t.prop,t.now+t.unit)}}},he.propHooks.scrollTop=he.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},C.fx=he.prototype.init,C.fx.step={};var de,pe,fe=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function me(){pe&&(!1===x.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(me):i.setTimeout(me,C.fx.interval),C.fx.tick())}function ye(){return i.setTimeout((function(){de=void 0})),de=Date.now()}function ve(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=ft[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function xe(t,e,n){for(var i,r=(_e.tweeners[e]||[]).concat(_e.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function _e(t,e,n){var i,r,o=0,a=_e.prefilters.length,s=C.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=de||ye(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(i);return s.notifyWith(t,[u,i,n]),i<1&&a?n:(a||s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:C.extend({},e),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:e,originalOptions:n,startTime:de||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var i=C.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(function(t,e){var n,i,r,o,a;for(n in t)if(r=e[i=rt(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=C.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(c,u.opts.specialEasing);o<a;o++)if(i=_e.prefilters[o].call(u,t,c,u.opts))return y(i.stop)&&(C._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return C.map(c,xe,u),y(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),C.fx.timer(C.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}C.Animation=C.extend(_e,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return xt(n.elem,t,pt.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(q);for(var n,i=0,r=t.length;i<r;i++)n=t[i],_e.tweeners[n]=_e.tweeners[n]||[],_e.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,a,s,l,u,c,h="width"in e||"height"in e,d=this,p={},f=t.style,g=t.nodeType&&vt(t),m=st.get(t,"fxshow");for(i in n.queue||(null==(a=C._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always((function(){d.always((function(){a.unqueued--,C.queue(t,"fx").length||a.empty.fire()}))}))),e)if(r=e[i],fe.test(r)){if(delete e[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}p[i]=m&&m[i]||C.style(t,i)}if((l=!C.isEmptyObject(e))||!C.isEmptyObject(p))for(i in h&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(u=m&&m.display)&&(u=st.get(t,"display")),"none"===(c=C.css(t,"display"))&&(u?c=u:(wt([t],!0),u=t.style.display||u,c=C.css(t,"display"),wt([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===C.css(t,"float")&&(l||(d.done((function(){f.display=u})),null==u&&(c=f.display,u="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=st.access(t,"fxshow",{display:u}),o&&(m.hidden=!g),g&&wt([t],!0),d.done((function(){for(i in g||wt([t]),st.remove(t,"fxshow"),p)C.style(t,i,p[i])}))),l=xe(g?m[i]:0,i,d),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?_e.prefilters.unshift(t):_e.prefilters.push(t)}}),C.speed=function(t,e,n){var i=t&&"object"==typeof t?C.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return C.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in C.fx.speeds?i.duration=C.fx.speeds[i.duration]:i.duration=C.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&C.dequeue(this,i.queue)},i},C.fn.extend({fadeTo:function(t,e,n,i){return this.filter(vt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=C.isEmptyObject(t),o=C.speed(e,n,i),a=function(){var e=_e(this,C.extend({},t),o);(r||st.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=C.timers,a=st.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&ge.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||C.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=st.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=C.timers,a=i?i.length:0;for(n.finish=!0,C.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),C.each(["toggle","show","hide"],(function(t,e){var n=C.fn[e];C.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,i,r)}})),C.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){C.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),C.timers=[],C.fx.tick=function(){var t,e=0,n=C.timers;for(de=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||C.fx.stop(),de=void 0},C.fx.timer=function(t){C.timers.push(t),C.fx.start()},C.fx.interval=13,C.fx.start=function(){pe||(pe=!0,me())},C.fx.stop=function(){pe=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(t,e){return t=C.fx&&C.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}}))},function(){var t=x.createElement("input"),e=x.createElement("select").appendChild(x.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=x.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var be,we=C.expr.attrHandle;C.fn.extend({attr:function(t,e){return tt(this,C.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){C.removeAttr(this,t)}))}}),C.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?C.prop(t,e,n):(1===o&&C.isXMLDoc(t)||(r=C.attrHooks[e.toLowerCase()]||(C.expr.match.bool.test(e)?be:void 0)),void 0!==n?null===n?void C.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=C.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&I(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(q);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),be={set:function(t,e,n){return!1===e?C.removeAttr(t,n):t.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=we[e]||C.find.attr;we[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=we[a],we[a]=r,r=null!=n(t,e,i)?a:null,we[a]=o),r}}));var Se=/^(?:input|select|textarea|button)$/i,Me=/^(?:a|area)$/i;function Ce(t){return(t.match(q)||[]).join(" ")}function Te(t){return t.getAttribute&&t.getAttribute("class")||""}function Ie(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(q)||[]}C.fn.extend({prop:function(t,e){return tt(this,C.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[C.propFix[t]||t]}))}}),C.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(t)||(e=C.propFix[e]||e,r=C.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=C.find.attr(t,"tabindex");return e?parseInt(e,10):Se.test(t.nodeName)||Me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(C.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(t){var e,n,i,r,o,a;return y(t)?this.each((function(e){C(this).addClass(t.call(this,e,Te(this)))})):(e=Ie(t)).length?this.each((function(){if(i=Te(this),n=1===this.nodeType&&" "+Ce(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=Ce(n),i!==a&&this.setAttribute("class",a)}})):this},removeClass:function(t){var e,n,i,r,o,a;return y(t)?this.each((function(e){C(this).removeClass(t.call(this,e,Te(this)))})):arguments.length?(e=Ie(t)).length?this.each((function(){if(i=Te(this),n=1===this.nodeType&&" "+Ce(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a=Ce(n),i!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,o,a=typeof t,s="string"===a||Array.isArray(t);return y(t)?this.each((function(n){C(this).toggleClass(t.call(this,n,Te(this),e),e)})):"boolean"==typeof e&&s?e?this.addClass(t):this.removeClass(t):(n=Ie(t),this.each((function(){if(s)for(o=C(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==t&&"boolean"!==a||((i=Te(this))&&st.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":st.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Ce(Te(n))+" ").indexOf(e)>-1)return!0;return!1}});var De=/\r/g;C.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=y(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,C(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=C.map(r,(function(t){return null==t?"":t+""}))),(e=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=C.valHooks[r.type]||C.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(De,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(t){var e=C.find.attr(t,"value");return null!=e?e:Ce(C.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!I(n.parentNode,"optgroup"))){if(e=C(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=C.makeArray(e),a=r.length;a--;)((i=r[a]).selected=C.inArray(C.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=C.inArray(C(t).val(),e)>-1}},m.checkOn||(C.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ae=i.location,ke={guid:Date.now()},Ee=/\?/;C.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||C.error("Invalid XML: "+(n?C.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Le=/^(?:focusinfocus|focusoutblur)$/,Oe=function(t){t.stopPropagation()};C.extend(C.event,{trigger:function(t,e,n,r){var o,a,s,l,u,c,h,d,f=[n||x],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=n=n||x,3!==n.nodeType&&8!==n.nodeType&&!Le.test(g+C.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),u=g.indexOf(":")<0&&"on"+g,(t=t[C.expando]?t:new C.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:C.makeArray(e,[t]),h=C.event.special[g]||{},r||!h.trigger||!1!==h.trigger.apply(n,e))){if(!r&&!h.noBubble&&!v(n)){for(l=h.delegateType||g,Le.test(l+g)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(n.ownerDocument||x)&&f.push(s.defaultView||s.parentWindow||i)}for(o=0;(a=f[o++])&&!t.isPropagationStopped();)d=a,t.type=o>1?l:h.bindType||g,(c=(st.get(a,"events")||Object.create(null))[t.type]&&st.get(a,"handle"))&&c.apply(a,e),(c=u&&a[u])&&c.apply&&ot(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),e)||!ot(n)||u&&y(n[g])&&!v(n)&&((s=n[u])&&(n[u]=null),C.event.triggered=g,t.isPropagationStopped()&&d.addEventListener(g,Oe),n[g](),t.isPropagationStopped()&&d.removeEventListener(g,Oe),C.event.triggered=void 0,s&&(n[u]=s)),t.result}},simulate:function(t,e,n){var i=C.extend(new C.Event,n,{type:t,isSimulated:!0});C.event.trigger(i,null,e)}}),C.fn.extend({trigger:function(t,e){return this.each((function(){C.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return C.event.trigger(t,e,n,!0)}});var Pe=/\[\]$/,Ne=/\r?\n/g,Re=/^(?:submit|button|image|reset|file)$/i,ze=/^(?:input|select|textarea|keygen)/i;function Be(t,e,n,i){var r;if(Array.isArray(e))C.each(e,(function(e,r){n||Pe.test(t)?i(t,r):Be(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==w(e))i(t,e);else for(r in e)Be(t+"["+r+"]",e[r],n,i)}C.param=function(t,e){var n,i=[],r=function(t,e){var n=y(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,(function(){r(this.name,this.value)}));else for(n in t)Be(n,t[n],e,r);return i.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=C.prop(this,"elements");return t?C.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!C(this).is(":disabled")&&ze.test(this.nodeName)&&!Re.test(t)&&(this.checked||!Ct.test(t))})).map((function(t,e){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,(function(t){return{name:e.name,value:t.replace(Ne,"\r\n")}})):{name:e.name,value:n.replace(Ne,"\r\n")}})).get()}});var Ve=/%20/g,He=/#.*$/,Fe=/([?&])_=[^&]*/,We=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ge=/^(?:GET|HEAD)$/,je=/^\/\//,$e={},Ue={},qe="*/".concat("*"),Ye=x.createElement("a");function Xe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(q)||[];if(y(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Ze(t,e,n,i){var r={},o=t===Ue;function a(s){var l;return r[s]=!0,C.each(t[s]||[],(function(t,s){var u=s(e,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),a(u),!1)})),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Ke(t,e){var n,i,r=C.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&C.extend(!0,t,i),t}Ye.href=Ae.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ae.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ae.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ke(Ke(t,C.ajaxSettings),e):Ke(C.ajaxSettings,t)},ajaxPrefilter:Xe($e),ajaxTransport:Xe(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,a,s,l,u,c,h,d,p=C.ajaxSetup({},e),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?C(f):C.event,m=C.Deferred(),y=C.Callbacks("once memory"),v=p.statusCode||{},_={},b={},w="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=We.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=b[t.toLowerCase()]=b[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==u&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)S.always(t[S.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||w;return n&&n.abort(e),M(0,e),this}};if(m.promise(S),p.url=((t||p.url||Ae.href)+"").replace(je,Ae.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(q)||[""],null==p.crossDomain){l=x.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ye.protocol+"//"+Ye.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=C.param(p.data,p.traditional)),Ze($e,p,e,S),u)return S;for(h in(c=C.event&&p.global)&&0==C.active++&&C.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ge.test(p.type),r=p.url.replace(He,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ve,"+")):(d=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(Ee.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Fe,"$1"),d=(Ee.test(r)?"&":"?")+"_="+ke.guid+++d),p.url=r+d),p.ifModified&&(C.lastModified[r]&&S.setRequestHeader("If-Modified-Since",C.lastModified[r]),C.etag[r]&&S.setRequestHeader("If-None-Match",C.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+qe+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(f,S,p)||u))return S.abort();if(w="abort",y.add(p.complete),S.done(p.success),S.fail(p.error),n=Ze(Ue,p,e,S)){if(S.readyState=1,c&&g.trigger("ajaxSend",[S,p]),u)return S;p.async&&p.timeout>0&&(s=i.setTimeout((function(){S.abort("timeout")}),p.timeout));try{u=!1,n.send(_,M)}catch(t){if(u)throw t;M(-1,t)}}else M(-1,"No Transport");function M(t,e,a,l){var h,d,x,_,b,w=e;u||(u=!0,s&&i.clearTimeout(s),n=void 0,o=l||"",S.readyState=t>0?4:0,h=t>=200&&t<300||304===t,a&&(_=function(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,S,a)),!h&&C.inArray("script",p.dataTypes)>-1&&C.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=function(t,e,n,i){var r,o,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,_,S,h),h?(p.ifModified&&((b=S.getResponseHeader("Last-Modified"))&&(C.lastModified[r]=b),(b=S.getResponseHeader("etag"))&&(C.etag[r]=b)),204===t||"HEAD"===p.type?w="nocontent":304===t?w="notmodified":(w=_.state,d=_.data,h=!(x=_.error))):(x=w,!t&&w||(w="error",t<0&&(t=0))),S.status=t,S.statusText=(e||w)+"",h?m.resolveWith(f,[d,w,S]):m.rejectWith(f,[S,w,x]),S.statusCode(v),v=void 0,c&&g.trigger(h?"ajaxSuccess":"ajaxError",[S,p,h?d:x]),y.fireWith(f,[S,w]),c&&(g.trigger("ajaxComplete",[S,p]),--C.active||C.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return C.get(t,e,n,"json")},getScript:function(t,e){return C.get(t,void 0,e,"script")}}),C.each(["get","post"],(function(t,e){C[e]=function(t,n,i,r){return y(n)&&(r=r||i,i=n,n=void 0),C.ajax(C.extend({url:t,type:e,dataType:r,data:n,success:i},C.isPlainObject(t)&&t))}})),C.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),C._evalUrl=function(t,e,n){return C.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){C.globalEval(t,e,n)}})},C.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=C(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return y(t)?this.each((function(e){C(this).wrapInner(t.call(this,e))})):this.each((function(){var e=C(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){C(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(t){return!C.expr.pseudos.visible(t)},C.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Qe=C.ajaxSettings.xhr();m.cors=!!Qe&&"withCredentials"in Qe,m.ajax=Qe=!!Qe,C.ajaxTransport((function(t){var e,n;if(m.cors||Qe&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Je[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),C.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return C.globalEval(t),t}}}),C.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),C.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=C("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),x.head.appendChild(e[0])},abort:function(){n&&n()}}}));var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||C.expando+"_"+ke.guid++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",(function(t,e,n){var r,o,a,s=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(nn,"$1"+r):!1!==t.jsonp&&(t.url+=(Ee.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||C.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always((function(){void 0===o?C(i).removeProp(r):i[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,en.push(r)),a&&y(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=((tn=x.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),C.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((i=(e=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,e.head.appendChild(i)):e=x),o=!n&&[],(r=H.exec(t))?[e.createElement(r[1])]:(r=Lt([t],e,o),o&&o.length&&C(o).remove(),C.merge([],r.childNodes)));var i,r,o},C.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=Ce(t.slice(s)),t=t.slice(0,s)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&C.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(i?C("<div>").append(C.parseHTML(t)).find(i):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},C.expr.pseudos.animated=function(t){return C.grep(C.timers,(function(e){return t===e.elem})).length},C.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,u=C.css(t,"position"),c=C(t),h={};"static"===u&&(t.style.position="relative"),s=c.offset(),o=C.css(t,"top"),l=C.css(t,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(i=c.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),y(e)&&(e=e.call(t,n,C.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+r),"using"in e?e.using.call(t,h):c.css(h)}},C.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){C.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===C.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===C.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=C(t).offset()).top+=C.css(t,"borderTopWidth",!0),r.left+=C.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-C.css(i,"marginTop",!0),left:e.left-r.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===C.css(t,"position");)t=t.offsetParent;return t||gt}))}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;C.fn[t]=function(i){return tt(this,(function(t,i,r){var o;if(v(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),C.each(["top","left"],(function(t,e){C.cssHooks[e]=te(m.pixelPosition,(function(t,n){if(n)return n=Qt(t,e),Yt.test(n)?C(t).position()[e]+"px":n}))})),C.each({Height:"height",Width:"width"},(function(t,e){C.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){C.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return tt(this,(function(e,n,r){var o;return v(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?C.css(e,n,s):C.style(e,n,r,s)}),e,a?r:void 0,a)}}))})),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){C.fn[e]=function(t){return this.on(e,t)}})),C.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){C.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;C.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return i=s.call(arguments,2),r=function(){return t.apply(e||this,i.concat(s.call(arguments)))},r.guid=t.guid=t.guid||C.guid++,r},C.holdReady=function(t){t?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=I,C.isFunction=y,C.isWindow=v,C.camelCase=rt,C.type=w,C.now=Date.now,C.isNumeric=function(t){var e=C.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},C.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return C}.apply(e,[]))||(t.exports=n);var on=i.jQuery,an=i.$;return C.noConflict=function(t){return i.$===C&&(i.$=an),t&&i.jQuery===C&&(i.jQuery=on),C},void 0===r&&(i.jQuery=i.$=C),C}))},762:(t,e,n)=>{var i,r="__lodash_hash_undefined__",o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/,s=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,h="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,p=h||d||Function("return this")(),f=Array.prototype,g=Function.prototype,m=Object.prototype,y=p["__core-js_shared__"],v=(i=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",x=g.toString,_=m.hasOwnProperty,b=m.toString,w=RegExp("^"+x.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=p.Symbol,M=f.splice,C=P(p,"Map"),T=P(Object,"create"),I=S?S.prototype:void 0,D=I?I.toString:void 0;function A(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function k(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function E(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function L(t,e){for(var n,i,r=t.length;r--;)if((n=t[r][0])===(i=e)||n!=n&&i!=i)return r;return-1}function O(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function P(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){if(!V(t)||v&&v in t)return!1;var e=function(t){var e=V(t)?b.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?w:c;return e.test(function(t){if(null!=t){try{return x.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(n)?n:void 0}A.prototype.clear=function(){this.__data__=T?T(null):{}},A.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},A.prototype.get=function(t){var e=this.__data__;if(T){var n=e[t];return n===r?void 0:n}return _.call(e,t)?e[t]:void 0},A.prototype.has=function(t){var e=this.__data__;return T?void 0!==e[t]:_.call(e,t)},A.prototype.set=function(t,e){return this.__data__[t]=T&&void 0===e?r:e,this},k.prototype.clear=function(){this.__data__=[]},k.prototype.delete=function(t){var e=this.__data__,n=L(e,t);return!(n<0||(n==e.length-1?e.pop():M.call(e,n,1),0))},k.prototype.get=function(t){var e=this.__data__,n=L(e,t);return n<0?void 0:e[n][1]},k.prototype.has=function(t){return L(this.__data__,t)>-1},k.prototype.set=function(t,e){var n=this.__data__,i=L(n,t);return i<0?n.push([t,e]):n[i][1]=e,this},E.prototype.clear=function(){this.__data__={hash:new A,map:new(C||k),string:new A}},E.prototype.delete=function(t){return O(this,t).delete(t)},E.prototype.get=function(t){return O(this,t).get(t)},E.prototype.has=function(t){return O(this,t).has(t)},E.prototype.set=function(t,e){return O(this,t).set(t,e),this};var N=z((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(H(t))return D?D.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var n=[];return s.test(t)&&n.push(""),t.replace(l,(function(t,e,i,r){n.push(i?r.replace(u,"$1"):e||t)})),n}));function R(t){if("string"==typeof t||H(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function z(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a),a};return n.cache=new(z.Cache||E),n}z.Cache=E;var B=Array.isArray;function V(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function H(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==b.call(t)}t.exports=function(t,e,n){var i=null==t?void 0:function(t,e){var n;e=function(t,e){if(B(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!H(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:B(n=e)?n:N(n);for(var i=0,r=e.length;null!=t&&i<r;)t=t[R(e[i++])];return i&&i==r?t:void 0}(t,e);return void 0===i?n:i}},883:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(692)],void 0===(o="function"==typeof(i=function(t){return t.ui=t.ui||{},t.ui.version="1.14.1"})?i.apply(e,r):i)||(t.exports=o)}()},990:()=>{"use strict";"function"!=typeof Object.assign&&(Object.assign=function(t,...e){if(!t)throw TypeError("Cannot convert undefined or null to object");for(const n of e)n&&Object.keys(n).forEach((e=>t[e]=n[e]));return t})}}]);
|
|
3
|
+
//# sourceMappingURL=libraries.js.map
|