From 5af755eaab54ad4fa8556b6936931fc044bed4f6 Mon Sep 17 00:00:00 2001 From: liihuu Date: Thu, 2 Nov 2023 01:23:24 +0800 Subject: [PATCH] Updates --- 404.html | 4 +- assets/{app.33545aa3.js => app.85d5c290.js} | 2 +- .../chunks/@localSearchIndexroot.2384476e.js | 1 - .../chunks/@localSearchIndexroot.986d36be.js | 1 + ...ea7daf.js => VPLocalSearchBox.51ccc229.js} | 2 +- .../{theme.cc8033bd.js => theme.3e7d3ec0.js} | 2 +- ...mponents_sample_axis_index.md.de1055b1.js} | 2 +- ...nts_sample_axis_index.md.de1055b1.lean.js} | 0 ...ponents_sample_basic_index.md.0f2b9a3e.js} | 2 +- ...ts_sample_basic_index.md.0f2b9a3e.lean.js} | 0 ...s_sample_candle-type_index.md.c9d4a4b7.js} | 2 +- ...ple_candle-type_index.md.c9d4a4b7.lean.js} | 0 ...mponents_sample_data_index.md.7dfa20e6.js} | 2 +- ...nts_sample_data_index.md.7dfa20e6.lean.js} | 0 ...mponents_sample_i18n_index.md.8ed87aa7.js} | 2 +- ...nts_sample_i18n_index.md.8ed87aa7.lean.js} | 0 ...nts_sample_indicator_index.md.7f178871.js} | 2 +- ...ample_indicator_index.md.7f178871.lean.js} | 0 ...nents_sample_overlay_index.md.80c1a44d.js} | 2 +- ..._sample_overlay_index.md.80c1a44d.lean.js} | 0 ...ponents_sample_theme_index.md.b864fd33.js} | 2 +- ...ts_sample_theme_index.md.b864fd33.lean.js} | 0 ...ents_sample_timezone_index.md.01d1e31d.js} | 2 +- ...sample_timezone_index.md.01d1e31d.lean.js} | 0 ...nents_sample_tooltip_index.md.01467383.js} | 2 +- ..._sample_tooltip_index.md.01467383.lean.js} | 0 ...n-US_guide_getting-started.md.9ca97539.js} | 2 +- ...guide_getting-started.md.9ca97539.lean.js} | 0 ...d6.js => en-US_sample_axis.md.28f57e25.js} | 2 +- ... => en-US_sample_axis.md.28f57e25.lean.js} | 0 ...1.js => en-US_sample_basic.md.a20f4ddd.js} | 2 +- ...=> en-US_sample_basic.md.a20f4ddd.lean.js} | 0 ...> en-US_sample_candle-type.md.f057a0d8.js} | 2 +- ...US_sample_candle-type.md.f057a0d8.lean.js} | 0 ...7f.js => en-US_sample_data.md.d50fd3e1.js} | 2 +- ... => en-US_sample_data.md.d50fd3e1.lean.js} | 0 ...b8.js => en-US_sample_i18n.md.1ad12f8b.js} | 2 +- ... => en-US_sample_i18n.md.1ad12f8b.lean.js} | 0 ... => en-US_sample_indicator.md.1705d7aa.js} | 2 +- ...n-US_sample_indicator.md.1705d7aa.lean.js} | 0 ...js => en-US_sample_overlay.md.e4d9ba54.js} | 2 +- ... en-US_sample_overlay.md.e4d9ba54.lean.js} | 0 ...e.js => en-US_sample_theme.md.d1dbc68f.js} | 2 +- ...=> en-US_sample_theme.md.d1dbc68f.lean.js} | 0 ...s => en-US_sample_timezone.md.6e8af94e.js} | 4 +- ...en-US_sample_timezone.md.6e8af94e.lean.js} | 2 +- ...js => en-US_sample_tooltip.md.f745fdf1.js} | 2 +- ... en-US_sample_tooltip.md.f745fdf1.lean.js} | 0 ...s => guide_getting-started.md.7021aecf.js} | 2 +- ...guide_getting-started.md.7021aecf.lean.js} | 0 assets/sample_axis.md.339486a1.js | 45 --- assets/sample_axis.md.339486a1.lean.js | 1 - assets/sample_axis.md.b22b37e6.js | 259 ++++++++++++++++++ assets/sample_axis.md.b22b37e6.lean.js | 1 + ...9825fcd.js => sample_basic.md.80007630.js} | 2 +- ...an.js => sample_basic.md.80007630.lean.js} | 0 ...b.js => sample_candle-type.md.cddd1021.js} | 2 +- ...=> sample_candle-type.md.cddd1021.lean.js} | 0 ...c18759dc.js => sample_data.md.2938204b.js} | 2 +- ...ean.js => sample_data.md.2938204b.lean.js} | 0 ...de0ef7be.js => sample_i18n.md.92637d54.js} | 2 +- ...ean.js => sample_i18n.md.92637d54.lean.js} | 0 ...3d7.js => sample_indicator.md.9f30f27b.js} | 2 +- ...s => sample_indicator.md.9f30f27b.lean.js} | 0 ...e0572.js => sample_overlay.md.f27fefab.js} | 2 +- ....js => sample_overlay.md.f27fefab.lean.js} | 0 ...35910ad.js => sample_theme.md.3fc59377.js} | 2 +- ...an.js => sample_theme.md.3fc59377.lean.js} | 0 ...56a6.js => sample_timezone.md.c7962eed.js} | 2 +- ...js => sample_timezone.md.c7962eed.lean.js} | 0 ...dd419.js => sample_tooltip.md.761071df.js} | 2 +- ....js => sample_tooltip.md.761071df.lean.js} | 0 components/sample/axis/index.html | 10 +- components/sample/basic/index.html | 10 +- components/sample/candle-type/index.html | 10 +- components/sample/data/index.html | 10 +- components/sample/i18n/index.html | 10 +- components/sample/indicator/index.html | 10 +- components/sample/overlay/index.html | 10 +- components/sample/theme/index.html | 10 +- components/sample/timezone/index.html | 10 +- components/sample/tooltip/index.html | 10 +- en-US/guide/changelog.html | 6 +- en-US/guide/chart-api.html | 6 +- en-US/guide/datasource.html | 6 +- en-US/guide/environment.html | 6 +- en-US/guide/faq.html | 6 +- en-US/guide/feedback.html | 6 +- en-US/guide/figure.html | 6 +- en-US/guide/getting-started.html | 10 +- en-US/guide/hot-key.html | 6 +- en-US/guide/i18n.html | 6 +- en-US/guide/indicator.html | 6 +- en-US/guide/instance-api.html | 6 +- en-US/guide/overlay.html | 6 +- en-US/guide/styles.html | 6 +- en-US/guide/v8-to-v9.html | 6 +- en-US/guide/what-is-klinechart.html | 6 +- en-US/index.html | 6 +- en-US/sample/axis.html | 10 +- en-US/sample/basic.html | 10 +- en-US/sample/candle-type.html | 10 +- en-US/sample/data.html | 10 +- en-US/sample/i18n.html | 10 +- en-US/sample/indicator.html | 10 +- en-US/sample/overlay.html | 10 +- en-US/sample/theme.html | 10 +- en-US/sample/timezone.html | 10 +- en-US/sample/tooltip.html | 10 +- en-US/sponsor.html | 6 +- guide/changelog.html | 6 +- guide/chart-api.html | 6 +- guide/datasource.html | 6 +- guide/environment.html | 6 +- guide/faq.html | 6 +- guide/feedback.html | 6 +- guide/figure.html | 6 +- guide/getting-started.html | 10 +- guide/hot-key.html | 6 +- guide/i18n.html | 6 +- guide/indicator.html | 6 +- guide/instance-api.html | 6 +- guide/overlay.html | 6 +- guide/styles.html | 6 +- guide/v8-to-v9.html | 6 +- guide/what-is-klinechart.html | 6 +- hashmap.json | 2 +- index.html | 6 +- sample/axis.html | 246 +++++++++++++++-- sample/basic.html | 10 +- sample/candle-type.html | 10 +- sample/data.html | 10 +- sample/i18n.html | 10 +- sample/indicator.html | 10 +- sample/overlay.html | 10 +- sample/theme.html | 10 +- sample/timezone.html | 10 +- sample/tooltip.html | 10 +- sponsor.html | 6 +- 139 files changed, 787 insertions(+), 359 deletions(-) rename assets/{app.33545aa3.js => app.85d5c290.js} (99%) delete mode 100644 assets/chunks/@localSearchIndexroot.2384476e.js create mode 100644 assets/chunks/@localSearchIndexroot.986d36be.js rename assets/chunks/{VPLocalSearchBox.a4ea7daf.js => VPLocalSearchBox.51ccc229.js} (99%) rename assets/chunks/{theme.cc8033bd.js => theme.3e7d3ec0.js} (99%) rename assets/{components_sample_axis_index.md.df7f96c5.js => components_sample_axis_index.md.de1055b1.js} (99%) rename assets/{components_sample_axis_index.md.df7f96c5.lean.js => components_sample_axis_index.md.de1055b1.lean.js} (100%) rename assets/{components_sample_basic_index.md.bf6fe05d.js => components_sample_basic_index.md.0f2b9a3e.js} (99%) rename assets/{components_sample_basic_index.md.bf6fe05d.lean.js => components_sample_basic_index.md.0f2b9a3e.lean.js} (100%) rename assets/{components_sample_candle-type_index.md.15b2305b.js => components_sample_candle-type_index.md.c9d4a4b7.js} (99%) rename assets/{components_sample_candle-type_index.md.15b2305b.lean.js => components_sample_candle-type_index.md.c9d4a4b7.lean.js} (100%) rename assets/{components_sample_data_index.md.e21a7f8d.js => components_sample_data_index.md.7dfa20e6.js} (99%) rename assets/{components_sample_data_index.md.e21a7f8d.lean.js => components_sample_data_index.md.7dfa20e6.lean.js} (100%) rename assets/{components_sample_i18n_index.md.6cb84381.js => components_sample_i18n_index.md.8ed87aa7.js} (99%) rename assets/{components_sample_i18n_index.md.6cb84381.lean.js => components_sample_i18n_index.md.8ed87aa7.lean.js} (100%) rename assets/{components_sample_indicator_index.md.18fc3e7d.js => components_sample_indicator_index.md.7f178871.js} (99%) rename assets/{components_sample_indicator_index.md.18fc3e7d.lean.js => components_sample_indicator_index.md.7f178871.lean.js} (100%) rename assets/{components_sample_overlay_index.md.3f97d257.js => components_sample_overlay_index.md.80c1a44d.js} (99%) rename assets/{components_sample_overlay_index.md.3f97d257.lean.js => components_sample_overlay_index.md.80c1a44d.lean.js} (100%) rename assets/{components_sample_theme_index.md.10b62b35.js => components_sample_theme_index.md.b864fd33.js} (99%) rename assets/{components_sample_theme_index.md.10b62b35.lean.js => components_sample_theme_index.md.b864fd33.lean.js} (100%) rename assets/{components_sample_timezone_index.md.9ad259f2.js => components_sample_timezone_index.md.01d1e31d.js} (99%) rename assets/{components_sample_timezone_index.md.9ad259f2.lean.js => components_sample_timezone_index.md.01d1e31d.lean.js} (100%) rename assets/{components_sample_tooltip_index.md.6e7e6d72.js => components_sample_tooltip_index.md.01467383.js} (99%) rename assets/{components_sample_tooltip_index.md.6e7e6d72.lean.js => components_sample_tooltip_index.md.01467383.lean.js} (100%) rename assets/{en-US_guide_getting-started.md.e87ea1ad.js => en-US_guide_getting-started.md.9ca97539.js} (99%) rename assets/{en-US_guide_getting-started.md.e87ea1ad.lean.js => en-US_guide_getting-started.md.9ca97539.lean.js} (100%) rename assets/{en-US_sample_axis.md.5227b6d6.js => en-US_sample_axis.md.28f57e25.js} (99%) rename assets/{en-US_sample_axis.md.5227b6d6.lean.js => en-US_sample_axis.md.28f57e25.lean.js} (100%) rename assets/{en-US_sample_basic.md.5b19d9e1.js => en-US_sample_basic.md.a20f4ddd.js} (99%) rename assets/{en-US_sample_basic.md.5b19d9e1.lean.js => en-US_sample_basic.md.a20f4ddd.lean.js} (100%) rename assets/{en-US_sample_candle-type.md.2149e9fa.js => en-US_sample_candle-type.md.f057a0d8.js} (99%) rename assets/{en-US_sample_candle-type.md.2149e9fa.lean.js => en-US_sample_candle-type.md.f057a0d8.lean.js} (100%) rename assets/{en-US_sample_data.md.78a74d7f.js => en-US_sample_data.md.d50fd3e1.js} (99%) rename assets/{en-US_sample_data.md.78a74d7f.lean.js => en-US_sample_data.md.d50fd3e1.lean.js} (100%) rename assets/{en-US_sample_i18n.md.ec5e03b8.js => en-US_sample_i18n.md.1ad12f8b.js} (99%) rename assets/{en-US_sample_i18n.md.ec5e03b8.lean.js => en-US_sample_i18n.md.1ad12f8b.lean.js} (100%) rename assets/{en-US_sample_indicator.md.67007b42.js => en-US_sample_indicator.md.1705d7aa.js} (99%) rename assets/{en-US_sample_indicator.md.67007b42.lean.js => en-US_sample_indicator.md.1705d7aa.lean.js} (100%) rename assets/{en-US_sample_overlay.md.42734092.js => en-US_sample_overlay.md.e4d9ba54.js} (99%) rename assets/{en-US_sample_overlay.md.42734092.lean.js => en-US_sample_overlay.md.e4d9ba54.lean.js} (100%) rename assets/{en-US_sample_theme.md.e11fcd7e.js => en-US_sample_theme.md.d1dbc68f.js} (99%) rename assets/{en-US_sample_theme.md.e11fcd7e.lean.js => en-US_sample_theme.md.d1dbc68f.lean.js} (100%) rename assets/{en-US_sample_timezone.md.d3cc9c94.js => en-US_sample_timezone.md.6e8af94e.js} (99%) rename assets/{en-US_sample_timezone.md.d3cc9c94.lean.js => en-US_sample_timezone.md.6e8af94e.lean.js} (99%) rename assets/{en-US_sample_tooltip.md.85673bd2.js => en-US_sample_tooltip.md.f745fdf1.js} (99%) rename assets/{en-US_sample_tooltip.md.85673bd2.lean.js => en-US_sample_tooltip.md.f745fdf1.lean.js} (100%) rename assets/{guide_getting-started.md.bd134052.js => guide_getting-started.md.7021aecf.js} (99%) rename assets/{guide_getting-started.md.bd134052.lean.js => guide_getting-started.md.7021aecf.lean.js} (100%) delete mode 100644 assets/sample_axis.md.339486a1.js delete mode 100644 assets/sample_axis.md.339486a1.lean.js create mode 100644 assets/sample_axis.md.b22b37e6.js create mode 100644 assets/sample_axis.md.b22b37e6.lean.js rename assets/{sample_basic.md.59825fcd.js => sample_basic.md.80007630.js} (99%) rename assets/{sample_basic.md.59825fcd.lean.js => sample_basic.md.80007630.lean.js} (100%) rename assets/{sample_candle-type.md.8c5ec3fb.js => sample_candle-type.md.cddd1021.js} (99%) rename assets/{sample_candle-type.md.8c5ec3fb.lean.js => sample_candle-type.md.cddd1021.lean.js} (100%) rename assets/{sample_data.md.c18759dc.js => sample_data.md.2938204b.js} (99%) rename assets/{sample_data.md.c18759dc.lean.js => sample_data.md.2938204b.lean.js} (100%) rename assets/{sample_i18n.md.de0ef7be.js => sample_i18n.md.92637d54.js} (99%) rename assets/{sample_i18n.md.de0ef7be.lean.js => sample_i18n.md.92637d54.lean.js} (100%) rename assets/{sample_indicator.md.dd6fd3d7.js => sample_indicator.md.9f30f27b.js} (99%) rename assets/{sample_indicator.md.dd6fd3d7.lean.js => sample_indicator.md.9f30f27b.lean.js} (100%) rename assets/{sample_overlay.md.83ae0572.js => sample_overlay.md.f27fefab.js} (99%) rename assets/{sample_overlay.md.83ae0572.lean.js => sample_overlay.md.f27fefab.lean.js} (100%) rename assets/{sample_theme.md.a35910ad.js => sample_theme.md.3fc59377.js} (99%) rename assets/{sample_theme.md.a35910ad.lean.js => sample_theme.md.3fc59377.lean.js} (100%) rename assets/{sample_timezone.md.d8a256a6.js => sample_timezone.md.c7962eed.js} (99%) rename assets/{sample_timezone.md.d8a256a6.lean.js => sample_timezone.md.c7962eed.lean.js} (100%) rename assets/{sample_tooltip.md.e12dd419.js => sample_tooltip.md.761071df.js} (99%) rename assets/{sample_tooltip.md.e12dd419.lean.js => sample_tooltip.md.761071df.lean.js} (100%) diff --git a/404.html b/404.html index 3ab4ed737..fa73abae4 100644 --- a/404.html +++ b/404.html @@ -7,7 +7,7 @@ - + @@ -16,7 +16,7 @@
Skip to content

Page Not Found

Make sure the address is correct and the page hasn't moved.

Please contact your KLineChart administrator if you think this is a mistake.

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/assets/app.33545aa3.js b/assets/app.85d5c290.js similarity index 99% rename from assets/app.33545aa3.js rename to assets/app.85d5c290.js index 8669943dd..a56dec1f2 100644 --- a/assets/app.33545aa3.js +++ b/assets/app.85d5c290.js @@ -1 +1 @@ -import{_ as j,h as V,u as U,o as a,c as n,k as r,t as f,l as c,e as g,F as b,D as x,d as X,j as F,f as k,Q as T,a3 as v,s as y,a4 as L,a5 as N,a6 as P,a7 as R,a8 as W,a9 as H,aa as I,ab as A,ac as Y,ad as z,X as G,y as q,ae as w,af as D,ag as B}from"./chunks/framework.c401375a.js";import{t as K}from"./chunks/theme.cc8033bd.js";const h=[{name:"Northstar",logo:"data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAAA8CAYAAADsUJZ7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAABw6SURBVHhe7Z0JnBTFvcfrXz17AoZDjRCVBKJBg/q8FTX41Kj4EmAviezscsgu4JFobjU+gj410ajJ04ewu4rL7OKxFxjiQ000PMUjGhWPvHiBiqIvIqACe8x0/d+vZms3zE737MzsDOzs9vfz6Z3+V89Od1dX/etfVf/6N4kumKnAX1FEkmYLFv8iBOWZIxkK78TN/UUJWdVSt+wxk+jh4TEICCu2qXPnDssKWg9CPD+cOsBgwSusth0VDQ0NHSbJw8NjACMXLVokfR1W40BVahoSVK5yhy8xooeHxwBHvrrxoxIiOtfIAxiaW+SvmGQEDw+PAYxER+1isz/QgeEm5pp9Dw+PAYwkIY41+wMOFrxVMP/QiNgVx5ldDw+PAYxkQfuZ/QEFC9HAbH1TCfm4SYLNRsPMnoeHxwAGXdGBBayyj5m5uDlQdWFL3dJ/ENkHmUMeHh6DhIGk2KDTuE5R68TmuuomkwaT1Pqy2fXw8BgkDAjFBgvtQyHU1OZAddmqQOBTkxxGCeVZbB4eg4xMV2zQaeIe2+qY2BSoWWPSIiAhPIvNw2OQkcmK7T2h+PzmuqqLV9fW7jBpTngWm4fHIIMKyyrbYdVkGzkjgJm2WhH9WpLIYluNIrJGCuKRUrDa+Ununa2tI+116xaH9HcLyyr+SILODv+fEG83B6oO0/seHh4Dl4y02IhomiXE08RinZSymYhroO1usJlfyt+/be6oQ7ecab4KbUaexebhMcgYMLOisDp/HMyXzxKJa7E/wyRDCfIYs+vh4TFIGBizooKXN9VV/2d2q7gUqmw0upzTJy9a5Dv/8stzBqoDsoeHhzsZOcbWg2d3fZJz5rBh7bl2jtgIi22kTlQspliSXmXmD8LfAvGOsRX6580WMnY8OqmsNxrrlv5zVUOcFJXOu5AtGmXECKQVamxcvvwTIw4qisrnX8RCDTdiBMOoY3ltbW2bEWOC8jxDj7caMQKrlVY2NFR9ZsQBQ7G/4ntKihFGjEDuHnpvY+PtrUYcNGS6xbYlGAwVrV17R7vKET/sUmoaYr7QtlWSrh50EzEtibUx2Y0zZy50LEyxYJJXOf2e3uwO3yHma4MOZrXIKU/09plSQ8zXeof5Gqff0Fswj/c33xpQKD384nC/emv3fT4oeywZq9iYRZtSquih++/ZUjxnzgFIurLziEGK6VLKNCoKGtFu2T83goeHRz8iYxUbLvySlvqaZ/U+B30/FyQiFrgTFA+OlBkxTfBlxeXzv2IEDw+PfkJGKjZmvqOxrmq53i8onXcwC7okfCAKnmZ20gTlw2pcZAQPD49+QuYpNuYnPt08pjvGmpR0LZHINWIPyGd20gYJMWd62bzDjejh4dEPyCjFxkJsarfpwq5VBcX+i7+OxLij4hKLV81u6iDySSH/w0geHh79gBQqNn4Pf+6ERfUDJcSVzKIa2/91Hus7UGq79BsC19xXtdUkIU0u1orFiL3BitXNZj+lwGorLpm18Hgjenh47GNSodh2KeIFE8eNGdcUqLpcO8q2BKp+21xXVbl7a85YocQ1UHZhC6sPMC50Tkvdsg1GFkXlFx8NjXKREXuFmR9rnvHSK0ZMNaRU6Caz7+HhsY/pk4MuC/6cJZ/XUts5O+lGQWnFVJLUjPNYJikhoJRubK6rvsaIYYrKKlfjY2qnFBv8vyKikx8ofP1wX8H6lSbZlUJ/xUf4vuMaU/Nbjg0CsTy7N6fdQn/lS0T6hdTRKMXHt9RXv2jEuKmsrMza1sETVEgcziS+TIJyYeEqi8VntrA/sEP8unaLMV9PiO9cVLl/liXjagCDtlJimNh9/OjRbYsXL4bh7oy+3k92ywgfQBL208jX8UaMgJScYJPYbsRuhoidu+rq6nYZMQye3Sv4naOMGIEuA7aid40YhZUTDO3Mz9+19o472k1SX6HvVFbm5QaDQ+xgDop/4uQiT+/bo5filHdSqCeRgc7jvKQmKuWLcvp2yrvi4ivz7NzWhMPnM1n2UM5t27z5hfZ169YlbsTorljZQu2yFRdMu+wvSbmrtrZWPycU9WiSV2zMu7Gd31Rf86RJiUlhecUPiOm3RowbdGfXHDV+9LQ9K0pB6bxTpJTPGLFXdGTdpu/umB3M3vJI9vT155hkV3pRbHU45jdiT56H1XoyPh0zW5MqxabfB/vaxg8vQLGejfs7D8psqDnkDPM7qNlNbFvLmlfetdGk9gry4gPcbyIuLXhkvBtl6g1kwlOW5BUNtTV/NcfCFJUuOENI9T9GTBqc6JfoGSw2YphYii0ewg2XoO249teI+E9ow+5pXLHsQ3O4VybPmpU7MpQ9C8+4EPl9AvJBK6GklJpGD+fgHrvLYvgVkkTrjZg0uM/rYSz8uxHDwACZLyUtNWLCIM86iHkjC3oOv9+AsvxwZ3Js/m3mwhG5lr3NiHFhntPnsCZeh/gE277le5brpLqiyOw2WAbT4lVqmuYV1b/Df9YYMT6Y/57HOaU9W38otRvMbq9oqzIUtH8WytpyAbEYa5KThqS6BZn6sRF7cmJB+fwis582tGJ/9Z2PXkBO/B5iUa9KTdNpDf2UrNAbhWUVv/P7/fF78ycG6jTht+k4fH5fKfk8rOvls1DhzfF+DZSihBoahZuYDOk6NDZvF5dVXmEOx0T7NI5S2X/RygG/cy60mV4Jk7RSyzRwo9nIwAnIu1nIgzUwmp4qnLlwnDmcUsxzGo6907D9QsjQ34vKKq7Vh/TxhBVbWCuTKmkOVP/RJMWNbNtxKRRNfMqQxQ4f8bT6+js+NylhUCm1xXVWp9Q7UGbXdnbD+EcmqU9wSO1ESx7R0u2JZHX95MmT0+ZmAovkMhSaJ1F4knxtIvm0wtlNec/sJediXdBmf2Fn13eKmQXyWXfrb0e+x2xMS0ouGcpKPYa8TdpaHGjgwU8S0n52etnFR5iktAFFl4W/1xX5K3+p5QQVG4fw8ErdwnD3RkNDQ4f0hYpgibmOc2hQkGwmu/SBQM2bJqkLwsEErDXx9MTxY+7sWH36abhztMCpQbZ9dg+sVm0CO0ATDhh7+GwjpJTCUnTnie7AOfqsOHUFVKweLSmp/JJJSiu47kI91mrEjAPXf1WBf55rg6pyQ9fiS2mvwJkGGoYDLJZNOtKOSUovxFcXXjT/sLgVm1Y2uMo5LfU1jSYpKcLRK6SaBsttp0ly4hfNgbt1/zyCorL5U1HATjJibFh8IdmeFe7GskqpnxkUtE2Sf2LEKJhpUaq7XuFKReI2I7qCfN2OP29C8W4JP7MYQLkdqXJ4mRHTjpRijtnNRFD0SHd1otCD7sj3BUb06AkUfv62tr2UP2j0LVUWr2JjSbygaUVVnZH7RNOKu1+B6eXXA4AmqRtUxvubA1W/NmI3erAc7WLcCoqJL22su/vtYMtp30UF/mdE3RTRtKL6v/HxWKcUxcFfqJzLzX6f0UqSSNagYjk+r7CFy2oJh8QRzYHqUU11Vd9orqv6imy1D0S3GQWKPzJfjYZoRmHZvPOMlBiKdEDPIkWqBBdxGa7jQZzLdVYMyvYU/dmu1P/iQ49Fdm8oCzFmbVlbwBHf15siG+eLH7Rwl+Ij6ndwHzNx/quxr2e0cRsusPhWgX/BgUbqJpS38ySUsVhRNJ5Feb8UXbMLsR99/hgbrutifHZjU/Yb+Oj5ve7QXNGE/7/n94sky/vxGYFF/Cg+or4ba4PV70eGXYWH+4hTfe4CZXe+2U0Q/gf+hM+l8w/n+hGeQ8xhMJzrlHhmRdEY8RXaP83IKaPQX3EVLuJGI+qC/3JHvjhtTVXVbpPUTbF/XimTjFexLmsKVC3gJybnhnaEXoVp8vVwKou3swrWxxGPLcasqB0c37xyeXj2pcA//xgS6kUnhYN72WZb7eN7vmgmmVlRPa6Gc6ALGo0uTCx5RssKd0u6ZNasg5Sd/QSe+ASTFAF+45nmuupJRowA53adFZVt23P08IIRw+juppSkXXGc4F3Dc/Kc3CkKyyr+DuXwDSNGYIvW/Xu+VtENXK/rrKhN/PVVK6rfMaIjxWWVJag8D2BXjw1GoYintayofsiIYYrKKubi63cbMRIWO/LE7oN7ulakEuTd69r6NmIEHUH7oN/ff3fKHOVjUVxeMRW9lVXYdcy7kKSvra5dFjUMFWtWFM9iEwydqAmIovLKq3HQZViK3+rdYmNxVTqUmgaV6VeobLfpbikq1wsWiWlOSk377rCgiGl9V5jXo8J9X++GdgSv6VZqaSDsMEyi1ogRQHmNtFS2a3c1IUgsNHtRoBIviaXUNA21tR8rIb/n1qLiN06FJTLRiH0CivkhnOclI/aE8ra1OQaB7C80BqoaUIgeMWIUxBRVntCIuY4foWxvSqdS6080aoXP7pODlq1StjpnKLWH9YYRI2ExMrZiY3EdujVR3cIUwk0rlv0I3af9oORObAhUvW/SI/ikjeei9jk6b0bAvJGyQgXaimhfdeqxTPQzcyRtSJLX4rxRyrgT+kHJrEv69DIZPRDq1hqjNbOVUnE9n85VGxQ1btkFkZ2ySChQ6s+b3SjQ3ckEt4/nzKcDHBX9mKV0j3pMYvz5paWDJtgjk3D3L2Xus7tVF50RlclxJRGuIcdVsbFQv4FSSygkj/aNQlfrF0X+yrUwjwPF5fPjG+jXp3OhuLg4j5RwHLTdE7San6CrMUVPTvBDx+dLpjrYw1nmcNrQzpu4+FuNGAHOP0SpoKtrSFz4VHhcyhEWr7bU18QYX4lC+705Qiwcu6LJgPzo9pTPRNCQuHZ7cSxqRhp1xc1C1d/fb4gc0lLkrzhZR1zWDrx6hnDPraSkJLtzDLnfQVPnzh1WOHPOuKLyhUcXlFac2NuGcpRv/jcakgmvaogF6pdrOXPLzDubAzU/NftxoRXQbsp/FK319Tij9oT3K5ilOsa/+UpSqLwRl7iN8XTDYodlqSmrjHtI0M65A2aDo5WTDqz9sm5G98vRaRcKd96M8orerU0X8PBcQyIhr182u3FBgrvX2vYE1m3qXBWYIsbdMg3FIqElVZ3jdu55C87Cw3q23bK3jbKzd+Vvb9u952bnjtj92jtbdkP5vY2tobi8co72izP/u9cp9s87q7Cs8sGissqPsoK+z8jKekewvUFK0s7HMTfcp+ukGcpyqpW3azmLOhEq4j1NgSo9RuVqRfVEtzYqb+S9uPCIVh9yNsz0lYX++REzO/FSWnr5fviN2OG3mXcoVlO6lu2EWibNgyKMO5RRKmhYssTVaRfXkhVkut6ICcNMMdbQKffZTgckkev3ifnLOBuyu+/oGTfkxzSnrS1f7pWB7L0NC4orCALKAx5Djw1tIw7kYBuPrVjXQTsntBG9npnm3/YKsBwtKLOlTPJPuKYSJOl3hqSkTIRBITN7KUEpvtmpjLES34tQbCz4vk/Hj9bTsgldAFqbG3D3jpaZfmg4WXVh6bzu4JDx0krtV+IXYryAg7dKy3dOV4jwjlWnfksR/Vf40F5m6/tvLcdjc3baZZ5RMmue40xorxC7zlgzS5exPWfYF3R/WxGJ7MmTf5lUkIKeNNYvfUMPJDttTpNDA4HmQNWDeCB98vHcE1jjB6DXUwfLKeF6kyywHG/BR5JuGXuflvrq553KGNL/8E/FxqKFFN29/6YtZyWyjrC4vGIenkJvLzVBuyRvLSqrCC93iAcdVQIP1/Whouu32Ra+bzXU3hW21PihUyfAVmiBIt0nrxLUUQ3cnHZ1q2yr+Fr0KJjclZF0V3pOUCjL9ZWCUMp84IF/S2mLOsjgXSNy/chHx1nyJNHW0s0lM5NsFBMgPD4mRFxrYjOBTsXG/DCUyC0+H2kfH2sX5+nxKZ2pMSn2z/82zL4lRowDWlTor7hd11aT4EpOFusxPpfZJH4Nim3SqsBd2tFT7G48dWxQ0aP40X3qShB22nVxHkTre35xWUUSy7rYfSCbw12FuAm6+OZp8Px36hUVRuxX5IXyei0v/QHtn9dcVzVbsTob5bMZbcVW3QKbw0mBG7dsiyLfwJYG0CHWRkRG5HM8QLHx49S2vViFaGtQcC4zzVHMwcLyyjNixfLXfk+KuAE1IqGZR1gvVxT659fo/rxJiqKkrPJQXMdlRowEikPm0elds4G7mk46OMuSf4Ti6Bfv5Awp9ROUZUd/MRTxm9AtT7DwsHuIIRYJLbiWyo71/U3ms9/RJlVGRAbpoqWu5vHmuuqi5kD1ge35NFQpdQiH6HAdV67nBlP+WNSK6XiYrmGcULZ7DbXlRn5udq9W/eRFi3wonN8xYhQot6+gTBdj98TeNijztPi8JoqUbN3C+SOLyFIjFdv7deSJ2T6fPI+FGmUJKKHyin+dPBk3vgfaN0uSWoMamtQCalgHc9Gfv89pPaWeErcFP4jfduo23bl18+gpDVWdb/NufeCMr2VJ3zo8+bQ54SbK6pU1L+P+nLsjRKeikCQ0Wyt9FBHLrAcnJuInhx7xFLPrALn6nu0lXK1FaTm/2T0DYD2mqBvh5vuWvRUee+yxNaC8NAWWrc7j1gugQdys8wO1S4jZjwJ1xXUpU0dI9Zp3IzZtGQuDw2UWltstq/08KOqmpkDVC71tuJpE3I/ShlQUymLLelpIOowUDc1t5YWoAc/5WP5VkFqK4nb0yEM/WlhSsiicsXr8zbaD2h+qT852eBglO+3sF/WMafHsiqOKyhYcW1BWeUW7Zb+CFkoHa+xGexhjK0fGXd71Ipf21acfbWWrp/BA0hLvqS9Agbg67eJ6E7Jwvzl2zOtoLZ3jvxH5bDsU17hl4ez5h+GaXKNrKMWuzrt7A3Srw42VI2z1m4YrXZjVCY6TT3j+Mj8/P8qDoQvWARfdkHavSwiziIeb3WhYfKBXrhgpY5BWm3yWQuooKDUphTyxMVB9K7H6hs3qLCV8h6PyvAcLZIPK2XKCdutopTwdQfYE8/99g+gIdM1q2NYexOpFPLnbkXpw58EueIMS6iSY9QGTIILNk84lxTom2RiT1K+I5bSbKOHoJMSua2SRB5XFpRXzjOhI2G3G5np82VGpouJsOWAI6UX9+xL3KLXMF/dTB9aUEbbISDgrIaIvTBhsN1zzDt3dub3lXcj2uf82iYMz8aXgFF6y41PLs7JVUbBdjkeFPAZm59JCf8VPpF6ywHITS54wVLY98oXKuRGWVtoHMg3aMrtt1/Ccf+9aNI1uHAVXT9IzNzfDqks8JlmKF8HHQnts+zp8b0LxxN1VdFsEr18KTZLexD27zWrisXEtFOBvmlbU/K1TNmGqOWsKMd2E/3VcYK7RUS9aAtWOk0CJLoJPlkJ/5SLklbv1yfwsKri+x/e6xjCziN5+oMei9r4ugtfgWipxLW7hnG5GzyFiqZ4eoxq18cOzjZggloUnoC2mWXhG53amRfE4zun6+52RY+k6Izqh3aEi8k4yv6Oj3+h9veQrn/K3I98cFSD+5338fjXy5G8sVMx1r7iHYvx1aWh5cVOgOuoZJ7MIvjckWyIfNzw/2GHdoIQcAsW1oai08ipJ1GEL1cGkzmHbenmnnXPx3lNq/Bpy83RdgLqUmnr4pP1Cq0+7Dxl3G7a0RahNFQ/dc88X+EjJW+I7J0oo1m/h0dBsNEKvoZD/A9vLOlrGKJX9mWTZHEupoeA8efS4MUnHuU8VFok/mV1niPTSsrsE08Mk5Fq9BZXruyf2KsPffXdo1zUlvvEf8HzqsbkpNd2g62gjrrCUMV8gBKLyDnW9vPOQEGvr6z9HCXIdY4XCOxRKTTuZN0Vee/SGb8fsPewtpF4crVt5ah1yuSTWWt9GC77BZnqiU4PzC0zBiUzid53/kj46x9LEVaPy6LimuuruhcgdTaedEurI0paMjv+VMXy6eXSMSLuJcdS40bcib+4zYgy0QzMdo5UZtl5mxHijJX0X9nynxL7gyHGjn0YB6BkxedCjraVhVvsKIzpy1FcPegZ1R8dp6wv9YjYzVUjdty/yV16icr+YQSo0G1p3P6izdin4dGb5CdS1Dfl+mAQp8Up3ImweswhIkhNgdv6qqqoqqNPVw+fnBFeddgPsyidx/qTXW+4r9ERHrEi7iaCVz6fvj0Yry85xvxIEef5qyPKd2VC7pF8MDOv7Y6Iru7pKHp31gpRY0BnJwh2dd2Trl5Qnn3eod/fh//9gxIxH96ltJTkkc/ghJa3jSdmfIEstVr41gu1PcbOr0PKncUEuryWyTmiqqyrf8zVnHc2nTw61f6EXeV8Ny7Hfdz3diOW0myhaUTYFqueRjlrKIimFBKuvAzXmVtk29OTV99612ST3C5oDy7SjeAXuLWZFHgzgOdl66KdpZThSc6/o7zG6gfg/95UqMSHuyCe9LLKlU85spPY23/bemLvtIJ0Fff+ZLeUhUlmbWdrDScrfQ6mkY0YEZZcfhVY9AxV1SlNgaXfYF9VyxiEdqybVI5/RFRaOEV8zDWm5O+0mQ2NdTX1Hvhivw00jJ9ENif1uA4Cv8FtKqJtgdh+Gbv6PGxtvT7ICpBeUh3uE8k3Afd2iu/HIt7D1Pjjgdtz3O6gbK1jxqYkGeG2pq1ou7NARyead9rlrClQVohZ+F//bjKQtmZr/VFRWeSMsgGpUlk2FZRXXQJk8H/TZr2V1+KoFiQvM91IDh+PhN0nLd0vXGs8ueM3pI0IhKABBV6Clcl3T2CfinBWdNmPhISJXOXa9d3z1oA/WLe70pUsEPWUepNjx4bJ3H7SloWFxwrOM+k1Tdh4fJ5QcB2W3PxqFbGYZIuLteiYs2GFvSPZN8HpGVvksR4t5de2y9/ABpZk+dPTk7e3tozpErsPqg7YdPUOvT507dwzZWY5ji/E+Oz2jjd+ICiipGRKUn61ceVfEW+m1O8XL7358qBETRobsUL7I+7yj4+NdqVzWdjzy7jDbHtka8jnUp+i8c0LP+H5p8+a8HNseYgeH5NhZ2pBMFudzxso/nTcJxhwMA8UWXph+IIpnnWzf8ZzKHnmhkOoMHHINR504+oUMdDcstKU9o+RqhRYMKR0mCQqN3B0FU0Gcis3DwyOz6dS+0JiFG7fcDsWyC83vViT22blUm7D4nceUlMt9rdse6unvpNacOtYO0eXMpH2GUhpZ0xVPsXl4DAq6zcrpZZWn+5gPVkLUuznq9YYe6yHm9fhsYGE92FK3VL86qxteBMvymEnnMIkFOPNUKNK0zbQ6AWW7Ibvg6bSHgPHw8Ni3dCu2gtkVJ8qQ+LMgco9Z7ghvx888js+HFVtreiozjY6VFrKplInKcMKUvdAhCe7Nmr4+k1/a6+HhEQdhxTZt1vyvWjY/gy5hHMt/+CPB9DwLXi+l/DO1bvtrzwFPZkG86lsTQ8KeTqTDndDR5tA+hSWdmT31qXVG9PDwGKDQtFmzhlt2zlNQat80aWGguPSY2NvE4lV0LTdAVb0YDPLLbi9fVc1nj7Kp9Uyoym9DsU3RyzDMof4Bi/qsgvX9YgmOh4dHeqFCf8VV6H4excxb8PmeFGoTzK83D8yTm7pWAPSEn5jsa9/edhhJ34mycx3aGVB+R8L8S2psLt1AOTfKnGF+ecHaWBESPDw8BgjdY2xO8INHZrfLYWMtS45D7/JwWGETYPlMZGJ0LRMdi9vLsNiJP38hIZdlFTylX7vv4eExKBDi/wH0RTrUeESzKQAAAABJRU5ErkJggg==",website:"https://www.quantit.tech",amount:600}];const M={class:"home-section sponsor-section"},C={class:"home-section-content sponsor"},J={class:"sponsor-grid sponsor-top-grid"},O=["href"],E=["src"],Q={class:"sponsor-grid-item item-no1",href:"./sponsor.html",target:"_blank",rel:"noreferrer"},Z={key:0},_={key:1,class:"sponsor-grid sponsor-platinum-grid"},$=["href"],ee=["src"],se={key:2},te={key:3,class:"sponsor-grid sponsor-gold-grid"},oe=["href"],ae=["src"],ne={__name:"HomeSponsor",setup(s){h.sort((d,u)=>u.amount-d.amount);const e=[],t=[];for(let d=3;d=5e3?e.push(u):t.push(u)}const o=V(e),i=V(t),{lang:m}=U();return(d,u)=>(a(),n("section",M,[r("div",C,[r("h2",null,f(c(m)==="zh-CN"?"赞助商":"Sponsors"),1),r("div",J,[r("a",{class:"sponsor-grid-item item-no1",href:c(h)[0].website,target:"_blank",rel:"noreferrer"},[r("img",{class:"image",src:c(h)[0].logo},null,8,E)],8,O),r("a",Q,f(c(m)==="zh-CN"?"成为赞助商":"Become a sponsor"),1)]),o.value.length>0?(a(),n("h4",Z,f(c(m)==="zh-CN"?"铂金赞助商":"Platinum Sponsors"),1)):g("",!0),o.value.length>0?(a(),n("div",_,[(a(!0),n(b,null,x(o.value,l=>(a(),n("a",{class:"sponsor-grid-item item",target:"_blank",rel:"noreferrer",href:l.website},[r("img",{class:"image",src:l.logo},null,8,ee)],8,$))),256))])):g("",!0),i.value.length>0?(a(),n("h4",se,f(c(m)==="zh-CN"?"黄金赞助商":"Gold Sponsors"),1)):g("",!0),i.value.length>0?(a(),n("div",te,[(a(!0),n(b,null,x(i.value,l=>(a(),n("a",{class:"sponsor-grid-item item",target:"_blank",rel:"noreferrer",href:l.website},[r("img",{class:"image",src:l.logo},null,8,ae)],8,oe))),256))])):g("",!0)])]))}},re=j(ne,[["__scopeId","data-v-bca17933"]]),ie="/images/logo.svg",ce={class:"NotFound"},de=T('

Page Not Found

Make sure the address is correct and the page hasn't moved.

Please contact your KLineChart administrator if you think this is a mistake.

',4),ue={class:"action"},pe=["href"],le=X({__name:"NotFound",setup(s){const{lang:e}=U(),t=V("/");return F(()=>{t.value=e.value==="zh-CN"?"/":`/${e.value}/`}),(o,i)=>(a(),n("div",ce,[de,r("div",ue,[r("a",{class:"link",href:c(k)(t.value),"aria-label":"go to home"}," Take me home ",8,pe)])]))}});const he=j(le,[["__scopeId","data-v-50731836"]]);const me={...K,Layout:()=>v(K.Layout,null,{"home-features-after":()=>v(re),"not-found":()=>v(he)}),enhanceApp({app:s,router:e,siteData:t}){}};function S(s){if(s.extends){const e=S(s.extends);return{...e,...s,async enhanceApp(t){e.enhanceApp&&await e.enhanceApp(t),s.enhanceApp&&await s.enhanceApp(t)}}}return s}const p=S(me),fe=X({name:"VitePressApp",setup(){const{site:s}=U();return F(()=>{q(()=>{document.documentElement.lang=s.value.lang,document.documentElement.dir=s.value.dir})}),w(),D(),B(),p.setup&&p.setup(),()=>v(p.Layout)}});async function ge(){const s=Ve(),e=ve();e.provide(N,s);const t=P(s.route);return e.provide(R,t),e.component("Content",W),e.component("ClientOnly",H),Object.defineProperties(e.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),p.enhanceApp&&await p.enhanceApp({app:e,router:s,siteData:I}),{app:e,router:s,data:t}}function ve(){return A(fe)}function Ve(){let s=y,e;return Y(t=>{let o=z(t),i=null;return o&&(s&&(e=o),(s||e===o)&&(o=o.replace(/\.js$/,".lean.js")),i=G(()=>import(o),[])),y&&(s=!1),i},p.NotFound)}y&&ge().then(({app:s,router:e,data:t})=>{e.go().then(()=>{L(e.route,t.site),s.mount("#app")})});export{ge as createApp}; +import{_ as j,h as V,u as U,o as a,c as n,k as r,t as f,l as c,e as g,F as b,D as x,d as X,j as F,f as k,Q as T,a3 as v,s as y,a4 as L,a5 as N,a6 as P,a7 as R,a8 as W,a9 as H,aa as I,ab as A,ac as Y,ad as z,X as G,y as q,ae as w,af as D,ag as B}from"./chunks/framework.c401375a.js";import{t as K}from"./chunks/theme.3e7d3ec0.js";const h=[{name:"Northstar",logo:"data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAAA8CAYAAADsUJZ7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAABw6SURBVHhe7Z0JnBTFvcfrXz17AoZDjRCVBKJBg/q8FTX41Kj4EmAviezscsgu4JFobjU+gj410ajJ04ewu4rL7OKxFxjiQ000PMUjGhWPvHiBiqIvIqACe8x0/d+vZms3zE737MzsDOzs9vfz6Z3+V89Od1dX/etfVf/6N4kumKnAX1FEkmYLFv8iBOWZIxkK78TN/UUJWdVSt+wxk+jh4TEICCu2qXPnDssKWg9CPD+cOsBgwSusth0VDQ0NHSbJw8NjACMXLVokfR1W40BVahoSVK5yhy8xooeHxwBHvrrxoxIiOtfIAxiaW+SvmGQEDw+PAYxER+1isz/QgeEm5pp9Dw+PAYwkIY41+wMOFrxVMP/QiNgVx5ldDw+PAYxkQfuZ/QEFC9HAbH1TCfm4SYLNRsPMnoeHxwAGXdGBBayyj5m5uDlQdWFL3dJ/ENkHmUMeHh6DhIGk2KDTuE5R68TmuuomkwaT1Pqy2fXw8BgkDAjFBgvtQyHU1OZAddmqQOBTkxxGCeVZbB4eg4xMV2zQaeIe2+qY2BSoWWPSIiAhPIvNw2OQkcmK7T2h+PzmuqqLV9fW7jBpTngWm4fHIIMKyyrbYdVkGzkjgJm2WhH9WpLIYluNIrJGCuKRUrDa+Ununa2tI+116xaH9HcLyyr+SILODv+fEG83B6oO0/seHh4Dl4y02IhomiXE08RinZSymYhroO1usJlfyt+/be6oQ7ecab4KbUaexebhMcgYMLOisDp/HMyXzxKJa7E/wyRDCfIYs+vh4TFIGBizooKXN9VV/2d2q7gUqmw0upzTJy9a5Dv/8stzBqoDsoeHhzsZOcbWg2d3fZJz5rBh7bl2jtgIi22kTlQspliSXmXmD8LfAvGOsRX6580WMnY8OqmsNxrrlv5zVUOcFJXOu5AtGmXECKQVamxcvvwTIw4qisrnX8RCDTdiBMOoY3ltbW2bEWOC8jxDj7caMQKrlVY2NFR9ZsQBQ7G/4ntKihFGjEDuHnpvY+PtrUYcNGS6xbYlGAwVrV17R7vKET/sUmoaYr7QtlWSrh50EzEtibUx2Y0zZy50LEyxYJJXOf2e3uwO3yHma4MOZrXIKU/09plSQ8zXeof5Gqff0Fswj/c33xpQKD384nC/emv3fT4oeywZq9iYRZtSquih++/ZUjxnzgFIurLziEGK6VLKNCoKGtFu2T83goeHRz8iYxUbLvySlvqaZ/U+B30/FyQiFrgTFA+OlBkxTfBlxeXzv2IEDw+PfkJGKjZmvqOxrmq53i8onXcwC7okfCAKnmZ20gTlw2pcZAQPD49+QuYpNuYnPt08pjvGmpR0LZHINWIPyGd20gYJMWd62bzDjejh4dEPyCjFxkJsarfpwq5VBcX+i7+OxLij4hKLV81u6iDySSH/w0geHh79gBQqNn4Pf+6ERfUDJcSVzKIa2/91Hus7UGq79BsC19xXtdUkIU0u1orFiL3BitXNZj+lwGorLpm18Hgjenh47GNSodh2KeIFE8eNGdcUqLpcO8q2BKp+21xXVbl7a85YocQ1UHZhC6sPMC50Tkvdsg1GFkXlFx8NjXKREXuFmR9rnvHSK0ZMNaRU6Caz7+HhsY/pk4MuC/6cJZ/XUts5O+lGQWnFVJLUjPNYJikhoJRubK6rvsaIYYrKKlfjY2qnFBv8vyKikx8ofP1wX8H6lSbZlUJ/xUf4vuMaU/Nbjg0CsTy7N6fdQn/lS0T6hdTRKMXHt9RXv2jEuKmsrMza1sETVEgcziS+TIJyYeEqi8VntrA/sEP8unaLMV9PiO9cVLl/liXjagCDtlJimNh9/OjRbYsXL4bh7oy+3k92ywgfQBL208jX8UaMgJScYJPYbsRuhoidu+rq6nYZMQye3Sv4naOMGIEuA7aid40YhZUTDO3Mz9+19o472k1SX6HvVFbm5QaDQ+xgDop/4uQiT+/bo5filHdSqCeRgc7jvKQmKuWLcvp2yrvi4ivz7NzWhMPnM1n2UM5t27z5hfZ169YlbsTorljZQu2yFRdMu+wvSbmrtrZWPycU9WiSV2zMu7Gd31Rf86RJiUlhecUPiOm3RowbdGfXHDV+9LQ9K0pB6bxTpJTPGLFXdGTdpu/umB3M3vJI9vT155hkV3pRbHU45jdiT56H1XoyPh0zW5MqxabfB/vaxg8vQLGejfs7D8psqDnkDPM7qNlNbFvLmlfetdGk9gry4gPcbyIuLXhkvBtl6g1kwlOW5BUNtTV/NcfCFJUuOENI9T9GTBqc6JfoGSw2YphYii0ewg2XoO249teI+E9ow+5pXLHsQ3O4VybPmpU7MpQ9C8+4EPl9AvJBK6GklJpGD+fgHrvLYvgVkkTrjZg0uM/rYSz8uxHDwACZLyUtNWLCIM86iHkjC3oOv9+AsvxwZ3Js/m3mwhG5lr3NiHFhntPnsCZeh/gE277le5brpLqiyOw2WAbT4lVqmuYV1b/Df9YYMT6Y/57HOaU9W38otRvMbq9oqzIUtH8WytpyAbEYa5KThqS6BZn6sRF7cmJB+fwis582tGJ/9Z2PXkBO/B5iUa9KTdNpDf2UrNAbhWUVv/P7/fF78ycG6jTht+k4fH5fKfk8rOvls1DhzfF+DZSihBoahZuYDOk6NDZvF5dVXmEOx0T7NI5S2X/RygG/cy60mV4Jk7RSyzRwo9nIwAnIu1nIgzUwmp4qnLlwnDmcUsxzGo6907D9QsjQ34vKKq7Vh/TxhBVbWCuTKmkOVP/RJMWNbNtxKRRNfMqQxQ4f8bT6+js+NylhUCm1xXVWp9Q7UGbXdnbD+EcmqU9wSO1ESx7R0u2JZHX95MmT0+ZmAovkMhSaJ1F4knxtIvm0wtlNec/sJediXdBmf2Fn13eKmQXyWXfrb0e+x2xMS0ouGcpKPYa8TdpaHGjgwU8S0n52etnFR5iktAFFl4W/1xX5K3+p5QQVG4fw8ErdwnD3RkNDQ4f0hYpgibmOc2hQkGwmu/SBQM2bJqkLwsEErDXx9MTxY+7sWH36abhztMCpQbZ9dg+sVm0CO0ATDhh7+GwjpJTCUnTnie7AOfqsOHUFVKweLSmp/JJJSiu47kI91mrEjAPXf1WBf55rg6pyQ9fiS2mvwJkGGoYDLJZNOtKOSUovxFcXXjT/sLgVm1Y2uMo5LfU1jSYpKcLRK6SaBsttp0ly4hfNgbt1/zyCorL5U1HATjJibFh8IdmeFe7GskqpnxkUtE2Sf2LEKJhpUaq7XuFKReI2I7qCfN2OP29C8W4JP7MYQLkdqXJ4mRHTjpRijtnNRFD0SHd1otCD7sj3BUb06AkUfv62tr2UP2j0LVUWr2JjSbygaUVVnZH7RNOKu1+B6eXXA4AmqRtUxvubA1W/NmI3erAc7WLcCoqJL22su/vtYMtp30UF/mdE3RTRtKL6v/HxWKcUxcFfqJzLzX6f0UqSSNagYjk+r7CFy2oJh8QRzYHqUU11Vd9orqv6imy1D0S3GQWKPzJfjYZoRmHZvPOMlBiKdEDPIkWqBBdxGa7jQZzLdVYMyvYU/dmu1P/iQ49Fdm8oCzFmbVlbwBHf15siG+eLH7Rwl+Ij6ndwHzNx/quxr2e0cRsusPhWgX/BgUbqJpS38ySUsVhRNJ5Feb8UXbMLsR99/hgbrutifHZjU/Yb+Oj5ve7QXNGE/7/n94sky/vxGYFF/Cg+or4ba4PV70eGXYWH+4hTfe4CZXe+2U0Q/gf+hM+l8w/n+hGeQ8xhMJzrlHhmRdEY8RXaP83IKaPQX3EVLuJGI+qC/3JHvjhtTVXVbpPUTbF/XimTjFexLmsKVC3gJybnhnaEXoVp8vVwKou3swrWxxGPLcasqB0c37xyeXj2pcA//xgS6kUnhYN72WZb7eN7vmgmmVlRPa6Gc6ALGo0uTCx5RssKd0u6ZNasg5Sd/QSe+ASTFAF+45nmuupJRowA53adFZVt23P08IIRw+juppSkXXGc4F3Dc/Kc3CkKyyr+DuXwDSNGYIvW/Xu+VtENXK/rrKhN/PVVK6rfMaIjxWWVJag8D2BXjw1GoYintayofsiIYYrKKubi63cbMRIWO/LE7oN7ulakEuTd69r6NmIEHUH7oN/ff3fKHOVjUVxeMRW9lVXYdcy7kKSvra5dFjUMFWtWFM9iEwydqAmIovLKq3HQZViK3+rdYmNxVTqUmgaV6VeobLfpbikq1wsWiWlOSk377rCgiGl9V5jXo8J9X++GdgSv6VZqaSDsMEyi1ogRQHmNtFS2a3c1IUgsNHtRoBIviaXUNA21tR8rIb/n1qLiN06FJTLRiH0CivkhnOclI/aE8ra1OQaB7C80BqoaUIgeMWIUxBRVntCIuY4foWxvSqdS6080aoXP7pODlq1StjpnKLWH9YYRI2ExMrZiY3EdujVR3cIUwk0rlv0I3af9oORObAhUvW/SI/ikjeei9jk6b0bAvJGyQgXaimhfdeqxTPQzcyRtSJLX4rxRyrgT+kHJrEv69DIZPRDq1hqjNbOVUnE9n85VGxQ1btkFkZ2ySChQ6s+b3SjQ3ckEt4/nzKcDHBX9mKV0j3pMYvz5paWDJtgjk3D3L2Xus7tVF50RlclxJRGuIcdVsbFQv4FSSygkj/aNQlfrF0X+yrUwjwPF5fPjG+jXp3OhuLg4j5RwHLTdE7San6CrMUVPTvBDx+dLpjrYw1nmcNrQzpu4+FuNGAHOP0SpoKtrSFz4VHhcyhEWr7bU18QYX4lC+705Qiwcu6LJgPzo9pTPRNCQuHZ7cSxqRhp1xc1C1d/fb4gc0lLkrzhZR1zWDrx6hnDPraSkJLtzDLnfQVPnzh1WOHPOuKLyhUcXlFac2NuGcpRv/jcakgmvaogF6pdrOXPLzDubAzU/NftxoRXQbsp/FK319Tij9oT3K5ilOsa/+UpSqLwRl7iN8XTDYodlqSmrjHtI0M65A2aDo5WTDqz9sm5G98vRaRcKd96M8orerU0X8PBcQyIhr182u3FBgrvX2vYE1m3qXBWYIsbdMg3FIqElVZ3jdu55C87Cw3q23bK3jbKzd+Vvb9u952bnjtj92jtbdkP5vY2tobi8co72izP/u9cp9s87q7Cs8sGissqPsoK+z8jKekewvUFK0s7HMTfcp+ukGcpyqpW3azmLOhEq4j1NgSo9RuVqRfVEtzYqb+S9uPCIVh9yNsz0lYX++REzO/FSWnr5fviN2OG3mXcoVlO6lu2EWibNgyKMO5RRKmhYssTVaRfXkhVkut6ICcNMMdbQKffZTgckkev3ifnLOBuyu+/oGTfkxzSnrS1f7pWB7L0NC4orCALKAx5Djw1tIw7kYBuPrVjXQTsntBG9npnm3/YKsBwtKLOlTPJPuKYSJOl3hqSkTIRBITN7KUEpvtmpjLES34tQbCz4vk/Hj9bTsgldAFqbG3D3jpaZfmg4WXVh6bzu4JDx0krtV+IXYryAg7dKy3dOV4jwjlWnfksR/Vf40F5m6/tvLcdjc3baZZ5RMmue40xorxC7zlgzS5exPWfYF3R/WxGJ7MmTf5lUkIKeNNYvfUMPJDttTpNDA4HmQNWDeCB98vHcE1jjB6DXUwfLKeF6kyywHG/BR5JuGXuflvrq553KGNL/8E/FxqKFFN29/6YtZyWyjrC4vGIenkJvLzVBuyRvLSqrCC93iAcdVQIP1/Whouu32Ra+bzXU3hW21PihUyfAVmiBIt0nrxLUUQ3cnHZ1q2yr+Fr0KJjclZF0V3pOUCjL9ZWCUMp84IF/S2mLOsjgXSNy/chHx1nyJNHW0s0lM5NsFBMgPD4mRFxrYjOBTsXG/DCUyC0+H2kfH2sX5+nxKZ2pMSn2z/82zL4lRowDWlTor7hd11aT4EpOFusxPpfZJH4Nim3SqsBd2tFT7G48dWxQ0aP40X3qShB22nVxHkTre35xWUUSy7rYfSCbw12FuAm6+OZp8Px36hUVRuxX5IXyei0v/QHtn9dcVzVbsTob5bMZbcVW3QKbw0mBG7dsiyLfwJYG0CHWRkRG5HM8QLHx49S2vViFaGtQcC4zzVHMwcLyyjNixfLXfk+KuAE1IqGZR1gvVxT659fo/rxJiqKkrPJQXMdlRowEikPm0elds4G7mk46OMuSf4Ti6Bfv5Awp9ROUZUd/MRTxm9AtT7DwsHuIIRYJLbiWyo71/U3ms9/RJlVGRAbpoqWu5vHmuuqi5kD1ge35NFQpdQiH6HAdV67nBlP+WNSK6XiYrmGcULZ7DbXlRn5udq9W/eRFi3wonN8xYhQot6+gTBdj98TeNijztPi8JoqUbN3C+SOLyFIjFdv7deSJ2T6fPI+FGmUJKKHyin+dPBk3vgfaN0uSWoMamtQCalgHc9Gfv89pPaWeErcFP4jfduo23bl18+gpDVWdb/NufeCMr2VJ3zo8+bQ54SbK6pU1L+P+nLsjRKeikCQ0Wyt9FBHLrAcnJuInhx7xFLPrALn6nu0lXK1FaTm/2T0DYD2mqBvh5vuWvRUee+yxNaC8NAWWrc7j1gugQdys8wO1S4jZjwJ1xXUpU0dI9Zp3IzZtGQuDw2UWltstq/08KOqmpkDVC71tuJpE3I/ShlQUymLLelpIOowUDc1t5YWoAc/5WP5VkFqK4nb0yEM/WlhSsiicsXr8zbaD2h+qT852eBglO+3sF/WMafHsiqOKyhYcW1BWeUW7Zb+CFkoHa+xGexhjK0fGXd71Ipf21acfbWWrp/BA0hLvqS9Agbg67eJ6E7Jwvzl2zOtoLZ3jvxH5bDsU17hl4ez5h+GaXKNrKMWuzrt7A3Srw42VI2z1m4YrXZjVCY6TT3j+Mj8/P8qDoQvWARfdkHavSwiziIeb3WhYfKBXrhgpY5BWm3yWQuooKDUphTyxMVB9K7H6hs3qLCV8h6PyvAcLZIPK2XKCdutopTwdQfYE8/99g+gIdM1q2NYexOpFPLnbkXpw58EueIMS6iSY9QGTIILNk84lxTom2RiT1K+I5bSbKOHoJMSua2SRB5XFpRXzjOhI2G3G5np82VGpouJsOWAI6UX9+xL3KLXMF/dTB9aUEbbISDgrIaIvTBhsN1zzDt3dub3lXcj2uf82iYMz8aXgFF6y41PLs7JVUbBdjkeFPAZm59JCf8VPpF6ywHITS54wVLY98oXKuRGWVtoHMg3aMrtt1/Ccf+9aNI1uHAVXT9IzNzfDqks8JlmKF8HHQnts+zp8b0LxxN1VdFsEr18KTZLexD27zWrisXEtFOBvmlbU/K1TNmGqOWsKMd2E/3VcYK7RUS9aAtWOk0CJLoJPlkJ/5SLklbv1yfwsKri+x/e6xjCziN5+oMei9r4ugtfgWipxLW7hnG5GzyFiqZ4eoxq18cOzjZggloUnoC2mWXhG53amRfE4zun6+52RY+k6Izqh3aEi8k4yv6Oj3+h9veQrn/K3I98cFSD+5338fjXy5G8sVMx1r7iHYvx1aWh5cVOgOuoZJ7MIvjckWyIfNzw/2GHdoIQcAsW1oai08ipJ1GEL1cGkzmHbenmnnXPx3lNq/Bpy83RdgLqUmnr4pP1Cq0+7Dxl3G7a0RahNFQ/dc88X+EjJW+I7J0oo1m/h0dBsNEKvoZD/A9vLOlrGKJX9mWTZHEupoeA8efS4MUnHuU8VFok/mV1niPTSsrsE08Mk5Fq9BZXruyf2KsPffXdo1zUlvvEf8HzqsbkpNd2g62gjrrCUMV8gBKLyDnW9vPOQEGvr6z9HCXIdY4XCOxRKTTuZN0Vee/SGb8fsPewtpF4crVt5ah1yuSTWWt9GC77BZnqiU4PzC0zBiUzid53/kj46x9LEVaPy6LimuuruhcgdTaedEurI0paMjv+VMXy6eXSMSLuJcdS40bcib+4zYgy0QzMdo5UZtl5mxHijJX0X9nynxL7gyHGjn0YB6BkxedCjraVhVvsKIzpy1FcPegZ1R8dp6wv9YjYzVUjdty/yV16icr+YQSo0G1p3P6izdin4dGb5CdS1Dfl+mAQp8Up3ImweswhIkhNgdv6qqqoqqNPVw+fnBFeddgPsyidx/qTXW+4r9ERHrEi7iaCVz6fvj0Yry85xvxIEef5qyPKd2VC7pF8MDOv7Y6Iru7pKHp31gpRY0BnJwh2dd2Trl5Qnn3eod/fh//9gxIxH96ltJTkkc/ghJa3jSdmfIEstVr41gu1PcbOr0PKncUEuryWyTmiqqyrf8zVnHc2nTw61f6EXeV8Ny7Hfdz3diOW0myhaUTYFqueRjlrKIimFBKuvAzXmVtk29OTV99612ST3C5oDy7SjeAXuLWZFHgzgOdl66KdpZThSc6/o7zG6gfg/95UqMSHuyCe9LLKlU85spPY23/bemLvtIJ0Fff+ZLeUhUlmbWdrDScrfQ6mkY0YEZZcfhVY9AxV1SlNgaXfYF9VyxiEdqybVI5/RFRaOEV8zDWm5O+0mQ2NdTX1Hvhivw00jJ9ENif1uA4Cv8FtKqJtgdh+Gbv6PGxtvT7ICpBeUh3uE8k3Afd2iu/HIt7D1Pjjgdtz3O6gbK1jxqYkGeG2pq1ou7NARyead9rlrClQVohZ+F//bjKQtmZr/VFRWeSMsgGpUlk2FZRXXQJk8H/TZr2V1+KoFiQvM91IDh+PhN0nLd0vXGs8ueM3pI0IhKABBV6Clcl3T2CfinBWdNmPhISJXOXa9d3z1oA/WLe70pUsEPWUepNjx4bJ3H7SloWFxwrOM+k1Tdh4fJ5QcB2W3PxqFbGYZIuLteiYs2GFvSPZN8HpGVvksR4t5de2y9/ABpZk+dPTk7e3tozpErsPqg7YdPUOvT507dwzZWY5ji/E+Oz2jjd+ICiipGRKUn61ceVfEW+m1O8XL7358qBETRobsUL7I+7yj4+NdqVzWdjzy7jDbHtka8jnUp+i8c0LP+H5p8+a8HNseYgeH5NhZ2pBMFudzxso/nTcJxhwMA8UWXph+IIpnnWzf8ZzKHnmhkOoMHHINR504+oUMdDcstKU9o+RqhRYMKR0mCQqN3B0FU0Gcis3DwyOz6dS+0JiFG7fcDsWyC83vViT22blUm7D4nceUlMt9rdse6unvpNacOtYO0eXMpH2GUhpZ0xVPsXl4DAq6zcrpZZWn+5gPVkLUuznq9YYe6yHm9fhsYGE92FK3VL86qxteBMvymEnnMIkFOPNUKNK0zbQ6AWW7Ibvg6bSHgPHw8Ni3dCu2gtkVJ8qQ+LMgco9Z7ghvx888js+HFVtreiozjY6VFrKplInKcMKUvdAhCe7Nmr4+k1/a6+HhEQdhxTZt1vyvWjY/gy5hHMt/+CPB9DwLXi+l/DO1bvtrzwFPZkG86lsTQ8KeTqTDndDR5tA+hSWdmT31qXVG9PDwGKDQtFmzhlt2zlNQat80aWGguPSY2NvE4lV0LTdAVb0YDPLLbi9fVc1nj7Kp9Uyoym9DsU3RyzDMof4Bi/qsgvX9YgmOh4dHeqFCf8VV6H4excxb8PmeFGoTzK83D8yTm7pWAPSEn5jsa9/edhhJ34mycx3aGVB+R8L8S2psLt1AOTfKnGF+ecHaWBESPDw8BgjdY2xO8INHZrfLYWMtS45D7/JwWGETYPlMZGJ0LRMdi9vLsNiJP38hIZdlFTylX7vv4eExKBDi/wH0RTrUeESzKQAAAABJRU5ErkJggg==",website:"https://www.quantit.tech",amount:600}];const M={class:"home-section sponsor-section"},C={class:"home-section-content sponsor"},J={class:"sponsor-grid sponsor-top-grid"},O=["href"],E=["src"],Q={class:"sponsor-grid-item item-no1",href:"./sponsor.html",target:"_blank",rel:"noreferrer"},Z={key:0},_={key:1,class:"sponsor-grid sponsor-platinum-grid"},$=["href"],ee=["src"],se={key:2},te={key:3,class:"sponsor-grid sponsor-gold-grid"},oe=["href"],ae=["src"],ne={__name:"HomeSponsor",setup(s){h.sort((d,u)=>u.amount-d.amount);const e=[],t=[];for(let d=3;d=5e3?e.push(u):t.push(u)}const o=V(e),i=V(t),{lang:m}=U();return(d,u)=>(a(),n("section",M,[r("div",C,[r("h2",null,f(c(m)==="zh-CN"?"赞助商":"Sponsors"),1),r("div",J,[r("a",{class:"sponsor-grid-item item-no1",href:c(h)[0].website,target:"_blank",rel:"noreferrer"},[r("img",{class:"image",src:c(h)[0].logo},null,8,E)],8,O),r("a",Q,f(c(m)==="zh-CN"?"成为赞助商":"Become a sponsor"),1)]),o.value.length>0?(a(),n("h4",Z,f(c(m)==="zh-CN"?"铂金赞助商":"Platinum Sponsors"),1)):g("",!0),o.value.length>0?(a(),n("div",_,[(a(!0),n(b,null,x(o.value,l=>(a(),n("a",{class:"sponsor-grid-item item",target:"_blank",rel:"noreferrer",href:l.website},[r("img",{class:"image",src:l.logo},null,8,ee)],8,$))),256))])):g("",!0),i.value.length>0?(a(),n("h4",se,f(c(m)==="zh-CN"?"黄金赞助商":"Gold Sponsors"),1)):g("",!0),i.value.length>0?(a(),n("div",te,[(a(!0),n(b,null,x(i.value,l=>(a(),n("a",{class:"sponsor-grid-item item",target:"_blank",rel:"noreferrer",href:l.website},[r("img",{class:"image",src:l.logo},null,8,ae)],8,oe))),256))])):g("",!0)])]))}},re=j(ne,[["__scopeId","data-v-bca17933"]]),ie="/images/logo.svg",ce={class:"NotFound"},de=T('

Page Not Found

Make sure the address is correct and the page hasn't moved.

Please contact your KLineChart administrator if you think this is a mistake.

',4),ue={class:"action"},pe=["href"],le=X({__name:"NotFound",setup(s){const{lang:e}=U(),t=V("/");return F(()=>{t.value=e.value==="zh-CN"?"/":`/${e.value}/`}),(o,i)=>(a(),n("div",ce,[de,r("div",ue,[r("a",{class:"link",href:c(k)(t.value),"aria-label":"go to home"}," Take me home ",8,pe)])]))}});const he=j(le,[["__scopeId","data-v-50731836"]]);const me={...K,Layout:()=>v(K.Layout,null,{"home-features-after":()=>v(re),"not-found":()=>v(he)}),enhanceApp({app:s,router:e,siteData:t}){}};function S(s){if(s.extends){const e=S(s.extends);return{...e,...s,async enhanceApp(t){e.enhanceApp&&await e.enhanceApp(t),s.enhanceApp&&await s.enhanceApp(t)}}}return s}const p=S(me),fe=X({name:"VitePressApp",setup(){const{site:s}=U();return F(()=>{q(()=>{document.documentElement.lang=s.value.lang,document.documentElement.dir=s.value.dir})}),w(),D(),B(),p.setup&&p.setup(),()=>v(p.Layout)}});async function ge(){const s=Ve(),e=ve();e.provide(N,s);const t=P(s.route);return e.provide(R,t),e.component("Content",W),e.component("ClientOnly",H),Object.defineProperties(e.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),p.enhanceApp&&await p.enhanceApp({app:e,router:s,siteData:I}),{app:e,router:s,data:t}}function ve(){return A(fe)}function Ve(){let s=y,e;return Y(t=>{let o=z(t),i=null;return o&&(s&&(e=o),(s||e===o)&&(o=o.replace(/\.js$/,".lean.js")),i=G(()=>import(o),[])),y&&(s=!1),i},p.NotFound)}y&&ge().then(({app:s,router:e,data:t})=>{e.go().then(()=>{L(e.route,t.site),s.mount("#app")})});export{ge as createApp}; diff --git a/assets/chunks/@localSearchIndexroot.2384476e.js b/assets/chunks/@localSearchIndexroot.2384476e.js deleted file mode 100644 index 2ca288725..000000000 --- a/assets/chunks/@localSearchIndexroot.2384476e.js +++ /dev/null @@ -1 +0,0 @@ -const t='{"documentCount":197,"nextId":197,"documentIds":{"0":"/guide/changelog.html#📠-更新日志","1":"/guide/changelog.html#_9-5-4","2":"/guide/changelog.html#_9-5-3","3":"/guide/changelog.html#_9-5-2","4":"/guide/changelog.html#_9-5-1","5":"/guide/changelog.html#_9-5-0","6":"/guide/changelog.html#_9-4-0","7":"/guide/changelog.html#_9-3-0","8":"/guide/changelog.html#_9-2-2","9":"/guide/changelog.html#_9-2-1","10":"/guide/changelog.html#_9-2-0","11":"/guide/changelog.html#_9-1-3","12":"/guide/changelog.html#_9-1-2","13":"/guide/changelog.html#_9-1-1","14":"/guide/changelog.html#_9-1-0","15":"/guide/changelog.html#_9-0-1","16":"/guide/changelog.html#_9-0-0","17":"/guide/changelog.html#_8-x","18":"/guide/changelog.html#_7-x","19":"/guide/changelog.html#_6-x","20":"/guide/changelog.html#_5-x","21":"/guide/changelog.html#_4-x","22":"/guide/chart-api.html#图表api","23":"/guide/chart-api.html#init-ds-options","24":"/guide/chart-api.html#dispose-dcs","25":"/guide/chart-api.html#registerlocale-locale-locales","26":"/guide/chart-api.html#getoverlayclass","27":"/guide/chart-api.html#getsupportedlocales","28":"/guide/chart-api.html#registerstyles-name-styles","29":"/guide/chart-api.html#registerfigure-figure","30":"/guide/chart-api.html#getsupportedfigures","31":"/guide/chart-api.html#getfigureclass-name","32":"/guide/chart-api.html#registerindicator-indicator","33":"/guide/chart-api.html#getsupportedindicators","34":"/guide/chart-api.html#registeroverlay-overlay","35":"/guide/chart-api.html#getsupportedoverlays","36":"/guide/chart-api.html#version","37":"/guide/chart-api.html#utils","38":"/guide/chart-api.html#utils-clone-target","39":"/guide/chart-api.html#utils-merge-target-source","40":"/guide/chart-api.html#utils-isstring-value","41":"/guide/chart-api.html#utils-isnumber-value","42":"/guide/chart-api.html#utils-isvalid-value","43":"/guide/chart-api.html#utils-isobject-value","44":"/guide/chart-api.html#utils-isfunction-value","45":"/guide/chart-api.html#utils-isboolean-value","46":"/guide/chart-api.html#utils-formatvalue-value-key-defaultvalue","47":"/guide/chart-api.html#utils-formatprecision-value","48":"/guide/chart-api.html#utils-formatbignumber-value","49":"/guide/chart-api.html#utils-formatdate-datetimeformat-timestamp-format","50":"/guide/chart-api.html#utils-formatthousands-value-sign","51":"/guide/chart-api.html#utils-calctextwidth-text-size-weight-family","52":"/guide/chart-api.html#utils-getlinearslopeintercept-coordinate1-coordinate2","53":"/guide/chart-api.html#utils-getlinearyfromcoordinates-coordinate1-coordinate2-targetcoordinate","54":"/guide/chart-api.html#utils-getlinearyfromslopeintercept-kb-targetcoordinate","55":"/guide/chart-api.html#utils-checkcoordinateonarc-coordinate-arc","56":"/guide/chart-api.html#utils-checkcoordinateoncircle-coordinate-circle","57":"/guide/chart-api.html#utils-checkcoordinateonline-coordinate-line","58":"/guide/chart-api.html#utils-checkcoordinateonpolygon-coordinate-polygon","59":"/guide/chart-api.html#utils-checkcoordinateonrect-coordinate-rect","60":"/guide/chart-api.html#utils-checkcoordinateontext-coordinate-text-styles","61":"/guide/chart-api.html#utils-drawarc-ctx-arc-styles","62":"/guide/chart-api.html#utils-drawcircle-ctx-circle-styles","63":"/guide/chart-api.html#utils-drawline-ctx-line-styles","64":"/guide/chart-api.html#utils-drawpolygon-ctx-polygon-styles","65":"/guide/chart-api.html#utils-drawrect-ctx-rect-styles","66":"/guide/chart-api.html#utils-drawtext-ctx-text-styles","67":"/guide/chart-api.html#utils-drawrecttext-ctx-recttext-styles","68":"/guide/datasource.html#📚-数据","69":"/guide/environment.html#🏝️-环境要求","70":"/guide/environment.html#浏览器支持","71":"/guide/environment.html#兼容处理","72":"/guide/faq.html#🙋-常见问题","73":"/guide/faq.html#初始化图表后-只能看到一条线-是怎么回事","74":"/guide/faq.html#蜡烛柱显示趋近于一条线-看不到波动-怎么办","75":"/guide/faq.html#分时图怎么创建","76":"/guide/faq.html#内置的技术指标-计算出来的数据不是想要的-怎么办","77":"/guide/faq.html#想创建一个内置技术指标之外的指标-怎么办","78":"/guide/faq.html#想标记一下买卖点-该怎么做","79":"/guide/feedback.html#💬-反馈和共建","80":"/guide/feedback.html#github","81":"/guide/feedback.html#telegram","82":"/guide/feedback.html#discord","83":"/guide/feedback.html#微信讨论群","84":"/guide/feedback.html#qq讨论群","85":"/guide/figure.html#基础图形","86":"/guide/figure.html#使用示例","87":"/guide/figure.html#内置基础图形","88":"/guide/figure.html#arc","89":"/guide/figure.html#circle","90":"/guide/figure.html#line","91":"/guide/figure.html#polygon","92":"/guide/figure.html#rect","93":"/guide/figure.html#text","94":"/guide/figure.html#recttext","95":"/guide/figure.html#自定义基础图形","96":"/guide/figure.html#属性说明","97":"/guide/figure.html#示例","98":"/guide/figure.html#步骤一","99":"/guide/figure.html#步骤二","100":"/guide/getting-started.html#🚀-快速开始","101":"/guide/getting-started.html#获取klinechart","102":"/guide/getting-started.html#创建第一个图表","103":"/guide/hot-key.html#⌨️-快捷键","104":"/guide/i18n.html#🌏-国际化","105":"/guide/i18n.html#增加语言包","106":"/guide/i18n.html#使用语言包","107":"/guide/indicator.html#技术指标","108":"/guide/indicator.html#内置技术指标","109":"/guide/indicator.html#自定义技术指标","110":"/guide/indicator.html#属性说明","111":"/guide/indicator.html#示例","112":"/guide/indicator.html#步骤一","113":"/guide/indicator.html#步骤二","114":"/guide/instance-api.html#实例api","115":"/guide/instance-api.html#getdom-paneid-position","116":"/guide/instance-api.html#getsize-paneid-position","117":"/guide/instance-api.html#setstyles-styles","118":"/guide/instance-api.html#getstyles","119":"/guide/instance-api.html#setpricevolumeprecision-priceprecision-volumeprecision","120":"/guide/instance-api.html#settimezone-timezone","121":"/guide/instance-api.html#gettimezone","122":"/guide/instance-api.html#setzoomenabled-enabled","123":"/guide/instance-api.html#iszoomenabled","124":"/guide/instance-api.html#setscrollenabled-enabled","125":"/guide/instance-api.html#isscrollenabled","126":"/guide/instance-api.html#setoffsetrightdistance-distance","127":"/guide/instance-api.html#getoffsetrightdistance","128":"/guide/instance-api.html#setleftminvisiblebarcount-barcount","129":"/guide/instance-api.html#setrightminvisiblebarcount-barcount","130":"/guide/instance-api.html#setbarspace-space","131":"/guide/instance-api.html#getbarspace","132":"/guide/instance-api.html#getvisiblerange","133":"/guide/instance-api.html#applynewdata-datalist-more-callback","134":"/guide/instance-api.html#applymoredata-datalist-more-callback","135":"/guide/instance-api.html#updatedata-data-callback","136":"/guide/instance-api.html#getdatalist","137":"/guide/instance-api.html#cleardata","138":"/guide/instance-api.html#loadmore-cb","139":"/guide/instance-api.html#createindicator-value-isstack-paneoptions-callback","140":"/guide/instance-api.html#overrideindicator-override-paneid-callback","141":"/guide/instance-api.html#getindicatorbypaneid-paneid-name","142":"/guide/instance-api.html#removeindicator-paneid-name","143":"/guide/instance-api.html#createoverlay-value-paneid","144":"/guide/instance-api.html#getoverlaybyid-id","145":"/guide/instance-api.html#overrideoverlay-override","146":"/guide/instance-api.html#removeoverlay-remove","147":"/guide/instance-api.html#scrollbydistance-distance-animationduration","148":"/guide/instance-api.html#scrolltorealtime-animationduration","149":"/guide/instance-api.html#scrolltodataindex-dataindex-animationduration","150":"/guide/instance-api.html#scrolltotimestamp-timestamp-animationduration","151":"/guide/instance-api.html#zoomatcoordinate-scale-coordinate-animationduration","152":"/guide/instance-api.html#zoomatdataindex-scale-dataindex-animationduration","153":"/guide/instance-api.html#zoomattimestamp-scale-timestamp-animationduration","154":"/guide/instance-api.html#setpaneoptions-options","155":"/guide/instance-api.html#executeaction-type-data","156":"/guide/instance-api.html#subscribeaction-type-callback","157":"/guide/instance-api.html#unsubscribeaction-type-callback","158":"/guide/instance-api.html#converttopixel-value-finder","159":"/guide/instance-api.html#convertfrompixel-coordinate-finder","160":"/guide/instance-api.html#getconvertpictureurl-includeoverlay-type-backgroundcolor","161":"/guide/instance-api.html#resize","162":"/guide/overlay.html#覆盖物","163":"/guide/overlay.html#内置覆盖物类型","164":"/guide/overlay.html#自定义覆盖物","165":"/guide/overlay.html#属性说明","166":"/guide/overlay.html#示例","167":"/guide/styles.html#🎨-样式配置","168":"/guide/styles.html#图解说明","169":"/guide/styles.html#默认完整配置","170":"/guide/v8-to-v9.html#🛠️-从-v8-到-v9","171":"/guide/v8-to-v9.html#引入调整","172":"/guide/v8-to-v9.html#设计调整","173":"/guide/v8-to-v9.html#样式配置调整","174":"/guide/v8-to-v9.html#api调整","175":"/guide/v8-to-v9.html#图表api","176":"/guide/v8-to-v9.html#实例api","177":"/guide/v8-to-v9.html#图形辅助api","178":"/guide/v8-to-v9.html#自定义技术指标调整","179":"/guide/what-is-klinechart.html#📃-介绍","180":"/guide/what-is-klinechart.html#什么是-klinechart","181":"/guide/what-is-klinechart.html#特性","182":"/sample/axis.html#坐标轴","183":"/sample/basic.html#基础展示","184":"/sample/candle-type.html#蜡烛类型","185":"/sample/data.html#数据加载","186":"/sample/i18n.html#多语言","187":"/sample/indicator.html#技术指标","188":"/sample/overlay.html#覆盖物","189":"/sample/theme.html#主题","190":"/sample/timezone.html#时区","191":"/sample/tooltip.html#提示条","192":"/sponsor.html#❤️-赞助","193":"/sponsor.html#赞助渠道","194":"/sponsor.html#支付宝","195":"/sponsor.html#微信支付","196":"/sponsor.html#加密货币"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[2,1,1],"1":[3,2,12],"2":[3,2,6],"3":[3,2,11],"4":[3,2,13],"5":[3,2,17],"6":[3,2,13],"7":[3,2,21],"8":[2,2,8],"9":[3,2,11],"10":[3,2,31],"11":[3,2,16],"12":[3,2,10],"13":[2,2,8],"14":[3,2,9],"15":[3,2,6],"16":[2,2,117],"17":[2,2,7],"18":[2,2,7],"19":[2,2,7],"20":[2,2,5],"21":[2,2,5],"22":[1,1,1],"23":[4,1,53],"24":[3,1,15],"25":[4,1,20],"26":[2,1,10],"27":[2,1,6],"28":[4,1,14],"29":[3,1,26],"30":[2,1,6],"31":[3,1,9],"32":[3,1,86],"33":[2,1,6],"34":[3,1,104],"35":[2,1,6],"36":[2,1,6],"37":[1,1,2],"38":[4,2,7],"39":[5,2,9],"40":[4,2,8],"41":[4,2,8],"42":[4,2,8],"43":[4,2,8],"44":[4,2,8],"45":[4,2,8],"46":[6,2,19],"47":[4,2,10],"48":[4,2,11],"49":[6,2,20],"50":[5,2,10],"51":[7,2,12],"52":[5,2,15],"53":[6,2,11],"54":[5,2,12],"55":[5,2,21],"56":[5,2,17],"57":[5,2,14],"58":[5,2,14],"59":[5,2,19],"60":[6,2,45],"61":[6,2,37],"62":[6,2,41],"63":[6,2,32],"64":[6,2,38],"65":[6,2,45],"66":[6,2,76],"67":[6,2,10],"68":[2,1,36],"69":[2,1,1],"70":[1,2,11],"71":[1,2,1],"72":[2,1,1],"73":[4,2,3],"74":[4,2,6],"75":[2,2,9],"76":[4,2,2],"77":[3,2,3],"78":[3,2,7],"79":[2,1,1],"80":[1,2,10],"81":[1,2,5],"82":[1,2,5],"83":[1,2,6],"84":[1,2,1],"85":[1,1,10],"86":[1,1,26],"87":[1,1,9],"88":[1,2,34],"89":[1,2,38],"90":[1,2,30],"91":[1,2,38],"92":[1,2,42],"93":[1,2,68],"94":[1,2,5],"95":[1,1,6],"96":[1,2,29],"97":[1,2,2],"98":[1,3,33],"99":[1,3,54],"100":[2,1,1],"101":[1,2,30],"102":[1,2,178],"103":[2,1,10],"104":[2,1,8],"105":[1,2,26],"106":[1,2,8],"107":[1,1,2],"108":[1,1,48],"109":[1,1,6],"110":[1,2,178],"111":[1,2,5],"112":[1,3,30],"113":[1,3,63],"114":[1,1,1],"115":[4,1,18],"116":[4,1,25],"117":[3,1,15],"118":[2,1,7],"119":[4,1,16],"120":[3,1,14],"121":[2,1,6],"122":[3,1,8],"123":[2,1,6],"124":[3,1,8],"125":[2,1,6],"126":[3,1,8],"127":[2,1,6],"128":[3,1,8],"129":[3,1,8],"130":[3,1,8],"131":[2,1,6],"132":[2,1,10],"133":[5,1,28],"134":[5,1,26],"135":[4,1,22],"136":[2,1,16],"137":[2,1,10],"138":[3,1,13],"139":[6,1,107],"140":[5,1,121],"141":[4,1,18],"142":[4,1,18],"143":[4,1,89],"144":[3,1,9],"145":[3,1,117],"146":[3,1,24],"147":[4,1,13],"148":[3,1,12],"149":[4,1,13],"150":[4,1,13],"151":[5,1,19],"152":[5,1,15],"153":[5,1,15],"154":[3,1,47],"155":[4,1,13],"156":[4,1,22],"157":[4,1,23],"158":[4,1,31],"159":[4,1,27],"160":[5,1,21],"161":[2,1,11],"162":[1,1,2],"163":[1,1,16],"164":[1,1,6],"165":[1,2,198],"166":[1,2,47],"167":[2,1,9],"168":[1,2,1],"169":[1,2,221],"170":[5,1,12],"171":[1,5,8],"172":[1,5,5],"173":[1,5,33],"174":[1,5,1],"175":[1,6,9],"176":[1,6,71],"177":[1,6,3],"178":[1,5,39],"179":[2,1,1],"180":[3,2,3],"181":[1,2,24],"182":[1,1,176],"183":[1,1,67],"184":[1,1,154],"185":[1,1,81],"186":[1,1,154],"187":[1,1,204],"188":[1,1,170],"189":[1,1,195],"190":[1,1,145],"191":[1,1,179],"192":[2,1,36],"193":[1,2,1],"194":[1,3,1],"195":[1,3,1],"196":[1,3,11]},"averageFieldLength":[2.6751269035532994,1.6852791878172595,29.49238578680204],"storedFields":{"0":{"title":"📠 更新日志","titles":[]},"1":{"title":"9.5.4","titles":["📠 更新日志"]},"2":{"title":"9.5.3","titles":["📠 更新日志"]},"3":{"title":"9.5.2","titles":["📠 更新日志"]},"4":{"title":"9.5.1","titles":["📠 更新日志"]},"5":{"title":"9.5.0","titles":["📠 更新日志"]},"6":{"title":"9.4.0","titles":["📠 更新日志"]},"7":{"title":"9.3.0","titles":["📠 更新日志"]},"8":{"title":"9.2.2","titles":["📠 更新日志"]},"9":{"title":"9.2.1","titles":["📠 更新日志"]},"10":{"title":"9.2.0","titles":["📠 更新日志"]},"11":{"title":"9.1.3","titles":["📠 更新日志"]},"12":{"title":"9.1.2","titles":["📠 更新日志"]},"13":{"title":"9.1.1","titles":["📠 更新日志"]},"14":{"title":"9.1.0","titles":["📠 更新日志"]},"15":{"title":"9.0.1","titles":["📠 更新日志"]},"16":{"title":"9.0.0","titles":["📠 更新日志"]},"17":{"title":"8.x","titles":["📠 更新日志"]},"18":{"title":"7.x","titles":["📠 更新日志"]},"19":{"title":"6.x","titles":["📠 更新日志"]},"20":{"title":"5.x","titles":["📠 更新日志"]},"21":{"title":"4.x","titles":["📠 更新日志"]},"22":{"title":"图表API","titles":[]},"23":{"title":"init(ds, options)","titles":["图表API"]},"24":{"title":"dispose(dcs)","titles":["图表API"]},"25":{"title":"registerLocale(locale, locales)","titles":["图表API"]},"26":{"title":"getOverlayClass()","titles":["图表API"]},"27":{"title":"getSupportedLocales()","titles":["图表API"]},"28":{"title":"registerStyles(name, styles)","titles":["图表API"]},"29":{"title":"registerFigure(figure)","titles":["图表API"]},"30":{"title":"getSupportedFigures()","titles":["图表API"]},"31":{"title":"getFigureClass(name)","titles":["图表API"]},"32":{"title":"registerIndicator(indicator)","titles":["图表API"]},"33":{"title":"getSupportedIndicators()","titles":["图表API"]},"34":{"title":"registerOverlay(overlay)","titles":["图表API"]},"35":{"title":"getSupportedOverlays()","titles":["图表API"]},"36":{"title":"version()","titles":["图表API"]},"37":{"title":"utils","titles":["图表API"]},"38":{"title":"utils.clone(target)","titles":["图表API","utils"]},"39":{"title":"utils.merge(target, source)","titles":["图表API","utils"]},"40":{"title":"utils.isString(value)","titles":["图表API","utils"]},"41":{"title":"utils.isNumber(value)","titles":["图表API","utils"]},"42":{"title":"utils.isValid(value)","titles":["图表API","utils"]},"43":{"title":"utils.isObject(value)","titles":["图表API","utils"]},"44":{"title":"utils.isFunction(value)","titles":["图表API","utils"]},"45":{"title":"utils.isBoolean(value)","titles":["图表API","utils"]},"46":{"title":"utils.formatValue(value, key, defaultValue)","titles":["图表API","utils"]},"47":{"title":"utils.formatPrecision(value)","titles":["图表API","utils"]},"48":{"title":"utils.formatBigNumber(value)","titles":["图表API","utils"]},"49":{"title":"utils.formatDate(dateTimeFormat, timestamp, format)","titles":["图表API","utils"]},"50":{"title":"utils.formatThousands(value, sign)","titles":["图表API","utils"]},"51":{"title":"utils.calcTextWidth(text, size, weight, family)","titles":["图表API","utils"]},"52":{"title":"utils.getLinearSlopeIntercept(coordinate1, coordinate2)","titles":["图表API","utils"]},"53":{"title":"utils.getLinearYFromCoordinates(coordinate1, coordinate2, targetCoordinate)","titles":["图表API","utils"]},"54":{"title":"utils.getLinearYFromSlopeIntercept(kb, targetCoordinate)","titles":["图表API","utils"]},"55":{"title":"utils.checkCoordinateOnArc(coordinate, arc)","titles":["图表API","utils"]},"56":{"title":"utils.checkCoordinateOnCircle(coordinate, circle)","titles":["图表API","utils"]},"57":{"title":"utils.checkCoordinateOnLine(coordinate, line)","titles":["图表API","utils"]},"58":{"title":"utils.checkCoordinateOnPolygon(coordinate, polygon)","titles":["图表API","utils"]},"59":{"title":"utils.checkCoordinateOnRect(coordinate, rect)","titles":["图表API","utils"]},"60":{"title":"utils.checkCoordinateOnText(coordinate, text, styles)","titles":["图表API","utils"]},"61":{"title":"utils.drawArc(ctx, arc, styles)","titles":["图表API","utils"]},"62":{"title":"utils.drawCircle(ctx, circle, styles)","titles":["图表API","utils"]},"63":{"title":"utils.drawLine(ctx, line, styles)","titles":["图表API","utils"]},"64":{"title":"utils.drawPolygon(ctx, polygon, styles)","titles":["图表API","utils"]},"65":{"title":"utils.drawRect(ctx, rect, styles)","titles":["图表API","utils"]},"66":{"title":"utils.drawText(ctx, text, styles)","titles":["图表API","utils"]},"67":{"title":"utils.drawRectText(ctx, rectText, styles)","titles":["图表API","utils"]},"68":{"title":"📚 数据","titles":[]},"69":{"title":"🏝️ 环境要求","titles":[]},"70":{"title":"浏览器支持","titles":["🏝️ 环境要求"]},"71":{"title":"兼容处理","titles":["🏝️ 环境要求"]},"72":{"title":"🙋 常见问题","titles":[]},"73":{"title":"初始化图表后,只能看到一条线,是怎么回事?","titles":["🙋 常见问题"]},"74":{"title":"蜡烛柱显示趋近于一条线,看不到波动,怎么办?","titles":["🙋 常见问题"]},"75":{"title":"分时图怎么创建?","titles":["🙋 常见问题"]},"76":{"title":"内置的技术指标,计算出来的数据不是想要的,怎么办?","titles":["🙋 常见问题"]},"77":{"title":"想创建一个内置技术指标之外的指标,怎么办?","titles":["🙋 常见问题"]},"78":{"title":"想标记一下买卖点,该怎么做?","titles":["🙋 常见问题"]},"79":{"title":"💬 反馈和共建","titles":[]},"80":{"title":"Github","titles":["💬 反馈和共建"]},"81":{"title":"Telegram","titles":["💬 反馈和共建"]},"82":{"title":"Discord","titles":["💬 反馈和共建"]},"83":{"title":"微信讨论群","titles":["💬 反馈和共建"]},"84":{"title":"QQ讨论群","titles":["💬 反馈和共建"]},"85":{"title":"基础图形","titles":[]},"86":{"title":"使用示例","titles":["基础图形"]},"87":{"title":"内置基础图形","titles":["基础图形"]},"88":{"title":"arc","titles":["基础图形","内置基础图形"]},"89":{"title":"circle","titles":["基础图形","内置基础图形"]},"90":{"title":"line","titles":["基础图形","内置基础图形"]},"91":{"title":"polygon","titles":["基础图形","内置基础图形"]},"92":{"title":"rect","titles":["基础图形","内置基础图形"]},"93":{"title":"text","titles":["基础图形","内置基础图形"]},"94":{"title":"rectText","titles":["基础图形","内置基础图形"]},"95":{"title":"自定义基础图形","titles":["基础图形"]},"96":{"title":"属性说明","titles":["基础图形","自定义基础图形"]},"97":{"title":"示例","titles":["基础图形","自定义基础图形"]},"98":{"title":"步骤一","titles":["基础图形","自定义基础图形","示例"]},"99":{"title":"步骤二","titles":["基础图形","自定义基础图形","示例"]},"100":{"title":"🚀 快速开始","titles":[]},"101":{"title":"获取KLineChart","titles":["🚀 快速开始"]},"102":{"title":"创建第一个图表","titles":["🚀 快速开始"]},"103":{"title":"⌨️ 快捷键","titles":[]},"104":{"title":"🌏 国际化","titles":[]},"105":{"title":"增加语言包","titles":["🌏 国际化"]},"106":{"title":"使用语言包","titles":["🌏 国际化"]},"107":{"title":"技术指标","titles":[]},"108":{"title":"内置技术指标","titles":["技术指标"]},"109":{"title":"自定义技术指标","titles":["技术指标"]},"110":{"title":"属性说明","titles":["技术指标","自定义技术指标"]},"111":{"title":"示例","titles":["技术指标","自定义技术指标"]},"112":{"title":"步骤一","titles":["技术指标","自定义技术指标","示例"]},"113":{"title":"步骤二","titles":["技术指标","自定义技术指标","示例"]},"114":{"title":"实例API","titles":[]},"115":{"title":"getDom(paneId, position)","titles":["实例API"]},"116":{"title":"getSize(paneId, position)","titles":["实例API"]},"117":{"title":"setStyles(styles)","titles":["实例API"]},"118":{"title":"getStyles()","titles":["实例API"]},"119":{"title":"setPriceVolumePrecision(pricePrecision, volumePrecision)","titles":["实例API"]},"120":{"title":"setTimezone(timezone)","titles":["实例API"]},"121":{"title":"getTimezone()","titles":["实例API"]},"122":{"title":"setZoomEnabled(enabled)","titles":["实例API"]},"123":{"title":"isZoomEnabled()","titles":["实例API"]},"124":{"title":"setScrollEnabled(enabled)","titles":["实例API"]},"125":{"title":"isScrollEnabled()","titles":["实例API"]},"126":{"title":"setOffsetRightDistance(distance)","titles":["实例API"]},"127":{"title":"getOffsetRightDistance()","titles":["实例API"]},"128":{"title":"setLeftMinVisibleBarCount(barCount)","titles":["实例API"]},"129":{"title":"setRightMinVisibleBarCount(barCount)","titles":["实例API"]},"130":{"title":"setBarSpace(space)","titles":["实例API"]},"131":{"title":"getBarSpace()","titles":["实例API"]},"132":{"title":"getVisibleRange()","titles":["实例API"]},"133":{"title":"applyNewData(dataList, more, callback)","titles":["实例API"]},"134":{"title":"applyMoreData(dataList, more, callback)","titles":["实例API"]},"135":{"title":"updateData(data, callback)","titles":["实例API"]},"136":{"title":"getDataList()","titles":["实例API"]},"137":{"title":"clearData()","titles":["实例API"]},"138":{"title":"loadMore(cb)","titles":["实例API"]},"139":{"title":"createIndicator(value, isStack, paneOptions, callback)","titles":["实例API"]},"140":{"title":"overrideIndicator(override, paneId, callback)","titles":["实例API"]},"141":{"title":"getIndicatorByPaneId(paneId, name)","titles":["实例API"]},"142":{"title":"removeIndicator(paneId, name)","titles":["实例API"]},"143":{"title":"createOverlay(value, paneId)","titles":["实例API"]},"144":{"title":"getOverlayById(id)","titles":["实例API"]},"145":{"title":"overrideOverlay(override)","titles":["实例API"]},"146":{"title":"removeOverlay(remove)","titles":["实例API"]},"147":{"title":"scrollByDistance(distance, animationDuration)","titles":["实例API"]},"148":{"title":"scrollToRealTime(animationDuration)","titles":["实例API"]},"149":{"title":"scrollToDataIndex(dataIndex, animationDuration)","titles":["实例API"]},"150":{"title":"scrollToTimestamp(timestamp, animationDuration)","titles":["实例API"]},"151":{"title":"zoomAtCoordinate(scale, coordinate, animationDuration)","titles":["实例API"]},"152":{"title":"zoomAtDataIndex(scale, dataIndex, animationDuration)","titles":["实例API"]},"153":{"title":"zoomAtTimestamp(scale, timestamp, animationDuration)","titles":["实例API"]},"154":{"title":"setPaneOptions(options)","titles":["实例API"]},"155":{"title":"executeAction(type, data)","titles":["实例API"]},"156":{"title":"subscribeAction(type, callback)","titles":["实例API"]},"157":{"title":"unsubscribeAction(type, callback)","titles":["实例API"]},"158":{"title":"convertToPixel(value, finder)","titles":["实例API"]},"159":{"title":"convertFromPixel(coordinate, finder)","titles":["实例API"]},"160":{"title":"getConvertPictureUrl(includeOverlay, type, backgroundColor)","titles":["实例API"]},"161":{"title":"resize()","titles":["实例API"]},"162":{"title":"覆盖物","titles":[]},"163":{"title":"内置覆盖物类型","titles":["覆盖物"]},"164":{"title":"自定义覆盖物","titles":["覆盖物"]},"165":{"title":"属性说明","titles":["覆盖物","自定义覆盖物"]},"166":{"title":"示例","titles":["覆盖物","自定义覆盖物"]},"167":{"title":"🎨 样式配置","titles":[]},"168":{"title":"图解说明","titles":["🎨 样式配置"]},"169":{"title":"默认完整配置","titles":["🎨 样式配置"]},"170":{"title":"🛠️ 从 V8 到 V9","titles":[]},"171":{"title":"引入调整","titles":["🛠️ 从 V8 到 V9"]},"172":{"title":"设计调整","titles":["🛠️ 从 V8 到 V9"]},"173":{"title":"样式配置调整","titles":["🛠️ 从 V8 到 V9"]},"174":{"title":"API调整","titles":["🛠️ 从 V8 到 V9"]},"175":{"title":"图表API","titles":["🛠️ 从 V8 到 V9","API调整"]},"176":{"title":"实例API","titles":["🛠️ 从 V8 到 V9","API调整"]},"177":{"title":"图形辅助API","titles":["🛠️ 从 V8 到 V9","API调整"]},"178":{"title":"自定义技术指标调整","titles":["🛠️ 从 V8 到 V9"]},"179":{"title":"📃 介绍","titles":[]},"180":{"title":"什么是 KLineChart?","titles":["📃 介绍"]},"181":{"title":"特性","titles":["📃 介绍"]},"182":{"title":"坐标轴","titles":[]},"183":{"title":"基础展示","titles":[]},"184":{"title":"蜡烛类型","titles":[]},"185":{"title":"数据加载","titles":[]},"186":{"title":"多语言","titles":[]},"187":{"title":"技术指标","titles":[]},"188":{"title":"覆盖物","titles":[]},"189":{"title":"主题","titles":[]},"190":{"title":"时区","titles":[]},"191":{"title":"提示条","titles":[]},"192":{"title":"❤️ 赞助","titles":[]},"193":{"title":"赞助渠道","titles":["❤️ 赞助"]},"194":{"title":"支付宝","titles":["❤️ 赞助","赞助渠道"]},"195":{"title":"微信支付","titles":["❤️ 赞助","赞助渠道"]},"196":{"title":"加密货币","titles":["❤️ 赞助","赞助渠道"]}},"dirtCount":0,"index":[["微信支付",{"0":{"195":1}}],["微信讨论群",{"0":{"83":1}}],["支付宝",{"0":{"194":1}}],["支持移动端",{"2":{"181":1}}],["支持字符串模版",{"2":{"169":2}}],["支持合并",{"2":{"117":1}}],["支持root",{"2":{"115":1,"116":1}}],["支持多种下载方式",{"2":{"101":1}}],["支持嵌套",{"2":{"46":1}}],["支持事件选择",{"2":{"12":1}}],["支持千分符显示",{"2":{"10":1}}],["支持数组",{"2":{"6":1}}],["支持增量",{"2":{"3":1,"23":1,"28":1,"110":2}}],["前三名",{"2":{"192":1}}],["$800",{"2":{"192":1}}],["发送邮件到",{"2":{"192":1}}],["首页",{"2":{"192":1}}],["首先确定计算参数",{"2":{"112":1}}],["那就真的太感谢了",{"2":{"192":1}}],["☕️",{"2":{"192":1}}],["希望你能在",{"2":{"192":1}}],["希望提示的和参数一样",{"2":{"113":2}}],["许可的开源项目",{"2":{"192":1}}],["赞助渠道",{"0":{"193":1},"1":{"194":1,"195":1,"196":1}}],["赞助额达到",{"2":{"192":1}}],["赞助",{"0":{"192":1},"1":{"193":1,"194":1,"195":1,"196":1}}],["❤️",{"0":{"192":1},"1":{"193":1,"194":1,"195":1,"196":1}}],["矩形框",{"2":{"191":2}}],["矩形参数",{"2":{"59":1,"65":1}}],["跟随十字光标",{"2":{"191":2}}],["芝加哥",{"2":{"190":2}}],["柏林",{"2":{"190":2}}],["红涨绿跌",{"2":{"189":2}}],["绿涨红跌",{"2":{"189":2}}],["深色",{"2":{"189":2}}],["深度复制",{"2":{"38":1}}],["浅色",{"2":{"189":2}}],["主页链接等信息",{"2":{"192":1}}],["主题",{"0":{"189":1}}],["主图指标",{"2":{"187":2}}],["主图的窗口id",{"2":{"139":1,"140":1,"141":1,"142":1,"143":1,"154":1}}],["价格线",{"2":{"188":2}}],["价格精度",{"2":{"119":1,"165":2}}],["副图指标",{"2":{"187":2}}],["🥑",{"2":{"187":2}}],["🥭",{"2":{"187":2}}],["🥝",{"2":{"187":2}}],["🥥",{"2":{"187":2}}],["繁体中文",{"2":{"186":2}}],["多语言",{"0":{"186":1}}],["多边形参数",{"2":{"64":1}}],["跌空心",{"2":{"184":2}}],["涨空心",{"2":{"184":2}}],["全空心",{"2":{"184":2}}],["全实心",{"2":{"184":2}}],["全局添加",{"2":{"164":1}}],["反向",{"2":{"182":1}}],["反馈和共建",{"0":{"79":1},"1":{"80":1,"81":1,"82":1,"83":1,"84":1}}],["正向",{"2":{"182":1}}],["百分比轴",{"2":{"182":1}}],["内部",{"2":{"182":1}}],["内置",{"2":{"188":2}}],["内置多种指标和画线模型",{"2":{"181":1}}],["内置覆盖物类型",{"0":{"163":1}}],["内置一些转换方法",{"2":{"110":8,"165":4}}],["内置技术指标",{"0":{"108":1}}],["内置基础图形",{"0":{"87":1},"1":{"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1}}],["内置的右击删除将无效",{"2":{"165":2}}],["内置的覆盖物有一个simpleannotation",{"2":{"78":1}}],["内置的技术指标",{"0":{"76":1}}],["内置支持zh",{"2":{"23":1}}],["外部",{"2":{"182":1}}],["以下仅仅是为了协助代码演示",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["以一个填充带边框的圆来具体说明如何配置",{"2":{"166":1}}],["以一个名为",{"2":{"111":1}}],["以一个可以有边框和背景菱形来具体说明自定义",{"2":{"97":1}}],["提供完整的类型定义文件",{"2":{"181":1}}],["提示条",{"0":{"191":1}}],["提示",{"2":{"169":4}}],["搞定多端",{"2":{"181":1}}],["功能扩展随心所欲",{"2":{"181":1}}],["功能强大",{"2":{"181":1}}],["丰富的样式配置和api",{"2":{"181":1}}],["零依赖",{"2":{"181":1}}],["轻量流畅",{"2":{"181":1}}],["简体中文",{"2":{"186":2}}],["简单快速集成",{"2":{"181":1}}],["简短名字",{"2":{"32":1,"140":1}}],["特性",{"0":{"181":1}}],["特殊的id",{"2":{"139":1,"140":1,"141":1,"142":1,"143":1,"154":1}}],["什么是",{"0":{"180":1}}],["介绍",{"0":{"179":1},"1":{"180":1,"181":1}}],["介绍如何去做自定义技术指标",{"2":{"111":1}}],["方法render",{"2":{"178":1}}],["方法regenerateplots",{"2":{"178":1}}],["方法createtooltipdatasource",{"2":{"178":1}}],["方法calctechnicalindicator",{"2":{"178":1}}],["子项方法color",{"2":{"178":1}}],["合并成一个方法getsize",{"2":{"176":1}}],["合并为candle",{"2":{"173":1}}],["更改为dashed",{"2":{"173":1}}],["更新数据",{"2":{"135":1}}],["更新日志",{"0":{"0":1},"1":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1}}],["设计调整",{"0":{"172":1}}],["设置窗口配置",{"2":{"154":1}}],["设置加载更多回调函数",{"2":{"138":1}}],["设置图表单根蜡烛柱的宽度",{"2":{"130":1}}],["设置图表右边可以空出来的间隙",{"2":{"126":1}}],["设置右边最小可见的蜡烛数量",{"2":{"129":1}}],["设置左边最小可见的蜡烛数量",{"2":{"128":1}}],["设置是否可以拖拽滚动",{"2":{"124":1}}],["设置是否缩放",{"2":{"122":1}}],["设置时区",{"2":{"120":1}}],["设置价格和数量精度",{"2":{"119":1}}],["设置样式配置",{"2":{"117":1}}],["设置下精度",{"2":{"74":1}}],["引入调整",{"0":{"171":1}}],["请提供付款账号或地址",{"2":{"192":1}}],["请通过getdom",{"2":{"176":1}}],["请统一使用import",{"2":{"171":1}}],["请先参考之前的升级文档升级到",{"2":{"170":1}}],["请用overrideoverlay",{"2":{"176":1}}],["请用overlay代替",{"2":{"173":1}}],["请用removeoverlay",{"2":{"176":1}}],["请用registeroverlay",{"2":{"175":1}}],["请用createoverlay",{"2":{"176":1}}],["请用text代替",{"2":{"94":1}}],["请用",{"2":{"70":1}}],["请用utils",{"2":{"67":1}}],["版本",{"2":{"170":1}}],["版本升级到",{"2":{"170":1}}],["本文档将帮助你从",{"2":{"170":1}}],["本文档介绍了图表内置的覆盖物和如何自定义一个覆盖物",{"2":{"162":1}}],["本文档介绍了图表内置的技术指标和如何自定义一个技术指标",{"2":{"107":1}}],["到",{"0":{"170":1},"1":{"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1}}],["配置",{"2":{"169":2}}],["面积图",{"2":{"169":2,"184":2}}],["蜡烛类型",{"0":{"184":1}}],["蜡烛图类型",{"2":{"169":2}}],["蜡烛图",{"2":{"169":2}}],["蜡烛柱",{"2":{"169":2}}],["蜡烛柱不包含蜡烛柱之间间隙的尺寸",{"2":{"110":2,"165":2}}],["蜡烛柱尺寸",{"2":{"110":2,"165":2}}],["蜡烛柱的尺寸信息",{"2":{"110":2,"165":2}}],["蜡烛柱显示趋近于一条线",{"0":{"74":1}}],["网格线",{"2":{"169":2}}],["进行更改",{"2":{"167":1}}],["其它选择使用默认样式",{"2":{"166":2}}],["选择边框且填充",{"2":{"166":2}}],["选中回调事件",{"2":{"165":2}}],["选中事件",{"2":{"34":1,"145":1}}],["确定对应点生成的圆的坐标",{"2":{"166":2}}],["确定其它属性",{"2":{"113":1}}],["完成一个圆的绘制需要三个步骤",{"2":{"166":2}}],["完成语言切换",{"2":{"106":1}}],["双击回调事件",{"2":{"165":2}}],["双击事件",{"2":{"34":1,"145":1}}],["回调参数和`performeventmovefordrawing`一致",{"2":{"165":2}}],["处理按住移动操作",{"2":{"165":2}}],["处理在绘制过程中移动操作",{"2":{"165":2}}],["事件所在点的信息",{"2":{"165":2}}],["事件所在点的索引",{"2":{"165":2}}],["事件的坐标",{"2":{"96":2}}],["中的overlay",{"2":{"165":4}}],["中的indicator",{"2":{"110":8}}],["非必须",{"2":{"165":24}}],["非必须字段",{"2":{"68":4}}],["作为覆盖物创建的唯一标识",{"2":{"165":2}}],["必须字段",{"2":{"165":2}}],["必要字段",{"2":{"68":10,"96":2}}],["名称",{"2":{"165":2,"166":2}}],["名字",{"2":{"29":1,"110":2}}],["频繁调用可能会影响到性能",{"2":{"161":1}}],["此方法会重新计算整个图表各个模块的大小",{"2":{"161":1}}],["此方法会清空图表数据",{"2":{"133":1}}],["总是显示",{"2":{"191":2}}],["总是会填充容器大小",{"2":{"161":1}}],["总共需要多少步操作才行绘制完成",{"2":{"165":2}}],["总的实现步骤",{"2":{"34":1}}],["调整图表大小",{"2":{"161":1}}],["调用请谨慎",{"2":{"161":1}}],["调用createoverlay方法是返回的标识",{"2":{"144":1,"146":1}}],["调用setpricevolumeprecision",{"2":{"74":1}}],["三种中的一种",{"2":{"160":1}}],["转换后的图片类型",{"2":{"160":1}}],["过滤条件",{"2":{"158":1,"159":1}}],["对于赞助",{"2":{"192":1}}],["对数轴",{"2":{"182":1}}],["对象类型为",{"2":{"169":2}}],["对应y轴的值",{"2":{"158":1,"165":4}}],["对齐方式",{"2":{"93":2}}],["订阅时的回调方法",{"2":{"157":1}}],["订阅图表动作",{"2":{"156":1}}],["执行动作需要的数据",{"2":{"155":1}}],["执行图表动作",{"2":{"155":1}}],["在实际项目中根据情况进行调整",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["在指定时间戳上缩放",{"2":{"153":1}}],["在某个位置缩放",{"2":{"152":1}}],["在某个坐标点缩放",{"2":{"151":1}}],["缩放比例",{"2":{"151":1,"152":1,"153":1}}],["缩小",{"2":{"103":1}}],["动画时间",{"2":{"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1}}],["编组id",{"2":{"145":1,"146":1}}],["参数finder",{"2":{"176":1}}],["参数type选项变更为onzoom",{"2":{"176":1}}],["参数position选项变更为root",{"2":{"176":1}}],["参数和返回值和`createpointfigures`一致",{"2":{"165":4}}],["参数和overrideoverlay一致",{"2":{"143":1}}],["参阅",{"2":{"110":6}}],["移动端",{"2":{"181":1}}],["移动绘制过程中触发",{"2":{"165":2}}],["移动事件过程中特殊处理方法",{"2":{"34":1}}],["移除图形",{"2":{"146":1}}],["移除技术指标",{"2":{"142":1}}],["\\tbars",{"2":{"140":2}}],["覆盖已绘制的覆盖物",{"2":{"145":1}}],["覆盖技术指标信息",{"2":{"140":1}}],["覆盖物实例",{"2":{"165":2}}],["覆盖物",{"0":{"162":1,"188":1},"1":{"163":1,"164":1,"165":1,"166":1},"2":{"169":2}}],["覆盖物标识",{"2":{"145":1}}],["覆盖物名称",{"2":{"146":1}}],["覆盖物名或者对象",{"2":{"143":1}}],["覆盖物名",{"2":{"34":1,"145":1}}],["覆盖物信息",{"2":{"34":1}}],["覆盖物支持双击强制结束绘制",{"2":{"14":1}}],["轴上是否可以滚动缩放",{"2":{"139":1,"154":1}}],["边距",{"2":{"139":1,"154":1}}],["边框虚线参数",{"2":{"89":2,"91":2,"92":2,"93":2}}],["边框虚线参数值",{"2":{"62":1,"64":1,"65":1,"66":1}}],["边框尺寸",{"2":{"89":2,"91":2,"92":2,"93":2}}],["边框圆角尺寸",{"2":{"66":1}}],["边框圆角值",{"2":{"65":1,"92":2,"93":2}}],["边框样式",{"2":{"62":1,"64":1,"65":1,"66":1,"89":2,"91":2,"92":2,"93":2}}],["边框粗细",{"2":{"62":1,"64":1,"65":1,"66":1}}],["边框颜色",{"2":{"62":1,"64":1,"65":1,"66":1,"89":2,"91":2,"92":2,"93":2}}],["类型有",{"2":{"169":4}}],["类型为klinecharts",{"2":{"165":2}}],["类型参与",{"2":{"165":4}}],["类型参阅",{"2":{"110":12}}],["类型参阅样式",{"2":{"28":1}}],["类型是",{"2":{"160":1}}],["类型和图表方法overrideindicator的入参一致",{"2":{"139":1}}],["都需要此标识",{"2":{"139":1}}],["后续对该窗口的一些操作",{"2":{"139":1}}],["后续计算参数发生变化的时候",{"2":{"113":2}}],["为了避免重复绘制",{"2":{"137":1}}],["为图表添加数据",{"2":{"102":14}}],["清空图表数据",{"2":{"137":1}}],["单条k线数据",{"2":{"135":1}}],["相同则覆盖",{"2":{"135":1}}],["成功回调",{"2":{"133":1,"134":1,"135":1,"140":1}}],["成交额",{"2":{"68":2}}],["成交量",{"2":{"68":2,"105":2,"186":2}}],["告诉图表还有没有更多历史数据",{"2":{"133":1,"134":1}}],["不显示",{"2":{"191":2}}],["不再区分klinecharts",{"2":{"171":1}}],["不触发事件",{"2":{"165":2}}],["不同则追加",{"2":{"135":1}}],["不需要额外调用cleardata方法",{"2":{"133":1}}],["不受前端框架限制",{"2":{"102":1}}],["数组的子项类型为",{"2":{"169":2}}],["数量精度",{"2":{"119":1,"165":2}}],["数据加载",{"0":{"185":1}}],["数据的索引",{"2":{"149":1,"152":1}}],["数据类型详情可参阅数据源",{"2":{"133":1,"134":1,"135":1}}],["数据索引",{"2":{"110":2,"158":1,"165":4}}],["数据源",{"2":{"110":16}}],["数据信息",{"2":{"110":2}}],["数据",{"0":{"68":1}}],["也会受影响",{"2":{"119":1}}],["也可以是数组",{"2":{"158":1,"159":1}}],["也可以是id组成的数组",{"2":{"146":1}}],["也可以是object",{"2":{"23":1}}],["也可以通过cdn获取",{"2":{"101":1}}],["或者更老的版本",{"2":{"170":1}}],["或者图表实例方法setstyles",{"2":{"167":1}}],["或者",{"2":{"119":1,"169":4}}],["或者setlocale",{"2":{"106":1}}],["详情请查阅覆盖物",{"2":{"172":1}}],["详情可参阅样式",{"2":{"117":1}}],["详情参阅",{"2":{"165":2}}],["详情参阅技术指标",{"2":{"77":1}}],["详情参阅覆盖物",{"2":{"34":1}}],["详情参阅基础图形",{"2":{"29":1}}],["详情参阅样式",{"2":{"23":1}}],["位置",{"2":{"116":1}}],["缺省则取消当前类型所有",{"2":{"157":1}}],["缺省则在图表中间位置缩放",{"2":{"151":1}}],["缺省则无动画",{"2":{"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1}}],["缺省则删除对应窗口上所有的",{"2":{"146":1}}],["缺省则删除所有",{"2":{"146":1}}],["缺省则返回所有",{"2":{"141":1}}],["缺省则设置所有",{"2":{"140":1}}],["缺省则是root",{"2":{"115":1,"116":1}}],["缺省则是整个图表容器",{"2":{"115":1,"116":1}}],["缺省将显示name",{"2":{"110":2}}],["窗口是否可以拖拽调整高度",{"2":{"139":1,"154":1}}],["窗口最小高度",{"2":{"139":1,"154":1}}],["窗口高度",{"2":{"139":1,"154":1}}],["窗口配置信息",{"2":{"139":1,"154":1}}],["窗口id",{"2":{"115":1,"116":1,"139":1,"140":1,"141":1,"142":1,"143":1,"146":1,"154":1,"158":1,"159":1}}],["窗口尺寸信息",{"2":{"110":4,"165":2}}],["每个key需要和figures中的子项key对应的值一致",{"2":{"113":2}}],["第二条线",{"2":{"112":2}}],["第一条线",{"2":{"112":2}}],["另一个计算10个周期时间的均值",{"2":{"112":2}}],["因此figures配置为",{"2":{"112":1}}],["值小余1则是百分比",{"2":{"139":2,"154":2}}],["值信息",{"2":{"110":2}}],["值越大越靠前显示",{"2":{"145":1,"165":2}}],["值越大",{"2":{"34":1}}],["则依据索引转换",{"2":{"158":1}}],["则会以id为依据去覆盖",{"2":{"145":1}}],["则会移除所有",{"2":{"142":1}}],["则figures配置的图形不会绘制",{"2":{"110":2}}],["则不会显示",{"2":{"110":2}}],["则需要为该字段填充数据",{"2":{"68":2}}],["真实数据索引",{"2":{"110":2}}],["真实的x坐标",{"2":{"110":2}}],["十字光标垂直线及文字",{"2":{"169":2}}],["十字光标水平线及文字",{"2":{"169":2}}],["十字光标",{"2":{"169":2}}],["十字光标交叉点所在的窗口id",{"2":{"110":2}}],["十字光标的信息",{"2":{"110":2}}],["距离",{"2":{"147":1}}],["距离底部距离",{"2":{"110":4,"165":2}}],["距离顶部距离",{"2":{"110":4,"165":2}}],["距离右边距离",{"2":{"110":4,"165":2}}],["距离左边距离",{"2":{"110":4,"165":2}}],["宽",{"2":{"110":4,"165":2}}],["宽度",{"2":{"59":1,"65":1,"66":1,"92":2}}],["终点数据索引",{"2":{"110":4}}],["起点数据索引",{"2":{"110":4}}],["起始点y轴坐标值",{"2":{"92":2,"93":2}}],["起始点y轴值",{"2":{"59":1,"60":1,"65":1,"66":1}}],["起始点x轴坐标值",{"2":{"92":2,"93":2}}],["起始点x轴值",{"2":{"59":1,"60":1,"65":1,"66":1}}],["起始角度",{"2":{"55":1,"61":1}}],["会在计算参数发生变化后触发",{"2":{"110":2}}],["重新生成数图形配置方法",{"2":{"110":2}}],["重新生成图形信息方法",{"2":{"32":1,"140":1}}],["即全局样式配置中的overlay",{"2":{"165":2}}],["即全局设置的技术指标样式",{"2":{"110":6}}],["即调用createindicator方法时返回的窗口标识",{"2":{"141":1,"142":1}}],["即title的值需要改变",{"2":{"113":2}}],["即",{"2":{"112":4}}],["即y",{"2":{"52":1}}],["技术图表实例",{"2":{"110":2}}],["技术指标名",{"2":{"141":1,"142":1}}],["技术指标名或者技术指标对象",{"2":{"139":1}}],["技术指标需要展示两个周期的收盘价平均值连起来的线",{"2":{"112":1}}],["技术指标实例",{"2":{"110":6}}],["技术指标数据",{"2":{"110":2}}],["技术指标",{"0":{"107":1,"187":1},"1":{"108":1,"109":1,"110":1,"111":1,"112":1,"113":1},"2":{"111":1,"169":2}}],["技术指标信息",{"2":{"32":1}}],["技术指标删除属性shouldcheckparamcount",{"2":{"16":1}}],["技术指标模版不再保存相关属性",{"2":{"16":1}}],["技术指标属性render变更为draw",{"2":{"16":1}}],["技术指标属性regenerateplots变更为regeneratefigures",{"2":{"16":1}}],["技术指标属性calctechnicalindicator变更为calc",{"2":{"16":1}}],["技术指标属性calcparams",{"2":{"16":1}}],["技术指标属性plots变更为figures",{"2":{"16":1}}],["下边距",{"2":{"139":1,"154":1}}],["下一个图形的数据",{"2":{"110":2}}],["下内边距",{"2":{"66":1,"93":2}}],["当是一个方法时",{"2":{"169":2}}],["当是对象时",{"2":{"117":1,"139":1,"143":1}}],["当前步骤",{"2":{"165":2}}],["当前图形的数据",{"2":{"110":2}}],["当计算参数改变时",{"2":{"113":2}}],["当添加完语言包后",{"2":{"106":1}}],["上海",{"2":{"190":2}}],["上边距",{"2":{"139":1,"154":1}}],["上一个图形的数据",{"2":{"110":2}}],["上内边距",{"2":{"66":1,"93":2}}],["一个图表",{"2":{"181":1}}],["一个计算5个周期时间的均值",{"2":{"112":2}}],["一般情况下不用手动调用",{"2":{"137":1}}],["一般用于type是",{"2":{"110":2}}],["一条名为",{"2":{"112":1}}],["一条为",{"2":{"112":1}}],["一旦销毁",{"2":{"24":1}}],["将使用超大logo展示",{"2":{"192":1}}],["将在大号logo展示区展示",{"2":{"192":1}}],["将坐标转换成值",{"2":{"159":1}}],["将值转换成坐标",{"2":{"158":1}}],["将以这个值上下去绘制",{"2":{"110":2}}],["将一个对象合并到另一个对象",{"2":{"39":1}}],["系列",{"2":{"110":2}}],["比如100000是否需要格式化100k",{"2":{"110":2}}],["从",{"0":{"170":1},"1":{"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1}}],["从1000开始格式化",{"2":{"110":2}}],["从某个值取对应的值",{"2":{"46":1}}],["无特殊含义",{"2":{"165":2}}],["无",{"2":{"108":2}}],["默认",{"2":{"191":2}}],["默认完整配置",{"0":{"169":1}}],["默认样式",{"2":{"165":2}}],["默认null",{"2":{"110":4}}],["默认的技术指标样式",{"2":{"110":6}}],["默认为true",{"2":{"133":1,"134":1}}],["默认为null",{"2":{"110":4}}],["默认为",{"2":{"110":2,"160":2}}],["默认为4",{"2":{"110":2}}],["默认计算参数",{"2":{"108":3}}],["默认语言是en",{"2":{"104":1}}],["使用完全免费",{"2":{"192":1}}],["使用语言包",{"0":{"106":1}}],["使用示例",{"0":{"86":1}}],["收",{"2":{"105":2,"186":2}}],["收盘价",{"2":{"68":2}}],["低",{"2":{"105":2,"186":2}}],["高可扩展",{"2":{"181":1}}],["高",{"2":{"105":2,"110":4,"165":2,"186":2}}],["高度",{"2":{"59":1,"65":1,"66":1,"92":2}}],["開",{"2":{"105":2,"186":2}}],["時間",{"2":{"105":2,"186":2}}],["zoomattimestamp",{"0":{"153":1}}],["zoomatdataindex",{"0":{"152":1}}],["zoomatcoordinate",{"0":{"151":1}}],["zh",{"2":{"105":2,"165":2,"186":6}}],["zlevel",{"2":{"34":3,"143":6,"145":5,"165":2}}],["例如",{"2":{"105":1,"169":2}}],["去完成",{"2":{"105":1}}],["去github上查看",{"2":{"17":1,"18":1,"19":1,"20":1,"21":1}}],["增加语言包通过klinecharts",{"2":{"105":1}}],["增加语言包",{"0":{"105":1}}],["目前只会匹配当前最后一条数据的时间戳",{"2":{"135":1}}],["目前图表内置了en",{"2":{"104":1}}],["目前快捷键仅支持移动和缩放",{"2":{"103":1}}],["国际化",{"0":{"104":1},"1":{"105":1,"106":1}}],["放大",{"2":{"103":1}}],["左侧",{"2":{"182":1}}],["左移",{"2":{"103":1}}],["左内边距",{"2":{"66":1,"93":2}}],["←",{"2":{"103":1}}],["→",{"2":{"103":1}}],["快捷键",{"0":{"103":1}}],["快速开始",{"0":{"100":1},"1":{"101":1,"102":1},"2":{"102":6}}],["⌨️",{"0":{"103":1}}],["销毁图表",{"2":{"102":12}}],["销毁一个图表",{"2":{"24":1}}],["所以你可以在任何一个前端框架中使用",{"2":{"102":1}}],["所有的api都迁移至klinecharts",{"2":{"177":1}}],["所有线的样式选项dash",{"2":{"173":1}}],["所有dashvalue变更为dashedvalue",{"2":{"16":1}}],["所有line",{"2":{"16":1}}],["所有visiblerange新增realfrom和realto",{"2":{"10":1}}],["j++",{"2":{"182":1,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["jpeg",{"2":{"160":2}}],["j",{"2":{"113":12,"182":2,"183":4,"184":4,"185":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["jsimport",{"2":{"183":1,"184":1,"185":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1}}],["jsximport",{"2":{"102":3}}],["js",{"2":{"101":2,"102":4}}],["jsdelivr",{"2":{"101":2,"102":2}}],["javascripthtmlindex",{"2":{"184":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1}}],["javascripthtml",{"2":{"183":1,"185":1}}],["javascript",{"2":{"86":1,"99":1,"101":2,"102":2,"112":1,"113":1,"165":2,"166":1,"169":1,"182":1}}],["javascriptchart",{"2":{"75":1,"139":1,"140":1,"143":1,"145":1,"154":1}}],["quot",{"2":{"101":8,"102":92,"182":8,"183":8,"184":12,"185":8,"186":12,"187":12,"188":12,"189":12,"190":12,"191":12}}],["qq讨论群",{"0":{"84":1}}],["你可以通过npm或yarn等包管理工具",{"2":{"101":1}}],["这非常重要",{"2":{"139":1}}],["这里只是清除数据",{"2":{"137":1}}],["这里每一项的数据格式应该是",{"2":{"113":2}}],["这里计算不能及时响应",{"2":{"113":2}}],["这样一个自定义覆盖物就完成了",{"2":{"166":1}}],["这样一个自定义指标就完成了",{"2":{"113":1}}],["这样一个自定义的基础图形就完成了",{"2":{"99":1}}],["这样你的第一个图表就创建完成了",{"2":{"102":1}}],["这篇文档介绍了内置的基本图形和如何自定义一个基础图形",{"2":{"85":1}}],["实际终点数据索引",{"2":{"110":4}}],["实际起点数据索引",{"2":{"110":4}}],["实现checkeventon和draw两个方法",{"2":{"99":1}}],["实例化并绘制",{"2":{"86":2}}],["实例方法removetechnicalindicator变更为removeindicator",{"2":{"16":1}}],["实例方法gettechnicalindicatorbypaneid变更为getindicatorbypaneid",{"2":{"16":1}}],["实例方法getstyleoptions变更为getstyles",{"2":{"16":1}}],["实例方法overlaytechnicalindicator变更为overlayindicator",{"2":{"16":1}}],["实例方法createtechnicalindicator变更为createindicator",{"2":{"16":1}}],["实例方法setoffsetrightspace变更为setoffsetrightdistance",{"2":{"16":1}}],["实例方法setpaneoptions",{"2":{"16":1}}],["实例方法setstyleoptions变更为setstyles",{"2":{"16":1}}],["实例apiapplynewdata",{"2":{"10":1}}],["实例api新增getoffsetrightdistance和executeaction",{"2":{"10":1}}],["实例api",{"0":{"114":1,"176":1},"1":{"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"154":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1},"2":{"6":1}}],["步骤二",{"0":{"99":1,"113":1}}],["步骤一",{"0":{"98":1,"112":1}}],["我们可以定义三个选项stroke",{"2":{"98":1}}],["先确定属性和样式",{"2":{"98":1}}],["示例",{"0":{"97":1,"111":1,"166":1},"1":{"98":1,"99":1,"112":1,"113":1},"2":{"139":1,"140":1,"143":1,"145":1,"154":1,"169":4}}],["返回值由",{"2":{"178":1}}],["返回值是一个标识窗口的字符串",{"2":{"139":1}}],["返回一个字符串类型的标识",{"2":{"143":1}}],["返回一个boolean值",{"2":{"96":2}}],["返回数据类型可参阅数据源",{"2":{"136":1}}],["返回数据个数需要和klinedatalist的数据个数一致",{"2":{"113":2}}],["返回完整类型参阅样式",{"2":{"118":1}}],["返回类型参阅figures",{"2":{"110":2}}],["返回图表实例",{"2":{"23":1}}],["校验事件是否在图形上",{"2":{"96":2}}],["然后通过klinecharts",{"2":{"95":1,"109":1,"164":1}}],["只作用于y轴",{"2":{"158":1,"159":1}}],["只需要生成一个技术指标信息",{"2":{"109":1}}],["只需要生成基础图形信息",{"2":{"95":1}}],["只能看到一条线",{"0":{"73":1}}],["同时技术指标系列是",{"2":{"119":1}}],["同text",{"2":{"94":1}}],["同utils",{"2":{"67":1}}],["基础信息提示",{"2":{"191":2}}],["基础展示",{"0":{"183":1}}],["基础图形可以通过图表方法klinecharts",{"2":{"85":1}}],["基础图形是图表重要的组成部分",{"2":{"85":1}}],["基础图形",{"0":{"85":1},"1":{"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1}}],["基础图形信息",{"2":{"29":1}}],["基本零成本上手",{"2":{"181":1}}],["基本都可以自定义样式",{"2":{"167":1}}],["基准值",{"2":{"110":2}}],["基准",{"2":{"93":2}}],["坐标轴",{"0":{"182":1}}],["坐标点",{"2":{"151":1}}],["坐标点信息",{"2":{"55":1,"56":1,"59":1,"60":1}}],["坐标集合",{"2":{"90":2,"91":2}}],["```html",{"2":{"182":2}}],["```js",{"2":{"182":1}}],["`strong",{"2":{"165":2}}],["`stroke",{"2":{"89":2,"91":2,"92":2,"93":2}}],["`stroke`",{"2":{"89":2,"91":2,"92":2,"93":2}}],["`weak",{"2":{"165":2}}],["`ma$",{"2":{"113":4}}],["`",{"2":{"102":4,"113":4,"182":5}}],["`dashed`",{"2":{"88":2,"90":2}}],["虚线参数",{"2":{"88":2,"90":2}}],["虚线参数值",{"2":{"61":1,"63":1}}],["属性plots变更为figures",{"2":{"178":1}}],["属性说明",{"0":{"96":1,"110":1,"165":1}}],["属性",{"2":{"86":2,"98":1}}],["等",{"2":{"86":2}}],["需要返回一个数组",{"2":{"169":2}}],["需要返回一个boolean类型的值",{"2":{"165":2}}],["需要转换的值",{"2":{"158":1,"159":1}}],["需要覆盖的参数",{"2":{"145":1}}],["需要覆盖的一些参数",{"2":{"140":1}}],["需要在有画布上下文的情况下使用",{"2":{"86":1}}],["需要运行在支持",{"2":{"70":1}}],["注意",{"2":{"86":1,"113":2,"161":1}}],["建议仔细阅读",{"2":{"85":1}}],["加密货币",{"0":{"196":1}}],["加入群聊",{"2":{"83":1}}],["加载",{"2":{"70":1}}],["备注",{"2":{"83":1}}],["添加历史更多数据",{"2":{"134":1}}],["添加新数据",{"2":{"133":1}}],["添加到图表即可和内置覆盖物一样去使用",{"2":{"164":1}}],["添加到图表即可和内置技术指标一样去使用",{"2":{"109":1}}],["添加到图表即可和内置基础图形一样去使用",{"2":{"95":1}}],["添加开发者",{"2":{"83":1}}],["添加一个中文繁体的语言包",{"2":{"105":1}}],["添加一个覆盖物",{"2":{"34":1}}],["添加一个技术指标",{"2":{"32":1}}],["添加一个基础图形",{"2":{"29":1}}],["添加一个样式配置",{"2":{"28":1}}],["添加一个本地化语言",{"2":{"25":1}}],["扫一扫",{"2":{"83":1}}],["用",{"2":{"113":2}}],["用图表api创建即可createoverlay",{"2":{"78":1}}],["用于生成样式",{"2":{"110":2}}],["用于生成自定义图形的属性",{"2":{"110":2}}],["用于tooltip显示",{"2":{"110":2}}],["用于取计算结果中值",{"2":{"110":2}}],["用于创建的唯一标识",{"2":{"34":1,"145":1}}],["用于创建和操作的唯一标识",{"2":{"32":1,"140":1}}],["用于显示",{"2":{"32":1,"110":2,"140":1}}],["该怎么做",{"0":{"78":1}}],["想显示时间",{"2":{"169":2}}],["想标记一下买卖点",{"0":{"78":1}}],["想创建一个内置技术指标之外的指标",{"0":{"77":1}}],["通过样式设置",{"2":{"75":1}}],["通过图表实例",{"2":{"68":1}}],["分时图怎么创建",{"0":{"75":1}}],["分割线事件响应回退",{"2":{"4":1}}],["怎么办",{"0":{"74":1,"76":1,"77":1}}],["看不到波动",{"0":{"74":1}}],["初始化图表",{"2":{"102":14}}],["初始化图表后",{"0":{"73":1}}],["初始化一个图表",{"2":{"23":1}}],["常见问题",{"0":{"72":1},"1":{"73":1,"74":1,"75":1,"76":1,"77":1,"78":1}}],["兼容处理",{"0":{"71":1}}],["构建",{"2":{"70":1}}],["浏览器支持",{"0":{"70":1}}],["环境要求",{"0":{"69":1},"1":{"70":1,"71":1}}],["🌟",{"2":{"192":1}}],["🍍",{"2":{"187":2}}],["🍑",{"2":{"187":2}}],["🍒",{"2":{"187":2}}],["🍈",{"2":{"187":2}}],["🍓",{"2":{"187":2}}],["🍇",{"2":{"187":2}}],["🍉",{"2":{"187":2}}],["🍌",{"2":{"187":2}}],["🍋",{"2":{"187":2}}],["🍊",{"2":{"187":2}}],["🍐",{"2":{"187":2}}],["🍎",{"2":{"187":2}}],["🍏",{"2":{"187":4}}],["🎨",{"0":{"167":1},"1":{"168":1,"169":1},"2":{"181":1}}],["🌏",{"0":{"104":1},"1":{"105":1,"106":1}}],["🏝️",{"0":{"69":1},"1":{"70":1,"71":1}}],["🆕",{"2":{"4":2,"5":2,"6":3,"7":3,"10":5,"14":2,"16":1}}],["最新值标记",{"2":{"169":2}}],["最新价标记",{"2":{"169":2}}],["最新价线不显示问题",{"2":{"1":1}}],["最低价标记",{"2":{"169":2}}],["最低价",{"2":{"68":2}}],["最高价标记",{"2":{"169":2}}],["最高价",{"2":{"68":2}}],["开箱即用",{"2":{"181":1}}],["开盘和收盘",{"2":{"169":2}}],["开盘价",{"2":{"68":2}}],["开始角度",{"2":{"88":2}}],["开始绘制事件",{"2":{"34":1,"145":1}}],["毫秒级别",{"2":{"68":2}}],["来和图表进行数据交互",{"2":{"68":1}}],["代替即可",{"2":{"113":2}}],["代替",{"2":{"67":1,"175":1,"176":3}}],["已废弃",{"2":{"67":1,"94":1}}],["背景色",{"2":{"66":1,"93":2,"160":1}}],["右侧",{"2":{"182":1}}],["右击回调事件",{"2":{"165":2}}],["右击事件",{"2":{"34":1,"145":1}}],["右移",{"2":{"103":1}}],["右内边距",{"2":{"66":1,"93":2}}],["线性轴",{"2":{"182":1}}],["线样式",{"2":{"63":1}}],["线参数",{"2":{"63":1}}],["粗细",{"2":{"61":1,"63":1,"93":2}}],["弧样式",{"2":{"61":1}}],["画布上下文",{"2":{"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"86":2,"96":2,"110":2}}],["权重",{"2":{"60":1,"66":1}}],["字体",{"2":{"60":1,"66":1,"93":2}}],["尺寸",{"2":{"60":1,"66":1,"88":2,"90":2,"93":2}}],["颜色",{"2":{"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2}}],["垂直对齐方式",{"2":{"60":1,"66":1}}],["水平对齐方式",{"2":{"60":1,"66":1}}],["文字内容",{"2":{"60":1,"66":1,"93":2}}],["文字参数",{"2":{"60":1,"66":1}}],["wrap",{"2":{"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["wr",{"2":{"108":1}}],["will",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["window",{"2":{"102":2}}],["width=device",{"2":{"102":2}}],["width是宽度",{"2":{"98":1}}],["width",{"2":{"59":3,"65":3,"66":3,"92":2,"93":2,"98":1,"99":16,"102":16,"110":4,"116":2,"165":2}}],["web",{"2":{"165":2}}],["webview",{"2":{"70":1}}],["weight",{"0":{"51":1},"2":{"51":2,"60":3,"66":3,"93":2,"169":20}}],["weak",{"2":{"34":4,"143":6,"145":6,"165":6}}],["结束角度",{"2":{"55":1,"61":1,"88":2}}],["半径",{"2":{"55":1,"56":1,"61":1,"62":1,"88":2,"89":2}}],["圆",{"2":{"188":2}}],["圆心y轴坐标值",{"2":{"88":2,"89":2}}],["圆心x轴坐标值",{"2":{"88":2,"89":2}}],["圆心的y轴值",{"2":{"55":1,"56":1,"61":1,"62":1}}],["圆心的x轴值",{"2":{"55":1,"56":1,"61":1,"62":1}}],["圆参数",{"2":{"56":1,"62":1}}],["圆弧参数",{"2":{"55":1,"61":1}}],["+=",{"2":{"182":1,"183":2,"184":2,"185":6,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["+098syuqtzi0ynzll",{"2":{"81":1}}],["+",{"2":{"52":1,"99":10,"103":5,"113":4,"166":2,"182":9,"183":18,"184":18,"185":18,"186":18,"187":22,"188":20,"189":18,"190":18,"191":18}}],["获取到对应的dom后操作",{"2":{"176":1}}],["获取可见区间范围",{"2":{"132":1}}],["获取样式配置",{"2":{"118":1}}],["获取尺寸",{"2":{"116":1}}],["获取dom容器",{"2":{"115":1}}],["获取klinechart",{"0":{"101":1}}],["获取基础图形实例",{"2":{"86":2}}],["获取",{"2":{"85":1}}],["获取一个点在斜率和常数项形成的线上的y轴坐标值",{"2":{"54":1}}],["获取一个点在另外两个坐标点形成的线上的y轴坐标值",{"2":{"53":1}}],["获取点组成的线的斜率和常数项",{"2":{"52":1}}],["获取图表转换成图片后的图片url",{"2":{"160":1}}],["获取图表目前的数据源",{"2":{"136":1}}],["获取图表单根蜡烛柱的宽度",{"2":{"131":1}}],["获取图表右边可以空出来的间隙",{"2":{"127":1}}],["获取图表时区名",{"2":{"121":1}}],["获取图表当前版本号",{"2":{"36":1}}],["获取图表支持的覆盖物",{"2":{"35":1}}],["获取图表支持的技术指标",{"2":{"33":1}}],["获取图表支持的基础图形类型",{"2":{"30":1}}],["获取图表支持的本地化语言类型",{"2":{"27":1}}],["获取图形类",{"2":{"31":1}}],["根据id获取覆盖物信息",{"2":{"144":1}}],["根据窗口id获取技术指标信息",{"2":{"141":1}}],["根据两个坐标点",{"2":{"52":1}}],["根据覆盖物名称获取图表内覆盖物的属性",{"2":{"26":1}}],["y轴线",{"2":{"169":2}}],["y轴",{"2":{"169":2}}],["y轴组件",{"2":{"110":4,"165":2}}],["ydis",{"2":{"99":4,"166":6,"188":6}}],["y是中心点y轴坐标值",{"2":{"98":1}}],["y",{"2":{"52":4,"53":6,"54":2,"55":5,"56":5,"57":4,"58":4,"59":5,"60":5,"61":3,"62":3,"63":2,"64":2,"65":3,"66":3,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"96":2,"98":1,"99":24,"151":2,"158":4,"159":4,"165":2,"166":4,"187":4,"188":4}}],["yyyy",{"2":{"49":1}}],["yaxis",{"2":{"16":3,"32":8,"110":12,"115":3,"116":3,"165":4,"169":2,"173":3,"178":4,"182":4,"187":4}}],["取消回调事件",{"2":{"165":2}}],["取消订阅图表动作",{"2":{"157":1}}],["取消选中事件",{"2":{"34":1,"145":1}}],["取c的值",{"2":{"46":1}}],["检查一下容器是否有高度",{"2":{"73":1}}],["检查某个坐标点是否在文字上",{"2":{"60":1}}],["检查某个坐标点是否在矩形上",{"2":{"59":1}}],["检查某个坐标点是否在多边形上",{"2":{"58":1}}],["检查某个坐标点是否在线上",{"2":{"57":1}}],["检查某个坐标点是否在圆上",{"2":{"56":1}}],["检查某个坐标点是否在圆弧上",{"2":{"55":1}}],["检查某个值是否有效",{"2":{"42":1}}],["检查某个值是否是bool值",{"2":{"45":1}}],["检查某个值是否是方法",{"2":{"44":1}}],["检查某个值是否是对象",{"2":{"43":1}}],["检查某个值是否是数字",{"2":{"41":1}}],["检查某个值是否是字符串",{"2":{"40":1}}],["检查事件是否在图形上",{"2":{"29":1}}],["辅助方法集合",{"2":{"37":1}}],["鼠标移出事件",{"2":{"34":1,"145":1,"165":2}}],["鼠标移入事件",{"2":{"34":1,"145":1,"165":2}}],["按住拖动结束回调事件",{"2":{"165":2}}],["按住拖动回调事件",{"2":{"165":2}}],["按住拖动开始回调事件",{"2":{"165":2}}],["按住某个操作点移动过程中触发",{"2":{"165":2}}],["按住移动结束事件",{"2":{"34":1,"145":1}}],["按住移动中事件",{"2":{"34":1,"145":1}}],["按住移动事件特殊处理方法",{"2":{"34":1}}],["按住开始移动事件",{"2":{"34":1,"145":1}}],["点一个",{"2":{"192":1}}],["点击回调事件",{"2":{"165":2}}],["点击事件",{"2":{"34":1,"145":1}}],["点信息",{"2":{"34":1,"145":1,"165":4}}],["创建时候的id",{"2":{"146":1}}],["创建覆盖物",{"2":{"143":1}}],["创建一个技术指标",{"2":{"139":1}}],["创建一个自定义技术指标",{"2":{"109":1}}],["创建一个自定义基础图形",{"2":{"95":1}}],["创建自定义提示文字",{"2":{"110":2}}],["创建自定义提示信息方法",{"2":{"32":1,"140":1}}],["创建第一个图表",{"0":{"102":1}}],["创建y轴上的图形",{"2":{"34":1,"165":2}}],["创建x轴上的图形",{"2":{"34":1,"165":2}}],["创建点对应的图形信息",{"2":{"166":2}}],["创建点对应的图形",{"2":{"34":1,"165":2}}],["时间戳",{"2":{"68":2,"150":1,"153":1,"158":1,"165":4}}],["时有效",{"2":{"34":1,"145":1,"165":2}}],["时区",{"0":{"190":1}}],["时区对应名字列表请参阅时区列表",{"2":{"23":1,"120":1}}],["时区名",{"2":{"23":1,"120":1}}],["是采用",{"2":{"192":1}}],["是一款可高度自定义的专业级轻量金融图表",{"2":{"180":1}}],["是一个回调方法",{"2":{"138":1,"156":1}}],["是一个k线数据数组",{"2":{"133":1,"134":1}}],["是一个方法",{"2":{"110":4}}],["是创建的唯一标识",{"2":{"96":2}}],["是怎么回事",{"0":{"73":1}}],["是",{"2":{"34":1,"145":1,"165":2}}],["是否忽略事件",{"2":{"165":2}}],["是否锁定",{"2":{"165":2}}],["是否锁定不让拖动",{"2":{"34":1,"145":1}}],["是否是绝对坐标",{"2":{"158":1,"159":1}}],["是否覆盖",{"2":{"139":1}}],["是否可以拖拽滚动",{"2":{"125":1}}],["是否可以缩放",{"2":{"123":1}}],["是否可见",{"2":{"32":1,"34":1,"110":2,"140":1,"145":1,"165":2}}],["是否需要包含浮层",{"2":{"160":1}}],["是否需要格式化大数据值",{"2":{"110":2}}],["是否需要格式化大的数字",{"2":{"32":1,"140":1}}],["是否需要ohlc",{"2":{"110":2}}],["是否需要ohlc辅助图形",{"2":{"32":1,"140":1}}],["是否需要默认的y轴上的图形",{"2":{"34":1,"145":1,"165":2}}],["是否需要默认的x轴上的图形",{"2":{"34":1,"145":1,"165":2}}],["是否需要默认的点对应的图形",{"2":{"34":1,"145":1,"165":2}}],["仅支持",{"2":{"155":1}}],["仅",{"2":{"34":1,"145":1,"165":2}}],["模式灵敏度",{"2":{"34":1,"145":1,"165":2}}],["模式",{"2":{"34":1,"145":1,"165":4}}],["越靠前显示",{"2":{"34":1}}],["绘制结束回调事件",{"2":{"165":2}}],["绘制结束事件",{"2":{"34":1,"145":1}}],["绘制过程中回调事件",{"2":{"165":2}}],["绘制开始回调事件",{"2":{"165":2}}],["绘制边框的菱形",{"2":{"99":2}}],["绘制填充的菱形",{"2":{"99":2}}],["绘制",{"2":{"96":2}}],["绘制带背景的文字",{"2":{"66":1}}],["绘制矩形",{"2":{"65":1}}],["绘制多边形",{"2":{"64":1}}],["绘制线",{"2":{"63":1}}],["绘制圆",{"2":{"62":1}}],["绘制圆弧",{"2":{"61":1}}],["绘制中事件",{"2":{"34":1,"145":1}}],["绘制层级",{"2":{"34":1,"145":1,"165":2}}],["绘制方法",{"2":{"29":1}}],["计算结果",{"2":{"113":2}}],["计算出来的数据不是想要的",{"0":{"76":1}}],["计算文字宽度",{"2":{"51":1}}],["计算方法",{"2":{"32":1,"110":2,"140":1}}],["计算参数最好取回调参数calcparams",{"2":{"113":2}}],["计算参数是2个",{"2":{"112":2}}],["计算参数文字",{"2":{"110":2}}],["计算参数",{"2":{"32":1,"110":4,"140":1}}],["指定的最大值",{"2":{"110":2}}],["指定的最小值",{"2":{"110":2}}],["指定高",{"2":{"93":2}}],["指定宽",{"2":{"93":2}}],["指定最大值",{"2":{"32":1,"140":1}}],["指定最小值",{"2":{"32":1,"140":1}}],["指标信息提示",{"2":{"191":2}}],["指标创建完成回调方法",{"2":{"139":1}}],["指标简短名称",{"2":{"110":2}}],["指标系列",{"2":{"32":1,"140":1}}],["指标名",{"2":{"32":1,"108":3,"110":2,"140":1}}],["指标图形配置支持自定义",{"2":{"7":1}}],["扩展数据",{"2":{"32":1,"34":1,"110":2,"140":1,"145":1,"165":2}}],["精度",{"2":{"32":1,"110":2,"140":1,"165":2}}],["mtm",{"2":{"108":1}}],["meta",{"2":{"102":10}}],["me",{"2":{"81":1}}],["merge",{"0":{"39":1}}],["mozilla",{"2":{"165":2}}],["moveto",{"2":{"99":4}}],["more",{"0":{"133":1,"134":1},"2":{"68":2,"133":3,"134":3}}],["modesensitivity",{"2":{"34":3,"143":6,"145":5,"165":2}}],["mode",{"2":{"34":4,"143":6,"145":6,"165":6}}],["minheight",{"2":{"139":5,"154":5}}],["min",{"2":{"101":2,"102":2,"185":2}}],["minvalue",{"2":{"32":3,"110":2,"139":2,"140":5}}],["middle",{"2":{"60":2,"66":2,"169":4}}],["mm",{"2":{"49":2}}],["max",{"2":{"185":2}}],["maxvalue",{"2":{"32":3,"110":2,"139":2,"140":5}}],["made",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["maintitle",{"2":{"187":6}}],["mainindicators",{"2":{"187":4}}],["main和yaxis",{"2":{"176":1}}],["main",{"2":{"115":3,"116":3,"187":2}}],["map",{"2":{"113":4,"187":2}}],["ma5",{"2":{"112":4,"113":2}}],["ma2",{"2":{"112":3,"113":4}}],["ma10",{"2":{"112":6,"113":2}}],["ma1",{"2":{"112":5,"113":4}}],["macd",{"2":{"108":1,"187":2}}],["ma",{"2":{"108":1,"111":1,"112":1,"113":10,"139":2,"187":2,"191":2}}],["math",{"2":{"99":4,"166":6,"182":8,"183":16,"184":16,"185":26,"186":16,"187":20,"188":22,"189":16,"190":16,"191":16}}],["magnet`",{"2":{"165":4}}],["magnet",{"2":{"34":7,"143":10,"145":9,"165":10}}],["marginbottom",{"2":{"169":8}}],["marginright",{"2":{"169":8}}],["margintop",{"2":{"169":8}}],["marginleft",{"2":{"169":8}}],["margin",{"2":{"16":2,"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":4}}],["marginend",{"2":{"16":2,"169":4,"173":2}}],["marginstart",{"2":{"16":2,"169":4,"173":2}}],["k",{"2":{"182":3,"183":4,"184":4,"185":4,"186":4,"187":4,"188":4,"189":8,"190":4,"191":4}}],["k线数据",{"2":{"110":4}}],["kdj",{"2":{"108":1}}],["kb",{"0":{"54":1},"2":{"54":2}}],["kx",{"2":{"52":1}}],["klinechart",{"0":{"180":1},"2":{"80":2,"83":1,"101":1,"102":1,"180":1,"192":2}}],["klinechartsyarn",{"2":{"101":1}}],["klinechartsnpm",{"2":{"101":1}}],["klinecharts",{"2":{"10":1,"86":2,"101":6,"102":16,"105":1,"170":2,"171":1,"182":1,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2,"192":1}}],["klinedatalist",{"2":{"110":4,"113":6,"178":4,"187":4}}],["klinedata",{"2":{"32":2,"110":22,"113":4,"139":2,"140":2,"187":4}}],["keywords",{"2":{"102":2}}],["key",{"0":{"46":1},"2":{"32":4,"34":12,"46":2,"105":1,"106":1,"110":2,"112":4,"113":8,"139":4,"140":4,"165":4,"166":2,"169":2,"182":17,"184":16,"186":10,"187":2,"188":10,"189":12,"190":10,"191":26}}],["erc20",{"2":{"196":1}}],["eth",{"2":{"196":1}}],["europe",{"2":{"190":2}}],["e11d74",{"2":{"169":2}}],["ededed",{"2":{"169":4}}],["ef5350",{"2":{"140":4}}],["ef5350变更为",{"2":{"9":1}}],["english",{"2":{"186":2}}],["en",{"2":{"186":2}}],["enabled",{"0":{"122":1,"124":1},"2":{"122":2,"124":2}}],["end",{"2":{"60":2,"66":2}}],["endangle",{"2":{"55":3,"61":3,"88":2}}],["emoji",{"2":{"187":6}}],["ema",{"2":{"108":1}}],["emv",{"2":{"68":2,"108":1}}],["extension",{"2":{"175":1}}],["extenddata",{"2":{"32":3,"34":3,"110":2,"139":2,"140":5,"143":6,"145":5,"165":2}}],["executeaction",{"0":{"155":1}}],["export",{"2":{"102":8}}],["else",{"2":{"99":2,"189":2}}],["event",{"2":{"34":28,"143":112,"145":84,"165":28}}],["图解说明",{"0":{"168":1}}],["图形辅助api",{"0":{"177":1}}],["图形类型",{"2":{"110":2,"165":2}}],["图形的样式",{"2":{"96":4}}],["图形的属性",{"2":{"96":4}}],["图形配置",{"2":{"32":1,"140":1}}],["图形名字",{"2":{"96":2}}],["图形名",{"2":{"31":1}}],["图表之间的分割线",{"2":{"169":2}}],["图表上看到的不管是点还是线",{"2":{"167":1}}],["图表上所有的元素都是由基础图形组成",{"2":{"85":1}}],["图表不会重绘",{"2":{"137":1}}],["图表内置了基础图形",{"2":{"166":2}}],["图表内置了这些基础图形",{"2":{"87":1}}],["图表内置了zh",{"2":{"25":1}}],["图表支持自定义技术指标",{"2":{"77":1}}],["图表默认价格精度为两位小数",{"2":{"74":1}}],["图表总是会填充容器",{"2":{"73":1}}],["图表基于",{"2":{"70":1}}],["图表所需要的数据必须是固定格式",{"2":{"68":1}}],["图表将不再可用",{"2":{"24":1}}],["图表方法extension",{"2":{"16":2}}],["图表方法新增getoverlayclass",{"2":{"4":1}}],["图表实例方法subscribeaction和unsubscribeaction类型新增oncandlebarclick",{"2":{"14":1}}],["图表api",{"0":{"22":1,"175":1},"1":{"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1},"2":{"7":1}}],["唯一标识",{"2":{"29":1}}],["元素id或者图表实例",{"2":{"24":1}}],["千分符",{"2":{"23":1,"165":2}}],["格式化精度",{"2":{"47":1}}],["格式化大的数字",{"2":{"23":1,"48":1}}],["格式化日期和时间的对象的构造器",{"2":{"165":2}}],["格式化日期千分符",{"2":{"50":1}}],["格式化日期",{"2":{"23":1,"49":1}}],["自定义",{"2":{"188":2}}],["自定义显示",{"2":{"169":2}}],["自定义一个覆盖物",{"2":{"164":1}}],["自定义一些api",{"2":{"23":1}}],["自定义覆盖物",{"0":{"164":1},"1":{"165":1,"166":1}}],["自定义绘制",{"2":{"110":2}}],["自定义绘制方法",{"2":{"32":1,"140":1}}],["自定义技术指标调整",{"0":{"178":1}}],["自定义技术指标",{"0":{"109":1},"1":{"110":1,"111":1,"112":1,"113":1}}],["自定义基础图形",{"0":{"95":1},"1":{"96":1,"97":1,"98":1,"99":1}}],["自定义扩展",{"2":{"16":2}}],["样式",{"2":{"32":1,"34":1,"60":1,"61":1,"62":2,"63":1,"64":2,"65":2,"66":2,"86":2,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"98":1,"110":10,"140":1,"145":1,"165":6}}],["样式名",{"2":{"28":1}}],["样式列表",{"2":{"23":1}}],["样式配置调整",{"0":{"173":1}}],["样式配置",{"0":{"167":1},"1":{"168":1,"169":1},"2":{"16":3,"28":1,"117":1}}],["样式配置新增candle",{"2":{"10":1}}],["样式配置candle",{"2":{"4":1,"5":1}}],["如果能够打赏一杯",{"2":{"192":1}}],["如果你觉得插件还不错",{"2":{"192":1}}],["如果你是",{"2":{"170":1}}],["如果dataindex和timestamp同时存在",{"2":{"158":1}}],["如果id存在",{"2":{"145":1}}],["如果缺省",{"2":{"142":1}}],["如果有值的情况下",{"2":{"113":2}}],["如果不是",{"2":{"113":2}}],["如果不设置会自动获取本机时区",{"2":{"23":1,"120":1}}],["如果无值",{"2":{"113":2}}],["如果返回true",{"2":{"110":2,"165":2}}],["如果name无值",{"2":{"110":2}}],["如果给定",{"2":{"110":2}}],["如果需要将组织官网或者个人主页展示在",{"2":{"192":1}}],["如果需要使用其他语言",{"2":{"104":1}}],["如果需要制作复杂的自定义技术指标和覆盖物",{"2":{"85":1}}],["如果需要运行在移动端",{"2":{"70":1}}],["如果需要展示技术指标",{"2":{"68":2}}],["如const",{"2":{"46":1}}],["如1000转换成1k",{"2":{"23":1,"32":1,"48":1,"140":1}}],["如",{"2":{"23":1,"49":1,"86":2,"120":1}}],["语言配置",{"2":{"25":1}}],["语言名",{"2":{"25":1}}],["语言",{"2":{"23":1}}],["可用于扩展字段",{"2":{"165":2}}],["可缺省",{"2":{"133":1,"134":1,"139":5,"141":1,"143":1,"151":1,"154":4,"160":3,"165":32}}],["可见区域信息",{"2":{"110":4}}],["可以直接使用",{"2":{"166":2}}],["可以缺省",{"2":{"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1}}],["可以通过图表方法init",{"2":{"167":1}}],["可以通过图表方法createindicator或者overrideindicator重写calc即可",{"2":{"76":1}}],["可以通过图表api",{"2":{"106":1}}],["可以这样做",{"2":{"105":1}}],["可以参考下面的方案",{"2":{"104":1}}],["可以定义两个选项solid和dashed",{"2":{"98":1}}],["可以使用覆盖物",{"2":{"78":1}}],["可以是国际化的",{"2":{"169":2}}],["可以是回调方法也可以是数组",{"2":{"169":2}}],["可以是当个对象",{"2":{"158":1,"159":1}}],["可以是单个id",{"2":{"146":1}}],["可以是通过registerstyles注册进去的样式名",{"2":{"117":1}}],["可以是通过klinecharts",{"2":{"23":1}}],["可以是一个promise",{"2":{"110":2}}],["可以是dom元素",{"2":{"24":1}}],["可以是dom元素或者元素id",{"2":{"23":1}}],["可选项为`normal`",{"2":{"165":2}}],["可选项为",{"2":{"156":1,"157":1}}],["可选项`fill`",{"2":{"89":2,"91":2,"92":2,"93":2}}],["可选项`solid`",{"2":{"88":2,"90":2}}],["可选项有",{"2":{"32":1,"34":1,"140":1,"145":1}}],["可选配置项",{"2":{"23":1}}],["容器",{"2":{"23":1}}],["gendata",{"2":{"182":2,"183":4,"184":4,"185":8,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["getelementbyid",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":6,"190":2,"191":2}}],["getwidth",{"2":{"176":1}}],["getconvertpictureurl",{"0":{"160":1}}],["getindicatorbypaneid",{"0":{"141":1}}],["getdatalist",{"0":{"136":1},"2":{"185":2}}],["getdom",{"0":{"115":1},"2":{"176":1}}],["getbarspace",{"0":{"131":1}}],["getoffsetrightdistance",{"0":{"127":1}}],["getoverlayclass",{"0":{"26":1}}],["getoverlaybyid",{"0":{"144":1},"2":{"16":1}}],["gettime",{"2":{"182":1,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["gettimezone",{"0":{"121":1}}],["gettechnicalindicatorbypaneid",{"2":{"176":1}}],["gettechnicalindicatortemplate",{"2":{"16":1}}],["getlinearyfromslopeintercept",{"0":{"54":1}}],["getlinearyfromcoordinates",{"0":{"53":1}}],["getlinearslopeintercept",{"0":{"52":1}}],["getlocal",{"2":{"16":1}}],["getheight",{"2":{"16":1}}],["getvisiblerange",{"0":{"132":1},"2":{"16":1}}],["getstyleoptions",{"2":{"176":1}}],["getstyles",{"0":{"118":1}}],["getsize",{"0":{"116":1},"2":{"16":1}}],["getsupportedoverlays",{"0":{"35":1}}],["getsupportedindicators",{"0":{"33":1}}],["getsupportedfigures",{"0":{"30":1}}],["getsupportedlocales",{"0":{"27":1}}],["getsupportlocales",{"2":{"16":1}}],["getsupportoverlays",{"2":{"16":1}}],["getsupportfigures返回值中的一种",{"2":{"165":2}}],["getsupportfigures",{"2":{"16":1}}],["getfigureclass",{"0":{"31":1},"2":{"16":1,"85":1,"86":2}}],["gzip压缩下仅40k",{"2":{"181":1}}],["green",{"2":{"189":30}}],["group",{"2":{"182":1}}],["groupid",{"2":{"143":6,"145":5,"146":3}}],["grid",{"2":{"169":2}}],["global",{"2":{"165":2}}],["gap",{"2":{"139":5,"154":5,"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["gapbar",{"2":{"110":2,"165":2,"187":2}}],["gg",{"2":{"82":1}}],["github",{"0":{"80":1},"2":{"80":2,"192":1}}],["gt",{"2":{"23":6,"24":2,"25":2,"26":4,"27":2,"28":2,"29":6,"30":2,"31":2,"32":26,"33":2,"34":48,"35":2,"36":2,"38":2,"39":2,"40":2,"41":2,"42":2,"43":2,"44":2,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":2,"53":2,"54":4,"55":2,"56":2,"57":4,"58":4,"59":2,"60":2,"61":2,"62":4,"63":4,"64":6,"65":4,"66":2,"88":2,"89":2,"90":4,"91":4,"92":2,"93":2,"96":4,"99":4,"101":4,"102":90,"110":26,"113":12,"115":2,"116":2,"117":2,"118":2,"119":2,"120":2,"121":2,"122":2,"123":2,"124":2,"125":2,"126":2,"127":2,"128":2,"129":2,"130":2,"131":2,"132":2,"133":6,"134":6,"135":4,"136":4,"137":2,"138":4,"139":26,"140":32,"141":2,"142":2,"143":64,"144":2,"145":32,"146":2,"147":2,"148":2,"149":2,"150":2,"151":2,"152":2,"153":2,"154":2,"155":4,"156":4,"157":4,"158":6,"159":4,"160":2,"161":2,"165":42,"166":2,"182":12,"183":2,"184":10,"185":8,"186":10,"187":20,"188":12,"189":10,"190":10,"191":22}}],["===",{"2":{"99":10,"166":2,"188":2,"189":4}}],["=",{"2":{"23":6,"24":2,"25":2,"26":2,"27":2,"28":2,"29":6,"30":2,"31":2,"32":18,"33":2,"34":40,"35":2,"36":2,"38":2,"39":2,"40":2,"41":2,"42":2,"43":2,"44":2,"45":2,"46":3,"47":2,"48":2,"49":2,"50":2,"51":2,"52":3,"53":2,"54":2,"55":2,"56":2,"57":2,"58":2,"59":2,"60":2,"61":2,"62":2,"63":2,"64":2,"65":2,"66":2,"86":2,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"96":4,"99":32,"102":42,"110":12,"113":24,"115":2,"116":2,"117":2,"118":2,"119":2,"120":2,"121":2,"122":2,"123":2,"124":2,"125":2,"126":2,"127":2,"128":2,"129":2,"130":2,"131":2,"132":2,"133":4,"134":4,"135":4,"136":2,"137":2,"138":4,"139":18,"140":24,"141":2,"142":2,"143":58,"144":2,"145":30,"146":2,"147":2,"148":2,"149":2,"150":2,"151":2,"152":2,"153":2,"154":2,"155":4,"156":4,"157":4,"158":2,"159":2,"160":2,"161":2,"165":34,"166":8,"182":39,"183":32,"184":48,"185":50,"186":48,"187":92,"188":56,"189":60,"190":48,"191":86}}],["n",{"2":{"169":4}}],["ngondestroy",{"2":{"102":2}}],["ngafterviewinit",{"2":{"102":2}}],["npm",{"2":{"101":2,"102":2}}],["npmyarncdn",{"2":{"101":1}}],["neue",{"2":{"169":24,"187":2}}],["next",{"2":{"110":2}}],["net",{"2":{"101":2,"102":2}}],["newdata",{"2":{"185":20}}],["new",{"2":{"86":2,"182":1,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["needdefaultyaxisfigure",{"2":{"34":3,"143":6,"145":5,"165":2,"188":2}}],["needdefaultxaxisfigure",{"2":{"34":3,"143":6,"145":5,"165":2,"188":2}}],["needdefaultpointfigure",{"2":{"34":3,"143":6,"145":5,"165":2,"188":2}}],["none",{"2":{"169":4,"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":6}}],["normal",{"2":{"32":3,"34":3,"110":4,"139":2,"140":3,"143":4,"145":3,"165":4,"169":28,"182":1}}],["nochangecolor",{"2":{"140":4,"169":10,"189":8}}],["nochangewickcolor",{"2":{"10":1,"169":2}}],["nochangebordercolor",{"2":{"10":1,"169":2}}],["null",{"2":{"138":2,"139":4,"140":6,"143":2,"145":2,"169":2}}],["nullable",{"2":{"26":2}}],["numbers",{"2":{"182":3}}],["number",{"2":{"23":6,"32":10,"34":12,"47":4,"48":2,"49":2,"50":2,"51":6,"52":8,"53":14,"54":8,"55":14,"56":10,"57":8,"58":8,"59":12,"60":12,"61":14,"62":10,"63":8,"64":8,"65":14,"66":26,"68":14,"88":14,"89":10,"90":8,"91":8,"92":14,"93":26,"96":4,"110":62,"116":12,"119":4,"126":2,"127":2,"128":2,"129":2,"130":2,"131":2,"132":8,"133":14,"134":14,"135":14,"136":14,"138":2,"139":18,"140":10,"143":20,"145":10,"147":4,"148":4,"149":4,"150":4,"151":8,"152":6,"153":6,"154":8,"158":20,"159":20,"165":48}}],["name=",{"2":{"102":8}}],["name为基础图形名字",{"2":{"86":2}}],["name",{"0":{"28":1,"31":1,"141":1,"142":1},"2":{"26":2,"28":3,"29":3,"31":3,"32":5,"34":3,"78":1,"85":1,"86":2,"96":2,"99":2,"110":4,"113":2,"139":4,"140":7,"141":3,"142":3,"143":6,"145":5,"146":3,"165":2,"166":2,"176":5,"178":1,"187":22,"188":6}}],["||",{"2":{"99":4,"113":2}}],["|",{"2":{"23":6,"24":4,"32":10,"34":34,"47":2,"48":2,"50":2,"51":2,"60":20,"61":2,"62":8,"63":2,"64":8,"65":8,"66":26,"88":2,"89":6,"90":2,"91":6,"92":6,"93":10,"110":10,"115":4,"116":4,"117":2,"138":2,"139":32,"140":28,"143":16,"145":6,"146":2,"156":12,"157":12,"158":4,"159":4,"165":18,"169":108}}],["6px",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["686d76",{"2":{"169":8}}],["60",{"2":{"108":2,"182":5,"183":10,"184":10,"185":10,"186":10,"187":10,"188":10,"189":10,"190":10,"191":10}}],["600px",{"2":{"102":16}}],["600",{"2":{"102":12,"185":2}}],["62",{"2":{"102":14}}],["66",{"2":{"102":28}}],["64",{"2":{"102":14}}],["61",{"2":{"102":28}}],["6",{"0":{"19":1},"2":{"19":1,"108":9,"169":10}}],["76808f",{"2":{"169":4}}],["76",{"2":{"102":14}}],["72",{"2":{"102":14}}],["70",{"2":{"102":14}}],["74",{"2":{"102":14}}],["77",{"2":{"102":14}}],["7yjhygvvvz",{"2":{"82":1}}],["7",{"0":{"18":1},"2":{"18":1,"169":12,"170":1,"189":4}}],["的组织或个人",{"2":{"192":1}}],["的浏览器上",{"2":{"70":1}}],["的版本记录",{"2":{"20":1,"21":1}}],["的",{"2":{"17":1,"18":1,"19":1,"192":1}}],["x轴分割线",{"2":{"169":4}}],["x轴分割文字",{"2":{"169":4}}],["x轴线",{"2":{"169":2}}],["x轴",{"2":{"169":2}}],["x轴组件",{"2":{"110":4,"165":2}}],["xxxxxxxx",{"2":{"143":2,"145":2}}],["xxx",{"2":{"113":4,"178":8}}],["xdis",{"2":{"99":4,"166":6,"188":6}}],["x是中心点x轴坐标值",{"2":{"98":1}}],["x",{"0":{"17":1,"18":1,"19":1,"20":1,"21":1},"2":{"17":1,"18":1,"19":1,"20":1,"21":1,"52":4,"53":6,"54":2,"55":5,"56":5,"57":4,"58":4,"59":5,"60":5,"61":3,"62":3,"63":2,"64":2,"65":3,"66":3,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"96":2,"98":1,"99":24,"151":2,"158":4,"159":4,"165":2,"166":4,"170":4,"187":4,"188":4}}],["xaxis",{"2":{"16":3,"32":8,"110":12,"165":4,"169":2,"173":3,"178":4,"187":4}}],["xaxis新增方法converttimestampfrompixel和converttimestamptopixel",{"2":{"6":1}}],["8px",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["800",{"2":{"182":1,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["85",{"2":{"169":6,"189":2}}],["888888",{"2":{"140":4,"169":28,"189":8}}],["88",{"2":{"102":14}}],["89",{"2":{"102":14}}],["8",{"0":{"17":1},"2":{"17":1,"102":2,"143":2,"145":2,"169":12,"170":2}}],["删除属性shouldcheckparamcount",{"2":{"178":1}}],["删除gettechnicalindicatorbypaneid",{"2":{"176":1}}],["删除setshapeoptions",{"2":{"176":1}}],["删除shape",{"2":{"16":2,"173":1}}],["删除removeshape",{"2":{"176":1}}],["删除createhtml",{"2":{"176":1}}],["删除createshape",{"2":{"176":1}}],["删除candle",{"2":{"16":1}}],["删除extension",{"2":{"175":1}}],["删除回调事件",{"2":{"165":2}}],["删除一个html元素",{"2":{"146":1}}],["删除事件",{"2":{"34":1,"145":1}}],["删除实例方法createhtml",{"2":{"16":1}}],["删除实例方法createshape",{"2":{"16":1}}],["删除实例方法setshapeoptions",{"2":{"16":1}}],["删除实例方法removeshape",{"2":{"16":1}}],["删除实例方法getwidth",{"2":{"16":1}}],["改用overlay",{"2":{"16":2}}],["改用overrideoverlay",{"2":{"16":1}}],["改用removeoverlay",{"2":{"16":1}}],["改用createoverlay",{"2":{"16":1}}],["改用getsize",{"2":{"16":1}}],["废弃",{"2":{"16":1}}],["less",{"2":{"186":2}}],["let",{"2":{"182":3,"183":6,"184":6,"185":6,"186":6,"187":8,"188":6,"189":6,"190":6,"191":6}}],["length",{"2":{"166":2,"169":4,"182":3,"183":6,"184":6,"185":8,"186":6,"187":6,"188":8,"189":6,"190":6,"191":6}}],["left",{"2":{"60":2,"66":2,"110":4,"116":2,"165":2,"169":10,"182":2}}],["lang",{"2":{"186":4}}],["lang=",{"2":{"102":2}}],["labels和candle",{"2":{"173":1}}],["lastdata",{"2":{"185":4}}],["lastvaluemark",{"2":{"16":1,"169":2}}],["last",{"2":{"16":1,"169":2,"189":4,"191":2}}],["li888",{"2":{"192":1}}],["light",{"2":{"189":6}}],["liihuu",{"2":{"80":2}}],["liner",{"2":{"182":1}}],["linecolor",{"2":{"169":2}}],["linewidth",{"2":{"99":2}}],["lineto",{"2":{"99":12}}],["line",{"0":{"57":1,"63":1,"90":1},"2":{"57":2,"63":3,"87":1,"112":4,"113":6,"143":2,"145":2,"169":8,"182":6,"183":4,"184":4,"185":4,"186":4,"187":4,"188":6,"189":8,"190":4,"191":4}}],["linesize",{"2":{"169":2}}],["lines",{"2":{"16":1,"140":2,"169":2,"173":1}}],["line变更为indicator",{"2":{"16":1,"173":1}}],["lt",{"2":{"26":2,"32":8,"34":8,"54":2,"57":2,"58":2,"62":2,"63":2,"64":4,"65":2,"90":2,"91":2,"99":2,"101":4,"102":64,"110":14,"133":2,"134":2,"136":2,"139":8,"140":8,"143":6,"145":2,"158":4,"159":4,"165":8,"182":6,"183":6,"184":10,"185":6,"186":10,"187":12,"188":10,"189":10,"190":10,"191":10}}],["loadmoretimer",{"2":{"185":2}}],["loadmore",{"0":{"138":1},"2":{"185":2}}],["lock",{"2":{"34":3,"143":6,"145":5,"165":2}}],["locales",{"0":{"25":1},"2":{"25":3,"105":1}}],["locale",{"0":{"25":1},"2":{"23":3,"25":3}}],["low",{"2":{"25":2,"68":2,"102":140,"105":2,"133":2,"134":2,"135":2,"136":2,"169":2,"182":3,"183":6,"184":6,"185":10,"186":8,"187":6,"188":6,"189":6,"190":6,"191":6}}],["logo",{"2":{"192":1}}],["logarithm",{"2":{"182":1}}],["log",{"2":{"17":1,"18":1,"19":1,"143":28,"145":28,"169":2,"182":1}}],["hu",{"2":{"192":1}}],["hide",{"2":{"191":2}}],["high",{"2":{"25":2,"68":2,"102":140,"105":2,"133":2,"134":2,"135":2,"136":2,"169":2,"182":3,"183":6,"184":6,"185":10,"186":8,"187":6,"188":6,"189":6,"190":6,"191":6}}],["halfgapbar",{"2":{"110":2,"165":2}}],["halfbar",{"2":{"110":2,"165":2}}],["hanging",{"2":{"60":2,"66":2}}],["hk",{"2":{"105":2,"186":4}}],["helvetica",{"2":{"169":24,"187":2}}],["head",{"2":{"102":4}}],["height是高度",{"2":{"98":1}}],["height",{"2":{"59":3,"65":3,"66":3,"92":2,"93":2,"98":1,"99":16,"102":14,"110":4,"116":2,"139":5,"154":5,"165":2,"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["height变更为yaxis",{"2":{"16":1,"173":1}}],["height变更为xaxis",{"2":{"16":1,"173":1}}],["hooks",{"2":{"102":2}}],["horizontalstraightline",{"2":{"163":1}}],["horizontalsegment",{"2":{"163":1}}],["horizontalrayline",{"2":{"163":1}}],["horizontal",{"2":{"16":1,"169":4}}],["https",{"2":{"80":2,"81":1,"82":1,"101":2,"102":2,"165":2,"192":1}}],["htmlid",{"2":{"146":1,"176":1}}],["html",{"2":{"101":1,"102":7,"176":1,"182":2}}],["html5",{"2":{"70":1}}],["htmlelement",{"2":{"23":2,"24":2,"115":2,"117":2}}],["hh",{"2":{"49":1}}],["span",{"2":{"187":4,"191":4}}],["space",{"0":{"130":1},"2":{"130":2,"176":1}}],["sub",{"2":{"187":2}}],["subtitle",{"2":{"187":8}}],["subindicators",{"2":{"187":4}}],["subscribeaction",{"0":{"156":1},"2":{"176":1}}],["smooth",{"2":{"169":12}}],["sma",{"2":{"108":1}}],["sqrt",{"2":{"166":2,"188":2}}],["samplecircle",{"2":{"166":4}}],["sar",{"2":{"108":1}}],["scale",{"0":{"151":1,"152":1,"153":1},"2":{"151":3,"152":3,"153":3}}],["scale=1",{"2":{"102":2}}],["scrolltotimestamp",{"0":{"150":1}}],["scrolltodataindex",{"0":{"149":1}}],["scrolltorealtime",{"0":{"148":1}}],["scrollbydistance",{"0":{"147":1}}],["scrollzoomenabled",{"2":{"139":5,"154":5}}],["script",{"2":{"101":4,"102":16}}],["svelte",{"2":{"102":3}}],["src=",{"2":{"101":2,"102":2}}],["sort",{"2":{"182":1,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["solid是实线",{"2":{"98":1}}],["solid",{"2":{"61":2,"62":2,"63":2,"64":2,"65":2,"66":2,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"99":2,"102":2,"139":4,"140":10,"143":2,"145":2,"169":74,"184":4,"189":8}}],["source",{"0":{"39":1},"2":{"39":2}}],["situation",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["simple",{"2":{"171":1}}],["simpletag",{"2":{"163":1}}],["simpleannotation",{"2":{"78":1,"163":1}}],["sign",{"0":{"50":1},"2":{"50":2}}],["size",{"0":{"51":1},"2":{"16":2,"51":2,"60":3,"61":3,"63":3,"66":3,"88":2,"90":2,"93":2,"140":2,"143":2,"145":2,"169":62,"173":2,"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["ss",{"2":{"49":1}}],["separator",{"2":{"169":2}}],["segment",{"2":{"143":6,"145":6,"163":1}}],["selector",{"2":{"102":2}}],["series",{"2":{"32":3,"110":2,"139":2,"140":5}}],["setindicatortooltipshowtype",{"2":{"191":4}}],["setindicatortooltipshowrule",{"2":{"191":4}}],["setinside",{"2":{"182":2}}],["setcandletooltipshowtype",{"2":{"191":4}}],["setcandletooltipshowrule",{"2":{"191":4}}],["setcustomapi",{"2":{"16":1}}],["setmainindicator",{"2":{"187":4}}],["setreverse",{"2":{"182":2}}],["setrightminvisiblebarcount",{"0":{"129":1}}],["settheme",{"2":{"189":4}}],["settimeout",{"2":{"185":4}}],["settimezone",{"0":{"120":1},"2":{"190":6}}],["settype",{"2":{"182":2,"184":4}}],["setoffsetrightspace",{"2":{"176":1}}],["setoffsetrightdistance",{"0":{"126":1}}],["setposition",{"2":{"182":2}}],["setpaneoptions",{"0":{"154":1},"2":{"154":2}}],["setpricevolumeprecision",{"0":{"119":1}}],["setbarspace",{"0":{"130":1}}],["setsubindicator",{"2":{"187":4}}],["setstyleoptions",{"2":{"176":1}}],["setstyles",{"0":{"117":1},"2":{"75":2,"182":4,"184":2,"189":2,"191":8}}],["setscrollenabled",{"0":{"124":1}}],["setzoomenabled",{"0":{"122":1}}],["setup",{"2":{"102":2}}],["setlang",{"2":{"186":4}}],["setleftminvisiblebarcount",{"0":{"128":1}}],["setlinedash",{"2":{"99":4}}],["setlocale",{"2":{"16":1,"186":2}}],["shape",{"2":{"172":1}}],["shanghai",{"2":{"23":1,"120":1,"190":4}}],["shift",{"2":{"103":4}}],["showparams",{"2":{"169":2}}],["showtype",{"2":{"169":4,"191":8}}],["showrule",{"2":{"169":4,"191":8}}],["show",{"2":{"169":52}}],["showname",{"2":{"140":2,"169":2}}],["shouldformatbignumber",{"2":{"32":3,"110":2,"139":2,"140":5}}],["shouldohlc",{"2":{"32":3,"110":2,"139":2,"140":5}}],["shortname",{"2":{"32":3,"110":2,"113":2,"139":2,"140":3}}],["standard",{"2":{"169":8,"191":4}}],["start",{"2":{"60":2,"66":2}}],["startangle",{"2":{"55":3,"61":3,"88":2}}],["straightline",{"2":{"163":1}}],["strokestyle",{"2":{"99":2}}],["stroke只有边框",{"2":{"98":1}}],["stroke",{"2":{"62":4,"64":4,"65":4,"66":4,"89":4,"91":4,"92":4,"93":4,"98":2,"99":8,"139":8,"140":8,"166":2,"169":50,"184":12,"188":2}}],["strong",{"2":{"34":3,"143":4,"145":3,"165":4}}],["string",{"2":{"23":18,"24":2,"25":14,"26":2,"27":2,"28":2,"29":2,"30":2,"31":2,"32":32,"33":2,"34":26,"35":2,"36":2,"46":2,"47":4,"48":4,"49":4,"50":6,"51":6,"60":6,"61":2,"62":4,"63":2,"64":4,"65":4,"66":10,"88":2,"89":4,"90":2,"91":4,"92":4,"93":10,"96":2,"110":28,"115":2,"116":2,"117":2,"120":2,"121":2,"139":42,"140":38,"141":4,"142":4,"143":20,"144":2,"145":8,"146":8,"154":2,"158":2,"159":2,"160":6,"165":12}}],["style=",{"2":{"102":14,"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["style是样式类型",{"2":{"98":1}}],["style",{"2":{"61":3,"62":3,"63":3,"64":3,"65":3,"66":3,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"98":1,"99":10,"139":4,"140":10,"143":2,"145":2,"166":2,"169":46,"187":2,"188":2,"189":12}}],["styles",{"0":{"28":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"117":1},"2":{"23":3,"28":3,"29":4,"32":7,"34":15,"60":3,"61":3,"62":3,"63":3,"64":3,"65":3,"66":3,"67":2,"86":4,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"96":2,"99":8,"110":4,"117":3,"139":6,"140":9,"143":6,"145":5,"165":6,"166":2,"167":1,"176":2,"178":1,"188":2}}],["style选项变更为solid和dashed",{"2":{"16":1}}],["变更为draw",{"2":{"178":1}}],["变更为",{"2":{"178":1}}],["变更为createtooltipdatasource",{"2":{"178":1}}],["变更为createindicator",{"2":{"176":1}}],["变更为calc",{"2":{"178":1}}],["变更为regeneratefigures",{"2":{"178":1}}],["变更为registerindicator",{"2":{"175":1}}],["变更为removeindicator",{"2":{"176":1}}],["变更为overrideindicator",{"2":{"176":1}}],["变更为setoffsetrightdistance",{"2":{"176":1}}],["变更为setstyles",{"2":{"176":1}}],["变更为getindicatorbypaneid",{"2":{"176":1}}],["变更为getstyles",{"2":{"176":1}}],["变更为getdom",{"2":{"176":1}}],["变更为支持任意类型",{"2":{"16":1}}],["变更",{"2":{"16":1}}],["items",{"2":{"182":2,"184":6,"186":6,"187":2,"188":6,"189":6,"190":6,"191":2}}],["i++",{"2":{"182":1,"183":2,"184":2,"185":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":2}}],["iconfont",{"2":{"169":4}}],["icon",{"2":{"169":8}}],["icons",{"2":{"16":2,"169":4}}],["i",{"2":{"113":10,"182":2,"183":4,"184":4,"185":4,"186":4,"187":12,"188":4,"189":4,"190":4,"191":4}}],["implements",{"2":{"102":2}}],["import",{"2":{"102":18,"182":2,"183":1,"184":3,"185":1,"186":3,"187":3,"188":3,"189":3,"190":3,"191":3}}],["id",{"0":{"144":1},"2":{"139":5,"143":6,"144":3,"145":5,"146":3,"154":5,"169":8,"176":2,"187":2,"191":2}}],["id=",{"2":{"102":14,"182":2,"183":2,"184":4,"185":2,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["ideographic",{"2":{"60":2,"66":2}}],["if",{"2":{"99":6,"113":2,"166":2,"188":2,"189":4}}],["ignoreevent",{"2":{"34":12,"165":4}}],["info",{"2":{"191":4}}],["innertext",{"2":{"182":4,"184":2,"186":2,"187":8,"188":2,"189":2,"190":2,"191":12}}],["in",{"2":{"182":2,"184":4,"186":4,"187":4,"188":6,"189":4,"190":4,"191":4}}],["index",{"2":{"171":2,"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["indicatortitle",{"2":{"191":6}}],["indicatorbuttoncontainer",{"2":{"191":12}}],["indicatorfigure",{"2":{"110":2}}],["indicatorfigurestyle",{"2":{"110":2}}],["indicatorfigureattrs",{"2":{"110":2}}],["indicatorfigureattrscallbackcoordinate",{"2":{"110":2}}],["indicatorstyle",{"2":{"110":8}}],["indicatordata",{"2":{"110":6}}],["indicator",{"0":{"32":1},"2":{"16":2,"32":9,"110":16,"139":6,"140":6,"169":2,"178":3,"187":8,"189":4,"191":6}}],["insideoutside",{"2":{"182":2}}],["inside",{"2":{"169":2,"182":3}}],["install",{"2":{"101":2}}],["includeoverlay",{"0":{"160":1},"2":{"160":3}}],["intl",{"2":{"23":2,"49":2,"165":4}}],["initial",{"2":{"102":2}}],["init",{"0":{"23":1},"2":{"102":24,"106":1,"182":2,"183":4,"184":4,"185":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["is",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["isdashed合并成styles",{"2":{"178":1}}],["iszoomenabled",{"0":{"123":1}}],["isscrollenabled",{"0":{"125":1}}],["issues",{"2":{"80":2}}],["isstroke",{"2":{"178":1}}],["isstring",{"0":{"40":1}}],["isstack",{"0":{"139":1},"2":{"7":1,"139":3,"176":2}}],["isboolean",{"0":{"45":1}}],["isfunction",{"0":{"44":1}}],["isobject",{"0":{"43":1}}],["isvalid",{"0":{"42":1}}],["isvalid和klinecharts",{"2":{"10":1}}],["isnumber",{"0":{"41":1}}],["bc1qnwzukszzk5xfk0zs3sr8etzgctgnrtqts43jzp3khe6gm7xazprsp4y6n3",{"2":{"196":1}}],["btc",{"2":{"196":1}}],["built",{"2":{"188":2}}],["button",{"2":{"182":25,"184":18,"186":18,"187":28,"188":18,"189":18,"190":18,"191":52}}],["buttoncontainer",{"2":{"182":7,"184":8,"186":8,"187":14,"188":8,"189":8,"190":8}}],["berlin",{"2":{"190":4}}],["be",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["beginpath",{"2":{"99":6}}],["blank和klinecharts",{"2":{"171":1}}],["bmp",{"2":{"160":1}}],["bbi",{"2":{"108":1}}],["brar",{"2":{"108":1}}],["bias",{"2":{"108":1}}],["b中的k和b",{"2":{"52":1}}],["b",{"2":{"46":2}}],["background",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["backgroundcolor",{"0":{"160":1},"2":{"66":3,"93":2,"160":3,"169":14,"189":4}}],["bashyarn",{"2":{"101":1}}],["bashnpm",{"2":{"101":1}}],["base",{"2":{"191":2}}],["basetitle",{"2":{"191":6}}],["basebuttoncontainer",{"2":{"191":12}}],["baseprice",{"2":{"182":3,"183":6,"184":6,"185":6,"186":6,"187":6,"188":6,"189":6,"190":6,"191":6}}],["baseline",{"2":{"60":3,"66":3,"93":2}}],["basevalue",{"2":{"32":4,"110":2,"139":4,"140":4}}],["barcount",{"0":{"128":1,"129":1},"2":{"128":2,"129":2}}],["barspace",{"2":{"32":8,"110":6,"165":2,"178":1,"187":4}}],["bars",{"2":{"16":1,"169":2,"173":1,"189":4}}],["bar变更为indicator",{"2":{"16":1,"173":1}}],["bar",{"2":{"10":6,"110":2,"165":2,"169":2,"189":4}}],["boll",{"2":{"108":1,"140":4,"187":2}}],["body",{"2":{"102":4}}],["border",{"2":{"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["borderradius",{"2":{"65":3,"66":3,"92":2,"93":2,"169":16}}],["borderdashedvalue",{"2":{"62":3,"64":3,"65":3,"66":3,"89":2,"91":2,"92":2,"93":2,"99":4,"140":4,"169":22,"189":8}}],["bordersize是边框尺寸",{"2":{"98":1}}],["bordersize",{"2":{"62":3,"64":3,"65":3,"66":3,"89":2,"91":2,"92":2,"93":2,"98":1,"99":4,"140":4,"169":26,"189":8}}],["borderstyle是边框样式",{"2":{"98":1}}],["borderstyle",{"2":{"16":4,"62":3,"64":3,"65":3,"66":3,"89":2,"91":2,"92":2,"93":2,"98":1,"99":4,"140":4,"169":22,"189":8}}],["bordercolor是边框颜色",{"2":{"98":1}}],["bordercolor",{"2":{"62":3,"64":3,"65":3,"66":3,"89":2,"91":2,"92":2,"93":2,"98":1,"99":4,"169":20}}],["bottom",{"2":{"60":2,"66":2,"110":4,"116":2,"139":5,"154":5,"165":2}}],["bounding",{"2":{"32":8,"110":8,"165":2,"178":2}}],["boolean",{"2":{"29":2,"32":8,"34":50,"40":2,"41":2,"42":2,"43":2,"44":2,"45":2,"55":2,"56":2,"57":2,"58":2,"59":2,"60":2,"96":2,"110":8,"122":2,"123":2,"124":2,"125":2,"133":2,"134":2,"139":14,"140":8,"143":76,"145":38,"154":4,"158":2,"159":2,"160":2,"165":42}}],["rules",{"2":{"191":6}}],["rise",{"2":{"189":12}}],["right",{"2":{"60":2,"66":2,"110":4,"116":2,"165":2,"169":8,"182":2}}],["rigisteroverlay",{"2":{"16":1}}],["rgba",{"2":{"169":34,"189":4}}],["random",{"2":{"182":4,"183":8,"184":8,"185":12,"186":8,"187":10,"188":8,"189":8,"190":8,"191":8}}],["radius",{"2":{"166":4,"169":2,"182":2,"184":2,"186":2,"187":2,"188":6,"189":2,"190":2,"191":2}}],["rayline",{"2":{"163":1}}],["round",{"2":{"182":3,"183":6,"184":6,"185":8,"186":6,"187":6,"188":6,"189":6,"190":6,"191":6}}],["root",{"2":{"115":2,"116":2}}],["roc",{"2":{"108":1}}],["rsi",{"2":{"108":1}}],["r",{"2":{"55":3,"56":3,"61":3,"62":3,"88":2,"89":2,"166":2,"188":2}}],["red",{"2":{"189":30}}],["result",{"2":{"187":6}}],["resize",{"0":{"161":1}}],["reverse",{"2":{"169":2,"182":5}}],["reference",{"2":{"165":2}}],["realdataindex",{"2":{"110":2}}],["realx",{"2":{"110":2}}],["realto",{"2":{"110":4,"132":2}}],["realfrom",{"2":{"110":4,"132":2}}],["react",{"2":{"102":2}}],["reactvueangularpreactsolidsveltevanilla",{"2":{"102":1}}],["return",{"2":{"99":2,"102":10,"113":8,"143":2,"145":2,"166":4,"182":1,"183":2,"184":2,"185":2,"186":2,"187":6,"188":6,"189":2,"190":2,"191":2}}],["regularity",{"2":{"182":1}}],["regeneratefigures",{"2":{"32":3,"110":2,"113":2,"139":2,"140":5}}],["registeroverlay",{"0":{"34":1},"2":{"164":1,"188":4}}],["registerindicator全局添加",{"2":{"109":1}}],["registerindicator",{"0":{"32":1},"2":{"187":4}}],["registerfigure全局添加",{"2":{"95":1}}],["registerfigure",{"0":{"29":1}}],["registerstyles注册的样式名",{"2":{"23":1}}],["registerstyles",{"0":{"28":1},"2":{"16":1,"189":6}}],["registerlocale",{"0":{"25":1},"2":{"16":1,"105":3,"186":4}}],["removetechnicalindicator",{"2":{"176":1}}],["removetag",{"2":{"16":1,"176":1}}],["remove",{"0":{"146":1},"2":{"146":2}}],["removeindicator",{"0":{"142":1}}],["removehtml",{"2":{"16":1,"176":1}}],["removeannotation",{"2":{"16":1,"176":1}}],["removeoverlay",{"0":{"146":1},"2":{"16":1}}],["recttext",{"0":{"67":1,"94":1},"2":{"87":1,"169":2}}],["rect",{"0":{"59":1,"65":1,"92":1},"2":{"10":2,"59":3,"65":3,"87":1,"110":2,"169":8,"191":4}}],["滚动到指定时间戳",{"2":{"150":1}}],["滚动到指定的位置",{"2":{"149":1}}],["滚动到最初的位置",{"2":{"148":1}}],["滚动一定的距离",{"2":{"147":1}}],["滚动",{"2":{"16":1}}],["新特性",{"2":{"16":1}}],["新增candle",{"2":{"16":1}}],["新增实例方法",{"2":{"16":1}}],["新增基图表方法registerfigure",{"2":{"16":1}}],["新增y轴方向缩放",{"2":{"16":1}}],["新增figurekey和figureindex",{"2":{"11":1}}],["新增options",{"2":{"7":1}}],["新增图表api",{"2":{"7":1}}],["新增属性modesensitivity",{"2":{"5":1}}],["和convertfrompixel",{"2":{"176":1}}],["和unsubscribeaction",{"2":{"176":1}}],["和updatedata",{"2":{"68":1}}],["和getheight",{"2":{"176":1}}],["和配置项",{"2":{"112":1}}],["和",{"2":{"32":1,"34":1,"68":2,"140":1,"145":1,"156":1,"157":1}}],["和基础类型deeppartial",{"2":{"11":1}}],["和setpaneoptions",{"2":{"7":1}}],["入参是空数组时不刷新问题",{"2":{"11":1}}],["日志输出",{"2":{"10":1}}],["fruits",{"2":{"187":4}}],["from",{"2":{"102":22,"110":4,"132":2,"171":1,"182":1,"183":2,"184":2,"185":2,"186":2,"187":6,"188":2,"189":2,"190":2,"191":2}}],["flex",{"2":{"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["floor",{"2":{"182":1,"183":2,"184":2,"185":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":2}}],["fefefe",{"2":{"169":2}}],["f2f3f5",{"2":{"169":2}}],["foxmail",{"2":{"192":1}}],["font",{"2":{"182":2,"184":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":2}}],["fontfamily",{"2":{"169":4}}],["following",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["follow",{"2":{"169":4,"191":4}}],["for",{"2":{"182":3,"183":4,"184":6,"185":4,"186":6,"187":8,"188":6,"189":6,"190":6,"191":6}}],["foreach",{"2":{"113":2,"182":4,"184":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":8}}],["formatthousands",{"0":{"50":1}}],["format格式",{"2":{"49":1}}],["formatprecision",{"0":{"47":1}}],["formatvalue",{"0":{"46":1},"2":{"46":1}}],["format",{"0":{"49":1},"2":{"23":2,"49":2}}],["formatdate",{"0":{"49":1},"2":{"23":3}}],["formatbignumber",{"0":{"48":1},"2":{"10":1,"23":3}}],["fff",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["ffffff",{"2":{"160":1,"169":12,"189":2}}],["ff9600",{"2":{"140":2,"169":2}}],["f00",{"2":{"143":2,"145":2}}],["fall",{"2":{"189":12}}],["false",{"2":{"139":2,"140":2,"143":10,"145":10,"169":20,"182":2,"187":2,"191":2}}],["family",{"0":{"51":1},"2":{"51":2,"60":3,"66":3,"93":2,"169":20}}],["function",{"2":{"102":2,"143":28,"145":28,"182":5,"183":2,"184":4,"185":4,"186":4,"187":6,"188":4,"189":4,"190":4,"191":10}}],["fixed",{"2":{"169":4}}],["fibonacciline",{"2":{"163":1}}],["finder",{"0":{"158":1,"159":1},"2":{"158":3,"159":3,"176":2}}],["filltext",{"2":{"187":2}}],["fillstyle",{"2":{"99":2}}],["fill又有边框又有背景",{"2":{"98":1}}],["fill只有背景",{"2":{"98":1}}],["fill`",{"2":{"89":2,"91":2,"92":2,"93":2}}],["fill",{"2":{"62":4,"64":4,"65":4,"66":4,"89":4,"91":4,"92":4,"93":4,"98":2,"99":10,"139":8,"140":12,"166":2,"169":68,"188":2,"189":8}}],["figurenew",{"2":{"88":1,"89":1,"90":1,"91":1,"92":1,"93":1}}],["figures",{"2":{"32":3,"110":2,"112":3,"113":6,"139":2,"140":5,"187":2}}],["figure",{"0":{"29":1},"2":{"29":3,"31":2,"86":4,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1}}],["f92855",{"2":{"9":1,"169":8,"189":2}}],["px",{"2":{"187":2}}],["purpose",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["push",{"2":{"182":2,"183":4,"184":4,"185":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["percentage",{"2":{"169":2,"182":2}}],["performpoint",{"2":{"165":2}}],["performpointindex",{"2":{"165":2}}],["performeventmovefordrawing",{"2":{"34":3,"165":2}}],["performeventpressedmove",{"2":{"34":3,"165":2}}],["png",{"2":{"160":1}}],["p",{"2":{"113":4}}],["pvt",{"2":{"108":1}}],["psy",{"2":{"108":1}}],["point",{"2":{"169":2}}],["pointer",{"2":{"169":2}}],["points对应的坐标信息",{"2":{"165":2}}],["points",{"2":{"34":3,"143":6,"145":5,"165":4,"176":1}}],["positions",{"2":{"182":2}}],["position",{"0":{"115":1,"116":1},"2":{"115":3,"116":3,"169":8,"176":4,"182":2}}],["position和candle",{"2":{"10":1}}],["polygon",{"0":{"58":1,"64":1,"91":1},"2":{"58":2,"64":3,"87":1,"169":2}}],["parallelstraightline",{"2":{"163":1}}],["param",{"2":{"113":8}}],["params",{"2":{"32":4,"34":10,"110":4,"113":4,"139":4,"140":4,"165":2,"178":2}}],["pane",{"2":{"139":3,"140":3,"141":1,"142":1,"143":1,"154":3,"187":2,"191":2}}],["paneoptions",{"0":{"139":1},"2":{"139":3,"154":1,"176":2}}],["paneid",{"0":{"115":1,"116":1,"140":1,"141":1,"142":1,"143":1},"2":{"78":1,"110":2,"115":3,"116":3,"140":3,"141":3,"142":3,"143":3,"146":1,"158":3,"159":3,"176":19}}],["padding",{"2":{"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["paddingbottom",{"2":{"66":3,"93":2,"169":18}}],["paddingbottom变更为yaxis",{"2":{"16":1,"173":1}}],["paddingbottom变更为xaxis",{"2":{"16":1,"173":1}}],["paddingright",{"2":{"66":3,"93":2,"169":18}}],["paddingtop",{"2":{"66":3,"93":2,"169":18}}],["paddingtop变更为yaxis",{"2":{"16":1,"173":1}}],["paddingtop变更为xaxis",{"2":{"16":1,"173":1}}],["paddingleft",{"2":{"66":3,"93":2,"169":18,"187":2}}],["paddingleft显示不对问题",{"2":{"1":1}}],["project",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["promise",{"2":{"32":2,"110":2,"139":2,"140":2}}],["prev",{"2":{"110":2}}],["preact",{"2":{"102":2}}],["precision",{"2":{"32":3,"47":2,"110":2,"139":2,"140":5,"165":2}}],["prices",{"2":{"182":7,"183":14,"184":14,"185":14,"186":14,"187":14,"188":14,"189":14,"190":14,"191":14}}],["pricechannelline",{"2":{"163":1}}],["priceline",{"2":{"163":1,"188":2}}],["priceprecision",{"0":{"119":1},"2":{"74":1,"119":3}}],["price",{"2":{"32":3,"110":2,"119":1,"139":2,"140":5,"165":2,"188":2}}],["pricemark",{"2":{"16":1,"169":2,"189":4}}],["d9d9d9",{"2":{"169":12}}],["dragenbaled",{"2":{"139":1,"154":1}}],["dragenabled",{"2":{"139":4,"154":4}}],["drawtext",{"0":{"66":1},"2":{"67":2}}],["drawrecttext",{"0":{"67":1}}],["drawrect",{"0":{"65":1}}],["drawpolygon",{"0":{"64":1}}],["drawline",{"0":{"63":1}}],["drawcircle",{"0":{"62":1}}],["drawarc",{"0":{"61":1}}],["draw",{"2":{"29":3,"32":3,"86":2,"96":2,"99":2,"110":2,"139":2,"140":5,"187":2}}],["d",{"2":{"110":2}}],["dma",{"2":{"108":1}}],["dmi",{"2":{"108":1}}],["document",{"2":{"182":6,"184":6,"186":6,"187":12,"188":6,"189":10,"190":6,"191":18}}],["docs",{"2":{"165":2}}],["doctype",{"2":{"102":2}}],["down",{"2":{"169":2,"184":4}}],["downcolor",{"2":{"140":4,"169":10,"189":20}}],["downwickcolor",{"2":{"10":1,"169":2,"189":4}}],["downbordercolor",{"2":{"10":1,"169":2,"189":4}}],["div",{"2":{"102":16,"182":5,"183":2,"184":8,"185":2,"186":8,"187":8,"188":8,"189":8,"190":8,"191":10}}],["diamond",{"2":{"99":2}}],["display",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":4}}],["dispose",{"0":{"24":1},"2":{"102":22}}],["distance",{"0":{"126":1,"147":1},"2":{"126":2,"147":3,"148":2,"176":1}}],["dist",{"2":{"101":2,"102":2}}],["discord",{"0":{"82":1},"2":{"82":1}}],["discussions",{"2":{"80":2}}],["dark",{"2":{"189":6}}],["dashvalue更改为dashedvalue",{"2":{"173":1}}],["dashed是虚线",{"2":{"98":1}}],["dashedvalue是虚线值",{"2":{"98":1}}],["dashedvalue",{"2":{"61":3,"63":3,"88":2,"90":2,"98":1,"140":2,"143":2,"145":2,"169":24}}],["dashed",{"2":{"61":2,"62":2,"63":2,"64":2,"65":2,"66":2,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"99":2,"139":4,"140":4,"169":44}}],["date",{"2":{"182":1,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["datetimeformat",{"0":{"49":1},"2":{"23":4,"49":4,"165":6}}],["datasource",{"2":{"178":2}}],["dataindex",{"0":{"149":1,"152":1},"2":{"34":2,"110":2,"143":4,"145":2,"149":3,"152":3,"158":5,"159":4,"165":4}}],["datalist",{"0":{"133":1,"134":1},"2":{"32":2,"68":2,"110":2,"133":3,"134":3,"139":2,"140":2,"182":3,"183":6,"184":6,"185":12,"186":6,"187":6,"188":6,"189":6,"190":6,"191":6}}],["data",{"0":{"135":1,"155":1},"2":{"32":4,"46":2,"68":1,"110":2,"135":3,"139":4,"140":4,"155":3,"156":2,"157":2,"187":6}}],["dd",{"2":{"49":1}}],["dcs",{"0":{"24":1},"2":{"24":3}}],["ds",{"0":{"23":1},"2":{"23":3,"167":1}}],["demonstration",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["developer",{"2":{"165":2}}],["description",{"2":{"102":2}}],["default",{"2":{"102":6}}],["defaultvalue",{"0":{"46":1},"2":{"46":2,"169":4}}],["defaultstyles",{"2":{"32":4,"110":6,"139":4,"140":4,"165":2,"178":3}}],["defaultzlevel和zlevel",{"2":{"6":1}}],["deeprequired",{"2":{"11":1}}],["ue900",{"2":{"169":4}}],["unsubscribeaction",{"0":{"157":1}}],["utf",{"2":{"102":2}}],["utils",{"0":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1},"1":{"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1},"2":{"7":1,"10":2,"177":1}}],["usdt",{"2":{"196":3}}],["us和zh",{"2":{"104":1}}],["useeffect",{"2":{"102":8}}],["us",{"2":{"23":1,"25":1,"104":1,"186":2}}],["up",{"2":{"169":2,"184":4}}],["upcolor",{"2":{"140":4,"169":10,"189":20}}],["updatedata",{"0":{"135":1},"2":{"185":8}}],["upwickcolor",{"2":{"10":1,"169":2,"189":4}}],["upbordercolor",{"2":{"10":1,"169":2,"189":4}}],["america",{"2":{"190":2}}],["actual",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["activeradius",{"2":{"169":2}}],["activebordersize",{"2":{"169":2}}],["activebordercolor",{"2":{"169":2}}],["activebackgroundcolor",{"2":{"169":6}}],["activecolor",{"2":{"169":2}}],["according",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["adjustments",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["addeventlistener",{"2":{"182":4,"184":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":8}}],["add",{"2":{"101":2}}],["addshapetemplate",{"2":{"16":1,"175":1}}],["addshapetemplate变更为registeroverlay",{"2":{"16":1}}],["addtechnicalindicatortemplate",{"2":{"16":1,"175":1}}],["addtechnicalindicatortemplate变更为registerindicator",{"2":{"16":1}}],["assisting",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["asia",{"2":{"23":1,"120":1,"190":2}}],["axis",{"2":{"182":3}}],["axisline",{"2":{"169":4}}],["axisoptions",{"2":{"7":1,"139":5,"154":5}}],["auto",{"2":{"169":4}}],["ao",{"2":{"108":1}}],["afterviewinit",{"2":{"102":4}}],["absoluteyaxis变更为finder",{"2":{"176":1}}],["absolute",{"2":{"158":3,"159":3,"176":1}}],["abs",{"2":{"99":4,"166":4,"188":4}}],["avp",{"2":{"68":2,"108":1}}],["alphagreen",{"2":{"189":14}}],["alphared",{"2":{"189":14}}],["alphabetic",{"2":{"60":2,"66":2}}],["all",{"2":{"184":4}}],["always",{"2":{"169":8,"191":4}}],["align",{"2":{"60":3,"66":3,"93":2,"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["area",{"2":{"75":2,"169":4,"184":4}}],["arc",{"0":{"55":1,"61":1,"88":1},"2":{"55":3,"61":3,"86":2,"87":1,"169":2}}],["array",{"2":{"32":6,"34":8,"54":2,"57":2,"58":2,"62":2,"63":2,"64":4,"65":2,"90":2,"91":2,"110":10,"133":2,"134":2,"136":2,"139":6,"140":6,"143":6,"145":2,"158":4,"159":4,"165":8}}],["a",{"2":{"46":2,"169":4}}],["and",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":6,"190":2,"191":2}}],["animationduration",{"0":{"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1},"2":{"147":3,"148":3,"149":3,"150":3,"151":3,"152":3,"153":3}}],["angular",{"2":{"102":2}}],["any",{"2":{"29":4,"32":6,"34":38,"38":4,"40":2,"41":2,"42":2,"43":2,"44":2,"45":2,"46":6,"60":2,"66":2,"93":2,"96":6,"110":16,"139":6,"140":6,"143":4,"145":2,"155":2,"156":2,"157":2,"165":14}}],["annotation",{"2":{"16":1,"172":1,"173":1,"176":1}}],["attrs",{"2":{"29":4,"32":4,"34":12,"66":1,"86":4,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"96":4,"99":8,"110":2,"165":4,"166":2,"188":2}}],["apache",{"2":{"192":1}}],["appendchild",{"2":{"182":5,"184":4,"186":4,"187":10,"188":4,"189":4,"190":4,"191":16}}],["app",{"2":{"102":2}}],["applymoredata",{"0":{"134":1},"2":{"68":1,"185":2}}],["applymoredata和updatedata新增成功回调入参callback",{"2":{"10":1}}],["applynewdata",{"0":{"133":1},"2":{"11":1,"68":1,"102":14,"182":1,"183":2,"184":2,"185":4,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["api调整",{"0":{"174":1},"1":{"175":1,"176":1,"177":1}}],["api",{"2":{"16":3,"68":1}}],["omni",{"2":{"196":1}}],["outline",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["outside",{"2":{"182":1}}],["of",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["offsetright",{"2":{"169":2}}],["offsettop",{"2":{"169":2}}],["offsetleft",{"2":{"169":2}}],["offset",{"2":{"169":4}}],["offsetbottom",{"2":{"10":1,"169":2}}],["ohlc",{"2":{"169":4,"184":4,"189":4}}],["org",{"2":{"165":2}}],["obv",{"2":{"108":1}}],["objects",{"2":{"165":2}}],["object",{"2":{"23":2,"28":2,"29":4,"32":36,"34":40,"39":4,"117":2,"118":2,"139":24,"140":24,"141":2,"142":2,"143":60,"144":2,"145":30}}],["o",{"2":{"46":2}}],["only",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["onload",{"2":{"102":2}}],["onpanedrag",{"2":{"156":3,"157":3}}],["onpressedmoveend",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onpressedmovestart",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onpressedmoving",{"2":{"34":3,"143":6,"145":5,"165":2}}],["ontooltipiconclick",{"2":{"156":3,"157":3}}],["onvisiblerangechange和onpanedrag",{"2":{"176":1}}],["onvisiblerangechange",{"2":{"156":3,"157":3}}],["onscroll",{"2":{"156":3,"157":3,"176":1}}],["onselected",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onzoom",{"2":{"156":3,"157":3}}],["oncandlebarclick",{"2":{"156":3,"157":3}}],["oncrosshairchange",{"2":{"155":3,"156":3,"157":3,"176":1}}],["oncleanup",{"2":{"102":4}}],["onclick",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onunmounted",{"2":{"102":4}}],["onmount",{"2":{"102":8}}],["onmounted",{"2":{"102":4}}],["onmouseleave",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onmouseenter",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onremoved",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onrightclick",{"2":{"34":3,"143":6,"145":5,"165":2}}],["ondestroy",{"2":{"102":8}}],["ondeselected",{"2":{"34":3,"143":6,"145":5,"165":2}}],["ondoubleclick",{"2":{"34":3,"143":6,"145":5,"165":2}}],["ondrawend",{"2":{"34":3,"143":6,"145":5,"165":2}}],["ondrawing",{"2":{"34":3,"143":6,"145":5,"165":2}}],["ondrawstart",{"2":{"34":3,"143":6,"145":5,"165":2}}],["open",{"2":{"25":2,"68":2,"102":140,"105":2,"133":2,"134":2,"135":2,"136":2,"169":4,"182":3,"183":6,"184":6,"185":6,"186":8,"187":6,"188":6,"189":6,"190":6,"191":6}}],["options新增属性gap",{"2":{"16":1}}],["options",{"0":{"23":1,"154":1},"2":{"7":2,"16":1,"23":3,"106":1,"154":2,"167":1,"176":1,"178":1}}],["overridetechnicalindicator",{"2":{"176":1}}],["override",{"0":{"140":1,"145":1},"2":{"140":3,"145":3,"176":3}}],["overrideindicator",{"0":{"140":1},"2":{"140":2}}],["overrideoverlay",{"0":{"145":1},"2":{"16":1,"145":2}}],["overlayevent",{"2":{"165":28}}],["overlayperformeventparams",{"2":{"165":2}}],["overlaycreatefigurescallback",{"2":{"165":4}}],["overlayconstructor",{"2":{"26":2}}],["overlaystyle",{"2":{"165":4}}],["overlayfigureignoreeventtype",{"2":{"34":12,"165":4}}],["overlayfigure中的attrs类型声明",{"2":{"5":1}}],["overlay",{"0":{"34":1},"2":{"34":3,"165":4,"169":2}}],["overlay新增属性paneid",{"2":{"6":1}}],["overlay新增事件ondoubleclick",{"2":{"5":1}}],["v9",{"0":{"170":1},"1":{"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1}}],["v8",{"0":{"170":1},"1":{"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1}}],["vr",{"2":{"108":1}}],["var",{"2":{"102":2}}],["values",{"2":{"32":2,"110":2,"139":2,"140":2,"173":1,"178":1}}],["value",{"0":{"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"50":1,"139":1,"143":1,"158":1},"2":{"7":1,"23":2,"32":2,"34":2,"40":2,"41":2,"42":2,"43":2,"44":2,"45":2,"47":2,"48":2,"50":2,"110":2,"139":5,"140":2,"143":11,"145":6,"158":8,"159":4,"165":4,"169":14,"176":5,"178":2}}],["viewport",{"2":{"102":2,"178":2}}],["visiblerange",{"2":{"110":4,"178":2,"187":4}}],["visible",{"2":{"32":3,"34":3,"110":2,"139":2,"140":5,"143":6,"145":5,"165":2}}],["vue",{"2":{"102":3}}],["v10之后会删除",{"2":{"67":1,"94":1}}],["version",{"0":{"36":1}}],["verticalstraightline",{"2":{"163":1}}],["verticalsegment",{"2":{"163":1}}],["verticalrayline",{"2":{"163":1}}],["vertical",{"2":{"1":1,"16":1,"169":4}}],["vol",{"2":{"108":1,"187":2,"189":2,"191":2}}],["volumeprecision",{"0":{"119":1},"2":{"74":1,"119":3}}],["volume",{"2":{"25":2,"32":3,"68":2,"102":140,"105":2,"110":2,"119":1,"133":2,"134":2,"135":2,"136":2,"139":2,"140":3,"165":2,"182":3,"183":6,"184":6,"185":8,"186":8,"187":6,"188":6,"189":6,"190":6,"191":6}}],["void",{"2":{"24":2,"25":2,"28":2,"29":4,"32":2,"34":6,"39":2,"61":2,"62":2,"63":2,"64":2,"65":2,"66":2,"96":2,"102":4,"119":2,"120":2,"122":2,"124":2,"126":2,"128":2,"129":2,"130":2,"133":4,"134":4,"135":4,"137":2,"138":4,"139":2,"140":4,"146":2,"147":2,"148":2,"149":2,"150":2,"151":2,"152":2,"153":2,"154":2,"155":4,"156":4,"157":4,"161":2,"165":4}}],["css",{"2":{"182":2,"184":3,"186":1,"187":3,"188":3,"189":3,"190":3,"191":3}}],["cb",{"0":{"138":1},"2":{"138":3}}],["cci",{"2":{"108":1}}],["cn两种语言",{"2":{"104":1}}],["cn",{"2":{"102":2,"165":2,"186":2}}],["cn和en",{"2":{"23":1,"25":1}}],["click",{"2":{"182":4,"184":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":8}}],["cleardata",{"0":{"137":1}}],["classname",{"2":{"182":1,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":4}}],["class",{"2":{"102":2}}],["clone",{"0":{"38":1}}],["closesums",{"2":{"113":10}}],["closepath",{"2":{"99":4}}],["close",{"2":{"25":2,"68":2,"102":140,"105":2,"113":8,"133":2,"134":2,"135":2,"136":2,"169":6,"182":4,"183":8,"184":8,"185":14,"186":10,"187":10,"188":8,"189":8,"190":8,"191":8}}],["cdn",{"2":{"101":2,"102":2}}],["currentstep",{"2":{"165":2}}],["current",{"2":{"110":2}}],["currentcolor",{"2":{"99":4}}],["custom",{"2":{"169":2,"173":1,"187":6,"188":2}}],["customapi",{"2":{"23":3}}],["custom支持字符串模版",{"2":{"5":1}}],["custom新增内置涨跌幅支持",{"2":{"4":1}}],["center",{"2":{"60":2,"66":2,"182":2,"184":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":2}}],["c",{"2":{"46":2}}],["code",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["container",{"2":{"182":6,"184":14,"186":14,"187":14,"188":14,"189":14,"190":14,"191":20}}],["content=",{"2":{"102":8}}],["convertfrompixel",{"0":{"159":1}}],["converttopixel",{"0":{"158":1},"2":{"176":1,"187":4}}],["console",{"2":{"143":28,"145":28}}],["const",{"2":{"86":2,"99":10,"102":12,"113":6,"166":6,"182":19,"183":18,"184":26,"185":24,"186":26,"187":46,"188":32,"189":34,"190":26,"191":40}}],["core",{"2":{"102":2}}],["component",{"2":{"102":4}}],["com",{"2":{"80":2,"192":2}}],["color是颜色",{"2":{"98":1}}],["color",{"2":{"32":4,"60":3,"61":3,"62":3,"63":3,"64":3,"65":3,"66":3,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"98":1,"99":4,"102":2,"110":4,"139":8,"140":10,"143":2,"145":2,"169":76,"178":2,"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["coordinates",{"2":{"57":2,"58":2,"63":2,"64":2,"90":2,"91":2,"165":2,"166":14,"188":14}}],["coordinate2",{"0":{"52":1,"53":1},"2":{"52":2,"53":2}}],["coordinate1",{"0":{"52":1,"53":1},"2":{"52":2,"53":2}}],["coordinate",{"0":{"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"151":1,"159":1},"2":{"29":4,"32":4,"55":3,"56":3,"57":2,"58":2,"59":3,"60":3,"96":2,"99":6,"110":2,"151":3,"159":3,"176":1}}],["child",{"2":{"191":2}}],["chicago",{"2":{"190":4}}],["checkcoordinateontext",{"0":{"60":1}}],["checkcoordinateonrect",{"0":{"59":1}}],["checkcoordinateonpolygon",{"0":{"58":1}}],["checkcoordinateonline",{"0":{"57":1}}],["checkcoordinateoncircle",{"0":{"56":1}}],["checkcoordinateonarc",{"0":{"55":1}}],["checkeventon",{"2":{"29":3,"96":2,"99":2}}],["charset=",{"2":{"102":2}}],["chartcomponent",{"2":{"102":2}}],["chart",{"2":{"23":2,"24":2,"75":1,"102":70,"139":1,"140":1,"143":1,"145":1,"154":1,"182":9,"183":8,"184":10,"185":18,"186":10,"187":12,"188":10,"189":16,"190":10,"191":20}}],["change",{"2":{"17":1,"18":1,"19":1}}],["ctx",{"0":{"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1},"2":{"29":2,"61":3,"62":3,"63":3,"64":3,"65":3,"66":3,"67":2,"86":4,"96":2,"99":42,"110":2,"178":2,"187":8}}],["circle",{"0":{"56":1,"62":1,"89":1},"2":{"56":3,"62":3,"86":2,"87":1,"166":4,"169":2,"188":10}}],["circles",{"2":{"16":1,"140":2,"169":2,"173":1,"189":4}}],["circle变更为indicator",{"2":{"16":1,"173":1}}],["cross",{"2":{"169":4,"191":4}}],["crosshair",{"2":{"16":2,"110":2,"169":2,"178":2}}],["cr",{"2":{"108":1}}],["createelement",{"2":{"182":5,"184":4,"186":4,"187":10,"188":4,"189":4,"190":4,"191":16}}],["createyaxisfigures",{"2":{"34":3,"165":2}}],["createxaxisfigures",{"2":{"34":3,"165":2}}],["createpointfigures",{"2":{"34":3,"165":2,"166":2,"188":2}}],["createtechnicalindicator",{"2":{"176":1}}],["createtooltipdatasource",{"2":{"32":3,"110":2,"139":2,"140":3}}],["createtag",{"2":{"16":1,"176":1}}],["createannotation",{"2":{"16":1,"176":1}}],["createindicator",{"0":{"139":1},"2":{"7":1,"139":2,"187":4,"189":2,"191":4}}],["createoverlay",{"0":{"143":1},"2":{"6":1,"16":1,"143":2,"188":6}}],["callback",{"0":{"133":1,"134":1,"135":1,"139":1,"140":1,"156":1,"157":1},"2":{"133":3,"134":3,"135":3,"139":3,"140":3,"156":3,"157":3,"176":2}}],["calcparms",{"2":{"32":2,"110":2,"139":2,"140":2}}],["calcparamstext",{"2":{"32":2,"110":2,"139":2,"140":2,"178":1}}],["calcparams",{"2":{"32":3,"110":2,"112":3,"113":6,"139":2,"140":5}}],["calc",{"2":{"32":3,"110":2,"113":2,"139":2,"140":5,"187":2}}],["calctextwidth",{"0":{"51":1},"2":{"7":1}}],["canvastextbaseline",{"2":{"93":2}}],["canvastextalign",{"2":{"93":2}}],["canvas",{"2":{"70":2}}],["canvasgradient",{"2":{"62":2,"64":2,"65":2,"93":2}}],["canvasrenderingcontext2d",{"2":{"29":2,"61":2,"62":2,"63":2,"64":2,"65":2,"66":2,"96":2,"110":2}}],["candle",{"2":{"10":6,"16":1,"75":2,"139":1,"140":3,"141":1,"142":1,"143":1,"154":1,"169":12,"173":1,"184":10,"187":2,"189":4,"191":6}}],["↩️",{"2":{"4":1}}],["0xd2c3911654db861e0a2e17415e11a209c1fc3594",{"2":{"196":2}}],["01c5c4",{"2":{"169":2}}],["01",{"2":{"169":2}}],["000000",{"2":{"102":2}}],["02",{"2":{"14":1,"15":1,"16":1,"102":14}}],["03",{"2":{"13":1}}],["04",{"2":{"8":1,"9":1,"10":1,"11":1,"12":1}}],["05",{"2":{"6":1,"7":1,"8":1}}],["06",{"2":{"5":1,"102":14}}],["0",{"0":{"5":1,"6":1,"7":1,"10":1,"14":1,"15":1,"16":2},"2":{"113":2,"139":4,"143":2,"145":2,"154":4,"166":6,"169":54,"182":3,"183":6,"184":6,"185":6,"186":6,"187":6,"188":12,"189":6,"190":6,"191":8,"192":1}}],["08",{"2":{"4":1}}],["09",{"2":{"1":1,"2":1,"3":1,"102":14}}],["优化事件处理",{"2":{"14":1}}],["优化渲染更新",{"2":{"13":1}}],["优化覆盖物图形事件忽略",{"2":{"12":1}}],["优化覆盖物事件回调参数",{"2":{"11":1}}],["优化面积图显示",{"2":{"11":1}}],["优化开发环境下",{"2":{"10":1}}],["优化api",{"2":{"10":1}}],["优化typescript覆盖物样式类型",{"2":{"11":1}}],["优化typescript声明",{"2":{"9":1}}],["优化typescript下",{"2":{"5":1}}],["优化默认样式",{"2":{"9":1}}],["优化类型检查",{"2":{"8":1}}],["优化内部id生成",{"2":{"7":1}}],["优化内部获取屏幕像素比",{"2":{"7":1}}],["优化内置覆盖物simpleannotation和simpletag",{"2":{"3":1}}],["优化bar宽度比例",{"2":{"7":1}}],["优化蜡烛柱显示",{"2":{"6":1}}],["优化分割线事件响应灵敏度",{"2":{"5":1}}],["优化移动端阻尼滚动掉帧问题",{"2":{"5":1}}],["优化基础图形rect事件响应",{"2":{"4":1}}],["优化基础图形text",{"2":{"3":1}}],["优化技术指标自由样式",{"2":{"3":1}}],["1b1b1f",{"2":{"189":2}}],["119",{"2":{"169":8}}],["123css",{"2":{"184":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1}}],["12345678910111213141516171819202122",{"2":{"191":1}}],["123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051html",{"2":{"190":1}}],["123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126html",{"2":{"191":1}}],["123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150html",{"2":{"189":1}}],["123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107html",{"2":{"187":1}}],["1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677html",{"2":{"188":1}}],["123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960html",{"2":{"186":1}}],["1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556html",{"2":{"184":1}}],["12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849html",{"2":{"185":1}}],["12345678910111213141516171819202122232425262728html",{"2":{"183":1}}],["123456789101112131415161718",{"2":{"182":1,"184":1,"186":1,"187":1,"188":1,"189":1,"190":1}}],["12px",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["12",{"2":{"102":14,"108":9,"169":24}}],["16px",{"2":{"187":2}}],["1677ff",{"2":{"169":22,"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["16098",{"2":{"143":2,"145":2}}],["1614171202000",{"2":{"143":2,"145":2}}],["1614171282000",{"2":{"143":2,"145":2}}],["16",{"2":{"16":1,"102":14}}],["17",{"2":{"15":1,"187":2}}],["10px",{"2":{"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["1000",{"2":{"182":4,"183":8,"184":8,"185":8,"186":8,"187":8,"188":8,"189":8,"190":8,"191":8}}],["1000000转换为1m等",{"2":{"23":1,"32":1,"48":1,"140":1}}],["100",{"2":{"139":2,"154":2,"182":1,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["105",{"2":{"102":14}}],["10",{"2":{"12":1,"108":7,"112":2,"113":2,"169":12,"182":1,"183":2,"184":2,"185":6,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["135",{"2":{"102":14}}],["13",{"2":{"7":1,"108":1}}],["150",{"2":{"169":12}}],["1587660540000",{"2":{"102":14}}],["1587660480000",{"2":{"102":14}}],["1587660420000",{"2":{"102":14}}],["1587660360000",{"2":{"102":14}}],["1587660300000",{"2":{"102":14}}],["1587660240000",{"2":{"102":14}}],["1587660180000",{"2":{"102":14}}],["1587660120000",{"2":{"102":14}}],["1587660060000",{"2":{"102":14}}],["1587660000000",{"2":{"102":14}}],["15",{"2":{"5":1,"11":1,"169":2}}],["142",{"2":{"169":6,"189":2}}],["14",{"2":{"4":1,"13":1,"102":14,"108":3}}],["1",{"0":{"4":1,"9":1,"11":1,"12":1,"13":2,"14":1,"15":1},"2":{"46":1,"99":2,"113":6,"139":4,"140":6,"143":2,"145":2,"154":4,"166":4,"169":74,"183":1,"185":3,"188":4,"189":8}}],["18987",{"2":{"143":2,"145":2}}],["184",{"2":{"102":14}}],["18",{"2":{"3":1}}],["192",{"2":{"169":6,"189":2}}],["191",{"2":{"102":14}}],["197",{"2":{"102":14}}],["194",{"2":{"102":14}}],["19",{"2":{"2":1,"102":14}}],["修复内置基础图形arc不生效问题",{"2":{"13":1}}],["修复内置基础图形line触发事件不准确问题",{"2":{"12":1}}],["修复内置覆盖物simpleannotation和simpletag绘制完成后第一次触发事件问题",{"2":{"12":1}}],["修复无数据时y轴上十字光标文字不显示问题",{"2":{"11":1}}],["修复图表api",{"2":{"11":1}}],["修复基础图形line事件检查可能导致错误问题",{"2":{"8":1}}],["修复窗口id命名拼写错误",{"2":{"5":1}}],["修复typescript引入问题",{"2":{"15":1}}],["修复typescript声明问题",{"2":{"3":1}}],["修复ts下引入问题",{"2":{"2":1}}],["修复样式crosshair",{"2":{"1":1}}],["修复样式candle",{"2":{"1":1}}],["3dsxsbtbmwxumaaqmysvpgedbp9rghpnfq",{"2":{"196":1}}],["30",{"2":{"102":14,"108":3,"139":2,"182":1,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["35",{"2":{"102":14,"169":4}}],["31",{"2":{"102":14}}],["34",{"2":{"102":14,"108":1}}],["33",{"2":{"102":14,"169":12}}],["39",{"2":{"32":12,"34":12,"60":44,"61":8,"62":20,"63":8,"64":20,"65":20,"66":64,"68":8,"75":4,"86":8,"88":8,"89":20,"90":8,"91":20,"92":20,"93":20,"99":40,"102":100,"105":28,"110":20,"112":40,"113":36,"115":12,"116":12,"139":60,"140":108,"143":52,"145":40,"154":4,"155":4,"156":28,"157":28,"165":24,"166":20,"169":1044,"183":8,"184":80,"185":8,"186":84,"187":180,"188":64,"189":164,"190":56,"191":132}}],["3",{"0":{"2":1,"7":1,"11":1},"2":{"108":3,"154":2,"166":2,"169":6,"182":3,"183":6,"184":6,"185":6,"186":6,"187":6,"188":8,"189":6,"190":6,"191":6}}],["trc20",{"2":{"196":1}}],["transparent",{"2":{"169":4}}],["true",{"2":{"139":4,"140":4,"143":2,"145":2,"154":4,"169":54,"182":2,"185":4,"187":2,"188":6}}],["trix",{"2":{"108":1}}],["thjptqmfgavm12ke1jzc5mlxiapp6qxmci",{"2":{"196":1}}],["the",{"2":{"182":4,"184":8,"186":8,"187":8,"188":8,"189":8,"190":8,"191":8}}],["theme",{"2":{"102":2,"189":8}}],["thousandsseparator",{"2":{"23":3,"165":2}}],["tsimport",{"2":{"102":1}}],["t",{"2":{"81":1}}],["turnover",{"2":{"68":2,"133":2,"134":2,"135":2,"136":2,"182":2,"183":4,"184":4,"185":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["targetcoordinate",{"0":{"53":1,"54":1},"2":{"53":2,"54":2}}],["target",{"0":{"38":1,"39":1},"2":{"38":2,"39":2}}],["tagid",{"2":{"176":1}}],["tag合并成overlay",{"2":{"172":1}}],["tag",{"2":{"16":1,"173":1,"176":1}}],["tofixed",{"2":{"182":4,"183":8,"184":8,"185":8,"186":8,"187":8,"188":8,"189":8,"190":8,"191":8}}],["to",{"2":{"110":4,"132":2,"182":1,"184":2,"186":2,"187":6,"188":2,"189":2,"190":2,"191":2}}],["top",{"2":{"60":2,"66":2,"110":4,"116":2,"139":5,"154":5,"165":2,"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":4}}],["totalstep",{"2":{"34":3,"165":2,"166":2,"188":2}}],["tooltip",{"2":{"4":1,"5":1,"10":2,"16":2,"169":4,"173":3,"191":8}}],["tip",{"2":{"191":4}}],["tickline",{"2":{"169":4}}],["ticktext",{"2":{"16":8,"169":4,"173":8}}],["title和value可以是字符串或者对象",{"2":{"169":2}}],["title",{"2":{"32":6,"102":4,"110":4,"112":4,"113":6,"139":6,"140":6,"169":12,"178":2}}],["time",{"2":{"25":2,"105":2,"169":4,"186":2}}],["timestamp为第一条数据的时间戳",{"2":{"138":1}}],["timestamp",{"0":{"49":1,"150":1,"153":1},"2":{"23":2,"34":2,"49":2,"68":2,"102":140,"133":2,"134":2,"135":2,"136":2,"138":2,"143":8,"145":6,"150":3,"153":3,"158":5,"159":4,"165":4,"182":5,"183":10,"184":10,"185":14,"186":10,"187":10,"188":10,"189":10,"190":10,"191":10}}],["timezone",{"0":{"120":1},"2":{"23":3,"120":3,"190":4}}],["template",{"2":{"102":6,"175":4}}],["telegram",{"0":{"81":1}}],["technicalindicator",{"2":{"16":4,"173":3,"178":1}}],["textalign",{"2":{"187":2}}],["textweight",{"2":{"169":4}}],["textfamily",{"2":{"169":4}}],["textsize",{"2":{"169":4}}],["textoffset",{"2":{"169":4}}],["text",{"0":{"51":1,"60":1,"66":1,"93":1},"2":{"1":1,"16":4,"32":4,"51":2,"60":6,"66":5,"67":2,"87":1,"93":2,"101":2,"102":2,"110":4,"139":4,"140":4,"169":20,"182":17,"184":16,"186":10,"187":4,"188":8,"189":12,"190":10,"191":26}}],["types",{"2":{"182":2,"191":6}}],["typescript开发",{"2":{"181":1}}],["typescriptklinecharts",{"2":{"105":1}}],["typescriptnew",{"2":{"88":1,"89":1,"90":1,"91":1,"92":1,"93":1}}],["typescript",{"2":{"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"68":1,"96":1,"110":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"154":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"165":1}}],["typescript重构",{"2":{"16":1}}],["type对应的图形的样式",{"2":{"165":2}}],["type对应的图形的属性",{"2":{"165":2}}],["type=",{"2":{"101":2,"102":2}}],["type",{"0":{"155":1,"156":1,"157":1,"160":1},"2":{"23":2,"32":4,"34":12,"75":2,"110":2,"112":4,"113":6,"139":4,"140":4,"155":3,"156":3,"157":3,"160":3,"165":4,"166":2,"169":4,"176":2,"182":2,"184":4,"188":2}}],["type是area时",{"2":{"1":1}}],["🛡",{"2":{"181":1}}],["📱",{"2":{"181":1}}],["💪",{"2":{"181":1}}],["📦",{"2":{"181":1}}],["📃",{"0":{"179":1},"1":{"180":1,"181":1}}],["🚀",{"0":{"100":1},"1":{"101":1,"102":1},"2":{"181":1}}],["💬",{"0":{"79":1},"1":{"80":1,"81":1,"82":1,"83":1,"84":1}}],["🙋",{"0":{"72":1},"1":{"73":1,"74":1,"75":1,"76":1,"77":1,"78":1}}],["📚",{"0":{"68":1}}],["🗑",{"2":{"16":1}}],["👉",{"2":{"16":1}}],["🛠️",{"0":{"170":1},"1":{"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1}}],["🛠",{"2":{"16":1}}],["💄",{"2":{"3":3,"4":1,"5":2,"6":1,"7":3,"8":1,"9":2,"10":2,"11":3,"12":1,"13":1,"14":1}}],["🐞",{"2":{"1":2,"2":1,"3":1,"5":2,"8":1,"11":2,"12":2,"13":1,"15":1}}],["📠",{"0":{"0":1},"1":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1}}],["2px",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["2196f3",{"2":{"169":4}}],["26a69a",{"2":{"140":4}}],["26a69a变更为",{"2":{"9":1}}],["26",{"2":{"108":3}}],["28",{"2":{"102":42}}],["2000",{"2":{"185":2}}],["20",{"2":{"102":42,"108":6,"140":2,"185":2}}],["204",{"2":{"102":14}}],["2023",{"2":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1}}],["230",{"2":{"169":6}}],["23",{"2":{"14":1}}],["249",{"2":{"169":6,"189":2}}],["243",{"2":{"169":12}}],["2432435",{"2":{"140":2}}],["24",{"2":{"10":1,"108":4}}],["2dc08e",{"2":{"9":1,"169":8,"189":2}}],["27",{"2":{"9":1}}],["255",{"2":{"169":8}}],["25",{"2":{"6":1,"169":4}}],["2",{"0":{"3":1,"8":2,"9":1,"10":1,"12":1},"2":{"99":22,"108":3,"139":2,"140":12,"143":6,"145":6,"154":2,"166":2,"169":104,"182":4,"183":8,"184":8,"185":8,"186":8,"187":8,"188":10,"189":24,"190":8,"191":8,"192":1}}],["22px",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["22",{"2":{"1":1,"169":8}}],["4px",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["430px",{"2":{"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["45",{"2":{"169":6,"189":2}}],["40",{"2":{"108":1,"169":6,"189":2}}],["42",{"2":{"102":14}}],["4986",{"2":{"102":14}}],["4980",{"2":{"102":14}}],["4988",{"2":{"102":14}}],["4985",{"2":{"102":14}}],["4981",{"2":{"102":28}}],["4964",{"2":{"102":42}}],["4961",{"2":{"102":70}}],["4963",{"2":{"102":14}}],["4962",{"2":{"102":14}}],["4968",{"2":{"102":28}}],["4966",{"2":{"102":28}}],["4975",{"2":{"102":14}}],["4974",{"2":{"102":14}}],["4973",{"2":{"102":28}}],["4971",{"2":{"102":14}}],["4979",{"2":{"102":42}}],["4972",{"2":{"102":42}}],["4970",{"2":{"102":14}}],["4977",{"2":{"102":84}}],["4976",{"2":{"102":28}}],["4",{"0":{"1":1,"6":1,"21":1},"2":{"21":1,"140":2,"169":62,"182":2,"183":4,"184":4,"185":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["5000",{"2":{"182":1,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["50",{"2":{"108":1}}],["55",{"2":{"102":14}}],["56",{"2":{"102":14}}],["53",{"2":{"102":28}}],["5",{"0":{"1":1,"2":1,"3":1,"4":1,"5":1,"20":1},"2":{"20":1,"108":3,"112":2,"113":2,"140":4,"169":8}}],["96",{"2":{"102":14}}],["935ebd",{"2":{"169":2}}],["93",{"2":{"102":42}}],["94",{"2":{"102":14}}],["99",{"2":{"102":28}}],["9",{"0":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1},"2":{"108":3,"170":1}}]],"serializationVersion":2}';export{t as default}; diff --git a/assets/chunks/@localSearchIndexroot.986d36be.js b/assets/chunks/@localSearchIndexroot.986d36be.js new file mode 100644 index 000000000..06705c240 --- /dev/null +++ b/assets/chunks/@localSearchIndexroot.986d36be.js @@ -0,0 +1 @@ +const t='{"documentCount":197,"nextId":197,"documentIds":{"0":"/guide/changelog.html#📠-更新日志","1":"/guide/changelog.html#_9-5-4","2":"/guide/changelog.html#_9-5-3","3":"/guide/changelog.html#_9-5-2","4":"/guide/changelog.html#_9-5-1","5":"/guide/changelog.html#_9-5-0","6":"/guide/changelog.html#_9-4-0","7":"/guide/changelog.html#_9-3-0","8":"/guide/changelog.html#_9-2-2","9":"/guide/changelog.html#_9-2-1","10":"/guide/changelog.html#_9-2-0","11":"/guide/changelog.html#_9-1-3","12":"/guide/changelog.html#_9-1-2","13":"/guide/changelog.html#_9-1-1","14":"/guide/changelog.html#_9-1-0","15":"/guide/changelog.html#_9-0-1","16":"/guide/changelog.html#_9-0-0","17":"/guide/changelog.html#_8-x","18":"/guide/changelog.html#_7-x","19":"/guide/changelog.html#_6-x","20":"/guide/changelog.html#_5-x","21":"/guide/changelog.html#_4-x","22":"/guide/chart-api.html#图表api","23":"/guide/chart-api.html#init-ds-options","24":"/guide/chart-api.html#dispose-dcs","25":"/guide/chart-api.html#registerlocale-locale-locales","26":"/guide/chart-api.html#getoverlayclass","27":"/guide/chart-api.html#getsupportedlocales","28":"/guide/chart-api.html#registerstyles-name-styles","29":"/guide/chart-api.html#registerfigure-figure","30":"/guide/chart-api.html#getsupportedfigures","31":"/guide/chart-api.html#getfigureclass-name","32":"/guide/chart-api.html#registerindicator-indicator","33":"/guide/chart-api.html#getsupportedindicators","34":"/guide/chart-api.html#registeroverlay-overlay","35":"/guide/chart-api.html#getsupportedoverlays","36":"/guide/chart-api.html#version","37":"/guide/chart-api.html#utils","38":"/guide/chart-api.html#utils-clone-target","39":"/guide/chart-api.html#utils-merge-target-source","40":"/guide/chart-api.html#utils-isstring-value","41":"/guide/chart-api.html#utils-isnumber-value","42":"/guide/chart-api.html#utils-isvalid-value","43":"/guide/chart-api.html#utils-isobject-value","44":"/guide/chart-api.html#utils-isfunction-value","45":"/guide/chart-api.html#utils-isboolean-value","46":"/guide/chart-api.html#utils-formatvalue-value-key-defaultvalue","47":"/guide/chart-api.html#utils-formatprecision-value","48":"/guide/chart-api.html#utils-formatbignumber-value","49":"/guide/chart-api.html#utils-formatdate-datetimeformat-timestamp-format","50":"/guide/chart-api.html#utils-formatthousands-value-sign","51":"/guide/chart-api.html#utils-calctextwidth-text-size-weight-family","52":"/guide/chart-api.html#utils-getlinearslopeintercept-coordinate1-coordinate2","53":"/guide/chart-api.html#utils-getlinearyfromcoordinates-coordinate1-coordinate2-targetcoordinate","54":"/guide/chart-api.html#utils-getlinearyfromslopeintercept-kb-targetcoordinate","55":"/guide/chart-api.html#utils-checkcoordinateonarc-coordinate-arc","56":"/guide/chart-api.html#utils-checkcoordinateoncircle-coordinate-circle","57":"/guide/chart-api.html#utils-checkcoordinateonline-coordinate-line","58":"/guide/chart-api.html#utils-checkcoordinateonpolygon-coordinate-polygon","59":"/guide/chart-api.html#utils-checkcoordinateonrect-coordinate-rect","60":"/guide/chart-api.html#utils-checkcoordinateontext-coordinate-text-styles","61":"/guide/chart-api.html#utils-drawarc-ctx-arc-styles","62":"/guide/chart-api.html#utils-drawcircle-ctx-circle-styles","63":"/guide/chart-api.html#utils-drawline-ctx-line-styles","64":"/guide/chart-api.html#utils-drawpolygon-ctx-polygon-styles","65":"/guide/chart-api.html#utils-drawrect-ctx-rect-styles","66":"/guide/chart-api.html#utils-drawtext-ctx-text-styles","67":"/guide/chart-api.html#utils-drawrecttext-ctx-recttext-styles","68":"/guide/datasource.html#📚-数据","69":"/guide/environment.html#🏝️-环境要求","70":"/guide/environment.html#浏览器支持","71":"/guide/environment.html#兼容处理","72":"/guide/faq.html#🙋-常见问题","73":"/guide/faq.html#初始化图表后-只能看到一条线-是怎么回事","74":"/guide/faq.html#蜡烛柱显示趋近于一条线-看不到波动-怎么办","75":"/guide/faq.html#分时图怎么创建","76":"/guide/faq.html#内置的技术指标-计算出来的数据不是想要的-怎么办","77":"/guide/faq.html#想创建一个内置技术指标之外的指标-怎么办","78":"/guide/faq.html#想标记一下买卖点-该怎么做","79":"/guide/feedback.html#💬-反馈和共建","80":"/guide/feedback.html#github","81":"/guide/feedback.html#telegram","82":"/guide/feedback.html#discord","83":"/guide/feedback.html#微信讨论群","84":"/guide/feedback.html#qq讨论群","85":"/guide/figure.html#基础图形","86":"/guide/figure.html#使用示例","87":"/guide/figure.html#内置基础图形","88":"/guide/figure.html#arc","89":"/guide/figure.html#circle","90":"/guide/figure.html#line","91":"/guide/figure.html#polygon","92":"/guide/figure.html#rect","93":"/guide/figure.html#text","94":"/guide/figure.html#recttext","95":"/guide/figure.html#自定义基础图形","96":"/guide/figure.html#属性说明","97":"/guide/figure.html#示例","98":"/guide/figure.html#步骤一","99":"/guide/figure.html#步骤二","100":"/guide/getting-started.html#🚀-快速开始","101":"/guide/getting-started.html#获取klinechart","102":"/guide/getting-started.html#创建第一个图表","103":"/guide/hot-key.html#⌨️-快捷键","104":"/guide/i18n.html#🌏-国际化","105":"/guide/i18n.html#增加语言包","106":"/guide/i18n.html#使用语言包","107":"/guide/indicator.html#技术指标","108":"/guide/indicator.html#内置技术指标","109":"/guide/indicator.html#自定义技术指标","110":"/guide/indicator.html#属性说明","111":"/guide/indicator.html#示例","112":"/guide/indicator.html#步骤一","113":"/guide/indicator.html#步骤二","114":"/guide/instance-api.html#实例api","115":"/guide/instance-api.html#getdom-paneid-position","116":"/guide/instance-api.html#getsize-paneid-position","117":"/guide/instance-api.html#setstyles-styles","118":"/guide/instance-api.html#getstyles","119":"/guide/instance-api.html#setpricevolumeprecision-priceprecision-volumeprecision","120":"/guide/instance-api.html#settimezone-timezone","121":"/guide/instance-api.html#gettimezone","122":"/guide/instance-api.html#setzoomenabled-enabled","123":"/guide/instance-api.html#iszoomenabled","124":"/guide/instance-api.html#setscrollenabled-enabled","125":"/guide/instance-api.html#isscrollenabled","126":"/guide/instance-api.html#setoffsetrightdistance-distance","127":"/guide/instance-api.html#getoffsetrightdistance","128":"/guide/instance-api.html#setleftminvisiblebarcount-barcount","129":"/guide/instance-api.html#setrightminvisiblebarcount-barcount","130":"/guide/instance-api.html#setbarspace-space","131":"/guide/instance-api.html#getbarspace","132":"/guide/instance-api.html#getvisiblerange","133":"/guide/instance-api.html#applynewdata-datalist-more-callback","134":"/guide/instance-api.html#applymoredata-datalist-more-callback","135":"/guide/instance-api.html#updatedata-data-callback","136":"/guide/instance-api.html#getdatalist","137":"/guide/instance-api.html#cleardata","138":"/guide/instance-api.html#loadmore-cb","139":"/guide/instance-api.html#createindicator-value-isstack-paneoptions-callback","140":"/guide/instance-api.html#overrideindicator-override-paneid-callback","141":"/guide/instance-api.html#getindicatorbypaneid-paneid-name","142":"/guide/instance-api.html#removeindicator-paneid-name","143":"/guide/instance-api.html#createoverlay-value-paneid","144":"/guide/instance-api.html#getoverlaybyid-id","145":"/guide/instance-api.html#overrideoverlay-override","146":"/guide/instance-api.html#removeoverlay-remove","147":"/guide/instance-api.html#scrollbydistance-distance-animationduration","148":"/guide/instance-api.html#scrolltorealtime-animationduration","149":"/guide/instance-api.html#scrolltodataindex-dataindex-animationduration","150":"/guide/instance-api.html#scrolltotimestamp-timestamp-animationduration","151":"/guide/instance-api.html#zoomatcoordinate-scale-coordinate-animationduration","152":"/guide/instance-api.html#zoomatdataindex-scale-dataindex-animationduration","153":"/guide/instance-api.html#zoomattimestamp-scale-timestamp-animationduration","154":"/guide/instance-api.html#setpaneoptions-options","155":"/guide/instance-api.html#executeaction-type-data","156":"/guide/instance-api.html#subscribeaction-type-callback","157":"/guide/instance-api.html#unsubscribeaction-type-callback","158":"/guide/instance-api.html#converttopixel-value-finder","159":"/guide/instance-api.html#convertfrompixel-coordinate-finder","160":"/guide/instance-api.html#getconvertpictureurl-includeoverlay-type-backgroundcolor","161":"/guide/instance-api.html#resize","162":"/guide/overlay.html#覆盖物","163":"/guide/overlay.html#内置覆盖物类型","164":"/guide/overlay.html#自定义覆盖物","165":"/guide/overlay.html#属性说明","166":"/guide/overlay.html#示例","167":"/guide/styles.html#🎨-样式配置","168":"/guide/styles.html#图解说明","169":"/guide/styles.html#默认完整配置","170":"/guide/v8-to-v9.html#🛠️-从-v8-到-v9","171":"/guide/v8-to-v9.html#引入调整","172":"/guide/v8-to-v9.html#设计调整","173":"/guide/v8-to-v9.html#样式配置调整","174":"/guide/v8-to-v9.html#api调整","175":"/guide/v8-to-v9.html#图表api","176":"/guide/v8-to-v9.html#实例api","177":"/guide/v8-to-v9.html#图形辅助api","178":"/guide/v8-to-v9.html#自定义技术指标调整","179":"/guide/what-is-klinechart.html#📃-介绍","180":"/guide/what-is-klinechart.html#什么是-klinechart","181":"/guide/what-is-klinechart.html#特性","182":"/sample/axis.html#坐标轴","183":"/sample/basic.html#基础展示","184":"/sample/candle-type.html#蜡烛类型","185":"/sample/data.html#数据加载","186":"/sample/i18n.html#多语言","187":"/sample/indicator.html#技术指标","188":"/sample/overlay.html#覆盖物","189":"/sample/theme.html#主题","190":"/sample/timezone.html#时区","191":"/sample/tooltip.html#提示条","192":"/sponsor.html#❤️-赞助","193":"/sponsor.html#赞助渠道","194":"/sponsor.html#支付宝","195":"/sponsor.html#微信支付","196":"/sponsor.html#加密货币"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[2,1,1],"1":[3,2,12],"2":[3,2,6],"3":[3,2,11],"4":[3,2,13],"5":[3,2,17],"6":[3,2,13],"7":[3,2,21],"8":[2,2,8],"9":[3,2,11],"10":[3,2,31],"11":[3,2,16],"12":[3,2,10],"13":[2,2,8],"14":[3,2,9],"15":[3,2,6],"16":[2,2,117],"17":[2,2,7],"18":[2,2,7],"19":[2,2,7],"20":[2,2,5],"21":[2,2,5],"22":[1,1,1],"23":[4,1,53],"24":[3,1,15],"25":[4,1,20],"26":[2,1,10],"27":[2,1,6],"28":[4,1,14],"29":[3,1,26],"30":[2,1,6],"31":[3,1,9],"32":[3,1,86],"33":[2,1,6],"34":[3,1,104],"35":[2,1,6],"36":[2,1,6],"37":[1,1,2],"38":[4,2,7],"39":[5,2,9],"40":[4,2,8],"41":[4,2,8],"42":[4,2,8],"43":[4,2,8],"44":[4,2,8],"45":[4,2,8],"46":[6,2,19],"47":[4,2,10],"48":[4,2,11],"49":[6,2,20],"50":[5,2,10],"51":[7,2,12],"52":[5,2,15],"53":[6,2,11],"54":[5,2,12],"55":[5,2,21],"56":[5,2,17],"57":[5,2,14],"58":[5,2,14],"59":[5,2,19],"60":[6,2,45],"61":[6,2,37],"62":[6,2,41],"63":[6,2,32],"64":[6,2,38],"65":[6,2,45],"66":[6,2,76],"67":[6,2,10],"68":[2,1,36],"69":[2,1,1],"70":[1,2,11],"71":[1,2,1],"72":[2,1,1],"73":[4,2,3],"74":[4,2,6],"75":[2,2,9],"76":[4,2,2],"77":[3,2,3],"78":[3,2,7],"79":[2,1,1],"80":[1,2,10],"81":[1,2,5],"82":[1,2,5],"83":[1,2,6],"84":[1,2,1],"85":[1,1,10],"86":[1,1,26],"87":[1,1,9],"88":[1,2,34],"89":[1,2,38],"90":[1,2,30],"91":[1,2,38],"92":[1,2,42],"93":[1,2,68],"94":[1,2,5],"95":[1,1,6],"96":[1,2,29],"97":[1,2,2],"98":[1,3,33],"99":[1,3,54],"100":[2,1,1],"101":[1,2,30],"102":[1,2,178],"103":[2,1,10],"104":[2,1,8],"105":[1,2,26],"106":[1,2,8],"107":[1,1,2],"108":[1,1,48],"109":[1,1,6],"110":[1,2,178],"111":[1,2,5],"112":[1,3,30],"113":[1,3,63],"114":[1,1,1],"115":[4,1,18],"116":[4,1,25],"117":[3,1,15],"118":[2,1,7],"119":[4,1,16],"120":[3,1,14],"121":[2,1,6],"122":[3,1,8],"123":[2,1,6],"124":[3,1,8],"125":[2,1,6],"126":[3,1,8],"127":[2,1,6],"128":[3,1,8],"129":[3,1,8],"130":[3,1,8],"131":[2,1,6],"132":[2,1,10],"133":[5,1,28],"134":[5,1,26],"135":[4,1,22],"136":[2,1,16],"137":[2,1,10],"138":[3,1,13],"139":[6,1,107],"140":[5,1,121],"141":[4,1,18],"142":[4,1,18],"143":[4,1,89],"144":[3,1,9],"145":[3,1,117],"146":[3,1,24],"147":[4,1,13],"148":[3,1,12],"149":[4,1,13],"150":[4,1,13],"151":[5,1,19],"152":[5,1,15],"153":[5,1,15],"154":[3,1,47],"155":[4,1,13],"156":[4,1,22],"157":[4,1,23],"158":[4,1,31],"159":[4,1,27],"160":[5,1,21],"161":[2,1,11],"162":[1,1,2],"163":[1,1,16],"164":[1,1,6],"165":[1,2,198],"166":[1,2,47],"167":[2,1,9],"168":[1,2,1],"169":[1,2,221],"170":[5,1,12],"171":[1,5,8],"172":[1,5,5],"173":[1,5,33],"174":[1,5,1],"175":[1,6,9],"176":[1,6,71],"177":[1,6,3],"178":[1,5,39],"179":[2,1,1],"180":[3,2,3],"181":[1,2,24],"182":[1,1,176],"183":[1,1,67],"184":[1,1,154],"185":[1,1,81],"186":[1,1,154],"187":[1,1,204],"188":[1,1,170],"189":[1,1,195],"190":[1,1,145],"191":[1,1,179],"192":[2,1,36],"193":[1,2,1],"194":[1,3,1],"195":[1,3,1],"196":[1,3,11]},"averageFieldLength":[2.6751269035532994,1.6852791878172595,29.49238578680204],"storedFields":{"0":{"title":"📠 更新日志","titles":[]},"1":{"title":"9.5.4","titles":["📠 更新日志"]},"2":{"title":"9.5.3","titles":["📠 更新日志"]},"3":{"title":"9.5.2","titles":["📠 更新日志"]},"4":{"title":"9.5.1","titles":["📠 更新日志"]},"5":{"title":"9.5.0","titles":["📠 更新日志"]},"6":{"title":"9.4.0","titles":["📠 更新日志"]},"7":{"title":"9.3.0","titles":["📠 更新日志"]},"8":{"title":"9.2.2","titles":["📠 更新日志"]},"9":{"title":"9.2.1","titles":["📠 更新日志"]},"10":{"title":"9.2.0","titles":["📠 更新日志"]},"11":{"title":"9.1.3","titles":["📠 更新日志"]},"12":{"title":"9.1.2","titles":["📠 更新日志"]},"13":{"title":"9.1.1","titles":["📠 更新日志"]},"14":{"title":"9.1.0","titles":["📠 更新日志"]},"15":{"title":"9.0.1","titles":["📠 更新日志"]},"16":{"title":"9.0.0","titles":["📠 更新日志"]},"17":{"title":"8.x","titles":["📠 更新日志"]},"18":{"title":"7.x","titles":["📠 更新日志"]},"19":{"title":"6.x","titles":["📠 更新日志"]},"20":{"title":"5.x","titles":["📠 更新日志"]},"21":{"title":"4.x","titles":["📠 更新日志"]},"22":{"title":"图表API","titles":[]},"23":{"title":"init(ds, options)","titles":["图表API"]},"24":{"title":"dispose(dcs)","titles":["图表API"]},"25":{"title":"registerLocale(locale, locales)","titles":["图表API"]},"26":{"title":"getOverlayClass()","titles":["图表API"]},"27":{"title":"getSupportedLocales()","titles":["图表API"]},"28":{"title":"registerStyles(name, styles)","titles":["图表API"]},"29":{"title":"registerFigure(figure)","titles":["图表API"]},"30":{"title":"getSupportedFigures()","titles":["图表API"]},"31":{"title":"getFigureClass(name)","titles":["图表API"]},"32":{"title":"registerIndicator(indicator)","titles":["图表API"]},"33":{"title":"getSupportedIndicators()","titles":["图表API"]},"34":{"title":"registerOverlay(overlay)","titles":["图表API"]},"35":{"title":"getSupportedOverlays()","titles":["图表API"]},"36":{"title":"version()","titles":["图表API"]},"37":{"title":"utils","titles":["图表API"]},"38":{"title":"utils.clone(target)","titles":["图表API","utils"]},"39":{"title":"utils.merge(target, source)","titles":["图表API","utils"]},"40":{"title":"utils.isString(value)","titles":["图表API","utils"]},"41":{"title":"utils.isNumber(value)","titles":["图表API","utils"]},"42":{"title":"utils.isValid(value)","titles":["图表API","utils"]},"43":{"title":"utils.isObject(value)","titles":["图表API","utils"]},"44":{"title":"utils.isFunction(value)","titles":["图表API","utils"]},"45":{"title":"utils.isBoolean(value)","titles":["图表API","utils"]},"46":{"title":"utils.formatValue(value, key, defaultValue)","titles":["图表API","utils"]},"47":{"title":"utils.formatPrecision(value)","titles":["图表API","utils"]},"48":{"title":"utils.formatBigNumber(value)","titles":["图表API","utils"]},"49":{"title":"utils.formatDate(dateTimeFormat, timestamp, format)","titles":["图表API","utils"]},"50":{"title":"utils.formatThousands(value, sign)","titles":["图表API","utils"]},"51":{"title":"utils.calcTextWidth(text, size, weight, family)","titles":["图表API","utils"]},"52":{"title":"utils.getLinearSlopeIntercept(coordinate1, coordinate2)","titles":["图表API","utils"]},"53":{"title":"utils.getLinearYFromCoordinates(coordinate1, coordinate2, targetCoordinate)","titles":["图表API","utils"]},"54":{"title":"utils.getLinearYFromSlopeIntercept(kb, targetCoordinate)","titles":["图表API","utils"]},"55":{"title":"utils.checkCoordinateOnArc(coordinate, arc)","titles":["图表API","utils"]},"56":{"title":"utils.checkCoordinateOnCircle(coordinate, circle)","titles":["图表API","utils"]},"57":{"title":"utils.checkCoordinateOnLine(coordinate, line)","titles":["图表API","utils"]},"58":{"title":"utils.checkCoordinateOnPolygon(coordinate, polygon)","titles":["图表API","utils"]},"59":{"title":"utils.checkCoordinateOnRect(coordinate, rect)","titles":["图表API","utils"]},"60":{"title":"utils.checkCoordinateOnText(coordinate, text, styles)","titles":["图表API","utils"]},"61":{"title":"utils.drawArc(ctx, arc, styles)","titles":["图表API","utils"]},"62":{"title":"utils.drawCircle(ctx, circle, styles)","titles":["图表API","utils"]},"63":{"title":"utils.drawLine(ctx, line, styles)","titles":["图表API","utils"]},"64":{"title":"utils.drawPolygon(ctx, polygon, styles)","titles":["图表API","utils"]},"65":{"title":"utils.drawRect(ctx, rect, styles)","titles":["图表API","utils"]},"66":{"title":"utils.drawText(ctx, text, styles)","titles":["图表API","utils"]},"67":{"title":"utils.drawRectText(ctx, rectText, styles)","titles":["图表API","utils"]},"68":{"title":"📚 数据","titles":[]},"69":{"title":"🏝️ 环境要求","titles":[]},"70":{"title":"浏览器支持","titles":["🏝️ 环境要求"]},"71":{"title":"兼容处理","titles":["🏝️ 环境要求"]},"72":{"title":"🙋 常见问题","titles":[]},"73":{"title":"初始化图表后,只能看到一条线,是怎么回事?","titles":["🙋 常见问题"]},"74":{"title":"蜡烛柱显示趋近于一条线,看不到波动,怎么办?","titles":["🙋 常见问题"]},"75":{"title":"分时图怎么创建?","titles":["🙋 常见问题"]},"76":{"title":"内置的技术指标,计算出来的数据不是想要的,怎么办?","titles":["🙋 常见问题"]},"77":{"title":"想创建一个内置技术指标之外的指标,怎么办?","titles":["🙋 常见问题"]},"78":{"title":"想标记一下买卖点,该怎么做?","titles":["🙋 常见问题"]},"79":{"title":"💬 反馈和共建","titles":[]},"80":{"title":"Github","titles":["💬 反馈和共建"]},"81":{"title":"Telegram","titles":["💬 反馈和共建"]},"82":{"title":"Discord","titles":["💬 反馈和共建"]},"83":{"title":"微信讨论群","titles":["💬 反馈和共建"]},"84":{"title":"QQ讨论群","titles":["💬 反馈和共建"]},"85":{"title":"基础图形","titles":[]},"86":{"title":"使用示例","titles":["基础图形"]},"87":{"title":"内置基础图形","titles":["基础图形"]},"88":{"title":"arc","titles":["基础图形","内置基础图形"]},"89":{"title":"circle","titles":["基础图形","内置基础图形"]},"90":{"title":"line","titles":["基础图形","内置基础图形"]},"91":{"title":"polygon","titles":["基础图形","内置基础图形"]},"92":{"title":"rect","titles":["基础图形","内置基础图形"]},"93":{"title":"text","titles":["基础图形","内置基础图形"]},"94":{"title":"rectText","titles":["基础图形","内置基础图形"]},"95":{"title":"自定义基础图形","titles":["基础图形"]},"96":{"title":"属性说明","titles":["基础图形","自定义基础图形"]},"97":{"title":"示例","titles":["基础图形","自定义基础图形"]},"98":{"title":"步骤一","titles":["基础图形","自定义基础图形","示例"]},"99":{"title":"步骤二","titles":["基础图形","自定义基础图形","示例"]},"100":{"title":"🚀 快速开始","titles":[]},"101":{"title":"获取KLineChart","titles":["🚀 快速开始"]},"102":{"title":"创建第一个图表","titles":["🚀 快速开始"]},"103":{"title":"⌨️ 快捷键","titles":[]},"104":{"title":"🌏 国际化","titles":[]},"105":{"title":"增加语言包","titles":["🌏 国际化"]},"106":{"title":"使用语言包","titles":["🌏 国际化"]},"107":{"title":"技术指标","titles":[]},"108":{"title":"内置技术指标","titles":["技术指标"]},"109":{"title":"自定义技术指标","titles":["技术指标"]},"110":{"title":"属性说明","titles":["技术指标","自定义技术指标"]},"111":{"title":"示例","titles":["技术指标","自定义技术指标"]},"112":{"title":"步骤一","titles":["技术指标","自定义技术指标","示例"]},"113":{"title":"步骤二","titles":["技术指标","自定义技术指标","示例"]},"114":{"title":"实例API","titles":[]},"115":{"title":"getDom(paneId, position)","titles":["实例API"]},"116":{"title":"getSize(paneId, position)","titles":["实例API"]},"117":{"title":"setStyles(styles)","titles":["实例API"]},"118":{"title":"getStyles()","titles":["实例API"]},"119":{"title":"setPriceVolumePrecision(pricePrecision, volumePrecision)","titles":["实例API"]},"120":{"title":"setTimezone(timezone)","titles":["实例API"]},"121":{"title":"getTimezone()","titles":["实例API"]},"122":{"title":"setZoomEnabled(enabled)","titles":["实例API"]},"123":{"title":"isZoomEnabled()","titles":["实例API"]},"124":{"title":"setScrollEnabled(enabled)","titles":["实例API"]},"125":{"title":"isScrollEnabled()","titles":["实例API"]},"126":{"title":"setOffsetRightDistance(distance)","titles":["实例API"]},"127":{"title":"getOffsetRightDistance()","titles":["实例API"]},"128":{"title":"setLeftMinVisibleBarCount(barCount)","titles":["实例API"]},"129":{"title":"setRightMinVisibleBarCount(barCount)","titles":["实例API"]},"130":{"title":"setBarSpace(space)","titles":["实例API"]},"131":{"title":"getBarSpace()","titles":["实例API"]},"132":{"title":"getVisibleRange()","titles":["实例API"]},"133":{"title":"applyNewData(dataList, more, callback)","titles":["实例API"]},"134":{"title":"applyMoreData(dataList, more, callback)","titles":["实例API"]},"135":{"title":"updateData(data, callback)","titles":["实例API"]},"136":{"title":"getDataList()","titles":["实例API"]},"137":{"title":"clearData()","titles":["实例API"]},"138":{"title":"loadMore(cb)","titles":["实例API"]},"139":{"title":"createIndicator(value, isStack, paneOptions, callback)","titles":["实例API"]},"140":{"title":"overrideIndicator(override, paneId, callback)","titles":["实例API"]},"141":{"title":"getIndicatorByPaneId(paneId, name)","titles":["实例API"]},"142":{"title":"removeIndicator(paneId, name)","titles":["实例API"]},"143":{"title":"createOverlay(value, paneId)","titles":["实例API"]},"144":{"title":"getOverlayById(id)","titles":["实例API"]},"145":{"title":"overrideOverlay(override)","titles":["实例API"]},"146":{"title":"removeOverlay(remove)","titles":["实例API"]},"147":{"title":"scrollByDistance(distance, animationDuration)","titles":["实例API"]},"148":{"title":"scrollToRealTime(animationDuration)","titles":["实例API"]},"149":{"title":"scrollToDataIndex(dataIndex, animationDuration)","titles":["实例API"]},"150":{"title":"scrollToTimestamp(timestamp, animationDuration)","titles":["实例API"]},"151":{"title":"zoomAtCoordinate(scale, coordinate, animationDuration)","titles":["实例API"]},"152":{"title":"zoomAtDataIndex(scale, dataIndex, animationDuration)","titles":["实例API"]},"153":{"title":"zoomAtTimestamp(scale, timestamp, animationDuration)","titles":["实例API"]},"154":{"title":"setPaneOptions(options)","titles":["实例API"]},"155":{"title":"executeAction(type, data)","titles":["实例API"]},"156":{"title":"subscribeAction(type, callback)","titles":["实例API"]},"157":{"title":"unsubscribeAction(type, callback)","titles":["实例API"]},"158":{"title":"convertToPixel(value, finder)","titles":["实例API"]},"159":{"title":"convertFromPixel(coordinate, finder)","titles":["实例API"]},"160":{"title":"getConvertPictureUrl(includeOverlay, type, backgroundColor)","titles":["实例API"]},"161":{"title":"resize()","titles":["实例API"]},"162":{"title":"覆盖物","titles":[]},"163":{"title":"内置覆盖物类型","titles":["覆盖物"]},"164":{"title":"自定义覆盖物","titles":["覆盖物"]},"165":{"title":"属性说明","titles":["覆盖物","自定义覆盖物"]},"166":{"title":"示例","titles":["覆盖物","自定义覆盖物"]},"167":{"title":"🎨 样式配置","titles":[]},"168":{"title":"图解说明","titles":["🎨 样式配置"]},"169":{"title":"默认完整配置","titles":["🎨 样式配置"]},"170":{"title":"🛠️ 从 V8 到 V9","titles":[]},"171":{"title":"引入调整","titles":["🛠️ 从 V8 到 V9"]},"172":{"title":"设计调整","titles":["🛠️ 从 V8 到 V9"]},"173":{"title":"样式配置调整","titles":["🛠️ 从 V8 到 V9"]},"174":{"title":"API调整","titles":["🛠️ 从 V8 到 V9"]},"175":{"title":"图表API","titles":["🛠️ 从 V8 到 V9","API调整"]},"176":{"title":"实例API","titles":["🛠️ 从 V8 到 V9","API调整"]},"177":{"title":"图形辅助API","titles":["🛠️ 从 V8 到 V9","API调整"]},"178":{"title":"自定义技术指标调整","titles":["🛠️ 从 V8 到 V9"]},"179":{"title":"📃 介绍","titles":[]},"180":{"title":"什么是 KLineChart?","titles":["📃 介绍"]},"181":{"title":"特性","titles":["📃 介绍"]},"182":{"title":"坐标轴","titles":[]},"183":{"title":"基础展示","titles":[]},"184":{"title":"蜡烛类型","titles":[]},"185":{"title":"数据加载","titles":[]},"186":{"title":"多语言","titles":[]},"187":{"title":"技术指标","titles":[]},"188":{"title":"覆盖物","titles":[]},"189":{"title":"主题","titles":[]},"190":{"title":"时区","titles":[]},"191":{"title":"提示条","titles":[]},"192":{"title":"❤️ 赞助","titles":[]},"193":{"title":"赞助渠道","titles":["❤️ 赞助"]},"194":{"title":"支付宝","titles":["❤️ 赞助","赞助渠道"]},"195":{"title":"微信支付","titles":["❤️ 赞助","赞助渠道"]},"196":{"title":"加密货币","titles":["❤️ 赞助","赞助渠道"]}},"dirtCount":0,"index":[["微信支付",{"0":{"195":1}}],["微信讨论群",{"0":{"83":1}}],["支付宝",{"0":{"194":1}}],["支持移动端",{"2":{"181":1}}],["支持字符串模版",{"2":{"169":2}}],["支持合并",{"2":{"117":1}}],["支持root",{"2":{"115":1,"116":1}}],["支持多种下载方式",{"2":{"101":1}}],["支持嵌套",{"2":{"46":1}}],["支持事件选择",{"2":{"12":1}}],["支持千分符显示",{"2":{"10":1}}],["支持数组",{"2":{"6":1}}],["支持增量",{"2":{"3":1,"23":1,"28":1,"110":2}}],["前三名",{"2":{"192":1}}],["$800",{"2":{"192":1}}],["发送邮件到",{"2":{"192":1}}],["首页",{"2":{"192":1}}],["首先确定计算参数",{"2":{"112":1}}],["那就真的太感谢了",{"2":{"192":1}}],["☕️",{"2":{"192":1}}],["希望你能在",{"2":{"192":1}}],["希望提示的和参数一样",{"2":{"113":2}}],["许可的开源项目",{"2":{"192":1}}],["赞助渠道",{"0":{"193":1},"1":{"194":1,"195":1,"196":1}}],["赞助额达到",{"2":{"192":1}}],["赞助",{"0":{"192":1},"1":{"193":1,"194":1,"195":1,"196":1}}],["❤️",{"0":{"192":1},"1":{"193":1,"194":1,"195":1,"196":1}}],["矩形框",{"2":{"191":2}}],["矩形参数",{"2":{"59":1,"65":1}}],["跟随十字光标",{"2":{"191":2}}],["芝加哥",{"2":{"190":2}}],["柏林",{"2":{"190":2}}],["红涨绿跌",{"2":{"189":2}}],["绿涨红跌",{"2":{"189":2}}],["深色",{"2":{"189":2}}],["深度复制",{"2":{"38":1}}],["浅色",{"2":{"189":2}}],["主页链接等信息",{"2":{"192":1}}],["主题",{"0":{"189":1}}],["主图指标",{"2":{"187":2}}],["主图的窗口id",{"2":{"139":1,"140":1,"141":1,"142":1,"143":1,"154":1}}],["价格线",{"2":{"188":2}}],["价格精度",{"2":{"119":1,"165":2}}],["副图指标",{"2":{"187":2}}],["🥑",{"2":{"187":2}}],["🥭",{"2":{"187":2}}],["🥝",{"2":{"187":2}}],["🥥",{"2":{"187":2}}],["繁体中文",{"2":{"186":2}}],["多语言",{"0":{"186":1}}],["多边形参数",{"2":{"64":1}}],["跌空心",{"2":{"184":2}}],["涨空心",{"2":{"184":2}}],["全空心",{"2":{"184":2}}],["全实心",{"2":{"184":2}}],["全局添加",{"2":{"164":1}}],["反向",{"2":{"182":2}}],["反馈和共建",{"0":{"79":1},"1":{"80":1,"81":1,"82":1,"83":1,"84":1}}],["正向",{"2":{"182":2}}],["百分比轴",{"2":{"182":2}}],["内部",{"2":{"182":2}}],["内置",{"2":{"188":2}}],["内置多种指标和画线模型",{"2":{"181":1}}],["内置覆盖物类型",{"0":{"163":1}}],["内置一些转换方法",{"2":{"110":8,"165":4}}],["内置技术指标",{"0":{"108":1}}],["内置基础图形",{"0":{"87":1},"1":{"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1}}],["内置的右击删除将无效",{"2":{"165":2}}],["内置的覆盖物有一个simpleannotation",{"2":{"78":1}}],["内置的技术指标",{"0":{"76":1}}],["内置支持zh",{"2":{"23":1}}],["外部",{"2":{"182":2}}],["以下仅仅是为了协助代码演示",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["以一个填充带边框的圆来具体说明如何配置",{"2":{"166":1}}],["以一个名为",{"2":{"111":1}}],["以一个可以有边框和背景菱形来具体说明自定义",{"2":{"97":1}}],["提供完整的类型定义文件",{"2":{"181":1}}],["提示条",{"0":{"191":1}}],["提示",{"2":{"169":4}}],["搞定多端",{"2":{"181":1}}],["功能扩展随心所欲",{"2":{"181":1}}],["功能强大",{"2":{"181":1}}],["丰富的样式配置和api",{"2":{"181":1}}],["零依赖",{"2":{"181":1}}],["轻量流畅",{"2":{"181":1}}],["简体中文",{"2":{"186":2}}],["简单快速集成",{"2":{"181":1}}],["简短名字",{"2":{"32":1,"140":1}}],["特性",{"0":{"181":1}}],["特殊的id",{"2":{"139":1,"140":1,"141":1,"142":1,"143":1,"154":1}}],["什么是",{"0":{"180":1}}],["介绍",{"0":{"179":1},"1":{"180":1,"181":1}}],["介绍如何去做自定义技术指标",{"2":{"111":1}}],["方法render",{"2":{"178":1}}],["方法regenerateplots",{"2":{"178":1}}],["方法createtooltipdatasource",{"2":{"178":1}}],["方法calctechnicalindicator",{"2":{"178":1}}],["子项方法color",{"2":{"178":1}}],["合并成一个方法getsize",{"2":{"176":1}}],["合并为candle",{"2":{"173":1}}],["更改为dashed",{"2":{"173":1}}],["更新数据",{"2":{"135":1}}],["更新日志",{"0":{"0":1},"1":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1}}],["设计调整",{"0":{"172":1}}],["设置窗口配置",{"2":{"154":1}}],["设置加载更多回调函数",{"2":{"138":1}}],["设置图表单根蜡烛柱的宽度",{"2":{"130":1}}],["设置图表右边可以空出来的间隙",{"2":{"126":1}}],["设置右边最小可见的蜡烛数量",{"2":{"129":1}}],["设置左边最小可见的蜡烛数量",{"2":{"128":1}}],["设置是否可以拖拽滚动",{"2":{"124":1}}],["设置是否缩放",{"2":{"122":1}}],["设置时区",{"2":{"120":1}}],["设置价格和数量精度",{"2":{"119":1}}],["设置样式配置",{"2":{"117":1}}],["设置下精度",{"2":{"74":1}}],["引入调整",{"0":{"171":1}}],["请提供付款账号或地址",{"2":{"192":1}}],["请通过getdom",{"2":{"176":1}}],["请统一使用import",{"2":{"171":1}}],["请先参考之前的升级文档升级到",{"2":{"170":1}}],["请用overrideoverlay",{"2":{"176":1}}],["请用overlay代替",{"2":{"173":1}}],["请用removeoverlay",{"2":{"176":1}}],["请用registeroverlay",{"2":{"175":1}}],["请用createoverlay",{"2":{"176":1}}],["请用text代替",{"2":{"94":1}}],["请用",{"2":{"70":1}}],["请用utils",{"2":{"67":1}}],["版本",{"2":{"170":1}}],["版本升级到",{"2":{"170":1}}],["本文档将帮助你从",{"2":{"170":1}}],["本文档介绍了图表内置的覆盖物和如何自定义一个覆盖物",{"2":{"162":1}}],["本文档介绍了图表内置的技术指标和如何自定义一个技术指标",{"2":{"107":1}}],["到",{"0":{"170":1},"1":{"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1}}],["配置",{"2":{"169":2}}],["面积图",{"2":{"169":2,"184":2}}],["蜡烛类型",{"0":{"184":1}}],["蜡烛图类型",{"2":{"169":2}}],["蜡烛图",{"2":{"169":2}}],["蜡烛柱",{"2":{"169":2}}],["蜡烛柱不包含蜡烛柱之间间隙的尺寸",{"2":{"110":2,"165":2}}],["蜡烛柱尺寸",{"2":{"110":2,"165":2}}],["蜡烛柱的尺寸信息",{"2":{"110":2,"165":2}}],["蜡烛柱显示趋近于一条线",{"0":{"74":1}}],["网格线",{"2":{"169":2}}],["进行更改",{"2":{"167":1}}],["其它选择使用默认样式",{"2":{"166":2}}],["选择边框且填充",{"2":{"166":2}}],["选中回调事件",{"2":{"165":2}}],["选中事件",{"2":{"34":1,"145":1}}],["确定对应点生成的圆的坐标",{"2":{"166":2}}],["确定其它属性",{"2":{"113":1}}],["完成一个圆的绘制需要三个步骤",{"2":{"166":2}}],["完成语言切换",{"2":{"106":1}}],["双击回调事件",{"2":{"165":2}}],["双击事件",{"2":{"34":1,"145":1}}],["回调参数和`performeventmovefordrawing`一致",{"2":{"165":2}}],["处理按住移动操作",{"2":{"165":2}}],["处理在绘制过程中移动操作",{"2":{"165":2}}],["事件所在点的信息",{"2":{"165":2}}],["事件所在点的索引",{"2":{"165":2}}],["事件的坐标",{"2":{"96":2}}],["中的overlay",{"2":{"165":4}}],["中的indicator",{"2":{"110":8}}],["非必须",{"2":{"165":24}}],["非必须字段",{"2":{"68":4}}],["作为覆盖物创建的唯一标识",{"2":{"165":2}}],["必须字段",{"2":{"165":2}}],["必要字段",{"2":{"68":10,"96":2}}],["名称",{"2":{"165":2,"166":2}}],["名字",{"2":{"29":1,"110":2}}],["频繁调用可能会影响到性能",{"2":{"161":1}}],["此方法会重新计算整个图表各个模块的大小",{"2":{"161":1}}],["此方法会清空图表数据",{"2":{"133":1}}],["总是显示",{"2":{"191":2}}],["总是会填充容器大小",{"2":{"161":1}}],["总共需要多少步操作才行绘制完成",{"2":{"165":2}}],["总的实现步骤",{"2":{"34":1}}],["调整图表大小",{"2":{"161":1}}],["调用请谨慎",{"2":{"161":1}}],["调用createoverlay方法是返回的标识",{"2":{"144":1,"146":1}}],["调用setpricevolumeprecision",{"2":{"74":1}}],["三种中的一种",{"2":{"160":1}}],["转换后的图片类型",{"2":{"160":1}}],["过滤条件",{"2":{"158":1,"159":1}}],["对于赞助",{"2":{"192":1}}],["对数轴",{"2":{"182":2}}],["对象类型为",{"2":{"169":2}}],["对应y轴的值",{"2":{"158":1,"165":4}}],["对齐方式",{"2":{"93":2}}],["订阅时的回调方法",{"2":{"157":1}}],["订阅图表动作",{"2":{"156":1}}],["执行动作需要的数据",{"2":{"155":1}}],["执行图表动作",{"2":{"155":1}}],["在实际项目中根据情况进行调整",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["在指定时间戳上缩放",{"2":{"153":1}}],["在某个位置缩放",{"2":{"152":1}}],["在某个坐标点缩放",{"2":{"151":1}}],["缩放比例",{"2":{"151":1,"152":1,"153":1}}],["缩小",{"2":{"103":1}}],["动画时间",{"2":{"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1}}],["编组id",{"2":{"145":1,"146":1}}],["参数finder",{"2":{"176":1}}],["参数type选项变更为onzoom",{"2":{"176":1}}],["参数position选项变更为root",{"2":{"176":1}}],["参数和返回值和`createpointfigures`一致",{"2":{"165":4}}],["参数和overrideoverlay一致",{"2":{"143":1}}],["参阅",{"2":{"110":6}}],["移动端",{"2":{"181":1}}],["移动绘制过程中触发",{"2":{"165":2}}],["移动事件过程中特殊处理方法",{"2":{"34":1}}],["移除图形",{"2":{"146":1}}],["移除技术指标",{"2":{"142":1}}],["\\tbars",{"2":{"140":2}}],["覆盖已绘制的覆盖物",{"2":{"145":1}}],["覆盖技术指标信息",{"2":{"140":1}}],["覆盖物实例",{"2":{"165":2}}],["覆盖物",{"0":{"162":1,"188":1},"1":{"163":1,"164":1,"165":1,"166":1},"2":{"169":2}}],["覆盖物标识",{"2":{"145":1}}],["覆盖物名称",{"2":{"146":1}}],["覆盖物名或者对象",{"2":{"143":1}}],["覆盖物名",{"2":{"34":1,"145":1}}],["覆盖物信息",{"2":{"34":1}}],["覆盖物支持双击强制结束绘制",{"2":{"14":1}}],["轴上是否可以滚动缩放",{"2":{"139":1,"154":1}}],["边距",{"2":{"139":1,"154":1}}],["边框虚线参数",{"2":{"89":2,"91":2,"92":2,"93":2}}],["边框虚线参数值",{"2":{"62":1,"64":1,"65":1,"66":1}}],["边框尺寸",{"2":{"89":2,"91":2,"92":2,"93":2}}],["边框圆角尺寸",{"2":{"66":1}}],["边框圆角值",{"2":{"65":1,"92":2,"93":2}}],["边框样式",{"2":{"62":1,"64":1,"65":1,"66":1,"89":2,"91":2,"92":2,"93":2}}],["边框粗细",{"2":{"62":1,"64":1,"65":1,"66":1}}],["边框颜色",{"2":{"62":1,"64":1,"65":1,"66":1,"89":2,"91":2,"92":2,"93":2}}],["类型有",{"2":{"169":4}}],["类型为klinecharts",{"2":{"165":2}}],["类型参与",{"2":{"165":4}}],["类型参阅",{"2":{"110":12}}],["类型参阅样式",{"2":{"28":1}}],["类型是",{"2":{"160":1}}],["类型和图表方法overrideindicator的入参一致",{"2":{"139":1}}],["都需要此标识",{"2":{"139":1}}],["后续对该窗口的一些操作",{"2":{"139":1}}],["后续计算参数发生变化的时候",{"2":{"113":2}}],["为了避免重复绘制",{"2":{"137":1}}],["为图表添加数据",{"2":{"102":14}}],["清空图表数据",{"2":{"137":1}}],["单条k线数据",{"2":{"135":1}}],["相同则覆盖",{"2":{"135":1}}],["成功回调",{"2":{"133":1,"134":1,"135":1,"140":1}}],["成交额",{"2":{"68":2}}],["成交量",{"2":{"68":2,"105":2,"186":2}}],["告诉图表还有没有更多历史数据",{"2":{"133":1,"134":1}}],["不显示",{"2":{"191":2}}],["不再区分klinecharts",{"2":{"171":1}}],["不触发事件",{"2":{"165":2}}],["不同则追加",{"2":{"135":1}}],["不需要额外调用cleardata方法",{"2":{"133":1}}],["不受前端框架限制",{"2":{"102":1}}],["数组的子项类型为",{"2":{"169":2}}],["数量精度",{"2":{"119":1,"165":2}}],["数据加载",{"0":{"185":1}}],["数据的索引",{"2":{"149":1,"152":1}}],["数据类型详情可参阅数据源",{"2":{"133":1,"134":1,"135":1}}],["数据索引",{"2":{"110":2,"158":1,"165":4}}],["数据源",{"2":{"110":16}}],["数据信息",{"2":{"110":2}}],["数据",{"0":{"68":1}}],["也会受影响",{"2":{"119":1}}],["也可以是数组",{"2":{"158":1,"159":1}}],["也可以是id组成的数组",{"2":{"146":1}}],["也可以是object",{"2":{"23":1}}],["也可以通过cdn获取",{"2":{"101":1}}],["或者更老的版本",{"2":{"170":1}}],["或者图表实例方法setstyles",{"2":{"167":1}}],["或者",{"2":{"119":1,"169":4}}],["或者setlocale",{"2":{"106":1}}],["详情请查阅覆盖物",{"2":{"172":1}}],["详情可参阅样式",{"2":{"117":1}}],["详情参阅",{"2":{"165":2}}],["详情参阅技术指标",{"2":{"77":1}}],["详情参阅覆盖物",{"2":{"34":1}}],["详情参阅基础图形",{"2":{"29":1}}],["详情参阅样式",{"2":{"23":1}}],["位置",{"2":{"116":1}}],["缺省则取消当前类型所有",{"2":{"157":1}}],["缺省则在图表中间位置缩放",{"2":{"151":1}}],["缺省则无动画",{"2":{"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1}}],["缺省则删除对应窗口上所有的",{"2":{"146":1}}],["缺省则删除所有",{"2":{"146":1}}],["缺省则返回所有",{"2":{"141":1}}],["缺省则设置所有",{"2":{"140":1}}],["缺省则是root",{"2":{"115":1,"116":1}}],["缺省则是整个图表容器",{"2":{"115":1,"116":1}}],["缺省将显示name",{"2":{"110":2}}],["窗口是否可以拖拽调整高度",{"2":{"139":1,"154":1}}],["窗口最小高度",{"2":{"139":1,"154":1}}],["窗口高度",{"2":{"139":1,"154":1}}],["窗口配置信息",{"2":{"139":1,"154":1}}],["窗口id",{"2":{"115":1,"116":1,"139":1,"140":1,"141":1,"142":1,"143":1,"146":1,"154":1,"158":1,"159":1}}],["窗口尺寸信息",{"2":{"110":4,"165":2}}],["每个key需要和figures中的子项key对应的值一致",{"2":{"113":2}}],["第二条线",{"2":{"112":2}}],["第一条线",{"2":{"112":2}}],["另一个计算10个周期时间的均值",{"2":{"112":2}}],["因此figures配置为",{"2":{"112":1}}],["值小余1则是百分比",{"2":{"139":2,"154":2}}],["值信息",{"2":{"110":2}}],["值越大越靠前显示",{"2":{"145":1,"165":2}}],["值越大",{"2":{"34":1}}],["则依据索引转换",{"2":{"158":1}}],["则会以id为依据去覆盖",{"2":{"145":1}}],["则会移除所有",{"2":{"142":1}}],["则figures配置的图形不会绘制",{"2":{"110":2}}],["则不会显示",{"2":{"110":2}}],["则需要为该字段填充数据",{"2":{"68":2}}],["真实数据索引",{"2":{"110":2}}],["真实的x坐标",{"2":{"110":2}}],["十字光标垂直线及文字",{"2":{"169":2}}],["十字光标水平线及文字",{"2":{"169":2}}],["十字光标",{"2":{"169":2}}],["十字光标交叉点所在的窗口id",{"2":{"110":2}}],["十字光标的信息",{"2":{"110":2}}],["距离",{"2":{"147":1}}],["距离底部距离",{"2":{"110":4,"165":2}}],["距离顶部距离",{"2":{"110":4,"165":2}}],["距离右边距离",{"2":{"110":4,"165":2}}],["距离左边距离",{"2":{"110":4,"165":2}}],["宽",{"2":{"110":4,"165":2}}],["宽度",{"2":{"59":1,"65":1,"66":1,"92":2}}],["终点数据索引",{"2":{"110":4}}],["起点数据索引",{"2":{"110":4}}],["起始点y轴坐标值",{"2":{"92":2,"93":2}}],["起始点y轴值",{"2":{"59":1,"60":1,"65":1,"66":1}}],["起始点x轴坐标值",{"2":{"92":2,"93":2}}],["起始点x轴值",{"2":{"59":1,"60":1,"65":1,"66":1}}],["起始角度",{"2":{"55":1,"61":1}}],["会在计算参数发生变化后触发",{"2":{"110":2}}],["重新生成数图形配置方法",{"2":{"110":2}}],["重新生成图形信息方法",{"2":{"32":1,"140":1}}],["即全局样式配置中的overlay",{"2":{"165":2}}],["即全局设置的技术指标样式",{"2":{"110":6}}],["即调用createindicator方法时返回的窗口标识",{"2":{"141":1,"142":1}}],["即title的值需要改变",{"2":{"113":2}}],["即",{"2":{"112":4}}],["即y",{"2":{"52":1}}],["技术图表实例",{"2":{"110":2}}],["技术指标名",{"2":{"141":1,"142":1}}],["技术指标名或者技术指标对象",{"2":{"139":1}}],["技术指标需要展示两个周期的收盘价平均值连起来的线",{"2":{"112":1}}],["技术指标实例",{"2":{"110":6}}],["技术指标数据",{"2":{"110":2}}],["技术指标",{"0":{"107":1,"187":1},"1":{"108":1,"109":1,"110":1,"111":1,"112":1,"113":1},"2":{"111":1,"169":2}}],["技术指标信息",{"2":{"32":1}}],["技术指标删除属性shouldcheckparamcount",{"2":{"16":1}}],["技术指标模版不再保存相关属性",{"2":{"16":1}}],["技术指标属性render变更为draw",{"2":{"16":1}}],["技术指标属性regenerateplots变更为regeneratefigures",{"2":{"16":1}}],["技术指标属性calctechnicalindicator变更为calc",{"2":{"16":1}}],["技术指标属性calcparams",{"2":{"16":1}}],["技术指标属性plots变更为figures",{"2":{"16":1}}],["下边距",{"2":{"139":1,"154":1}}],["下一个图形的数据",{"2":{"110":2}}],["下内边距",{"2":{"66":1,"93":2}}],["当是一个方法时",{"2":{"169":2}}],["当是对象时",{"2":{"117":1,"139":1,"143":1}}],["当前步骤",{"2":{"165":2}}],["当前图形的数据",{"2":{"110":2}}],["当计算参数改变时",{"2":{"113":2}}],["当添加完语言包后",{"2":{"106":1}}],["上海",{"2":{"190":2}}],["上边距",{"2":{"139":1,"154":1}}],["上一个图形的数据",{"2":{"110":2}}],["上内边距",{"2":{"66":1,"93":2}}],["一个图表",{"2":{"181":1}}],["一个计算5个周期时间的均值",{"2":{"112":2}}],["一般情况下不用手动调用",{"2":{"137":1}}],["一般用于type是",{"2":{"110":2}}],["一条名为",{"2":{"112":1}}],["一条为",{"2":{"112":1}}],["一旦销毁",{"2":{"24":1}}],["将使用超大logo展示",{"2":{"192":1}}],["将在大号logo展示区展示",{"2":{"192":1}}],["将坐标转换成值",{"2":{"159":1}}],["将值转换成坐标",{"2":{"158":1}}],["将以这个值上下去绘制",{"2":{"110":2}}],["将一个对象合并到另一个对象",{"2":{"39":1}}],["系列",{"2":{"110":2}}],["比如100000是否需要格式化100k",{"2":{"110":2}}],["从",{"0":{"170":1},"1":{"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1}}],["从1000开始格式化",{"2":{"110":2}}],["从某个值取对应的值",{"2":{"46":1}}],["无特殊含义",{"2":{"165":2}}],["无",{"2":{"108":2}}],["默认",{"2":{"191":2}}],["默认完整配置",{"0":{"169":1}}],["默认样式",{"2":{"165":2}}],["默认null",{"2":{"110":4}}],["默认的技术指标样式",{"2":{"110":6}}],["默认为true",{"2":{"133":1,"134":1}}],["默认为null",{"2":{"110":4}}],["默认为",{"2":{"110":2,"160":2}}],["默认为4",{"2":{"110":2}}],["默认计算参数",{"2":{"108":3}}],["默认语言是en",{"2":{"104":1}}],["使用完全免费",{"2":{"192":1}}],["使用语言包",{"0":{"106":1}}],["使用示例",{"0":{"86":1}}],["收",{"2":{"105":2,"186":2}}],["收盘价",{"2":{"68":2}}],["低",{"2":{"105":2,"186":2}}],["高可扩展",{"2":{"181":1}}],["高",{"2":{"105":2,"110":4,"165":2,"186":2}}],["高度",{"2":{"59":1,"65":1,"66":1,"92":2}}],["開",{"2":{"105":2,"186":2}}],["時間",{"2":{"105":2,"186":2}}],["zoomattimestamp",{"0":{"153":1}}],["zoomatdataindex",{"0":{"152":1}}],["zoomatcoordinate",{"0":{"151":1}}],["zh",{"2":{"105":2,"165":2,"186":6}}],["zlevel",{"2":{"34":3,"143":6,"145":5,"165":2}}],["例如",{"2":{"105":1,"169":2}}],["去完成",{"2":{"105":1}}],["去github上查看",{"2":{"17":1,"18":1,"19":1,"20":1,"21":1}}],["增加语言包通过klinecharts",{"2":{"105":1}}],["增加语言包",{"0":{"105":1}}],["目前只会匹配当前最后一条数据的时间戳",{"2":{"135":1}}],["目前图表内置了en",{"2":{"104":1}}],["目前快捷键仅支持移动和缩放",{"2":{"103":1}}],["国际化",{"0":{"104":1},"1":{"105":1,"106":1}}],["放大",{"2":{"103":1}}],["左侧",{"2":{"182":2}}],["左移",{"2":{"103":1}}],["左内边距",{"2":{"66":1,"93":2}}],["←",{"2":{"103":1}}],["→",{"2":{"103":1}}],["快捷键",{"0":{"103":1}}],["快速开始",{"0":{"100":1},"1":{"101":1,"102":1},"2":{"102":6}}],["⌨️",{"0":{"103":1}}],["销毁图表",{"2":{"102":12}}],["销毁一个图表",{"2":{"24":1}}],["所以你可以在任何一个前端框架中使用",{"2":{"102":1}}],["所有的api都迁移至klinecharts",{"2":{"177":1}}],["所有线的样式选项dash",{"2":{"173":1}}],["所有dashvalue变更为dashedvalue",{"2":{"16":1}}],["所有line",{"2":{"16":1}}],["所有visiblerange新增realfrom和realto",{"2":{"10":1}}],["j++",{"2":{"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["jpeg",{"2":{"160":2}}],["j",{"2":{"113":12,"182":4,"183":4,"184":4,"185":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["jsimport",{"2":{"182":1,"183":1,"184":1,"185":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1}}],["jsximport",{"2":{"102":3}}],["js",{"2":{"101":2,"102":4}}],["jsdelivr",{"2":{"101":2,"102":2}}],["javascripthtml",{"2":{"183":1,"185":1}}],["javascripthtmlindex",{"2":{"182":1,"184":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1}}],["javascript",{"2":{"86":1,"99":1,"101":2,"102":2,"112":1,"113":1,"165":2,"166":1,"169":1}}],["javascriptchart",{"2":{"75":1,"139":1,"140":1,"143":1,"145":1,"154":1}}],["quot",{"2":{"101":8,"102":92,"182":8,"183":8,"184":12,"185":8,"186":12,"187":12,"188":12,"189":12,"190":12,"191":12}}],["qq讨论群",{"0":{"84":1}}],["你可以通过npm或yarn等包管理工具",{"2":{"101":1}}],["这非常重要",{"2":{"139":1}}],["这里只是清除数据",{"2":{"137":1}}],["这里每一项的数据格式应该是",{"2":{"113":2}}],["这里计算不能及时响应",{"2":{"113":2}}],["这样一个自定义覆盖物就完成了",{"2":{"166":1}}],["这样一个自定义指标就完成了",{"2":{"113":1}}],["这样一个自定义的基础图形就完成了",{"2":{"99":1}}],["这样你的第一个图表就创建完成了",{"2":{"102":1}}],["这篇文档介绍了内置的基本图形和如何自定义一个基础图形",{"2":{"85":1}}],["实际终点数据索引",{"2":{"110":4}}],["实际起点数据索引",{"2":{"110":4}}],["实现checkeventon和draw两个方法",{"2":{"99":1}}],["实例化并绘制",{"2":{"86":2}}],["实例方法removetechnicalindicator变更为removeindicator",{"2":{"16":1}}],["实例方法gettechnicalindicatorbypaneid变更为getindicatorbypaneid",{"2":{"16":1}}],["实例方法getstyleoptions变更为getstyles",{"2":{"16":1}}],["实例方法overlaytechnicalindicator变更为overlayindicator",{"2":{"16":1}}],["实例方法createtechnicalindicator变更为createindicator",{"2":{"16":1}}],["实例方法setoffsetrightspace变更为setoffsetrightdistance",{"2":{"16":1}}],["实例方法setpaneoptions",{"2":{"16":1}}],["实例方法setstyleoptions变更为setstyles",{"2":{"16":1}}],["实例apiapplynewdata",{"2":{"10":1}}],["实例api新增getoffsetrightdistance和executeaction",{"2":{"10":1}}],["实例api",{"0":{"114":1,"176":1},"1":{"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"154":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1},"2":{"6":1}}],["步骤二",{"0":{"99":1,"113":1}}],["步骤一",{"0":{"98":1,"112":1}}],["我们可以定义三个选项stroke",{"2":{"98":1}}],["先确定属性和样式",{"2":{"98":1}}],["示例",{"0":{"97":1,"111":1,"166":1},"1":{"98":1,"99":1,"112":1,"113":1},"2":{"139":1,"140":1,"143":1,"145":1,"154":1,"169":4}}],["返回值由",{"2":{"178":1}}],["返回值是一个标识窗口的字符串",{"2":{"139":1}}],["返回一个字符串类型的标识",{"2":{"143":1}}],["返回一个boolean值",{"2":{"96":2}}],["返回数据类型可参阅数据源",{"2":{"136":1}}],["返回数据个数需要和klinedatalist的数据个数一致",{"2":{"113":2}}],["返回完整类型参阅样式",{"2":{"118":1}}],["返回类型参阅figures",{"2":{"110":2}}],["返回图表实例",{"2":{"23":1}}],["校验事件是否在图形上",{"2":{"96":2}}],["然后通过klinecharts",{"2":{"95":1,"109":1,"164":1}}],["只作用于y轴",{"2":{"158":1,"159":1}}],["只需要生成一个技术指标信息",{"2":{"109":1}}],["只需要生成基础图形信息",{"2":{"95":1}}],["只能看到一条线",{"0":{"73":1}}],["同时技术指标系列是",{"2":{"119":1}}],["同text",{"2":{"94":1}}],["同utils",{"2":{"67":1}}],["基础信息提示",{"2":{"191":2}}],["基础展示",{"0":{"183":1}}],["基础图形可以通过图表方法klinecharts",{"2":{"85":1}}],["基础图形是图表重要的组成部分",{"2":{"85":1}}],["基础图形",{"0":{"85":1},"1":{"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1}}],["基础图形信息",{"2":{"29":1}}],["基本零成本上手",{"2":{"181":1}}],["基本都可以自定义样式",{"2":{"167":1}}],["基准值",{"2":{"110":2}}],["基准",{"2":{"93":2}}],["坐标轴",{"0":{"182":1}}],["坐标点",{"2":{"151":1}}],["坐标点信息",{"2":{"55":1,"56":1,"59":1,"60":1}}],["坐标集合",{"2":{"90":2,"91":2}}],["`import",{"2":{"182":1}}],["`strong",{"2":{"165":2}}],["`stroke",{"2":{"89":2,"91":2,"92":2,"93":2}}],["`stroke`",{"2":{"89":2,"91":2,"92":2,"93":2}}],["`weak",{"2":{"165":2}}],["`ma$",{"2":{"113":4}}],["`",{"2":{"102":4,"113":4,"182":5}}],["`dashed`",{"2":{"88":2,"90":2}}],["虚线参数",{"2":{"88":2,"90":2}}],["虚线参数值",{"2":{"61":1,"63":1}}],["属性plots变更为figures",{"2":{"178":1}}],["属性说明",{"0":{"96":1,"110":1,"165":1}}],["属性",{"2":{"86":2,"98":1}}],["等",{"2":{"86":2}}],["需要返回一个数组",{"2":{"169":2}}],["需要返回一个boolean类型的值",{"2":{"165":2}}],["需要转换的值",{"2":{"158":1,"159":1}}],["需要覆盖的参数",{"2":{"145":1}}],["需要覆盖的一些参数",{"2":{"140":1}}],["需要在有画布上下文的情况下使用",{"2":{"86":1}}],["需要运行在支持",{"2":{"70":1}}],["注意",{"2":{"86":1,"113":2,"161":1}}],["建议仔细阅读",{"2":{"85":1}}],["加密货币",{"0":{"196":1}}],["加入群聊",{"2":{"83":1}}],["加载",{"2":{"70":1}}],["备注",{"2":{"83":1}}],["添加历史更多数据",{"2":{"134":1}}],["添加新数据",{"2":{"133":1}}],["添加到图表即可和内置覆盖物一样去使用",{"2":{"164":1}}],["添加到图表即可和内置技术指标一样去使用",{"2":{"109":1}}],["添加到图表即可和内置基础图形一样去使用",{"2":{"95":1}}],["添加开发者",{"2":{"83":1}}],["添加一个中文繁体的语言包",{"2":{"105":1}}],["添加一个覆盖物",{"2":{"34":1}}],["添加一个技术指标",{"2":{"32":1}}],["添加一个基础图形",{"2":{"29":1}}],["添加一个样式配置",{"2":{"28":1}}],["添加一个本地化语言",{"2":{"25":1}}],["扫一扫",{"2":{"83":1}}],["用",{"2":{"113":2}}],["用图表api创建即可createoverlay",{"2":{"78":1}}],["用于生成样式",{"2":{"110":2}}],["用于生成自定义图形的属性",{"2":{"110":2}}],["用于tooltip显示",{"2":{"110":2}}],["用于取计算结果中值",{"2":{"110":2}}],["用于创建的唯一标识",{"2":{"34":1,"145":1}}],["用于创建和操作的唯一标识",{"2":{"32":1,"140":1}}],["用于显示",{"2":{"32":1,"110":2,"140":1}}],["该怎么做",{"0":{"78":1}}],["想显示时间",{"2":{"169":2}}],["想标记一下买卖点",{"0":{"78":1}}],["想创建一个内置技术指标之外的指标",{"0":{"77":1}}],["通过样式设置",{"2":{"75":1}}],["通过图表实例",{"2":{"68":1}}],["分时图怎么创建",{"0":{"75":1}}],["分割线事件响应回退",{"2":{"4":1}}],["怎么办",{"0":{"74":1,"76":1,"77":1}}],["看不到波动",{"0":{"74":1}}],["初始化图表",{"2":{"102":14}}],["初始化图表后",{"0":{"73":1}}],["初始化一个图表",{"2":{"23":1}}],["常见问题",{"0":{"72":1},"1":{"73":1,"74":1,"75":1,"76":1,"77":1,"78":1}}],["兼容处理",{"0":{"71":1}}],["构建",{"2":{"70":1}}],["浏览器支持",{"0":{"70":1}}],["环境要求",{"0":{"69":1},"1":{"70":1,"71":1}}],["🌟",{"2":{"192":1}}],["🍍",{"2":{"187":2}}],["🍑",{"2":{"187":2}}],["🍒",{"2":{"187":2}}],["🍈",{"2":{"187":2}}],["🍓",{"2":{"187":2}}],["🍇",{"2":{"187":2}}],["🍉",{"2":{"187":2}}],["🍌",{"2":{"187":2}}],["🍋",{"2":{"187":2}}],["🍊",{"2":{"187":2}}],["🍐",{"2":{"187":2}}],["🍎",{"2":{"187":2}}],["🍏",{"2":{"187":4}}],["🎨",{"0":{"167":1},"1":{"168":1,"169":1},"2":{"181":1}}],["🌏",{"0":{"104":1},"1":{"105":1,"106":1}}],["🏝️",{"0":{"69":1},"1":{"70":1,"71":1}}],["🆕",{"2":{"4":2,"5":2,"6":3,"7":3,"10":5,"14":2,"16":1}}],["最新值标记",{"2":{"169":2}}],["最新价标记",{"2":{"169":2}}],["最新价线不显示问题",{"2":{"1":1}}],["最低价标记",{"2":{"169":2}}],["最低价",{"2":{"68":2}}],["最高价标记",{"2":{"169":2}}],["最高价",{"2":{"68":2}}],["开箱即用",{"2":{"181":1}}],["开盘和收盘",{"2":{"169":2}}],["开盘价",{"2":{"68":2}}],["开始角度",{"2":{"88":2}}],["开始绘制事件",{"2":{"34":1,"145":1}}],["毫秒级别",{"2":{"68":2}}],["来和图表进行数据交互",{"2":{"68":1}}],["代替即可",{"2":{"113":2}}],["代替",{"2":{"67":1,"175":1,"176":3}}],["已废弃",{"2":{"67":1,"94":1}}],["背景色",{"2":{"66":1,"93":2,"160":1}}],["右侧",{"2":{"182":2}}],["右击回调事件",{"2":{"165":2}}],["右击事件",{"2":{"34":1,"145":1}}],["右移",{"2":{"103":1}}],["右内边距",{"2":{"66":1,"93":2}}],["线性轴",{"2":{"182":2}}],["线样式",{"2":{"63":1}}],["线参数",{"2":{"63":1}}],["粗细",{"2":{"61":1,"63":1,"93":2}}],["弧样式",{"2":{"61":1}}],["画布上下文",{"2":{"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"86":2,"96":2,"110":2}}],["权重",{"2":{"60":1,"66":1}}],["字体",{"2":{"60":1,"66":1,"93":2}}],["尺寸",{"2":{"60":1,"66":1,"88":2,"90":2,"93":2}}],["颜色",{"2":{"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2}}],["垂直对齐方式",{"2":{"60":1,"66":1}}],["水平对齐方式",{"2":{"60":1,"66":1}}],["文字内容",{"2":{"60":1,"66":1,"93":2}}],["文字参数",{"2":{"60":1,"66":1}}],["wrap",{"2":{"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["wr",{"2":{"108":1}}],["will",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["window",{"2":{"102":2}}],["width=device",{"2":{"102":2}}],["width是宽度",{"2":{"98":1}}],["width",{"2":{"59":3,"65":3,"66":3,"92":2,"93":2,"98":1,"99":16,"102":16,"110":4,"116":2,"165":2}}],["web",{"2":{"165":2}}],["webview",{"2":{"70":1}}],["weight",{"0":{"51":1},"2":{"51":2,"60":3,"66":3,"93":2,"169":20}}],["weak",{"2":{"34":4,"143":6,"145":6,"165":6}}],["结束角度",{"2":{"55":1,"61":1,"88":2}}],["半径",{"2":{"55":1,"56":1,"61":1,"62":1,"88":2,"89":2}}],["圆",{"2":{"188":2}}],["圆心y轴坐标值",{"2":{"88":2,"89":2}}],["圆心x轴坐标值",{"2":{"88":2,"89":2}}],["圆心的y轴值",{"2":{"55":1,"56":1,"61":1,"62":1}}],["圆心的x轴值",{"2":{"55":1,"56":1,"61":1,"62":1}}],["圆参数",{"2":{"56":1,"62":1}}],["圆弧参数",{"2":{"55":1,"61":1}}],["+=",{"2":{"182":2,"183":2,"184":2,"185":6,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["+098syuqtzi0ynzll",{"2":{"81":1}}],["+",{"2":{"52":1,"99":10,"103":5,"113":4,"166":2,"182":18,"183":18,"184":18,"185":18,"186":18,"187":22,"188":20,"189":18,"190":18,"191":18}}],["获取到对应的dom后操作",{"2":{"176":1}}],["获取可见区间范围",{"2":{"132":1}}],["获取样式配置",{"2":{"118":1}}],["获取尺寸",{"2":{"116":1}}],["获取dom容器",{"2":{"115":1}}],["获取klinechart",{"0":{"101":1}}],["获取基础图形实例",{"2":{"86":2}}],["获取",{"2":{"85":1}}],["获取一个点在斜率和常数项形成的线上的y轴坐标值",{"2":{"54":1}}],["获取一个点在另外两个坐标点形成的线上的y轴坐标值",{"2":{"53":1}}],["获取点组成的线的斜率和常数项",{"2":{"52":1}}],["获取图表转换成图片后的图片url",{"2":{"160":1}}],["获取图表目前的数据源",{"2":{"136":1}}],["获取图表单根蜡烛柱的宽度",{"2":{"131":1}}],["获取图表右边可以空出来的间隙",{"2":{"127":1}}],["获取图表时区名",{"2":{"121":1}}],["获取图表当前版本号",{"2":{"36":1}}],["获取图表支持的覆盖物",{"2":{"35":1}}],["获取图表支持的技术指标",{"2":{"33":1}}],["获取图表支持的基础图形类型",{"2":{"30":1}}],["获取图表支持的本地化语言类型",{"2":{"27":1}}],["获取图形类",{"2":{"31":1}}],["根据id获取覆盖物信息",{"2":{"144":1}}],["根据窗口id获取技术指标信息",{"2":{"141":1}}],["根据两个坐标点",{"2":{"52":1}}],["根据覆盖物名称获取图表内覆盖物的属性",{"2":{"26":1}}],["y轴线",{"2":{"169":2}}],["y轴",{"2":{"169":2}}],["y轴组件",{"2":{"110":4,"165":2}}],["ydis",{"2":{"99":4,"166":6,"188":6}}],["y是中心点y轴坐标值",{"2":{"98":1}}],["y",{"2":{"52":4,"53":6,"54":2,"55":5,"56":5,"57":4,"58":4,"59":5,"60":5,"61":3,"62":3,"63":2,"64":2,"65":3,"66":3,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"96":2,"98":1,"99":24,"151":2,"158":4,"159":4,"165":2,"166":4,"187":4,"188":4}}],["yyyy",{"2":{"49":1}}],["yaxis",{"2":{"16":3,"32":8,"110":12,"115":3,"116":3,"165":4,"169":2,"173":3,"178":4,"182":8,"187":4}}],["取消回调事件",{"2":{"165":2}}],["取消订阅图表动作",{"2":{"157":1}}],["取消选中事件",{"2":{"34":1,"145":1}}],["取c的值",{"2":{"46":1}}],["检查一下容器是否有高度",{"2":{"73":1}}],["检查某个坐标点是否在文字上",{"2":{"60":1}}],["检查某个坐标点是否在矩形上",{"2":{"59":1}}],["检查某个坐标点是否在多边形上",{"2":{"58":1}}],["检查某个坐标点是否在线上",{"2":{"57":1}}],["检查某个坐标点是否在圆上",{"2":{"56":1}}],["检查某个坐标点是否在圆弧上",{"2":{"55":1}}],["检查某个值是否有效",{"2":{"42":1}}],["检查某个值是否是bool值",{"2":{"45":1}}],["检查某个值是否是方法",{"2":{"44":1}}],["检查某个值是否是对象",{"2":{"43":1}}],["检查某个值是否是数字",{"2":{"41":1}}],["检查某个值是否是字符串",{"2":{"40":1}}],["检查事件是否在图形上",{"2":{"29":1}}],["辅助方法集合",{"2":{"37":1}}],["鼠标移出事件",{"2":{"34":1,"145":1,"165":2}}],["鼠标移入事件",{"2":{"34":1,"145":1,"165":2}}],["按住拖动结束回调事件",{"2":{"165":2}}],["按住拖动回调事件",{"2":{"165":2}}],["按住拖动开始回调事件",{"2":{"165":2}}],["按住某个操作点移动过程中触发",{"2":{"165":2}}],["按住移动结束事件",{"2":{"34":1,"145":1}}],["按住移动中事件",{"2":{"34":1,"145":1}}],["按住移动事件特殊处理方法",{"2":{"34":1}}],["按住开始移动事件",{"2":{"34":1,"145":1}}],["点一个",{"2":{"192":1}}],["点击回调事件",{"2":{"165":2}}],["点击事件",{"2":{"34":1,"145":1}}],["点信息",{"2":{"34":1,"145":1,"165":4}}],["创建时候的id",{"2":{"146":1}}],["创建覆盖物",{"2":{"143":1}}],["创建一个技术指标",{"2":{"139":1}}],["创建一个自定义技术指标",{"2":{"109":1}}],["创建一个自定义基础图形",{"2":{"95":1}}],["创建自定义提示文字",{"2":{"110":2}}],["创建自定义提示信息方法",{"2":{"32":1,"140":1}}],["创建第一个图表",{"0":{"102":1}}],["创建y轴上的图形",{"2":{"34":1,"165":2}}],["创建x轴上的图形",{"2":{"34":1,"165":2}}],["创建点对应的图形信息",{"2":{"166":2}}],["创建点对应的图形",{"2":{"34":1,"165":2}}],["时间戳",{"2":{"68":2,"150":1,"153":1,"158":1,"165":4}}],["时有效",{"2":{"34":1,"145":1,"165":2}}],["时区",{"0":{"190":1}}],["时区对应名字列表请参阅时区列表",{"2":{"23":1,"120":1}}],["时区名",{"2":{"23":1,"120":1}}],["是采用",{"2":{"192":1}}],["是一款可高度自定义的专业级轻量金融图表",{"2":{"180":1}}],["是一个回调方法",{"2":{"138":1,"156":1}}],["是一个k线数据数组",{"2":{"133":1,"134":1}}],["是一个方法",{"2":{"110":4}}],["是创建的唯一标识",{"2":{"96":2}}],["是怎么回事",{"0":{"73":1}}],["是",{"2":{"34":1,"145":1,"165":2}}],["是否忽略事件",{"2":{"165":2}}],["是否锁定",{"2":{"165":2}}],["是否锁定不让拖动",{"2":{"34":1,"145":1}}],["是否是绝对坐标",{"2":{"158":1,"159":1}}],["是否覆盖",{"2":{"139":1}}],["是否可以拖拽滚动",{"2":{"125":1}}],["是否可以缩放",{"2":{"123":1}}],["是否可见",{"2":{"32":1,"34":1,"110":2,"140":1,"145":1,"165":2}}],["是否需要包含浮层",{"2":{"160":1}}],["是否需要格式化大数据值",{"2":{"110":2}}],["是否需要格式化大的数字",{"2":{"32":1,"140":1}}],["是否需要ohlc",{"2":{"110":2}}],["是否需要ohlc辅助图形",{"2":{"32":1,"140":1}}],["是否需要默认的y轴上的图形",{"2":{"34":1,"145":1,"165":2}}],["是否需要默认的x轴上的图形",{"2":{"34":1,"145":1,"165":2}}],["是否需要默认的点对应的图形",{"2":{"34":1,"145":1,"165":2}}],["仅支持",{"2":{"155":1}}],["仅",{"2":{"34":1,"145":1,"165":2}}],["模式灵敏度",{"2":{"34":1,"145":1,"165":2}}],["模式",{"2":{"34":1,"145":1,"165":4}}],["越靠前显示",{"2":{"34":1}}],["绘制结束回调事件",{"2":{"165":2}}],["绘制结束事件",{"2":{"34":1,"145":1}}],["绘制过程中回调事件",{"2":{"165":2}}],["绘制开始回调事件",{"2":{"165":2}}],["绘制边框的菱形",{"2":{"99":2}}],["绘制填充的菱形",{"2":{"99":2}}],["绘制",{"2":{"96":2}}],["绘制带背景的文字",{"2":{"66":1}}],["绘制矩形",{"2":{"65":1}}],["绘制多边形",{"2":{"64":1}}],["绘制线",{"2":{"63":1}}],["绘制圆",{"2":{"62":1}}],["绘制圆弧",{"2":{"61":1}}],["绘制中事件",{"2":{"34":1,"145":1}}],["绘制层级",{"2":{"34":1,"145":1,"165":2}}],["绘制方法",{"2":{"29":1}}],["计算结果",{"2":{"113":2}}],["计算出来的数据不是想要的",{"0":{"76":1}}],["计算文字宽度",{"2":{"51":1}}],["计算方法",{"2":{"32":1,"110":2,"140":1}}],["计算参数最好取回调参数calcparams",{"2":{"113":2}}],["计算参数是2个",{"2":{"112":2}}],["计算参数文字",{"2":{"110":2}}],["计算参数",{"2":{"32":1,"110":4,"140":1}}],["指定的最大值",{"2":{"110":2}}],["指定的最小值",{"2":{"110":2}}],["指定高",{"2":{"93":2}}],["指定宽",{"2":{"93":2}}],["指定最大值",{"2":{"32":1,"140":1}}],["指定最小值",{"2":{"32":1,"140":1}}],["指标信息提示",{"2":{"191":2}}],["指标创建完成回调方法",{"2":{"139":1}}],["指标简短名称",{"2":{"110":2}}],["指标系列",{"2":{"32":1,"140":1}}],["指标名",{"2":{"32":1,"108":3,"110":2,"140":1}}],["指标图形配置支持自定义",{"2":{"7":1}}],["扩展数据",{"2":{"32":1,"34":1,"110":2,"140":1,"145":1,"165":2}}],["精度",{"2":{"32":1,"110":2,"140":1,"165":2}}],["mtm",{"2":{"108":1}}],["meta",{"2":{"102":10}}],["me",{"2":{"81":1}}],["merge",{"0":{"39":1}}],["mozilla",{"2":{"165":2}}],["moveto",{"2":{"99":4}}],["more",{"0":{"133":1,"134":1},"2":{"68":2,"133":3,"134":3}}],["modesensitivity",{"2":{"34":3,"143":6,"145":5,"165":2}}],["mode",{"2":{"34":4,"143":6,"145":6,"165":6}}],["minheight",{"2":{"139":5,"154":5}}],["min",{"2":{"101":2,"102":2,"185":2}}],["minvalue",{"2":{"32":3,"110":2,"139":2,"140":5}}],["middle",{"2":{"60":2,"66":2,"169":4}}],["mm",{"2":{"49":2}}],["max",{"2":{"185":2}}],["maxvalue",{"2":{"32":3,"110":2,"139":2,"140":5}}],["made",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["maintitle",{"2":{"187":6}}],["mainindicators",{"2":{"187":4}}],["main和yaxis",{"2":{"176":1}}],["main",{"2":{"115":3,"116":3,"187":2}}],["map",{"2":{"113":4,"187":2}}],["ma5",{"2":{"112":4,"113":2}}],["ma2",{"2":{"112":3,"113":4}}],["ma10",{"2":{"112":6,"113":2}}],["ma1",{"2":{"112":5,"113":4}}],["macd",{"2":{"108":1,"187":2}}],["ma",{"2":{"108":1,"111":1,"112":1,"113":10,"139":2,"187":2,"191":2}}],["math",{"2":{"99":4,"166":6,"182":16,"183":16,"184":16,"185":26,"186":16,"187":20,"188":22,"189":16,"190":16,"191":16}}],["magnet`",{"2":{"165":4}}],["magnet",{"2":{"34":7,"143":10,"145":9,"165":10}}],["marginbottom",{"2":{"169":8}}],["marginright",{"2":{"169":8}}],["margintop",{"2":{"169":8}}],["marginleft",{"2":{"169":8}}],["margin",{"2":{"16":2,"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":4}}],["marginend",{"2":{"16":2,"169":4,"173":2}}],["marginstart",{"2":{"16":2,"169":4,"173":2}}],["k",{"2":{"182":4,"183":4,"184":4,"185":4,"186":4,"187":4,"188":4,"189":8,"190":4,"191":4}}],["k线数据",{"2":{"110":4}}],["kdj",{"2":{"108":1}}],["kb",{"0":{"54":1},"2":{"54":2}}],["kx",{"2":{"52":1}}],["klinechart",{"0":{"180":1},"2":{"80":2,"83":1,"101":1,"102":1,"180":1,"192":2}}],["klinechartsyarn",{"2":{"101":1}}],["klinechartsnpm",{"2":{"101":1}}],["klinecharts",{"2":{"10":1,"86":2,"101":6,"102":16,"105":1,"170":2,"171":1,"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2,"192":1}}],["klinedatalist",{"2":{"110":4,"113":6,"178":4,"187":4}}],["klinedata",{"2":{"32":2,"110":22,"113":4,"139":2,"140":2,"187":4}}],["keywords",{"2":{"102":2}}],["key",{"0":{"46":1},"2":{"32":4,"34":12,"46":2,"105":1,"106":1,"110":2,"112":4,"113":8,"139":4,"140":4,"165":4,"166":2,"169":2,"182":34,"184":16,"186":10,"187":2,"188":10,"189":12,"190":10,"191":26}}],["erc20",{"2":{"196":1}}],["eth",{"2":{"196":1}}],["europe",{"2":{"190":2}}],["e11d74",{"2":{"169":2}}],["ededed",{"2":{"169":4}}],["ef5350",{"2":{"140":4}}],["ef5350变更为",{"2":{"9":1}}],["english",{"2":{"186":2}}],["en",{"2":{"186":2}}],["enabled",{"0":{"122":1,"124":1},"2":{"122":2,"124":2}}],["end",{"2":{"60":2,"66":2}}],["endangle",{"2":{"55":3,"61":3,"88":2}}],["emoji",{"2":{"187":6}}],["ema",{"2":{"108":1}}],["emv",{"2":{"68":2,"108":1}}],["extension",{"2":{"175":1}}],["extenddata",{"2":{"32":3,"34":3,"110":2,"139":2,"140":5,"143":6,"145":5,"165":2}}],["executeaction",{"0":{"155":1}}],["export",{"2":{"102":8}}],["else",{"2":{"99":2,"189":2}}],["event",{"2":{"34":28,"143":112,"145":84,"165":28}}],["图解说明",{"0":{"168":1}}],["图形辅助api",{"0":{"177":1}}],["图形类型",{"2":{"110":2,"165":2}}],["图形的样式",{"2":{"96":4}}],["图形的属性",{"2":{"96":4}}],["图形配置",{"2":{"32":1,"140":1}}],["图形名字",{"2":{"96":2}}],["图形名",{"2":{"31":1}}],["图表之间的分割线",{"2":{"169":2}}],["图表上看到的不管是点还是线",{"2":{"167":1}}],["图表上所有的元素都是由基础图形组成",{"2":{"85":1}}],["图表不会重绘",{"2":{"137":1}}],["图表内置了基础图形",{"2":{"166":2}}],["图表内置了这些基础图形",{"2":{"87":1}}],["图表内置了zh",{"2":{"25":1}}],["图表支持自定义技术指标",{"2":{"77":1}}],["图表默认价格精度为两位小数",{"2":{"74":1}}],["图表总是会填充容器",{"2":{"73":1}}],["图表基于",{"2":{"70":1}}],["图表所需要的数据必须是固定格式",{"2":{"68":1}}],["图表将不再可用",{"2":{"24":1}}],["图表方法extension",{"2":{"16":2}}],["图表方法新增getoverlayclass",{"2":{"4":1}}],["图表实例方法subscribeaction和unsubscribeaction类型新增oncandlebarclick",{"2":{"14":1}}],["图表api",{"0":{"22":1,"175":1},"1":{"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1},"2":{"7":1}}],["唯一标识",{"2":{"29":1}}],["元素id或者图表实例",{"2":{"24":1}}],["千分符",{"2":{"23":1,"165":2}}],["格式化精度",{"2":{"47":1}}],["格式化大的数字",{"2":{"23":1,"48":1}}],["格式化日期和时间的对象的构造器",{"2":{"165":2}}],["格式化日期千分符",{"2":{"50":1}}],["格式化日期",{"2":{"23":1,"49":1}}],["自定义",{"2":{"188":2}}],["自定义显示",{"2":{"169":2}}],["自定义一个覆盖物",{"2":{"164":1}}],["自定义一些api",{"2":{"23":1}}],["自定义覆盖物",{"0":{"164":1},"1":{"165":1,"166":1}}],["自定义绘制",{"2":{"110":2}}],["自定义绘制方法",{"2":{"32":1,"140":1}}],["自定义技术指标调整",{"0":{"178":1}}],["自定义技术指标",{"0":{"109":1},"1":{"110":1,"111":1,"112":1,"113":1}}],["自定义基础图形",{"0":{"95":1},"1":{"96":1,"97":1,"98":1,"99":1}}],["自定义扩展",{"2":{"16":2}}],["样式",{"2":{"32":1,"34":1,"60":1,"61":1,"62":2,"63":1,"64":2,"65":2,"66":2,"86":2,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"98":1,"110":10,"140":1,"145":1,"165":6}}],["样式名",{"2":{"28":1}}],["样式列表",{"2":{"23":1}}],["样式配置调整",{"0":{"173":1}}],["样式配置",{"0":{"167":1},"1":{"168":1,"169":1},"2":{"16":3,"28":1,"117":1}}],["样式配置新增candle",{"2":{"10":1}}],["样式配置candle",{"2":{"4":1,"5":1}}],["如果能够打赏一杯",{"2":{"192":1}}],["如果你觉得插件还不错",{"2":{"192":1}}],["如果你是",{"2":{"170":1}}],["如果dataindex和timestamp同时存在",{"2":{"158":1}}],["如果id存在",{"2":{"145":1}}],["如果缺省",{"2":{"142":1}}],["如果有值的情况下",{"2":{"113":2}}],["如果不是",{"2":{"113":2}}],["如果不设置会自动获取本机时区",{"2":{"23":1,"120":1}}],["如果无值",{"2":{"113":2}}],["如果返回true",{"2":{"110":2,"165":2}}],["如果name无值",{"2":{"110":2}}],["如果给定",{"2":{"110":2}}],["如果需要将组织官网或者个人主页展示在",{"2":{"192":1}}],["如果需要使用其他语言",{"2":{"104":1}}],["如果需要制作复杂的自定义技术指标和覆盖物",{"2":{"85":1}}],["如果需要运行在移动端",{"2":{"70":1}}],["如果需要展示技术指标",{"2":{"68":2}}],["如const",{"2":{"46":1}}],["如1000转换成1k",{"2":{"23":1,"32":1,"48":1,"140":1}}],["如",{"2":{"23":1,"49":1,"86":2,"120":1}}],["语言配置",{"2":{"25":1}}],["语言名",{"2":{"25":1}}],["语言",{"2":{"23":1}}],["可用于扩展字段",{"2":{"165":2}}],["可缺省",{"2":{"133":1,"134":1,"139":5,"141":1,"143":1,"151":1,"154":4,"160":3,"165":32}}],["可见区域信息",{"2":{"110":4}}],["可以直接使用",{"2":{"166":2}}],["可以缺省",{"2":{"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1}}],["可以通过图表方法init",{"2":{"167":1}}],["可以通过图表方法createindicator或者overrideindicator重写calc即可",{"2":{"76":1}}],["可以通过图表api",{"2":{"106":1}}],["可以这样做",{"2":{"105":1}}],["可以参考下面的方案",{"2":{"104":1}}],["可以定义两个选项solid和dashed",{"2":{"98":1}}],["可以使用覆盖物",{"2":{"78":1}}],["可以是国际化的",{"2":{"169":2}}],["可以是回调方法也可以是数组",{"2":{"169":2}}],["可以是当个对象",{"2":{"158":1,"159":1}}],["可以是单个id",{"2":{"146":1}}],["可以是通过registerstyles注册进去的样式名",{"2":{"117":1}}],["可以是通过klinecharts",{"2":{"23":1}}],["可以是一个promise",{"2":{"110":2}}],["可以是dom元素",{"2":{"24":1}}],["可以是dom元素或者元素id",{"2":{"23":1}}],["可选项为`normal`",{"2":{"165":2}}],["可选项为",{"2":{"156":1,"157":1}}],["可选项`fill`",{"2":{"89":2,"91":2,"92":2,"93":2}}],["可选项`solid`",{"2":{"88":2,"90":2}}],["可选项有",{"2":{"32":1,"34":1,"140":1,"145":1}}],["可选配置项",{"2":{"23":1}}],["容器",{"2":{"23":1}}],["gendata",{"2":{"182":4,"183":4,"184":4,"185":8,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["getelementbyid",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":6,"190":2,"191":2}}],["getwidth",{"2":{"176":1}}],["getconvertpictureurl",{"0":{"160":1}}],["getindicatorbypaneid",{"0":{"141":1}}],["getdatalist",{"0":{"136":1},"2":{"185":2}}],["getdom",{"0":{"115":1},"2":{"176":1}}],["getbarspace",{"0":{"131":1}}],["getoffsetrightdistance",{"0":{"127":1}}],["getoverlayclass",{"0":{"26":1}}],["getoverlaybyid",{"0":{"144":1},"2":{"16":1}}],["gettime",{"2":{"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["gettimezone",{"0":{"121":1}}],["gettechnicalindicatorbypaneid",{"2":{"176":1}}],["gettechnicalindicatortemplate",{"2":{"16":1}}],["getlinearyfromslopeintercept",{"0":{"54":1}}],["getlinearyfromcoordinates",{"0":{"53":1}}],["getlinearslopeintercept",{"0":{"52":1}}],["getlocal",{"2":{"16":1}}],["getheight",{"2":{"16":1}}],["getvisiblerange",{"0":{"132":1},"2":{"16":1}}],["getstyleoptions",{"2":{"176":1}}],["getstyles",{"0":{"118":1}}],["getsize",{"0":{"116":1},"2":{"16":1}}],["getsupportedoverlays",{"0":{"35":1}}],["getsupportedindicators",{"0":{"33":1}}],["getsupportedfigures",{"0":{"30":1}}],["getsupportedlocales",{"0":{"27":1}}],["getsupportlocales",{"2":{"16":1}}],["getsupportoverlays",{"2":{"16":1}}],["getsupportfigures返回值中的一种",{"2":{"165":2}}],["getsupportfigures",{"2":{"16":1}}],["getfigureclass",{"0":{"31":1},"2":{"16":1,"85":1,"86":2}}],["gzip压缩下仅40k",{"2":{"181":1}}],["green",{"2":{"189":30}}],["grid",{"2":{"169":2}}],["groupid",{"2":{"143":6,"145":5,"146":3}}],["global",{"2":{"165":2}}],["gap",{"2":{"139":5,"154":5,"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["gapbar",{"2":{"110":2,"165":2,"187":2}}],["gg",{"2":{"82":1}}],["github",{"0":{"80":1},"2":{"80":2,"192":1}}],["gt",{"2":{"23":6,"24":2,"25":2,"26":4,"27":2,"28":2,"29":6,"30":2,"31":2,"32":26,"33":2,"34":48,"35":2,"36":2,"38":2,"39":2,"40":2,"41":2,"42":2,"43":2,"44":2,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":2,"53":2,"54":4,"55":2,"56":2,"57":4,"58":4,"59":2,"60":2,"61":2,"62":4,"63":4,"64":6,"65":4,"66":2,"88":2,"89":2,"90":4,"91":4,"92":2,"93":2,"96":4,"99":4,"101":4,"102":90,"110":26,"113":12,"115":2,"116":2,"117":2,"118":2,"119":2,"120":2,"121":2,"122":2,"123":2,"124":2,"125":2,"126":2,"127":2,"128":2,"129":2,"130":2,"131":2,"132":2,"133":6,"134":6,"135":4,"136":4,"137":2,"138":4,"139":26,"140":32,"141":2,"142":2,"143":64,"144":2,"145":32,"146":2,"147":2,"148":2,"149":2,"150":2,"151":2,"152":2,"153":2,"154":2,"155":4,"156":4,"157":4,"158":6,"159":4,"160":2,"161":2,"165":42,"166":2,"182":20,"183":2,"184":10,"185":8,"186":10,"187":20,"188":12,"189":10,"190":10,"191":22}}],["===",{"2":{"99":10,"166":2,"188":2,"189":4}}],["=",{"2":{"23":6,"24":2,"25":2,"26":2,"27":2,"28":2,"29":6,"30":2,"31":2,"32":18,"33":2,"34":40,"35":2,"36":2,"38":2,"39":2,"40":2,"41":2,"42":2,"43":2,"44":2,"45":2,"46":3,"47":2,"48":2,"49":2,"50":2,"51":2,"52":3,"53":2,"54":2,"55":2,"56":2,"57":2,"58":2,"59":2,"60":2,"61":2,"62":2,"63":2,"64":2,"65":2,"66":2,"86":2,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"96":4,"99":32,"102":42,"110":12,"113":24,"115":2,"116":2,"117":2,"118":2,"119":2,"120":2,"121":2,"122":2,"123":2,"124":2,"125":2,"126":2,"127":2,"128":2,"129":2,"130":2,"131":2,"132":2,"133":4,"134":4,"135":4,"136":2,"137":2,"138":4,"139":18,"140":24,"141":2,"142":2,"143":58,"144":2,"145":30,"146":2,"147":2,"148":2,"149":2,"150":2,"151":2,"152":2,"153":2,"154":2,"155":4,"156":4,"157":4,"158":2,"159":2,"160":2,"161":2,"165":34,"166":8,"182":78,"183":32,"184":48,"185":50,"186":48,"187":92,"188":56,"189":60,"190":48,"191":86}}],["n",{"2":{"169":4}}],["ngondestroy",{"2":{"102":2}}],["ngafterviewinit",{"2":{"102":2}}],["npm",{"2":{"101":2,"102":2}}],["npmyarncdn",{"2":{"101":1}}],["neue",{"2":{"169":24,"187":2}}],["next",{"2":{"110":2}}],["net",{"2":{"101":2,"102":2}}],["newdata",{"2":{"185":20}}],["new",{"2":{"86":2,"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["needdefaultyaxisfigure",{"2":{"34":3,"143":6,"145":5,"165":2,"188":2}}],["needdefaultxaxisfigure",{"2":{"34":3,"143":6,"145":5,"165":2,"188":2}}],["needdefaultpointfigure",{"2":{"34":3,"143":6,"145":5,"165":2,"188":2}}],["none",{"2":{"169":4,"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":6}}],["normal",{"2":{"32":3,"34":3,"110":4,"139":2,"140":3,"143":4,"145":3,"165":4,"169":28,"182":2}}],["nochangecolor",{"2":{"140":4,"169":10,"189":8}}],["nochangewickcolor",{"2":{"10":1,"169":2}}],["nochangebordercolor",{"2":{"10":1,"169":2}}],["null",{"2":{"138":2,"139":4,"140":6,"143":2,"145":2,"169":2}}],["nullable",{"2":{"26":2}}],["number",{"2":{"23":6,"32":10,"34":12,"47":4,"48":2,"49":2,"50":2,"51":6,"52":8,"53":14,"54":8,"55":14,"56":10,"57":8,"58":8,"59":12,"60":12,"61":14,"62":10,"63":8,"64":8,"65":14,"66":26,"68":14,"88":14,"89":10,"90":8,"91":8,"92":14,"93":26,"96":4,"110":62,"116":12,"119":4,"126":2,"127":2,"128":2,"129":2,"130":2,"131":2,"132":8,"133":14,"134":14,"135":14,"136":14,"138":2,"139":18,"140":10,"143":20,"145":10,"147":4,"148":4,"149":4,"150":4,"151":8,"152":6,"153":6,"154":8,"158":20,"159":20,"165":48}}],["name=",{"2":{"102":8}}],["name为基础图形名字",{"2":{"86":2}}],["name",{"0":{"28":1,"31":1,"141":1,"142":1},"2":{"26":2,"28":3,"29":3,"31":3,"32":5,"34":3,"78":1,"85":1,"86":2,"96":2,"99":2,"110":4,"113":2,"139":4,"140":7,"141":3,"142":3,"143":6,"145":5,"146":3,"165":2,"166":2,"176":5,"178":1,"187":22,"188":6}}],["||",{"2":{"99":4,"113":2}}],["|",{"2":{"23":6,"24":4,"32":10,"34":34,"47":2,"48":2,"50":2,"51":2,"60":20,"61":2,"62":8,"63":2,"64":8,"65":8,"66":26,"88":2,"89":6,"90":2,"91":6,"92":6,"93":10,"110":10,"115":4,"116":4,"117":2,"138":2,"139":32,"140":28,"143":16,"145":6,"146":2,"156":12,"157":12,"158":4,"159":4,"165":18,"169":108}}],["6px",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["686d76",{"2":{"169":8}}],["60",{"2":{"108":2,"182":10,"183":10,"184":10,"185":10,"186":10,"187":10,"188":10,"189":10,"190":10,"191":10}}],["600px",{"2":{"102":16}}],["600",{"2":{"102":12,"185":2}}],["62",{"2":{"102":14}}],["66",{"2":{"102":28}}],["64",{"2":{"102":14}}],["61",{"2":{"102":28}}],["6",{"0":{"19":1},"2":{"19":1,"108":9,"169":10}}],["76808f",{"2":{"169":4}}],["76",{"2":{"102":14}}],["72",{"2":{"102":14}}],["70",{"2":{"102":14}}],["74",{"2":{"102":14}}],["77",{"2":{"102":14}}],["7yjhygvvvz",{"2":{"82":1}}],["7",{"0":{"18":1},"2":{"18":1,"169":12,"170":1,"189":4}}],["的组织或个人",{"2":{"192":1}}],["的浏览器上",{"2":{"70":1}}],["的版本记录",{"2":{"20":1,"21":1}}],["的",{"2":{"17":1,"18":1,"19":1,"192":1}}],["x轴分割线",{"2":{"169":4}}],["x轴分割文字",{"2":{"169":4}}],["x轴线",{"2":{"169":2}}],["x轴",{"2":{"169":2}}],["x轴组件",{"2":{"110":4,"165":2}}],["xxxxxxxx",{"2":{"143":2,"145":2}}],["xxx",{"2":{"113":4,"178":8}}],["xdis",{"2":{"99":4,"166":6,"188":6}}],["x是中心点x轴坐标值",{"2":{"98":1}}],["x",{"0":{"17":1,"18":1,"19":1,"20":1,"21":1},"2":{"17":1,"18":1,"19":1,"20":1,"21":1,"52":4,"53":6,"54":2,"55":5,"56":5,"57":4,"58":4,"59":5,"60":5,"61":3,"62":3,"63":2,"64":2,"65":3,"66":3,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"96":2,"98":1,"99":24,"151":2,"158":4,"159":4,"165":2,"166":4,"170":4,"187":4,"188":4}}],["xaxis",{"2":{"16":3,"32":8,"110":12,"165":4,"169":2,"173":3,"178":4,"187":4}}],["xaxis新增方法converttimestampfrompixel和converttimestamptopixel",{"2":{"6":1}}],["8px",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["800",{"2":{"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["85",{"2":{"169":6,"189":2}}],["888888",{"2":{"140":4,"169":28,"189":8}}],["88",{"2":{"102":14}}],["89",{"2":{"102":14}}],["8",{"0":{"17":1},"2":{"17":1,"102":2,"143":2,"145":2,"169":12,"170":2}}],["删除属性shouldcheckparamcount",{"2":{"178":1}}],["删除gettechnicalindicatorbypaneid",{"2":{"176":1}}],["删除setshapeoptions",{"2":{"176":1}}],["删除shape",{"2":{"16":2,"173":1}}],["删除removeshape",{"2":{"176":1}}],["删除createhtml",{"2":{"176":1}}],["删除createshape",{"2":{"176":1}}],["删除candle",{"2":{"16":1}}],["删除extension",{"2":{"175":1}}],["删除回调事件",{"2":{"165":2}}],["删除一个html元素",{"2":{"146":1}}],["删除事件",{"2":{"34":1,"145":1}}],["删除实例方法createhtml",{"2":{"16":1}}],["删除实例方法createshape",{"2":{"16":1}}],["删除实例方法setshapeoptions",{"2":{"16":1}}],["删除实例方法removeshape",{"2":{"16":1}}],["删除实例方法getwidth",{"2":{"16":1}}],["改用overlay",{"2":{"16":2}}],["改用overrideoverlay",{"2":{"16":1}}],["改用removeoverlay",{"2":{"16":1}}],["改用createoverlay",{"2":{"16":1}}],["改用getsize",{"2":{"16":1}}],["废弃",{"2":{"16":1}}],["less",{"2":{"186":2}}],["let",{"2":{"182":6,"183":6,"184":6,"185":6,"186":6,"187":8,"188":6,"189":6,"190":6,"191":6}}],["length",{"2":{"166":2,"169":4,"182":6,"183":6,"184":6,"185":8,"186":6,"187":6,"188":8,"189":6,"190":6,"191":6}}],["left",{"2":{"60":2,"66":2,"110":4,"116":2,"165":2,"169":10,"182":4}}],["lang",{"2":{"186":4}}],["lang=",{"2":{"102":2}}],["labels和candle",{"2":{"173":1}}],["lastdata",{"2":{"185":4}}],["lastvaluemark",{"2":{"16":1,"169":2}}],["last",{"2":{"16":1,"169":2,"189":4,"191":2}}],["li888",{"2":{"192":1}}],["light",{"2":{"189":6}}],["liihuu",{"2":{"80":2}}],["liner",{"2":{"182":2}}],["linecolor",{"2":{"169":2}}],["linewidth",{"2":{"99":2}}],["lineto",{"2":{"99":12}}],["line",{"0":{"57":1,"63":1,"90":1},"2":{"57":2,"63":3,"87":1,"112":4,"113":6,"143":2,"145":2,"169":8,"182":4,"183":4,"184":4,"185":4,"186":4,"187":4,"188":6,"189":8,"190":4,"191":4}}],["linesize",{"2":{"169":2}}],["lines",{"2":{"16":1,"140":2,"169":2,"173":1}}],["line变更为indicator",{"2":{"16":1,"173":1}}],["lt",{"2":{"26":2,"32":8,"34":8,"54":2,"57":2,"58":2,"62":2,"63":2,"64":4,"65":2,"90":2,"91":2,"99":2,"101":4,"102":64,"110":14,"133":2,"134":2,"136":2,"139":8,"140":8,"143":6,"145":2,"158":4,"159":4,"165":8,"182":8,"183":6,"184":10,"185":6,"186":10,"187":12,"188":10,"189":10,"190":10,"191":10}}],["loadmoretimer",{"2":{"185":2}}],["loadmore",{"0":{"138":1},"2":{"185":2}}],["lock",{"2":{"34":3,"143":6,"145":5,"165":2}}],["locales",{"0":{"25":1},"2":{"25":3,"105":1}}],["locale",{"0":{"25":1},"2":{"23":3,"25":3}}],["low",{"2":{"25":2,"68":2,"102":140,"105":2,"133":2,"134":2,"135":2,"136":2,"169":2,"182":6,"183":6,"184":6,"185":10,"186":8,"187":6,"188":6,"189":6,"190":6,"191":6}}],["logo",{"2":{"192":1}}],["logarithm",{"2":{"182":2}}],["log",{"2":{"17":1,"18":1,"19":1,"143":28,"145":28,"169":2,"182":2}}],["hu",{"2":{"192":1}}],["hide",{"2":{"191":2}}],["high",{"2":{"25":2,"68":2,"102":140,"105":2,"133":2,"134":2,"135":2,"136":2,"169":2,"182":6,"183":6,"184":6,"185":10,"186":8,"187":6,"188":6,"189":6,"190":6,"191":6}}],["halfgapbar",{"2":{"110":2,"165":2}}],["halfbar",{"2":{"110":2,"165":2}}],["hanging",{"2":{"60":2,"66":2}}],["hk",{"2":{"105":2,"186":4}}],["helvetica",{"2":{"169":24,"187":2}}],["head",{"2":{"102":4}}],["height是高度",{"2":{"98":1}}],["height",{"2":{"59":3,"65":3,"66":3,"92":2,"93":2,"98":1,"99":16,"102":14,"110":4,"116":2,"139":5,"154":5,"165":2,"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["height变更为yaxis",{"2":{"16":1,"173":1}}],["height变更为xaxis",{"2":{"16":1,"173":1}}],["hooks",{"2":{"102":2}}],["horizontalstraightline",{"2":{"163":1}}],["horizontalsegment",{"2":{"163":1}}],["horizontalrayline",{"2":{"163":1}}],["horizontal",{"2":{"16":1,"169":4}}],["https",{"2":{"80":2,"81":1,"82":1,"101":2,"102":2,"165":2,"192":1}}],["htmlid",{"2":{"146":1,"176":1}}],["html",{"2":{"101":1,"102":7,"176":1}}],["html5",{"2":{"70":1}}],["htmlelement",{"2":{"23":2,"24":2,"115":2,"117":2}}],["hh",{"2":{"49":1}}],["span",{"2":{"187":4,"191":4}}],["space",{"0":{"130":1},"2":{"130":2,"176":1}}],["sub",{"2":{"187":2}}],["subtitle",{"2":{"187":8}}],["subindicators",{"2":{"187":4}}],["subscribeaction",{"0":{"156":1},"2":{"176":1}}],["smooth",{"2":{"169":12}}],["sma",{"2":{"108":1}}],["sqrt",{"2":{"166":2,"188":2}}],["samplecircle",{"2":{"166":4}}],["sar",{"2":{"108":1}}],["scale",{"0":{"151":1,"152":1,"153":1},"2":{"151":3,"152":3,"153":3}}],["scale=1",{"2":{"102":2}}],["scrolltotimestamp",{"0":{"150":1}}],["scrolltodataindex",{"0":{"149":1}}],["scrolltorealtime",{"0":{"148":1}}],["scrollbydistance",{"0":{"147":1}}],["scrollzoomenabled",{"2":{"139":5,"154":5}}],["script",{"2":{"101":4,"102":16}}],["svelte",{"2":{"102":3}}],["src=",{"2":{"101":2,"102":2}}],["sort",{"2":{"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["solid是实线",{"2":{"98":1}}],["solid",{"2":{"61":2,"62":2,"63":2,"64":2,"65":2,"66":2,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"99":2,"102":2,"139":4,"140":10,"143":2,"145":2,"169":74,"184":4,"189":8}}],["source",{"0":{"39":1},"2":{"39":2}}],["situation",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["simple",{"2":{"171":1}}],["simpletag",{"2":{"163":1}}],["simpleannotation",{"2":{"78":1,"163":1}}],["sign",{"0":{"50":1},"2":{"50":2}}],["size",{"0":{"51":1},"2":{"16":2,"51":2,"60":3,"61":3,"63":3,"66":3,"88":2,"90":2,"93":2,"140":2,"143":2,"145":2,"169":62,"173":2,"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["ss",{"2":{"49":1}}],["separator",{"2":{"169":2}}],["segment",{"2":{"143":6,"145":6,"163":1}}],["selector",{"2":{"102":2}}],["series",{"2":{"32":3,"110":2,"139":2,"140":5}}],["setindicatortooltipshowtype",{"2":{"191":4}}],["setindicatortooltipshowrule",{"2":{"191":4}}],["setinside",{"2":{"182":4}}],["setcandletooltipshowtype",{"2":{"191":4}}],["setcandletooltipshowrule",{"2":{"191":4}}],["setcustomapi",{"2":{"16":1}}],["setmainindicator",{"2":{"187":4}}],["setreverse",{"2":{"182":4}}],["setrightminvisiblebarcount",{"0":{"129":1}}],["settheme",{"2":{"189":4}}],["settimeout",{"2":{"185":4}}],["settimezone",{"0":{"120":1},"2":{"190":6}}],["settype",{"2":{"182":4,"184":4}}],["setoffsetrightspace",{"2":{"176":1}}],["setoffsetrightdistance",{"0":{"126":1}}],["setposition",{"2":{"182":4}}],["setpaneoptions",{"0":{"154":1},"2":{"154":2}}],["setpricevolumeprecision",{"0":{"119":1}}],["setbarspace",{"0":{"130":1}}],["setsubindicator",{"2":{"187":4}}],["setstyleoptions",{"2":{"176":1}}],["setstyles",{"0":{"117":1},"2":{"75":2,"182":8,"184":2,"189":2,"191":8}}],["setscrollenabled",{"0":{"124":1}}],["setzoomenabled",{"0":{"122":1}}],["setup",{"2":{"102":2}}],["setlang",{"2":{"186":4}}],["setleftminvisiblebarcount",{"0":{"128":1}}],["setlinedash",{"2":{"99":4}}],["setlocale",{"2":{"16":1,"186":2}}],["shape",{"2":{"172":1}}],["shanghai",{"2":{"23":1,"120":1,"190":4}}],["shift",{"2":{"103":4}}],["showparams",{"2":{"169":2}}],["showtype",{"2":{"169":4,"191":8}}],["showrule",{"2":{"169":4,"191":8}}],["show",{"2":{"169":52}}],["showname",{"2":{"140":2,"169":2}}],["shouldformatbignumber",{"2":{"32":3,"110":2,"139":2,"140":5}}],["shouldohlc",{"2":{"32":3,"110":2,"139":2,"140":5}}],["shortname",{"2":{"32":3,"110":2,"113":2,"139":2,"140":3}}],["standard",{"2":{"169":8,"191":4}}],["start",{"2":{"60":2,"66":2}}],["startangle",{"2":{"55":3,"61":3,"88":2}}],["straightline",{"2":{"163":1}}],["strokestyle",{"2":{"99":2}}],["stroke只有边框",{"2":{"98":1}}],["stroke",{"2":{"62":4,"64":4,"65":4,"66":4,"89":4,"91":4,"92":4,"93":4,"98":2,"99":8,"139":8,"140":8,"166":2,"169":50,"184":12,"188":2}}],["strong",{"2":{"34":3,"143":4,"145":3,"165":4}}],["string",{"2":{"23":18,"24":2,"25":14,"26":2,"27":2,"28":2,"29":2,"30":2,"31":2,"32":32,"33":2,"34":26,"35":2,"36":2,"46":2,"47":4,"48":4,"49":4,"50":6,"51":6,"60":6,"61":2,"62":4,"63":2,"64":4,"65":4,"66":10,"88":2,"89":4,"90":2,"91":4,"92":4,"93":10,"96":2,"110":28,"115":2,"116":2,"117":2,"120":2,"121":2,"139":42,"140":38,"141":4,"142":4,"143":20,"144":2,"145":8,"146":8,"154":2,"158":2,"159":2,"160":6,"165":12}}],["style=",{"2":{"102":14,"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["style是样式类型",{"2":{"98":1}}],["style",{"2":{"61":3,"62":3,"63":3,"64":3,"65":3,"66":3,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"98":1,"99":10,"139":4,"140":10,"143":2,"145":2,"166":2,"169":46,"187":2,"188":2,"189":12}}],["styles",{"0":{"28":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"117":1},"2":{"23":3,"28":3,"29":4,"32":7,"34":15,"60":3,"61":3,"62":3,"63":3,"64":3,"65":3,"66":3,"67":2,"86":4,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"96":2,"99":8,"110":4,"117":3,"139":6,"140":9,"143":6,"145":5,"165":6,"166":2,"167":1,"176":2,"178":1,"188":2}}],["style选项变更为solid和dashed",{"2":{"16":1}}],["变更为draw",{"2":{"178":1}}],["变更为",{"2":{"178":1}}],["变更为createtooltipdatasource",{"2":{"178":1}}],["变更为createindicator",{"2":{"176":1}}],["变更为calc",{"2":{"178":1}}],["变更为regeneratefigures",{"2":{"178":1}}],["变更为registerindicator",{"2":{"175":1}}],["变更为removeindicator",{"2":{"176":1}}],["变更为overrideindicator",{"2":{"176":1}}],["变更为setoffsetrightdistance",{"2":{"176":1}}],["变更为setstyles",{"2":{"176":1}}],["变更为getindicatorbypaneid",{"2":{"176":1}}],["变更为getstyles",{"2":{"176":1}}],["变更为getdom",{"2":{"176":1}}],["变更为支持任意类型",{"2":{"16":1}}],["变更",{"2":{"16":1}}],["items",{"2":{"182":2,"184":6,"186":6,"187":2,"188":6,"189":6,"190":6,"191":2}}],["i++",{"2":{"182":2,"183":2,"184":2,"185":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":2}}],["iconfont",{"2":{"169":4}}],["icon",{"2":{"169":8}}],["icons",{"2":{"16":2,"169":4}}],["i",{"2":{"113":10,"182":4,"183":4,"184":4,"185":4,"186":4,"187":12,"188":4,"189":4,"190":4,"191":4}}],["implements",{"2":{"102":2}}],["import",{"2":{"102":18,"182":2,"183":1,"184":3,"185":1,"186":3,"187":3,"188":3,"189":3,"190":3,"191":3}}],["id",{"0":{"144":1},"2":{"139":5,"143":6,"144":3,"145":5,"146":3,"154":5,"169":8,"176":2,"187":2,"191":2}}],["id=",{"2":{"102":14,"182":2,"183":2,"184":4,"185":2,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["ideographic",{"2":{"60":2,"66":2}}],["if",{"2":{"99":6,"113":2,"166":2,"188":2,"189":4}}],["ignoreevent",{"2":{"34":12,"165":4}}],["info",{"2":{"191":4}}],["innertext",{"2":{"182":8,"184":2,"186":2,"187":8,"188":2,"189":2,"190":2,"191":12}}],["in",{"2":{"182":4,"184":4,"186":4,"187":4,"188":6,"189":4,"190":4,"191":4}}],["index",{"2":{"171":2,"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["indicatortitle",{"2":{"191":6}}],["indicatorbuttoncontainer",{"2":{"191":12}}],["indicatorfigure",{"2":{"110":2}}],["indicatorfigurestyle",{"2":{"110":2}}],["indicatorfigureattrs",{"2":{"110":2}}],["indicatorfigureattrscallbackcoordinate",{"2":{"110":2}}],["indicatorstyle",{"2":{"110":8}}],["indicatordata",{"2":{"110":6}}],["indicator",{"0":{"32":1},"2":{"16":2,"32":9,"110":16,"139":6,"140":6,"169":2,"178":3,"187":8,"189":4,"191":6}}],["insideoutside",{"2":{"182":4}}],["inside",{"2":{"169":2,"182":6}}],["install",{"2":{"101":2}}],["includeoverlay",{"0":{"160":1},"2":{"160":3}}],["intl",{"2":{"23":2,"49":2,"165":4}}],["initial",{"2":{"102":2}}],["init",{"0":{"23":1},"2":{"102":24,"106":1,"182":4,"183":4,"184":4,"185":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["is",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["isdashed合并成styles",{"2":{"178":1}}],["iszoomenabled",{"0":{"123":1}}],["isscrollenabled",{"0":{"125":1}}],["issues",{"2":{"80":2}}],["isstroke",{"2":{"178":1}}],["isstring",{"0":{"40":1}}],["isstack",{"0":{"139":1},"2":{"7":1,"139":3,"176":2}}],["isboolean",{"0":{"45":1}}],["isfunction",{"0":{"44":1}}],["isobject",{"0":{"43":1}}],["isvalid",{"0":{"42":1}}],["isvalid和klinecharts",{"2":{"10":1}}],["isnumber",{"0":{"41":1}}],["bc1qnwzukszzk5xfk0zs3sr8etzgctgnrtqts43jzp3khe6gm7xazprsp4y6n3",{"2":{"196":1}}],["btc",{"2":{"196":1}}],["built",{"2":{"188":2}}],["button",{"2":{"182":46,"184":18,"186":18,"187":28,"188":18,"189":18,"190":18,"191":52}}],["buttoncontainer",{"2":{"182":14,"184":8,"186":8,"187":14,"188":8,"189":8,"190":8}}],["berlin",{"2":{"190":4}}],["be",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["beginpath",{"2":{"99":6}}],["blank和klinecharts",{"2":{"171":1}}],["bmp",{"2":{"160":1}}],["bbi",{"2":{"108":1}}],["brar",{"2":{"108":1}}],["bias",{"2":{"108":1}}],["b中的k和b",{"2":{"52":1}}],["b",{"2":{"46":2}}],["background",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["backgroundcolor",{"0":{"160":1},"2":{"66":3,"93":2,"160":3,"169":14,"189":4}}],["bashyarn",{"2":{"101":1}}],["bashnpm",{"2":{"101":1}}],["base",{"2":{"191":2}}],["basetitle",{"2":{"191":6}}],["basebuttoncontainer",{"2":{"191":12}}],["baseprice",{"2":{"182":6,"183":6,"184":6,"185":6,"186":6,"187":6,"188":6,"189":6,"190":6,"191":6}}],["baseline",{"2":{"60":3,"66":3,"93":2}}],["basevalue",{"2":{"32":4,"110":2,"139":4,"140":4}}],["barcount",{"0":{"128":1,"129":1},"2":{"128":2,"129":2}}],["barspace",{"2":{"32":8,"110":6,"165":2,"178":1,"187":4}}],["bars",{"2":{"16":1,"169":2,"173":1,"189":4}}],["bar变更为indicator",{"2":{"16":1,"173":1}}],["bar",{"2":{"10":6,"110":2,"165":2,"169":2,"189":4}}],["boll",{"2":{"108":1,"140":4,"187":2}}],["body",{"2":{"102":4}}],["border",{"2":{"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["borderradius",{"2":{"65":3,"66":3,"92":2,"93":2,"169":16}}],["borderdashedvalue",{"2":{"62":3,"64":3,"65":3,"66":3,"89":2,"91":2,"92":2,"93":2,"99":4,"140":4,"169":22,"189":8}}],["bordersize是边框尺寸",{"2":{"98":1}}],["bordersize",{"2":{"62":3,"64":3,"65":3,"66":3,"89":2,"91":2,"92":2,"93":2,"98":1,"99":4,"140":4,"169":26,"189":8}}],["borderstyle是边框样式",{"2":{"98":1}}],["borderstyle",{"2":{"16":4,"62":3,"64":3,"65":3,"66":3,"89":2,"91":2,"92":2,"93":2,"98":1,"99":4,"140":4,"169":22,"189":8}}],["bordercolor是边框颜色",{"2":{"98":1}}],["bordercolor",{"2":{"62":3,"64":3,"65":3,"66":3,"89":2,"91":2,"92":2,"93":2,"98":1,"99":4,"169":20}}],["bottom",{"2":{"60":2,"66":2,"110":4,"116":2,"139":5,"154":5,"165":2}}],["bounding",{"2":{"32":8,"110":8,"165":2,"178":2}}],["boolean",{"2":{"29":2,"32":8,"34":50,"40":2,"41":2,"42":2,"43":2,"44":2,"45":2,"55":2,"56":2,"57":2,"58":2,"59":2,"60":2,"96":2,"110":8,"122":2,"123":2,"124":2,"125":2,"133":2,"134":2,"139":14,"140":8,"143":76,"145":38,"154":4,"158":2,"159":2,"160":2,"165":42}}],["rules",{"2":{"191":6}}],["rise",{"2":{"189":12}}],["right",{"2":{"60":2,"66":2,"110":4,"116":2,"165":2,"169":8,"182":4}}],["rigisteroverlay",{"2":{"16":1}}],["rgba",{"2":{"169":34,"189":4}}],["random",{"2":{"182":8,"183":8,"184":8,"185":12,"186":8,"187":10,"188":8,"189":8,"190":8,"191":8}}],["radius",{"2":{"166":4,"169":2,"182":2,"184":2,"186":2,"187":2,"188":6,"189":2,"190":2,"191":2}}],["rayline",{"2":{"163":1}}],["round",{"2":{"182":6,"183":6,"184":6,"185":8,"186":6,"187":6,"188":6,"189":6,"190":6,"191":6}}],["root",{"2":{"115":2,"116":2}}],["roc",{"2":{"108":1}}],["rsi",{"2":{"108":1}}],["r",{"2":{"55":3,"56":3,"61":3,"62":3,"88":2,"89":2,"166":2,"188":2}}],["red",{"2":{"189":30}}],["result",{"2":{"187":6}}],["resize",{"0":{"161":1}}],["reverse",{"2":{"169":2,"182":10}}],["reference",{"2":{"165":2}}],["realdataindex",{"2":{"110":2}}],["realx",{"2":{"110":2}}],["realto",{"2":{"110":4,"132":2}}],["realfrom",{"2":{"110":4,"132":2}}],["react",{"2":{"102":2}}],["reactvueangularpreactsolidsveltevanilla",{"2":{"102":1}}],["return",{"2":{"99":2,"102":10,"113":8,"143":2,"145":2,"166":4,"182":2,"183":2,"184":2,"185":2,"186":2,"187":6,"188":6,"189":2,"190":2,"191":2}}],["regularity",{"2":{"182":2}}],["regeneratefigures",{"2":{"32":3,"110":2,"113":2,"139":2,"140":5}}],["registeroverlay",{"0":{"34":1},"2":{"164":1,"188":4}}],["registerindicator全局添加",{"2":{"109":1}}],["registerindicator",{"0":{"32":1},"2":{"187":4}}],["registerfigure全局添加",{"2":{"95":1}}],["registerfigure",{"0":{"29":1}}],["registerstyles注册的样式名",{"2":{"23":1}}],["registerstyles",{"0":{"28":1},"2":{"16":1,"189":6}}],["registerlocale",{"0":{"25":1},"2":{"16":1,"105":3,"186":4}}],["removetechnicalindicator",{"2":{"176":1}}],["removetag",{"2":{"16":1,"176":1}}],["remove",{"0":{"146":1},"2":{"146":2}}],["removeindicator",{"0":{"142":1}}],["removehtml",{"2":{"16":1,"176":1}}],["removeannotation",{"2":{"16":1,"176":1}}],["removeoverlay",{"0":{"146":1},"2":{"16":1}}],["recttext",{"0":{"67":1,"94":1},"2":{"87":1,"169":2}}],["rect",{"0":{"59":1,"65":1,"92":1},"2":{"10":2,"59":3,"65":3,"87":1,"110":2,"169":8,"191":4}}],["滚动到指定时间戳",{"2":{"150":1}}],["滚动到指定的位置",{"2":{"149":1}}],["滚动到最初的位置",{"2":{"148":1}}],["滚动一定的距离",{"2":{"147":1}}],["滚动",{"2":{"16":1}}],["新特性",{"2":{"16":1}}],["新增candle",{"2":{"16":1}}],["新增实例方法",{"2":{"16":1}}],["新增基图表方法registerfigure",{"2":{"16":1}}],["新增y轴方向缩放",{"2":{"16":1}}],["新增figurekey和figureindex",{"2":{"11":1}}],["新增options",{"2":{"7":1}}],["新增图表api",{"2":{"7":1}}],["新增属性modesensitivity",{"2":{"5":1}}],["和convertfrompixel",{"2":{"176":1}}],["和unsubscribeaction",{"2":{"176":1}}],["和updatedata",{"2":{"68":1}}],["和getheight",{"2":{"176":1}}],["和配置项",{"2":{"112":1}}],["和",{"2":{"32":1,"34":1,"68":2,"140":1,"145":1,"156":1,"157":1}}],["和基础类型deeppartial",{"2":{"11":1}}],["和setpaneoptions",{"2":{"7":1}}],["入参是空数组时不刷新问题",{"2":{"11":1}}],["日志输出",{"2":{"10":1}}],["fruits",{"2":{"187":4}}],["from",{"2":{"102":22,"110":4,"132":2,"171":1,"182":2,"183":2,"184":2,"185":2,"186":2,"187":6,"188":2,"189":2,"190":2,"191":2}}],["flex",{"2":{"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["floor",{"2":{"182":2,"183":2,"184":2,"185":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":2}}],["fefefe",{"2":{"169":2}}],["f2f3f5",{"2":{"169":2}}],["foxmail",{"2":{"192":1}}],["font",{"2":{"182":2,"184":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":2}}],["fontfamily",{"2":{"169":4}}],["following",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["follow",{"2":{"169":4,"191":4}}],["for",{"2":{"182":6,"183":4,"184":6,"185":4,"186":6,"187":8,"188":6,"189":6,"190":6,"191":6}}],["foreach",{"2":{"113":2,"182":8,"184":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":8}}],["formatthousands",{"0":{"50":1}}],["format格式",{"2":{"49":1}}],["formatprecision",{"0":{"47":1}}],["formatvalue",{"0":{"46":1},"2":{"46":1}}],["format",{"0":{"49":1},"2":{"23":2,"49":2}}],["formatdate",{"0":{"49":1},"2":{"23":3}}],["formatbignumber",{"0":{"48":1},"2":{"10":1,"23":3}}],["fff",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["ffffff",{"2":{"160":1,"169":12,"189":2}}],["ff9600",{"2":{"140":2,"169":2}}],["f00",{"2":{"143":2,"145":2}}],["fall",{"2":{"189":12}}],["false",{"2":{"139":2,"140":2,"143":10,"145":10,"169":20,"182":4,"187":2,"191":2}}],["family",{"0":{"51":1},"2":{"51":2,"60":3,"66":3,"93":2,"169":20}}],["function",{"2":{"102":2,"143":28,"145":28,"182":10,"183":2,"184":4,"185":4,"186":4,"187":6,"188":4,"189":4,"190":4,"191":10}}],["fixed",{"2":{"169":4}}],["fibonacciline",{"2":{"163":1}}],["finder",{"0":{"158":1,"159":1},"2":{"158":3,"159":3,"176":2}}],["filltext",{"2":{"187":2}}],["fillstyle",{"2":{"99":2}}],["fill又有边框又有背景",{"2":{"98":1}}],["fill只有背景",{"2":{"98":1}}],["fill`",{"2":{"89":2,"91":2,"92":2,"93":2}}],["fill",{"2":{"62":4,"64":4,"65":4,"66":4,"89":4,"91":4,"92":4,"93":4,"98":2,"99":10,"139":8,"140":12,"166":2,"169":68,"188":2,"189":8}}],["figurenew",{"2":{"88":1,"89":1,"90":1,"91":1,"92":1,"93":1}}],["figures",{"2":{"32":3,"110":2,"112":3,"113":6,"139":2,"140":5,"187":2}}],["figure",{"0":{"29":1},"2":{"29":3,"31":2,"86":4,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1}}],["f92855",{"2":{"9":1,"169":8,"189":2}}],["px",{"2":{"187":2}}],["purpose",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["push",{"2":{"182":4,"183":4,"184":4,"185":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["percentage",{"2":{"169":2,"182":4}}],["performpoint",{"2":{"165":2}}],["performpointindex",{"2":{"165":2}}],["performeventmovefordrawing",{"2":{"34":3,"165":2}}],["performeventpressedmove",{"2":{"34":3,"165":2}}],["png",{"2":{"160":1}}],["p",{"2":{"113":4}}],["pvt",{"2":{"108":1}}],["psy",{"2":{"108":1}}],["point",{"2":{"169":2}}],["pointer",{"2":{"169":2}}],["points对应的坐标信息",{"2":{"165":2}}],["points",{"2":{"34":3,"143":6,"145":5,"165":4,"176":1}}],["positions",{"2":{"182":4}}],["position",{"0":{"115":1,"116":1},"2":{"115":3,"116":3,"169":8,"176":4,"182":4}}],["position和candle",{"2":{"10":1}}],["polygon",{"0":{"58":1,"64":1,"91":1},"2":{"58":2,"64":3,"87":1,"169":2}}],["parallelstraightline",{"2":{"163":1}}],["param",{"2":{"113":8}}],["params",{"2":{"32":4,"34":10,"110":4,"113":4,"139":4,"140":4,"165":2,"178":2}}],["pane",{"2":{"139":3,"140":3,"141":1,"142":1,"143":1,"154":3,"187":2,"191":2}}],["paneoptions",{"0":{"139":1},"2":{"139":3,"154":1,"176":2}}],["paneid",{"0":{"115":1,"116":1,"140":1,"141":1,"142":1,"143":1},"2":{"78":1,"110":2,"115":3,"116":3,"140":3,"141":3,"142":3,"143":3,"146":1,"158":3,"159":3,"176":19}}],["padding",{"2":{"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["paddingbottom",{"2":{"66":3,"93":2,"169":18}}],["paddingbottom变更为yaxis",{"2":{"16":1,"173":1}}],["paddingbottom变更为xaxis",{"2":{"16":1,"173":1}}],["paddingright",{"2":{"66":3,"93":2,"169":18}}],["paddingtop",{"2":{"66":3,"93":2,"169":18}}],["paddingtop变更为yaxis",{"2":{"16":1,"173":1}}],["paddingtop变更为xaxis",{"2":{"16":1,"173":1}}],["paddingleft",{"2":{"66":3,"93":2,"169":18,"187":2}}],["paddingleft显示不对问题",{"2":{"1":1}}],["project",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["promise",{"2":{"32":2,"110":2,"139":2,"140":2}}],["prev",{"2":{"110":2}}],["preact",{"2":{"102":2}}],["precision",{"2":{"32":3,"47":2,"110":2,"139":2,"140":5,"165":2}}],["prices",{"2":{"182":14,"183":14,"184":14,"185":14,"186":14,"187":14,"188":14,"189":14,"190":14,"191":14}}],["pricechannelline",{"2":{"163":1}}],["priceline",{"2":{"163":1,"188":2}}],["priceprecision",{"0":{"119":1},"2":{"74":1,"119":3}}],["price",{"2":{"32":3,"110":2,"119":1,"139":2,"140":5,"165":2,"188":2}}],["pricemark",{"2":{"16":1,"169":2,"189":4}}],["d9d9d9",{"2":{"169":12}}],["dragenbaled",{"2":{"139":1,"154":1}}],["dragenabled",{"2":{"139":4,"154":4}}],["drawtext",{"0":{"66":1},"2":{"67":2}}],["drawrecttext",{"0":{"67":1}}],["drawrect",{"0":{"65":1}}],["drawpolygon",{"0":{"64":1}}],["drawline",{"0":{"63":1}}],["drawcircle",{"0":{"62":1}}],["drawarc",{"0":{"61":1}}],["draw",{"2":{"29":3,"32":3,"86":2,"96":2,"99":2,"110":2,"139":2,"140":5,"187":2}}],["d",{"2":{"110":2}}],["dma",{"2":{"108":1}}],["dmi",{"2":{"108":1}}],["document",{"2":{"182":12,"184":6,"186":6,"187":12,"188":6,"189":10,"190":6,"191":18}}],["docs",{"2":{"165":2}}],["doctype",{"2":{"102":2}}],["down",{"2":{"169":2,"184":4}}],["downcolor",{"2":{"140":4,"169":10,"189":20}}],["downwickcolor",{"2":{"10":1,"169":2,"189":4}}],["downbordercolor",{"2":{"10":1,"169":2,"189":4}}],["div",{"2":{"102":16,"182":6,"183":2,"184":8,"185":2,"186":8,"187":8,"188":8,"189":8,"190":8,"191":10}}],["diamond",{"2":{"99":2}}],["display",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":4}}],["dispose",{"0":{"24":1},"2":{"102":22}}],["distance",{"0":{"126":1,"147":1},"2":{"126":2,"147":3,"148":2,"176":1}}],["dist",{"2":{"101":2,"102":2}}],["discord",{"0":{"82":1},"2":{"82":1}}],["discussions",{"2":{"80":2}}],["dark",{"2":{"189":6}}],["dashvalue更改为dashedvalue",{"2":{"173":1}}],["dashed是虚线",{"2":{"98":1}}],["dashedvalue是虚线值",{"2":{"98":1}}],["dashedvalue",{"2":{"61":3,"63":3,"88":2,"90":2,"98":1,"140":2,"143":2,"145":2,"169":24}}],["dashed",{"2":{"61":2,"62":2,"63":2,"64":2,"65":2,"66":2,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"99":2,"139":4,"140":4,"169":44}}],["date",{"2":{"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["datetimeformat",{"0":{"49":1},"2":{"23":4,"49":4,"165":6}}],["datasource",{"2":{"178":2}}],["dataindex",{"0":{"149":1,"152":1},"2":{"34":2,"110":2,"143":4,"145":2,"149":3,"152":3,"158":5,"159":4,"165":4}}],["datalist",{"0":{"133":1,"134":1},"2":{"32":2,"68":2,"110":2,"133":3,"134":3,"139":2,"140":2,"182":6,"183":6,"184":6,"185":12,"186":6,"187":6,"188":6,"189":6,"190":6,"191":6}}],["data",{"0":{"135":1,"155":1},"2":{"32":4,"46":2,"68":1,"110":2,"135":3,"139":4,"140":4,"155":3,"156":2,"157":2,"187":6}}],["dd",{"2":{"49":1}}],["dcs",{"0":{"24":1},"2":{"24":3}}],["ds",{"0":{"23":1},"2":{"23":3,"167":1}}],["demonstration",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["developer",{"2":{"165":2}}],["description",{"2":{"102":2}}],["default",{"2":{"102":6}}],["defaultvalue",{"0":{"46":1},"2":{"46":2,"169":4}}],["defaultstyles",{"2":{"32":4,"110":6,"139":4,"140":4,"165":2,"178":3}}],["defaultzlevel和zlevel",{"2":{"6":1}}],["deeprequired",{"2":{"11":1}}],["ue900",{"2":{"169":4}}],["unsubscribeaction",{"0":{"157":1}}],["utf",{"2":{"102":2}}],["utils",{"0":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1},"1":{"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1},"2":{"7":1,"10":2,"177":1}}],["usdt",{"2":{"196":3}}],["us和zh",{"2":{"104":1}}],["useeffect",{"2":{"102":8}}],["us",{"2":{"23":1,"25":1,"104":1,"186":2}}],["up",{"2":{"169":2,"184":4}}],["upcolor",{"2":{"140":4,"169":10,"189":20}}],["updatedata",{"0":{"135":1},"2":{"185":8}}],["upwickcolor",{"2":{"10":1,"169":2,"189":4}}],["upbordercolor",{"2":{"10":1,"169":2,"189":4}}],["america",{"2":{"190":2}}],["actual",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["activeradius",{"2":{"169":2}}],["activebordersize",{"2":{"169":2}}],["activebordercolor",{"2":{"169":2}}],["activebackgroundcolor",{"2":{"169":6}}],["activecolor",{"2":{"169":2}}],["according",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["adjustments",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["addeventlistener",{"2":{"182":8,"184":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":8}}],["add",{"2":{"101":2}}],["addshapetemplate",{"2":{"16":1,"175":1}}],["addshapetemplate变更为registeroverlay",{"2":{"16":1}}],["addtechnicalindicatortemplate",{"2":{"16":1,"175":1}}],["addtechnicalindicatortemplate变更为registerindicator",{"2":{"16":1}}],["assisting",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["asia",{"2":{"23":1,"120":1,"190":2}}],["axis",{"2":{"182":6}}],["axisline",{"2":{"169":4}}],["axisoptions",{"2":{"7":1,"139":5,"154":5}}],["auto",{"2":{"169":4}}],["ao",{"2":{"108":1}}],["afterviewinit",{"2":{"102":4}}],["absoluteyaxis变更为finder",{"2":{"176":1}}],["absolute",{"2":{"158":3,"159":3,"176":1}}],["abs",{"2":{"99":4,"166":4,"188":4}}],["avp",{"2":{"68":2,"108":1}}],["alphagreen",{"2":{"189":14}}],["alphared",{"2":{"189":14}}],["alphabetic",{"2":{"60":2,"66":2}}],["all",{"2":{"184":4}}],["always",{"2":{"169":8,"191":4}}],["align",{"2":{"60":3,"66":3,"93":2,"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["area",{"2":{"75":2,"169":4,"184":4}}],["arc",{"0":{"55":1,"61":1,"88":1},"2":{"55":3,"61":3,"86":2,"87":1,"169":2}}],["array",{"2":{"32":6,"34":8,"54":2,"57":2,"58":2,"62":2,"63":2,"64":4,"65":2,"90":2,"91":2,"110":10,"133":2,"134":2,"136":2,"139":6,"140":6,"143":6,"145":2,"158":4,"159":4,"165":8}}],["a",{"2":{"46":2,"169":4}}],["and",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":6,"190":2,"191":2}}],["animationduration",{"0":{"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1},"2":{"147":3,"148":3,"149":3,"150":3,"151":3,"152":3,"153":3}}],["angular",{"2":{"102":2}}],["any",{"2":{"29":4,"32":6,"34":38,"38":4,"40":2,"41":2,"42":2,"43":2,"44":2,"45":2,"46":6,"60":2,"66":2,"93":2,"96":6,"110":16,"139":6,"140":6,"143":4,"145":2,"155":2,"156":2,"157":2,"165":14}}],["annotation",{"2":{"16":1,"172":1,"173":1,"176":1}}],["attrs",{"2":{"29":4,"32":4,"34":12,"66":1,"86":4,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"96":4,"99":8,"110":2,"165":4,"166":2,"188":2}}],["apache",{"2":{"192":1}}],["appendchild",{"2":{"182":10,"184":4,"186":4,"187":10,"188":4,"189":4,"190":4,"191":16}}],["app",{"2":{"102":2}}],["applymoredata",{"0":{"134":1},"2":{"68":1,"185":2}}],["applymoredata和updatedata新增成功回调入参callback",{"2":{"10":1}}],["applynewdata",{"0":{"133":1},"2":{"11":1,"68":1,"102":14,"182":2,"183":2,"184":2,"185":4,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["api调整",{"0":{"174":1},"1":{"175":1,"176":1,"177":1}}],["api",{"2":{"16":3,"68":1}}],["omni",{"2":{"196":1}}],["outline",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["outside",{"2":{"182":2}}],["of",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["offsetright",{"2":{"169":2}}],["offsettop",{"2":{"169":2}}],["offsetleft",{"2":{"169":2}}],["offset",{"2":{"169":4}}],["offsetbottom",{"2":{"10":1,"169":2}}],["ohlc",{"2":{"169":4,"184":4,"189":4}}],["org",{"2":{"165":2}}],["obv",{"2":{"108":1}}],["objects",{"2":{"165":2}}],["object",{"2":{"23":2,"28":2,"29":4,"32":36,"34":40,"39":4,"117":2,"118":2,"139":24,"140":24,"141":2,"142":2,"143":60,"144":2,"145":30}}],["o",{"2":{"46":2}}],["only",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["onload",{"2":{"102":2}}],["onpanedrag",{"2":{"156":3,"157":3}}],["onpressedmoveend",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onpressedmovestart",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onpressedmoving",{"2":{"34":3,"143":6,"145":5,"165":2}}],["ontooltipiconclick",{"2":{"156":3,"157":3}}],["onvisiblerangechange和onpanedrag",{"2":{"176":1}}],["onvisiblerangechange",{"2":{"156":3,"157":3}}],["onscroll",{"2":{"156":3,"157":3,"176":1}}],["onselected",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onzoom",{"2":{"156":3,"157":3}}],["oncandlebarclick",{"2":{"156":3,"157":3}}],["oncrosshairchange",{"2":{"155":3,"156":3,"157":3,"176":1}}],["oncleanup",{"2":{"102":4}}],["onclick",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onunmounted",{"2":{"102":4}}],["onmount",{"2":{"102":8}}],["onmounted",{"2":{"102":4}}],["onmouseleave",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onmouseenter",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onremoved",{"2":{"34":3,"143":6,"145":5,"165":2}}],["onrightclick",{"2":{"34":3,"143":6,"145":5,"165":2}}],["ondestroy",{"2":{"102":8}}],["ondeselected",{"2":{"34":3,"143":6,"145":5,"165":2}}],["ondoubleclick",{"2":{"34":3,"143":6,"145":5,"165":2}}],["ondrawend",{"2":{"34":3,"143":6,"145":5,"165":2}}],["ondrawing",{"2":{"34":3,"143":6,"145":5,"165":2}}],["ondrawstart",{"2":{"34":3,"143":6,"145":5,"165":2}}],["open",{"2":{"25":2,"68":2,"102":140,"105":2,"133":2,"134":2,"135":2,"136":2,"169":4,"182":6,"183":6,"184":6,"185":6,"186":8,"187":6,"188":6,"189":6,"190":6,"191":6}}],["options新增属性gap",{"2":{"16":1}}],["options",{"0":{"23":1,"154":1},"2":{"7":2,"16":1,"23":3,"106":1,"154":2,"167":1,"176":1,"178":1}}],["overridetechnicalindicator",{"2":{"176":1}}],["override",{"0":{"140":1,"145":1},"2":{"140":3,"145":3,"176":3}}],["overrideindicator",{"0":{"140":1},"2":{"140":2}}],["overrideoverlay",{"0":{"145":1},"2":{"16":1,"145":2}}],["overlayevent",{"2":{"165":28}}],["overlayperformeventparams",{"2":{"165":2}}],["overlaycreatefigurescallback",{"2":{"165":4}}],["overlayconstructor",{"2":{"26":2}}],["overlaystyle",{"2":{"165":4}}],["overlayfigureignoreeventtype",{"2":{"34":12,"165":4}}],["overlayfigure中的attrs类型声明",{"2":{"5":1}}],["overlay",{"0":{"34":1},"2":{"34":3,"165":4,"169":2}}],["overlay新增属性paneid",{"2":{"6":1}}],["overlay新增事件ondoubleclick",{"2":{"5":1}}],["v9",{"0":{"170":1},"1":{"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1}}],["v8",{"0":{"170":1},"1":{"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1}}],["vr",{"2":{"108":1}}],["var",{"2":{"102":2}}],["values",{"2":{"32":2,"110":2,"139":2,"140":2,"173":1,"178":1}}],["value",{"0":{"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"50":1,"139":1,"143":1,"158":1},"2":{"7":1,"23":2,"32":2,"34":2,"40":2,"41":2,"42":2,"43":2,"44":2,"45":2,"47":2,"48":2,"50":2,"110":2,"139":5,"140":2,"143":11,"145":6,"158":8,"159":4,"165":4,"169":14,"176":5,"178":2}}],["viewport",{"2":{"102":2,"178":2}}],["visiblerange",{"2":{"110":4,"178":2,"187":4}}],["visible",{"2":{"32":3,"34":3,"110":2,"139":2,"140":5,"143":6,"145":5,"165":2}}],["vue",{"2":{"102":3}}],["v10之后会删除",{"2":{"67":1,"94":1}}],["version",{"0":{"36":1}}],["verticalstraightline",{"2":{"163":1}}],["verticalsegment",{"2":{"163":1}}],["verticalrayline",{"2":{"163":1}}],["vertical",{"2":{"1":1,"16":1,"169":4}}],["vol",{"2":{"108":1,"187":2,"189":2,"191":2}}],["volumeprecision",{"0":{"119":1},"2":{"74":1,"119":3}}],["volume",{"2":{"25":2,"32":3,"68":2,"102":140,"105":2,"110":2,"119":1,"133":2,"134":2,"135":2,"136":2,"139":2,"140":3,"165":2,"182":6,"183":6,"184":6,"185":8,"186":8,"187":6,"188":6,"189":6,"190":6,"191":6}}],["void",{"2":{"24":2,"25":2,"28":2,"29":4,"32":2,"34":6,"39":2,"61":2,"62":2,"63":2,"64":2,"65":2,"66":2,"96":2,"102":4,"119":2,"120":2,"122":2,"124":2,"126":2,"128":2,"129":2,"130":2,"133":4,"134":4,"135":4,"137":2,"138":4,"139":2,"140":4,"146":2,"147":2,"148":2,"149":2,"150":2,"151":2,"152":2,"153":2,"154":2,"155":4,"156":4,"157":4,"161":2,"165":4}}],["css",{"2":{"182":3,"184":3,"186":1,"187":3,"188":3,"189":3,"190":3,"191":3}}],["cb",{"0":{"138":1},"2":{"138":3}}],["cci",{"2":{"108":1}}],["cn两种语言",{"2":{"104":1}}],["cn",{"2":{"102":2,"165":2,"186":2}}],["cn和en",{"2":{"23":1,"25":1}}],["click",{"2":{"182":8,"184":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":8}}],["cleardata",{"0":{"137":1}}],["classname",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":4}}],["class",{"2":{"102":2}}],["clone",{"0":{"38":1}}],["closesums",{"2":{"113":10}}],["closepath",{"2":{"99":4}}],["close",{"2":{"25":2,"68":2,"102":140,"105":2,"113":8,"133":2,"134":2,"135":2,"136":2,"169":6,"182":8,"183":8,"184":8,"185":14,"186":10,"187":10,"188":8,"189":8,"190":8,"191":8}}],["cdn",{"2":{"101":2,"102":2}}],["currentstep",{"2":{"165":2}}],["current",{"2":{"110":2}}],["currentcolor",{"2":{"99":4}}],["custom",{"2":{"169":2,"173":1,"187":6,"188":2}}],["customapi",{"2":{"23":3}}],["custom支持字符串模版",{"2":{"5":1}}],["custom新增内置涨跌幅支持",{"2":{"4":1}}],["center",{"2":{"60":2,"66":2,"182":2,"184":2,"186":2,"187":4,"188":2,"189":2,"190":2,"191":2}}],["c",{"2":{"46":2}}],["code",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["container",{"2":{"182":10,"184":14,"186":14,"187":14,"188":14,"189":14,"190":14,"191":20}}],["content=",{"2":{"102":8}}],["convertfrompixel",{"0":{"159":1}}],["converttopixel",{"0":{"158":1},"2":{"176":1,"187":4}}],["console",{"2":{"143":28,"145":28}}],["const",{"2":{"86":2,"99":10,"102":12,"113":6,"166":6,"182":38,"183":18,"184":26,"185":24,"186":26,"187":46,"188":32,"189":34,"190":26,"191":40}}],["core",{"2":{"102":2}}],["component",{"2":{"102":4}}],["com",{"2":{"80":2,"192":2}}],["color是颜色",{"2":{"98":1}}],["color",{"2":{"32":4,"60":3,"61":3,"62":3,"63":3,"64":3,"65":3,"66":3,"88":2,"89":2,"90":2,"91":2,"92":2,"93":2,"98":1,"99":4,"102":2,"110":4,"139":8,"140":10,"143":2,"145":2,"169":76,"178":2,"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["coordinates",{"2":{"57":2,"58":2,"63":2,"64":2,"90":2,"91":2,"165":2,"166":14,"188":14}}],["coordinate2",{"0":{"52":1,"53":1},"2":{"52":2,"53":2}}],["coordinate1",{"0":{"52":1,"53":1},"2":{"52":2,"53":2}}],["coordinate",{"0":{"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"151":1,"159":1},"2":{"29":4,"32":4,"55":3,"56":3,"57":2,"58":2,"59":3,"60":3,"96":2,"99":6,"110":2,"151":3,"159":3,"176":1}}],["child",{"2":{"191":2}}],["chicago",{"2":{"190":4}}],["checkcoordinateontext",{"0":{"60":1}}],["checkcoordinateonrect",{"0":{"59":1}}],["checkcoordinateonpolygon",{"0":{"58":1}}],["checkcoordinateonline",{"0":{"57":1}}],["checkcoordinateoncircle",{"0":{"56":1}}],["checkcoordinateonarc",{"0":{"55":1}}],["checkeventon",{"2":{"29":3,"96":2,"99":2}}],["charset=",{"2":{"102":2}}],["chartcomponent",{"2":{"102":2}}],["chart",{"2":{"23":2,"24":2,"75":1,"102":70,"139":1,"140":1,"143":1,"145":1,"154":1,"182":16,"183":8,"184":10,"185":18,"186":10,"187":12,"188":10,"189":16,"190":10,"191":20}}],["change",{"2":{"17":1,"18":1,"19":1}}],["ctx",{"0":{"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1},"2":{"29":2,"61":3,"62":3,"63":3,"64":3,"65":3,"66":3,"67":2,"86":4,"96":2,"99":42,"110":2,"178":2,"187":8}}],["circle",{"0":{"56":1,"62":1,"89":1},"2":{"56":3,"62":3,"86":2,"87":1,"166":4,"169":2,"188":10}}],["circles",{"2":{"16":1,"140":2,"169":2,"173":1,"189":4}}],["circle变更为indicator",{"2":{"16":1,"173":1}}],["cross",{"2":{"169":4,"191":4}}],["crosshair",{"2":{"16":2,"110":2,"169":2,"178":2}}],["cr",{"2":{"108":1}}],["createelement",{"2":{"182":10,"184":4,"186":4,"187":10,"188":4,"189":4,"190":4,"191":16}}],["createyaxisfigures",{"2":{"34":3,"165":2}}],["createxaxisfigures",{"2":{"34":3,"165":2}}],["createpointfigures",{"2":{"34":3,"165":2,"166":2,"188":2}}],["createtechnicalindicator",{"2":{"176":1}}],["createtooltipdatasource",{"2":{"32":3,"110":2,"139":2,"140":3}}],["createtag",{"2":{"16":1,"176":1}}],["createannotation",{"2":{"16":1,"176":1}}],["createindicator",{"0":{"139":1},"2":{"7":1,"139":2,"187":4,"189":2,"191":4}}],["createoverlay",{"0":{"143":1},"2":{"6":1,"16":1,"143":2,"188":6}}],["callback",{"0":{"133":1,"134":1,"135":1,"139":1,"140":1,"156":1,"157":1},"2":{"133":3,"134":3,"135":3,"139":3,"140":3,"156":3,"157":3,"176":2}}],["calcparms",{"2":{"32":2,"110":2,"139":2,"140":2}}],["calcparamstext",{"2":{"32":2,"110":2,"139":2,"140":2,"178":1}}],["calcparams",{"2":{"32":3,"110":2,"112":3,"113":6,"139":2,"140":5}}],["calc",{"2":{"32":3,"110":2,"113":2,"139":2,"140":5,"187":2}}],["calctextwidth",{"0":{"51":1},"2":{"7":1}}],["canvastextbaseline",{"2":{"93":2}}],["canvastextalign",{"2":{"93":2}}],["canvas",{"2":{"70":2}}],["canvasgradient",{"2":{"62":2,"64":2,"65":2,"93":2}}],["canvasrenderingcontext2d",{"2":{"29":2,"61":2,"62":2,"63":2,"64":2,"65":2,"66":2,"96":2,"110":2}}],["candle",{"2":{"10":6,"16":1,"75":2,"139":1,"140":3,"141":1,"142":1,"143":1,"154":1,"169":12,"173":1,"184":10,"187":2,"189":4,"191":6}}],["↩️",{"2":{"4":1}}],["0xd2c3911654db861e0a2e17415e11a209c1fc3594",{"2":{"196":2}}],["01c5c4",{"2":{"169":2}}],["01",{"2":{"169":2}}],["000000",{"2":{"102":2}}],["02",{"2":{"14":1,"15":1,"16":1,"102":14}}],["03",{"2":{"13":1}}],["04",{"2":{"8":1,"9":1,"10":1,"11":1,"12":1}}],["05",{"2":{"6":1,"7":1,"8":1}}],["06",{"2":{"5":1,"102":14}}],["0",{"0":{"5":1,"6":1,"7":1,"10":1,"14":1,"15":1,"16":2},"2":{"113":2,"139":4,"143":2,"145":2,"154":4,"166":6,"169":54,"182":6,"183":6,"184":6,"185":6,"186":6,"187":6,"188":12,"189":6,"190":6,"191":8,"192":1}}],["08",{"2":{"4":1}}],["09",{"2":{"1":1,"2":1,"3":1,"102":14}}],["优化事件处理",{"2":{"14":1}}],["优化渲染更新",{"2":{"13":1}}],["优化覆盖物图形事件忽略",{"2":{"12":1}}],["优化覆盖物事件回调参数",{"2":{"11":1}}],["优化面积图显示",{"2":{"11":1}}],["优化开发环境下",{"2":{"10":1}}],["优化api",{"2":{"10":1}}],["优化typescript覆盖物样式类型",{"2":{"11":1}}],["优化typescript声明",{"2":{"9":1}}],["优化typescript下",{"2":{"5":1}}],["优化默认样式",{"2":{"9":1}}],["优化类型检查",{"2":{"8":1}}],["优化内部id生成",{"2":{"7":1}}],["优化内部获取屏幕像素比",{"2":{"7":1}}],["优化内置覆盖物simpleannotation和simpletag",{"2":{"3":1}}],["优化bar宽度比例",{"2":{"7":1}}],["优化蜡烛柱显示",{"2":{"6":1}}],["优化分割线事件响应灵敏度",{"2":{"5":1}}],["优化移动端阻尼滚动掉帧问题",{"2":{"5":1}}],["优化基础图形rect事件响应",{"2":{"4":1}}],["优化基础图形text",{"2":{"3":1}}],["优化技术指标自由样式",{"2":{"3":1}}],["1b1b1f",{"2":{"189":2}}],["119",{"2":{"169":8}}],["12px",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["12345678910111213141516171819202122",{"2":{"191":1}}],["123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051html",{"2":{"190":1}}],["1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677html",{"2":{"188":1}}],["123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126html",{"2":{"191":1}}],["123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150html",{"2":{"189":1}}],["123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111html",{"2":{"182":1}}],["123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107html",{"2":{"187":1}}],["123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960html",{"2":{"186":1}}],["1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556html",{"2":{"184":1}}],["12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849html",{"2":{"185":1}}],["12345678910111213141516171819202122232425262728html",{"2":{"183":1}}],["123456789101112131415161718",{"2":{"182":1,"184":1,"186":1,"187":1,"188":1,"189":1,"190":1}}],["123css",{"2":{"182":1,"184":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1}}],["12",{"2":{"102":14,"108":9,"169":24}}],["16px",{"2":{"187":2}}],["1677ff",{"2":{"169":22,"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["16098",{"2":{"143":2,"145":2}}],["1614171202000",{"2":{"143":2,"145":2}}],["1614171282000",{"2":{"143":2,"145":2}}],["16",{"2":{"16":1,"102":14}}],["17",{"2":{"15":1,"187":2}}],["10px",{"2":{"182":4,"184":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["1000",{"2":{"182":8,"183":8,"184":8,"185":8,"186":8,"187":8,"188":8,"189":8,"190":8,"191":8}}],["1000000转换为1m等",{"2":{"23":1,"32":1,"48":1,"140":1}}],["100",{"2":{"139":2,"154":2,"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["105",{"2":{"102":14}}],["10",{"2":{"12":1,"108":7,"112":2,"113":2,"169":12,"182":2,"183":2,"184":2,"185":6,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["135",{"2":{"102":14}}],["13",{"2":{"7":1,"108":1}}],["150",{"2":{"169":12}}],["1587660540000",{"2":{"102":14}}],["1587660480000",{"2":{"102":14}}],["1587660420000",{"2":{"102":14}}],["1587660360000",{"2":{"102":14}}],["1587660300000",{"2":{"102":14}}],["1587660240000",{"2":{"102":14}}],["1587660180000",{"2":{"102":14}}],["1587660120000",{"2":{"102":14}}],["1587660060000",{"2":{"102":14}}],["1587660000000",{"2":{"102":14}}],["15",{"2":{"5":1,"11":1,"169":2}}],["142",{"2":{"169":6,"189":2}}],["14",{"2":{"4":1,"13":1,"102":14,"108":3}}],["1",{"0":{"4":1,"9":1,"11":1,"12":1,"13":2,"14":1,"15":1},"2":{"46":1,"99":2,"113":6,"139":4,"140":6,"143":2,"145":2,"154":4,"166":4,"169":74,"183":1,"185":3,"188":4,"189":8}}],["18987",{"2":{"143":2,"145":2}}],["184",{"2":{"102":14}}],["18",{"2":{"3":1}}],["192",{"2":{"169":6,"189":2}}],["191",{"2":{"102":14}}],["197",{"2":{"102":14}}],["194",{"2":{"102":14}}],["19",{"2":{"2":1,"102":14}}],["修复内置基础图形arc不生效问题",{"2":{"13":1}}],["修复内置基础图形line触发事件不准确问题",{"2":{"12":1}}],["修复内置覆盖物simpleannotation和simpletag绘制完成后第一次触发事件问题",{"2":{"12":1}}],["修复无数据时y轴上十字光标文字不显示问题",{"2":{"11":1}}],["修复图表api",{"2":{"11":1}}],["修复基础图形line事件检查可能导致错误问题",{"2":{"8":1}}],["修复窗口id命名拼写错误",{"2":{"5":1}}],["修复typescript引入问题",{"2":{"15":1}}],["修复typescript声明问题",{"2":{"3":1}}],["修复ts下引入问题",{"2":{"2":1}}],["修复样式crosshair",{"2":{"1":1}}],["修复样式candle",{"2":{"1":1}}],["3dsxsbtbmwxumaaqmysvpgedbp9rghpnfq",{"2":{"196":1}}],["30",{"2":{"102":14,"108":3,"139":2,"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["35",{"2":{"102":14,"169":4}}],["31",{"2":{"102":14}}],["34",{"2":{"102":14,"108":1}}],["33",{"2":{"102":14,"169":12}}],["39",{"2":{"32":12,"34":12,"60":44,"61":8,"62":20,"63":8,"64":20,"65":20,"66":64,"68":8,"75":4,"86":8,"88":8,"89":20,"90":8,"91":20,"92":20,"93":20,"99":40,"102":100,"105":28,"110":20,"112":40,"113":36,"115":12,"116":12,"139":60,"140":108,"143":52,"145":40,"154":4,"155":4,"156":28,"157":28,"165":24,"166":20,"169":1044,"182":112,"183":8,"184":80,"185":8,"186":84,"187":180,"188":64,"189":164,"190":56,"191":132}}],["3",{"0":{"2":1,"7":1,"11":1},"2":{"108":3,"154":2,"166":2,"169":6,"182":6,"183":6,"184":6,"185":6,"186":6,"187":6,"188":8,"189":6,"190":6,"191":6}}],["trc20",{"2":{"196":1}}],["transparent",{"2":{"169":4}}],["true",{"2":{"139":4,"140":4,"143":2,"145":2,"154":4,"169":54,"182":4,"185":4,"187":2,"188":6}}],["trix",{"2":{"108":1}}],["thjptqmfgavm12ke1jzc5mlxiapp6qxmci",{"2":{"196":1}}],["the",{"2":{"182":8,"184":8,"186":8,"187":8,"188":8,"189":8,"190":8,"191":8}}],["theme",{"2":{"102":2,"189":8}}],["thousandsseparator",{"2":{"23":3,"165":2}}],["tsimport",{"2":{"102":1}}],["t",{"2":{"81":1}}],["turnover",{"2":{"68":2,"133":2,"134":2,"135":2,"136":2,"182":4,"183":4,"184":4,"185":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["targetcoordinate",{"0":{"53":1,"54":1},"2":{"53":2,"54":2}}],["target",{"0":{"38":1,"39":1},"2":{"38":2,"39":2}}],["tagid",{"2":{"176":1}}],["tag合并成overlay",{"2":{"172":1}}],["tag",{"2":{"16":1,"173":1,"176":1}}],["tofixed",{"2":{"182":8,"183":8,"184":8,"185":8,"186":8,"187":8,"188":8,"189":8,"190":8,"191":8}}],["to",{"2":{"110":4,"132":2,"182":2,"184":2,"186":2,"187":6,"188":2,"189":2,"190":2,"191":2}}],["top",{"2":{"60":2,"66":2,"110":4,"116":2,"139":5,"154":5,"165":2,"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":4}}],["totalstep",{"2":{"34":3,"165":2,"166":2,"188":2}}],["tooltip",{"2":{"4":1,"5":1,"10":2,"16":2,"169":4,"173":3,"191":8}}],["tip",{"2":{"191":4}}],["tickline",{"2":{"169":4}}],["ticktext",{"2":{"16":8,"169":4,"173":8}}],["title和value可以是字符串或者对象",{"2":{"169":2}}],["title",{"2":{"32":6,"102":4,"110":4,"112":4,"113":6,"139":6,"140":6,"169":12,"178":2}}],["time",{"2":{"25":2,"105":2,"169":4,"186":2}}],["timestamp为第一条数据的时间戳",{"2":{"138":1}}],["timestamp",{"0":{"49":1,"150":1,"153":1},"2":{"23":2,"34":2,"49":2,"68":2,"102":140,"133":2,"134":2,"135":2,"136":2,"138":2,"143":8,"145":6,"150":3,"153":3,"158":5,"159":4,"165":4,"182":10,"183":10,"184":10,"185":14,"186":10,"187":10,"188":10,"189":10,"190":10,"191":10}}],["timezone",{"0":{"120":1},"2":{"23":3,"120":3,"190":4}}],["template",{"2":{"102":6,"175":4}}],["telegram",{"0":{"81":1}}],["technicalindicator",{"2":{"16":4,"173":3,"178":1}}],["textalign",{"2":{"187":2}}],["textweight",{"2":{"169":4}}],["textfamily",{"2":{"169":4}}],["textsize",{"2":{"169":4}}],["textoffset",{"2":{"169":4}}],["text",{"0":{"51":1,"60":1,"66":1,"93":1},"2":{"1":1,"16":4,"32":4,"51":2,"60":6,"66":5,"67":2,"87":1,"93":2,"101":2,"102":2,"110":4,"139":4,"140":4,"169":20,"182":34,"184":16,"186":10,"187":4,"188":8,"189":12,"190":10,"191":26}}],["types",{"2":{"182":4,"191":6}}],["typescript开发",{"2":{"181":1}}],["typescriptklinecharts",{"2":{"105":1}}],["typescriptnew",{"2":{"88":1,"89":1,"90":1,"91":1,"92":1,"93":1}}],["typescript",{"2":{"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"68":1,"96":1,"110":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"154":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"165":1}}],["typescript重构",{"2":{"16":1}}],["type对应的图形的样式",{"2":{"165":2}}],["type对应的图形的属性",{"2":{"165":2}}],["type=",{"2":{"101":2,"102":2}}],["type",{"0":{"155":1,"156":1,"157":1,"160":1},"2":{"23":2,"32":4,"34":12,"75":2,"110":2,"112":4,"113":6,"139":4,"140":4,"155":3,"156":3,"157":3,"160":3,"165":4,"166":2,"169":4,"176":2,"182":4,"184":4,"188":2}}],["type是area时",{"2":{"1":1}}],["🛡",{"2":{"181":1}}],["📱",{"2":{"181":1}}],["💪",{"2":{"181":1}}],["📦",{"2":{"181":1}}],["📃",{"0":{"179":1},"1":{"180":1,"181":1}}],["🚀",{"0":{"100":1},"1":{"101":1,"102":1},"2":{"181":1}}],["💬",{"0":{"79":1},"1":{"80":1,"81":1,"82":1,"83":1,"84":1}}],["🙋",{"0":{"72":1},"1":{"73":1,"74":1,"75":1,"76":1,"77":1,"78":1}}],["📚",{"0":{"68":1}}],["🗑",{"2":{"16":1}}],["👉",{"2":{"16":1}}],["🛠️",{"0":{"170":1},"1":{"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1}}],["🛠",{"2":{"16":1}}],["💄",{"2":{"3":3,"4":1,"5":2,"6":1,"7":3,"8":1,"9":2,"10":2,"11":3,"12":1,"13":1,"14":1}}],["🐞",{"2":{"1":2,"2":1,"3":1,"5":2,"8":1,"11":2,"12":2,"13":1,"15":1}}],["📠",{"0":{"0":1},"1":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1}}],["2px",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["2196f3",{"2":{"169":4}}],["26a69a",{"2":{"140":4}}],["26a69a变更为",{"2":{"9":1}}],["26",{"2":{"108":3}}],["28",{"2":{"102":42}}],["2000",{"2":{"185":2}}],["20",{"2":{"102":42,"108":6,"140":2,"185":2}}],["204",{"2":{"102":14}}],["2023",{"2":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1}}],["230",{"2":{"169":6}}],["23",{"2":{"14":1}}],["249",{"2":{"169":6,"189":2}}],["243",{"2":{"169":12}}],["2432435",{"2":{"140":2}}],["24",{"2":{"10":1,"108":4}}],["2dc08e",{"2":{"9":1,"169":8,"189":2}}],["27",{"2":{"9":1}}],["255",{"2":{"169":8}}],["25",{"2":{"6":1,"169":4}}],["2",{"0":{"3":1,"8":2,"9":1,"10":1,"12":1},"2":{"99":22,"108":3,"139":2,"140":12,"143":6,"145":6,"154":2,"166":2,"169":104,"182":8,"183":8,"184":8,"185":8,"186":8,"187":8,"188":10,"189":24,"190":8,"191":8,"192":1}}],["22px",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["22",{"2":{"1":1,"169":8}}],["4px",{"2":{"182":2,"184":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["430px",{"2":{"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["45",{"2":{"169":6,"189":2}}],["40",{"2":{"108":1,"169":6,"189":2}}],["42",{"2":{"102":14}}],["4986",{"2":{"102":14}}],["4980",{"2":{"102":14}}],["4988",{"2":{"102":14}}],["4985",{"2":{"102":14}}],["4981",{"2":{"102":28}}],["4964",{"2":{"102":42}}],["4961",{"2":{"102":70}}],["4963",{"2":{"102":14}}],["4962",{"2":{"102":14}}],["4968",{"2":{"102":28}}],["4966",{"2":{"102":28}}],["4975",{"2":{"102":14}}],["4974",{"2":{"102":14}}],["4973",{"2":{"102":28}}],["4971",{"2":{"102":14}}],["4979",{"2":{"102":42}}],["4972",{"2":{"102":42}}],["4970",{"2":{"102":14}}],["4977",{"2":{"102":84}}],["4976",{"2":{"102":28}}],["4",{"0":{"1":1,"6":1,"21":1},"2":{"21":1,"140":2,"169":62,"182":4,"183":4,"184":4,"185":4,"186":4,"187":4,"188":4,"189":4,"190":4,"191":4}}],["5000",{"2":{"182":2,"183":2,"184":2,"185":2,"186":2,"187":2,"188":2,"189":2,"190":2,"191":2}}],["50",{"2":{"108":1}}],["55",{"2":{"102":14}}],["56",{"2":{"102":14}}],["53",{"2":{"102":28}}],["5",{"0":{"1":1,"2":1,"3":1,"4":1,"5":1,"20":1},"2":{"20":1,"108":3,"112":2,"113":2,"140":4,"169":8}}],["96",{"2":{"102":14}}],["935ebd",{"2":{"169":2}}],["93",{"2":{"102":42}}],["94",{"2":{"102":14}}],["99",{"2":{"102":28}}],["9",{"0":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1},"2":{"108":3,"170":1}}]],"serializationVersion":2}';export{t as default}; diff --git a/assets/chunks/VPLocalSearchBox.a4ea7daf.js b/assets/chunks/VPLocalSearchBox.51ccc229.js similarity index 99% rename from assets/chunks/VPLocalSearchBox.a4ea7daf.js rename to assets/chunks/VPLocalSearchBox.51ccc229.js index 7d1828bff..6b5c662ed 100644 --- a/assets/chunks/VPLocalSearchBox.a4ea7daf.js +++ b/assets/chunks/VPLocalSearchBox.51ccc229.js @@ -1,4 +1,4 @@ -import{X as Be,h as ie,x as Ve,ah as kt,ai as Nt,d as It,E as be,aj as tt,g as we,ak as Dt,al as _t,y as Ot,am as Rt,j as De,O as he,V as xe,an as Mt,S as Lt,U as Pt,ao as zt,Y as Bt,s as Vt,ap as $t,o as X,b as Wt,k as F,a1 as jt,l as U,aq as Kt,ar as Jt,as as Ut,c as te,n as rt,e as Fe,D as at,F as nt,a as de,t as ve,at as Ht,p as Gt,m as qt,au as it,av as Qt,a7 as Yt,ad as Zt,_ as Xt}from"./framework.c401375a.js";import{u as er,c as tr}from"./theme.cc8033bd.js";const rr={"en-US":()=>Be(()=>import("./@localSearchIndexen-US.c79b5f30.js"),[]),root:()=>Be(()=>import("./@localSearchIndexroot.2384476e.js"),[])};/*! +import{X as Be,h as ie,x as Ve,ah as kt,ai as Nt,d as It,E as be,aj as tt,g as we,ak as Dt,al as _t,y as Ot,am as Rt,j as De,O as he,V as xe,an as Mt,S as Lt,U as Pt,ao as zt,Y as Bt,s as Vt,ap as $t,o as X,b as Wt,k as F,a1 as jt,l as U,aq as Kt,ar as Jt,as as Ut,c as te,n as rt,e as Fe,D as at,F as nt,a as de,t as ve,at as Ht,p as Gt,m as qt,au as it,av as Qt,a7 as Yt,ad as Zt,_ as Xt}from"./framework.c401375a.js";import{u as er,c as tr}from"./theme.3e7d3ec0.js";const rr={"en-US":()=>Be(()=>import("./@localSearchIndexen-US.c79b5f30.js"),[]),root:()=>Be(()=>import("./@localSearchIndexroot.986d36be.js"),[])};/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var yt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ae=yt.join(","),mt=typeof Element>"u",se=mt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Te=!mt&&Element.prototype.getRootNode?function(o){var e;return o==null||(e=o.getRootNode)===null||e===void 0?void 0:e.call(o)}:function(o){return o==null?void 0:o.ownerDocument},Ce=function o(e,t){var r;t===void 0&&(t=!0);var n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),a=n===""||n==="true",i=a||t&&e&&o(e.parentNode);return i},ar=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},gt=function(e,t,r){if(Ce(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Ae));return t&&se.call(e,Ae)&&n.unshift(e),n=n.filter(r),n},bt=function o(e,t,r){for(var n=[],a=Array.from(e);a.length;){var i=a.shift();if(!Ce(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),u=s.length?s:i.children,l=o(u,!0,r);r.flatten?n.push.apply(n,l):n.push({scopeParent:i,candidates:l})}else{var h=se.call(i,Ae);h&&r.filter(i)&&(t||!e.includes(i))&&n.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),v=!Ce(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&v){var m=o(d===!0?i.children:d.children,!0,r);r.flatten?n.push.apply(n,m):n.push({scopeParent:i,candidates:m})}else a.unshift.apply(a,i.children)}}return n},wt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},oe=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||ar(e))&&!wt(e)?0:e.tabIndex},nr=function(e,t){var r=oe(e);return r<0&&t&&!wt(e)?0:r},ir=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},xt=function(e){return e.tagName==="INPUT"},or=function(e){return xt(e)&&e.type==="hidden"},sr=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},ur=function(e,t){for(var r=0;rsummary:first-of-type"),i=a?e.parentElement:e;if(se.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof n=="function"){for(var s=e;e;){var u=e.parentElement,l=Te(e);if(u&&!u.shadowRoot&&n(u)===!0)return ot(e);e.assignedSlot?e=e.assignedSlot:!u&&l!==e.ownerDocument?e=l.host:e=u}e=s}if(hr(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return ot(e);return!1},vr=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r=0)},yr=function o(e){var t=[],r=[];return e.forEach(function(n,a){var i=!!n.scopeParent,s=i?n.scopeParent:n,u=nr(s,i),l=i?o(n.candidates):s;u===0?i?t.push.apply(t,l):t.push(s):r.push({documentOrder:a,tabIndex:u,item:n,isScope:i,content:l})}),r.sort(ir).reduce(function(n,a){return a.isScope?n.push.apply(n,a.content):n.push(a.content),n},[]).concat(t)},mr=function(e,t){t=t||{};var r;return t.getShadowRoot?r=bt([e],t.includeContainer,{filter:$e.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:pr}):r=gt(e,t.includeContainer,$e.bind(null,t)),yr(r)},gr=function(e,t){t=t||{};var r;return t.getShadowRoot?r=bt([e],t.includeContainer,{filter:ke.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):r=gt(e,t.includeContainer,ke.bind(null,t)),r},ue=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return se.call(e,Ae)===!1?!1:$e(t,e)},br=yt.concat("iframe").join(","),_e=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return se.call(e,br)===!1?!1:ke(t,e)};/*! diff --git a/assets/chunks/theme.cc8033bd.js b/assets/chunks/theme.3e7d3ec0.js similarity index 99% rename from assets/chunks/theme.cc8033bd.js rename to assets/chunks/theme.3e7d3ec0.js index feb0eac6a..af7fe1ce8 100644 --- a/assets/chunks/theme.cc8033bd.js +++ b/assets/chunks/theme.3e7d3ec0.js @@ -1 +1 @@ -import{d as b,o as a,c as i,r as u,n as T,a as x,t as L,_ as m,b as $,w as v,e as f,T as ce,u as ze,i as De,f as ue,g as k,h as M,j as G,k as c,l,p as H,m as z,q as O,s as q,v as re,x as U,y as te,z as de,A as Ve,B as Ee,C as j,F as N,D as A,E as _e,G as Y,H as h,I as F,J as we,K as se,L as Z,M as ne,N as Fe,O as Oe,P as Le,Q as Ge,R as Ue,S as je,U as Ke,V as ke,W as Re,X as qe,Y as Se,Z as Me,$ as We,a0 as Ye,a1 as Je,a2 as Xe}from"./framework.c401375a.js";const Ze=b({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(s){return(e,t)=>(a(),i("span",{class:T(["VPBadge",e.type])},[u(e.$slots,"default",{},()=>[x(L(e.text),1)],!0)],2))}});const Qe=m(Ze,[["__scopeId","data-v-9613cc9f"]]),et={key:0,class:"VPBackdrop"},tt=b({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(s){return(e,t)=>(a(),$(ce,{name:"fade"},{default:v(()=>[e.show?(a(),i("div",et)):f("",!0)]),_:1}))}});const st=m(tt,[["__scopeId","data-v-c79a1216"]]),P=ze;function nt(s,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(s,e):(s(),(n=!0)&&setTimeout(()=>n=!1,e))}}function le(s){return/^\//.test(s)?s:`/${s}`}function J(s){const{pathname:e,search:t,hash:n,protocol:o}=new URL(s,"http://a.com");if(De(s)||s.startsWith("#")||!o.startsWith("http")||/\.(?!html|md)\w+($|\?)/i.test(s))return s;const{site:r}=P(),d=e.endsWith("/")||e.endsWith(".html")?s:s.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${n}`);return ue(d)}function X({removeCurrent:s=!0,correspondingLink:e=!1}={}){const{site:t,localeIndex:n,page:o,theme:r}=P(),d=k(()=>{var _,g;return{label:(_=t.value.locales[n.value])==null?void 0:_.label,link:((g=t.value.locales[n.value])==null?void 0:g.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:k(()=>Object.entries(t.value.locales).flatMap(([_,g])=>s&&d.value.label===g.label?[]:{text:g.label,link:ot(g.link||(_==="root"?"/":`/${_}/`),r.value.i18nRouting!==!1&&e,o.value.relativePath.slice(d.value.link.length-1),!t.value.cleanUrls)})),currentLang:d}}function ot(s,e,t,n){return e?s.replace(/\/$/,"")+le(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):s}const at=s=>(H("data-v-f87ff6e4"),s=s(),z(),s),rt={class:"NotFound"},lt={class:"code"},it={class:"title"},ct=at(()=>c("div",{class:"divider"},null,-1)),ut={class:"quote"},dt={class:"action"},_t=["href","aria-label"],vt=b({__name:"NotFound",setup(s){const{site:e,theme:t}=P(),{localeLinks:n}=X({removeCurrent:!1}),o=M("/");return G(()=>{var d;const r=window.location.pathname.replace(e.value.base,"").replace(/(^.*?\/).*$/,"/$1");n.value.length&&(o.value=((d=n.value.find(({link:p})=>p.startsWith(r)))==null?void 0:d.link)||n.value[0].link)}),(r,d)=>{var p,_,g,V,y;return a(),i("div",rt,[c("p",lt,L(((p=l(t).notFound)==null?void 0:p.code)??"404"),1),c("h1",it,L(((_=l(t).notFound)==null?void 0:_.title)??"PAGE NOT FOUND"),1),ct,c("blockquote",ut,L(((g=l(t).notFound)==null?void 0:g.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),c("div",dt,[c("a",{class:"link",href:l(ue)(o.value),"aria-label":((V=l(t).notFound)==null?void 0:V.linkLabel)??"go to home"},L(((y=l(t).notFound)==null?void 0:y.linkText)??"Take me home"),9,_t)])])}}});const pt=m(vt,[["__scopeId","data-v-f87ff6e4"]]);function Ne(s,e){if(Array.isArray(s))return Q(s);if(s==null)return[];e=le(e);const t=Object.keys(s).sort((o,r)=>r.split("/").length-o.split("/").length).find(o=>e.startsWith(le(o))),n=t?s[t]:[];return Array.isArray(n)?Q(n):Q(n.items,n.base)}function ht(s){const e=[];let t=0;for(const n in s){const o=s[n];if(o.items){t=e.push(o);continue}e[t]||e.push({items:[]}),e[t].items.push(o)}return e}function ft(s){const e=[];function t(n){for(const o of n)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(s),e}function ie(s,e){return Array.isArray(e)?e.some(t=>ie(s,t)):O(s,e.link)?!0:e.items?ie(s,e.items):!1}function Q(s,e){return[...s].map(t=>{const n={...t},o=n.base||e;return o&&n.link&&(n.link=o+n.link),n.items&&(n.items=Q(n.items,o)),n})}function D(){const{frontmatter:s,page:e,theme:t}=P(),n=re("(min-width: 960px)"),o=M(!1),r=k(()=>{const B=t.value.sidebar,w=e.value.relativePath;return B?Ne(B,w):[]}),d=M(r.value);U(r,(B,w)=>{JSON.stringify(B)!==JSON.stringify(w)&&(d.value=r.value)});const p=k(()=>s.value.sidebar!==!1&&d.value.length>0&&s.value.layout!=="home"),_=k(()=>g?s.value.aside==null?t.value.aside==="left":s.value.aside==="left":!1),g=k(()=>s.value.layout==="home"?!1:s.value.aside!=null?!!s.value.aside:t.value.aside!==!1),V=k(()=>p.value&&n.value),y=k(()=>p.value?ht(d.value):[]);function I(){o.value=!0}function S(){o.value=!1}function C(){o.value?S():I()}return{isOpen:o,sidebar:d,sidebarGroups:y,hasSidebar:p,hasAside:g,leftAside:_,isSidebarEnabled:V,open:I,close:S,toggle:C}}function mt(s,e){let t;te(()=>{t=s.value?document.activeElement:void 0}),G(()=>{window.addEventListener("keyup",n)}),de(()=>{window.removeEventListener("keyup",n)});function n(o){o.key==="Escape"&&s.value&&(e(),t==null||t.focus())}}const Ie=M(q?location.hash:"");q&&window.addEventListener("hashchange",()=>{Ie.value=location.hash});function gt(s){const{page:e}=P(),t=M(!1),n=k(()=>s.value.collapsed!=null),o=k(()=>!!s.value.link),r=M(!1),d=()=>{r.value=O(e.value.relativePath,s.value.link)};U([e,s,Ie],d),G(d);const p=k(()=>r.value?!0:s.value.items?ie(e.value.relativePath,s.value.items):!1),_=k(()=>!!(s.value.items&&s.value.items.length));te(()=>{t.value=!!(n.value&&s.value.collapsed)}),Ve(()=>{(r.value||p.value)&&(t.value=!1)});function g(){n.value&&(t.value=!t.value)}return{collapsed:t,collapsible:n,isLink:o,isActiveLink:r,hasActiveLink:p,hasChildren:_,toggle:g}}function bt(){const{hasSidebar:s}=D(),e=re("(min-width: 960px)"),t=re("(min-width: 1280px)");return{isAsideEnabled:k(()=>!t.value&&!e.value?!1:s.value?t.value:e.value)}}const $t=71;function ve(s){return typeof s.outline=="object"&&!Array.isArray(s.outline)&&s.outline.label||s.outlineTitle||"On this page"}function pe(s){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const n=Number(t.tagName[1]);return{title:kt(t),link:"#"+t.id,level:n}});return yt(e,s)}function kt(s){let e="";for(const t of s.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function yt(s,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[n,o]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;s=s.filter(d=>d.level>=n&&d.level<=o);const r=[];e:for(let d=0;d=0;_--){const g=s[_];if(g.level{requestAnimationFrame(r),window.addEventListener("scroll",n)}),Ee(()=>{d(location.hash)}),de(()=>{window.removeEventListener("scroll",n)});function r(){if(!t.value)return;const p=[].slice.call(s.value.querySelectorAll(".outline-link")),_=[].slice.call(document.querySelectorAll(".content .header-anchor")).filter(S=>p.some(C=>C.hash===S.hash&&S.offsetParent!==null)),g=window.scrollY,V=window.innerHeight,y=document.body.offsetHeight,I=Math.abs(g+V-y)<1;if(_.length&&I){d(_[_.length-1].hash);return}for(let S=0;S<_.length;S++){const C=_[S],B=_[S+1],[w,K]=Vt(S,C,B);if(w){d(K);return}}}function d(p){o&&o.classList.remove("active"),p==null?o=null:o=s.value.querySelector(`a[href="${decodeURIComponent(p)}"]`);const _=o;_?(_.classList.add("active"),e.value.style.top=_.offsetTop+33+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function ye(s){return s.parentElement.offsetTop-$t}function Vt(s,e,t){const n=window.scrollY;return s===0&&n===0?[!0,null]:n{const o=j("VPDocOutlineItem",!0);return a(),i("ul",{class:T(t.root?"root":"nested")},[(a(!0),i(N,null,A(t.headers,({children:r,link:d,title:p})=>(a(),i("li",null,[c("a",{class:"outline-link",href:d,onClick:e,title:p},L(p),9,wt),r!=null&&r.length?(a(),$(o,{key:0,headers:r},null,8,["headers"])):f("",!0)]))),256))],2)}}});const he=m(Lt,[["__scopeId","data-v-d0ee3533"]]),St=s=>(H("data-v-d330b1bb"),s=s(),z(),s),Mt={class:"content"},Nt={class:"outline-title",role:"heading","aria-level":"2"},It={"aria-labelledby":"doc-outline-aria-label"},Tt=St(()=>c("span",{class:"visually-hidden",id:"doc-outline-aria-label"}," Table of Contents for current page ",-1)),Ct=b({__name:"VPDocAsideOutline",setup(s){const{frontmatter:e,theme:t}=P(),n=_e([]);Y(()=>{n.value=pe(e.value.outline??t.value.outline)});const o=M(),r=M();return Pt(o,r),(d,p)=>(a(),i("div",{class:T(["VPDocAsideOutline",{"has-outline":n.value.length>0}]),ref_key:"container",ref:o,role:"navigation"},[c("div",Mt,[c("div",{class:"outline-marker",ref_key:"marker",ref:r},null,512),c("div",Nt,L(l(ve)(l(t))),1),c("nav",It,[Tt,h(he,{headers:n.value,root:!0},null,8,["headers"])])])],2))}});const Bt=m(Ct,[["__scopeId","data-v-d330b1bb"]]),At={class:"VPDocAsideCarbonAds"},xt=b({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(s){const e=()=>null;return(t,n)=>(a(),i("div",At,[h(l(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),Ht=s=>(H("data-v-3f215769"),s=s(),z(),s),zt={class:"VPDocAside"},Dt=Ht(()=>c("div",{class:"spacer"},null,-1)),Et=b({__name:"VPDocAside",setup(s){const{theme:e}=P();return(t,n)=>(a(),i("div",zt,[u(t.$slots,"aside-top",{},void 0,!0),u(t.$slots,"aside-outline-before",{},void 0,!0),h(Bt),u(t.$slots,"aside-outline-after",{},void 0,!0),Dt,u(t.$slots,"aside-ads-before",{},void 0,!0),l(e).carbonAds?(a(),$(xt,{key:0,"carbon-ads":l(e).carbonAds},null,8,["carbon-ads"])):f("",!0),u(t.$slots,"aside-ads-after",{},void 0,!0),u(t.$slots,"aside-bottom",{},void 0,!0)]))}});const Ft=m(Et,[["__scopeId","data-v-3f215769"]]);function Ot(){const{theme:s,page:e}=P();return k(()=>{const{text:t="Edit this page",pattern:n=""}=s.value.editLink||{};let o;return typeof n=="function"?o=n(e.value):o=n.replace(/:path/g,e.value.filePath),{url:o,text:t}})}function Gt(){const{page:s,theme:e,frontmatter:t}=P();return k(()=>{var _,g,V,y,I,S,C,B;const n=Ne(e.value.sidebar,s.value.relativePath),o=ft(n),r=o.findIndex(w=>O(s.value.relativePath,w.link)),d=((_=e.value.docFooter)==null?void 0:_.prev)===!1&&!t.value.prev||t.value.prev===!1,p=((g=e.value.docFooter)==null?void 0:g.next)===!1&&!t.value.next||t.value.next===!1;return{prev:d?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((V=o[r-1])==null?void 0:V.docFooterText)??((y=o[r-1])==null?void 0:y.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((I=o[r-1])==null?void 0:I.link)},next:p?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((S=o[r+1])==null?void 0:S.docFooterText)??((C=o[r+1])==null?void 0:C.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((B=o[r+1])==null?void 0:B.link)}}})}const Ut={},jt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Kt=c("path",{d:"M18,23H4c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h7c0.6,0,1,0.4,1,1s-0.4,1-1,1H4C3.4,5,3,5.4,3,6v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1v-7c0-0.6,0.4-1,1-1s1,0.4,1,1v7C21,21.7,19.7,23,18,23z"},null,-1),Rt=c("path",{d:"M8,17c-0.3,0-0.5-0.1-0.7-0.3C7,16.5,6.9,16.1,7,15.8l1-4c0-0.2,0.1-0.3,0.3-0.5l9.5-9.5c1.2-1.2,3.2-1.2,4.4,0c1.2,1.2,1.2,3.2,0,4.4l-9.5,9.5c-0.1,0.1-0.3,0.2-0.5,0.3l-4,1C8.2,17,8.1,17,8,17zM9.9,12.5l-0.5,2.1l2.1-0.5l9.3-9.3c0.4-0.4,0.4-1.1,0-1.6c-0.4-0.4-1.2-0.4-1.6,0l0,0L9.9,12.5z M18.5,2.5L18.5,2.5L18.5,2.5z"},null,-1),qt=[Kt,Rt];function Wt(s,e){return a(),i("svg",jt,qt)}const Yt=m(Ut,[["render",Wt]]),E=b({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(s){const e=s,t=k(()=>e.tag??(e.href?"a":"span")),n=k(()=>e.href&&we.test(e.href));return(o,r)=>(a(),$(F(t.value),{class:T(["VPLink",{link:o.href,"vp-external-link-icon":n.value,"no-icon":o.noIcon}]),href:o.href?l(J)(o.href):void 0,target:o.target??(n.value?"_blank":void 0),rel:o.rel??(n.value?"noreferrer":void 0)},{default:v(()=>[u(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Jt={class:"VPLastUpdated"},Xt=["datetime"],Zt=b({__name:"VPDocFooterLastUpdated",setup(s){const{theme:e,page:t,frontmatter:n,lang:o}=P(),r=k(()=>new Date(n.value.lastUpdated??t.value.lastUpdated)),d=k(()=>r.value.toISOString()),p=M("");return G(()=>{te(()=>{var _,g,V;p.value=new Intl.DateTimeFormat((g=(_=e.value.lastUpdated)==null?void 0:_.formatOptions)!=null&&g.forceLocale?o.value:void 0,((V=e.value.lastUpdated)==null?void 0:V.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(r.value)})}),(_,g)=>{var V;return a(),i("p",Jt,[x(L(((V=l(e).lastUpdated)==null?void 0:V.text)||l(e).lastUpdatedText||"Last updated")+": ",1),c("time",{datetime:d.value},L(p.value),9,Xt)])}}});const Qt=m(Zt,[["__scopeId","data-v-7e05ebdb"]]),es={key:0,class:"VPDocFooter"},ts={key:0,class:"edit-info"},ss={key:0,class:"edit-link"},ns={key:1,class:"last-updated"},os={key:1,class:"prev-next"},as={class:"pager"},rs=["href"],ls=["innerHTML"],is=["innerHTML"],cs={class:"pager"},us=["href"],ds=["innerHTML"],_s=["innerHTML"],vs=b({__name:"VPDocFooter",setup(s){const{theme:e,page:t,frontmatter:n}=P(),o=Ot(),r=Gt(),d=k(()=>e.value.editLink&&n.value.editLink!==!1),p=k(()=>t.value.lastUpdated&&n.value.lastUpdated!==!1),_=k(()=>d.value||p.value||r.value.prev||r.value.next);return(g,V)=>{var y,I,S,C,B,w;return _.value?(a(),i("footer",es,[u(g.$slots,"doc-footer-before",{},void 0,!0),d.value||p.value?(a(),i("div",ts,[d.value?(a(),i("div",ss,[h(E,{class:"edit-link-button",href:l(o).url,"no-icon":!0},{default:v(()=>[h(Yt,{class:"edit-link-icon","aria-label":"edit icon"}),x(" "+L(l(o).text),1)]),_:1},8,["href"])])):f("",!0),p.value?(a(),i("div",ns,[h(Qt)])):f("",!0)])):f("",!0),(y=l(r).prev)!=null&&y.link||(I=l(r).next)!=null&&I.link?(a(),i("nav",os,[c("div",as,[(S=l(r).prev)!=null&&S.link?(a(),i("a",{key:0,class:"pager-link prev",href:l(J)(l(r).prev.link)},[c("span",{class:"desc",innerHTML:((C=l(e).docFooter)==null?void 0:C.prev)||"Previous page"},null,8,ls),c("span",{class:"title",innerHTML:l(r).prev.text},null,8,is)],8,rs)):f("",!0)]),c("div",cs,[(B=l(r).next)!=null&&B.link?(a(),i("a",{key:0,class:"pager-link next",href:l(J)(l(r).next.link)},[c("span",{class:"desc",innerHTML:((w=l(e).docFooter)==null?void 0:w.next)||"Next page"},null,8,ds),c("span",{class:"title",innerHTML:l(r).next.text},null,8,_s)],8,us)):f("",!0)])])):f("",!0)])):f("",!0)}}});const ps=m(vs,[["__scopeId","data-v-ef5dee53"]]),hs={},fs={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},ms=c("path",{d:"M9,19c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l5.3-5.3L8.3,6.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l6,6c0.4,0.4,0.4,1,0,1.4l-6,6C9.5,18.9,9.3,19,9,19z"},null,-1),gs=[ms];function bs(s,e){return a(),i("svg",fs,gs)}const fe=m(hs,[["render",bs]]),$s={key:0,class:"VPDocOutlineDropdown"},ks={key:0,class:"items"},ys=b({__name:"VPDocOutlineDropdown",setup(s){const{frontmatter:e,theme:t}=P(),n=M(!1);Y(()=>{n.value=!1});const o=_e([]);return Y(()=>{o.value=pe(e.value.outline??t.value.outline)}),(r,d)=>o.value.length>0?(a(),i("div",$s,[c("button",{onClick:d[0]||(d[0]=p=>n.value=!n.value),class:T({open:n.value})},[x(L(l(ve)(l(t)))+" ",1),h(fe,{class:"icon"})],2),n.value?(a(),i("div",ks,[h(he,{headers:o.value},null,8,["headers"])])):f("",!0)])):f("",!0)}});const Ps=m(ys,[["__scopeId","data-v-eadfb36b"]]),Vs=s=>(H("data-v-6b87e69f"),s=s(),z(),s),ws={class:"container"},Ls=Vs(()=>c("div",{class:"aside-curtain"},null,-1)),Ss={class:"aside-container"},Ms={class:"aside-content"},Ns={class:"content"},Is={class:"content-container"},Ts={class:"main"},Cs=b({__name:"VPDoc",setup(s){const{theme:e}=P(),t=se(),{hasSidebar:n,hasAside:o,leftAside:r}=D(),d=k(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(p,_)=>{const g=j("Content");return a(),i("div",{class:T(["VPDoc",{"has-sidebar":l(n),"has-aside":l(o)}])},[u(p.$slots,"doc-top",{},void 0,!0),c("div",ws,[l(o)?(a(),i("div",{key:0,class:T(["aside",{"left-aside":l(r)}])},[Ls,c("div",Ss,[c("div",Ms,[h(Ft,null,{"aside-top":v(()=>[u(p.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[u(p.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[u(p.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[u(p.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[u(p.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[u(p.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):f("",!0),c("div",Ns,[c("div",Is,[u(p.$slots,"doc-before",{},void 0,!0),h(Ps),c("main",Ts,[h(g,{class:T(["vp-doc",[d.value,l(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),h(ps,null,{"doc-footer-before":v(()=>[u(p.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),u(p.$slots,"doc-after",{},void 0,!0)])])]),u(p.$slots,"doc-bottom",{},void 0,!0)],2)}}});const Bs=m(Cs,[["__scopeId","data-v-6b87e69f"]]),As=b({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{}},setup(s){const e=s,t=k(()=>e.href&&we.test(e.href)),n=k(()=>e.tag||e.href?"a":"button");return(o,r)=>(a(),$(F(n.value),{class:T(["VPButton",[o.size,o.theme]]),href:o.href?l(J)(o.href):void 0,target:t.value?"_blank":void 0,rel:t.value?"noreferrer":void 0},{default:v(()=>[x(L(o.text),1)]),_:1},8,["class","href","target","rel"]))}});const xs=m(As,[["__scopeId","data-v-c1c5efc1"]]),Hs=["src","alt"],zs=b({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(s){return(e,t)=>{const n=j("VPImage",!0);return e.image?(a(),i(N,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),i("img",Z({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:l(ue)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Hs)):(a(),i(N,{key:1},[h(n,Z({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),h(n,Z({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):f("",!0)}}});const ee=m(zs,[["__scopeId","data-v-8426fc1a"]]),Ds=s=>(H("data-v-da5d1713"),s=s(),z(),s),Es={class:"container"},Fs={class:"main"},Os={key:0,class:"name"},Gs=["innerHTML"],Us=["innerHTML"],js=["innerHTML"],Ks={key:0,class:"actions"},Rs={key:0,class:"image"},qs={class:"image-container"},Ws=Ds(()=>c("div",{class:"image-bg"},null,-1)),Ys=b({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(s){const e=ne("hero-image-slot-exists");return(t,n)=>(a(),i("div",{class:T(["VPHero",{"has-image":t.image||l(e)}])},[c("div",Es,[c("div",Fs,[u(t.$slots,"home-hero-info",{},()=>[t.name?(a(),i("h1",Os,[c("span",{innerHTML:t.name,class:"clip"},null,8,Gs)])):f("",!0),t.text?(a(),i("p",{key:1,innerHTML:t.text,class:"text"},null,8,Us)):f("",!0),t.tagline?(a(),i("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,js)):f("",!0)],!0),t.actions?(a(),i("div",Ks,[(a(!0),i(N,null,A(t.actions,o=>(a(),i("div",{key:o.link,class:"action"},[h(xs,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link},null,8,["theme","text","href"])]))),128))])):f("",!0)]),t.image||l(e)?(a(),i("div",Rs,[c("div",qs,[Ws,u(t.$slots,"home-hero-image",{},()=>[t.image?(a(),$(ee,{key:0,class:"image-src",image:t.image},null,8,["image"])):f("",!0)],!0)])])):f("",!0)])],2))}});const Js=m(Ys,[["__scopeId","data-v-da5d1713"]]),Xs=b({__name:"VPHomeHero",setup(s){const{frontmatter:e}=P();return(t,n)=>l(e).hero?(a(),$(Js,{key:0,class:"VPHomeHero",name:l(e).hero.name,text:l(e).hero.text,tagline:l(e).hero.tagline,image:l(e).hero.image,actions:l(e).hero.actions},{"home-hero-info":v(()=>[u(t.$slots,"home-hero-info")]),"home-hero-image":v(()=>[u(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):f("",!0)}}),Zs={},Qs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},en=c("path",{d:"M19.9,12.4c0.1-0.2,0.1-0.5,0-0.8c-0.1-0.1-0.1-0.2-0.2-0.3l-7-7c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l5.3,5.3H5c-0.6,0-1,0.4-1,1s0.4,1,1,1h11.6l-5.3,5.3c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l7-7C19.8,12.6,19.9,12.5,19.9,12.4z"},null,-1),tn=[en];function sn(s,e){return a(),i("svg",Qs,tn)}const nn=m(Zs,[["render",sn]]),on={class:"box"},an={key:0,class:"icon"},rn=["innerHTML"],ln=["innerHTML"],cn=["innerHTML"],un={key:4,class:"link-text"},dn={class:"link-text-value"},_n=b({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(s){return(e,t)=>(a(),$(E,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:v(()=>[c("article",on,[typeof e.icon=="object"&&e.icon.wrap?(a(),i("div",an,[h(ee,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(a(),$(ee,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(a(),i("div",{key:2,class:"icon",innerHTML:e.icon},null,8,rn)):f("",!0),c("h2",{class:"title",innerHTML:e.title},null,8,ln),e.details?(a(),i("p",{key:3,class:"details",innerHTML:e.details},null,8,cn)):f("",!0),e.linkText?(a(),i("div",un,[c("p",dn,[x(L(e.linkText)+" ",1),h(nn,{class:"link-text-icon"})])])):f("",!0)])]),_:1},8,["href","rel","target","tag"]))}});const vn=m(_n,[["__scopeId","data-v-33204567"]]),pn={key:0,class:"VPFeatures"},hn={class:"container"},fn={class:"items"},mn=b({__name:"VPFeatures",props:{features:{}},setup(s){const e=s,t=k(()=>{const n=e.features.length;if(n){if(n===2)return"grid-2";if(n===3)return"grid-3";if(n%3===0)return"grid-6";if(n>3)return"grid-4"}else return});return(n,o)=>n.features?(a(),i("div",pn,[c("div",hn,[c("div",fn,[(a(!0),i(N,null,A(n.features,r=>(a(),i("div",{key:r.title,class:T(["item",[t.value]])},[h(vn,{icon:r.icon,title:r.title,details:r.details,link:r.link,"link-text":r.linkText,rel:r.rel,target:r.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):f("",!0)}});const gn=m(mn,[["__scopeId","data-v-a6181336"]]),bn=b({__name:"VPHomeFeatures",setup(s){const{frontmatter:e}=P();return(t,n)=>l(e).features?(a(),$(gn,{key:0,class:"VPHomeFeatures",features:l(e).features},null,8,["features"])):f("",!0)}}),$n={class:"VPHome"},kn=b({__name:"VPHome",setup(s){return(e,t)=>{const n=j("Content");return a(),i("div",$n,[u(e.$slots,"home-hero-before",{},void 0,!0),h(Xs,null,{"home-hero-info":v(()=>[u(e.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[u(e.$slots,"home-hero-image",{},void 0,!0)]),_:3}),u(e.$slots,"home-hero-after",{},void 0,!0),u(e.$slots,"home-features-before",{},void 0,!0),h(bn),u(e.$slots,"home-features-after",{},void 0,!0),h(n)])}}});const yn=m(kn,[["__scopeId","data-v-d82743a8"]]),Pn={},Vn={class:"VPPage"};function wn(s,e){const t=j("Content");return a(),i("div",Vn,[u(s.$slots,"page-top"),h(t),u(s.$slots,"page-bottom")])}const Ln=m(Pn,[["render",wn]]),Sn=b({__name:"VPContent",setup(s){const{page:e,frontmatter:t}=P(),{hasSidebar:n}=D();return(o,r)=>(a(),i("div",{class:T(["VPContent",{"has-sidebar":l(n),"is-home":l(t).layout==="home"}]),id:"VPContent"},[l(e).isNotFound?u(o.$slots,"not-found",{key:0},()=>[h(pt)],!0):l(t).layout==="page"?(a(),$(Ln,{key:1},{"page-top":v(()=>[u(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[u(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):l(t).layout==="home"?(a(),$(yn,{key:2},{"home-hero-before":v(()=>[u(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info":v(()=>[u(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[u(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[u(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[u(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[u(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):l(t).layout&&l(t).layout!=="doc"?(a(),$(F(l(t).layout),{key:3})):(a(),$(Bs,{key:4},{"doc-top":v(()=>[u(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[u(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":v(()=>[u(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[u(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[u(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":v(()=>[u(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":v(()=>[u(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[u(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[u(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[u(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":v(()=>[u(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}});const Mn=m(Sn,[["__scopeId","data-v-669faec9"]]),Nn={class:"container"},In=["innerHTML"],Tn=["innerHTML"],Cn=b({__name:"VPFooter",setup(s){const{theme:e,frontmatter:t}=P(),{hasSidebar:n}=D();return(o,r)=>l(e).footer&&l(t).footer!==!1?(a(),i("footer",{key:0,class:T(["VPFooter",{"has-sidebar":l(n)}])},[c("div",Nn,[l(e).footer.message?(a(),i("p",{key:0,class:"message",innerHTML:l(e).footer.message},null,8,In)):f("",!0),l(e).footer.copyright?(a(),i("p",{key:1,class:"copyright",innerHTML:l(e).footer.copyright},null,8,Tn)):f("",!0)])],2)):f("",!0)}});const Bn=m(Cn,[["__scopeId","data-v-e03eb2e1"]]),An={class:"header"},xn={class:"outline"},Hn=b({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(s){const e=s,{theme:t}=P(),n=M(!1),o=M(0),r=M();Y(()=>{n.value=!1});function d(){n.value=!n.value,o.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function p(g){g.target.classList.contains("outline-link")&&(r.value&&(r.value.style.transition="none"),Oe(()=>{n.value=!1}))}function _(){n.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(g,V)=>(a(),i("div",{class:"VPLocalNavOutlineDropdown",style:Fe({"--vp-vh":o.value+"px"})},[g.headers.length>0?(a(),i("button",{key:0,onClick:d,class:T({open:n.value})},[x(L(l(ve)(l(t)))+" ",1),h(fe,{class:"icon"})],2)):(a(),i("button",{key:1,onClick:_},L(l(t).returnToTopLabel||"Return to top"),1)),h(ce,{name:"flyout"},{default:v(()=>[n.value?(a(),i("div",{key:0,ref_key:"items",ref:r,class:"items",onClick:p},[c("div",An,[c("a",{class:"top-link",href:"#",onClick:_},L(l(t).returnToTopLabel||"Return to top"),1)]),c("div",xn,[h(he,{headers:g.headers},null,8,["headers"])])],512)):f("",!0)]),_:1})],4))}});const zn=m(Hn,[["__scopeId","data-v-1c15a60a"]]),Dn={},En={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Fn=c("path",{d:"M17,11H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,11,17,11z"},null,-1),On=c("path",{d:"M21,7H3C2.4,7,2,6.6,2,6s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,7,21,7z"},null,-1),Gn=c("path",{d:"M21,15H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,15,21,15z"},null,-1),Un=c("path",{d:"M17,19H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,19,17,19z"},null,-1),jn=[Fn,On,Gn,Un];function Kn(s,e){return a(),i("svg",En,jn)}const Rn=m(Dn,[["render",Kn]]),qn=["aria-expanded"],Wn={class:"menu-text"},Yn=b({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(s){const{theme:e,frontmatter:t}=P(),{hasSidebar:n}=D(),{y:o}=Le(),r=_e([]),d=M(0);G(()=>{d.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),Y(()=>{r.value=pe(t.value.outline??e.value.outline)});const p=k(()=>r.value.length===0&&!n.value),_=k(()=>({VPLocalNav:!0,fixed:p.value,"reached-top":o.value>=d.value}));return(g,V)=>l(t).layout!=="home"&&(!p.value||l(o)>=d.value)?(a(),i("div",{key:0,class:T(_.value)},[l(n)?(a(),i("button",{key:0,class:"menu","aria-expanded":g.open,"aria-controls":"VPSidebarNav",onClick:V[0]||(V[0]=y=>g.$emit("open-menu"))},[h(Rn,{class:"menu-icon"}),c("span",Wn,L(l(e).sidebarMenuLabel||"Menu"),1)],8,qn)):f("",!0),h(zn,{headers:r.value,navHeight:d.value},null,8,["headers","navHeight"])],2)):f("",!0)}});const Jn=m(Yn,[["__scopeId","data-v-79c8c1df"]]);function Xn(){const s=M(!1);function e(){s.value=!0,window.addEventListener("resize",o)}function t(){s.value=!1,window.removeEventListener("resize",o)}function n(){s.value?t():e()}function o(){window.outerWidth>=768&&t()}const r=se();return U(()=>r.path,t),{isScreenOpen:s,openScreen:e,closeScreen:t,toggleScreen:n}}const Zn={},Qn={class:"VPSwitch",type:"button",role:"switch"},eo={class:"check"},to={key:0,class:"icon"};function so(s,e){return a(),i("button",Qn,[c("span",eo,[s.$slots.default?(a(),i("span",to,[u(s.$slots,"default",{},void 0,!0)])):f("",!0)])])}const no=m(Zn,[["render",so],["__scopeId","data-v-b1685198"]]),oo={},ao={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},ro=c("path",{d:"M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"},null,-1),lo=[ro];function io(s,e){return a(),i("svg",ao,lo)}const co=m(oo,[["render",io]]),uo={},_o={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},vo=Ge('',9),po=[vo];function ho(s,e){return a(),i("svg",_o,po)}const fo=m(uo,[["render",ho]]),mo=b({__name:"VPSwitchAppearance",setup(s){const{isDark:e}=P(),t=ne("toggle-appearance",()=>{e.value=!e.value});return(n,o)=>(a(),$(no,{title:"toggle dark mode",class:"VPSwitchAppearance","aria-checked":l(e),onClick:l(t)},{default:v(()=>[h(fo,{class:"sun"}),h(co,{class:"moon"})]),_:1},8,["aria-checked","onClick"]))}});const me=m(mo,[["__scopeId","data-v-ce54a7d1"]]),go={key:0,class:"VPNavBarAppearance"},bo=b({__name:"VPNavBarAppearance",setup(s){const{site:e}=P();return(t,n)=>l(e).appearance&&l(e).appearance!=="force-dark"?(a(),i("div",go,[h(me)])):f("",!0)}});const $o=m(bo,[["__scopeId","data-v-e6aabb21"]]),ge=M();let Te=!1,ae=0;function ko(s){const e=M(!1);if(q){!Te&&yo(),ae++;const t=U(ge,n=>{var o,r,d;n===s.el.value||(o=s.el.value)!=null&&o.contains(n)?(e.value=!0,(r=s.onFocus)==null||r.call(s)):(e.value=!1,(d=s.onBlur)==null||d.call(s))});de(()=>{t(),ae--,ae||Po()})}return Ue(e)}function yo(){document.addEventListener("focusin",Ce),Te=!0,ge.value=document.activeElement}function Po(){document.removeEventListener("focusin",Ce)}function Ce(){ge.value=document.activeElement}const Vo={},wo={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Lo=c("path",{d:"M12,16c-0.3,0-0.5-0.1-0.7-0.3l-6-6c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l5.3,5.3l5.3-5.3c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-6,6C12.5,15.9,12.3,16,12,16z"},null,-1),So=[Lo];function Mo(s,e){return a(),i("svg",wo,So)}const Be=m(Vo,[["render",Mo]]),No={},Io={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},To=c("circle",{cx:"12",cy:"12",r:"2"},null,-1),Co=c("circle",{cx:"19",cy:"12",r:"2"},null,-1),Bo=c("circle",{cx:"5",cy:"12",r:"2"},null,-1),Ao=[To,Co,Bo];function xo(s,e){return a(),i("svg",Io,Ao)}const Ho=m(No,[["render",xo]]),zo={class:"VPMenuLink"},Do=b({__name:"VPMenuLink",props:{item:{}},setup(s){const{page:e}=P();return(t,n)=>(a(),i("div",zo,[h(E,{class:T({active:l(O)(l(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:v(()=>[x(L(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}});const oe=m(Do,[["__scopeId","data-v-43f1e123"]]),Eo={class:"VPMenuGroup"},Fo={key:0,class:"title"},Oo=b({__name:"VPMenuGroup",props:{text:{},items:{}},setup(s){return(e,t)=>(a(),i("div",Eo,[e.text?(a(),i("p",Fo,L(e.text),1)):f("",!0),(a(!0),i(N,null,A(e.items,n=>(a(),i(N,null,["link"in n?(a(),$(oe,{key:0,item:n},null,8,["item"])):f("",!0)],64))),256))]))}});const Go=m(Oo,[["__scopeId","data-v-69e747b5"]]),Uo={class:"VPMenu"},jo={key:0,class:"items"},Ko=b({__name:"VPMenu",props:{items:{}},setup(s){return(e,t)=>(a(),i("div",Uo,[e.items?(a(),i("div",jo,[(a(!0),i(N,null,A(e.items,n=>(a(),i(N,{key:n.text},["link"in n?(a(),$(oe,{key:0,item:n},null,8,["item"])):(a(),$(Go,{key:1,text:n.text,items:n.items},null,8,["text","items"]))],64))),128))])):f("",!0),u(e.$slots,"default",{},void 0,!0)]))}});const Ro=m(Ko,[["__scopeId","data-v-e7ea1737"]]),qo=["aria-expanded","aria-label"],Wo={key:0,class:"text"},Yo=["innerHTML"],Jo={class:"menu"},Xo=b({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(s){const e=M(!1),t=M();ko({el:t,onBlur:n});function n(){e.value=!1}return(o,r)=>(a(),i("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:r[1]||(r[1]=d=>e.value=!0),onMouseleave:r[2]||(r[2]=d=>e.value=!1)},[c("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":o.label,onClick:r[0]||(r[0]=d=>e.value=!e.value)},[o.button||o.icon?(a(),i("span",Wo,[o.icon?(a(),$(F(o.icon),{key:0,class:"option-icon"})):f("",!0),o.button?(a(),i("span",{key:1,innerHTML:o.button},null,8,Yo)):f("",!0),h(Be,{class:"text-icon"})])):(a(),$(Ho,{key:1,class:"icon"}))],8,qo),c("div",Jo,[h(Ro,{items:o.items},{default:v(()=>[u(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}});const be=m(Xo,[["__scopeId","data-v-9c007e85"]]),Zo={discord:'Discord',facebook:'Facebook',github:'GitHub',instagram:'Instagram',linkedin:'LinkedIn',mastodon:'Mastodon',slack:'Slack',twitter:'Twitter',x:'X',youtube:'YouTube'},Qo=["href","aria-label","innerHTML"],ea=b({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(s){const e=s,t=k(()=>typeof e.icon=="object"?e.icon.svg:Zo[e.icon]);return(n,o)=>(a(),i("a",{class:"VPSocialLink no-icon",href:n.link,"aria-label":n.ariaLabel??(typeof n.icon=="string"?n.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,Qo))}});const ta=m(ea,[["__scopeId","data-v-f80f8133"]]),sa={class:"VPSocialLinks"},na=b({__name:"VPSocialLinks",props:{links:{}},setup(s){return(e,t)=>(a(),i("div",sa,[(a(!0),i(N,null,A(e.links,({link:n,icon:o,ariaLabel:r})=>(a(),$(ta,{key:n,icon:o,link:n,ariaLabel:r},null,8,["icon","link","ariaLabel"]))),128))]))}});const $e=m(na,[["__scopeId","data-v-7bc22406"]]),oa={key:0,class:"group translations"},aa={class:"trans-title"},ra={key:1,class:"group"},la={class:"item appearance"},ia={class:"label"},ca={class:"appearance-action"},ua={key:2,class:"group"},da={class:"item social-links"},_a=b({__name:"VPNavBarExtra",setup(s){const{site:e,theme:t}=P(),{localeLinks:n,currentLang:o}=X({correspondingLink:!0}),r=k(()=>n.value.length&&o.value.label||e.value.appearance||t.value.socialLinks);return(d,p)=>r.value?(a(),$(be,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[l(n).length&&l(o).label?(a(),i("div",oa,[c("p",aa,L(l(o).label),1),(a(!0),i(N,null,A(l(n),_=>(a(),$(oe,{key:_.link,item:_},null,8,["item"]))),128))])):f("",!0),l(e).appearance?(a(),i("div",ra,[c("div",la,[c("p",ia,L(l(t).darkModeSwitchLabel||"Appearance"),1),c("div",ca,[h(me)])])])):f("",!0),l(t).socialLinks?(a(),i("div",ua,[c("div",da,[h($e,{class:"social-links-list",links:l(t).socialLinks},null,8,["links"])])])):f("",!0)]),_:1})):f("",!0)}});const va=m(_a,[["__scopeId","data-v-40855f84"]]),pa=s=>(H("data-v-e5dd9c1c"),s=s(),z(),s),ha=["aria-expanded"],fa=pa(()=>c("span",{class:"container"},[c("span",{class:"top"}),c("span",{class:"middle"}),c("span",{class:"bottom"})],-1)),ma=[fa],ga=b({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(s){return(e,t)=>(a(),i("button",{type:"button",class:T(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=n=>e.$emit("click"))},ma,10,ha))}});const ba=m(ga,[["__scopeId","data-v-e5dd9c1c"]]),$a=["innerHTML"],ka=b({__name:"VPNavBarMenuLink",props:{item:{}},setup(s){const{page:e}=P();return(t,n)=>(a(),$(E,{class:T({VPNavBarMenuLink:!0,active:l(O)(l(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:v(()=>[c("span",{innerHTML:t.item.text},null,8,$a)]),_:1},8,["class","href","target","rel"]))}});const ya=m(ka,[["__scopeId","data-v-42ef59de"]]),Pa=b({__name:"VPNavBarMenuGroup",props:{item:{}},setup(s){const e=s,{page:t}=P(),n=r=>"link"in r?O(t.value.relativePath,r.link,!!e.item.activeMatch):r.items.some(n),o=k(()=>n(e.item));return(r,d)=>(a(),$(be,{class:T({VPNavBarMenuGroup:!0,active:l(O)(l(t).relativePath,r.item.activeMatch,!!r.item.activeMatch)||o.value}),button:r.item.text,items:r.item.items},null,8,["class","button","items"]))}}),Va=s=>(H("data-v-7f418b0f"),s=s(),z(),s),wa={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},La=Va(()=>c("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),Sa=b({__name:"VPNavBarMenu",setup(s){const{theme:e}=P();return(t,n)=>l(e).nav?(a(),i("nav",wa,[La,(a(!0),i(N,null,A(l(e).nav,o=>(a(),i(N,{key:o.text},["link"in o?(a(),$(ya,{key:0,item:o},null,8,["item"])):(a(),$(Pa,{key:1,item:o},null,8,["item"]))],64))),128))])):f("",!0)}});const Ma=m(Sa,[["__scopeId","data-v-7f418b0f"]]);function Na(s,e){const{localeIndex:t}=P();function n(o){var S,C;const r=o.split("."),d=s&&typeof s=="object",p=d&&((C=(S=s.locales)==null?void 0:S[t.value])==null?void 0:C.translations)||null,_=d&&s.translations||null;let g=p,V=_,y=e;const I=r.pop();for(const B of r){let w=null;const K=y==null?void 0:y[B];K&&(w=y=K);const W=V==null?void 0:V[B];W&&(w=V=W);const R=g==null?void 0:g[B];R&&(w=g=R),K||(y=w),W||(V=w),R||(g=w)}return(g==null?void 0:g[I])??(V==null?void 0:V[I])??(y==null?void 0:y[I])??""}return n}const Ia=["aria-label"],Ta={class:"DocSearch-Button-Container"},Ca=c("svg",{class:"DocSearch-Search-Icon",width:"20",height:"20",viewBox:"0 0 20 20","aria-label":"search icon"},[c("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"})],-1),Ba={class:"DocSearch-Button-Placeholder"},Aa=c("span",{class:"DocSearch-Button-Keys"},[c("kbd",{class:"DocSearch-Button-Key"}),c("kbd",{class:"DocSearch-Button-Key"},"K")],-1),Pe=b({__name:"VPNavBarSearchButton",setup(s){const{theme:e}=P(),t={button:{buttonText:"Search",buttonAriaLabel:"Search"}},n=je(Na)(Ke(()=>{var o;return(o=e.value.search)==null?void 0:o.options}),t);return(o,r)=>(a(),i("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":l(n)("button.buttonAriaLabel")},[c("span",Ta,[Ca,c("span",Ba,L(l(n)("button.buttonText")),1)]),Aa],8,Ia))}});const xa={class:"VPNavBarSearch"},Ha={id:"local-search"},za={key:1,id:"docsearch"},Da=b({__name:"VPNavBarSearch",setup(s){const e=Re(()=>qe(()=>import("./VPLocalSearchBox.a4ea7daf.js"),["assets/chunks/VPLocalSearchBox.a4ea7daf.js","assets/chunks/framework.c401375a.js"])),t=()=>null,{theme:n}=P(),o=M(!1),r=M(!1);G(()=>{});function d(){o.value||(o.value=!0,setTimeout(p,16))}function p(){const y=new Event("keydown");y.key="k",y.metaKey=!0,window.dispatchEvent(y),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||p()},16)}function _(y){const I=y.target,S=I.tagName;return I.isContentEditable||S==="INPUT"||S==="SELECT"||S==="TEXTAREA"}const g=M(!1);ke("k",y=>{(y.ctrlKey||y.metaKey)&&(y.preventDefault(),g.value=!0)}),ke("/",y=>{_(y)||(y.preventDefault(),g.value=!0)});const V="local";return(y,I)=>{var S;return a(),i("div",xa,[l(V)==="local"?(a(),i(N,{key:0},[g.value?(a(),$(l(e),{key:0,onClose:I[0]||(I[0]=C=>g.value=!1)})):f("",!0),c("div",Ha,[h(Pe,{onClick:I[1]||(I[1]=C=>g.value=!0)})])],64)):l(V)==="algolia"?(a(),i(N,{key:1},[o.value?(a(),$(l(t),{key:0,algolia:((S=l(n).search)==null?void 0:S.options)??l(n).algolia,onVnodeBeforeMount:I[2]||(I[2]=C=>r.value=!0)},null,8,["algolia"])):f("",!0),r.value?f("",!0):(a(),i("div",za,[h(Pe,{onClick:d})]))],64)):f("",!0)])}}});const Ea=b({__name:"VPNavBarSocialLinks",setup(s){const{theme:e}=P();return(t,n)=>l(e).socialLinks?(a(),$($e,{key:0,class:"VPNavBarSocialLinks",links:l(e).socialLinks},null,8,["links"])):f("",!0)}});const Fa=m(Ea,[["__scopeId","data-v-0394ad82"]]),Oa=["href"],Ga=b({__name:"VPNavBarTitle",setup(s){const{site:e,theme:t}=P(),{hasSidebar:n}=D(),{currentLang:o}=X();return(r,d)=>(a(),i("div",{class:T(["VPNavBarTitle",{"has-sidebar":l(n)}])},[c("a",{class:"title",href:l(t).logoLink??l(J)(l(o).link)},[u(r.$slots,"nav-bar-title-before",{},void 0,!0),l(t).logo?(a(),$(ee,{key:0,class:"logo",image:l(t).logo},null,8,["image"])):f("",!0),l(t).siteTitle?(a(),i(N,{key:1},[x(L(l(t).siteTitle),1)],64)):l(t).siteTitle===void 0?(a(),i(N,{key:2},[x(L(l(e).title),1)],64)):f("",!0),u(r.$slots,"nav-bar-title-after",{},void 0,!0)],8,Oa)],2))}});const Ua=m(Ga,[["__scopeId","data-v-86d1bed8"]]),ja={},Ka={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Ra=c("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),qa=c("path",{d:" M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z ",class:"css-c4d79v"},null,-1),Wa=[Ra,qa];function Ya(s,e){return a(),i("svg",Ka,Wa)}const Ae=m(ja,[["render",Ya]]),Ja={class:"items"},Xa={class:"title"},Za=b({__name:"VPNavBarTranslations",setup(s){const{theme:e}=P(),{localeLinks:t,currentLang:n}=X({correspondingLink:!0});return(o,r)=>l(t).length&&l(n).label?(a(),$(be,{key:0,class:"VPNavBarTranslations",icon:Ae,label:l(e).langMenuLabel||"Change language"},{default:v(()=>[c("div",Ja,[c("p",Xa,L(l(n).label),1),(a(!0),i(N,null,A(l(t),d=>(a(),$(oe,{key:d.link,item:d},null,8,["item"]))),128))])]),_:1},8,["label"])):f("",!0)}});const Qa=m(Za,[["__scopeId","data-v-74abcbb9"]]),er=s=>(H("data-v-a0fd61f4"),s=s(),z(),s),tr={class:"container"},sr={class:"title"},nr={class:"content"},or=er(()=>c("div",{class:"curtain"},null,-1)),ar={class:"content-body"},rr=b({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(s){const{y:e}=Le(),{hasSidebar:t}=D(),{frontmatter:n}=P(),o=M({});return Ve(()=>{o.value={"has-sidebar":t.value,top:n.value.layout==="home"&&e.value===0}}),(r,d)=>(a(),i("div",{class:T(["VPNavBar",o.value])},[c("div",tr,[c("div",sr,[h(Ua,null,{"nav-bar-title-before":v(()=>[u(r.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[u(r.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),c("div",nr,[or,c("div",ar,[u(r.$slots,"nav-bar-content-before",{},void 0,!0),h(Da,{class:"search"}),h(Ma,{class:"menu"}),h(Qa,{class:"translations"}),h($o,{class:"appearance"}),h(Fa,{class:"social-links"}),h(va,{class:"extra"}),u(r.$slots,"nav-bar-content-after",{},void 0,!0),h(ba,{class:"hamburger",active:r.isScreenOpen,onClick:d[0]||(d[0]=p=>r.$emit("toggle-screen"))},null,8,["active"])])])])],2))}});const lr=m(rr,[["__scopeId","data-v-a0fd61f4"]]),ir={key:0,class:"VPNavScreenAppearance"},cr={class:"text"},ur=b({__name:"VPNavScreenAppearance",setup(s){const{site:e,theme:t}=P();return(n,o)=>l(e).appearance?(a(),i("div",ir,[c("p",cr,L(l(t).darkModeSwitchLabel||"Appearance"),1),h(me)])):f("",!0)}});const dr=m(ur,[["__scopeId","data-v-add8f686"]]),_r=b({__name:"VPNavScreenMenuLink",props:{item:{}},setup(s){const e=ne("close-screen");return(t,n)=>(a(),$(E,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:l(e)},{default:v(()=>[x(L(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}});const vr=m(_r,[["__scopeId","data-v-05f27b2a"]]),pr={},hr={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},fr=c("path",{d:"M18.9,10.9h-6v-6c0-0.6-0.4-1-1-1s-1,0.4-1,1v6h-6c-0.6,0-1,0.4-1,1s0.4,1,1,1h6v6c0,0.6,0.4,1,1,1s1-0.4,1-1v-6h6c0.6,0,1-0.4,1-1S19.5,10.9,18.9,10.9z"},null,-1),mr=[fr];function gr(s,e){return a(),i("svg",hr,mr)}const br=m(pr,[["render",gr]]),$r=b({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(s){const e=ne("close-screen");return(t,n)=>(a(),$(E,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:l(e)},{default:v(()=>[x(L(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}});const xe=m($r,[["__scopeId","data-v-19976ae1"]]),kr={class:"VPNavScreenMenuGroupSection"},yr={key:0,class:"title"},Pr=b({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(s){return(e,t)=>(a(),i("div",kr,[e.text?(a(),i("p",yr,L(e.text),1)):f("",!0),(a(!0),i(N,null,A(e.items,n=>(a(),$(xe,{key:n.text,item:n},null,8,["item"]))),128))]))}});const Vr=m(Pr,[["__scopeId","data-v-8133b170"]]),wr=["aria-controls","aria-expanded"],Lr={class:"button-text"},Sr=["id"],Mr={key:1,class:"group"},Nr=b({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(s){const e=s,t=M(!1),n=k(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function o(){t.value=!t.value}return(r,d)=>(a(),i("div",{class:T(["VPNavScreenMenuGroup",{open:t.value}])},[c("button",{class:"button","aria-controls":n.value,"aria-expanded":t.value,onClick:o},[c("span",Lr,L(r.text),1),h(br,{class:"button-icon"})],8,wr),c("div",{id:n.value,class:"items"},[(a(!0),i(N,null,A(r.items,p=>(a(),i(N,{key:p.text},["link"in p?(a(),i("div",{key:p.text,class:"item"},[h(xe,{item:p},null,8,["item"])])):(a(),i("div",Mr,[h(Vr,{text:p.text,items:p.items},null,8,["text","items"])]))],64))),128))],8,Sr)],2))}});const Ir=m(Nr,[["__scopeId","data-v-1ecb84e7"]]),Tr={key:0,class:"VPNavScreenMenu"},Cr=b({__name:"VPNavScreenMenu",setup(s){const{theme:e}=P();return(t,n)=>l(e).nav?(a(),i("nav",Tr,[(a(!0),i(N,null,A(l(e).nav,o=>(a(),i(N,{key:o.text},["link"in o?(a(),$(vr,{key:0,item:o},null,8,["item"])):(a(),$(Ir,{key:1,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):f("",!0)}}),Br=b({__name:"VPNavScreenSocialLinks",setup(s){const{theme:e}=P();return(t,n)=>l(e).socialLinks?(a(),$($e,{key:0,class:"VPNavScreenSocialLinks",links:l(e).socialLinks},null,8,["links"])):f("",!0)}}),Ar={class:"list"},xr=b({__name:"VPNavScreenTranslations",setup(s){const{localeLinks:e,currentLang:t}=X({correspondingLink:!0}),n=M(!1);function o(){n.value=!n.value}return(r,d)=>l(e).length&&l(t).label?(a(),i("div",{key:0,class:T(["VPNavScreenTranslations",{open:n.value}])},[c("button",{class:"title",onClick:o},[h(Ae,{class:"icon lang"}),x(" "+L(l(t).label)+" ",1),h(Be,{class:"icon chevron"})]),c("ul",Ar,[(a(!0),i(N,null,A(l(e),p=>(a(),i("li",{key:p.link,class:"item"},[h(E,{class:"link",href:p.link},{default:v(()=>[x(L(p.text),1)]),_:2},1032,["href"])]))),128))])],2)):f("",!0)}});const Hr=m(xr,[["__scopeId","data-v-d72aa483"]]),zr={class:"container"},Dr=b({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(s){const e=M(null),t=Se(q?document.body:null);return(n,o)=>(a(),$(ce,{name:"fade",onEnter:o[0]||(o[0]=r=>t.value=!0),onAfterLeave:o[1]||(o[1]=r=>t.value=!1)},{default:v(()=>[n.open?(a(),i("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[c("div",zr,[u(n.$slots,"nav-screen-content-before",{},void 0,!0),h(Cr,{class:"menu"}),h(Hr,{class:"translations"}),h(dr,{class:"appearance"}),h(Br,{class:"social-links"}),u(n.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):f("",!0)]),_:3}))}});const Er=m(Dr,[["__scopeId","data-v-cc5739dd"]]),Fr={key:0,class:"VPNav"},Or=b({__name:"VPNav",setup(s){const{isScreenOpen:e,closeScreen:t,toggleScreen:n}=Xn(),{frontmatter:o}=P(),r=k(()=>o.value.navbar!==!1);return Me("close-screen",t),te(()=>{q&&document.documentElement.classList.toggle("hide-nav",!r.value)}),(d,p)=>r.value?(a(),i("header",Fr,[h(lr,{"is-screen-open":l(e),onToggleScreen:l(n)},{"nav-bar-title-before":v(()=>[u(d.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[u(d.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[u(d.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[u(d.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),h(Er,{open:l(e)},{"nav-screen-content-before":v(()=>[u(d.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[u(d.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):f("",!0)}});const Gr=m(Or,[["__scopeId","data-v-ae24b3ad"]]),Ur=s=>(H("data-v-e31bd47b"),s=s(),z(),s),jr=["role","tabindex"],Kr=Ur(()=>c("div",{class:"indicator"},null,-1)),Rr=["onKeydown"],qr={key:1,class:"items"},Wr=b({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(s){const e=s,{collapsed:t,collapsible:n,isLink:o,isActiveLink:r,hasActiveLink:d,hasChildren:p,toggle:_}=gt(k(()=>e.item)),g=k(()=>p.value?"section":"div"),V=k(()=>o.value?"a":"div"),y=k(()=>p.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),I=k(()=>o.value?void 0:"button"),S=k(()=>[[`level-${e.depth}`],{collapsible:n.value},{collapsed:t.value},{"is-link":o.value},{"is-active":r.value},{"has-active":d.value}]);function C(w){"key"in w&&w.key!=="Enter"||!e.item.link&&_()}function B(){e.item.link&&_()}return(w,K)=>{const W=j("VPSidebarItem",!0);return a(),$(F(g.value),{class:T(["VPSidebarItem",S.value])},{default:v(()=>[w.item.text?(a(),i("div",Z({key:0,class:"item",role:I.value},We(w.item.items?{click:C,keydown:C}:{},!0),{tabindex:w.item.items&&0}),[Kr,w.item.link?(a(),$(E,{key:0,tag:V.value,class:"link",href:w.item.link,rel:w.item.rel,target:w.item.target},{default:v(()=>[(a(),$(F(y.value),{class:"text",innerHTML:w.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(a(),$(F(y.value),{key:1,class:"text",innerHTML:w.item.text},null,8,["innerHTML"])),w.item.collapsed!=null?(a(),i("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:B,onKeydown:Ye(B,["enter"]),tabindex:"0"},[h(fe,{class:"caret-icon"})],40,Rr)):f("",!0)],16,jr)):f("",!0),w.item.items&&w.item.items.length?(a(),i("div",qr,[w.depth<5?(a(!0),i(N,{key:0},A(w.item.items,R=>(a(),$(W,{key:R.text,item:R,depth:w.depth+1},null,8,["item","depth"]))),128)):f("",!0)])):f("",!0)]),_:1},8,["class"])}}});const Yr=m(Wr,[["__scopeId","data-v-e31bd47b"]]),He=s=>(H("data-v-b00e2fdd"),s=s(),z(),s),Jr=He(()=>c("div",{class:"curtain"},null,-1)),Xr={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},Zr=He(()=>c("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),Qr=b({__name:"VPSidebar",props:{open:{type:Boolean}},setup(s){const{sidebarGroups:e,hasSidebar:t}=D(),n=s,o=M(null),r=Se(q?document.body:null);return U([n,o],()=>{var d;n.open?(r.value=!0,(d=o.value)==null||d.focus()):r.value=!1},{immediate:!0,flush:"post"}),(d,p)=>l(t)?(a(),i("aside",{key:0,class:T(["VPSidebar",{open:d.open}]),ref_key:"navEl",ref:o,onClick:p[0]||(p[0]=Je(()=>{},["stop"]))},[Jr,c("nav",Xr,[Zr,u(d.$slots,"sidebar-nav-before",{},void 0,!0),(a(!0),i(N,null,A(l(e),_=>(a(),i("div",{key:_.text,class:"group"},[h(Yr,{item:_,depth:0},null,8,["item"])]))),128)),u(d.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):f("",!0)}});const el=m(Qr,[["__scopeId","data-v-b00e2fdd"]]),tl=b({__name:"VPSkipLink",setup(s){const e=se(),t=M();U(()=>e.path,()=>t.value.focus());function n({target:o}){const r=document.getElementById(decodeURIComponent(o.hash).slice(1));if(r){const d=()=>{r.removeAttribute("tabindex"),r.removeEventListener("blur",d)};r.setAttribute("tabindex","-1"),r.addEventListener("blur",d),r.focus(),window.scrollTo(0,0)}}return(o,r)=>(a(),i(N,null,[c("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),c("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:n}," Skip to content ")],64))}});const sl=m(tl,[["__scopeId","data-v-0f60ec36"]]),nl=b({__name:"Layout",setup(s){const{isOpen:e,open:t,close:n}=D(),o=se();U(()=>o.path,n),mt(e,n);const{frontmatter:r}=P(),d=Xe(),p=k(()=>!!d["home-hero-image"]);return Me("hero-image-slot-exists",p),(_,g)=>{const V=j("Content");return l(r).layout!==!1?(a(),i("div",{key:0,class:T(["Layout",l(r).pageClass])},[u(_.$slots,"layout-top",{},void 0,!0),h(sl),h(st,{class:"backdrop",show:l(e),onClick:l(n)},null,8,["show","onClick"]),h(Gr,null,{"nav-bar-title-before":v(()=>[u(_.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[u(_.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[u(_.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[u(_.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":v(()=>[u(_.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[u(_.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),h(Jn,{open:l(e),onOpenMenu:l(t)},null,8,["open","onOpenMenu"]),h(el,{open:l(e)},{"sidebar-nav-before":v(()=>[u(_.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":v(()=>[u(_.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),h(Mn,null,{"page-top":v(()=>[u(_.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[u(_.$slots,"page-bottom",{},void 0,!0)]),"not-found":v(()=>[u(_.$slots,"not-found",{},void 0,!0)]),"home-hero-before":v(()=>[u(_.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info":v(()=>[u(_.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[u(_.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[u(_.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[u(_.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[u(_.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":v(()=>[u(_.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[u(_.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[u(_.$slots,"doc-after",{},void 0,!0)]),"doc-top":v(()=>[u(_.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[u(_.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":v(()=>[u(_.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[u(_.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[u(_.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[u(_.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[u(_.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[u(_.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),h(Bn),u(_.$slots,"layout-bottom",{},void 0,!0)],2)):(a(),$(V,{key:1}))}}});const ol=m(nl,[["__scopeId","data-v-5a346dfe"]]);const rl={Layout:ol,enhanceApp:({app:s})=>{s.component("Badge",Qe)}};export{Na as c,rl as t,P as u}; +import{d as b,o as a,c as i,r as u,n as T,a as x,t as L,_ as m,b as $,w as v,e as f,T as ce,u as ze,i as De,f as ue,g as k,h as M,j as G,k as c,l,p as H,m as z,q as O,s as q,v as re,x as U,y as te,z as de,A as Ve,B as Ee,C as j,F as N,D as A,E as _e,G as Y,H as h,I as F,J as we,K as se,L as Z,M as ne,N as Fe,O as Oe,P as Le,Q as Ge,R as Ue,S as je,U as Ke,V as ke,W as Re,X as qe,Y as Se,Z as Me,$ as We,a0 as Ye,a1 as Je,a2 as Xe}from"./framework.c401375a.js";const Ze=b({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(s){return(e,t)=>(a(),i("span",{class:T(["VPBadge",e.type])},[u(e.$slots,"default",{},()=>[x(L(e.text),1)],!0)],2))}});const Qe=m(Ze,[["__scopeId","data-v-9613cc9f"]]),et={key:0,class:"VPBackdrop"},tt=b({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(s){return(e,t)=>(a(),$(ce,{name:"fade"},{default:v(()=>[e.show?(a(),i("div",et)):f("",!0)]),_:1}))}});const st=m(tt,[["__scopeId","data-v-c79a1216"]]),P=ze;function nt(s,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(s,e):(s(),(n=!0)&&setTimeout(()=>n=!1,e))}}function le(s){return/^\//.test(s)?s:`/${s}`}function J(s){const{pathname:e,search:t,hash:n,protocol:o}=new URL(s,"http://a.com");if(De(s)||s.startsWith("#")||!o.startsWith("http")||/\.(?!html|md)\w+($|\?)/i.test(s))return s;const{site:r}=P(),d=e.endsWith("/")||e.endsWith(".html")?s:s.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${n}`);return ue(d)}function X({removeCurrent:s=!0,correspondingLink:e=!1}={}){const{site:t,localeIndex:n,page:o,theme:r}=P(),d=k(()=>{var _,g;return{label:(_=t.value.locales[n.value])==null?void 0:_.label,link:((g=t.value.locales[n.value])==null?void 0:g.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:k(()=>Object.entries(t.value.locales).flatMap(([_,g])=>s&&d.value.label===g.label?[]:{text:g.label,link:ot(g.link||(_==="root"?"/":`/${_}/`),r.value.i18nRouting!==!1&&e,o.value.relativePath.slice(d.value.link.length-1),!t.value.cleanUrls)})),currentLang:d}}function ot(s,e,t,n){return e?s.replace(/\/$/,"")+le(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):s}const at=s=>(H("data-v-f87ff6e4"),s=s(),z(),s),rt={class:"NotFound"},lt={class:"code"},it={class:"title"},ct=at(()=>c("div",{class:"divider"},null,-1)),ut={class:"quote"},dt={class:"action"},_t=["href","aria-label"],vt=b({__name:"NotFound",setup(s){const{site:e,theme:t}=P(),{localeLinks:n}=X({removeCurrent:!1}),o=M("/");return G(()=>{var d;const r=window.location.pathname.replace(e.value.base,"").replace(/(^.*?\/).*$/,"/$1");n.value.length&&(o.value=((d=n.value.find(({link:p})=>p.startsWith(r)))==null?void 0:d.link)||n.value[0].link)}),(r,d)=>{var p,_,g,V,y;return a(),i("div",rt,[c("p",lt,L(((p=l(t).notFound)==null?void 0:p.code)??"404"),1),c("h1",it,L(((_=l(t).notFound)==null?void 0:_.title)??"PAGE NOT FOUND"),1),ct,c("blockquote",ut,L(((g=l(t).notFound)==null?void 0:g.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),c("div",dt,[c("a",{class:"link",href:l(ue)(o.value),"aria-label":((V=l(t).notFound)==null?void 0:V.linkLabel)??"go to home"},L(((y=l(t).notFound)==null?void 0:y.linkText)??"Take me home"),9,_t)])])}}});const pt=m(vt,[["__scopeId","data-v-f87ff6e4"]]);function Ne(s,e){if(Array.isArray(s))return Q(s);if(s==null)return[];e=le(e);const t=Object.keys(s).sort((o,r)=>r.split("/").length-o.split("/").length).find(o=>e.startsWith(le(o))),n=t?s[t]:[];return Array.isArray(n)?Q(n):Q(n.items,n.base)}function ht(s){const e=[];let t=0;for(const n in s){const o=s[n];if(o.items){t=e.push(o);continue}e[t]||e.push({items:[]}),e[t].items.push(o)}return e}function ft(s){const e=[];function t(n){for(const o of n)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(s),e}function ie(s,e){return Array.isArray(e)?e.some(t=>ie(s,t)):O(s,e.link)?!0:e.items?ie(s,e.items):!1}function Q(s,e){return[...s].map(t=>{const n={...t},o=n.base||e;return o&&n.link&&(n.link=o+n.link),n.items&&(n.items=Q(n.items,o)),n})}function D(){const{frontmatter:s,page:e,theme:t}=P(),n=re("(min-width: 960px)"),o=M(!1),r=k(()=>{const B=t.value.sidebar,w=e.value.relativePath;return B?Ne(B,w):[]}),d=M(r.value);U(r,(B,w)=>{JSON.stringify(B)!==JSON.stringify(w)&&(d.value=r.value)});const p=k(()=>s.value.sidebar!==!1&&d.value.length>0&&s.value.layout!=="home"),_=k(()=>g?s.value.aside==null?t.value.aside==="left":s.value.aside==="left":!1),g=k(()=>s.value.layout==="home"?!1:s.value.aside!=null?!!s.value.aside:t.value.aside!==!1),V=k(()=>p.value&&n.value),y=k(()=>p.value?ht(d.value):[]);function I(){o.value=!0}function S(){o.value=!1}function C(){o.value?S():I()}return{isOpen:o,sidebar:d,sidebarGroups:y,hasSidebar:p,hasAside:g,leftAside:_,isSidebarEnabled:V,open:I,close:S,toggle:C}}function mt(s,e){let t;te(()=>{t=s.value?document.activeElement:void 0}),G(()=>{window.addEventListener("keyup",n)}),de(()=>{window.removeEventListener("keyup",n)});function n(o){o.key==="Escape"&&s.value&&(e(),t==null||t.focus())}}const Ie=M(q?location.hash:"");q&&window.addEventListener("hashchange",()=>{Ie.value=location.hash});function gt(s){const{page:e}=P(),t=M(!1),n=k(()=>s.value.collapsed!=null),o=k(()=>!!s.value.link),r=M(!1),d=()=>{r.value=O(e.value.relativePath,s.value.link)};U([e,s,Ie],d),G(d);const p=k(()=>r.value?!0:s.value.items?ie(e.value.relativePath,s.value.items):!1),_=k(()=>!!(s.value.items&&s.value.items.length));te(()=>{t.value=!!(n.value&&s.value.collapsed)}),Ve(()=>{(r.value||p.value)&&(t.value=!1)});function g(){n.value&&(t.value=!t.value)}return{collapsed:t,collapsible:n,isLink:o,isActiveLink:r,hasActiveLink:p,hasChildren:_,toggle:g}}function bt(){const{hasSidebar:s}=D(),e=re("(min-width: 960px)"),t=re("(min-width: 1280px)");return{isAsideEnabled:k(()=>!t.value&&!e.value?!1:s.value?t.value:e.value)}}const $t=71;function ve(s){return typeof s.outline=="object"&&!Array.isArray(s.outline)&&s.outline.label||s.outlineTitle||"On this page"}function pe(s){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const n=Number(t.tagName[1]);return{title:kt(t),link:"#"+t.id,level:n}});return yt(e,s)}function kt(s){let e="";for(const t of s.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function yt(s,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[n,o]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;s=s.filter(d=>d.level>=n&&d.level<=o);const r=[];e:for(let d=0;d=0;_--){const g=s[_];if(g.level{requestAnimationFrame(r),window.addEventListener("scroll",n)}),Ee(()=>{d(location.hash)}),de(()=>{window.removeEventListener("scroll",n)});function r(){if(!t.value)return;const p=[].slice.call(s.value.querySelectorAll(".outline-link")),_=[].slice.call(document.querySelectorAll(".content .header-anchor")).filter(S=>p.some(C=>C.hash===S.hash&&S.offsetParent!==null)),g=window.scrollY,V=window.innerHeight,y=document.body.offsetHeight,I=Math.abs(g+V-y)<1;if(_.length&&I){d(_[_.length-1].hash);return}for(let S=0;S<_.length;S++){const C=_[S],B=_[S+1],[w,K]=Vt(S,C,B);if(w){d(K);return}}}function d(p){o&&o.classList.remove("active"),p==null?o=null:o=s.value.querySelector(`a[href="${decodeURIComponent(p)}"]`);const _=o;_?(_.classList.add("active"),e.value.style.top=_.offsetTop+33+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function ye(s){return s.parentElement.offsetTop-$t}function Vt(s,e,t){const n=window.scrollY;return s===0&&n===0?[!0,null]:n{const o=j("VPDocOutlineItem",!0);return a(),i("ul",{class:T(t.root?"root":"nested")},[(a(!0),i(N,null,A(t.headers,({children:r,link:d,title:p})=>(a(),i("li",null,[c("a",{class:"outline-link",href:d,onClick:e,title:p},L(p),9,wt),r!=null&&r.length?(a(),$(o,{key:0,headers:r},null,8,["headers"])):f("",!0)]))),256))],2)}}});const he=m(Lt,[["__scopeId","data-v-d0ee3533"]]),St=s=>(H("data-v-d330b1bb"),s=s(),z(),s),Mt={class:"content"},Nt={class:"outline-title",role:"heading","aria-level":"2"},It={"aria-labelledby":"doc-outline-aria-label"},Tt=St(()=>c("span",{class:"visually-hidden",id:"doc-outline-aria-label"}," Table of Contents for current page ",-1)),Ct=b({__name:"VPDocAsideOutline",setup(s){const{frontmatter:e,theme:t}=P(),n=_e([]);Y(()=>{n.value=pe(e.value.outline??t.value.outline)});const o=M(),r=M();return Pt(o,r),(d,p)=>(a(),i("div",{class:T(["VPDocAsideOutline",{"has-outline":n.value.length>0}]),ref_key:"container",ref:o,role:"navigation"},[c("div",Mt,[c("div",{class:"outline-marker",ref_key:"marker",ref:r},null,512),c("div",Nt,L(l(ve)(l(t))),1),c("nav",It,[Tt,h(he,{headers:n.value,root:!0},null,8,["headers"])])])],2))}});const Bt=m(Ct,[["__scopeId","data-v-d330b1bb"]]),At={class:"VPDocAsideCarbonAds"},xt=b({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(s){const e=()=>null;return(t,n)=>(a(),i("div",At,[h(l(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),Ht=s=>(H("data-v-3f215769"),s=s(),z(),s),zt={class:"VPDocAside"},Dt=Ht(()=>c("div",{class:"spacer"},null,-1)),Et=b({__name:"VPDocAside",setup(s){const{theme:e}=P();return(t,n)=>(a(),i("div",zt,[u(t.$slots,"aside-top",{},void 0,!0),u(t.$slots,"aside-outline-before",{},void 0,!0),h(Bt),u(t.$slots,"aside-outline-after",{},void 0,!0),Dt,u(t.$slots,"aside-ads-before",{},void 0,!0),l(e).carbonAds?(a(),$(xt,{key:0,"carbon-ads":l(e).carbonAds},null,8,["carbon-ads"])):f("",!0),u(t.$slots,"aside-ads-after",{},void 0,!0),u(t.$slots,"aside-bottom",{},void 0,!0)]))}});const Ft=m(Et,[["__scopeId","data-v-3f215769"]]);function Ot(){const{theme:s,page:e}=P();return k(()=>{const{text:t="Edit this page",pattern:n=""}=s.value.editLink||{};let o;return typeof n=="function"?o=n(e.value):o=n.replace(/:path/g,e.value.filePath),{url:o,text:t}})}function Gt(){const{page:s,theme:e,frontmatter:t}=P();return k(()=>{var _,g,V,y,I,S,C,B;const n=Ne(e.value.sidebar,s.value.relativePath),o=ft(n),r=o.findIndex(w=>O(s.value.relativePath,w.link)),d=((_=e.value.docFooter)==null?void 0:_.prev)===!1&&!t.value.prev||t.value.prev===!1,p=((g=e.value.docFooter)==null?void 0:g.next)===!1&&!t.value.next||t.value.next===!1;return{prev:d?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((V=o[r-1])==null?void 0:V.docFooterText)??((y=o[r-1])==null?void 0:y.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((I=o[r-1])==null?void 0:I.link)},next:p?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((S=o[r+1])==null?void 0:S.docFooterText)??((C=o[r+1])==null?void 0:C.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((B=o[r+1])==null?void 0:B.link)}}})}const Ut={},jt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Kt=c("path",{d:"M18,23H4c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h7c0.6,0,1,0.4,1,1s-0.4,1-1,1H4C3.4,5,3,5.4,3,6v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1v-7c0-0.6,0.4-1,1-1s1,0.4,1,1v7C21,21.7,19.7,23,18,23z"},null,-1),Rt=c("path",{d:"M8,17c-0.3,0-0.5-0.1-0.7-0.3C7,16.5,6.9,16.1,7,15.8l1-4c0-0.2,0.1-0.3,0.3-0.5l9.5-9.5c1.2-1.2,3.2-1.2,4.4,0c1.2,1.2,1.2,3.2,0,4.4l-9.5,9.5c-0.1,0.1-0.3,0.2-0.5,0.3l-4,1C8.2,17,8.1,17,8,17zM9.9,12.5l-0.5,2.1l2.1-0.5l9.3-9.3c0.4-0.4,0.4-1.1,0-1.6c-0.4-0.4-1.2-0.4-1.6,0l0,0L9.9,12.5z M18.5,2.5L18.5,2.5L18.5,2.5z"},null,-1),qt=[Kt,Rt];function Wt(s,e){return a(),i("svg",jt,qt)}const Yt=m(Ut,[["render",Wt]]),E=b({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(s){const e=s,t=k(()=>e.tag??(e.href?"a":"span")),n=k(()=>e.href&&we.test(e.href));return(o,r)=>(a(),$(F(t.value),{class:T(["VPLink",{link:o.href,"vp-external-link-icon":n.value,"no-icon":o.noIcon}]),href:o.href?l(J)(o.href):void 0,target:o.target??(n.value?"_blank":void 0),rel:o.rel??(n.value?"noreferrer":void 0)},{default:v(()=>[u(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Jt={class:"VPLastUpdated"},Xt=["datetime"],Zt=b({__name:"VPDocFooterLastUpdated",setup(s){const{theme:e,page:t,frontmatter:n,lang:o}=P(),r=k(()=>new Date(n.value.lastUpdated??t.value.lastUpdated)),d=k(()=>r.value.toISOString()),p=M("");return G(()=>{te(()=>{var _,g,V;p.value=new Intl.DateTimeFormat((g=(_=e.value.lastUpdated)==null?void 0:_.formatOptions)!=null&&g.forceLocale?o.value:void 0,((V=e.value.lastUpdated)==null?void 0:V.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(r.value)})}),(_,g)=>{var V;return a(),i("p",Jt,[x(L(((V=l(e).lastUpdated)==null?void 0:V.text)||l(e).lastUpdatedText||"Last updated")+": ",1),c("time",{datetime:d.value},L(p.value),9,Xt)])}}});const Qt=m(Zt,[["__scopeId","data-v-7e05ebdb"]]),es={key:0,class:"VPDocFooter"},ts={key:0,class:"edit-info"},ss={key:0,class:"edit-link"},ns={key:1,class:"last-updated"},os={key:1,class:"prev-next"},as={class:"pager"},rs=["href"],ls=["innerHTML"],is=["innerHTML"],cs={class:"pager"},us=["href"],ds=["innerHTML"],_s=["innerHTML"],vs=b({__name:"VPDocFooter",setup(s){const{theme:e,page:t,frontmatter:n}=P(),o=Ot(),r=Gt(),d=k(()=>e.value.editLink&&n.value.editLink!==!1),p=k(()=>t.value.lastUpdated&&n.value.lastUpdated!==!1),_=k(()=>d.value||p.value||r.value.prev||r.value.next);return(g,V)=>{var y,I,S,C,B,w;return _.value?(a(),i("footer",es,[u(g.$slots,"doc-footer-before",{},void 0,!0),d.value||p.value?(a(),i("div",ts,[d.value?(a(),i("div",ss,[h(E,{class:"edit-link-button",href:l(o).url,"no-icon":!0},{default:v(()=>[h(Yt,{class:"edit-link-icon","aria-label":"edit icon"}),x(" "+L(l(o).text),1)]),_:1},8,["href"])])):f("",!0),p.value?(a(),i("div",ns,[h(Qt)])):f("",!0)])):f("",!0),(y=l(r).prev)!=null&&y.link||(I=l(r).next)!=null&&I.link?(a(),i("nav",os,[c("div",as,[(S=l(r).prev)!=null&&S.link?(a(),i("a",{key:0,class:"pager-link prev",href:l(J)(l(r).prev.link)},[c("span",{class:"desc",innerHTML:((C=l(e).docFooter)==null?void 0:C.prev)||"Previous page"},null,8,ls),c("span",{class:"title",innerHTML:l(r).prev.text},null,8,is)],8,rs)):f("",!0)]),c("div",cs,[(B=l(r).next)!=null&&B.link?(a(),i("a",{key:0,class:"pager-link next",href:l(J)(l(r).next.link)},[c("span",{class:"desc",innerHTML:((w=l(e).docFooter)==null?void 0:w.next)||"Next page"},null,8,ds),c("span",{class:"title",innerHTML:l(r).next.text},null,8,_s)],8,us)):f("",!0)])])):f("",!0)])):f("",!0)}}});const ps=m(vs,[["__scopeId","data-v-ef5dee53"]]),hs={},fs={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},ms=c("path",{d:"M9,19c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l5.3-5.3L8.3,6.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l6,6c0.4,0.4,0.4,1,0,1.4l-6,6C9.5,18.9,9.3,19,9,19z"},null,-1),gs=[ms];function bs(s,e){return a(),i("svg",fs,gs)}const fe=m(hs,[["render",bs]]),$s={key:0,class:"VPDocOutlineDropdown"},ks={key:0,class:"items"},ys=b({__name:"VPDocOutlineDropdown",setup(s){const{frontmatter:e,theme:t}=P(),n=M(!1);Y(()=>{n.value=!1});const o=_e([]);return Y(()=>{o.value=pe(e.value.outline??t.value.outline)}),(r,d)=>o.value.length>0?(a(),i("div",$s,[c("button",{onClick:d[0]||(d[0]=p=>n.value=!n.value),class:T({open:n.value})},[x(L(l(ve)(l(t)))+" ",1),h(fe,{class:"icon"})],2),n.value?(a(),i("div",ks,[h(he,{headers:o.value},null,8,["headers"])])):f("",!0)])):f("",!0)}});const Ps=m(ys,[["__scopeId","data-v-eadfb36b"]]),Vs=s=>(H("data-v-6b87e69f"),s=s(),z(),s),ws={class:"container"},Ls=Vs(()=>c("div",{class:"aside-curtain"},null,-1)),Ss={class:"aside-container"},Ms={class:"aside-content"},Ns={class:"content"},Is={class:"content-container"},Ts={class:"main"},Cs=b({__name:"VPDoc",setup(s){const{theme:e}=P(),t=se(),{hasSidebar:n,hasAside:o,leftAside:r}=D(),d=k(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(p,_)=>{const g=j("Content");return a(),i("div",{class:T(["VPDoc",{"has-sidebar":l(n),"has-aside":l(o)}])},[u(p.$slots,"doc-top",{},void 0,!0),c("div",ws,[l(o)?(a(),i("div",{key:0,class:T(["aside",{"left-aside":l(r)}])},[Ls,c("div",Ss,[c("div",Ms,[h(Ft,null,{"aside-top":v(()=>[u(p.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[u(p.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[u(p.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[u(p.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[u(p.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[u(p.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):f("",!0),c("div",Ns,[c("div",Is,[u(p.$slots,"doc-before",{},void 0,!0),h(Ps),c("main",Ts,[h(g,{class:T(["vp-doc",[d.value,l(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),h(ps,null,{"doc-footer-before":v(()=>[u(p.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),u(p.$slots,"doc-after",{},void 0,!0)])])]),u(p.$slots,"doc-bottom",{},void 0,!0)],2)}}});const Bs=m(Cs,[["__scopeId","data-v-6b87e69f"]]),As=b({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{}},setup(s){const e=s,t=k(()=>e.href&&we.test(e.href)),n=k(()=>e.tag||e.href?"a":"button");return(o,r)=>(a(),$(F(n.value),{class:T(["VPButton",[o.size,o.theme]]),href:o.href?l(J)(o.href):void 0,target:t.value?"_blank":void 0,rel:t.value?"noreferrer":void 0},{default:v(()=>[x(L(o.text),1)]),_:1},8,["class","href","target","rel"]))}});const xs=m(As,[["__scopeId","data-v-c1c5efc1"]]),Hs=["src","alt"],zs=b({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(s){return(e,t)=>{const n=j("VPImage",!0);return e.image?(a(),i(N,{key:0},[typeof e.image=="string"||"src"in e.image?(a(),i("img",Z({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:l(ue)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Hs)):(a(),i(N,{key:1},[h(n,Z({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),h(n,Z({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):f("",!0)}}});const ee=m(zs,[["__scopeId","data-v-8426fc1a"]]),Ds=s=>(H("data-v-da5d1713"),s=s(),z(),s),Es={class:"container"},Fs={class:"main"},Os={key:0,class:"name"},Gs=["innerHTML"],Us=["innerHTML"],js=["innerHTML"],Ks={key:0,class:"actions"},Rs={key:0,class:"image"},qs={class:"image-container"},Ws=Ds(()=>c("div",{class:"image-bg"},null,-1)),Ys=b({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(s){const e=ne("hero-image-slot-exists");return(t,n)=>(a(),i("div",{class:T(["VPHero",{"has-image":t.image||l(e)}])},[c("div",Es,[c("div",Fs,[u(t.$slots,"home-hero-info",{},()=>[t.name?(a(),i("h1",Os,[c("span",{innerHTML:t.name,class:"clip"},null,8,Gs)])):f("",!0),t.text?(a(),i("p",{key:1,innerHTML:t.text,class:"text"},null,8,Us)):f("",!0),t.tagline?(a(),i("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,js)):f("",!0)],!0),t.actions?(a(),i("div",Ks,[(a(!0),i(N,null,A(t.actions,o=>(a(),i("div",{key:o.link,class:"action"},[h(xs,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link},null,8,["theme","text","href"])]))),128))])):f("",!0)]),t.image||l(e)?(a(),i("div",Rs,[c("div",qs,[Ws,u(t.$slots,"home-hero-image",{},()=>[t.image?(a(),$(ee,{key:0,class:"image-src",image:t.image},null,8,["image"])):f("",!0)],!0)])])):f("",!0)])],2))}});const Js=m(Ys,[["__scopeId","data-v-da5d1713"]]),Xs=b({__name:"VPHomeHero",setup(s){const{frontmatter:e}=P();return(t,n)=>l(e).hero?(a(),$(Js,{key:0,class:"VPHomeHero",name:l(e).hero.name,text:l(e).hero.text,tagline:l(e).hero.tagline,image:l(e).hero.image,actions:l(e).hero.actions},{"home-hero-info":v(()=>[u(t.$slots,"home-hero-info")]),"home-hero-image":v(()=>[u(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):f("",!0)}}),Zs={},Qs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},en=c("path",{d:"M19.9,12.4c0.1-0.2,0.1-0.5,0-0.8c-0.1-0.1-0.1-0.2-0.2-0.3l-7-7c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l5.3,5.3H5c-0.6,0-1,0.4-1,1s0.4,1,1,1h11.6l-5.3,5.3c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l7-7C19.8,12.6,19.9,12.5,19.9,12.4z"},null,-1),tn=[en];function sn(s,e){return a(),i("svg",Qs,tn)}const nn=m(Zs,[["render",sn]]),on={class:"box"},an={key:0,class:"icon"},rn=["innerHTML"],ln=["innerHTML"],cn=["innerHTML"],un={key:4,class:"link-text"},dn={class:"link-text-value"},_n=b({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(s){return(e,t)=>(a(),$(E,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:v(()=>[c("article",on,[typeof e.icon=="object"&&e.icon.wrap?(a(),i("div",an,[h(ee,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(a(),$(ee,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(a(),i("div",{key:2,class:"icon",innerHTML:e.icon},null,8,rn)):f("",!0),c("h2",{class:"title",innerHTML:e.title},null,8,ln),e.details?(a(),i("p",{key:3,class:"details",innerHTML:e.details},null,8,cn)):f("",!0),e.linkText?(a(),i("div",un,[c("p",dn,[x(L(e.linkText)+" ",1),h(nn,{class:"link-text-icon"})])])):f("",!0)])]),_:1},8,["href","rel","target","tag"]))}});const vn=m(_n,[["__scopeId","data-v-33204567"]]),pn={key:0,class:"VPFeatures"},hn={class:"container"},fn={class:"items"},mn=b({__name:"VPFeatures",props:{features:{}},setup(s){const e=s,t=k(()=>{const n=e.features.length;if(n){if(n===2)return"grid-2";if(n===3)return"grid-3";if(n%3===0)return"grid-6";if(n>3)return"grid-4"}else return});return(n,o)=>n.features?(a(),i("div",pn,[c("div",hn,[c("div",fn,[(a(!0),i(N,null,A(n.features,r=>(a(),i("div",{key:r.title,class:T(["item",[t.value]])},[h(vn,{icon:r.icon,title:r.title,details:r.details,link:r.link,"link-text":r.linkText,rel:r.rel,target:r.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):f("",!0)}});const gn=m(mn,[["__scopeId","data-v-a6181336"]]),bn=b({__name:"VPHomeFeatures",setup(s){const{frontmatter:e}=P();return(t,n)=>l(e).features?(a(),$(gn,{key:0,class:"VPHomeFeatures",features:l(e).features},null,8,["features"])):f("",!0)}}),$n={class:"VPHome"},kn=b({__name:"VPHome",setup(s){return(e,t)=>{const n=j("Content");return a(),i("div",$n,[u(e.$slots,"home-hero-before",{},void 0,!0),h(Xs,null,{"home-hero-info":v(()=>[u(e.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[u(e.$slots,"home-hero-image",{},void 0,!0)]),_:3}),u(e.$slots,"home-hero-after",{},void 0,!0),u(e.$slots,"home-features-before",{},void 0,!0),h(bn),u(e.$slots,"home-features-after",{},void 0,!0),h(n)])}}});const yn=m(kn,[["__scopeId","data-v-d82743a8"]]),Pn={},Vn={class:"VPPage"};function wn(s,e){const t=j("Content");return a(),i("div",Vn,[u(s.$slots,"page-top"),h(t),u(s.$slots,"page-bottom")])}const Ln=m(Pn,[["render",wn]]),Sn=b({__name:"VPContent",setup(s){const{page:e,frontmatter:t}=P(),{hasSidebar:n}=D();return(o,r)=>(a(),i("div",{class:T(["VPContent",{"has-sidebar":l(n),"is-home":l(t).layout==="home"}]),id:"VPContent"},[l(e).isNotFound?u(o.$slots,"not-found",{key:0},()=>[h(pt)],!0):l(t).layout==="page"?(a(),$(Ln,{key:1},{"page-top":v(()=>[u(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[u(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):l(t).layout==="home"?(a(),$(yn,{key:2},{"home-hero-before":v(()=>[u(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info":v(()=>[u(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[u(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[u(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[u(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[u(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):l(t).layout&&l(t).layout!=="doc"?(a(),$(F(l(t).layout),{key:3})):(a(),$(Bs,{key:4},{"doc-top":v(()=>[u(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[u(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":v(()=>[u(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[u(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[u(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":v(()=>[u(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":v(()=>[u(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[u(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[u(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[u(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":v(()=>[u(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}});const Mn=m(Sn,[["__scopeId","data-v-669faec9"]]),Nn={class:"container"},In=["innerHTML"],Tn=["innerHTML"],Cn=b({__name:"VPFooter",setup(s){const{theme:e,frontmatter:t}=P(),{hasSidebar:n}=D();return(o,r)=>l(e).footer&&l(t).footer!==!1?(a(),i("footer",{key:0,class:T(["VPFooter",{"has-sidebar":l(n)}])},[c("div",Nn,[l(e).footer.message?(a(),i("p",{key:0,class:"message",innerHTML:l(e).footer.message},null,8,In)):f("",!0),l(e).footer.copyright?(a(),i("p",{key:1,class:"copyright",innerHTML:l(e).footer.copyright},null,8,Tn)):f("",!0)])],2)):f("",!0)}});const Bn=m(Cn,[["__scopeId","data-v-e03eb2e1"]]),An={class:"header"},xn={class:"outline"},Hn=b({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(s){const e=s,{theme:t}=P(),n=M(!1),o=M(0),r=M();Y(()=>{n.value=!1});function d(){n.value=!n.value,o.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function p(g){g.target.classList.contains("outline-link")&&(r.value&&(r.value.style.transition="none"),Oe(()=>{n.value=!1}))}function _(){n.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(g,V)=>(a(),i("div",{class:"VPLocalNavOutlineDropdown",style:Fe({"--vp-vh":o.value+"px"})},[g.headers.length>0?(a(),i("button",{key:0,onClick:d,class:T({open:n.value})},[x(L(l(ve)(l(t)))+" ",1),h(fe,{class:"icon"})],2)):(a(),i("button",{key:1,onClick:_},L(l(t).returnToTopLabel||"Return to top"),1)),h(ce,{name:"flyout"},{default:v(()=>[n.value?(a(),i("div",{key:0,ref_key:"items",ref:r,class:"items",onClick:p},[c("div",An,[c("a",{class:"top-link",href:"#",onClick:_},L(l(t).returnToTopLabel||"Return to top"),1)]),c("div",xn,[h(he,{headers:g.headers},null,8,["headers"])])],512)):f("",!0)]),_:1})],4))}});const zn=m(Hn,[["__scopeId","data-v-1c15a60a"]]),Dn={},En={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Fn=c("path",{d:"M17,11H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,11,17,11z"},null,-1),On=c("path",{d:"M21,7H3C2.4,7,2,6.6,2,6s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,7,21,7z"},null,-1),Gn=c("path",{d:"M21,15H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,15,21,15z"},null,-1),Un=c("path",{d:"M17,19H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,19,17,19z"},null,-1),jn=[Fn,On,Gn,Un];function Kn(s,e){return a(),i("svg",En,jn)}const Rn=m(Dn,[["render",Kn]]),qn=["aria-expanded"],Wn={class:"menu-text"},Yn=b({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(s){const{theme:e,frontmatter:t}=P(),{hasSidebar:n}=D(),{y:o}=Le(),r=_e([]),d=M(0);G(()=>{d.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),Y(()=>{r.value=pe(t.value.outline??e.value.outline)});const p=k(()=>r.value.length===0&&!n.value),_=k(()=>({VPLocalNav:!0,fixed:p.value,"reached-top":o.value>=d.value}));return(g,V)=>l(t).layout!=="home"&&(!p.value||l(o)>=d.value)?(a(),i("div",{key:0,class:T(_.value)},[l(n)?(a(),i("button",{key:0,class:"menu","aria-expanded":g.open,"aria-controls":"VPSidebarNav",onClick:V[0]||(V[0]=y=>g.$emit("open-menu"))},[h(Rn,{class:"menu-icon"}),c("span",Wn,L(l(e).sidebarMenuLabel||"Menu"),1)],8,qn)):f("",!0),h(zn,{headers:r.value,navHeight:d.value},null,8,["headers","navHeight"])],2)):f("",!0)}});const Jn=m(Yn,[["__scopeId","data-v-79c8c1df"]]);function Xn(){const s=M(!1);function e(){s.value=!0,window.addEventListener("resize",o)}function t(){s.value=!1,window.removeEventListener("resize",o)}function n(){s.value?t():e()}function o(){window.outerWidth>=768&&t()}const r=se();return U(()=>r.path,t),{isScreenOpen:s,openScreen:e,closeScreen:t,toggleScreen:n}}const Zn={},Qn={class:"VPSwitch",type:"button",role:"switch"},eo={class:"check"},to={key:0,class:"icon"};function so(s,e){return a(),i("button",Qn,[c("span",eo,[s.$slots.default?(a(),i("span",to,[u(s.$slots,"default",{},void 0,!0)])):f("",!0)])])}const no=m(Zn,[["render",so],["__scopeId","data-v-b1685198"]]),oo={},ao={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},ro=c("path",{d:"M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"},null,-1),lo=[ro];function io(s,e){return a(),i("svg",ao,lo)}const co=m(oo,[["render",io]]),uo={},_o={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},vo=Ge('',9),po=[vo];function ho(s,e){return a(),i("svg",_o,po)}const fo=m(uo,[["render",ho]]),mo=b({__name:"VPSwitchAppearance",setup(s){const{isDark:e}=P(),t=ne("toggle-appearance",()=>{e.value=!e.value});return(n,o)=>(a(),$(no,{title:"toggle dark mode",class:"VPSwitchAppearance","aria-checked":l(e),onClick:l(t)},{default:v(()=>[h(fo,{class:"sun"}),h(co,{class:"moon"})]),_:1},8,["aria-checked","onClick"]))}});const me=m(mo,[["__scopeId","data-v-ce54a7d1"]]),go={key:0,class:"VPNavBarAppearance"},bo=b({__name:"VPNavBarAppearance",setup(s){const{site:e}=P();return(t,n)=>l(e).appearance&&l(e).appearance!=="force-dark"?(a(),i("div",go,[h(me)])):f("",!0)}});const $o=m(bo,[["__scopeId","data-v-e6aabb21"]]),ge=M();let Te=!1,ae=0;function ko(s){const e=M(!1);if(q){!Te&&yo(),ae++;const t=U(ge,n=>{var o,r,d;n===s.el.value||(o=s.el.value)!=null&&o.contains(n)?(e.value=!0,(r=s.onFocus)==null||r.call(s)):(e.value=!1,(d=s.onBlur)==null||d.call(s))});de(()=>{t(),ae--,ae||Po()})}return Ue(e)}function yo(){document.addEventListener("focusin",Ce),Te=!0,ge.value=document.activeElement}function Po(){document.removeEventListener("focusin",Ce)}function Ce(){ge.value=document.activeElement}const Vo={},wo={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Lo=c("path",{d:"M12,16c-0.3,0-0.5-0.1-0.7-0.3l-6-6c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l5.3,5.3l5.3-5.3c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-6,6C12.5,15.9,12.3,16,12,16z"},null,-1),So=[Lo];function Mo(s,e){return a(),i("svg",wo,So)}const Be=m(Vo,[["render",Mo]]),No={},Io={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},To=c("circle",{cx:"12",cy:"12",r:"2"},null,-1),Co=c("circle",{cx:"19",cy:"12",r:"2"},null,-1),Bo=c("circle",{cx:"5",cy:"12",r:"2"},null,-1),Ao=[To,Co,Bo];function xo(s,e){return a(),i("svg",Io,Ao)}const Ho=m(No,[["render",xo]]),zo={class:"VPMenuLink"},Do=b({__name:"VPMenuLink",props:{item:{}},setup(s){const{page:e}=P();return(t,n)=>(a(),i("div",zo,[h(E,{class:T({active:l(O)(l(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:v(()=>[x(L(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}});const oe=m(Do,[["__scopeId","data-v-43f1e123"]]),Eo={class:"VPMenuGroup"},Fo={key:0,class:"title"},Oo=b({__name:"VPMenuGroup",props:{text:{},items:{}},setup(s){return(e,t)=>(a(),i("div",Eo,[e.text?(a(),i("p",Fo,L(e.text),1)):f("",!0),(a(!0),i(N,null,A(e.items,n=>(a(),i(N,null,["link"in n?(a(),$(oe,{key:0,item:n},null,8,["item"])):f("",!0)],64))),256))]))}});const Go=m(Oo,[["__scopeId","data-v-69e747b5"]]),Uo={class:"VPMenu"},jo={key:0,class:"items"},Ko=b({__name:"VPMenu",props:{items:{}},setup(s){return(e,t)=>(a(),i("div",Uo,[e.items?(a(),i("div",jo,[(a(!0),i(N,null,A(e.items,n=>(a(),i(N,{key:n.text},["link"in n?(a(),$(oe,{key:0,item:n},null,8,["item"])):(a(),$(Go,{key:1,text:n.text,items:n.items},null,8,["text","items"]))],64))),128))])):f("",!0),u(e.$slots,"default",{},void 0,!0)]))}});const Ro=m(Ko,[["__scopeId","data-v-e7ea1737"]]),qo=["aria-expanded","aria-label"],Wo={key:0,class:"text"},Yo=["innerHTML"],Jo={class:"menu"},Xo=b({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(s){const e=M(!1),t=M();ko({el:t,onBlur:n});function n(){e.value=!1}return(o,r)=>(a(),i("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:r[1]||(r[1]=d=>e.value=!0),onMouseleave:r[2]||(r[2]=d=>e.value=!1)},[c("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":o.label,onClick:r[0]||(r[0]=d=>e.value=!e.value)},[o.button||o.icon?(a(),i("span",Wo,[o.icon?(a(),$(F(o.icon),{key:0,class:"option-icon"})):f("",!0),o.button?(a(),i("span",{key:1,innerHTML:o.button},null,8,Yo)):f("",!0),h(Be,{class:"text-icon"})])):(a(),$(Ho,{key:1,class:"icon"}))],8,qo),c("div",Jo,[h(Ro,{items:o.items},{default:v(()=>[u(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}});const be=m(Xo,[["__scopeId","data-v-9c007e85"]]),Zo={discord:'Discord',facebook:'Facebook',github:'GitHub',instagram:'Instagram',linkedin:'LinkedIn',mastodon:'Mastodon',slack:'Slack',twitter:'Twitter',x:'X',youtube:'YouTube'},Qo=["href","aria-label","innerHTML"],ea=b({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(s){const e=s,t=k(()=>typeof e.icon=="object"?e.icon.svg:Zo[e.icon]);return(n,o)=>(a(),i("a",{class:"VPSocialLink no-icon",href:n.link,"aria-label":n.ariaLabel??(typeof n.icon=="string"?n.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,Qo))}});const ta=m(ea,[["__scopeId","data-v-f80f8133"]]),sa={class:"VPSocialLinks"},na=b({__name:"VPSocialLinks",props:{links:{}},setup(s){return(e,t)=>(a(),i("div",sa,[(a(!0),i(N,null,A(e.links,({link:n,icon:o,ariaLabel:r})=>(a(),$(ta,{key:n,icon:o,link:n,ariaLabel:r},null,8,["icon","link","ariaLabel"]))),128))]))}});const $e=m(na,[["__scopeId","data-v-7bc22406"]]),oa={key:0,class:"group translations"},aa={class:"trans-title"},ra={key:1,class:"group"},la={class:"item appearance"},ia={class:"label"},ca={class:"appearance-action"},ua={key:2,class:"group"},da={class:"item social-links"},_a=b({__name:"VPNavBarExtra",setup(s){const{site:e,theme:t}=P(),{localeLinks:n,currentLang:o}=X({correspondingLink:!0}),r=k(()=>n.value.length&&o.value.label||e.value.appearance||t.value.socialLinks);return(d,p)=>r.value?(a(),$(be,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[l(n).length&&l(o).label?(a(),i("div",oa,[c("p",aa,L(l(o).label),1),(a(!0),i(N,null,A(l(n),_=>(a(),$(oe,{key:_.link,item:_},null,8,["item"]))),128))])):f("",!0),l(e).appearance?(a(),i("div",ra,[c("div",la,[c("p",ia,L(l(t).darkModeSwitchLabel||"Appearance"),1),c("div",ca,[h(me)])])])):f("",!0),l(t).socialLinks?(a(),i("div",ua,[c("div",da,[h($e,{class:"social-links-list",links:l(t).socialLinks},null,8,["links"])])])):f("",!0)]),_:1})):f("",!0)}});const va=m(_a,[["__scopeId","data-v-40855f84"]]),pa=s=>(H("data-v-e5dd9c1c"),s=s(),z(),s),ha=["aria-expanded"],fa=pa(()=>c("span",{class:"container"},[c("span",{class:"top"}),c("span",{class:"middle"}),c("span",{class:"bottom"})],-1)),ma=[fa],ga=b({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(s){return(e,t)=>(a(),i("button",{type:"button",class:T(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=n=>e.$emit("click"))},ma,10,ha))}});const ba=m(ga,[["__scopeId","data-v-e5dd9c1c"]]),$a=["innerHTML"],ka=b({__name:"VPNavBarMenuLink",props:{item:{}},setup(s){const{page:e}=P();return(t,n)=>(a(),$(E,{class:T({VPNavBarMenuLink:!0,active:l(O)(l(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:v(()=>[c("span",{innerHTML:t.item.text},null,8,$a)]),_:1},8,["class","href","target","rel"]))}});const ya=m(ka,[["__scopeId","data-v-42ef59de"]]),Pa=b({__name:"VPNavBarMenuGroup",props:{item:{}},setup(s){const e=s,{page:t}=P(),n=r=>"link"in r?O(t.value.relativePath,r.link,!!e.item.activeMatch):r.items.some(n),o=k(()=>n(e.item));return(r,d)=>(a(),$(be,{class:T({VPNavBarMenuGroup:!0,active:l(O)(l(t).relativePath,r.item.activeMatch,!!r.item.activeMatch)||o.value}),button:r.item.text,items:r.item.items},null,8,["class","button","items"]))}}),Va=s=>(H("data-v-7f418b0f"),s=s(),z(),s),wa={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},La=Va(()=>c("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),Sa=b({__name:"VPNavBarMenu",setup(s){const{theme:e}=P();return(t,n)=>l(e).nav?(a(),i("nav",wa,[La,(a(!0),i(N,null,A(l(e).nav,o=>(a(),i(N,{key:o.text},["link"in o?(a(),$(ya,{key:0,item:o},null,8,["item"])):(a(),$(Pa,{key:1,item:o},null,8,["item"]))],64))),128))])):f("",!0)}});const Ma=m(Sa,[["__scopeId","data-v-7f418b0f"]]);function Na(s,e){const{localeIndex:t}=P();function n(o){var S,C;const r=o.split("."),d=s&&typeof s=="object",p=d&&((C=(S=s.locales)==null?void 0:S[t.value])==null?void 0:C.translations)||null,_=d&&s.translations||null;let g=p,V=_,y=e;const I=r.pop();for(const B of r){let w=null;const K=y==null?void 0:y[B];K&&(w=y=K);const W=V==null?void 0:V[B];W&&(w=V=W);const R=g==null?void 0:g[B];R&&(w=g=R),K||(y=w),W||(V=w),R||(g=w)}return(g==null?void 0:g[I])??(V==null?void 0:V[I])??(y==null?void 0:y[I])??""}return n}const Ia=["aria-label"],Ta={class:"DocSearch-Button-Container"},Ca=c("svg",{class:"DocSearch-Search-Icon",width:"20",height:"20",viewBox:"0 0 20 20","aria-label":"search icon"},[c("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"})],-1),Ba={class:"DocSearch-Button-Placeholder"},Aa=c("span",{class:"DocSearch-Button-Keys"},[c("kbd",{class:"DocSearch-Button-Key"}),c("kbd",{class:"DocSearch-Button-Key"},"K")],-1),Pe=b({__name:"VPNavBarSearchButton",setup(s){const{theme:e}=P(),t={button:{buttonText:"Search",buttonAriaLabel:"Search"}},n=je(Na)(Ke(()=>{var o;return(o=e.value.search)==null?void 0:o.options}),t);return(o,r)=>(a(),i("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":l(n)("button.buttonAriaLabel")},[c("span",Ta,[Ca,c("span",Ba,L(l(n)("button.buttonText")),1)]),Aa],8,Ia))}});const xa={class:"VPNavBarSearch"},Ha={id:"local-search"},za={key:1,id:"docsearch"},Da=b({__name:"VPNavBarSearch",setup(s){const e=Re(()=>qe(()=>import("./VPLocalSearchBox.51ccc229.js"),["assets/chunks/VPLocalSearchBox.51ccc229.js","assets/chunks/framework.c401375a.js"])),t=()=>null,{theme:n}=P(),o=M(!1),r=M(!1);G(()=>{});function d(){o.value||(o.value=!0,setTimeout(p,16))}function p(){const y=new Event("keydown");y.key="k",y.metaKey=!0,window.dispatchEvent(y),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||p()},16)}function _(y){const I=y.target,S=I.tagName;return I.isContentEditable||S==="INPUT"||S==="SELECT"||S==="TEXTAREA"}const g=M(!1);ke("k",y=>{(y.ctrlKey||y.metaKey)&&(y.preventDefault(),g.value=!0)}),ke("/",y=>{_(y)||(y.preventDefault(),g.value=!0)});const V="local";return(y,I)=>{var S;return a(),i("div",xa,[l(V)==="local"?(a(),i(N,{key:0},[g.value?(a(),$(l(e),{key:0,onClose:I[0]||(I[0]=C=>g.value=!1)})):f("",!0),c("div",Ha,[h(Pe,{onClick:I[1]||(I[1]=C=>g.value=!0)})])],64)):l(V)==="algolia"?(a(),i(N,{key:1},[o.value?(a(),$(l(t),{key:0,algolia:((S=l(n).search)==null?void 0:S.options)??l(n).algolia,onVnodeBeforeMount:I[2]||(I[2]=C=>r.value=!0)},null,8,["algolia"])):f("",!0),r.value?f("",!0):(a(),i("div",za,[h(Pe,{onClick:d})]))],64)):f("",!0)])}}});const Ea=b({__name:"VPNavBarSocialLinks",setup(s){const{theme:e}=P();return(t,n)=>l(e).socialLinks?(a(),$($e,{key:0,class:"VPNavBarSocialLinks",links:l(e).socialLinks},null,8,["links"])):f("",!0)}});const Fa=m(Ea,[["__scopeId","data-v-0394ad82"]]),Oa=["href"],Ga=b({__name:"VPNavBarTitle",setup(s){const{site:e,theme:t}=P(),{hasSidebar:n}=D(),{currentLang:o}=X();return(r,d)=>(a(),i("div",{class:T(["VPNavBarTitle",{"has-sidebar":l(n)}])},[c("a",{class:"title",href:l(t).logoLink??l(J)(l(o).link)},[u(r.$slots,"nav-bar-title-before",{},void 0,!0),l(t).logo?(a(),$(ee,{key:0,class:"logo",image:l(t).logo},null,8,["image"])):f("",!0),l(t).siteTitle?(a(),i(N,{key:1},[x(L(l(t).siteTitle),1)],64)):l(t).siteTitle===void 0?(a(),i(N,{key:2},[x(L(l(e).title),1)],64)):f("",!0),u(r.$slots,"nav-bar-title-after",{},void 0,!0)],8,Oa)],2))}});const Ua=m(Ga,[["__scopeId","data-v-86d1bed8"]]),ja={},Ka={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Ra=c("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),qa=c("path",{d:" M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z ",class:"css-c4d79v"},null,-1),Wa=[Ra,qa];function Ya(s,e){return a(),i("svg",Ka,Wa)}const Ae=m(ja,[["render",Ya]]),Ja={class:"items"},Xa={class:"title"},Za=b({__name:"VPNavBarTranslations",setup(s){const{theme:e}=P(),{localeLinks:t,currentLang:n}=X({correspondingLink:!0});return(o,r)=>l(t).length&&l(n).label?(a(),$(be,{key:0,class:"VPNavBarTranslations",icon:Ae,label:l(e).langMenuLabel||"Change language"},{default:v(()=>[c("div",Ja,[c("p",Xa,L(l(n).label),1),(a(!0),i(N,null,A(l(t),d=>(a(),$(oe,{key:d.link,item:d},null,8,["item"]))),128))])]),_:1},8,["label"])):f("",!0)}});const Qa=m(Za,[["__scopeId","data-v-74abcbb9"]]),er=s=>(H("data-v-a0fd61f4"),s=s(),z(),s),tr={class:"container"},sr={class:"title"},nr={class:"content"},or=er(()=>c("div",{class:"curtain"},null,-1)),ar={class:"content-body"},rr=b({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(s){const{y:e}=Le(),{hasSidebar:t}=D(),{frontmatter:n}=P(),o=M({});return Ve(()=>{o.value={"has-sidebar":t.value,top:n.value.layout==="home"&&e.value===0}}),(r,d)=>(a(),i("div",{class:T(["VPNavBar",o.value])},[c("div",tr,[c("div",sr,[h(Ua,null,{"nav-bar-title-before":v(()=>[u(r.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[u(r.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),c("div",nr,[or,c("div",ar,[u(r.$slots,"nav-bar-content-before",{},void 0,!0),h(Da,{class:"search"}),h(Ma,{class:"menu"}),h(Qa,{class:"translations"}),h($o,{class:"appearance"}),h(Fa,{class:"social-links"}),h(va,{class:"extra"}),u(r.$slots,"nav-bar-content-after",{},void 0,!0),h(ba,{class:"hamburger",active:r.isScreenOpen,onClick:d[0]||(d[0]=p=>r.$emit("toggle-screen"))},null,8,["active"])])])])],2))}});const lr=m(rr,[["__scopeId","data-v-a0fd61f4"]]),ir={key:0,class:"VPNavScreenAppearance"},cr={class:"text"},ur=b({__name:"VPNavScreenAppearance",setup(s){const{site:e,theme:t}=P();return(n,o)=>l(e).appearance?(a(),i("div",ir,[c("p",cr,L(l(t).darkModeSwitchLabel||"Appearance"),1),h(me)])):f("",!0)}});const dr=m(ur,[["__scopeId","data-v-add8f686"]]),_r=b({__name:"VPNavScreenMenuLink",props:{item:{}},setup(s){const e=ne("close-screen");return(t,n)=>(a(),$(E,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:l(e)},{default:v(()=>[x(L(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}});const vr=m(_r,[["__scopeId","data-v-05f27b2a"]]),pr={},hr={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},fr=c("path",{d:"M18.9,10.9h-6v-6c0-0.6-0.4-1-1-1s-1,0.4-1,1v6h-6c-0.6,0-1,0.4-1,1s0.4,1,1,1h6v6c0,0.6,0.4,1,1,1s1-0.4,1-1v-6h6c0.6,0,1-0.4,1-1S19.5,10.9,18.9,10.9z"},null,-1),mr=[fr];function gr(s,e){return a(),i("svg",hr,mr)}const br=m(pr,[["render",gr]]),$r=b({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(s){const e=ne("close-screen");return(t,n)=>(a(),$(E,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:l(e)},{default:v(()=>[x(L(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}});const xe=m($r,[["__scopeId","data-v-19976ae1"]]),kr={class:"VPNavScreenMenuGroupSection"},yr={key:0,class:"title"},Pr=b({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(s){return(e,t)=>(a(),i("div",kr,[e.text?(a(),i("p",yr,L(e.text),1)):f("",!0),(a(!0),i(N,null,A(e.items,n=>(a(),$(xe,{key:n.text,item:n},null,8,["item"]))),128))]))}});const Vr=m(Pr,[["__scopeId","data-v-8133b170"]]),wr=["aria-controls","aria-expanded"],Lr={class:"button-text"},Sr=["id"],Mr={key:1,class:"group"},Nr=b({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(s){const e=s,t=M(!1),n=k(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function o(){t.value=!t.value}return(r,d)=>(a(),i("div",{class:T(["VPNavScreenMenuGroup",{open:t.value}])},[c("button",{class:"button","aria-controls":n.value,"aria-expanded":t.value,onClick:o},[c("span",Lr,L(r.text),1),h(br,{class:"button-icon"})],8,wr),c("div",{id:n.value,class:"items"},[(a(!0),i(N,null,A(r.items,p=>(a(),i(N,{key:p.text},["link"in p?(a(),i("div",{key:p.text,class:"item"},[h(xe,{item:p},null,8,["item"])])):(a(),i("div",Mr,[h(Vr,{text:p.text,items:p.items},null,8,["text","items"])]))],64))),128))],8,Sr)],2))}});const Ir=m(Nr,[["__scopeId","data-v-1ecb84e7"]]),Tr={key:0,class:"VPNavScreenMenu"},Cr=b({__name:"VPNavScreenMenu",setup(s){const{theme:e}=P();return(t,n)=>l(e).nav?(a(),i("nav",Tr,[(a(!0),i(N,null,A(l(e).nav,o=>(a(),i(N,{key:o.text},["link"in o?(a(),$(vr,{key:0,item:o},null,8,["item"])):(a(),$(Ir,{key:1,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):f("",!0)}}),Br=b({__name:"VPNavScreenSocialLinks",setup(s){const{theme:e}=P();return(t,n)=>l(e).socialLinks?(a(),$($e,{key:0,class:"VPNavScreenSocialLinks",links:l(e).socialLinks},null,8,["links"])):f("",!0)}}),Ar={class:"list"},xr=b({__name:"VPNavScreenTranslations",setup(s){const{localeLinks:e,currentLang:t}=X({correspondingLink:!0}),n=M(!1);function o(){n.value=!n.value}return(r,d)=>l(e).length&&l(t).label?(a(),i("div",{key:0,class:T(["VPNavScreenTranslations",{open:n.value}])},[c("button",{class:"title",onClick:o},[h(Ae,{class:"icon lang"}),x(" "+L(l(t).label)+" ",1),h(Be,{class:"icon chevron"})]),c("ul",Ar,[(a(!0),i(N,null,A(l(e),p=>(a(),i("li",{key:p.link,class:"item"},[h(E,{class:"link",href:p.link},{default:v(()=>[x(L(p.text),1)]),_:2},1032,["href"])]))),128))])],2)):f("",!0)}});const Hr=m(xr,[["__scopeId","data-v-d72aa483"]]),zr={class:"container"},Dr=b({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(s){const e=M(null),t=Se(q?document.body:null);return(n,o)=>(a(),$(ce,{name:"fade",onEnter:o[0]||(o[0]=r=>t.value=!0),onAfterLeave:o[1]||(o[1]=r=>t.value=!1)},{default:v(()=>[n.open?(a(),i("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[c("div",zr,[u(n.$slots,"nav-screen-content-before",{},void 0,!0),h(Cr,{class:"menu"}),h(Hr,{class:"translations"}),h(dr,{class:"appearance"}),h(Br,{class:"social-links"}),u(n.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):f("",!0)]),_:3}))}});const Er=m(Dr,[["__scopeId","data-v-cc5739dd"]]),Fr={key:0,class:"VPNav"},Or=b({__name:"VPNav",setup(s){const{isScreenOpen:e,closeScreen:t,toggleScreen:n}=Xn(),{frontmatter:o}=P(),r=k(()=>o.value.navbar!==!1);return Me("close-screen",t),te(()=>{q&&document.documentElement.classList.toggle("hide-nav",!r.value)}),(d,p)=>r.value?(a(),i("header",Fr,[h(lr,{"is-screen-open":l(e),onToggleScreen:l(n)},{"nav-bar-title-before":v(()=>[u(d.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[u(d.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[u(d.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[u(d.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),h(Er,{open:l(e)},{"nav-screen-content-before":v(()=>[u(d.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[u(d.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):f("",!0)}});const Gr=m(Or,[["__scopeId","data-v-ae24b3ad"]]),Ur=s=>(H("data-v-e31bd47b"),s=s(),z(),s),jr=["role","tabindex"],Kr=Ur(()=>c("div",{class:"indicator"},null,-1)),Rr=["onKeydown"],qr={key:1,class:"items"},Wr=b({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(s){const e=s,{collapsed:t,collapsible:n,isLink:o,isActiveLink:r,hasActiveLink:d,hasChildren:p,toggle:_}=gt(k(()=>e.item)),g=k(()=>p.value?"section":"div"),V=k(()=>o.value?"a":"div"),y=k(()=>p.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),I=k(()=>o.value?void 0:"button"),S=k(()=>[[`level-${e.depth}`],{collapsible:n.value},{collapsed:t.value},{"is-link":o.value},{"is-active":r.value},{"has-active":d.value}]);function C(w){"key"in w&&w.key!=="Enter"||!e.item.link&&_()}function B(){e.item.link&&_()}return(w,K)=>{const W=j("VPSidebarItem",!0);return a(),$(F(g.value),{class:T(["VPSidebarItem",S.value])},{default:v(()=>[w.item.text?(a(),i("div",Z({key:0,class:"item",role:I.value},We(w.item.items?{click:C,keydown:C}:{},!0),{tabindex:w.item.items&&0}),[Kr,w.item.link?(a(),$(E,{key:0,tag:V.value,class:"link",href:w.item.link,rel:w.item.rel,target:w.item.target},{default:v(()=>[(a(),$(F(y.value),{class:"text",innerHTML:w.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(a(),$(F(y.value),{key:1,class:"text",innerHTML:w.item.text},null,8,["innerHTML"])),w.item.collapsed!=null?(a(),i("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:B,onKeydown:Ye(B,["enter"]),tabindex:"0"},[h(fe,{class:"caret-icon"})],40,Rr)):f("",!0)],16,jr)):f("",!0),w.item.items&&w.item.items.length?(a(),i("div",qr,[w.depth<5?(a(!0),i(N,{key:0},A(w.item.items,R=>(a(),$(W,{key:R.text,item:R,depth:w.depth+1},null,8,["item","depth"]))),128)):f("",!0)])):f("",!0)]),_:1},8,["class"])}}});const Yr=m(Wr,[["__scopeId","data-v-e31bd47b"]]),He=s=>(H("data-v-b00e2fdd"),s=s(),z(),s),Jr=He(()=>c("div",{class:"curtain"},null,-1)),Xr={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},Zr=He(()=>c("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),Qr=b({__name:"VPSidebar",props:{open:{type:Boolean}},setup(s){const{sidebarGroups:e,hasSidebar:t}=D(),n=s,o=M(null),r=Se(q?document.body:null);return U([n,o],()=>{var d;n.open?(r.value=!0,(d=o.value)==null||d.focus()):r.value=!1},{immediate:!0,flush:"post"}),(d,p)=>l(t)?(a(),i("aside",{key:0,class:T(["VPSidebar",{open:d.open}]),ref_key:"navEl",ref:o,onClick:p[0]||(p[0]=Je(()=>{},["stop"]))},[Jr,c("nav",Xr,[Zr,u(d.$slots,"sidebar-nav-before",{},void 0,!0),(a(!0),i(N,null,A(l(e),_=>(a(),i("div",{key:_.text,class:"group"},[h(Yr,{item:_,depth:0},null,8,["item"])]))),128)),u(d.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):f("",!0)}});const el=m(Qr,[["__scopeId","data-v-b00e2fdd"]]),tl=b({__name:"VPSkipLink",setup(s){const e=se(),t=M();U(()=>e.path,()=>t.value.focus());function n({target:o}){const r=document.getElementById(decodeURIComponent(o.hash).slice(1));if(r){const d=()=>{r.removeAttribute("tabindex"),r.removeEventListener("blur",d)};r.setAttribute("tabindex","-1"),r.addEventListener("blur",d),r.focus(),window.scrollTo(0,0)}}return(o,r)=>(a(),i(N,null,[c("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),c("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:n}," Skip to content ")],64))}});const sl=m(tl,[["__scopeId","data-v-0f60ec36"]]),nl=b({__name:"Layout",setup(s){const{isOpen:e,open:t,close:n}=D(),o=se();U(()=>o.path,n),mt(e,n);const{frontmatter:r}=P(),d=Xe(),p=k(()=>!!d["home-hero-image"]);return Me("hero-image-slot-exists",p),(_,g)=>{const V=j("Content");return l(r).layout!==!1?(a(),i("div",{key:0,class:T(["Layout",l(r).pageClass])},[u(_.$slots,"layout-top",{},void 0,!0),h(sl),h(st,{class:"backdrop",show:l(e),onClick:l(n)},null,8,["show","onClick"]),h(Gr,null,{"nav-bar-title-before":v(()=>[u(_.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[u(_.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[u(_.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[u(_.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":v(()=>[u(_.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[u(_.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),h(Jn,{open:l(e),onOpenMenu:l(t)},null,8,["open","onOpenMenu"]),h(el,{open:l(e)},{"sidebar-nav-before":v(()=>[u(_.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":v(()=>[u(_.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),h(Mn,null,{"page-top":v(()=>[u(_.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[u(_.$slots,"page-bottom",{},void 0,!0)]),"not-found":v(()=>[u(_.$slots,"not-found",{},void 0,!0)]),"home-hero-before":v(()=>[u(_.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info":v(()=>[u(_.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-image":v(()=>[u(_.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[u(_.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[u(_.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[u(_.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":v(()=>[u(_.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[u(_.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[u(_.$slots,"doc-after",{},void 0,!0)]),"doc-top":v(()=>[u(_.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[u(_.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":v(()=>[u(_.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[u(_.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[u(_.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[u(_.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[u(_.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[u(_.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),h(Bn),u(_.$slots,"layout-bottom",{},void 0,!0)],2)):(a(),$(V,{key:1}))}}});const ol=m(nl,[["__scopeId","data-v-5a346dfe"]]);const rl={Layout:ol,enhanceApp:({app:s})=>{s.component("Badge",Qe)}};export{Na as c,rl as t,P as u}; diff --git a/assets/components_sample_axis_index.md.df7f96c5.js b/assets/components_sample_axis_index.md.de1055b1.js similarity index 99% rename from assets/components_sample_axis_index.md.df7f96c5.js rename to assets/components_sample_axis_index.md.de1055b1.js index 9569d8cce..d2e1911ac 100644 --- a/assets/components_sample_axis_index.md.df7f96c5.js +++ b/assets/components_sample_axis_index.md.de1055b1.js @@ -1,4 +1,4 @@ -import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/axis/index.md","filePath":"components/sample/axis/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/axis/index.md"},o=l(`
js
import { init } from 'klinecharts'
+import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/axis/index.md","filePath":"components/sample/axis/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/axis/index.md"},o=l(`
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/components_sample_axis_index.md.df7f96c5.lean.js b/assets/components_sample_axis_index.md.de1055b1.lean.js
similarity index 100%
rename from assets/components_sample_axis_index.md.df7f96c5.lean.js
rename to assets/components_sample_axis_index.md.de1055b1.lean.js
diff --git a/assets/components_sample_basic_index.md.bf6fe05d.js b/assets/components_sample_basic_index.md.0f2b9a3e.js
similarity index 99%
rename from assets/components_sample_basic_index.md.bf6fe05d.js
rename to assets/components_sample_basic_index.md.0f2b9a3e.js
index bccccbb4d..ba3c77d90 100644
--- a/assets/components_sample_basic_index.md.bf6fe05d.js
+++ b/assets/components_sample_basic_index.md.0f2b9a3e.js
@@ -1,4 +1,4 @@
-import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const A=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/basic/index.md","filePath":"components/sample/basic/index.md","lastUpdated":1698696868000}'),p={name:"components/sample/basic/index.md"},o=l(`
js
import { init } from 'klinecharts'
+import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const A=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/basic/index.md","filePath":"components/sample/basic/index.md","lastUpdated":1698696868000}'),p={name:"components/sample/basic/index.md"},o=l(`
js
import { init } from 'klinecharts'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
   let basePrice = 5000
diff --git a/assets/components_sample_basic_index.md.bf6fe05d.lean.js b/assets/components_sample_basic_index.md.0f2b9a3e.lean.js
similarity index 100%
rename from assets/components_sample_basic_index.md.bf6fe05d.lean.js
rename to assets/components_sample_basic_index.md.0f2b9a3e.lean.js
diff --git a/assets/components_sample_candle-type_index.md.15b2305b.js b/assets/components_sample_candle-type_index.md.c9d4a4b7.js
similarity index 99%
rename from assets/components_sample_candle-type_index.md.15b2305b.js
rename to assets/components_sample_candle-type_index.md.c9d4a4b7.js
index e98b511fe..444340151 100644
--- a/assets/components_sample_candle-type_index.md.15b2305b.js
+++ b/assets/components_sample_candle-type_index.md.c9d4a4b7.js
@@ -1,4 +1,4 @@
-import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/candle-type/index.md","filePath":"components/sample/candle-type/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/candle-type/index.md"},o=l(`
js
import { init } from 'klinecharts'
+import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/candle-type/index.md","filePath":"components/sample/candle-type/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/candle-type/index.md"},o=l(`
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/components_sample_candle-type_index.md.15b2305b.lean.js b/assets/components_sample_candle-type_index.md.c9d4a4b7.lean.js
similarity index 100%
rename from assets/components_sample_candle-type_index.md.15b2305b.lean.js
rename to assets/components_sample_candle-type_index.md.c9d4a4b7.lean.js
diff --git a/assets/components_sample_data_index.md.e21a7f8d.js b/assets/components_sample_data_index.md.7dfa20e6.js
similarity index 99%
rename from assets/components_sample_data_index.md.e21a7f8d.js
rename to assets/components_sample_data_index.md.7dfa20e6.js
index ed2fd73da..f1e250098 100644
--- a/assets/components_sample_data_index.md.e21a7f8d.js
+++ b/assets/components_sample_data_index.md.7dfa20e6.js
@@ -1,4 +1,4 @@
-import{_ as s,o as a,c as n,Q as l}from"./chunks/framework.c401375a.js";const A=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/data/index.md","filePath":"components/sample/data/index.md","lastUpdated":1698696868000}'),p={name:"components/sample/data/index.md"},o=l(`
js
import { init } from 'klinecharts'
+import{_ as s,o as a,c as n,Q as l}from"./chunks/framework.c401375a.js";const A=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/data/index.md","filePath":"components/sample/data/index.md","lastUpdated":1698696868000}'),p={name:"components/sample/data/index.md"},o=l(`
js
import { init } from 'klinecharts'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
   let basePrice = 5000
diff --git a/assets/components_sample_data_index.md.e21a7f8d.lean.js b/assets/components_sample_data_index.md.7dfa20e6.lean.js
similarity index 100%
rename from assets/components_sample_data_index.md.e21a7f8d.lean.js
rename to assets/components_sample_data_index.md.7dfa20e6.lean.js
diff --git a/assets/components_sample_i18n_index.md.6cb84381.js b/assets/components_sample_i18n_index.md.8ed87aa7.js
similarity index 99%
rename from assets/components_sample_i18n_index.md.6cb84381.js
rename to assets/components_sample_i18n_index.md.8ed87aa7.js
index e64e520e8..fc36c3ddd 100644
--- a/assets/components_sample_i18n_index.md.6cb84381.js
+++ b/assets/components_sample_i18n_index.md.8ed87aa7.js
@@ -1,4 +1,4 @@
-import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/i18n/index.md","filePath":"components/sample/i18n/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/i18n/index.md"},o=l(`
js
import { init, registerLocale } from 'klinecharts'
+import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/i18n/index.md","filePath":"components/sample/i18n/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/i18n/index.md"},o=l(`
js
import { init, registerLocale } from 'klinecharts'
 import './index.less'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/components_sample_i18n_index.md.6cb84381.lean.js b/assets/components_sample_i18n_index.md.8ed87aa7.lean.js
similarity index 100%
rename from assets/components_sample_i18n_index.md.6cb84381.lean.js
rename to assets/components_sample_i18n_index.md.8ed87aa7.lean.js
diff --git a/assets/components_sample_indicator_index.md.18fc3e7d.js b/assets/components_sample_indicator_index.md.7f178871.js
similarity index 99%
rename from assets/components_sample_indicator_index.md.18fc3e7d.js
rename to assets/components_sample_indicator_index.md.7f178871.js
index 4f51c275c..9c164fcd9 100644
--- a/assets/components_sample_indicator_index.md.18fc3e7d.js
+++ b/assets/components_sample_indicator_index.md.7f178871.js
@@ -1,4 +1,4 @@
-import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/indicator/index.md","filePath":"components/sample/indicator/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/indicator/index.md"},o=l(`
js
import { init, registerIndicator } from 'klinecharts'
+import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/indicator/index.md","filePath":"components/sample/indicator/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/indicator/index.md"},o=l(`
js
import { init, registerIndicator } from 'klinecharts'
 import './index.css'
 
 const fruits = [
diff --git a/assets/components_sample_indicator_index.md.18fc3e7d.lean.js b/assets/components_sample_indicator_index.md.7f178871.lean.js
similarity index 100%
rename from assets/components_sample_indicator_index.md.18fc3e7d.lean.js
rename to assets/components_sample_indicator_index.md.7f178871.lean.js
diff --git a/assets/components_sample_overlay_index.md.3f97d257.js b/assets/components_sample_overlay_index.md.80c1a44d.js
similarity index 99%
rename from assets/components_sample_overlay_index.md.3f97d257.js
rename to assets/components_sample_overlay_index.md.80c1a44d.js
index ff83cd40f..599cade20 100644
--- a/assets/components_sample_overlay_index.md.3f97d257.js
+++ b/assets/components_sample_overlay_index.md.80c1a44d.js
@@ -1,4 +1,4 @@
-import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/overlay/index.md","filePath":"components/sample/overlay/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/overlay/index.md"},o=l(`
js
import { init, registerOverlay } from 'klinecharts'
+import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/overlay/index.md","filePath":"components/sample/overlay/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/overlay/index.md"},o=l(`
js
import { init, registerOverlay } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/components_sample_overlay_index.md.3f97d257.lean.js b/assets/components_sample_overlay_index.md.80c1a44d.lean.js
similarity index 100%
rename from assets/components_sample_overlay_index.md.3f97d257.lean.js
rename to assets/components_sample_overlay_index.md.80c1a44d.lean.js
diff --git a/assets/components_sample_theme_index.md.10b62b35.js b/assets/components_sample_theme_index.md.b864fd33.js
similarity index 99%
rename from assets/components_sample_theme_index.md.10b62b35.js
rename to assets/components_sample_theme_index.md.b864fd33.js
index 6fae9ff91..f1d023265 100644
--- a/assets/components_sample_theme_index.md.10b62b35.js
+++ b/assets/components_sample_theme_index.md.b864fd33.js
@@ -1,4 +1,4 @@
-import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/theme/index.md","filePath":"components/sample/theme/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/theme/index.md"},o=l(`
js
import { init, registerStyles } from 'klinecharts'
+import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/theme/index.md","filePath":"components/sample/theme/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/theme/index.md"},o=l(`
js
import { init, registerStyles } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/components_sample_theme_index.md.10b62b35.lean.js b/assets/components_sample_theme_index.md.b864fd33.lean.js
similarity index 100%
rename from assets/components_sample_theme_index.md.10b62b35.lean.js
rename to assets/components_sample_theme_index.md.b864fd33.lean.js
diff --git a/assets/components_sample_timezone_index.md.9ad259f2.js b/assets/components_sample_timezone_index.md.01d1e31d.js
similarity index 99%
rename from assets/components_sample_timezone_index.md.9ad259f2.js
rename to assets/components_sample_timezone_index.md.01d1e31d.js
index 158d94af9..fe1c03374 100644
--- a/assets/components_sample_timezone_index.md.9ad259f2.js
+++ b/assets/components_sample_timezone_index.md.01d1e31d.js
@@ -1,4 +1,4 @@
-import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/timezone/index.md","filePath":"components/sample/timezone/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/timezone/index.md"},o=l(`
js
import { init } from 'klinecharts'
+import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/timezone/index.md","filePath":"components/sample/timezone/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/timezone/index.md"},o=l(`
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/components_sample_timezone_index.md.9ad259f2.lean.js b/assets/components_sample_timezone_index.md.01d1e31d.lean.js
similarity index 100%
rename from assets/components_sample_timezone_index.md.9ad259f2.lean.js
rename to assets/components_sample_timezone_index.md.01d1e31d.lean.js
diff --git a/assets/components_sample_tooltip_index.md.6e7e6d72.js b/assets/components_sample_tooltip_index.md.01467383.js
similarity index 99%
rename from assets/components_sample_tooltip_index.md.6e7e6d72.js
rename to assets/components_sample_tooltip_index.md.01467383.js
index 2c4801e5d..337ad62a4 100644
--- a/assets/components_sample_tooltip_index.md.6e7e6d72.js
+++ b/assets/components_sample_tooltip_index.md.01467383.js
@@ -1,4 +1,4 @@
-import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/tooltip/index.md","filePath":"components/sample/tooltip/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/tooltip/index.md"},o=l(`
js
import { init } from 'klinecharts'
+import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const B=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"components/sample/tooltip/index.md","filePath":"components/sample/tooltip/index.md","lastUpdated":1698784282000}'),p={name:"components/sample/tooltip/index.md"},o=l(`
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/components_sample_tooltip_index.md.6e7e6d72.lean.js b/assets/components_sample_tooltip_index.md.01467383.lean.js
similarity index 100%
rename from assets/components_sample_tooltip_index.md.6e7e6d72.lean.js
rename to assets/components_sample_tooltip_index.md.01467383.lean.js
diff --git a/assets/en-US_guide_getting-started.md.e87ea1ad.js b/assets/en-US_guide_getting-started.md.9ca97539.js
similarity index 99%
rename from assets/en-US_guide_getting-started.md.e87ea1ad.js
rename to assets/en-US_guide_getting-started.md.9ca97539.js
index ad9631999..53df59010 100644
--- a/assets/en-US_guide_getting-started.md.e87ea1ad.js
+++ b/assets/en-US_guide_getting-started.md.9ca97539.js
@@ -1,4 +1,4 @@
-import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const E=JSON.parse('{"title":"🚀 Getting started","description":"","frontmatter":{},"headers":[],"relativePath":"en-US/guide/getting-started.md","filePath":"en-US/guide/getting-started.md","lastUpdated":1698528706000}'),p={name:"en-US/guide/getting-started.md"},o=l(`

🚀 Getting started

Get KLineChart

KLineChart supports multiple download methods, you can get it through package management tools such as npm or yarn, or through CDN.

bash
npm install klinecharts
npm install klinecharts
bash
yarn add klinecharts
yarn add klinecharts
html
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>

Create the first chart

jsx
import { useEffect } from 'react'
+import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const E=JSON.parse('{"title":"🚀 Getting started","description":"","frontmatter":{},"headers":[],"relativePath":"en-US/guide/getting-started.md","filePath":"en-US/guide/getting-started.md","lastUpdated":1698528706000}'),p={name:"en-US/guide/getting-started.md"},o=l(`

🚀 Getting started

Get KLineChart

KLineChart supports multiple download methods, you can get it through package management tools such as npm or yarn, or through CDN.

bash
npm install klinecharts
npm install klinecharts
bash
yarn add klinecharts
yarn add klinecharts
html
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>

Create the first chart

jsx
import { useEffect } from 'react'
 import { init, dispose } from 'klinecharts'
 
 export default () => {
diff --git a/assets/en-US_guide_getting-started.md.e87ea1ad.lean.js b/assets/en-US_guide_getting-started.md.9ca97539.lean.js
similarity index 100%
rename from assets/en-US_guide_getting-started.md.e87ea1ad.lean.js
rename to assets/en-US_guide_getting-started.md.9ca97539.lean.js
diff --git a/assets/en-US_sample_axis.md.5227b6d6.js b/assets/en-US_sample_axis.md.28f57e25.js
similarity index 99%
rename from assets/en-US_sample_axis.md.5227b6d6.js
rename to assets/en-US_sample_axis.md.28f57e25.js
index debb2c599..d2a4ef1c4 100644
--- a/assets/en-US_sample_axis.md.5227b6d6.js
+++ b/assets/en-US_sample_axis.md.28f57e25.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as s,h as o,c as a}from"./chunks/index.3fa44176.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"axis",tabindex:"-1"},[p("Axis "),e("a",{class:"header-anchor",href:"#axis","aria-label":'Permalink to "Axis"'},"​")],-1),h=c(`
js
import { init } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as s,h as o,c as a}from"./chunks/index.3fa44176.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"axis",tabindex:"-1"},[p("Axis "),e("a",{class:"header-anchor",href:"#axis","aria-label":'Permalink to "Axis"'},"​")],-1),h=c(`
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/en-US_sample_axis.md.5227b6d6.lean.js b/assets/en-US_sample_axis.md.28f57e25.lean.js
similarity index 100%
rename from assets/en-US_sample_axis.md.5227b6d6.lean.js
rename to assets/en-US_sample_axis.md.28f57e25.lean.js
diff --git a/assets/en-US_sample_basic.md.5b19d9e1.js b/assets/en-US_sample_basic.md.a20f4ddd.js
similarity index 99%
rename from assets/en-US_sample_basic.md.5b19d9e1.js
rename to assets/en-US_sample_basic.md.a20f4ddd.js
index 8440543ff..a87a4dfec 100644
--- a/assets/en-US_sample_basic.md.5b19d9e1.js
+++ b/assets/en-US_sample_basic.md.a20f4ddd.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as i}from"./chunks/index.7607712b.js";import{o as a,c as r,H as s,l as t,k as e,a as l,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"basic",tabindex:"-1"},[l("Basic "),e("a",{class:"header-anchor",href:"#basic","aria-label":'Permalink to "Basic"'},"​")],-1),p=c(`
js
import { init } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as i}from"./chunks/index.7607712b.js";import{o as a,c as r,H as s,l as t,k as e,a as l,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"basic",tabindex:"-1"},[l("Basic "),e("a",{class:"header-anchor",href:"#basic","aria-label":'Permalink to "Basic"'},"​")],-1),p=c(`
js
import { init } from 'klinecharts'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
   let basePrice = 5000
diff --git a/assets/en-US_sample_basic.md.5b19d9e1.lean.js b/assets/en-US_sample_basic.md.a20f4ddd.lean.js
similarity index 100%
rename from assets/en-US_sample_basic.md.5b19d9e1.lean.js
rename to assets/en-US_sample_basic.md.a20f4ddd.lean.js
diff --git a/assets/en-US_sample_candle-type.md.2149e9fa.js b/assets/en-US_sample_candle-type.md.f057a0d8.js
similarity index 99%
rename from assets/en-US_sample_candle-type.md.2149e9fa.js
rename to assets/en-US_sample_candle-type.md.f057a0d8.js
index a0b8476d2..06abe88d3 100644
--- a/assets/en-US_sample_candle-type.md.2149e9fa.js
+++ b/assets/en-US_sample_candle-type.md.f057a0d8.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.a5468e2b.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"candle-type",tabindex:"-1"},[c("Candle Type "),e("a",{class:"header-anchor",href:"#candle-type","aria-label":'Permalink to "Candle Type"'},"​")],-1),h=p(`
js
import { init } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.a5468e2b.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"candle-type",tabindex:"-1"},[c("Candle Type "),e("a",{class:"header-anchor",href:"#candle-type","aria-label":'Permalink to "Candle Type"'},"​")],-1),h=p(`
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/en-US_sample_candle-type.md.2149e9fa.lean.js b/assets/en-US_sample_candle-type.md.f057a0d8.lean.js
similarity index 100%
rename from assets/en-US_sample_candle-type.md.2149e9fa.lean.js
rename to assets/en-US_sample_candle-type.md.f057a0d8.lean.js
diff --git a/assets/en-US_sample_data.md.78a74d7f.js b/assets/en-US_sample_data.md.d50fd3e1.js
similarity index 99%
rename from assets/en-US_sample_data.md.78a74d7f.js
rename to assets/en-US_sample_data.md.d50fd3e1.js
index bde36184c..4060d88b6 100644
--- a/assets/en-US_sample_data.md.78a74d7f.js
+++ b/assets/en-US_sample_data.md.d50fd3e1.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as i}from"./chunks/index.9e06f78c.js";import{o as a,c as s,H as r,l as t,k as e,a as l,Q as c}from"./chunks/framework.c401375a.js";const p=e("h1",{id:"data",tabindex:"-1"},[l("Data "),e("a",{class:"header-anchor",href:"#data","aria-label":'Permalink to "Data"'},"​")],-1),u=c(`
js
import { init } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as i}from"./chunks/index.9e06f78c.js";import{o as a,c as s,H as r,l as t,k as e,a as l,Q as c}from"./chunks/framework.c401375a.js";const p=e("h1",{id:"data",tabindex:"-1"},[l("Data "),e("a",{class:"header-anchor",href:"#data","aria-label":'Permalink to "Data"'},"​")],-1),u=c(`
js
import { init } from 'klinecharts'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
   let basePrice = 5000
diff --git a/assets/en-US_sample_data.md.78a74d7f.lean.js b/assets/en-US_sample_data.md.d50fd3e1.lean.js
similarity index 100%
rename from assets/en-US_sample_data.md.78a74d7f.lean.js
rename to assets/en-US_sample_data.md.d50fd3e1.lean.js
diff --git a/assets/en-US_sample_i18n.md.ec5e03b8.js b/assets/en-US_sample_i18n.md.1ad12f8b.js
similarity index 99%
rename from assets/en-US_sample_i18n.md.ec5e03b8.js
rename to assets/en-US_sample_i18n.md.1ad12f8b.js
index faae4e23f..3f3466fdd 100644
--- a/assets/en-US_sample_i18n.md.ec5e03b8.js
+++ b/assets/en-US_sample_i18n.md.1ad12f8b.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.5af418fd.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"i18n",tabindex:"-1"},[c("I18n "),e("a",{class:"header-anchor",href:"#i18n","aria-label":'Permalink to "I18n"'},"​")],-1),h=p(`
js
import { init, registerLocale } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.5af418fd.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"i18n",tabindex:"-1"},[c("I18n "),e("a",{class:"header-anchor",href:"#i18n","aria-label":'Permalink to "I18n"'},"​")],-1),h=p(`
js
import { init, registerLocale } from 'klinecharts'
 import './index.less'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/en-US_sample_i18n.md.ec5e03b8.lean.js b/assets/en-US_sample_i18n.md.1ad12f8b.lean.js
similarity index 100%
rename from assets/en-US_sample_i18n.md.ec5e03b8.lean.js
rename to assets/en-US_sample_i18n.md.1ad12f8b.lean.js
diff --git a/assets/en-US_sample_indicator.md.67007b42.js b/assets/en-US_sample_indicator.md.1705d7aa.js
similarity index 99%
rename from assets/en-US_sample_indicator.md.67007b42.js
rename to assets/en-US_sample_indicator.md.1705d7aa.js
index 0a17c591d..a565bcc9b 100644
--- a/assets/en-US_sample_indicator.md.67007b42.js
+++ b/assets/en-US_sample_indicator.md.1705d7aa.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as s,h as o,c as a}from"./chunks/index.bdd66fc8.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"indicator",tabindex:"-1"},[p("Indicator "),e("a",{class:"header-anchor",href:"#indicator","aria-label":'Permalink to "Indicator"'},"​")],-1),h=c(`
js
import { init, registerIndicator } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as s,h as o,c as a}from"./chunks/index.bdd66fc8.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"indicator",tabindex:"-1"},[p("Indicator "),e("a",{class:"header-anchor",href:"#indicator","aria-label":'Permalink to "Indicator"'},"​")],-1),h=c(`
js
import { init, registerIndicator } from 'klinecharts'
 import './index.css'
 
 const fruits = [
diff --git a/assets/en-US_sample_indicator.md.67007b42.lean.js b/assets/en-US_sample_indicator.md.1705d7aa.lean.js
similarity index 100%
rename from assets/en-US_sample_indicator.md.67007b42.lean.js
rename to assets/en-US_sample_indicator.md.1705d7aa.lean.js
diff --git a/assets/en-US_sample_overlay.md.42734092.js b/assets/en-US_sample_overlay.md.e4d9ba54.js
similarity index 99%
rename from assets/en-US_sample_overlay.md.42734092.js
rename to assets/en-US_sample_overlay.md.e4d9ba54.js
index bce189b0e..e0bb73807 100644
--- a/assets/en-US_sample_overlay.md.42734092.js
+++ b/assets/en-US_sample_overlay.md.e4d9ba54.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.66862884.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"overlay",tabindex:"-1"},[p("Overlay "),e("a",{class:"header-anchor",href:"#overlay","aria-label":'Permalink to "Overlay"'},"​")],-1),h=c(`
js
import { init, registerOverlay } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.66862884.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"overlay",tabindex:"-1"},[p("Overlay "),e("a",{class:"header-anchor",href:"#overlay","aria-label":'Permalink to "Overlay"'},"​")],-1),h=c(`
js
import { init, registerOverlay } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/en-US_sample_overlay.md.42734092.lean.js b/assets/en-US_sample_overlay.md.e4d9ba54.lean.js
similarity index 100%
rename from assets/en-US_sample_overlay.md.42734092.lean.js
rename to assets/en-US_sample_overlay.md.e4d9ba54.lean.js
diff --git a/assets/en-US_sample_theme.md.e11fcd7e.js b/assets/en-US_sample_theme.md.d1dbc68f.js
similarity index 99%
rename from assets/en-US_sample_theme.md.e11fcd7e.js
rename to assets/en-US_sample_theme.md.d1dbc68f.js
index 2075da125..04a4deb41 100644
--- a/assets/en-US_sample_theme.md.e11fcd7e.js
+++ b/assets/en-US_sample_theme.md.d1dbc68f.js
@@ -1,4 +1,4 @@
-import{u as a,B as r,x as i,o as l,c as p,H as c,l as e,k as o,a as u,Q as h}from"./chunks/framework.c401375a.js";import{C as d}from"./chunks/Chart.68e0a929.js";import{j as y,c as v,h as g}from"./chunks/index.539e966f.js";const f=o("h1",{id:"theme",tabindex:"-1"},[u("Theme "),o("a",{class:"header-anchor",href:"#theme","aria-label":'Permalink to "Theme"'},"​")],-1),m=h(`
js
import { init, registerStyles } from 'klinecharts'
+import{u as a,B as r,x as i,o as l,c as p,H as c,l as e,k as o,a as u,Q as h}from"./chunks/framework.c401375a.js";import{C as d}from"./chunks/Chart.68e0a929.js";import{j as y,c as v,h as g}from"./chunks/index.539e966f.js";const f=o("h1",{id:"theme",tabindex:"-1"},[u("Theme "),o("a",{class:"header-anchor",href:"#theme","aria-label":'Permalink to "Theme"'},"​")],-1),m=h(`
js
import { init, registerStyles } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/en-US_sample_theme.md.e11fcd7e.lean.js b/assets/en-US_sample_theme.md.d1dbc68f.lean.js
similarity index 100%
rename from assets/en-US_sample_theme.md.e11fcd7e.lean.js
rename to assets/en-US_sample_theme.md.d1dbc68f.lean.js
diff --git a/assets/en-US_sample_timezone.md.d3cc9c94.js b/assets/en-US_sample_timezone.md.6e8af94e.js
similarity index 99%
rename from assets/en-US_sample_timezone.md.d3cc9c94.js
rename to assets/en-US_sample_timezone.md.6e8af94e.js
index a99029927..f84940a92 100644
--- a/assets/en-US_sample_timezone.md.d3cc9c94.js
+++ b/assets/en-US_sample_timezone.md.6e8af94e.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.d021247c.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"timezone",tabindex:"-1"},[c("Timezone "),e("a",{class:"header-anchor",href:"#timezone","aria-label":'Permalink to "Timezone"'},"​")],-1),h=p(`
js
import { init } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.d021247c.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"timezone",tabindex:"-1"},[c("Timezone "),e("a",{class:"header-anchor",href:"#timezone","aria-label":'Permalink to "Timezone"'},"​")],-1),h=p(`
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -136,4 +136,4 @@ import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"
   color: #fff;
   outline: none;
   border: none;
-}
`,1),x=JSON.parse(`{"title":"Timezone","description":"","frontmatter":{"aside":false,"editLink":false,"head":[["script",{},"/**\\n * @license\\n * KLineChart v9.5.4\\n * Copyright (c) 2019 lihu.\\n * Licensed under Apache License 2.0 https://www.apache.org/licenses/LICENSE-2.0\\n */\\n!function(t,e){\\"object\\"==typeof exports&&\\"undefined\\"!=typeof module?e(exports):\\"function\\"==typeof define&&define.amd?define([\\"exports\\"],e):e((t=\\"undefined\\"!=typeof globalThis?globalThis:t||self).klinecharts={})}(this,(function(t){\\"use strict\\";function e(t,i){if(r(t)||r(i))for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var a=t[n],l=i[n];r(l)&&r(a)&&!o(l)&&!o(a)?e(a,l):s(i[n])&&(t[n]=i[n])}}function i(t){if(!r(t)||!o(t))return t;var e;for(var n in e=o(t)?[]:{},t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=t[n];e[n]=r(a)?i(a):a}return e}function o(t){return\\"[object Array]\\"===Object.prototype.toString.call(t)}function n(t){return\\"function\\"==typeof t}function r(t){return\\"object\\"==typeof t}function a(t){return\\"number\\"==typeof t&&!isNaN(t)}function s(t){return null!=t}function l(t){return\\"boolean\\"==typeof t}function u(t){return\\"string\\"==typeof t}var c,h,d,p,v,g,f,m,y,_,x=/\\\\\\\\(\\\\\\\\)?/g,S=RegExp(\\"[^.[\\\\\\\\]]+|\\\\\\\\[(?:([^\\\\\\"'][^[]*)|([\\\\\\"'])((?:(?!\\\\\\\\2)[^\\\\\\\\\\\\\\\\]|\\\\\\\\\\\\\\\\.)*?)\\\\\\\\2)\\\\\\\\]|(?=(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\])(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\]|$))\\",\\"g\\");function C(t,e,i){if(s(t)){var o=[];e.replace(S,(function(t){for(var e=[],i=1;arguments.length>i;i++)e[i-1]=arguments[i];var n=t;return s(e[1])?n=e[2].replace(x,\\"$1\\"):s(e[0])&&(n=e[0].trim()),o.push(n),\\"\\"}));for(var n=t,r=0,a=o.length;s(n)&&a>r;)n=null==n?void 0:n[o[r++]];return s(n)?n:null!=i?i:\\"--\\"}return null!=i?i:\\"--\\"}function b(t,e,i){var o=t.format(new Date(e)).split(\\", \\"),n=o[0].split(\\"/\\"),r=o[1].split(\\":\\"),a={YYYY:n[2],MM:n[0],DD:n[1],HH:\\"24\\"===r[0]?\\"00\\":r[0],mm:r[1],ss:r[2]};return i.replace(/YYYY|MM|DD|HH|mm|ss/g,(function(t){return a[t]}))}function T(t,e){var i=+t;return a(i)?i.toFixed(null!=e?e:2):\\"\\".concat(t)}function w(t){var e=+t;if(a(e)){if(e>1e9)return\\"\\".concat(+(e/1e9).toFixed(3),\\"B\\");if(e>1e6)return\\"\\".concat(+(e/1e6).toFixed(3),\\"M\\");if(e>1e3)return\\"\\".concat(+(e/1e3).toFixed(3),\\"K\\")}return\\"\\".concat(t)}function E(t,e){var i=\\"\\".concat(t);if(0===e.length)return i;if(i.includes(\\".\\")){var o=i.split(\\".\\");return\\"\\".concat(o[0].replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)})),\\".\\").concat(o[1])}return i.replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)}))}t.LineType=void 0,(c=t.LineType||(t.LineType={})).Dashed=\\"dashed\\",c.Solid=\\"solid\\",t.PolygonType=void 0,(h=t.PolygonType||(t.PolygonType={})).Stroke=\\"stroke\\",h.Fill=\\"fill\\",h.StrokeFill=\\"stroke_fill\\",t.TooltipShowRule=void 0,(d=t.TooltipShowRule||(t.TooltipShowRule={})).Always=\\"always\\",d.FollowCross=\\"follow_cross\\",d.None=\\"none\\",t.TooltipShowType=void 0,(p=t.TooltipShowType||(t.TooltipShowType={})).Standard=\\"standard\\",p.Rect=\\"rect\\",t.TooltipIconPosition=void 0,(v=t.TooltipIconPosition||(t.TooltipIconPosition={})).Left=\\"left\\",v.Middle=\\"middle\\",v.Right=\\"right\\",function(t){t.Fixed=\\"fixed\\",t.Pointer=\\"pointer\\"}(g||(g={})),t.CandleType=void 0,(f=t.CandleType||(t.CandleType={})).CandleSolid=\\"candle_solid\\",f.CandleStroke=\\"candle_stroke\\",f.CandleUpStroke=\\"candle_up_stroke\\",f.CandleDownStroke=\\"candle_down_stroke\\",f.Ohlc=\\"ohlc\\",f.Area=\\"area\\",t.YAxisPosition=void 0,(m=t.YAxisPosition||(t.YAxisPosition={})).Left=\\"left\\",m.Right=\\"right\\",t.YAxisType=void 0,(y=t.YAxisType||(t.YAxisType={})).Normal=\\"normal\\",y.Percentage=\\"percentage\\",y.Log=\\"log\\",t.FormatDateType=void 0,(_=t.FormatDateType||(t.FormatDateType={}))[_.Tooltip=0]=\\"Tooltip\\",_[_.Crosshair=1]=\\"Crosshair\\",_[_.XAxis=2]=\\"XAxis\\";var I=\\"en-US\\",D=function(t,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},D(t,e)};function P(t,e){if(\\"function\\"!=typeof e&&null!==e)throw new TypeError(\\"Class extends value \\"+e+\\" is not a constructor or null\\");function i(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var M,k=function(){return k=Object.assign||function(t){for(var e,i=1,o=arguments.length;o>i;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},k.apply(this,arguments)};function A(t,e,i,o){return new(i||(i=Promise))((function(n,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function s(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))}function F(t,e){var i,o,n,r,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},\\"function\\"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(l){return function(s){if(i)throw new TypeError(\\"Generator is already executing.\\");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(i=1,o&&(n=2&s[0]?o.return:s[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&n[3]>s[1])){a.label=s[1];break}if(6===s[0]&&n[1]>a.label){a.label=n[1],n=s;break}if(n&&n[2]>a.label){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],o=0}finally{i=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function L(t){var e=\\"function\\"==typeof Symbol&&Symbol.iterator,i=e&&t[e],o=0;if(i)return i.call(t);if(t&&\\"number\\"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?\\"Object is not iterable.\\":\\"Symbol.iterator is not defined.\\")}function R(t,e){var i=\\"function\\"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,n,r=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return a}function B(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;r>n;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}t.ActionType=void 0,(M=t.ActionType||(t.ActionType={})).OnZoom=\\"onZoom\\",M.OnScroll=\\"onScroll\\",M.OnVisibleRangeChange=\\"onVisibleRangeChange\\",M.OnTooltipIconClick=\\"onTooltipIconClick\\",M.OnCrosshairChange=\\"onCrosshairChange\\",M.OnCandleBarClick=\\"onCandleBarClick\\",M.OnPaneDrag=\\"onPaneDrag\\";var O,V=function(){function t(){this._callbacks=[]}return t.prototype.subscribe=function(t){var e;0>(null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1)&&this._callbacks.push(t)},t.prototype.unsubscribe=function(t){var e;if(void 0!==t){var i=null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1;i>-1&&this._callbacks.splice(i,1)}else this._callbacks=[]},t.prototype.execute=function(t){this._callbacks.forEach((function(e){e(t)}))},t.prototype.isEmpty=function(){return 0===this._callbacks.length},t}(),N=1,W=(new Date).getTime();function z(t){var e=(new Date).getTime();return e===W?++N:N=1,W=e,\\"\\".concat(null!=t?t:\\"\\").concat(e,\\"_\\").concat(N)}function Y(t,e){var i,o=document.createElement(t),n=null!=e?e:{};for(var r in n)o.style[r]=null!==(i=n[r])&&void 0!==i?i:\\"\\";return o}function X(t){var e,i,o;return Math.ceil(null!==(o=null===(i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0===i?void 0:i.devicePixelRatio)&&void 0!==o?o:2)}function H(t,e,i){return\\"\\".concat(null!=e?e:\\"normal\\",\\" \\").concat(null!=t?t:12,\\"px \\").concat(null!=i?i:\\"Helvetica Neue\\")}function j(t,e,i,o){if(void 0===O){var n=document.createElement(\\"canvas\\"),r=X(n);(O=n.getContext(\\"2d\\")).scale(r,r)}return O.font=H(e,i,o),Math.round(O.measureText(t).width)}function Z(t,e,i){var o=0,n=0;for(n=t.length-1;o!==n;){var r=Math.floor((n+o)/2),a=n-o,s=t[r][e];if(i===t[o][e])return o;if(i===t[n][e])return n;if(i===s)return r;if(i>s?o=r:n=r,2>=a)break}return o}function G(t,e){return null==e&&(e=10),+(+t).toFixed(e=Math.min(Math.max(0,e),20))}function K(t,e,i){var o=[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER];return t.forEach((function(t){var n,r;o[0]=Math.max(null!==(n=t[e])&&void 0!==n?n:t,o[0]),o[1]=Math.min(null!==(r=t[i])&&void 0!==r?r:t,o[1])})),o}function U(t){return Math.log(t)/Math.log(10)}function q(t){return Math.pow(10,t)}var $,J=1,Q=50,tt=6,et=50,it=function(){function e(t){this._dateTimeFormat=this._buildDateTimeFormat(),this._zoomEnabled=!0,this._scrollEnabled=!0,this._loading=!0,this._loadMoreCallback=null,this._more=!0,this._totalBarSpace=0,this._barSpace=tt,this._offsetRightDistance=et,this._startScrollOffsetRightBarCount=0,this._minVisibleBarCount={left:2,right:2},this._visibleRange={from:0,to:0,realFrom:0,realTo:0},this._chartStore=t,this._gapBarSpace=this._calcGapBarSpace(),this._offsetRightBarCount=this._offsetRightDistance/this._barSpace}return e.prototype._calcGapBarSpace=function(){return Math.max(1,Math.min(Math.floor(.82*this._barSpace),Math.floor(this._barSpace)-1))},e.prototype.adjustVisibleRange=function(){var e,i=this._chartStore.getDataList(),o=i.length,n=this._totalBarSpace/this._barSpace,r=n-Math.min(this._minVisibleBarCount.left,o);this._offsetRightBarCount>r&&(this._offsetRightBarCount=r);var a=-o+Math.min(this._minVisibleBarCount.right,o);a>this._offsetRightBarCount&&(this._offsetRightBarCount=a);var s=Math.round(this._offsetRightBarCount+o+.5);s>o&&(s=o);var l=Math.round(s-n)-1;if(0>l&&(l=0),this._visibleRange={from:l,to:s,realFrom:this._offsetRightBarCount>0?Math.round(o+this._offsetRightBarCount-n)-1:l,realTo:s},this._chartStore.getActionStore().execute(t.ActionType.OnVisibleRangeChange,this._visibleRange),this._chartStore.adjustVisibleDataList(),0===l&&this._more&&!this._loading&&null!==this._loadMoreCallback){this._loading=!0;var u=i[0];this._loadMoreCallback(null!==(e=null==u?void 0:u.timestamp)&&void 0!==e?e:null)}},e.prototype.setMore=function(t){return this._more=t,this},e.prototype.setLoading=function(t){return this._loading=t,this},e.prototype.getDateTimeFormat=function(){return this._dateTimeFormat},e.prototype._buildDateTimeFormat=function(t){var e={hour12:!1,year:\\"numeric\\",month:\\"2-digit\\",day:\\"2-digit\\",hour:\\"2-digit\\",minute:\\"2-digit\\",second:\\"2-digit\\"};void 0!==t&&(e.timeZone=t);var i=null;try{i=new Intl.DateTimeFormat(\\"en\\",e)}catch(t){}return i},e.prototype.setTimezone=function(t){var e=this._buildDateTimeFormat(t);null!==e&&(this._dateTimeFormat=e)},e.prototype.getTimezone=function(){return this._dateTimeFormat.resolvedOptions().timeZone},e.prototype.getBarSpace=function(){return{bar:this._barSpace,halfBar:this._barSpace/2,gapBar:this._gapBarSpace,halfGapBar:this._gapBarSpace/2}},e.prototype.setBarSpace=function(t,e){J>t||t>Q||this._barSpace===t||(this._barSpace=t,this._gapBarSpace=this._calcGapBarSpace(),null==e||e(),this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0))},e.prototype.setTotalBarSpace=function(t){return this._totalBarSpace!==t&&(this._totalBarSpace=t,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0)),this},e.prototype.setOffsetRightDistance=function(t,e){return this._offsetRightDistance=t,this._offsetRightBarCount=t/this._barSpace,null!=e&&e&&(this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)),this},e.prototype.resetOffsetRightDistance=function(){this.setOffsetRightDistance(this._offsetRightDistance)},e.prototype.getInitialOffsetRightDistance=function(){return this._offsetRightDistance},e.prototype.getOffsetRightDistance=function(){return Math.max(0,this._offsetRightBarCount*this._barSpace)},e.prototype.getOffsetRightBarCount=function(){return this._offsetRightBarCount},e.prototype.setOffsetRightBarCount=function(t){return this._offsetRightBarCount=t,this},e.prototype.setLeftMinVisibleBarCount=function(t){return this._minVisibleBarCount.left=t,this},e.prototype.setRightMinVisibleBarCount=function(t){return this._minVisibleBarCount.right=t,this},e.prototype.getVisibleRange=function(){return this._visibleRange},e.prototype.startScroll=function(){this._startScrollOffsetRightBarCount=this._offsetRightBarCount},e.prototype.scroll=function(e){if(this._scrollEnabled){var i=e/this._barSpace;this._chartStore.getActionStore().execute(t.ActionType.OnScroll),this._offsetRightBarCount=this._startScrollOffsetRightBarCount-i,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)}},e.prototype.getDataByDataIndex=function(t){var e;return null!==(e=this._chartStore.getDataList()[t])&&void 0!==e?e:null},e.prototype.coordinateToFloatIndex=function(t){var e=this._chartStore.getDataList().length;return Math.round(1e6*(e+this._offsetRightBarCount-(this._totalBarSpace-t)/this._barSpace))/1e6},e.prototype.dataIndexToTimestamp=function(t){var e,i=this.getDataByDataIndex(t);return null!==(e=null==i?void 0:i.timestamp)&&void 0!==e?e:null},e.prototype.timestampToDataIndex=function(t){var e=this._chartStore.getDataList();return 0===e.length?0:Z(e,\\"timestamp\\",t)},e.prototype.dataIndexToCoordinate=function(t){var e=this._chartStore.getDataList().length;return this._totalBarSpace-(e+this._offsetRightBarCount-t-.5)*this._barSpace},e.prototype.coordinateToDataIndex=function(t){return Math.ceil(this.coordinateToFloatIndex(t))-1},e.prototype.zoom=function(e,i){var o,n=this;if(this._zoomEnabled){if(void 0===(null==i?void 0:i.x)){var r=this._chartStore.getTooltipStore().getCrosshair();i={x:null!==(o=null==r?void 0:r.x)&&void 0!==o?o:this._totalBarSpace/2}}this._chartStore.getActionStore().execute(t.ActionType.OnZoom);var a=this.coordinateToFloatIndex(i.x);this.setBarSpace(this._barSpace+e*(this._barSpace/10),(function(){n._offsetRightBarCount+=a-n.coordinateToFloatIndex(null==i?void 0:i.x)}))}},e.prototype.setZoomEnabled=function(t){return this._zoomEnabled=t,this},e.prototype.getZoomEnabled=function(){return this._zoomEnabled},e.prototype.setScrollEnabled=function(t){return this._scrollEnabled=t,this},e.prototype.getScrollEnabled=function(){return this._scrollEnabled},e.prototype.setLoadMoreCallback=function(t){return this._loadMoreCallback=t,this},e.prototype.clear=function(){this._more=!0,this._loading=!0,this._visibleRange={from:0,to:0,realFrom:0,realTo:0}},e}();function ot(t,e,i,o,n){var r,a=e.result,l=e.figures,u=e.styles,c=C(u,\\"circles\\",o.circles),h=c.length,d=C(u,\\"bars\\",o.bars),p=d.length,v=C(u,\\"lines\\",o.lines),g=v.length,f=0,m=0,y=0;l.forEach((function(l){var u;switch(l.type){case\\"circle\\":var _=c[f%h];r=k(k({},_),{color:_.noChangeColor}),f++;break;case\\"bar\\":var x=d[m%p];r=k(k({},x),{color:x.noChangeColor}),m++;break;case\\"line\\":r=v[y%g],y++}if(s(r)){var S=null===(u=l.styles)||void 0===u?void 0:u.call(l,{prev:{kLineData:t[i-1],indicatorData:a[i-1]},current:{kLineData:t[i],indicatorData:a[i]},next:{kLineData:t[i+1],indicatorData:a[i+1]}},e,o);n(l,k(k({},r),S))}}))}t.IndicatorSeries=void 0,($=t.IndicatorSeries||(t.IndicatorSeries={})).Normal=\\"normal\\",$.Price=\\"price\\",$.Volume=\\"volume\\";var nt=function(){function i(e){this.result=[],this._precisionFlag=!1;var i=e.name,o=e.shortName,n=e.series,r=e.calcParams,a=e.figures,s=e.precision,l=e.shouldOhlc,u=e.shouldFormatBigNumber,c=e.visible,h=e.minValue,d=e.maxValue,p=e.styles,v=e.extendData,g=e.regenerateFigures,f=e.createTooltipDataSource,m=e.draw;this.name=i,this.shortName=null!=o?o:i,this.series=null!=n?n:t.IndicatorSeries.Normal,this.precision=null!=s?s:4,this.calcParams=null!=r?r:[],this.figures=null!=a?a:[],this.shouldOhlc=null!=l&&l,this.shouldFormatBigNumber=null!=u&&u,this.visible=null==c||c,this.minValue=null!=h?h:null,this.maxValue=null!=d?d:null,this.styles=null!=p?p:{},this.extendData=v,this.regenerateFigures=null!=g?g:null,this.createTooltipDataSource=null!=f?f:null,this.draw=null!=m?m:null}return i.prototype.setShortName=function(t){return this.shortName!==t&&(this.shortName=t,!0)},i.prototype.setSeries=function(t){return this.series!==t&&(this.series=t,!0)},i.prototype.setPrecision=function(t,e){var i=null!=e&&e,o=Math.floor(t);return!(o===this.precision||0>t||i&&(!i||this._precisionFlag))&&(this.precision=o,i||(this._precisionFlag=!0),!0)},i.prototype.setCalcParams=function(t){var e,i;return this.calcParams=t,this.figures=null!==(i=null===(e=this.regenerateFigures)||void 0===e?void 0:e.call(this,t))&&void 0!==i?i:this.figures,!0},i.prototype.setShouldOhlc=function(t){return this.shouldOhlc!==t&&(this.shouldOhlc=t,!0)},i.prototype.setShouldFormatBigNumber=function(t){return this.shouldFormatBigNumber!==t&&(this.shouldFormatBigNumber=t,!0)},i.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},i.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},i.prototype.setExtendData=function(t){return this.extendData!==t&&(this.extendData=t,!0)},i.prototype.setFigures=function(t){return this.figures!==t&&(this.figures=t,!0)},i.prototype.setMinValue=function(t){return this.minValue!==t&&(this.minValue=t,!0)},i.prototype.setMaxValue=function(t){return this.maxValue!==t&&(this.maxValue=t,!0)},i.prototype.setRegenerateFigures=function(t){return this.regenerateFigures!==t&&(this.regenerateFigures=t,!0)},i.prototype.setCreateTooltipDataSource=function(t){return this.createTooltipDataSource!==t&&(this.createTooltipDataSource=t,!0)},i.prototype.setDraw=function(t){return this.draw!==t&&(this.draw=t,!0)},i.prototype.calcIndicator=function(t){return A(this,void 0,void 0,(function(){var e;return F(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.calc(t,this)];case 1:return e=i.sent(),this.result=e,[2,!0];case 2:return i.sent(),[2,!1];case 3:return[2]}}))}))},i.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i.prototype.calc=function(e,i){return t.calc(e,i)},i}(i)},i}(),rt={name:\\"AVP\\",shortName:\\"AVP\\",series:t.IndicatorSeries.Price,precision:2,figures:[{key:\\"avp\\",title:\\"AVP: \\",type:\\"line\\"}],calc:function(t){var e=0,i=0;return t.map((function(t){var o,n,r={},a=null!==(o=null==t?void 0:t.turnover)&&void 0!==o?o:0,s=null!==(n=null==t?void 0:t.volume)&&void 0!==n?n:0;return e+=a,0!==(i+=s)&&(r.avp=e/i),r}))}};var at={name:\\"EMA\\",shortName:\\"EMA\\",series:t.IndicatorSeries.Price,calcParams:[6,12,20],precision:2,shouldOhlc:!0,figures:[{key:\\"ema1\\",title:\\"EMA6: \\",type:\\"line\\"},{key:\\"ema2\\",title:\\"EMA12: \\",type:\\"line\\"},{key:\\"ema3\\",title:\\"EMA20: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ema\\".concat(e+1),title:\\"EMA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=0,r=[];return t.map((function(t,e){var a={},s=t.close;return n+=s,i.forEach((function(t,i){t-1>e||(r[i]=e>t-1?(2*s+(t-1)*r[i])/(t+1):n/t,a[o[i].key]=r[i])})),a}))}},st={name:\\"MA\\",shortName:\\"MA\\",series:t.IndicatorSeries.Price,calcParams:[5,10,30,60],precision:2,shouldOhlc:!0,figures:[{key:\\"ma5\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma10\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma30\\",title:\\"MA30: \\",type:\\"line\\"},{key:\\"ma60\\",title:\\"MA60: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,i){var l;n[i]=(null!==(l=n[i])&&void 0!==l?l:0)+s,e-1>r||(a[o[i].key]=n[i]/e,n[i]-=t[r-(e-1)].close)})),a}))}},lt={name:\\"RSI\\",shortName:\\"RSI\\",calcParams:[6,12,24],figures:[{key:\\"rsi1\\",title:\\"RSI1: \\",type:\\"line\\"},{key:\\"rsi2\\",title:\\"RSI2: \\",type:\\"line\\"},{key:\\"rsi3\\",title:\\"RSI3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){var i=e+1;return{key:\\"rsi\\".concat(i),title:\\"RSI\\".concat(i,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[],r=[];return t.map((function(e,a){var s,l={},u=(null!==(s=t[a-1])&&void 0!==s?s:e).close,c=e.close-u;return i.forEach((function(e,i){var s,u,h;if(c>0?n[i]=(null!==(s=n[i])&&void 0!==s?s:0)+c:r[i]=(null!==(u=r[i])&&void 0!==u?u:0)+Math.abs(c),a>=e-1){l[o[i].key]=0!==r[i]?100-100/(1+n[i]/r[i]):0;var d=t[a-(e-1)],p=null!==(h=t[a-e])&&void 0!==h?h:d,v=d.close-p.close;v>0?n[i]-=v:r[i]-=Math.abs(v)}})),l}))}},ut={name:\\"VOL\\",shortName:\\"VOL\\",series:t.IndicatorSeries.Volume,calcParams:[5,10,20],shouldFormatBigNumber:!0,precision:0,minValue:0,figures:[{key:\\"ma1\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA20: \\",type:\\"line\\"},{key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}],regenerateFigures:function(t){var e=t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}));return e.push({key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}),e},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a,s=null!==(a=e.volume)&&void 0!==a?a:0,l={volume:s};return i.forEach((function(e,i){var a,u;n[i]=(null!==(a=n[i])&&void 0!==a?a:0)+s,e-1>r||(l[o[i].key]=n[i]/e,n[i]-=null!==(u=t[r-(e-1)].volume)&&void 0!==u?u:0)})),l}))}},ct={name:\\"WR\\",shortName:\\"WR\\",calcParams:[6,10,14],figures:[{key:\\"wr1\\",title:\\"WR1: \\",type:\\"line\\"},{key:\\"wr2\\",title:\\"WR2: \\",type:\\"line\\"},{key:\\"wr3\\",title:\\"WR3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"wr\\".concat(e+1),title:\\"WR\\".concat(e+1,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures;return t.map((function(e,n){var r={},a=e.close;return i.forEach((function(e,i){var s=e-1;if(n>=s){var l=K(t.slice(n-s,n+1),\\"high\\",\\"low\\"),u=l[0],c=u-l[1];r[o[i].key]=0===c?0:(a-u)/c*100}})),r}))}},ht={},dt=[rt,{name:\\"AO\\",shortName:\\"AO\\",calcParams:[5,34],figures:[{key:\\"ao\\",title:\\"AO: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.ao)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.ao)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return{color:l=c>u?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor),style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,borderColor:l}}}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=0;return t.map((function(e,l){var u,c={},h=(e.low+e.high)/2;(n+=h,r+=h,ll||(c.ao=a-s),c}))}},{name:\\"BIAS\\",shortName:\\"BIAS\\",calcParams:[6,12,24],figures:[{key:\\"bias1\\",title:\\"BIAS6: \\",type:\\"line\\"},{key:\\"bias2\\",title:\\"BIAS12: \\",type:\\"line\\"},{key:\\"bias3\\",title:\\"BIAS24: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"bias\\".concat(e+1),title:\\"BIAS\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,l){var u;if(n[l]=(null!==(u=n[l])&&void 0!==u?u:0)+s,r>=e-1){var c=n[l]/i[l];a[o[l].key]=(s-c)/c*100,n[l]-=t[r-(e-1)].close}})),a}))}},{name:\\"BOLL\\",shortName:\\"BOLL\\",series:t.IndicatorSeries.Price,calcParams:[20,2],precision:2,shouldOhlc:!0,figures:[{key:\\"up\\",title:\\"UP: \\",type:\\"line\\"},{key:\\"mid\\",title:\\"MID: \\",type:\\"line\\"},{key:\\"dn\\",title:\\"DN: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0;return t.map((function(e,r){var a={};if(n+=e.close,r>=o){a.mid=n/i[0];var s=function(t,e){var i=t.length,o=0;return t.forEach((function(t){var i=t.close-e;o+=i*i})),Math.sqrt((o=Math.abs(o))/i)}(t.slice(r-o,r+1),a.mid);a.up=a.mid+i[1]*s,a.dn=a.mid-i[1]*s,n-=t[r-o].close}return a}))}},{name:\\"BRAR\\",shortName:\\"BRAR\\",calcParams:[26],figures:[{key:\\"br\\",title:\\"BR: \\",type:\\"line\\"},{key:\\"ar\\",title:\\"AR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0;return t.map((function(e,s){var l,u,c={},h=e.high,d=e.low,p=e.open,v=(null!==(l=t[s-1])&&void 0!==l?l:e).close;if(r+=h-p,a+=p-d,o+=h-v,n+=v-d,s>=i[0]-1){c.ar=0!==a?r/a*100:0,c.br=0!==n?o/n*100:0;var g=t[s-(i[0]-1)],f=g.high,m=g.low,y=g.open,_=(null!==(u=t[s-i[0]])&&void 0!==u?u:t[s-(i[0]-1)]).close;o-=f-_,n-=_-m,r-=f-y,a-=y-m}return c}))}},{name:\\"BBI\\",shortName:\\"BBI\\",series:t.IndicatorSeries.Price,precision:2,calcParams:[3,6,12,24],shouldOhlc:!0,figures:[{key:\\"bbi\\",title:\\"BBI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max.apply(Math,B([],R(i),!1)),n=[],r=[];return t.map((function(e,a){var s={},l=e.close;if(i.forEach((function(e,i){var o;n[i]=(null!==(o=n[i])&&void 0!==o?o:0)+l,e-1>a||(r[i]=n[i]/e,n[i]-=t[a-(e-1)].close)})),a>=o-1){var u=0;r.forEach((function(t){u+=t})),s.bbi=u/4}return s}))}},{name:\\"CCI\\",shortName:\\"CCI\\",calcParams:[20],figures:[{key:\\"cci\\",title:\\"CCI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0,r=[];return t.map((function(e,a){var s={},l=(e.high+e.low+e.close)/3;if(n+=l,r.push(l),a>=o){var u=n/i[0],c=r.slice(a-o,a+1),h=0;c.forEach((function(t){h+=Math.abs(t-u)}));var d=h/i[0];s.cci=0!==d?(l-u)/d/.015:0,n-=(t[a-o].high+t[a-o].low+t[a-o].close)/3}return s}))}},{name:\\"CR\\",shortName:\\"CR\\",calcParams:[26,10,20,40,60],figures:[{key:\\"cr\\",title:\\"CR: \\",type:\\"line\\"},{key:\\"ma1\\",title:\\"MA1: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA2: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA3: \\",type:\\"line\\"},{key:\\"ma4\\",title:\\"MA4: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.ceil(i[1]/2.5+1),n=Math.ceil(i[2]/2.5+1),r=Math.ceil(i[3]/2.5+1),a=Math.ceil(i[4]/2.5+1),s=0,l=[],u=0,c=[],h=0,d=[],p=0,v=[],g=[];return t.forEach((function(e,f){var m,y,_,x,S,C={},b=null!==(m=t[f-1])&&void 0!==m?m:e,T=(b.high+b.close+b.low+b.open)/4,w=Math.max(0,e.high-T),E=Math.max(0,T-e.low);i[0]-1>f||(C.cr=0!==E?w/E*100:0,s+=C.cr,u+=C.cr,h+=C.cr,p+=C.cr,i[0]+i[1]-2>f||(l.push(s/i[1]),i[0]+i[1]+o-3>f||(C.ma1=l[l.length-1-o]),s-=null!==(y=g[f-(i[1]-1)].cr)&&void 0!==y?y:0),i[0]+i[2]-2>f||(c.push(u/i[2]),i[0]+i[2]+n-3>f||(C.ma2=c[c.length-1-n]),u-=null!==(_=g[f-(i[2]-1)].cr)&&void 0!==_?_:0),i[0]+i[3]-2>f||(d.push(h/i[3]),i[0]+i[3]+r-3>f||(C.ma3=d[d.length-1-r]),h-=null!==(x=g[f-(i[3]-1)].cr)&&void 0!==x?x:0),i[0]+i[4]-2>f||(v.push(p/i[4]),i[0]+i[4]+a-3>f||(C.ma4=v[v.length-1-a]),p-=null!==(S=g[f-(i[4]-1)].cr)&&void 0!==S?S:0)),g.push(C)})),g}},{name:\\"DMA\\",shortName:\\"DMA\\",calcParams:[10,50,10],figures:[{key:\\"dma\\",title:\\"DMA: \\",type:\\"line\\"},{key:\\"ama\\",title:\\"AMA: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c={},h=e.close;n+=h,r+=h;var d=0,p=0;if(i[0]-1>l||(d=n/i[0],n-=t[l-(i[0]-1)].close),i[1]-1>l||(p=r/i[1],r-=t[l-(i[1]-1)].close),l>=o-1){var v=d-p;c.dma=v,a+=v,o+i[2]-2>l||(c.ama=a/i[2],a-=null!==(u=s[l-(i[2]-1)].dma)&&void 0!==u?u:0)}s.push(c)})),s}},{name:\\"DMI\\",shortName:\\"DMI\\",calcParams:[14,6],figures:[{key:\\"pdi\\",title:\\"PDI: \\",type:\\"line\\"},{key:\\"mdi\\",title:\\"MDI: \\",type:\\"line\\"},{key:\\"adx\\",title:\\"ADX: \\",type:\\"line\\"},{key:\\"adxr\\",title:\\"ADXR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=0,l=0,u=0,c=0,h=[];return t.forEach((function(e,d){var p,v,g={},f=null!==(p=t[d-1])&&void 0!==p?p:e,m=f.close,y=e.high,_=e.low,x=y-_,S=Math.abs(y-m),C=Math.abs(m-_),b=y-f.high,T=f.low-_,w=Math.max(Math.max(x,S),C),E=b>0&&b>T?b:0,I=T>0&&T>b?T:0;if(o+=w,n+=E,r+=I,d>=i[0]-1){d>i[0]-1?(a=a-a/i[0]+w,s=s-s/i[0]+E,l=l-l/i[0]+I):(a=o,s=n,l=r);var D=0,P=0;0!==a&&(D=100*s/a,P=100*l/a),g.pdi=D,g.mdi=P;var M=0;P+D!==0&&(M=Math.abs(P-D)/(P+D)*100),u+=M,2*i[0]-2>d||(g.adx=c=d>2*i[0]-2?(c*(i[0]-1)+M)/i[0]:u/i[0],2*i[0]+i[1]-3>d||(g.adxr=((null!==(v=h[d-(i[1]-1)].adx)&&void 0!==v?v:0)+c)/2))}h.push(g)})),h}},{name:\\"EMV\\",shortName:\\"EMV\\",calcParams:[14,9],figures:[{key:\\"emv\\",title:\\"EMV: \\",type:\\"line\\"},{key:\\"maEmv\\",title:\\"MAEMV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.map((function(e,r){var a,s={};if(r>0){var l=t[r-1],u=e.high,c=e.low,h=null!==(a=e.volume)&&void 0!==a?a:0,d=(u+c)/2-(l.high+l.low)/2;if(0===h||u-c==0)s.emv=0;else s.emv=d/(h/1e8/(u-c));o+=s.emv,n.push(s.emv),i[0]>r||(s.maEmv=o/i[0],o-=n[r-i[0]])}return s}))}},at,{name:\\"MTM\\",shortName:\\"MTM\\",calcParams:[12,6],figures:[{key:\\"mtm\\",title:\\"MTM: \\",type:\\"line\\"},{key:\\"maMtm\\",title:\\"MAMTM: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.forEach((function(e,r){var a,s={};rr||(s.maMtm=o/i[1],o-=null!==(a=n[r-(i[1]-1)].mtm)&&void 0!==a?a:0));n.push(s)})),n}},st,{name:\\"MACD\\",shortName:\\"MACD\\",calcParams:[12,26,9],figures:[{key:\\"dif\\",title:\\"DIF: \\",type:\\"line\\"},{key:\\"dea\\",title:\\"DEA: \\",type:\\"line\\"},{key:\\"macd\\",title:\\"MACD: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.macd)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.macd)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return l=c>0?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):0>c?C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor):C(i.styles,\\"bars[0].noChangeColor\\",o.bars[0].noChangeColor),{style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,color:l,borderColor:l}}}],calc:function(t,e){var i,o,n=e.calcParams,r=0,a=0,s=0,l=0,u=Math.max(n[0],n[1]);return t.map((function(t,e){var c={},h=t.close;return r+=h,n[0]-1>e||(i=e>n[0]-1?(2*h+(n[0]-1)*i)/(n[0]+1):r/n[0]),n[1]-1>e||(o=e>n[1]-1?(2*h+(n[1]-1)*o)/(n[1]+1):r/n[1]),u-1>e||(c.dif=a=i-o,s+=a,u+n[2]-2>e||(c.macd=2*(a-(l=e>u+n[2]-2?(2*a+l*(n[2]-1))/(n[2]+1):s/n[2])),c.dea=l)),c}))}},{name:\\"OBV\\",shortName:\\"OBV\\",calcParams:[30],figures:[{key:\\"obv\\",title:\\"OBV: \\",type:\\"line\\"},{key:\\"maObv\\",title:\\"MAOBV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[];return t.forEach((function(e,a){var s,l,u,c,h=null!==(s=t[a-1])&&void 0!==s?s:e;h.close>e.close?n-=null!==(l=e.volume)&&void 0!==l?l:0:e.close>h.close&&(n+=null!==(u=e.volume)&&void 0!==u?u:0);var d={obv:n};o+=n,i[0]-1>a||(d.maObv=o/i[0],o-=null!==(c=r[a-(i[0]-1)].obv)&&void 0!==c?c:0),r.push(d)})),r}},{name:\\"PVT\\",shortName:\\"PVT\\",figures:[{key:\\"pvt\\",title:\\"PVT: \\",type:\\"line\\"}],calc:function(t){var e=0;return t.map((function(i,o){var n,r,a={},s=null!==(n=i.volume)&&void 0!==n?n:1,l=(null!==(r=t[o-1])&&void 0!==r?r:i).close,u=0,c=l*s;return 0!==c&&(u=(i.close-l)/c),a.pvt=e+=u,a}))}},{name:\\"PSY\\",shortName:\\"PSY\\",calcParams:[12,6],figures:[{key:\\"psy\\",title:\\"PSY: \\",type:\\"line\\"},{key:\\"maPsy\\",title:\\"MAPSY: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[],a=[];return t.forEach((function(e,s){var l,u,c={},h=(null!==(l=t[s-1])&&void 0!==l?l:e).close,d=e.close-h>0?1:0;r.push(d),o+=d,i[0]-1>s||(c.psy=o/i[0]*100,n+=c.psy,i[0]+i[1]-2>s||(c.maPsy=n/i[1],n-=null!==(u=a[s-(i[1]-1)].psy)&&void 0!==u?u:0),o-=r[s-(i[0]-1)]),a.push(c)})),a}},{name:\\"ROC\\",shortName:\\"ROC\\",calcParams:[12,6],figures:[{key:\\"roc\\",title:\\"ROC: \\",type:\\"line\\"},{key:\\"maRoc\\",title:\\"MAROC: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[],n=0;return t.forEach((function(e,r){var a,s,l={};if(r>=i[0]-1){var u=(null!==(a=t[r-i[0]])&&void 0!==a?a:t[r-(i[0]-1)]).close;l.roc=0!==u?(e.close-u)/u*100:0,n+=l.roc,i[0]-1+i[1]-1>r||(l.maRoc=n/i[1],n-=null!==(s=o[r-(i[1]-1)].roc)&&void 0!==s?s:0)}o.push(l)})),o}},lt,{name:\\"SMA\\",shortName:\\"SMA\\",series:t.IndicatorSeries.Price,calcParams:[12,2],precision:2,figures:[{key:\\"sma\\",title:\\"SMA: \\",type:\\"line\\"}],shouldOhlc:!0,calc:function(t,e){var i=e.calcParams,o=0,n=0;return t.map((function(t,e){var r={},a=t.close;return o+=a,i[0]-1>e||(r.sma=n=e>i[0]-1?(a*i[1]+n*(i[0]-i[1]+1))/(i[0]+1):o/i[0]),r}))}},{name:\\"KDJ\\",shortName:\\"KDJ\\",calcParams:[9,3,3],figures:[{key:\\"k\\",title:\\"K: \\",type:\\"line\\"},{key:\\"d\\",title:\\"D: \\",type:\\"line\\"},{key:\\"j\\",title:\\"J: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[];return t.forEach((function(e,n){var r,a,s,l,u={},c=e.close;if(n>=i[0]-1){var h=K(t.slice(n-(i[0]-1),n+1),\\"high\\",\\"low\\"),d=h[1],p=h[0]-d;u.k=((i[1]-1)*(null!==(a=null===(r=o[n-1])||void 0===r?void 0:r.k)&&void 0!==a?a:50)+(c-d)/(0===p?1:p)*100)/i[1],u.d=((i[2]-1)*(null!==(l=null===(s=o[n-1])||void 0===s?void 0:s.d)&&void 0!==l?l:50)+u.k)/i[2],u.j=3*u.k-2*u.d}o.push(u)})),o}},{name:\\"SAR\\",shortName:\\"SAR\\",series:t.IndicatorSeries.Price,calcParams:[2,2,20],precision:2,shouldOhlc:!0,figures:[{key:\\"sar\\",title:\\"SAR: \\",type:\\"circle\\",styles:function(t,e,i){var o,n,r=t.current,a=null!==(n=null===(o=r.indicatorData)||void 0===o?void 0:o.sar)&&void 0!==n?n:Number.MIN_SAFE_INTEGER,s=r.kLineData;return{color:((null==s?void 0:s.high)+(null==s?void 0:s.low))/2>a?C(e.styles,\\"circles[0].upColor\\",i.circles[0].upColor):C(e.styles,\\"circles[0].downColor\\",i.circles[0].downColor)}}}],calc:function(t,e){var i=e.calcParams,o=i[0]/100,n=i[1]/100,r=i[2]/100,a=o,s=-100,l=!1,u=0;return t.map((function(e,i){var c=u,h=e.high,d=e.low;if(l){(-100===s||h>s)&&(s=h,a=Math.min(a+n,r)),u=c+a*(s-c);var p=Math.min(t[Math.max(1,i)-1].low,d);u>e.low?(u=s,a=o,s=-100,l=!l):u>p&&(u=p)}else{(-100===s||s>d)&&(s=d,a=Math.min(a+n,r)),u=c+a*(s-c);var v=Math.max(t[Math.max(1,i)-1].high,h);e.high>u?(u=s,a=0,s=-100,l=!l):v>u&&(u=v)}return{sar:u}}))}},{name:\\"TRIX\\",shortName:\\"TRIX\\",calcParams:[12,9],figures:[{key:\\"trix\\",title:\\"TRIX: \\",type:\\"line\\"},{key:\\"maTrix\\",title:\\"MATRIX: \\",type:\\"line\\"}],calc:function(t,e){var i,o,n,r=e.calcParams,a=0,s=0,l=0,u=0,c=[];return t.forEach((function(t,e){var h,d={},p=t.close;if(a+=p,e>=r[0]-1&&(s+=i=e>r[0]-1?(2*p+(r[0]-1)*i)/(r[0]+1):a/r[0],e>=2*r[0]-2&&(l+=o=e>2*r[0]-2?(2*i+(r[0]-1)*o)/(r[0]+1):s/r[0],e>=3*r[0]-3))){var v=void 0,g=0;e>3*r[0]-3?g=((v=(2*o+(r[0]-1)*n)/(r[0]+1))-n)/n*100:v=l/r[0],n=v,d.trix=g,u+=g,3*r[0]+r[1]-4>e||(d.maTrix=u/r[1],u-=null!==(h=c[e-(r[1]-1)].trix)&&void 0!==h?h:0)}c.push(d)})),c}},ut,{name:\\"VR\\",shortName:\\"VR\\",calcParams:[26,6],figures:[{key:\\"vr\\",title:\\"VR: \\",type:\\"line\\"},{key:\\"maVr\\",title:\\"MAVR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c,h,d,p,v={},g=e.close,f=(null!==(u=t[l-1])&&void 0!==u?u:e).close,m=null!==(c=e.volume)&&void 0!==c?c:0;if(g>f?o+=m:f>g?n+=m:r+=m,l>=i[0]-1){var y=r/2;v.vr=n+y===0?0:(o+y)/(n+y)*100,a+=v.vr,i[0]+i[1]-2>l||(v.maVr=a/i[1],a-=null!==(h=s[l-(i[1]-1)].vr)&&void 0!==h?h:0);var _=t[l-(i[0]-1)],x=null!==(d=t[l-i[0]])&&void 0!==d?d:_,S=_.close,C=null!==(p=_.volume)&&void 0!==p?p:0;S>x.close?o-=C:x.close>S?n-=C:r-=C}s.push(v)})),s}},ct];function pt(t){var e;return null!==(e=ht[t])&&void 0!==e?e:null}dt.forEach((function(t){ht[t.name]=nt.extend(t)}));var vt,gt=function(){function e(t){this._instances=new Map,this._chartStore=t}return e.prototype._overrideInstance=function(t,e){var i=e.shortName,o=e.series,n=e.calcParams,r=e.precision,a=e.figures,s=e.minValue,l=e.maxValue,u=e.shouldOhlc,c=e.shouldFormatBigNumber,h=e.visible,d=e.styles,p=e.extendData,v=e.regenerateFigures,g=e.createTooltipDataSource,f=e.draw,m=e.calc,y=!1;void 0!==i&&t.setShortName(i)&&(y=!0),void 0!==o&&t.setSeries(o)&&(y=!0);var _=!1;return void 0!==n&&t.setCalcParams(n)&&(y=!0,_=!0),void 0!==a&&t.setFigures(a)&&(y=!0,_=!0),void 0!==s&&t.setMinValue(s)&&(y=!0),void 0!==l&&t.setMinValue(l)&&(y=!0),void 0!==r&&t.setPrecision(r)&&(y=!0),void 0!==u&&t.setShouldOhlc(u)&&(y=!0),void 0!==c&&t.setShouldFormatBigNumber(c)&&(y=!0),void 0!==h&&t.setVisible(h)&&(y=!0),void 0!==d&&t.setStyles(d)&&(y=!0),void 0!==p&&t.setExtendData(p)&&(y=!0,_=!0),void 0!==v&&t.setRegenerateFigures(v)&&(y=!0),void 0!==g&&t.setCreateTooltipDataSource(g)&&(y=!0),void 0!==f&&t.setDraw(f)&&(y=!0),void 0!==m&&(t.calc=m,_=!0),[y,_]},e.prototype.addInstance=function(t,e,i){var o;return A(this,void 0,void 0,(function(){var n,r,a,s;return F(this,(function(l){switch(l.label){case 0:return n=t.name,r=this._instances.get(e),null!==(o=null==r?void 0:r.has(n))&&void 0!==o&&o?[4,Promise.reject(Error(\\"Duplicate indicators.\\"))]:[3,2];case 1:case 3:return[2,l.sent()];case 2:return void 0===r&&(r=new Map,this._instances.set(e,r)),a=pt(n),s=new a,this._overrideInstance(s,t),i||r.clear(),r.set(n,s),[4,s.calcIndicator(this._chartStore.getDataList())]}}))}))},e.prototype.getInstances=function(t){var e;return null!==(e=this._instances.get(t))&&void 0!==e?e:new Map},e.prototype.removeInstance=function(t,e){var i=!1,o=this._instances.get(t);return void 0!==o&&(void 0!==e?o.has(e)&&(o.delete(e),i=!0):(o.clear(),i=!0),0===o.size&&this._instances.delete(t)),i},e.prototype.hasInstances=function(t){return this._instances.has(t)},e.prototype.calcInstance=function(t,e){var i;return A(this,void 0,void 0,(function(){var o,n,r,a=this;return F(this,(function(s){switch(s.label){case 0:return o=[],void 0!==t?void 0!==e?(n=this._instances.get(e),null!==(i=null==n?void 0:n.has(t))&&void 0!==i&&i&&(r=null==n?void 0:n.get(t),o.push(r.calcIndicator(this._chartStore.getDataList())))):this._instances.forEach((function(e){if(e.has(t)){var i=null==e?void 0:e.get(t);o.push(i.calcIndicator(a._chartStore.getDataList()))}})):this._instances.forEach((function(t){t.forEach((function(t){o.push(t.calcIndicator(a._chartStore.getDataList()))}))})),[4,Promise.all(o)];case 1:return[2,s.sent().includes(!0)]}}))}))},e.prototype.getInstanceByPaneId=function(t,e){var i;if(void 0!==t){var o=this._instances.get(t);return void 0!==e?null!==(i=null==o?void 0:o.get(e))&&void 0!==i?i:null:null!=o?o:null}return this._instances},e.prototype.setSeriesPrecision=function(e){this._instances.forEach((function(i){i.forEach((function(i){i.series===t.IndicatorSeries.Price&&i.setPrecision(e.price,!0),i.series===t.IndicatorSeries.Volume&&i.setPrecision(e.volume,!0)}))}))},e.prototype.override=function(t,e){return A(this,void 0,void 0,(function(){var i,o,n,r,a,s,l=this;return F(this,(function(u){switch(u.label){case 0:return i=t.name,o=new Map,null!==e?void 0!==(n=this._instances.get(e))&&o.set(e,n):o=this._instances,r=!1,a=[],o.forEach((function(e){var o=e.get(i);if(void 0!==o){var n=l._overrideInstance(o,t);n[1]?a.push(o.calcIndicator(l._chartStore.getDataList())):n[0]&&(r=!0)}})),[4,Promise.all(a)];case 1:return s=u.sent(),[2,[r,s.includes(!0)]]}}))}))},e}(),ft=function(){function t(t){this._crosshair={},this._activeIcon=null,this._chartStore=t}return t.prototype.setCrosshair=function(t,e){var i,o,n=this._chartStore.getDataList(),r=null!=t?t:{},a=n[o=void 0!==r.x?0>(i=this._chartStore.getTimeScaleStore().coordinateToDataIndex(r.x))?0:i>n.length-1?n.length-1:i:i=n.length-1],s=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(i),l=this._crosshair.x,u=this._crosshair.y,c=this._crosshair.paneId;this._crosshair=k(k({},r),{realX:s,kLineData:a,realDataIndex:i,dataIndex:o}),l===r.x&&u===r.y&&c===r.paneId||(null!==a&&this._chartStore.getChart().crosshairChange(this._crosshair),null!=e&&e||this._chartStore.getChart().updatePane(1))},t.prototype.recalculateCrosshair=function(t){this.setCrosshair(this._crosshair,t)},t.prototype.getCrosshair=function(){return this._crosshair},t.prototype.setActiveIcon=function(t){this._activeIcon=null!=t?t:null},t.prototype.getActiveIcon=function(){return this._activeIcon},t.prototype.clear=function(){this.setCrosshair({},!0),this.setActiveIcon()},t}();t.OverlayMode=void 0,(vt=t.OverlayMode||(t.OverlayMode={})).Normal=\\"normal\\",vt.WeakMagnet=\\"weak_magnet\\",vt.StrongMagnet=\\"strong_magnet\\";var mt=1,yt=\\"overlay_figure_\\",_t=Number.MAX_SAFE_INTEGER,xt=function(){function o(e){this.currentStep=mt,this.points=[],this._prevPressedPoint=null,this._prevPressedPoints=[];var i=e.mode,o=e.modeSensitivity,n=e.extendData,r=e.styles,a=e.totalStep,s=e.lock,l=e.visible,u=e.zLevel,c=e.needDefaultPointFigure,h=e.needDefaultXAxisFigure,d=e.needDefaultYAxisFigure,p=e.createPointFigures,v=e.createXAxisFigures,g=e.createYAxisFigures,f=e.performEventPressedMove,m=e.performEventMoveForDrawing,y=e.onDrawStart,_=e.onDrawing,x=e.onDrawEnd,S=e.onClick,C=e.onDoubleClick,b=e.onRightClick,T=e.onPressedMoveStart,w=e.onPressedMoving,E=e.onPressedMoveEnd,I=e.onMouseEnter,D=e.onMouseLeave,P=e.onRemoved,M=e.onSelected,k=e.onDeselected;this.name=e.name,this.totalStep=void 0===a||2>a?1:a,this.lock=null!=s&&s,this.visible=null==l||l,this.zLevel=null!=u?u:0,this.needDefaultPointFigure=null!=c&&c,this.needDefaultXAxisFigure=null!=h&&h,this.needDefaultYAxisFigure=null!=d&&d,this.mode=null!=i?i:t.OverlayMode.Normal,this.modeSensitivity=null!=o?o:8,this.extendData=n,this.styles=null!=r?r:{},this.createPointFigures=null!=p?p:null,this.createXAxisFigures=null!=v?v:null,this.createYAxisFigures=null!=g?g:null,this.performEventPressedMove=null!=f?f:null,this.performEventMoveForDrawing=null!=m?m:null,this.onDrawStart=null!=y?y:null,this.onDrawing=null!=_?_:null,this.onDrawEnd=null!=x?x:null,this.onClick=null!=S?S:null,this.onDoubleClick=null!=C?C:null,this.onRightClick=null!=b?b:null,this.onPressedMoveStart=null!=T?T:null,this.onPressedMoving=null!=w?w:null,this.onPressedMoveEnd=null!=E?E:null,this.onMouseEnter=null!=I?I:null,this.onMouseLeave=null!=D?D:null,this.onRemoved=null!=P?P:null,this.onSelected=null!=M?M:null,this.onDeselected=null!=k?k:null}return o.prototype.setId=function(t){return void 0===this.id&&(this.id=t,!0)},o.prototype.setGroupId=function(t){return void 0===this.groupId&&(this.groupId=t,!0)},o.prototype.setDefaultZLevel=function(t){return void 0===this.defaultZLevel&&(this.defaultZLevel=t,!0)},o.prototype.setPaneId=function(t){this.paneId=t},o.prototype.setExtendData=function(t){return t!==this.extendData&&(this.extendData=t,!0)},o.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},o.prototype.setPoints=function(t){if(t.length>0){var e=void 0;if(this.points=B([],R(t),!1),this.totalStep-1>t.length?(this.currentStep=t.length+1,e=t.length):(this.currentStep=-1,e=this.totalStep-1),null!==this.performEventMoveForDrawing)for(var i=0;e>i;i++)this.performEventMoveForDrawing({currentStep:i+2,mode:this.mode,points:this.points,performPointIndex:i,performPoint:this.points[i]});return-1===this.currentStep&&null!==this.performEventPressedMove&&this.performEventPressedMove({currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:this.points.length-1,performPoint:this.points[this.points.length-1]}),!0}return!1},o.prototype.setLock=function(t){return this.lock!==t&&(this.lock=t,!0)},o.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},o.prototype.resetZLevel=function(){this.zLevel=this.defaultZLevel},o.prototype.setZLevel=function(t){return this.zLevel!==t&&(this.zLevel=t,!0)},o.prototype.setMode=function(t){return this.mode!==t&&(this.mode=t,!0)},o.prototype.setModeSensitivity=function(t){return this.modeSensitivity!==t&&(this.modeSensitivity=t,!0)},o.prototype.setOnDrawStartCallback=function(t){return this.onDrawStart!==t&&(this.onDrawStart=t,!0)},o.prototype.setOnDrawingCallback=function(t){return this.onDrawing!==t&&(this.onDrawing=t,!0)},o.prototype.setOnDrawEndCallback=function(t){return this.onDrawEnd!==t&&(this.onDrawEnd=t,!0)},o.prototype.setOnClickCallback=function(t){return this.onClick!==t&&(this.onClick=t,!0)},o.prototype.setOnDoubleClickCallback=function(t){return this.onDoubleClick!==t&&(this.onDoubleClick=t,!0)},o.prototype.setOnRightClickCallback=function(t){return this.onRightClick!==t&&(this.onRightClick=t,!0)},o.prototype.setOnPressedMoveStartCallback=function(t){return this.onPressedMoveStart!==t&&(this.onPressedMoveStart=t,!0)},o.prototype.setOnPressedMovingCallback=function(t){return this.onPressedMoving!==t&&(this.onPressedMoving=t,!0)},o.prototype.setOnPressedMoveEndCallback=function(t){return this.onPressedMoveEnd!==t&&(this.onPressedMoveEnd=t,!0)},o.prototype.setOnMouseEnterCallback=function(t){return this.onMouseEnter!==t&&(this.onMouseEnter=t,!0)},o.prototype.setOnMouseLeaveCallback=function(t){return this.onMouseLeave!==t&&(this.onMouseLeave=t,!0)},o.prototype.setOnRemovedCallback=function(t){return this.onRemoved!==t&&(this.onRemoved=t,!0)},o.prototype.setOnSelectedCallback=function(t){return this.onSelected!==t&&(this.onSelected=t,!0)},o.prototype.setOnDeselectedCallback=function(t){return this.onDeselected!==t&&(this.onDeselected=t,!0)},o.prototype.nextStep=function(){this.currentStep===this.totalStep-1?this.currentStep=-1:this.currentStep++},o.prototype.forceComplete=function(){this.currentStep=-1},o.prototype.isDrawing=function(){return-1!==this.currentStep},o.prototype.isStart=function(){return this.currentStep===mt},o.prototype.eventMoveForDrawing=function(t){var e,i=this.currentStep-1,o={};void 0!==t.timestamp&&(o.timestamp=t.timestamp),void 0!==t.dataIndex&&(o.dataIndex=t.dataIndex),void 0!==t.value&&(o.value=t.value),this.points[i]=o,null===(e=this.performEventMoveForDrawing)||void 0===e||e.call(this,{currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:i,performPoint:o})},o.prototype.eventPressedPointMove=function(t,e){var i;void 0!==t.dataIndex&&(this.points[e].dataIndex=t.dataIndex,this.points[e].timestamp=t.timestamp),void 0!==t.value&&(this.points[e].value=t.value),null===(i=this.performEventPressedMove)||void 0===i||i.call(this,{currentStep:this.currentStep,points:this.points,mode:this.mode,performPointIndex:e,performPoint:this.points[e]})},o.prototype.startPressedMove=function(t){this._prevPressedPoint=k({},t),this._prevPressedPoints=i(this.points)},o.prototype.eventPressedOtherMove=function(t,e){var i,o;null!==this._prevPressedPoint&&(void 0!==t.dataIndex&&void 0!==this._prevPressedPoint.dataIndex&&(i=t.dataIndex-this._prevPressedPoint.dataIndex),void 0!==t.value&&void 0!==this._prevPressedPoint.value&&(o=t.value-this._prevPressedPoint.value),this.points=this._prevPressedPoints.map((function(t){var n;void 0===t.dataIndex&&void 0!==t.timestamp&&(t.dataIndex=e.timestampToDataIndex(t.timestamp));var r=k({},t);return void 0!==i&&void 0!==t.dataIndex&&(r.dataIndex=t.dataIndex+i,r.timestamp=null!==(n=e.dataIndexToTimestamp(r.dataIndex))&&void 0!==n?n:void 0),void 0!==o&&void 0!==t.value&&(r.value=t.value+o),r})))},o.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i}(o)},o}(),St={name:\\"fibonacciLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.precision,o=t.thousandsSeparator,n=t.overlay.points;if(e.length>0){var r=[],a=[],s=t.bounding.width;if(e.length>1&&void 0!==n[0].value&&void 0!==n[1].value){var l=e[0].y-e[1].y,u=n[0].value-n[1].value;[1,.786,.618,.5,.382,.236,0].forEach((function(t){var c,h=e[1].y+l*t,d=E(((null!==(c=n[1].value)&&void 0!==c?c:0)+u*t).toFixed(i.price),o);r.push({coordinates:[{x:0,y:h},{x:s,y:h}]}),a.push({x:0,y:h,text:\\"\\".concat(d,\\" (\\").concat((100*t).toFixed(1),\\"%)\\"),baseline:\\"bottom\\"})}))}return[{type:\\"line\\",attrs:r},{type:\\"text\\",isCheckEvent:!1,attrs:a}]}return[]}},Ct={name:\\"horizontalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i={x:0,y:e[0].y};return void 0!==e[1]&&e[1].x>e[0].x&&(i.x=t.bounding.width),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},bt=function(){function t(){this._children=[],this._callbacks=new Map}return t.prototype.registerEvent=function(t,e){return this._callbacks.set(t,e),this},t.prototype.onEvent=function(t,e,i){var o=this._callbacks.get(t);return!(void 0===o||!this.checkEventOn(e))&&o(e,i)},t.prototype.checkEventOn=function(t){var e,i;try{for(var o=L(this._children),n=o.next();!n.done;n=o.next()){if(n.value.checkEventOn(t))return!0}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return!1},t.prototype.dispatchEvent=function(t,e,i){var o=this._children.length-1;if(o>-1)for(var n=o;n>-1;n--)if(this._children[n].dispatchEvent(t,e,i))return!0;return this.onEvent(t,e,i)},t.prototype.addChild=function(t){return this._children.push(t),this},t.prototype.clear=function(){this._children=[]},t}(),Tt=2,wt=function(t){function e(e){var i=t.call(this)||this;return i.attrs=e.attrs,i.styles=e.styles,i}return P(e,t),e.prototype.checkEventOn=function(t){return this.checkEventOnImp(t,this.attrs,this.styles)},e.prototype.draw=function(t){this.drawImp(t,this.attrs,this.styles)},e.extend=function(t){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.checkEventOnImp=function(e,i,o){return t.checkEventOn(e,i,o)},i.prototype.drawImp=function(e,i,o){t.draw(e,i,o)},i}(e);return i},e}(bt);function Et(t,e){return Math.sqrt(Math.pow(t.x+e.x,2)+Math.pow(t.y+e.y,2))}function It(t){var e=Et(t[0],t[1]),i=e+Et(t[1],t[2]),o=[t[2].x-t[0].x,t[2].y-t[0].y];return[{x:t[1].x-.5*o[0]*e/i,y:t[1].y-.5*o[1]*e/i},{x:t[1].x+.5*o[0]*e/i,y:t[1].y+.5*o[1]*e/i}]}function Dt(t,e){var i=e.coordinates;if(i.length>1)for(var o=1;i.length>o;o++){var n=i[o-1],r=i[o];if(n.x===r.x){if(Tt+Tt>Math.abs(n.y-t.y)+Math.abs(r.y-t.y)-Math.abs(n.y-r.y)&&Tt>Math.abs(t.x-n.x))return!0}else{var a=kt(n,r),s=Pt(a,t),l=Math.abs(s-t.y);if(Tt+Tt>Math.abs(n.x-t.x)+Math.abs(r.x-t.x)-Math.abs(n.x-r.x)&&Tt*Tt>l*l/(a[0]*a[0]+1))return!0}}return!1}function Pt(t,e){return null!=t?e.x*t[0]+t[1]:e.y}function Mt(t,e,i){return Pt(kt(t,e),i)}function kt(t,e){var i=t.x-e.x;if(0!==i){var o=(t.y-e.y)/i;return[o,t.y-o*t.x]}return null}function At(e,i,o){var n=i.coordinates,r=n.length;if(r>1){var a=o.style,s=void 0===a?t.LineType.Solid:a,l=o.smooth,u=o.size,c=o.color,h=void 0===c?\\"currentColor\\":c,d=o.dashedValue,p=void 0===d?[2,2]:d;if(e.lineWidth=void 0===u?1:u,e.strokeStyle=h,e.setLineDash(s===t.LineType.Dashed?p:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y),null!=l&&l){for(var v=[],g=1;r-1>g;g++)v=v.concat(It([n[g-1],n[g],n[g+1]]));e.quadraticCurveTo(v[0].x,v[0].y,n[1].x,n[1].y);for(var f=2;r-1>f;f++)e.bezierCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,v[2*(f-1)].x,v[2*(f-1)].y,n[f].x,n[f].y);e.quadraticCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,n[f].x,n[f].y)}else for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.stroke(),e.closePath()}}var Ft={name:\\"line\\",checkEventOn:Dt,draw:function(t,e,i){At(t,e,i)}};function Lt(t,e,i){var o=null!=i?i:0,n=[];if(t.length>1)if(t[0].x===t[1].x){var r=e.height;if(n.push({coordinates:[{x:t[0].x,y:0},{x:t[0].x,y:r}]}),t.length>2){n.push({coordinates:[{x:t[2].x,y:0},{x:t[2].x,y:r}]});for(var a=t[0].x-t[2].x,s=0;o>s;s++){var l=a*(s+1);n.push({coordinates:[{x:t[0].x+l,y:0},{x:t[0].x+l,y:r}]})}}}else{var u=e.width,c=kt(t[0],t[1]),h=c[0],d=c[1];if(n.push({coordinates:[{x:0,y:0*h+d},{x:u,y:u*h+d}]}),t.length>2){var p=t[2].y-h*t[2].x;n.push({coordinates:[{x:0,y:0*h+p},{x:u,y:u*h+p}]});for(a=d-p,s=0;o>s;s++){var v=d+a*(s+1);n.push({coordinates:[{x:0,y:0*h+v},{x:u,y:u*h+v}]})}}}return n}function Rt(t,e){if(t.length>1){var i=void 0;return i=t[0].x===t[1].x&&t[0].y!==t[1].y?t[1].y>t[0].y?{x:t[0].x,y:e.height}:{x:t[0].x,y:0}:t[0].x>t[1].x?{x:0,y:Mt(t[0],t[1],{x:0,y:t[0].y})}:{x:e.width,y:Mt(t[0],t[1],{x:e.width,y:t[0].y})},{coordinates:[t[0],i]}}return[]}var Bt={name:\\"simpleAnnotation\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"},line:{style:t.LineType.Dashed}},createPointFigures:function(t){var e,i,o=t.overlay,r=t.coordinates;s(o.extendData)&&(i=n(o.extendData)?o.extendData(o):null!==(e=o.extendData)&&void 0!==e?e:\\"\\");var a=r[0].x,l=r[0].y-6,u=l-50,c=u-5;return[{type:\\"line\\",attrs:{coordinates:[{x:a,y:l},{x:a,y:u}]},ignoreEvent:!0},{type:\\"polygon\\",attrs:{coordinates:[{x:a,y:u},{x:a-4,y:c},{x:a+4,y:c}]},ignoreEvent:!0},{type:\\"text\\",attrs:{x:a,y:c,text:null!=i?i:\\"\\",align:\\"center\\",baseline:\\"bottom\\"},ignoreEvent:!0}]}},Ot={name:\\"simpleTag\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}},createPointFigures:function(t){var e=t.coordinates;return{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]},ignoreEvent:!0}},createYAxisFigures:function(t){var e,i,o,r,a,l=t.overlay,u=t.coordinates,c=t.bounding,h=t.yAxis,d=t.precision;return null!==(e=null==h?void 0:h.isFromZero())&&void 0!==e&&e?(o=\\"left\\",r=0):(o=\\"right\\",r=c.width),s(l.extendData)&&(a=n(l.extendData)?l.extendData(l):null!==(i=l.extendData)&&void 0!==i?i:\\"\\"),s(a)||void 0===l.points[0].value||(a=T(l.points[0].value,d.price)),{type:\\"text\\",attrs:{x:r,y:u[0].y,text:null!=a?a:\\"\\",align:o,baseline:\\"middle\\"}}}},Vt={};function Nt(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null}function Wt(t){var i={width:0,height:0,left:0,right:0,top:0,bottom:0};return void 0!==t&&e(i,t),i}[St,Ct,{name:\\"horizontalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=[];return 2===e.length&&i.push({coordinates:e}),[{type:\\"line\\",attrs:i}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},{name:\\"horizontalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]}}]}},{name:\\"parallelStraightLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding)}]}},{name:\\"priceChannelLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding,1)}]}},{name:\\"priceLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.thousandsSeparator,o=t.overlay.points[0].value;return[{type:\\"line\\",attrs:{coordinates:[e[0],{x:t.bounding.width,y:e[0].y}]}},{type:\\"text\\",ignoreEvent:!0,attrs:{x:e[0].x,y:e[0].y,text:E((void 0===o?0:o).toFixed(t.precision.price),i),baseline:\\"bottom\\"}}]}},{name:\\"rayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Rt(t.coordinates,t.bounding)}]}},{name:\\"segment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]}},{name:\\"straightLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.bounding;return 2===e.length?e[0].x===e[1].x?[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:i.height}]}}]:[{type:\\"line\\",attrs:{coordinates:[{x:0,y:Mt(e[0],e[1],{x:0,y:e[0].y})},{x:i.width,y:Mt(e[0],e[1],{x:i.width,y:e[0].y})}]}}]:[]}},{name:\\"verticalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;if(2===e.length){var i={x:e[0].x,y:0};return e[1].y>e[0].y&&(i.y=t.bounding.height),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]}return[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:t.bounding.height}]}}]}},Bt,Ot].forEach((function(t){Vt[t.name]=xt.extend(t)}));var zt=\\"main\\",Yt=\\"xAxis\\",Xt=\\"yAxis\\",Ht=\\"separator\\",jt=function(t){function i(e,i){var o=t.call(this)||this;return o._bounding=Wt(),o._pane=i,o._init(e),o}return P(i,t),i.prototype._init=function(t){if(this._container=Y(\\"div\\",this.getContainerStyle()),this.insertBefore()){var e=t.lastChild;null!==e?t.insertBefore(this._container,e):t.appendChild(this._container)}else t.appendChild(this._container);this.initDom(this._container)},i.prototype.setBounding=function(t){return e(this._bounding,t),this},i.prototype.getContainer=function(){return this._container},i.prototype.getBounding=function(){return this._bounding},i.prototype.getPane=function(){return this._pane},i.prototype.update=function(t){this.updateImp(this._container,this._bounding,null!=t?t:3)},i.prototype.insertBefore=function(){return!1},i}(bt);var Zt=function(e){function i(t,i){var o,n,r,a=e.call(this,t,i)||this;return a._dragFlag=!1,a._dragStartY=0,a._topPaneHeight=0,a._currentPaneHeight=0,a._pressedMouseMoveEvent=(o=a._pressedTouchMouseMoveEvent,n=20,r=0,function(){var t=Date.now();t-r>(null!=n?n:20)&&(o.apply(this,arguments),r=t)}),a.registerEvent(\\"touchStartEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"touchMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"touchEndEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"mouseDownEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"mouseUpEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"pressedMouseMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"mouseEnterEvent\\",a._mouseEnterEvent.bind(a)).registerEvent(\\"mouseLeaveEvent\\",a._mouseLeaveEvent.bind(a)),a}return P(i,e),i.prototype.getName=function(){return Ht},i.prototype.checkEventOn=function(){return!0},i.prototype._mouseDownEvent=function(t){var e,i;this._dragFlag=!0,this._dragStartY=t.pageY;var o=this.getPane();return this._topPaneHeight=null!==(i=null===(e=o.getTopPane())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,this._currentPaneHeight=o.getBounding().height,!0},i.prototype._mouseUpEvent=function(){return this._dragFlag=!1,this._mouseLeaveEvent()},i.prototype._pressedTouchMouseMoveEvent=function(e){var i=e.pageY-this._dragStartY,o=this.getPane(),n=o.getTopPane(),r=0>i;if(null!==n&&o.getOptions().dragEnabled){var a=void 0,s=void 0,l=void 0,u=void 0;r?(a=n,s=o,l=this._topPaneHeight,u=this._currentPaneHeight):(a=o,s=n,l=this._currentPaneHeight,u=this._topPaneHeight);var c=a.getOptions().minHeight;if(l>c){var h=Math.max(l-Math.abs(i),c),d=l-h;a.setBounding({height:h}),s.setBounding({height:u+d});var p=o.getChart();p.getChartStore().getActionStore().execute(t.ActionType.OnPaneDrag,{paneId:o.getId}),p.adjustPaneViewport(!0,!0,!0,!0,!0)}}return!0},i.prototype._mouseEnterEvent=function(){var t=this.getPane();if(t.getOptions().dragEnabled){var e=t.getChart().getStyles().separator;return this._moveDom.style.background=e.activeBackgroundColor,!0}return!1},i.prototype._mouseLeaveEvent=function(){return!this._dragFlag&&(this._moveDom.style.background=\\"\\",!0)},i.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",boxSizing:\\"border-box\\"}},i.prototype.insertBefore=function(){return!0},i.prototype.initDom=function(t){this._moveDom=Y(\\"div\\",{width:\\"100%\\",height:\\"\\".concat(7,\\"px\\"),margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"-3px\\",zIndex:\\"20\\",boxSizing:\\"border-box\\",cursor:\\"ns-resize\\"}),t.appendChild(this._moveDom)},i.prototype.updateImp=function(t,e,i){if(4===i||2===i){var o=this.getPane().getChart().getStyles().separator;this._moveDom.style.top=\\"\\".concat(-Math.floor((7-o.size)/2),\\"px\\"),this._moveDom.style.height=\\"\\".concat(7,\\"px\\");var n=o.fill;t.style.backgroundColor=o.color,t.style.height=\\"\\".concat(o.size,\\"px\\"),t.style.marginLeft=\\"\\".concat(n?0:e.left,\\"px\\"),t.style.width=n?\\"100%\\":\\"\\".concat(e.width,\\"px\\")}},i.prototype.getImage=function(){var t=this.getPane().getChart().getStyles().separator,e=this.getContainer().offsetWidth,i=t.size,o=Y(\\"canvas\\",{width:\\"\\".concat(e,\\"px\\"),height:\\"\\".concat(i,\\"px\\"),boxSizing:\\"border-box\\"}),n=o.getContext(\\"2d\\"),r=X(o);return o.width=e*r,o.height=i*r,n.scale(r,r),n.fillStyle=t.color,n.fillRect(this.getBounding().left,0,e,i),o},i}(jt),Gt=30,Kt={CANDLE:\\"candle_pane\\",INDICATOR:\\"indicator_pane_\\",XAXIS:\\"xaxis_pane\\"},Ut=function(){function t(t,e,i,o,n){this._yAxisWidget=null,this._separatorWidget=null,this._axis=this.createAxisComponent(),this._bounding=Wt(),this._options={minHeight:Gt,dragEnabled:!0,gap:{top:.2,bottom:.1},axisOptions:{scrollZoomEnabled:!0}},this._chart=e,this._id=i,this._topPane=null!=o?o:null,this._bottomPane=null!=n?n:null,this._init(t)}return t.prototype._init=function(t){this._container=t,this._seriesContainer=Y(\\"div\\",{width:\\"100%\\",margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}),this._separatorWidget=this.createSeparatorWidget(t);var e=t.lastChild;null!==e?t.insertBefore(this._seriesContainer,e):t.appendChild(this._seriesContainer),this._mainWidget=this.createMainWidget(this._seriesContainer),this._yAxisWidget=this.createYAxisWidget(this._seriesContainer)},t.prototype.getContainer=function(){return this._seriesContainer},t.prototype.getId=function(){return this._id},t.prototype.setOptions=function(t){var i,o,n,r,a;return e(this._options,t),this.getId()===Kt.XAXIS?(r=this.getMainWidget().getContainer(),a=\\"ew-resize\\"):(r=null===(i=this.getYAxisWidget())||void 0===i?void 0:i.getContainer(),a=\\"ns-resize\\"),r.style.cursor=null===(n=null===(o=t.axisOptions)||void 0===o?void 0:o.scrollZoomEnabled)||void 0===n||n?a:\\"default\\",this},t.prototype.getOptions=function(){return this._options},t.prototype.getChart=function(){return this._chart},t.prototype.getAxisComponent=function(){return this._axis},t.prototype.setBounding=function(t,i,o){var n,r,a;e(this._bounding,t);var s=0;if(null!==this._separatorWidget){s=this._chart.getStyles().separator.size;var l=k(k({},t),{height:7});void 0!==t.top&&(l.top=t.top-Math.floor((7-s)/2)),this._separatorWidget.setBounding(l)}var u={};return void 0!==t.height&&(u.height=t.height-s),void 0!==t.top&&(u.top=t.top+s),this._mainWidget.setBounding(u),null===(n=this._yAxisWidget)||void 0===n||n.setBounding(u),void 0!==i&&(this._mainWidget.setBounding(i),null===(r=this._separatorWidget)||void 0===r||r.setBounding(i)),void 0!==o&&(null===(a=this._yAxisWidget)||void 0===a||a.setBounding(o)),this},t.prototype.getTopPane=function(){return this._topPane},t.prototype.setTopPane=function(t){return this._topPane=t,this},t.prototype.getBottomPane=function(){return this._bottomPane},t.prototype.setBottomPane=function(t){return this._bottomPane=t,this},t.prototype.getBounding=function(){return this._bounding},t.prototype.getMainWidget=function(){return this._mainWidget},t.prototype.getYAxisWidget=function(){return this._yAxisWidget},t.prototype.getSeparatorWidget=function(){return this._separatorWidget},t.prototype.update=function(t){var e,i;this._bounding.width!==this._seriesContainer.offsetWidth&&(this._seriesContainer.style.width=\\"\\".concat(this._bounding.width,\\"px\\"));var o=this._mainWidget.getBounding().height;o!==this._seriesContainer.offsetHeight&&(this._seriesContainer.style.height=\\"\\".concat(o,\\"px\\"));var n=null!=t?t:3;this._mainWidget.update(n),null===(e=this._yAxisWidget)||void 0===e||e.update(n),null===(i=this._separatorWidget)||void 0===i||i.update(n)},t.prototype.getImage=function(t){var e=this._bounding,i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);n.width=i*a,n.height=o*a,r.scale(a,a);var s=0;if(null!=this._separatorWidget){var l=this.getChart().getStyles().separator.size;s=l,r.drawImage(this._separatorWidget.getImage(),0,0,i,l)}var u=this._mainWidget.getBounding();if(r.drawImage(this._mainWidget.getImage(t),u.left,s,u.width,u.height),null!==this._yAxisWidget){var c=this._yAxisWidget.getBounding();r.drawImage(this._yAxisWidget.getImage(t),c.left,s,c.width,c.height)}return n},t.prototype.destroy=function(){this._container.removeChild(this._seriesContainer),null!==this._separatorWidget&&this._container.removeChild(this._separatorWidget.getContainer())},t.prototype.createSeparatorWidget=function(t){return null},t.prototype.createYAxisWidget=function(t){return null},t}(),qt=function(){function t(t){this._instances=new Map,this._counter=new Map,this._progressInstanceInfo=null,this._pressedInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._hoverInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._clickInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._chartStore=t}return t.prototype._overrideInstance=function(t,e){var i=e.id,o=e.groupId,n=e.points,r=e.styles,a=e.lock,s=e.visible,l=e.zLevel,u=e.mode,c=e.modeSensitivity,h=e.extendData,d=e.onDrawStart,p=e.onDrawing,v=e.onDrawEnd,g=e.onClick,f=e.onDoubleClick,m=e.onRightClick,y=e.onPressedMoveStart,_=e.onPressedMoving,x=e.onPressedMoveEnd,S=e.onMouseEnter,C=e.onMouseLeave,b=e.onRemoved,T=e.onSelected,w=e.onDeselected,E=!1,I=!1;return void 0!==i&&t.setId(i),void 0!==o&&t.setGroupId(o),void 0!==n&&t.setPoints(n)&&(E=!0),void 0!==r&&t.setStyles(r)&&(E=!0),void 0!==a&&t.setLock(a),void 0!==s&&t.setVisible(s)&&(E=!0),void 0!==l&&t.setZLevel(l)&&(E=!0,I=!0),void 0!==u&&t.setMode(u),void 0!==c&&t.setModeSensitivity(c),void 0!==h&&t.setExtendData(h)&&(E=!0),void 0!==d&&t.setOnDrawStartCallback(d),void 0!==p&&t.setOnDrawingCallback(p),void 0!==v&&t.setOnDrawEndCallback(v),void 0!==g&&t.setOnClickCallback(g),void 0!==f&&t.setOnDoubleClickCallback(f),void 0!==m&&t.setOnRightClickCallback(m),void 0!==y&&t.setOnPressedMoveStartCallback(y),void 0!==_&&t.setOnPressedMovingCallback(_),void 0!==x&&t.setOnPressedMoveEndCallback(x),void 0!==S&&t.setOnMouseEnterCallback(S),void 0!==C&&t.setOnMouseLeaveCallback(C),void 0!==b&&t.setOnRemovedCallback(b),void 0!==T&&t.setOnSelectedCallback(T),void 0!==w&&t.setOnDeselectedCallback(w),[E,I]},t.prototype.getInstanceById=function(t){var e,i;try{for(var o=L(this._instances),n=o.next();!n.done;n=o.next()){var r=n.value[1].find((function(e){return e.id===t}));if(void 0!==r)return r}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return null!==this._progressInstanceInfo&&this._progressInstanceInfo.instance.id===t?this._progressInstanceInfo.instance:null},t.prototype._sort=function(t){var e;void 0!==t?null===(e=this._instances.get(t))||void 0===e||e.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel})):this._instances.forEach((function(t){t.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel}))}))},t.prototype.addInstances=function(t,e,i){var o=this,n=t.map((function(t){var n,r,a,s,l,u=null!==(n=t.id)&&void 0!==n?n:z(\\"overlay_\\");if(null===o.getInstanceById(u)){var c=Nt(t.name);if(null!==c){var h=new c,d=(null!==(r=o._counter.get(e))&&void 0!==r?r:0)+1;o._counter.set(e,d),h.setDefaultZLevel(d),h.setPaneId(e);var p=null!==(a=t.groupId)&&void 0!==a?a:u;return t.id=u,t.groupId=p,o._overrideInstance(h,t),h.isDrawing()?o._progressInstanceInfo={paneId:e,instance:h,appointPaneFlag:i}:(o._instances.has(e)||o._instances.set(e,[]),null===(s=o._instances.get(e))||void 0===s||s.push(h)),h.isStart()&&(null===(l=h.onDrawStart)||void 0===l||l.call(h,{overlay:h})),u}}return null}));return n.some((function(t){return null!==t}))&&(this._sort(),this._chartStore.getChart().updatePane(1,e)),n},t.prototype.getProgressInstanceInfo=function(){return this._progressInstanceInfo},t.prototype.progressInstanceComplete=function(){var t;if(null!==this._progressInstanceInfo){var e=this._progressInstanceInfo,i=e.instance,o=e.paneId;i.isDrawing()||(this._instances.has(o)||this._instances.set(o,[]),null===(t=this._instances.get(o))||void 0===t||t.push(i),this._sort(o),this._progressInstanceInfo=null)}},t.prototype.updateProgressInstanceInfo=function(t,e){null!==this._progressInstanceInfo&&(void 0!==e&&e&&(this._progressInstanceInfo.appointPaneFlag=e),this._progressInstanceInfo.paneId=t,this._progressInstanceInfo.instance.setPaneId(t))},t.prototype.getInstances=function(t){var e;if(void 0===t){var i=[];return this._instances.forEach((function(t){i=i.concat(t)})),i}return null!==(e=this._instances.get(t))&&void 0!==e?e:[]},t.prototype.override=function(t){var e=this,i=t.id,o=t.groupId,n=t.name,r=!1,a=!1,s=function(i){var o=e._overrideInstance(i,t);o[0]&&(r=!0),o[1]&&(a=!0)};if(void 0!==i){var l=this.getInstanceById(i);null!==l&&s(l)}else if(this._instances.forEach((function(t){t.forEach((function(t){(void 0!==n&&t.name===n||void 0!==o&&t.groupId===o||void 0===n&&void 0===o)&&s(t)}))})),null!==this._progressInstanceInfo){var u=this._progressInstanceInfo.instance;(void 0!==n&&u.name===n||void 0!==o&&u.groupId===o||void 0===n&&void 0===o)&&s(u)}a&&this._sort(),r&&this._chartStore.getChart().updatePane(1)},t.prototype.removeInstance=function(t){var e,i,o,n=function(t,e){if(void 0!==t.id){if(e.id!==t.id)return!1}else if(void 0!==t.groupId){if(e.groupId!==t.groupId)return!1}else if(void 0!==t.name&&e.name!==t.name)return!1;return!0},r=[];if(null!==this._progressInstanceInfo){var a=this._progressInstanceInfo.instance;(void 0===t||void 0!==t&&n(t,a))&&(r.push(this._progressInstanceInfo.paneId),null===(o=a.onRemoved)||void 0===o||o.call(a,{overlay:a}),this._progressInstanceInfo=null)}if(void 0!==t){var s=new Map,l=function(e){var i=e[1].filter((function(i){var o;return!n(t,i)||(r.includes(e[0])||r.push(e[0]),null===(o=i.onRemoved)||void 0===o||o.call(i,{overlay:i}),!1)}));i.length>0&&s.set(e[0],i)};try{for(var u=L(this._instances),c=u.next();!c.done;c=u.next()){l(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}this._instances=s}else this._instances.forEach((function(t,e){r.push(e),t.forEach((function(t){var e;null===(e=t.onRemoved)||void 0===e||e.call(t,{overlay:t})}))})),this._instances.clear();if(r.length>0){var h=this._chartStore.getChart();r.forEach((function(t){h.updatePane(1,t)})),h.updatePane(1,Kt.XAXIS)}},t.prototype.setPressedInstanceInfo=function(t){this._pressedInstanceInfo=t},t.prototype.getPressedInstanceInfo=function(){return this._pressedInstanceInfo},t.prototype.setHoverInstanceInfo=function(t,e){var i,o,r=this._hoverInstanceInfo,a=r.instance,s=r.figureKey,l=r.figureIndex;if(((null==a?void 0:a.id)!==(null===(i=t.instance)||void 0===i?void 0:i.id)||r.figureType!==t.figureType||l!==t.figureIndex)&&(this._hoverInstanceInfo=t,(null==a?void 0:a.id)!==(null===(o=t.instance)||void 0===o?void 0:o.id))){var u=!1,c=!1;null!==a&&(c=!0,a.resetZLevel(),n(a.onMouseLeave)&&(a.onMouseLeave(k({overlay:a,figureKey:s,figureIndex:l},e)),u=!0)),null!==t.instance&&(c=!0,t.instance.setZLevel(_t),n(t.instance.onMouseEnter)&&(t.instance.onMouseEnter(k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),u=!0)),c&&this._sort(),u||this._chartStore.getChart().updatePane(1)}},t.prototype.getHoverInstanceInfo=function(){return this._hoverInstanceInfo},t.prototype.setClickInstanceInfo=function(t,e){var i,o,n,r,a,s,l,u,c,h=this._clickInstanceInfo,d=h.paneId,p=h.instance,v=h.figureType,g=h.figureKey,f=h.figureIndex;if(null!==(o=null===(i=t.instance)||void 0===i?void 0:i.isDrawing())&&void 0!==o&&o||null===(r=null===(n=t.instance)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),((null==p?void 0:p.id)!==(null===(a=t.instance)||void 0===a?void 0:a.id)||v!==t.figureType||f!==t.figureIndex)&&(this._clickInstanceInfo=t,(null==p?void 0:p.id)!==(null===(s=t.instance)||void 0===s?void 0:s.id))){null===(l=null==p?void 0:p.onDeselected)||void 0===l||l.call(p,k({overlay:p,figureKey:g,figureIndex:f},e)),null===(c=null===(u=t.instance)||void 0===u?void 0:u.onSelected)||void 0===c||c.call(u,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e));var m=this._chartStore.getChart();m.updatePane(1,t.paneId),d!==t.paneId&&m.updatePane(1,d),m.updatePane(1,Kt.XAXIS)}},t.prototype.getClickInstanceInfo=function(){return this._clickInstanceInfo},t.prototype.isEmpty=function(){return 0===this._instances.size&&null===this._progressInstanceInfo},t.prototype.isDrawing=function(){var t,e;return null!==this._progressInstanceInfo&&null!==(e=null===(t=this._progressInstanceInfo)||void 0===t?void 0:t.instance.isDrawing())&&void 0!==e&&e},t}(),$t=function(){function t(){this._actions=new Map}return t.prototype.execute=function(t,e){var i;null===(i=this._actions.get(t))||void 0===i||i.execute(e)},t.prototype.subscribe=function(t,e){var i;this._actions.has(t)||this._actions.set(t,new V),null===(i=this._actions.get(t))||void 0===i||i.subscribe(e)},t.prototype.unsubscribe=function(t,e){var i=this._actions.get(t);void 0!==i&&(i.unsubscribe(e),i.isEmpty()&&this._actions.delete(t))},t.prototype.has=function(t){var e=this._actions.get(t);return void 0!==e&&!e.isEmpty()},t}(),Jt={light:{grid:{horizontal:{color:\\"#EDEDED\\"},vertical:{color:\\"#EDEDED\\"}},candle:{priceMark:{high:{color:\\"#76808F\\"},low:{color:\\"#76808F\\"}},tooltip:{rect:{color:\\"#FEFEFE\\",borderColor:\\"#F2F3F5\\"},text:{color:\\"#76808F\\"}}},indicator:{tooltip:{text:{color:\\"#76808F\\"}}},xAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},yAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},separator:{color:\\"#DDDDDD\\"},crosshair:{horizontal:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}},vertical:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}}}},dark:{grid:{horizontal:{color:\\"#292929\\"},vertical:{color:\\"#292929\\"}},candle:{priceMark:{high:{color:\\"#929AA5\\"},low:{color:\\"#929AA5\\"}},tooltip:{rect:{color:\\"rgba(10, 10, 10, .6)\\",borderColor:\\"rgba(10, 10, 10, .6)\\"},text:{color:\\"#929AA5\\"}}},indicator:{tooltip:{text:{color:\\"#929AA5\\"}}},xAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},yAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},separator:{color:\\"#333333\\"},crosshair:{horizontal:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}},vertical:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}}}}};function Qt(t){var e;return null!==(e=Jt[t])&&void 0!==e?e:null}var te=function(){function i(e,i){this._styles={grid:{show:!0,horizontal:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]},vertical:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]}},candle:{type:t.CandleType.CandleSolid,bar:{upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",upBorderColor:\\"#2DC08E\\",downBorderColor:\\"#F92855\\",noChangeBorderColor:\\"#888888\\",upWickColor:\\"#2DC08E\\",downWickColor:\\"#F92855\\",noChangeWickColor:\\"#888888\\"},area:{lineSize:2,lineColor:\\"#1677FF\\",value:\\"close\\",backgroundColor:[{offset:0,color:\\"rgba(22, 119, 255, 0.01)\\"},{offset:1,color:\\"rgba(22, 119, 255, 0.2)\\"}]},priceMark:{show:!0,high:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},low:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},last:{show:!0,upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,4],size:1},text:{show:!0,style:t.PolygonType.Fill,size:12,paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderColor:\\"transparent\\",borderStyle:t.LineType.Solid,borderSize:0,borderDashedValue:[2,2],color:\\"#FFFFFF\\",family:\\"Helvetica Neue\\",weight:\\"normal\\",borderRadius:2}}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,custom:null,defaultValue:\\"n/a\\",rect:{position:g.Fixed,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:8,offsetLeft:10,offsetTop:8,offsetRight:10,offsetBottom:8,borderRadius:4,borderSize:1,borderColor:\\"#F2F3F5\\",color:\\"#FEFEFE\\"},text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},indicator:{ohlc:{upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"},bars:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lines:[{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#FF9600\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#935EBD\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#1677FF\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#E11D74\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#01C5C4\\"}],circles:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lastValueMark:{show:!1,text:{show:!1,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderColor:\\"transparent\\",borderSize:1,borderDashedValue:[2,2],paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderRadius:2}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,showName:!0,showParams:!0,defaultValue:\\"n/a\\",text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},xAxis:{show:!0,size:\\"auto\\",axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},yAxis:{show:!0,size:\\"auto\\",type:t.YAxisType.Normal,position:t.YAxisPosition.Right,inside:!1,reverse:!1,axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},separator:{size:1,color:\\"#DDDDDD\\",fill:!0,activeBackgroundColor:\\"rgba(33, 150, 243, 0.08)\\"},crosshair:{show:!0,horizontal:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderColor:\\"#686D76\\",borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}},vertical:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#686D76\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}}},overlay:{point:{color:\\"#1677FF\\",borderColor:\\"rgba(22, 119, 255, 0.35)\\",borderSize:1,radius:5,activeColor:\\"#1677FF\\",activeBorderColor:\\"rgba(22, 119, 255, 0.35)\\",activeBorderSize:3,activeRadius:5},line:{style:t.LineType.Solid,smooth:!1,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},rect:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderRadius:0,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},polygon:{style:t.PolygonType.Fill,color:\\"#1677FF\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},circle:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},arc:{style:t.LineType.Solid,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},text:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:0,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,backgroundColor:\\"transparent\\"},rectText:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}}},this._customApi={formatDate:b,formatBigNumber:w},this._locale=I,this._precision={price:2,volume:0},this._thousandsSeparator=\\",\\",this._dataList=[],this._timeScaleStore=new it(this),this._indicatorStore=new gt(this),this._overlayStore=new qt(this),this._tooltipStore=new ft(this),this._actionStore=new $t,this._visibleDataList=[],this._chart=e,this.setOptions(i)}return i.prototype.adjustVisibleDataList=function(){this._visibleDataList=[];for(var t=this._timeScaleStore.getVisibleRange(),e=t.to,i=t.from;e>i;i++){var o=this._dataList[i],n=this._timeScaleStore.dataIndexToCoordinate(i);this._visibleDataList.push({dataIndex:i,x:n,data:o})}},i.prototype.setOptions=function(t){if(void 0!==t){var i=t.locale,o=t.timezone,n=t.styles,r=t.customApi;void 0!==i&&(this._locale=i),void 0!==o&&this._timeScaleStore.setTimezone(o),void 0!==n&&(u(n)?e(this._styles,Qt(n)):e(this._styles,n)),void 0!==r&&e(this._customApi,r),void 0!==t.thousandsSeparator&&(this._thousandsSeparator=t.thousandsSeparator)}return this},i.prototype.getStyles=function(){return this._styles},i.prototype.getLocale=function(){return this._locale},i.prototype.getCustomApi=function(){return this._customApi},i.prototype.getThousandsSeparator=function(){return this._thousandsSeparator},i.prototype.getPrecision=function(){return this._precision},i.prototype.setPrecision=function(t){return this._precision=t,this._indicatorStore.setSeriesPrecision(t),this},i.prototype.getDataList=function(){return this._dataList},i.prototype.getVisibleDataList=function(){return this._visibleDataList},i.prototype.addData=function(t,e,i){if(o(t)){this._timeScaleStore.setLoading(!1),this._timeScaleStore.setMore(null==i||i);var n=0===this._dataList.length;this._dataList=t.concat(this._dataList),n&&this._timeScaleStore.resetOffsetRightDistance(),this._timeScaleStore.adjustVisibleRange()}else{if(er&&this._timeScaleStore.setOffsetRightBarCount(--r),this._timeScaleStore.adjustVisibleRange()}}this._tooltipStore.recalculateCrosshair(!0)},i.prototype.clear=function(){this._dataList=[],this._visibleDataList=[],this._timeScaleStore.clear(),this._tooltipStore.clear()},i.prototype.getTimeScaleStore=function(){return this._timeScaleStore},i.prototype.getIndicatorStore=function(){return this._indicatorStore},i.prototype.getOverlayStore=function(){return this._overlayStore},i.prototype.getTooltipStore=function(){return this._tooltipStore},i.prototype.getActionStore=function(){return this._actionStore},i.prototype.getChart=function(){return this._chart},i}();function ee(t){return null==window.requestAnimationFrame?window.setTimeout(t,20):window.requestAnimationFrame(t)}function ie(t){null==window.cancelAnimationFrame&&window.clearTimeout(t),window.cancelAnimationFrame(t)}var oe=-1,ne=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._mainRequestAnimationId=oe,e._overlayRequestAnimationId=oe,e}return P(e,t),e.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"0\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}},e.prototype.initDom=function(t){this._mainCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._mainCtx=this._mainCanvas.getContext(\\"2d\\"),this._overlayCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._overlayCtx=this._overlayCanvas.getContext(\\"2d\\"),t.appendChild(this._mainCanvas),t.appendChild(this._overlayCanvas)},e.prototype._optimalUpdateMain=function(t,e){var i=this;this._mainRequestAnimationId!==oe&&(ie(this._mainRequestAnimationId),this._mainRequestAnimationId=oe),this._mainRequestAnimationId=ee((function(){if(t!==i._mainCanvas.offsetWidth||e!==i._mainCanvas.offsetHeight){i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);var o=X(i._mainCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._mainCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._mainCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._mainCanvas.width=n,i._mainCanvas.height=r,i._mainCtx.scale(o,o)}else i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);i.updateMain(i._mainCtx)}))},e.prototype._optimalUpdateOverlay=function(t,e){var i=this;this._overlayRequestAnimationId!==oe&&(ie(this._overlayRequestAnimationId),this._overlayRequestAnimationId=oe),this._overlayRequestAnimationId=ee((function(){if(t!==i._overlayCanvas.offsetWidth||e!==i._overlayCanvas.offsetHeight){i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);var o=X(i._overlayCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._overlayCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._overlayCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._overlayCanvas.width=n,i._overlayCanvas.height=r,i._overlayCtx.scale(o,o)}else i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);i.updateOverlay(i._overlayCtx)}))},e.prototype.updateImp=function(t,e,i){var o=e.width,n=e.height;t.style.left=\\"\\".concat(e.left,\\"px\\");var r=i;switch(o===t.offsetWidth&&n===t.offsetHeight||(t.style.width=\\"\\".concat(o,\\"px\\"),t.style.height=\\"\\".concat(n,\\"px\\"),r=3),r){case 0:this._optimalUpdateMain(o,n);break;case 1:this._optimalUpdateOverlay(o,n);break;case 3:case 4:this._optimalUpdateMain(o,n),this._optimalUpdateOverlay(o,n)}},e.prototype.getImage=function(t){var e=this.getBounding(),i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);return n.width=i*a,n.height=o*a,r.scale(a,a),r.drawImage(this._mainCanvas,0,0,i,o),t&&r.drawImage(this._overlayCanvas,0,0,i,o),n},e}(jt);function re(t,e){var i=t.x-e.x,o=t.y-e.y,n=e.r;return!(i*i+o*o>n*n)}function ae(e,i,o){var n=i.x,r=i.y,a=i.r,s=o.style,l=void 0===s?t.PolygonType.Fill:s,u=o.color,c=o.borderSize,h=void 0===c?1:c,d=o.borderColor,p=void 0===d?\\"currentColor\\":d,v=o.borderStyle,g=void 0===v?t.LineType.Solid:v,f=o.borderDashedValue,m=void 0===f?[2,2]:f;l!==t.PolygonType.Fill&&o.style!==t.PolygonType.StrokeFill||(e.fillStyle=void 0===u?\\"currentColor\\":u,e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.fill()),l!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||(e.strokeStyle=p,e.lineWidth=h,e.setLineDash(g===t.LineType.Dashed?m:[]),e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.stroke())}var se={name:\\"circle\\",checkEventOn:re,draw:function(t,e,i){ae(t,e,i)}};function le(t,e){for(var i=!1,o=e.coordinates,n=0,r=o.length-1;o.length>n;r=n++)o[n].y>t.y!=o[r].y>t.y&&(o[r].x-o[n].x)*(t.y-o[n].y)/(o[r].y-o[n].y)+o[n].x>t.x&&(i=!i);return i}function ue(e,i,o){var n=i.coordinates,r=o.style,a=void 0===r?t.PolygonType.Fill:r,s=o.color,l=o.borderSize,u=void 0===l?1:l,c=o.borderColor,h=void 0===c?\\"currentColor\\":c,d=o.borderStyle,p=void 0===d?t.LineType.Solid:d,v=o.borderDashedValue,g=void 0===v?[2,2]:v;if(a===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){e.fillStyle=void 0===s?\\"currentColor\\":s,e.beginPath(),e.moveTo(n[0].x,n[0].y);for(var f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.fill()}if(a===t.PolygonType.Stroke||o.style===t.PolygonType.StrokeFill){e.strokeStyle=h,e.lineWidth=u,e.setLineDash(p===t.LineType.Dashed?g:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y);for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.stroke()}}var ce={name:\\"polygon\\",checkEventOn:le,draw:function(t,e,i){ue(t,e,i)}};function he(t){return\\"transparent\\"===t}function de(t,e){var i=e.x,o=e.width;2*Tt>o&&(i-=Tt,o=2*Tt);var n=e.y,r=e.height;return 2*Tt>r&&(n-=Tt,r=2*Tt),!(i>t.x||t.x>i+o||n>t.y||t.y>n+r)}function pe(e,i,o){var n=i.x,r=i.y,a=i.width,s=i.height,l=o.style,c=void 0===l?t.PolygonType.Fill:l,h=o.color,d=void 0===h?\\"transparent\\":h,p=o.borderSize,v=void 0===p?1:p,g=o.borderColor,f=void 0===g?\\"transparent\\":g,m=o.borderStyle,y=void 0===m?t.LineType.Solid:m,_=o.borderRadius,x=void 0===_?0:_,S=o.borderDashedValue,C=void 0===S?[2,2]:S;if(c===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){var b=!0;u(d)&&(b=!he(d)),b&&(e.fillStyle=d,e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.fill())}c!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||he(f)||0>v||(e.strokeStyle=f,e.lineWidth=v,e.setLineDash(y===t.LineType.Dashed?C:[]),e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.stroke())}var ve={name:\\"rect\\",checkEventOn:de,draw:function(t,e,i){pe(t,e,i)}};function ge(t,e){var i,o,n=e.size,r=void 0===n?12:n,a=e.paddingLeft,s=e.paddingTop,l=void 0===s?0:s,u=e.paddingRight,c=void 0===u?0:u,h=e.paddingBottom,d=void 0===h?0:h,p=e.weight,v=t.x,g=t.y,f=t.align,m=void 0===f?\\"left\\":f,y=t.baseline,_=void 0===y?\\"top\\":y,x=t.width,S=t.height,C=null!=x?x:(void 0===a?0:a)+j(t.text,r,void 0===p?\\"normal\\":p,e.family)+c,b=null!=S?S:l+r+d;switch(m){case\\"left\\":case\\"start\\":i=v;break;case\\"right\\":case\\"end\\":i=v-C;break;default:i=v-C/2}switch(_){case\\"top\\":case\\"hanging\\":o=g;break;case\\"bottom\\":case\\"ideographic\\":case\\"alphabetic\\":o=g-b;break;default:o=g-b/2}return{x:i,y:o,width:C,height:b}}function fe(t,e,i){var o=ge(e,i),n=o.x,r=o.y;return!(n>t.x||t.x>n+o.width||r>t.y||t.y>r+o.height)}function me(t,e,i){var o=e.text,n=i.color,r=void 0===n?\\"currentColor\\":n,a=i.size,s=void 0===a?12:a,l=i.family,u=i.weight,c=i.paddingLeft,h=void 0===c?0:c,d=i.paddingTop,p=void 0===d?0:d,v=i.paddingRight,g=void 0===v?0:v,f=ge(e,i);pe(t,f,k(k({},i),{color:i.backgroundColor})),t.textAlign=\\"left\\",t.textBaseline=\\"top\\",t.font=H(s,u,l),t.fillStyle=r,t.fillText(o,f.x+h,f.y+p,f.width-h-g)}var ye={name:\\"text\\",checkEventOn:function(t,e,i){return fe(t,e,i)},draw:function(t,e,i){me(t,e,i)}},_e=me;function xe(t,e){if(Math.abs(Math.sqrt((h=(u=t).x-(c=e).x)*h+(d=u.y-c.y)*d)-e.r)Math.max(r,s)+Tt||Math.min(r,s)-Tt>t.x||t.y>Math.max(a,l)+Tt||Math.min(a,l)-Tt>t.y)}var u,c,h,d;return!1}function Se(e,i,o){var n=i.x,r=i.y,a=i.r,s=i.startAngle,l=i.endAngle,u=o.style,c=void 0===u?t.LineType.Solid:u,h=o.size,d=o.color,p=void 0===d?\\"currentColor\\":d,v=o.dashedValue,g=void 0===v?[2,2]:v;e.lineWidth=void 0===h?1:h,e.strokeStyle=p,e.setLineDash(c===t.LineType.Dashed?g:[]),e.beginPath(),e.arc(n,r,a,s,l),e.stroke(),e.closePath()}var Ce={name:\\"arc\\",checkEventOn:xe,draw:function(t,e,i){Se(t,e,i)}},be={};[se,Ft,ce,ve,ye,ye,Ce].forEach((function(t){be[t.name]=wt.extend(t)}));var Te=function(t){function e(e){var i=t.call(this)||this;return i._widget=e,i}return P(e,t),e.prototype.getWidget=function(){return this._widget},e.prototype.createFigure=function(t,e,i,o){var n=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null}(t);if(null!==n){var r=new n({name:t,attrs:e,styles:i});if(void 0!==o){for(var a in o)o.hasOwnProperty(a)&&r.registerEvent(a,o[a]);this.addChild(r)}return r}return null},e.prototype.draw=function(t){this.clear(),this.drawImp(t)},e}(bt),we=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=this.getWidget().getPane(),r=n.getChart(),a=o.getBounding(),s=r.getStyles().grid;if(s.show){t.save(),t.globalCompositeOperation=\\"destination-over\\";var l=s.horizontal;if(l.show)n.getAxisComponent().getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:0,y:e.coord},{x:a.width,y:e.coord}]},l))||void 0===o||o.draw(t)}));var u=s.vertical;if(u.show)(null===(e=r.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent()).getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:e.coord,y:0},{x:e.coord,y:a.height}]},u))||void 0===o||o.draw(t)}));t.restore()}},e}(Te),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.eachChildren=function(t){var e=this.getWidget().getPane().getChart().getChartStore(),i=e.getVisibleDataList(),o=e.getTimeScaleStore().getBarSpace();i.forEach((function(e,i){t(e,o,i)}))},e}(Te),Ie=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundCandleBarClickEvent=function(e){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnCandleBarClick,e),!1}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this,i=this.getWidget().getPane(),o=i.getId()===Kt.CANDLE,n=i.getChart().getChartStore(),r=this.getCandleBarOptions(n);if(null!==r){var a=i.getAxisComponent();this.eachChildren((function(i,n){e._drawCandleBar(t,a,i,n,r,o)}))}},i.prototype.getCandleBarOptions=function(t){var e=t.getStyles().candle;return{type:e.type,styles:e.bar}},i.prototype._drawCandleBar=function(e,i,o,n,r,a){var s,l,u,c=this,h=o.data,d=o.x,p=h.open,v=h.high,g=h.low,f=h.close,m=n.halfGapBar,y=n.gapBar,_=r.type,x=r.styles;f>p?(s=x.upColor,l=x.upBorderColor,u=x.upWickColor):p>f?(s=x.downColor,l=x.downBorderColor,u=x.downWickColor):(s=x.noChangeColor,l=x.noChangeBorderColor,u=x.noChangeWickColor);var S=i.convertToPixel(p),C=i.convertToPixel(f),b=[S,C,i.convertToPixel(v),i.convertToPixel(g)];b.sort((function(t,e){return t-e}));var T=Math.max(1,b[2]-b[1]),w=[];_!==t.CandleType.Ohlc?(w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[1]-b[0]},styles:{color:u}}),w.push(_===t.CandleType.CandleStroke||_===t.CandleType.CandleUpStroke&&f>p||_===t.CandleType.CandleDownStroke&&p>f?{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.Stroke,borderColor:l}}:{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.StrokeFill,color:s,borderColor:l}}),w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[2],width:1,height:b[3]-b[2]},styles:{color:u}})):w=[{name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[3]-b[0]},styles:{color:s}},{name:\\"rect\\",attrs:{x:d-m,y:S,width:m,height:1},styles:{color:s}},{name:\\"rect\\",attrs:{x:d,y:C,width:m,height:1},styles:{color:s}}],w.forEach((function(t){var i,n,r=t.attrs,s=t.styles;a&&(n={mouseClickEvent:c._boundCandleBarClickEvent(o)}),null===(i=c.createFigure(\\"rect\\",r,s,n))||void 0===i||i.draw(e)}))},i}(Ee),De=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.getCandleBarOptions=function(e){var i,o,n=this.getWidget().getPane();if(!n.getAxisComponent().isInCandle()){var r=e.getIndicatorStore().getInstances(n.getId());try{for(var a=L(r),s=a.next();!s.done;s=a.next()){var l=s.value[1];if(l.shouldOhlc&&l.visible){var u=l.styles,c=e.getStyles().indicator,h=C(u,\\"ohlc.upColor\\",c.ohlc.upColor),d=C(u,\\"ohlc.downColor\\",c.ohlc.downColor),p=C(u,\\"ohlc.noChangeColor\\",c.ohlc.noChangeColor);return{type:t.CandleType.Ohlc,styles:{upColor:h,downColor:d,noChangeColor:p,upBorderColor:h,downBorderColor:d,noChangeBorderColor:p,upWickColor:h,downWickColor:d,noChangeWickColor:p}}}}}catch(t){i={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}return null},i.prototype.drawImp=function(t){var i,o=this;e.prototype.drawImp.call(this,t);var n=this.getWidget(),r=n.getPane(),l=r.getChart(),u=n.getBounding(),c=null===(i=l.getPaneById(Kt.XAXIS))||void 0===i?void 0:i.getAxisComponent(),h=r.getAxisComponent(),d=l.getChartStore(),p=d.getDataList(),v=d.getTimeScaleStore(),g=v.getVisibleRange(),f=d.getIndicatorStore().getInstances(r.getId()),m=d.getStyles().indicator;f.forEach((function(e){var i;if(e.visible){var n=!1;if(null!==e.draw&&(t.save(),n=null!==(i=e.draw({ctx:t,kLineDataList:p,indicator:e,visibleRange:g,bounding:u,barSpace:v.getBarSpace(),defaultStyles:m,xAxis:c,yAxis:h}))&&void 0!==i&&i,t.restore()),!n){var r=e.result;o.eachChildren((function(i,n){var l,d,v,g=n.halfGapBar,f=n.gapBar,y=i.dataIndex,_=i.x,x=c.convertToPixel(y-1),S=c.convertToPixel(y+1),C=null!==(l=r[y-1])&&void 0!==l?l:{},b=null!==(d=r[y])&&void 0!==d?d:{},T=null!==(v=r[y+1])&&void 0!==v?v:{},w={x:x},E={x:_},I={x:S};e.figures.forEach((function(t){var e=t.key;w[e]=h.convertToPixel(C[e]),E[e]=h.convertToPixel(b[e]),I[e]=h.convertToPixel(T[e])})),ot(p,e,y,m,(function(e,i){var r,l,d;if(s(b[e.key])){var p=E[e.key],v=null===(r=e.attrs)||void 0===r?void 0:r.call(e,{coordinate:{prev:w,current:E,next:I},bounding:u,barSpace:n,xAxis:c,yAxis:h});if(!s(v))switch(e.type){case\\"circle\\":v={x:_,y:p,r:g};break;case\\"rect\\":case\\"bar\\":var m=null!==(l=e.baseValue)&&void 0!==l?l:h.getExtremum().min,y=h.convertToPixel(m),x=Math.abs(y-p);m!==b[e.key]&&(x=Math.max(1,x));v={x:_-g,y:p>y?y:p,width:f,height:x};break;case\\"line\\":a(E[e.key])&&a(I[e.key])&&(v={coordinates:[{x:E.x,y:E[e.key]},{x:I.x,y:I[e.key]}]})}if(s(v)){var S=e.type;null===(d=o.createFigure(\\"bar\\"===S?\\"rect\\":S,v,i))||void 0===d||d.draw(t)}}}))}))}}}))},i}(Ie),Pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=e.getBounding(),n=e.getPane().getChart().getChartStore(),r=n.getTooltipStore().getCrosshair(),a=n.getStyles().crosshair;if(void 0!==r.paneId&&a.show){if(r.paneId===i.getId()){var s=r.y;this._drawLine(t,[{x:0,y:s},{x:o.width,y:s}],a.horizontal)}var l=r.realX;this._drawLine(t,[{x:l,y:0},{x:l,y:o.height}],a.vertical)}},e.prototype._drawLine=function(t,e,i){var o;if(i.show){var n=i.line;n.show&&(null===(o=this.createFigure(\\"line\\",{coordinates:e},n))||void 0===o||o.draw(t))}},e}(Te),Me=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundIconClickEvent=function(e,o){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnTooltipIconClick,k(k({},e),{iconId:o})),!0}},i._boundIconMouseMoveEvent=function(t,e){return function(){return i.getWidget().getPane().getChart().getChartStore().getTooltipStore().setActiveIcon(k(k({},t),{iconId:e})),!0}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=i.getChart().getChartStore(),n=o.getTooltipStore().getCrosshair();if(void 0!==n.kLineData){var r=e.getBounding(),a=o.getCustomApi(),s=o.getThousandsSeparator(),l=o.getIndicatorStore().getInstances(i.getId()),u=o.getTooltipStore().getActiveIcon(),c=o.getStyles().indicator;this.drawIndicatorTooltip(t,i.getId(),o.getDataList(),n,u,l,a,s,r,c)}},i.prototype.drawIndicatorTooltip=function(t,e,i,o,n,r,a,s,l,u,c){var h=this,d=u.tooltip,p=0;if(this.isDrawTooltip(o,d)){var v=d.text,g=0,f=null!=c?c:0,m=0;r.forEach((function(r){var c=h.getIndicatorTooltipData(i,o,r,a,s,u),d=c.name,y=c.calcParamsText,_=c.values,x=d.length>0,S=_.length>0;if(x||S){var C=R(h.classifyTooltipIcons(c.icons),3),b=C[1],T=C[2],w=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,C[0],g,f,m),4);if(g=w[0],f=w[1],p+=w[3],m=w[2],x){var E=d;y.length>0&&(E=\\"\\".concat(E).concat(y));var I=R(h.drawStandardTooltipLabels(t,l,[{title:{text:\\"\\",color:v.color},value:{text:E,color:v.color}}],g,f,m,v),4);g=I[0],f=I[1],p+=I[3],m=I[2]}var D=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,b,g,f,m),4);if(g=D[0],f=D[1],p+=D[3],m=D[2],S){var P=R(h.drawStandardTooltipLabels(t,l,_,g,f,m,v),4);g=P[0],f=P[1],p+=P[3],m=P[2]}var M=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,T,g,f,m),4);g=0,p+=M[3],f=M[1]+M[2],m=0}}))}return p},i.prototype.drawStandardTooltipIcons=function(t,e,i,o,n,r,a,s){var l=this,u=r,c=a,h=0,d=0,p=0;return n.length>0&&(n.forEach((function(e){var i=e.marginLeft,o=e.marginTop,n=e.marginRight,r=e.marginBottom,a=e.paddingLeft,s=e.paddingTop,l=e.paddingRight,u=e.paddingBottom,c=e.size,p=e.icon;t.font=H(c,\\"normal\\",e.fontFamily),h+=i+a+t.measureText(p).width+l+n,d=Math.max(d,o+s+c+u+r)})),u+h>e.width?(u=n[0].marginLeft,c+=s,p=d):p=Math.max(0,d-s),n.forEach((function(e){var n,r=e.marginRight,a=e.paddingLeft,s=e.paddingRight,h=e.icon,d=(null==o?void 0:o.paneId)===i.paneId&&(null==o?void 0:o.indicatorName)===i.indicatorName&&(null==o?void 0:o.iconId)===e.id;null===(n=l.createFigure(\\"text\\",{text:h,x:u+=e.marginLeft,y:c+e.marginTop},{paddingLeft:a,paddingTop:e.paddingTop,paddingRight:s,paddingBottom:e.paddingBottom,color:d?e.activeColor:e.color,size:e.size,family:e.fontFamily,backgroundColor:d?e.activeBackgroundColor:e.backgroundColor},{mouseClickEvent:l._boundIconClickEvent(i,e.id),mouseMoveEvent:l._boundIconMouseMoveEvent(i,e.id)}))||void 0===n||n.draw(t),u+=a+t.measureText(h).width+s+r}))),[u,c,Math.max(s,d),p]},i.prototype.drawStandardTooltipLabels=function(t,e,i,o,n,r,a){var s=this,l=o,u=n,c=0,h=0,d=r;if(i.length>0){var p=a.marginLeft,v=a.marginTop,g=a.marginRight,f=a.marginBottom,m=a.size,y=a.family,_=a.weight;t.font=H(m,_,y),i.forEach((function(i){var o,n,r=i.title,a=i.value,x=t.measureText(r.text).width,S=t.measureText(a.text).width,C=m+v+f;l+p+(x+S)+g>e.width?(l=p,u+=C,h+=C):(l+=p,h+=Math.max(0,C-d)),d=c=Math.max(d,C),r.text.length>0&&(null===(o=s.createFigure(\\"text\\",{x:l,y:u+v,text:r.text},{color:r.color,size:m,family:y,weight:_}))||void 0===o||o.draw(t),l+=x),null===(n=s.createFigure(\\"text\\",{x:l,y:u+v,text:a.text},{color:a.color,size:m,family:y,weight:_}))||void 0===n||n.draw(t),l+=S+g}))}return[l,u,c,h]},i.prototype.isDrawTooltip=function(e,i){var o=i.showRule;return o===t.TooltipShowRule.Always||o===t.TooltipShowRule.FollowCross&&void 0!==e.paneId},i.prototype.getIndicatorTooltipData=function(t,e,i,o,n,a){var l,u,c,h=a.tooltip,d=h.showName?i.shortName:\\"\\",p=\\"\\",v=i.calcParams;v.length>0&&h.showParams&&(p=\\"(\\".concat(v.join(\\",\\"),\\")\\"));var g={name:d,calcParamsText:p,values:[],icons:h.icons},f=e.dataIndex,m=null!==(l=i.result)&&void 0!==l?l:[],y=[];if(i.visible){var _=null!==(u=m[f])&&void 0!==u?u:{};ot(t,i,f,a,(function(t,e){if(void 0!==t.title){var r=e.color,a=_[t.key];s(a)&&(a=T(a,i.precision),i.shouldFormatBigNumber&&(a=o.formatBigNumber(a))),y.push({title:{text:t.title,color:r},value:{text:E(null!=a?a:h.defaultValue,n),color:r}})}})),g.values=y}if(null!==i.createTooltipDataSource){var x=this.getWidget(),S=x.getPane(),C=S.getChart().getChartStore(),b=i.createTooltipDataSource({kLineDataList:t,indicator:i,visibleRange:C.getTimeScaleStore().getVisibleRange(),bounding:x.getBounding(),crosshair:e,defaultStyles:a,xAxis:null===(c=S.getChart().getPaneById(Kt.XAXIS))||void 0===c?void 0:c.getAxisComponent(),yAxis:S.getAxisComponent()}),w=b.name,I=b.calcParamsText,D=b.values,P=b.icons;if(void 0!==w&&h.showName&&(g.name=w),void 0!==I&&h.showParams&&(g.calcParamsText=I),void 0!==P&&(g.icons=P),void 0!==D&&i.visible){var M=[],k=a.tooltip.text.color;D.forEach((function(t){var e={text:\\"\\",color:k};r(t.title)?e=t.title:e.text=t.title;var i={text:\\"\\",color:k};r(t.value)?i=t.value:i.text=t.value,i.text=E(i.text,n),M.push({title:e,value:i})})),g.values=M}}return g},i.prototype.classifyTooltipIcons=function(e){var i=[],o=[],n=[];return e.forEach((function(e){switch(e.position){case t.TooltipIconPosition.Left:i.push(e);break;case t.TooltipIconPosition.Middle:o.push(e);break;case t.TooltipIconPosition.Right:n.push(e)}})),[i,o,n]},i}(Te),ke=function(e){function i(t){var i=e.call(this,t)||this;return i._initEvent(),i}return P(i,e),i.prototype._initEvent=function(){var t=this,e=this.getWidget().getPane(),i=e.getId(),o=e.getChart().getChartStore().getOverlayStore();this.registerEvent(\\"mouseMoveEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;a.isStart()&&(o.updateProgressInstanceInfo(i),s=i);var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);return a.isDrawing()&&s===i&&(a.eventMoveForDrawing(t._coordinateToPoint(r.instance,e)),null===(n=a.onDrawing)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))),t._figureMouseMoveEvent(a,1,u,l,0)(e)}return o.setHoverInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseClickEvent\\",(function(e){var n,r,a=o.getProgressInstanceInfo();if(null!==a){var s=a.instance,l=a.paneId;s.isStart()&&(o.updateProgressInstanceInfo(i,!0),l=i);var u=s.points.length-1,c=\\"\\".concat(yt,\\"point_\\").concat(u);return s.isDrawing()&&l===i&&(s.eventMoveForDrawing(t._coordinateToPoint(s,e)),null===(n=s.onDrawing)||void 0===n||n.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)),s.nextStep(),s.isDrawing()||(o.progressInstanceComplete(),null===(r=s.onDrawEnd)||void 0===r||r.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)))),t._figureMouseClickEvent(s,1,c,u,0)(e)}return o.setClickInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseDoubleClickEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;if(a.isDrawing()&&s===i&&(a.forceComplete(),!a.isDrawing())){o.progressInstanceComplete();var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);null===(n=a.onDrawEnd)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))}var c=a.points.length-1;return t._figureMouseClickEvent(a,1,\\"\\".concat(yt,\\"point_\\").concat(c),c,0)(e)}return!1})).registerEvent(\\"mouseRightClickEvent\\",(function(e){var i=o.getProgressInstanceInfo();if(null!==i){var n=i.instance;if(n.isDrawing()){var r=n.points.length-1;return t._figureMouseRightClickEvent(n,1,\\"\\".concat(yt,\\"point_\\").concat(r),r,0)(e)}}return!1})).registerEvent(\\"mouseUpEvent\\",(function(t){var e,n=o.getPressedInstanceInfo(),r=n.instance;return null!==r&&(null===(e=r.onPressedMoveEnd)||void 0===e||e.call(r,k({overlay:r,figureKey:n.figureKey,figureIndex:n.figureIndex},t))),o.setPressedInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1}),!1})).registerEvent(\\"pressedMouseMoveEvent\\",(function(e){var i,n,r=o.getPressedInstanceInfo(),a=r.instance,s=r.figureType,l=r.figureIndex;if(null!==a){if(!(a.lock||null!==(n=null===(i=a.onPressedMoving)||void 0===i?void 0:i.call(a,k({overlay:a,figureIndex:l,figureKey:r.figureKey},e)))&&void 0!==n&&n)){var u=t._coordinateToPoint(a,e);1===s?a.eventPressedPointMove(u,l):a.eventPressedOtherMove(u,t.getWidget().getPane().getChart().getChartStore().getTimeScaleStore())}return!0}return!1}))},i.prototype._createFigureEvents=function(t,e,i,o,n,r){var a;if(!t.isDrawing()){var s=[];if(void 0!==r&&(l(r)?r&&(s=[\\"mouseClickEvent\\",\\"mouseDoubleClickEvent\\",\\"mouseRightClickEvent\\",\\"tapEvent\\",\\"doubleTapEvent\\",\\"mouseDownEvent\\",\\"touchStartEvent\\",\\"mouseMoveEvent\\",\\"touchMoveEvent\\"]):s=r),0===s.length)return{mouseMoveEvent:this._figureMouseMoveEvent(t,e,i,o,n),mouseDownEvent:this._figureMouseDownEvent(t,e,i,o,n),mouseClickEvent:this._figureMouseClickEvent(t,e,i,o,n),mouseRightClickEvent:this._figureMouseRightClickEvent(t,e,i,o,n),mouseDoubleClickEvent:this._figureMouseDoubleClickEvent(t,e,i,o,n)};a={},s.includes(\\"mouseMoveEvent\\")||s.includes(\\"touchMoveEvent\\")||(a.mouseMoveEvent=this._figureMouseMoveEvent(t,e,i,o,n)),s.includes(\\"mouseDownEvent\\")||s.includes(\\"touchStartEvent\\")||(a.mouseDownEvent=this._figureMouseDownEvent(t,e,i,o,n)),s.includes(\\"mouseClickEvent\\")||s.includes(\\"tapEvent\\")||(a.mouseClickEvent=this._figureMouseClickEvent(t,e,i,o,n)),s.includes(\\"mouseDoubleClickEvent\\")||s.includes(\\"doubleTapEvent\\")||(a.mouseDoubleClickEvent=this._figureMouseDoubleClickEvent(t,e,i,o,n)),s.includes(\\"mouseRightClickEvent\\")||(a.mouseRightClickEvent=this._figureMouseRightClickEvent(t,e,i,o,n))}return a},i.prototype._figureMouseMoveEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane();return s.getChart().getChartStore().getOverlayStore().setHoverInstanceInfo({paneId:s.getId(),instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDownEvent=function(t,e,i,o,n){var r=this;return function(a){var s,l=r.getWidget().getPane(),u=l.getId(),c=l.getChart().getChartStore().getOverlayStore();return t.startPressedMove(r._coordinateToPoint(t,a)),null===(s=t.onPressedMoveStart)||void 0===s||s.call(t,k({overlay:t,figureIndex:o,figureKey:i},a)),c.setPressedInstanceInfo({paneId:u,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n}),!0}},i.prototype._figureMouseClickEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane(),l=s.getId();return s.getChart().getChartStore().getOverlayStore().setClickInstanceInfo({paneId:l,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDoubleClickEvent=function(t,e,i,o,n){return function(e){var n;return null===(n=t.onDoubleClick)||void 0===n||n.call(t,k(k({},e),{figureIndex:o,figureKey:i,overlay:t})),!0}},i.prototype._figureMouseRightClickEvent=function(t,e,i,o,n){var r=this;return function(e){var n,a;null!==(a=null===(n=t.onRightClick)||void 0===n?void 0:n.call(t,k({overlay:t,figureIndex:o,figureKey:i},e)))&&void 0!==a&&a||r.getWidget().getPane().getChart().getChartStore().getOverlayStore().removeInstance(t);return!0}},i.prototype._coordinateToPoint=function(e,i){var o,n,r={},a=this.getWidget().getPane(),s=a.getChart(),l=a.getId(),u=s.getChartStore().getTimeScaleStore();if(this.coordinateToPointTimestampDataIndexFlag()){var c=(null===(o=s.getPaneById(Kt.XAXIS))||void 0===o?void 0:o.getAxisComponent()).convertFromPixel(i.x),h=null!==(n=u.dataIndexToTimestamp(c))&&void 0!==n?n:void 0;r.dataIndex=c,r.timestamp=h}if(this.coordinateToPointValueFlag()){var d=a.getAxisComponent(),p=d.convertFromPixel(i.y);if(e.mode!==t.OverlayMode.Normal&&l===Kt.CANDLE&&void 0!==r.dataIndex){var v=u.getDataByDataIndex(r.dataIndex);if(null!==v){var g=e.modeSensitivity;if(p>v.high)if(e.mode===t.OverlayMode.WeakMagnet){var f=d.convertToPixel(v.high);d.convertFromPixel(f-g)>p&&(p=v.high)}else p=v.high;else if(v.low>p)if(e.mode===t.OverlayMode.WeakMagnet){var m=d.convertToPixel(v.low);p>d.convertFromPixel(m-g)&&(p=v.low)}else p=v.low;else{var y=Math.max(v.open,v.close),_=Math.min(v.open,v.close);p=p>y?v.high-p>p-y?y:v.high:_>p?_-p>p-v.low?v.low:_:p-_>y-p?y:_}}}r.value=p}return r},i.prototype.coordinateToPointValueFlag=function(){return!0},i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.dispatchEvent=function(t,i,o){return this.getWidget().getPane().getChart().getChartStore().getOverlayStore().isDrawing()?this.onEvent(t,i,o):e.prototype.dispatchEvent.call(this,t,i,o)},i.prototype.checkEventOn=function(){return!0},i.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart(),s=n.getAxisComponent(),l=null===(e=a.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent(),u=o.getBounding(),c=a.getChartStore(),h=c.getCustomApi(),d=c.getThousandsSeparator(),p=c.getTimeScaleStore(),v=p.getDateTimeFormat(),g=p.getBarSpace(),f=c.getPrecision(),m=c.getStyles().overlay,y=c.getOverlayStore(),_=y.getHoverInstanceInfo(),x=y.getClickInstanceInfo();this.getCompleteOverlays(y,r).forEach((function(e){e.visible&&i._drawOverlay(t,e,u,g,f,v,h,d,m,l,s,_,x,p)}));var S=y.getProgressInstanceInfo();if(null!==S){var C=this.getProgressOverlay(S,r);null!==C&&C.visible&&this._drawOverlay(t,C,u,g,f,v,h,d,m,l,s,_,x,p)}},i.prototype._drawOverlay=function(t,e,i,o,n,r,a,s,l,u,c,h,d,p){var v=e.points.map((function(t){var e,i,o=t.dataIndex;void 0!==t.timestamp&&(o=p.timestampToDataIndex(t.timestamp));var n={x:0,y:0};return void 0!==o&&(n.x=null!==(e=null==u?void 0:u.convertToPixel(o))&&void 0!==e?e:0),void 0!==t.value&&(n.y=null!==(i=null==c?void 0:c.convertToPixel(t.value))&&void 0!==i?i:0),n}));if(v.length>0){var g=[].concat(this.getFigures(e,v,i,o,n,s,r,l,u,c));this.drawFigures(t,e,g,l)}this.drawDefaultFigures(t,e,v,i,n,r,a,s,l,u,c,h,d)},i.prototype.drawFigures=function(t,e,i,o){var n=this;i.forEach((function(i,r){var a=i.type,s=i.styles,l=i.ignoreEvent;[].concat(i.attrs).forEach((function(u,c){var h,d,p,v=n._createFigureEvents(e,2,null!==(h=i.key)&&void 0!==h?h:\\"\\",r,c,l),g=k(k(k({},o[a]),null===(d=e.styles)||void 0===d?void 0:d[a]),s);null===(p=n.createFigure(a,u,g,v))||void 0===p||p.draw(t)}))}))},i.prototype.getCompleteOverlays=function(t,e){return t.getInstances(e)},i.prototype.getProgressOverlay=function(t,e){return t.paneId===e?t.instance:null},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createPointFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){var p,v,g=this;if(e.needDefaultPointFigure&&((null===(p=h.instance)||void 0===p?void 0:p.id)===e.id&&0!==h.figureType||(null===(v=d.instance)||void 0===v?void 0:v.id)===e.id&&0!==d.figureType)){var f=e.styles,m=k(k({},l.point),null==f?void 0:f.point);i.forEach((function(i,o){var n,r,a,s=i.x,l=i.y,u=m.radius,c=m.color,d=m.borderColor,p=m.borderSize;(null===(n=h.instance)||void 0===n?void 0:n.id)===e.id&&1===h.figureType&&h.figureIndex===o&&(u=m.activeRadius,c=m.activeColor,d=m.activeBorderColor,p=m.activeBorderSize),null===(r=g.createFigure(\\"circle\\",{x:s,y:l,r:u+p},{color:d},g._createFigureEvents(e,1,\\"\\".concat(yt,\\"point_\\").concat(o),o,0)))||void 0===r||r.draw(t),null===(a=g.createFigure(\\"circle\\",{x:s,y:l,r:u},{color:c}))||void 0===a||a.draw(t)}))}},i}(Te),Ae=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._gridView=new we(o),o._indicatorView=new De(o),o._crosshairLineView=new Pe(o),o._tooltipView=o.createTooltipView(),o._overlayView=new ke(o),o.addChild(o._tooltipView),o.addChild(o._overlayView),o.getContainer().style.cursor=\\"crosshair\\",o.registerEvent(\\"mouseMoveEvent\\",(function(){return i.getChart().getChartStore().getTooltipStore().setActiveIcon(),!1})),o}return P(e,t),e.prototype.getName=function(){return zt},e.prototype.updateMain=function(t){this.updateMainContent(t),this._indicatorView.draw(t),this._gridView.draw(t)},e.prototype.createTooltipView=function(){return new Me(this)},e.prototype.updateMainContent=function(t){},e.prototype.updateOverlay=function(t){this._overlayView.draw(t),this._crosshairLineView.draw(t),this._tooltipView.draw(t)},e}(ne),Fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i,n=this.getWidget(),r=n.getPane(),s=r.getChart(),l=n.getBounding(),u=r.getAxisComponent(),c=s.getStyles().candle.area,h=[],d=[],p=Number.MAX_SAFE_INTEGER;this.eachChildren((function(t,e,i){var o=t.x,n=e.halfGapBar,r=t.data[c.value];if(a(r)){var s=u.convertToPixel(r);if(0===i){var v=o-n;d.push({x:v,y:l.height}),d.push({x:v,y:s}),h.push({x:v,y:s})}h.push({x:o,y:s}),d.push({x:o,y:s}),p=Math.min(p,s)}}));var v=d.length;if(v>0){var g=d[v-1],f=g.x;h.push({x:f,y:g.y}),d.push({x:f,y:g.y}),d.push({x:f,y:l.height})}if(h.length>0&&(null===(e=this.createFigure(\\"line\\",{coordinates:h},{color:c.lineColor,size:c.lineSize}))||void 0===e||e.draw(t)),d.length>0){var m=c.backgroundColor,y=void 0;if(o(m)){var _=t.createLinearGradient(0,l.height,0,p);try{m.forEach((function(t){_.addColorStop(t.offset,t.color)}))}catch(t){}y=_}else y=m;null===(i=this.createFigure(\\"polygon\\",{coordinates:d},{color:y}))||void 0===i||i.draw(t)}},e}(Ee),Le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget().getPane(),i=e.getChart().getChartStore(),o=i.getStyles().candle.priceMark,n=o.high,r=o.low;if(o.show&&(n.show||r.show)){var a=i.getThousandsSeparator(),s=i.getPrecision(),l=e.getAxisComponent(),u=Number.MIN_SAFE_INTEGER,c=0,h=Number.MAX_SAFE_INTEGER,d=0;this.eachChildren((function(t){var e=t.data,i=t.x;e.high>u&&(u=e.high,c=i),h>e.low&&(h=e.low,d=i)}));var p=l.convertToPixel(u),v=l.convertToPixel(h);n.show&&u!==Number.MIN_SAFE_INTEGER&&this._drawMark(t,E(T(u,s.price),a),{x:c,y:p},v>p?[-2,-5]:[2,5],n),r.show&&h!==Number.MAX_SAFE_INTEGER&&this._drawMark(t,E(T(h,s.price),a),{x:d,y:v},v>p?[2,5]:[-2,-5],r)}},e.prototype._drawMark=function(t,e,i,o,n){var r,a,s,l,u,c,h=i.x,d=i.y+o[0];null===(r=this.createFigure(\\"line\\",{coordinates:[{x:h-2,y:d+o[0]},{x:h,y:d},{x:h+2,y:d+o[0]}]},{color:n.color}))||void 0===r||r.draw(t),h>this.getWidget().getBounding().width/2?(u=(l=h-5)-n.textOffset,c=\\"right\\"):(c=\\"left\\",u=(l=h+5)+n.textOffset);var p=d+o[1];null===(a=this.createFigure(\\"line\\",{coordinates:[{x:h,y:d},{x:h,y:p},{x:l,y:p}]},{color:n.color}))||void 0===a||a.draw(t),null===(s=this.createFigure(\\"text\\",{x:u,y:p,text:e,align:c,baseline:\\"middle\\"},{color:n.color,size:n.textSize,family:n.textFamily,weight:n.textWeight}))||void 0===s||s.draw(t)},e}(Ee),Re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getStyles().candle.priceMark,s=a.last,l=s.line;if(a.show&&s.show&&l.show){var u=o.getAxisComponent(),c=r.getDataList(),h=c[c.length-1];if(null!=h){var d=h.close,p=h.open,v=u.convertToNicePixel(d);null===(e=this.createFigure(\\"line\\",{coordinates:[{x:0,y:v},{x:n.width,y:v}]},{style:l.style,color:d>p?s.upColor:p>d?s.downColor:s.noChangeColor,size:l.size,dashedValue:l.dashedValue}))||void 0===e||e.draw(t)}}},e}(Te),Be={\\"zh-CN\\":{time:\\"时间:\\",open:\\"开:\\",high:\\"高:\\",low:\\"低:\\",close:\\"收:\\",volume:\\"成交量:\\",change:\\"涨幅:\\"},\\"en-US\\":{time:\\"Time: \\",open:\\"Open: \\",high:\\"High: \\",low:\\"Low: \\",close:\\"Close: \\",volume:\\"Volume: \\",change:\\"Change: \\"}};var Oe=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart().getChartStore(),s=a.getTooltipStore().getCrosshair();if(void 0!==s.kLineData){var l=o.getBounding(),u=null===(i=n.getYAxisWidget())||void 0===i?void 0:i.getBounding(),c=a.getDataList(),h=a.getPrecision(),d=a.getLocale(),p=a.getCustomApi(),v=a.getThousandsSeparator(),g=a.getTooltipStore().getActiveIcon(),f=a.getIndicatorStore().getInstances(n.getId()),m=a.getTimeScaleStore().getDateTimeFormat(),y=a.getStyles(),_=y.candle,x=y.indicator;if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Rect){var S=this.isDrawTooltip(s,_.tooltip),C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,C,y,0)}else if(_.tooltip.showType===t.TooltipShowType.Standard&&x.tooltip.showType===t.TooltipShowType.Standard){var b=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,b)}else if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Standard){var T=this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,0);S=this.isDrawTooltip(s,_.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,!1,y,T)}else{var w=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,!1,C,y,w)}}},i.prototype._drawCandleStandardTooltip=function(t,e,i,o,n,r,a,s,l,u,c,h){var d,p,v,g=h.tooltip,f=g.text,m=0;if(this.isDrawTooltip(n,g)){var y=null!==(d=n.dataIndex)&&void 0!==d?d:0,_=this._getCandleTooltipData({prev:null!==(p=e[y-1])&&void 0!==p?p:null,current:n.kLineData,next:null!==(v=e[y+1])&&void 0!==v?v:null},a,s,l,u,c,h),x=0,S=0,C=0,b=R(this.classifyTooltipIcons(g.icons),3),T=b[1],w=b[2],E=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,b[0],x,S,0),4);m+=E[3];var I=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,T,x=E[0],S=E[1],C=E[2]),4);if(x=I[0],S=I[1],m+=I[3],C=I[2],_.length>0){var D=R(this.drawStandardTooltipLabels(t,o,_,x,S,C,f),4);x=D[0],S=D[1],m+=D[3],C=D[2]}var P=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,w,x,S,C),4);x=P[0],S=P[1],m+=P[3],C=P[2]}return m},i.prototype._drawRectTooltip=function(e,i,o,n,r,a,s,l,u,c,h,d,p,v,f){var m,y,_,x,S,C=this,b=v.candle,T=v.indicator,w=b.tooltip,E=T.tooltip;if(d||p){var I=null!==(m=a.dataIndex)&&void 0!==m?m:0,D=this._getCandleTooltipData({prev:null!==(y=i[I-1])&&void 0!==y?y:null,current:a.kLineData,next:null!==(_=i[I+1])&&void 0!==_?_:null},s,l,u,c,h,b),P=w.text,M=P.marginLeft,k=P.marginRight,A=P.marginTop,F=P.marginBottom,L=P.size,R=P.weight,B=P.family,O=w.rect,V=O.position,N=O.paddingLeft,W=O.paddingRight,z=O.paddingTop,Y=O.paddingBottom,X=O.offsetLeft,j=O.offsetRight,Z=O.offsetTop,G=O.offsetBottom,K=O.borderSize,U=O.borderRadius,q=O.borderColor,$=O.color,J=0,Q=0,tt=0;d&&(e.font=H(L,R,B),D.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+M+k;J=Math.max(J,n)})),tt+=(F+A+L)*D.length);var et=E.text,it=et.marginLeft,ot=et.marginRight,nt=et.marginTop,rt=et.marginBottom,at=et.size,st=et.weight,lt=et.family,ut=[];if(p&&(e.font=H(at,st,lt),o.forEach((function(t){var o,n=null!==(o=C.getIndicatorTooltipData(i,a,t,c,h,T).values)&&void 0!==o?o:[];ut.push(n),n.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+it+ot;J=Math.max(J,n),tt+=nt+rt+at}))}))),0!==(Q+=J)&&0!==tt){Q+=2*K+N+W,tt+=2*K+z+Y;var ct=V===g.Pointer&&a.paneId===Kt.CANDLE,ht=(null!==(x=a.realX)&&void 0!==x?x:0)>n.width/2,dt=0;if(ct){var pt=a.realX;dt=ht?pt-j-Q:pt+X}else ht?(dt=X,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Left&&(dt+=r.width)):(dt=n.width-j-Q,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Right&&(dt-=r.width));var vt=f+Z;if(ct)(vt=a.y-tt/2)+tt>n.height-G&&(vt=n.height-G-tt),f+Z>vt&&(vt=f+Z);null===(S=this.createFigure(\\"rect\\",{x:dt,y:vt,width:Q,height:tt},{style:t.PolygonType.StrokeFill,color:$,borderColor:q,borderSize:K,borderRadius:U}))||void 0===S||S.draw(e);var gt=dt+K+N+M,ft=vt+K+z;if(d&&D.forEach((function(t){var i,o,n=t.title;null===(i=C.createFigure(\\"text\\",{x:gt,y:ft+=A,text:n.text},{color:n.color,size:L,family:B,weight:R}))||void 0===i||i.draw(e);var r=t.value;null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-k-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:L,family:B,weight:R}))||void 0===o||o.draw(e),ft+=L+F})),p){var mt=dt+K+N+it;ut.forEach((function(t){t.forEach((function(t){var i,o,n=t.title,r=t.value;null===(i=C.createFigure(\\"text\\",{x:mt,y:ft+=nt,text:n.text},{color:n.color,size:at,family:lt,weight:st}))||void 0===i||i.draw(e),null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-ot-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:at,family:lt,weight:st}))||void 0===o||o.draw(e),ft+=at+rt}))}))}}}},i.prototype._getCandleTooltipData=function(e,i,o,a,s,l,u){var c,h,d,p,v,g=u.tooltip,f=g.text.color,m=e.current,y=null!==(h=null===(c=e.prev)||void 0===c?void 0:c.close)&&void 0!==h?h:m.close,_=m.close-y,x=i.price,S=i.volume,C={\\"{time}\\":s.formatDate(o,m.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Tooltip),\\"{open}\\":E(T(m.open,x),l),\\"{high}\\":E(T(m.high,x),l),\\"{low}\\":E(T(m.low,x),l),\\"{close}\\":E(T(m.close,x),l),\\"{volume}\\":E(s.formatBigNumber(T(null!==(d=m.volume)&&void 0!==d?d:g.defaultValue,S)),l),\\"{change}\\":0===y?g.defaultValue:\\"\\".concat(T(_/y*100),\\"%\\")};return(null!==(v=n(g.custom)?null===(p=g.custom)||void 0===p?void 0:p.call(g,e,u):g.custom)&&void 0!==v?v:[{title:\\"time\\",value:\\"{time}\\"},{title:\\"open\\",value:\\"{open}\\"},{title:\\"high\\",value:\\"{high}\\"},{title:\\"low\\",value:\\"{low}\\"},{title:\\"close\\",value:\\"{close}\\"},{title:\\"volume\\",value:\\"{volume}\\"}]).map((function(t){var e,i=t.title,o=t.value,n={text:\\"\\",color:\\"\\"};r(i)?n=k({},i):(n.text=i,n.color=f),n.text=function(t,e){var i,o;return null!==(o=null===(i=Be[e])||void 0===i?void 0:i[t])&&void 0!==o?o:t}(n.text,a);var s={text:g.defaultValue,color:\\"\\"};r(o)?s=k({},o):(s.text=o,s.color=f);var l=s.text.match(/{(\\\\S*)}/);if(null!==l&&l.length>1){var c=\\"{\\".concat(l[1],\\"}\\");s.text=s.text.replace(c,null!==(e=C[c])&&void 0!==e?e:g.defaultValue),\\"{change}\\"===c&&(s.color=0===_?u.priceMark.last.noChangeColor:_>0?u.priceMark.last.upColor:u.priceMark.last.downColor)}return{title:n,value:s}}))},i}(Me),Ve=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o._candleBarView=new Ie(o),o._candleAreaView=new Fe(o),o._candleHighLowPriceView=new Le(o),o._candleLastPriceLineView=new Re(o),o.addChild(o._candleBarView),o}return P(i,e),i.prototype.updateMainContent=function(e){this.getPane().getChart().getStyles().candle.type!==t.CandleType.Area?(this._candleBarView.draw(e),this._candleHighLowPriceView.draw(e)):this._candleAreaView.draw(e),this._candleLastPriceLineView.draw(e)},i.prototype.createTooltipView=function(){return new Oe(this)},i}(Ae),Ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getAxisComponent(),s=this.getAxisStyles(n.getChart().getStyles());if(s.show){s.axisLine.show&&(null===(e=this.createFigure(\\"line\\",this.createAxisLine(r,s),s.axisLine))||void 0===e||e.draw(t));var l=a.getTicks();if(s.tickLine.show)this.createTickLines(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",e,s.tickLine))||void 0===o||o.draw(t)}));if(s.tickText.show)this.createTickTexts(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"text\\",e,s.tickText))||void 0===o||o.draw(t)}))}},e}(Te),We=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.yAxis},e.prototype.createAxisLine=function(t,e){var i,o=this.getWidget().getPane().getAxisComponent(),n=e.axisLine.size;return{coordinates:[{x:i=o.isFromZero()?n/2:t.width-n,y:0},{x:i,y:t.height}]}},e.prototype.createTickLines=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=0,s=0;return o.isFromZero()?(a=0,n.show&&(a+=n.size),s=a+r.length):(a=e.width,n.show&&(a-=n.size),s=a-r.length),t.map((function(t){return{coordinates:[{x:a,y:t.coord},{x:s,y:t.coord}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=i.tickText,s=0;o.isFromZero()?(s=a.marginStart,n.show&&(s+=n.size),r.show&&(s+=r.length)):(s=e.width-a.marginEnd,n.show&&(s-=n.size),r.show&&(s-=r.length));var l=this.getWidget().getPane().getAxisComponent().isFromZero()?\\"left\\":\\"right\\";return t.map((function(t){return{x:s,y:t.coord,text:t.text,align:l,baseline:\\"middle\\"}}))},e}(Ne),ze=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getChart().getChartStore(),s=a.getStyles().candle.priceMark,l=s.last,u=l.text;if(s.show&&l.show&&u.show){var c=a.getPrecision(),h=n.getAxisComponent(),d=a.getDataList(),p=a.getVisibleDataList(),v=d[d.length-1];if(void 0!==v){var g=v.close,f=v.open,m=h.convertToNicePixel(g),y=void 0;y=g>f?l.upColor:f>g?l.downColor:l.noChangeColor;var _=void 0;if(h.getType()===t.YAxisType.Percentage){var x=p[0].data.close;_=\\"\\".concat(((g-x)/x*100).toFixed(2),\\"%\\")}else _=T(g,c.price);_=E(_,a.getThousandsSeparator());var S=void 0,C=void 0;h.isFromZero()?(S=0,C=\\"left\\"):(S=r.width,C=\\"right\\"),null===(i=this.createFigure(\\"text\\",{x:S,y:m,text:_,align:C,baseline:\\"middle\\"},k(k({},u),{backgroundColor:y})))||void 0===i||i.draw(e)}}},i}(Te),Ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getCustomApi(),l=r.getStyles().indicator,u=l.lastValueMark,c=u.text;if(u.show){var h=o.getAxisComponent(),d=r.getDataList(),p=d.length-1,v=r.getIndicatorStore().getInstances(o.getId()),g=r.getThousandsSeparator();v.forEach((function(i){var o=i.result[p];if(void 0!==o&&i.visible){var r=i.precision;ot(d,i,p,l,(function(l,u){var d,p=o[l.key];if(s(p)){var v=h.convertToNicePixel(p),f=T(p,r);i.shouldFormatBigNumber&&(f=a.formatBigNumber(f)),f=E(f,g);var m=void 0,y=void 0;h.isFromZero()?(m=0,y=\\"left\\"):(m=n.width,y=\\"right\\"),null===(d=e.createFigure(\\"text\\",{x:m,y:v,text:f,align:y,baseline:\\"middle\\"},k(k({},c),{backgroundColor:u.color})))||void 0===d||d.draw(t)}}))}}))}},e}(Te),Xe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!1},e.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){this.drawFigures(t,e,this.getDefaultFigures(e,i,o,n,r,a,s,u,c,d),l)},e.prototype.getDefaultFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h,d=[];if(t.needDefaultYAxisFigure&&t.id===(null===(c=u.instance)||void 0===c?void 0:c.id)&&u.paneId===this.getWidget().getPane().getId()){var p,v,g=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;null!==(h=null==l?void 0:l.isFromZero())&&void 0!==h&&h?(p=\\"left\\",v=0):(p=\\"right\\",v=i.width),e.forEach((function(e,i){var n=t.points[i];if(void 0!==n.value){g=Math.min(g,e.y),f=Math.max(f,e.y);var r=E(T(n.value,o.price),a);d.push({type:\\"text\\",attrs:{x:v,y:e.y,text:r,align:p,baseline:\\"middle\\"},ignoreEvent:!0})}})),e.length>1&&d.unshift({type:\\"rect\\",attrs:{x:0,y:g,width:i.width,height:f-g},ignoreEvent:!0})}return d},e.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createYAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},e}(ke),He=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=i.getPane().getChart().getChartStore(),a=r.getTooltipStore().getCrosshair(),s=r.getStyles().crosshair;if(void 0!==a.paneId&&this.compare(a,o.getId())&&s.show){var l=this.getDirectionStyles(s),u=l.text;if(l.show&&u.show){var c=o.getAxisComponent(),h=this.getText(a,r,c);t.font=H(u.size,u.weight,u.family),null===(e=this.createFigure(\\"text\\",this.getTextAttrs(h,t.measureText(h).width,a,n,c,u),u))||void 0===e||e.draw(t)}}},i.prototype.compare=function(t,e){return t.paneId===e},i.prototype.getDirectionStyles=function(t){return t.horizontal},i.prototype.getText=function(e,i,o){var n,r,a,s=o,l=o.convertFromPixel(e.y);if(s.getType()===t.YAxisType.Percentage){var u=null!==(r=null===(n=i.getVisibleDataList()[0])||void 0===n?void 0:n.data)&&void 0!==r?r:{};a=\\"\\".concat(((l-u.close)/u.close*100).toFixed(2),\\"%\\")}else{var c=i.getIndicatorStore().getInstances(e.paneId),h=0,d=!1;s.isInCandle()?h=i.getPrecision().price:c.forEach((function(t){h=Math.max(t.precision,h),d||(d=t.shouldFormatBigNumber)})),a=T(l,h),d&&(a=i.getCustomApi().formatBigNumber(a))}return E(a,i.getThousandsSeparator())},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s;return n.isFromZero()?(a=0,s=\\"left\\"):(a=o.width,s=\\"right\\"),{x:a,y:i.y,text:t,align:s,baseline:\\"middle\\"}},i}(Te),je=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._yAxisView=new We(o),o._candleLastPriceLabelView=new ze(o),o._indicatorLastValueView=new Ye(o),o._overlayYAxisView=new Xe(o),o._crosshairHorizontalLabelView=new He(o),o.getContainer().style.cursor=\\"ns-resize\\",o.addChild(o._overlayYAxisView),o}return P(e,t),e.prototype.getName=function(){return Xt},e.prototype.updateMain=function(t){this._yAxisView.draw(t),this.getPane().getAxisComponent().isInCandle()&&this._candleLastPriceLabelView.draw(t),this._indicatorLastValueView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayYAxisView.draw(t),this._crosshairHorizontalLabelView.draw(t)},e}(ne),Ze=function(){function t(t){this._extremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._prevExtremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._ticks=[],this._autoCalcTickFlag=!0,this._parent=t}return t.prototype.getParent=function(){return this._parent},t.prototype.buildTicks=function(t){return this._autoCalcTickFlag&&(this._extremum=this.calcExtremum()),!(this._prevExtremum.min===this._extremum.min&&this._prevExtremum.max===this._extremum.max&&!t)&&(this._prevExtremum=this._extremum,this._ticks=this.optimalTicks(this._calcTicks()),!0)},t.prototype.getTicks=function(){return this._ticks},t.prototype.getScrollZoomEnabled=function(){var t;return null===(t=this.getParent().getOptions().axisOptions.scrollZoomEnabled)||void 0===t||t},t.prototype.setExtremum=function(t){this._autoCalcTickFlag=!1,this._extremum=t},t.prototype.getExtremum=function(){return this._extremum},t.prototype.setAutoCalcTickFlag=function(t){this._autoCalcTickFlag=t},t.prototype.getAutoCalcTickFlag=function(){return this._autoCalcTickFlag},t.prototype._calcTicks=function(){var t=this._extremum,e=t.realMin,i=t.realMax,o=t.realRange,n=[];if(o>=0){var r=R(this._calcTickInterval(o),2),a=r[0],s=r[1],l=G(Math.ceil(e/a)*a,s),u=G(Math.floor(i/a)*a,s),c=0,h=l;if(0!==a)for(;u>=h;){var d=h.toFixed(s);n[c]={text:d,coord:0,value:d},++c,h+=a}}return n},t.prototype._calcTickInterval=function(t){var e,i,o,n,r=(i=Math.floor(U(e=t/8)),o=q(i),e=(1.5>(n=e/o)?1:2.5>n?2:3.5>n?3:4.5>n?4:5.5>n?5:6.5>n?6:8)*o,-20>i?e:+e.toFixed(0>i?-i:0)),a=function(t){var e=\\"\\"+t,i=e.indexOf(\\"e\\");if(i>0){var o=+e.slice(i+1);return 0>o?-o:0}var n=e.indexOf(\\".\\");return 0>n?0:e.length-1-n}(r);return[r,a]},t}(),Ge=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var e,i,o,n,r,a=this.getParent(),l=a.getChart(),u=l.getChartStore(),c=Number.MAX_SAFE_INTEGER,h=Number.MIN_SAFE_INTEGER,d=[],p=!1,v=Number.MAX_SAFE_INTEGER,g=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER;u.getIndicatorStore().getInstances(a.getId()).forEach((function(t){var e,i,o;p||(p=null!==(e=t.shouldOhlc)&&void 0!==e&&e),f=Math.min(f,t.precision),null!==t.minValue&&(v=Math.min(v,t.minValue)),null!==t.maxValue&&(g=Math.max(g,t.maxValue)),d.push({figures:null!==(i=t.figures)&&void 0!==i?i:[],result:null!==(o=t.result)&&void 0!==o?o:[]})}));var m=4,y=this.isInCandle();if(y){var _=u.getPrecision().price;m=f!==Number.MAX_SAFE_INTEGER?Math.min(f,_):_}else f!==Number.MAX_SAFE_INTEGER&&(m=f);var x=u.getVisibleDataList(),S=l.getStyles().candle,C=S.type===t.CandleType.Area,b=S.area.value,T=y&&!C||!y&&p;x.forEach((function(t){var e=t.dataIndex,i=t.data;if(T&&(c=Math.min(c,i.low),h=Math.max(h,i.high)),y&&C){var o=i[b];c=Math.min(c,o),h=Math.max(h,o)}d.forEach((function(t){var i,o=null!==(i=t.result[e])&&void 0!==i?i:{};t.figures.forEach((function(t){var e=o[t.key];s(e)&&(c=Math.min(c,e),h=Math.max(h,e))}))}))})),c!==Number.MAX_SAFE_INTEGER&&h!==Number.MIN_SAFE_INTEGER?(c=Math.min(v,c),h=Math.max(g,h)):(c=0,h=10);var w,E=this.getType();switch(E){case t.YAxisType.Percentage:var I=null===(e=x[0])||void 0===e?void 0:e.data;void 0!==(null==I?void 0:I.close)&&(c=(c-I.close)/I.close*100,h=(h-I.close)/I.close*100),w=.01;break;case t.YAxisType.Log:c=U(c),h=U(h),w=.05*q(-m);break;default:w=q(-m)}if(c===h||w>Math.abs(c-h)){var D=v===c,P=g===h;c=D?c:P?c-8*w:c-4*w,h=P?h:D?h+8*w:h+4*w}var M=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,k=a.getOptions().gap,A=null!==(n=null==k?void 0:k.top)&&void 0!==n?n:.2;1>A||(A/=M);var F=null!==(r=null==k?void 0:k.bottom)&&void 0!==r?r:.1;1>F||(F/=M);var L,R,B,O=Math.abs(h-c);return O=Math.abs((h+=O*A)-(c-=O*F)),E===t.YAxisType.Log?(L=q(c),R=q(h),B=Math.abs(R-L)):(L=c,R=h,B=O),{min:c,max:h,range:O,realMin:L,realMax:R,realRange:B}},i.prototype._innerConvertToPixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.getExtremum(),r=(t-n.min)/n.range;return this.isReverse()?Math.round(r*o):Math.round((1-r)*o)},i.prototype.isInCandle=function(){return\\"candle\\"===this.getParent().getName()},i.prototype.getType=function(){return this.isInCandle()?this.getParent().getChart().getStyles().yAxis.type:t.YAxisType.Normal},i.prototype.getPosition=function(){return this.getParent().getChart().getStyles().yAxis.position},i.prototype.isReverse=function(){return!!this.isInCandle()&&this.getParent().getChart().getStyles().yAxis.reverse},i.prototype.isFromZero=function(){var e=this.getParent().getChart().getStyles().yAxis,i=e.inside;return e.position===t.YAxisPosition.Left&&i||e.position===t.YAxisPosition.Right&&!i},i.prototype.optimalTicks=function(e){var i,o,n=this,r=this.getParent(),a=null!==(o=null===(i=r.getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,s=r.getChart().getChartStore(),l=s.getCustomApi(),u=[],c=this.getType(),h=s.getIndicatorStore().getInstances(r.getId()),d=s.getThousandsSeparator(),p=0,v=!1;this.isInCandle()?p=s.getPrecision().price:h.forEach((function(t){p=Math.max(p,t.precision),v||(v=t.shouldFormatBigNumber)}));var g,f=s.getStyles().xAxis.tickText.size;return e.forEach((function(e){var i,o=e.value,r=n._innerConvertToPixel(+o);switch(c){case t.YAxisType.Percentage:i=\\"\\".concat(T(o,2),\\"%\\");break;case t.YAxisType.Log:r=n._innerConvertToPixel(U(+o)),i=T(o,p);break;default:i=T(o,p),v&&(i=l.formatBigNumber(o))}i=E(i,d),r>f&&a-f>r&&(void 0!==g&&Math.abs(g-r)>2*f||void 0===g)&&(u.push({text:i,coord:r,value:o}),g=r)})),u},i.prototype.getAutoSize=function(){var e=this.getParent(),i=e.getChart(),o=i.getStyles(),n=o.yAxis,r=n.size;if(\\"auto\\"!==r)return r;var a=i.getChartStore(),s=a.getCustomApi(),l=0;if(n.show&&(n.axisLine.show&&(l+=n.axisLine.size),n.tickLine.show&&(l+=n.tickLine.length),n.tickText.show)){var u=0;this.getTicks().forEach((function(t){u=Math.max(u,j(t.text,n.tickText.size,n.tickText.weight,n.tickText.family))})),l+=n.tickText.marginStart+n.tickText.marginEnd+u}var c=o.crosshair,h=0;if(c.show&&c.horizontal.show&&c.horizontal.text.show){var d=a.getIndicatorStore().getInstances(e.getId()),p=0,v=!1;d.forEach((function(t){p=Math.max(t.precision,p),v||(v=t.shouldFormatBigNumber)}));var g=2;if(this.getType()!==t.YAxisType.Percentage)if(this.isInCandle()){var f=a.getPrecision().price,m=o.indicator.lastValueMark;g=m.show&&m.text.show?Math.max(p,f):f}else g=p;var y=T(this.getExtremum().max,g);v&&(y=s.formatBigNumber(y)),h+=c.horizontal.text.paddingLeft+c.horizontal.text.paddingRight+2*c.horizontal.text.borderSize+j(y,c.horizontal.text.size,c.horizontal.text.weight,c.horizontal.text.family)}return Math.max(l,h)},i.prototype.convertFromPixel=function(e){var i,o,n,r=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,a=this.getExtremum(),s=a.min,l=a.range,u=(this.isReverse()?e/r:1-e/r)*l+s;switch(this.getType()){case t.YAxisType.Percentage:var c=null===(n=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===n?void 0:n.data;return void 0!==(null==c?void 0:c.close)?c.close*u/100+c.close:0;case t.YAxisType.Log:return q(u);default:return u}},i.prototype.convertToRealValue=function(e){var i=e;return this.getType()===t.YAxisType.Log&&(i=q(e)),i},i.prototype.convertToPixel=function(e){var i,o=e;switch(this.getType()){case t.YAxisType.Percentage:var n=null===(i=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===i?void 0:i.data;void 0!==(null==n?void 0:n.close)&&(o=(e-n.close)/n.close*100);break;case t.YAxisType.Log:o=U(e);break;default:o=e}return this._innerConvertToPixel(o)},i.prototype.convertToNicePixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.convertToPixel(t);return Math.round(Math.max(.05*o,Math.min(n,.98*o)))},i}(Ze),Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"indicator\\"},e.prototype.createAxisComponent=function(){return new Ge(this)},e.prototype.createMainWidget=function(t){return new Ae(t,this)},e.prototype.createSeparatorWidget=function(t){return new Zt(t,this)},e.prototype.createYAxisWidget=function(t){return new je(t,this)},e}(Ut),Ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"candle\\"},e.prototype.createMainWidget=function(t){return new Ve(t,this)},e.prototype.createSeparatorWidget=function(){return null},e}(Ke),qe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.xAxis},e.prototype.createAxisLine=function(t,e){var i=e.axisLine.size/2;return{coordinates:[{x:0,y:i},{x:t.width,y:i}]}},e.prototype.createTickLines=function(t,e,i){var o=i.tickLine,n=i.axisLine.size;return t.map((function(t){return{coordinates:[{x:t.coord,y:0},{x:t.coord,y:n+o.length}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=i.tickText,n=i.axisLine.size,r=i.tickLine.length;return t.map((function(t){return{x:t.coord,y:n+r+o.marginStart,text:t.text,align:\\"center\\",baseline:\\"top\\"}}))},e}(Ne),$e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.coordinateToPointValueFlag=function(){return!1},i.prototype.getCompleteOverlays=function(t){return t.getInstances()},i.prototype.getProgressOverlay=function(t){return t.instance},i.prototype.getDefaultFigures=function(e,i,o,n,r,a,s,l,u,c){var h,d=[];if(e.needDefaultXAxisFigure&&e.id===(null===(h=c.instance)||void 0===h?void 0:h.id)){var p=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER;i.forEach((function(i,o){p=Math.min(p,i.x),v=Math.max(v,i.x);var n=e.points[o];if(void 0!==n.timestamp){var s=a.formatDate(r,n.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair);d.push({type:\\"text\\",attrs:{x:i.x,y:0,text:s,align:\\"center\\"},ignoreEvent:!0})}})),i.length>1&&d.unshift({type:\\"rect\\",attrs:{x:p,y:0,width:v-p,height:o.height},ignoreEvent:!0})}return d},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createXAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i}(Xe),Je=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.compare=function(t){return void 0!==t.kLineData&&t.dataIndex===t.realDataIndex},i.prototype.getDirectionStyles=function(t){return t.vertical},i.prototype.getText=function(e,i){var o,n=null===(o=e.kLineData)||void 0===o?void 0:o.timestamp;return i.getCustomApi().formatDate(i.getTimeScaleStore().getDateTimeFormat(),n,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair)},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s=i.realX,l=\\"center\\";return 0>s-e/2-r.paddingLeft?(a=0,l=\\"left\\"):s+e/2+r.paddingRight>o.width?(a=o.width,l=\\"right\\"):a=s,{x:a,y:0,text:t,align:l,baseline:\\"top\\"}},i}(He),Qe=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._xAxisView=new qe(o),o._overlayXAxisView=new $e(o),o._crosshairVerticalLabelView=new Je(o),o.getContainer().style.cursor=\\"ew-resize\\",o.addChild(o._overlayXAxisView),o}return P(e,t),e.prototype.getName=function(){return Yt},e.prototype.updateMain=function(t){this._xAxisView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayXAxisView.draw(t),this._crosshairVerticalLabelView.draw(t)},e}(ne),ti=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var t=this.getParent().getChart().getChartStore().getTimeScaleStore().getVisibleRange(),e=t.from,i=t.to,o=i-1,n=i-e;return{min:e,max:o,range:n,realMin:e,realMax:o,realRange:n}},i.prototype.optimalTicks=function(e){var i,o,n=this.getParent().getChart(),r=n.getChartStore(),a=r.getCustomApi().formatDate,s=[],l=e.length,u=r.getDataList();if(l>0){var c=r.getTimeScaleStore().getDateTimeFormat(),h=n.getStyles().xAxis.tickText,d=j(\\"00-00 00:00\\",h.size,h.weight,h.family),p=this.convertToPixel(parseInt(e[0].value,10)),v=1;if(l>1){var g=this.convertToPixel(parseInt(e[1].value,10)),f=Math.abs(g-p);d>f&&(v=Math.ceil(d/f))}for(var m=0;l>m;m+=v){var y=parseInt(e[m].value,10),_=u[y].timestamp,x=a(c,_,\\"HH:mm\\",t.FormatDateType.XAxis);if(0!==m)x=null!==(i=this._optimalTickLabel(a,c,_,u[parseInt(e[m-v].value,10)].timestamp))&&void 0!==i?i:x;var S=this.convertToPixel(y);s.push({text:x,coord:S,value:_})}if(1===s.length)s[0].text=a(c,s[0].value,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.XAxis);else{var C=s[0].value,b=s[1].value;if(void 0!==s[2]){var T=s[2].text;/^[0-9]{2}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"MM-DD\\",t.FormatDateType.XAxis):/^[0-9]{4}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"YYYY-MM\\",t.FormatDateType.XAxis):/^[0-9]{4}$/.test(T)&&(s[0].text=a(c,C,\\"YYYY\\",t.FormatDateType.XAxis))}else s[0].text=null!==(o=this._optimalTickLabel(a,c,C,b))&&void 0!==o?o:s[0].text}}return s},i.prototype._optimalTickLabel=function(e,i,o,n){var r=e(i,o,\\"YYYY\\",t.FormatDateType.XAxis),a=e(i,o,\\"YYYY-MM\\",t.FormatDateType.XAxis),s=e(i,o,\\"MM-DD\\",t.FormatDateType.XAxis);return r!==e(i,n,\\"YYYY\\",t.FormatDateType.XAxis)?r:a!==e(i,n,\\"YYYY-MM\\",t.FormatDateType.XAxis)?a:s!==e(i,n,\\"MM-DD\\",t.FormatDateType.XAxis)?s:null},i.prototype.getAutoSize=function(){var t=this.getParent().getChart().getStyles(),e=t.xAxis,i=e.size;if(\\"auto\\"!==i)return i;var o=t.crosshair,n=0;e.show&&(e.axisLine.show&&(n+=e.axisLine.size),e.tickLine.show&&(n+=e.tickLine.length),e.tickText.show&&(n+=e.tickText.marginStart+e.tickText.marginEnd+e.tickText.size));var r=0;return o.show&&o.vertical.show&&o.vertical.text.show&&(r+=o.vertical.text.paddingTop+o.vertical.text.paddingBottom+2*o.vertical.text.borderSize+o.vertical.text.size),Math.max(n,r)},i.prototype.convertTimestampFromPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.coordinateToDataIndex(t);return e.dataIndexToTimestamp(i)},i.prototype.convertTimestampToPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.timestampToDataIndex(t);return e.dataIndexToCoordinate(i)},i.prototype.convertFromPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().coordinateToDataIndex(t)},i.prototype.convertToPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().dataIndexToCoordinate(t)},i}(Ze),ei=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"xAxis\\"},e.prototype.createAxisComponent=function(){return new ti(this)},e.prototype.createMainWidget=function(t){return new Qe(t,this)},e}(Ut);function ii(){var t;return\\"undefined\\"!=typeof window&&(null!==(t=window.navigator.userAgent.toLowerCase().indexOf(\\"firefox\\"))&&void 0!==t?t:-1)>-1}function oi(){return\\"undefined\\"!=typeof window&&/iPhone|iPad|iPod/.test(window.navigator.platform)}var ni,ri=function(){function t(t,e,i){var o=this;this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0},this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0},this._longTapTimeoutId=null,this._longTapActive=!1,this._mouseMoveStartCoordinate=null,this._touchMoveStartCoordinate=null,this._touchMoveExceededManhattanDistance=!1,this._cancelClick=!1,this._cancelTap=!1,this._unsubscribeOutsideMouseEvents=null,this._unsubscribeOutsideTouchEvents=null,this._unsubscribeMobileSafariEvents=null,this._unsubscribeMousemove=null,this._unsubscribeMouseWheel=null,this._unsubscribeContextMenu=null,this._unsubscribeRootMouseEvents=null,this._unsubscribeRootTouchEvents=null,this._startPinchMiddleCoordinate=null,this._startPinchDistance=0,this._pinchPrevented=!1,this._preventTouchDragProcess=!1,this._mousePressed=!1,this._lastTouchEventTimeStamp=0,this._activeTouchId=null,this._acceptMouseLeave=!oi(),this._onFirefoxOutsideMouseUp=function(t){o._mouseUpHandler(t)},this._onMobileSafariDoubleClick=function(t){o._firesTouchEvents(t)?(++o._tapCount,null!==o._tapTimeoutId&&o._tapCount>1&&(30>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._tapCoordinate).manhattanDistance&&!o._cancelTap&&o._processEvent(o._makeCompatEvent(t),o._handler.doubleTapEvent),o._resetTapTimeout())):(++o._clickCount,null!==o._clickTimeoutId&&o._clickCount>1&&(5>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._clickCoordinate).manhattanDistance&&!o._cancelClick&&o._processEvent(o._makeCompatEvent(t),o._handler.mouseDoubleClickEvent),o._resetClickTimeout()))},this._target=t,this._handler=e,this._options=i,this._init()}return t.prototype.destroy=function(){null!==this._unsubscribeOutsideMouseEvents&&(this._unsubscribeOutsideMouseEvents(),this._unsubscribeOutsideMouseEvents=null),null!==this._unsubscribeOutsideTouchEvents&&(this._unsubscribeOutsideTouchEvents(),this._unsubscribeOutsideTouchEvents=null),null!==this._unsubscribeMousemove&&(this._unsubscribeMousemove(),this._unsubscribeMousemove=null),null!==this._unsubscribeMouseWheel&&(this._unsubscribeMouseWheel(),this._unsubscribeMouseWheel=null),null!==this._unsubscribeContextMenu&&(this._unsubscribeContextMenu(),this._unsubscribeContextMenu=null),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null),null!==this._unsubscribeMobileSafariEvents&&(this._unsubscribeMobileSafariEvents(),this._unsubscribeMobileSafariEvents=null),this._clearLongTapTimeout(),this._resetClickTimeout()},t.prototype._mouseEnterHandler=function(t){var e,i,o,n=this;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this);var r=this._mouseMoveHandler.bind(this);this._unsubscribeMousemove=function(){n._target.removeEventListener(\\"mousemove\\",r)},this._target.addEventListener(\\"mousemove\\",r);var a=this._mouseWheelHandler.bind(this);this._unsubscribeMouseWheel=function(){n._target.removeEventListener(\\"wheel\\",a)},this._target.addEventListener(\\"wheel\\",a,{passive:!1});var s=this._contextMenuHandler.bind(this);this._unsubscribeContextMenu=function(){n._target.removeEventListener(\\"contextmenu\\",s)},this._target.addEventListener(\\"contextmenu\\",s,{passive:!1}),this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseEnterEvent),this._acceptMouseLeave=!0)},t.prototype._resetClickTimeout=function(){null!==this._clickTimeoutId&&clearTimeout(this._clickTimeoutId),this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0}},t.prototype._resetTapTimeout=function(){null!==this._tapTimeoutId&&clearTimeout(this._tapTimeoutId),this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0}},t.prototype._mouseMoveHandler=function(t){this._mousePressed||null!==this._touchMoveStartCoordinate||this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseMoveEvent),this._acceptMouseLeave=!0)},t.prototype._mouseWheelHandler=function(t){if(Math.abs(t.deltaX)>Math.abs(t.deltaY)){if(void 0===this._handler.mouseWheelHortEvent)return;if(this._preventDefault(t),0===Math.abs(t.deltaX))return;this._handler.mouseWheelHortEvent(this._makeCompatEvent(t),-t.deltaX)}else{if(void 0===this._handler.mouseWheelVertEvent)return;var e=-t.deltaY/100;if(0===e)return;switch(this._preventDefault(t),t.deltaMode){case t.DOM_DELTA_PAGE:e*=120;break;case t.DOM_DELTA_LINE:e*=32}if(0!==e){var i=Math.sign(e)*Math.min(1,Math.abs(e));this._handler.mouseWheelVertEvent(this._makeCompatEvent(t),i)}}},t.prototype._contextMenuHandler=function(t){this._preventDefault(t)},t.prototype._touchMoveHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null!==e&&(this._lastTouchEventTimeStamp=this._eventTimeStamp(t),null===this._startPinchMiddleCoordinate&&!this._preventTouchDragProcess)){this._pinchPrevented=!0;var i=this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._touchMoveStartCoordinate),o=i.yOffset;if(this._touchMoveExceededManhattanDistance||i.manhattanDistance>=5){if(!this._touchMoveExceededManhattanDistance){var n=.5*i.xOffset,r=o>=n&&!this._options.treatVertDragAsPageScroll(),a=n>o&&!this._options.treatHorzDragAsPageScroll();r||a||(this._preventTouchDragProcess=!0),this._touchMoveExceededManhattanDistance=!0,this._cancelTap=!0,this._clearLongTapTimeout(),this._resetTapTimeout()}this._preventTouchDragProcess||this._processEvent(this._makeCompatEvent(t,e),this._handler.touchMoveEvent)}}},t.prototype._mouseMoveWithDownHandler=function(t){0===t.button&&(5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._mouseMoveStartCoordinate).manhattanDistance||(this._cancelClick=!0,this._resetClickTimeout()),this._cancelClick&&this._processEvent(this._makeCompatEvent(t),this._handler.pressedMouseMoveEvent))},t.prototype._mouseTouchMoveWithDownInfo=function(t,e){var i=Math.abs(e.x-t.x),o=Math.abs(e.y-t.y);return{xOffset:i,yOffset:o,manhattanDistance:i+o}},t.prototype._touchEndHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null===e&&0===t.touches.length&&(e=t.changedTouches[0]),null!==e){this._activeTouchId=null,this._lastTouchEventTimeStamp=this._eventTimeStamp(t),this._clearLongTapTimeout(),this._touchMoveStartCoordinate=null,null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var i=this._makeCompatEvent(t,e);if(this._processEvent(i,this._handler.touchEndEvent),++this._tapCount,null!==this._tapTimeoutId&&this._tapCount>1)30>this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._tapCoordinate).manhattanDistance&&!this._cancelTap&&this._processEvent(i,this._handler.doubleTapEvent),this._resetTapTimeout();else this._cancelTap||(this._processEvent(i,this._handler.tapEvent),void 0!==this._handler.tapEvent&&this._preventDefault(t));0===this._tapCount&&this._preventDefault(t),0===t.touches.length&&this._longTapActive&&(this._longTapActive=!1,this._preventDefault(t))}},t.prototype._mouseUpHandler=function(t){if(0===t.button){var e=this._makeCompatEvent(t);if(this._mouseMoveStartCoordinate=null,this._mousePressed=!1,null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),ii())this._target.ownerDocument.documentElement.removeEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp);if(!this._firesTouchEvents(t))if(this._processEvent(e,this._handler.mouseUpEvent),++this._clickCount,null!==this._clickTimeoutId&&this._clickCount>1)5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._clickCoordinate).manhattanDistance&&!this._cancelClick&&this._processEvent(e,this._handler.mouseDoubleClickEvent),this._resetClickTimeout();else this._cancelClick||this._processEvent(e,this._handler.mouseClickEvent)}},t.prototype._clearLongTapTimeout=function(){null!==this._longTapTimeoutId&&(clearTimeout(this._longTapTimeoutId),this._longTapTimeoutId=null)},t.prototype._touchStartHandler=function(t){if(null===this._activeTouchId){var e=t.changedTouches[0];this._activeTouchId=e.identifier,this._lastTouchEventTimeStamp=this._eventTimeStamp(t);var i=this._target.ownerDocument.documentElement;this._cancelTap=!1,this._touchMoveExceededManhattanDistance=!1,this._preventTouchDragProcess=!1,this._touchMoveStartCoordinate=this._getCoordinate(e),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var o=this._touchMoveHandler.bind(this),n=this._touchEndHandler.bind(this);this._unsubscribeRootTouchEvents=function(){i.removeEventListener(\\"touchmove\\",o),i.removeEventListener(\\"touchend\\",n)},i.addEventListener(\\"touchmove\\",o,{passive:!1}),i.addEventListener(\\"touchend\\",n,{passive:!1}),this._clearLongTapTimeout(),this._longTapTimeoutId=setTimeout(this._longTapHandler.bind(this,t),500),this._processEvent(this._makeCompatEvent(t,e),this._handler.touchStartEvent),null===this._tapTimeoutId&&(this._tapCount=0,this._tapTimeoutId=setTimeout(this._resetTapTimeout.bind(this),500),this._tapCoordinate=this._getCoordinate(e))}},t.prototype._mouseDownHandler=function(t){if(2===t.button)return this._preventDefault(t),void this._processEvent(this._makeCompatEvent(t),this._handler.mouseRightClickEvent);if(0===t.button){var e=this._target.ownerDocument.documentElement;ii()&&e.addEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp),this._cancelClick=!1,this._mouseMoveStartCoordinate=this._getCoordinate(t),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null);var i=this._mouseMoveWithDownHandler.bind(this),o=this._mouseUpHandler.bind(this);this._unsubscribeRootMouseEvents=function(){e.removeEventListener(\\"mousemove\\",i),e.removeEventListener(\\"mouseup\\",o)},e.addEventListener(\\"mousemove\\",i),e.addEventListener(\\"mouseup\\",o),this._mousePressed=!0,this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseDownEvent),null===this._clickTimeoutId&&(this._clickCount=0,this._clickTimeoutId=setTimeout(this._resetClickTimeout.bind(this),500),this._clickCoordinate=this._getCoordinate(t)))}},t.prototype._init=function(){var t=this;this._target.addEventListener(\\"mouseenter\\",this._mouseEnterHandler.bind(this)),this._target.addEventListener(\\"touchcancel\\",this._clearLongTapTimeout.bind(this));var e=this._target.ownerDocument,i=function(e){null!=t._handler.mouseDownOutsideEvent&&(e.composed&&t._target.contains(e.composedPath()[0])||null!==e.target&&t._target.contains(e.target)||t._handler.mouseDownOutsideEvent({x:0,y:0,pageX:0,pageY:0}))};this._unsubscribeOutsideTouchEvents=function(){e.removeEventListener(\\"touchstart\\",i)},this._unsubscribeOutsideMouseEvents=function(){e.removeEventListener(\\"mousedown\\",i)},e.addEventListener(\\"mousedown\\",i),e.addEventListener(\\"touchstart\\",i,{passive:!0}),oi()&&(this._unsubscribeMobileSafariEvents=function(){t._target.removeEventListener(\\"dblclick\\",t._onMobileSafariDoubleClick)},this._target.addEventListener(\\"dblclick\\",this._onMobileSafariDoubleClick)),this._target.addEventListener(\\"mouseleave\\",this._mouseLeaveHandler.bind(this)),this._target.addEventListener(\\"touchstart\\",this._touchStartHandler.bind(this),{passive:!0}),this._target.addEventListener(\\"mousedown\\",(function(t){if(1===t.button)return t.preventDefault(),!1})),this._target.addEventListener(\\"mousedown\\",this._mouseDownHandler.bind(this)),this._initPinch(),this._target.addEventListener(\\"touchmove\\",(function(){}),{passive:!1})},t.prototype._initPinch=function(){var t=this;void 0===this._handler.pinchStartEvent&&void 0===this._handler.pinchEvent&&void 0===this._handler.pinchEndEvent||(this._target.addEventListener(\\"touchstart\\",(function(e){return t._checkPinchState(e.touches)}),{passive:!0}),this._target.addEventListener(\\"touchmove\\",(function(e){if(2===e.touches.length&&null!==t._startPinchMiddleCoordinate&&void 0!==t._handler.pinchEvent){var i=t._getTouchDistance(e.touches[0],e.touches[1])/t._startPinchDistance;t._handler.pinchEvent(k(k({},t._startPinchMiddleCoordinate),{pageX:0,pageY:0}),i),t._preventDefault(e)}}),{passive:!1}),this._target.addEventListener(\\"touchend\\",(function(e){t._checkPinchState(e.touches)})))},t.prototype._checkPinchState=function(t){1===t.length&&(this._pinchPrevented=!1),2!==t.length||this._pinchPrevented||this._longTapActive?this._stopPinch():this._startPinch(t)},t.prototype._startPinch=function(t){var e,i=null!==(e=this._target.getBoundingClientRect())&&void 0!==e?e:{left:0,top:0};this._startPinchMiddleCoordinate={x:(t[0].clientX-i.left+(t[1].clientX-i.left))/2,y:(t[0].clientY-i.top+(t[1].clientY-i.top))/2},this._startPinchDistance=this._getTouchDistance(t[0],t[1]),void 0!==this._handler.pinchStartEvent&&this._handler.pinchStartEvent({x:0,y:0,pageX:0,pageY:0}),this._clearLongTapTimeout()},t.prototype._stopPinch=function(){null!==this._startPinchMiddleCoordinate&&(this._startPinchMiddleCoordinate=null,void 0!==this._handler.pinchEndEvent&&this._handler.pinchEndEvent({x:0,y:0,pageX:0,pageY:0}))},t.prototype._mouseLeaveHandler=function(t){var e,i,o;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this),this._firesTouchEvents(t)||this._acceptMouseLeave&&(this._processEvent(this._makeCompatEvent(t),this._handler.mouseLeaveEvent),this._acceptMouseLeave=!oi())},t.prototype._longTapHandler=function(t){var e=this._touchWithId(t.touches,this._activeTouchId);null!==e&&(this._processEvent(this._makeCompatEvent(t,e),this._handler.longTapEvent),this._cancelTap=!0,this._longTapActive=!0)},t.prototype._firesTouchEvents=function(t){var e;return void 0!==(null===(e=t.sourceCapabilities)||void 0===e?void 0:e.firesTouchEvents)?t.sourceCapabilities.firesTouchEvents:this._eventTimeStamp(t)i;++i)if(t[i].identifier===e)return t[i];return null},t}(),ai=function(){function t(t,e){var i=this;this._flingStartTime=(new Date).getTime(),this._flingScrollRequestId=null,this._startScrollCoordinate=null,this._touchCoordinate=null,this._touchCancelCrosshair=!1,this._touchZoomed=!1,this._pinchScale=1,this._mouseDownWidget=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,this._mouseMoveTriggerWidgetInfo={pane:null,widget:null},this._boundKeyBoardDownEvent=function(t){if(t.shiftKey)switch(t.code){case\\"Equal\\":i._chart.getChartStore().getTimeScaleStore().zoom(.5);break;case\\"Minus\\":i._chart.getChartStore().getTimeScaleStore().zoom(-.5);break;case\\"ArrowLeft\\":(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(-3*e.getBarSpace().bar);break;case\\"ArrowRight\\":var e;(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(3*e.getBarSpace().bar)}},this._container=t,this._chart=e,this._event=new ri(t,this,{treatVertDragAsPageScroll:function(){return!1},treatHorzDragAsPageScroll:function(){return!1}}),t.addEventListener(\\"keydown\\",this._boundKeyBoardDownEvent)}return t.prototype.pinchStartEvent=function(){return this._touchZoomed=!0,this._pinchScale=1,!0},t.prototype.pinchEvent=function(t,e){var i=this._findWidgetByEvent(t),o=i.pane,n=i.widget;if((null==o?void 0:o.getId())!==Kt.XAXIS&&(null==n?void 0:n.getName())===zt){var r=this._makeWidgetEvent(t,n),a=5*(e-this._pinchScale);return this._pinchScale=e,this._chart.getChartStore().getTimeScaleStore().zoom(a,{x:r.x,y:r.y}),!0}return!1},t.prototype.mouseWheelHortEvent=function(t,e){var i=this._chart.getChartStore().getTimeScaleStore();return i.startScroll(),i.scroll(e),!0},t.prototype.mouseWheelVertEvent=function(t,e){var i,o,n=this._findWidgetByEvent(t).widget,r=null!==(i=t.isTouch)&&void 0!==i&&i,a=this._makeWidgetEvent(t,n),s=null,l=null==n?void 0:n.getName();if(r)if(l===zt||l===Yt)s={x:a.x,y:a.y};else{var u=null===(o=this._chart.getPaneById(Kt.CANDLE))||void 0===o?void 0:o.getBounding();s={x:u.width/2,y:u.height/2}}else l===zt&&(s={x:a.x,y:a.y});return null!==s&&(this._chart.getChartStore().getTimeScaleStore().zoom(e,{x:a.x,y:a.y}),!0)},t.prototype.mouseDownEvent=function(t){var e,i,o=this._findWidgetByEvent(t),n=o.pane,r=o.widget;if(this._mouseDownWidget=r,null!==r){var a=this._makeWidgetEvent(t,r);switch(r.getName()){case Ht:return r.dispatchEvent(\\"mouseDownEvent\\",a);case zt:var s=null!==(e=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==e?e:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._startScrollCoordinate={x:a.x,y:a.y},this._chart.getChartStore().getTimeScaleStore().startScroll(),r.dispatchEvent(\\"mouseDownEvent\\",a);case Yt:return(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1),this._xAxisStartScaleCoordinate={x:a.x,y:a.y},this._xAxisStartScaleDistance=a.pageX,l;case Xt:var l;(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1);s=null!==(i=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==i?i:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._yAxisStartScaleDistance=a.pageY,l}}return!1},t.prototype.mouseMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget,s=this._makeWidgetEvent(t,a);if((null===(e=this._mouseMoveTriggerWidgetInfo.pane)||void 0===e?void 0:e.getId())===(null==r?void 0:r.getId())&&(null===(i=this._mouseMoveTriggerWidgetInfo.widget)||void 0===i?void 0:i.getName())===(null==a?void 0:a.getName())||(null==a||a.dispatchEvent(\\"mouseEnterEvent\\",s),null===(o=this._mouseMoveTriggerWidgetInfo.widget)||void 0===o||o.dispatchEvent(\\"mouseLeaveEvent\\",s),this._mouseMoveTriggerWidgetInfo={pane:r,widget:a}),null!==a)switch(a.getName()){case zt:var l=a.dispatchEvent(\\"mouseMoveEvent\\",s),u=this._chart.getChartStore(),c={x:s.x,y:s.y,paneId:null==r?void 0:r.getId()};return l&&null!==u.getTooltipStore().getActiveIcon()&&(c=void 0,null!==a&&(a.getContainer().style.cursor=\\"pointer\\")),this._chart.getChartStore().getTooltipStore().setCrosshair(c),l;case Ht:case Yt:case Xt:l=a.dispatchEvent(\\"mouseMoveEvent\\",s);return this._chart.getChartStore().getTooltipStore().setCrosshair(),l}return!1},t.prototype.pressedMouseMoveEvent=function(t){var e,i,o,n,r;if(null!==this._mouseDownWidget&&this._mouseDownWidget.getName()===Ht)return this._mouseDownWidget.dispatchEvent(\\"pressedMouseMoveEvent\\",t);var a=this._findWidgetByEvent(t),s=a.pane,l=a.widget;if(null!==l&&(null===(e=this._mouseDownWidget)||void 0===e?void 0:e.getPane().getId())===(null==s?void 0:s.getId())&&(null===(i=this._mouseDownWidget)||void 0===i?void 0:i.getName())===l.getName()){var u=this._makeWidgetEvent(t,l);switch(l.getName()){case zt:var c=l.getBounding();if(!(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))&&null!==this._startScrollCoordinate){var h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&!h.getAutoCalcTickFlag()&&h.getScrollZoomEnabled()){var d=this._prevYAxisExtremum,p=d.min,v=d.max+(b=(S=d.range)*(C=(null!==(o=null==h?void 0:h.isReverse())&&void 0!==o&&o?this._startScrollCoordinate.y-u.y:u.y-this._startScrollCoordinate.y)/c.height)),g=h.convertToRealValue(E=p+b),f=h.convertToRealValue(v);h.setExtremum({min:E,max:v,range:v-E,realMin:g,realMax:f,realRange:f-g})}var m=u.x-this._startScrollCoordinate.x;this._chart.getChartStore().getTimeScaleStore().scroll(m)}return this._chart.getChartStore().getTooltipStore().setCrosshair({x:u.x,y:u.y,paneId:null==s?void 0:s.getId()}),x;case Yt:if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{var y=null==s?void 0:s.getAxisComponent();if(null===(n=null==y?void 0:y.getScrollZoomEnabled())||void 0===n||n){var _=10*((C=this._xAxisStartScaleDistance/u.pageX)-this._xAxisScale);this._xAxisScale=C,this._chart.getChartStore().getTimeScaleStore().zoom(_,null!==(r=this._xAxisStartScaleCoordinate)&&void 0!==r?r:void 0)}}return x;case Xt:var x;if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&h.getScrollZoomEnabled()){var S,C,b,T=this._prevYAxisExtremum,w=(S=T.range)*(C=u.pageY/this._yAxisStartScaleDistance),E=(p=T.min)-(b=(w-S)/2),I=(v=T.max+b,null==s?void 0:s.getAxisComponent());g=I.convertToRealValue(E),f=I.convertToRealValue(v);I.setExtremum({min:E,max:v,range:w,realMin:g,realMax:f,realRange:f-g}),this._chart.adjustPaneViewport(!1,!0,!0,!0)}}return x}}return!1},t.prototype.mouseUpEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Ht:case Yt:case Xt:i=e.dispatchEvent(\\"mouseUpEvent\\",o)}i&&this._chart.updatePane(1)}return this._mouseDownWidget=null,this._startScrollCoordinate=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,i},t.prototype.mouseClickEvent=function(t){var e=this._findWidgetByEvent(t).widget;if(null!==e){var i=this._makeWidgetEvent(t,e);return e.dispatchEvent(\\"mouseClickEvent\\",i)}return!1},t.prototype.mouseRightClickEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Yt:case Xt:i=e.dispatchEvent(\\"mouseRightClickEvent\\",o)}i&&this._chart.updatePane(1)}return!1},t.prototype.mouseDoubleClickEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o)switch(o.getName()){case zt:var n=this._makeWidgetEvent(t,o);return o.dispatchEvent(\\"mouseDoubleClickEvent\\",n);case Xt:var r=null==i?void 0:i.getAxisComponent();if(!r.getAutoCalcTickFlag())return r.setAutoCalcTickFlag(!0),this._chart.adjustPaneViewport(!1,!0,!0,!0),!0}return!1},t.prototype.mouseLeaveEvent=function(){return this._chart.getChartStore().getTooltipStore().setCrosshair(),!0},t.prototype.touchStartEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o){var n=this._makeWidgetEvent(t,o);switch(o.getName()){case zt:var r=this._chart.getChartStore(),a=r.getTooltipStore();if(o.dispatchEvent(\\"mouseDownEvent\\",n))return this._touchCancelCrosshair=!0,this._touchCoordinate=null,a.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._flingScrollRequestId&&(ie(this._flingScrollRequestId),this._flingScrollRequestId=null),this._flingStartTime=(new Date).getTime(),this._startScrollCoordinate={x:n.x,y:n.y},r.getTimeScaleStore().startScroll(),this._touchZoomed=!1,null!==this._touchCoordinate){var s=n.x-this._touchCoordinate.x,l=n.y-this._touchCoordinate.y;10>Math.sqrt(s*s+l*l)?(this._touchCoordinate={x:n.x,y:n.y},a.setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()})):(this._touchCoordinate=null,this._touchCancelCrosshair=!0,a.setCrosshair())}return!0;case Yt:case Xt:var u=o.dispatchEvent(\\"mouseDownEvent\\",n);return u&&this._chart.updatePane(1),u}}return!1},t.prototype.touchMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget;if(null!==a){var s=this._makeWidgetEvent(t,a),l=a.getName(),u=this._chart.getChartStore(),c=u.getTooltipStore();switch(l){case zt:if(a.dispatchEvent(\\"pressedMouseMoveEvent\\",s))return null===(e=s.preventDefault)||void 0===e||e.call(s),c.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._touchCoordinate)null===(i=s.preventDefault)||void 0===i||i.call(s),c.setCrosshair({x:s.x,y:s.y,paneId:null==r?void 0:r.getId()});else if(null!==this._startScrollCoordinate&&Math.abs(this._startScrollCoordinate.x-s.x)>this._startScrollCoordinate.y-s.y){var h=s.x-this._startScrollCoordinate.x;u.getTimeScaleStore().scroll(h)}return!0;case Yt:case Xt:var d=a.dispatchEvent(\\"pressedMouseMoveEvent\\",s);return d&&(null===(o=s.preventDefault)||void 0===o||o.call(s),this._chart.updatePane(1)),d}}return!1},t.prototype.touchEndEvent=function(t){var e=this,i=this._findWidgetByEvent(t).widget;if(null!==i){var o=this._makeWidgetEvent(t,i);switch(i.getName()){case zt:if(i.dispatchEvent(\\"mouseUpEvent\\",o),null!==this._startScrollCoordinate){var n=(new Date).getTime()-this._flingStartTime,r=(o.x-this._startScrollCoordinate.x)/(n>0?n:1)*20;if(200>n&&Math.abs(r)>0){var a=this._chart.getChartStore().getTimeScaleStore(),s=function(){e._flingScrollRequestId=ee((function(){a.startScroll(),a.scroll(r),1>Math.abs(r*=.975)?null!==e._flingScrollRequestId&&(ie(e._flingScrollRequestId),e._flingScrollRequestId=null):s()}))};s()}}return!0;case Yt:case Xt:i.dispatchEvent(\\"mouseUpEvent\\",o)&&this._chart.updatePane(1)}}return!1},t.prototype.tapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget,n=!1;if(null!==o){var r=this._makeWidgetEvent(t,o),a=o.dispatchEvent(\\"mouseClickEvent\\",r);if(o.getName()===zt){var s=this._makeWidgetEvent(t,o),l=this._chart.getChartStore().getTooltipStore();a?(this._touchCancelCrosshair=!0,this._touchCoordinate=null,l.setCrosshair(void 0,!0),n=!0):(this._touchCancelCrosshair||this._touchZoomed||(this._touchCoordinate={x:s.x,y:s.y},l.setCrosshair({x:s.x,y:s.y,paneId:null==i?void 0:i.getId()},!0),n=!0),this._touchCancelCrosshair=!1)}(n||a)&&this._chart.updatePane(1)}return n},t.prototype.doubleTapEvent=function(t){return this.mouseDoubleClickEvent(t)},t.prototype.longTapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o&&o.getName()===zt){var n=this._makeWidgetEvent(t,o);return this._touchCoordinate={x:n.x,y:n.y},this._chart.getChartStore().getTooltipStore().setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()}),!0}return!1},t.prototype._findWidgetByEvent=function(t){var e,i,o=this._chart.getAllPanes(),n=t.x,r=t.y,a=null;try{for(var s=L(o),l=s.next();!l.done;l=s.next()){var u=R(l.value,2)[1],c=u.getBounding();if(!(c.left>n||n>c.left+c.width||c.top>r||r>c.top+c.height)){a=u;break}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}null===a&&(a=this._chart.getPaneById(Kt.XAXIS));var h=null;if(null!==a){var d=a.getSeparatorWidget();if(null!==d){var p=d.getBounding();p.left>n||n>p.left+p.width||p.top>r||r>p.top+7||(h=d)}if(null===h){var v=a.getMainWidget(),g=v.getBounding();g.left>n||n>g.left+g.width||g.top>r||r>g.top+g.height||(h=v)}if(null===h){var f=a.getYAxisWidget();if(null!==f){var m=f.getBounding();m.left>n||n>m.left+m.width||m.top>r||r>m.top+m.height||(h=f)}}}return{pane:a,widget:h}},t.prototype._makeWidgetEvent=function(t,e){var i,o,n,r=null!==(i=null==e?void 0:e.getBounding())&&void 0!==i?i:null;return k(k({},t),{x:t.x-(null!==(o=null==r?void 0:r.left)&&void 0!==o?o:0),y:t.y-(null!==(n=null==r?void 0:r.top)&&void 0!==n?n:0)})},t.prototype.destroy=function(){this._container.removeEventListener(\\"keydown\\",this._boundKeyBoardDownEvent),this._event.destroy()},t}();t.DomPosition=void 0,(ni=t.DomPosition||(t.DomPosition={})).Root=\\"root\\",ni.Main=\\"main\\",ni.YAxis=\\"yAxis\\";var si=function(){function e(t,e){this._panes=new Map,this._initContainer(t),this._chartEvent=new ai(this._chartContainer,this),this._chartStore=new te(this,e),this._xAxisPane=new ei(this._chartContainer,this,Kt.XAXIS),this._panes.set(Kt.CANDLE,new Ue(this._chartContainer,this,Kt.CANDLE)),this.adjustPaneViewport(!0,!0,!0)}return e.prototype._initContainer=function(t){this._container=t,this._chartContainer=Y(\\"div\\",{position:\\"relative\\",width:\\"100%\\",outline:\\"none\\",borderStyle:\\"none\\",cursor:\\"crosshair\\",boxSizing:\\"border-box\\",userSelect:\\"none\\",webkitUserSelect:\\"none\\",msUserSelect:\\"none\\",MozUserSelect:\\"none\\",webkitTapHighlightColor:\\"transparent\\"}),this._chartContainer.tabIndex=1,t.appendChild(this._chartContainer)},e.prototype._measurePaneHeight=function(){var t,e=this._container.offsetHeight,i=this._xAxisPane.getAxisComponent().getAutoSize(),o=e-i;0>o&&(o=0);var n=0;this._panes.forEach((function(t){if(t.getId()!==Kt.CANDLE){var e=t.getBounding().height,i=t.getOptions().minHeight;i>e&&(e=i),n+e>o?e=Math.max(o-(n=o),0):n+=e,t.setBounding({height:e})}}));var r=o-n;null===(t=this._panes.get(Kt.CANDLE))||void 0===t||t.setBounding({height:r});var a=0;this._panes.forEach((function(t){t.setBounding({top:a}),a+=t.getBounding().height})),this._xAxisPane.setBounding({height:i,top:a})},e.prototype._measurePaneWidth=function(){var e=this._chartStore.getStyles().yAxis,i=e.position===t.YAxisPosition.Left,o=!e.inside,n=this._container.offsetWidth,r=0,a=Number.MIN_SAFE_INTEGER,s=0,l=0;this._panes.forEach((function(t){a=Math.max(a,t.getAxisComponent().getAutoSize())})),a>n&&(a=n),o?(r=n-a,i?(s=0,l=a):(s=n-a,l=0)):(r=n,l=0,s=i?0:n-a),this._chartStore.getTimeScaleStore().setTotalBarSpace(r);var u={width:n},c={width:r,left:l},h={width:a,left:s};this._panes.forEach((function(t){t.setBounding(u,c,h)})),this._xAxisPane.setBounding(u,c,h)},e.prototype._setPaneOptions=function(t,e){var i,o,n=this._panes.get(null!==(i=null==t?void 0:t.id)&&void 0!==i?i:\\"\\"),r=!1;if(void 0!==n){var a=e;if(t.id!==Kt.CANDLE&&void 0!==t.height&&t.height>0){var s=Math.max(null!==(o=t.minHeight)&&void 0!==o?o:n.getOptions().minHeight,0);n.setBounding({height:Math.max(s,t.height)}),a=!0,r=!0}n.setOptions(t),a&&this.adjustPaneViewport(r,!0,!0,!0,!0)}},e.prototype.getContainer=function(){return this._container},e.prototype.getChartStore=function(){return this._chartStore},e.prototype.getAllPanes=function(){return this._panes},e.prototype.adjustPaneViewport=function(t,e,i,o,n){t&&this._measurePaneHeight();var r=e,a=null!=n&&n;(null!=o&&o||a)&&this._panes.forEach((function(t){var e=t.getAxisComponent().buildTicks(a);r||(r=e)})),r&&this._measurePaneWidth(),null!=i&&i&&(this._xAxisPane.getAxisComponent().buildTicks(!0),this.updatePane(4))},e.prototype.updatePane=function(t,e){var i;void 0!==e?null===(i=this.getPaneById(e))||void 0===i||i.update(t):(this._xAxisPane.update(t),this._panes.forEach((function(e){e.update(t)})))},e.prototype.getPaneById=function(t){var e;return t===Kt.XAXIS?this._xAxisPane:null!==(e=this._panes.get(t))&&void 0!==e?e:null},e.prototype.crosshairChange=function(e){var i=this,o=this._chartStore.getActionStore();if(o.has(t.ActionType.OnCrosshairChange)){var n={};this._panes.forEach((function(t,o){var r={};i._chartStore.getIndicatorStore().getInstances(o).forEach((function(t){var i,o=t.result;r[t.name]=o[null!==(i=e.dataIndex)&&void 0!==i?i:o.length-1]})),n[o]=r})),void 0!==e.paneId&&o.execute(t.ActionType.OnCrosshairChange,k(k({},e),{indicatorData:n}))}},e.prototype.getDom=function(e,i){var o,n;if(void 0===e)return this._chartContainer;var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getContainer();case t.DomPosition.Main:return r.getMainWidget().getContainer();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getContainer())&&void 0!==n?n:null}return null},e.prototype.getSize=function(e,i){var o,n;if(void 0===e)return{width:this._chartContainer.offsetWidth,height:this._chartContainer.offsetHeight,left:0,top:0,right:0,bottom:0};var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getBounding();case t.DomPosition.Main:return r.getMainWidget().getBounding();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getBounding())&&void 0!==n?n:null}return null},e.prototype.setStyles=function(t){var e,i,o;this._chartStore.setOptions({styles:t}),void 0!==(null===(e=null==(o=u(t)?Qt(t):t)?void 0:o.yAxis)||void 0===e?void 0:e.type)&&(null===(i=this.getPaneById(Kt.CANDLE))||void 0===i||i.getAxisComponent().setAutoCalcTickFlag(!0)),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getStyles=function(){return this._chartStore.getStyles()},e.prototype.setLocale=function(t){this._chartStore.setOptions({locale:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getLocale=function(){return this._chartStore.getLocale()},e.prototype.setCustomApi=function(t){this._chartStore.setOptions({customApi:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.setPriceVolumePrecision=function(t,e){this._chartStore.setPrecision({price:t,volume:e})},e.prototype.getPriceVolumePrecision=function(){return this._chartStore.getPrecision()},e.prototype.setTimezone=function(t){this._chartStore.setOptions({timezone:t}),this._xAxisPane.getAxisComponent().buildTicks(!0),this._xAxisPane.update(3)},e.prototype.getTimezone=function(){return this._chartStore.getTimeScaleStore().getTimezone()},e.prototype.setOffsetRightDistance=function(t){this._chartStore.getTimeScaleStore().setOffsetRightDistance(t,!0)},e.prototype.getOffsetRightDistance=function(){return this._chartStore.getTimeScaleStore().getOffsetRightDistance()},e.prototype.setLeftMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setLeftMinVisibleBarCount(Math.ceil(t))},e.prototype.setRightMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setRightMinVisibleBarCount(Math.ceil(t))},e.prototype.setBarSpace=function(t){this._chartStore.getTimeScaleStore().setBarSpace(t)},e.prototype.getBarSpace=function(){return this._chartStore.getTimeScaleStore().getBarSpace().bar},e.prototype.getVisibleRange=function(){return this._chartStore.getTimeScaleStore().getVisibleRange()},e.prototype.clearData=function(){this._chartStore.clear()},e.prototype.getDataList=function(){return this._chartStore.getDataList()},e.prototype.applyNewData=function(t,e,i){this._chartStore.clear(),0===t.length?this.adjustPaneViewport(!1,!0,!0,!0):this.applyMoreData(t,e,i)},e.prototype.applyMoreData=function(t,e,i){var o=this;this._chartStore.addData(t,0,e),t.length>0&&this._chartStore.getIndicatorStore().calcInstance().then((function(t){o.adjustPaneViewport(!1,!0,!0,!0),null==i||i()})).catch((function(t){}))},e.prototype.updateData=function(t,e){var i=this,o=this._chartStore.getDataList(),n=o.length,r=t.timestamp,a=C(o[n-1],\\"timestamp\\",0);if(r>=a){var s=n;r===a&&(s=n-1),this._chartStore.addData(t,s),this._chartStore.getIndicatorStore().calcInstance().then((function(t){i.adjustPaneViewport(!1,!0,!0,!0),null==e||e()})).catch((function(t){}))}},e.prototype.loadMore=function(t){this._chartStore.getTimeScaleStore().setLoadMoreCallback(t)},e.prototype.createIndicator=function(t,e,i,o){var n,r,a,l=this,c=u(t)?{name:t}:t;if(null===pt(c.name))return null;if(s(i)&&u(null==i?void 0:i.id)&&this._panes.has(i.id))a=i.id,this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).then((function(t){var e,o;l._setPaneOptions(i,null!==(o=null===(e=l._panes.get(a))||void 0===e?void 0:e.getAxisComponent().buildTicks(!0))&&void 0!==o&&o)})).catch((function(t){}));else{a=null!==(n=null==i?void 0:i.id)&&void 0!==n?n:z(Kt.INDICATOR);var h=Array.from(this._panes.values()).pop(),d=new Ke(this._chartContainer,this,a,h);h.setBottomPane(d);var p=null!==(r=null==i?void 0:i.height)&&void 0!==r?r:100;d.setBounding({height:p}),s(i)&&d.setOptions(i),this._panes.set(a,d),this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).finally((function(){l.adjustPaneViewport(!0,!0,!0,!0,!0),null==o||o()}))}return a},e.prototype.overrideIndicator=function(t,e,i){var o=this;this._chartStore.getIndicatorStore().override(t,null!=e?e:null).then((function(t){var e=R(t,2),n=e[1];(e[0]||n)&&(o.adjustPaneViewport(!1,n,!0,n),null==i||i())})).catch((function(){}))},e.prototype.getIndicatorByPaneId=function(t,e){return this._chartStore.getIndicatorStore().getInstanceByPaneId(t,e)},e.prototype.removeIndicator=function(t,e){var i=this._chartStore.getIndicatorStore();if(i.removeInstance(t,e)){var o=!1;if(t!==Kt.CANDLE&&!i.hasInstances(t)){var n=this._panes.get(t);if(void 0!==n){o=!0;var r=n.getTopPane(),a=n.getBottomPane();null==a||a.setTopPane(r),null==r||r.setBottomPane(a),null==n||n.destroy(),this._panes.delete(t)}}this.adjustPaneViewport(o,!0,!0,!0,!0)}},e.prototype.createOverlay=function(t,e){var i=[];if(u(t))i=[{name:t}];else if(o(t))i=t.map((function(t){return u(t)?{name:t}:t}));else{i=[t]}var n=!0;void 0!==e&&null!==this.getPaneById(e)||(e=Kt.CANDLE,n=!1);var r=this._chartStore.getOverlayStore().addInstances(i,e,n);return o(t)?r:r[0]},e.prototype.getOverlayById=function(t){return this._chartStore.getOverlayStore().getInstanceById(t)},e.prototype.overrideOverlay=function(t){this._chartStore.getOverlayStore().override(t)},e.prototype.removeOverlay=function(t){var e;void 0!==t&&(e=u(t)?{id:t}:t),this._chartStore.getOverlayStore().removeInstance(e)},e.prototype.setPaneOptions=function(t){this._setPaneOptions(t,!1)},e.prototype.setZoomEnabled=function(t){this._chartStore.getTimeScaleStore().setZoomEnabled(t)},e.prototype.isZoomEnabled=function(){return this._chartStore.getTimeScaleStore().getZoomEnabled()},e.prototype.setScrollEnabled=function(t){this._chartStore.getTimeScaleStore().setScrollEnabled(t)},e.prototype.isScrollEnabled=function(){return this._chartStore.getTimeScaleStore().getScrollEnabled()},e.prototype.scrollByDistance=function(t,e){var i=void 0===e||0>e?0:e,o=this._chartStore.getTimeScaleStore();if(i>0){o.startScroll();var n=(new Date).getTime(),r=function(){var e=((new Date).getTime()-n)/i,a=e>=1;o.scroll(a?t:t*e),a||requestAnimationFrame(r)};r()}else o.startScroll(),o.scroll(t)},e.prototype.scrollToRealTime=function(t){var e=this._chartStore.getTimeScaleStore(),i=e.getBarSpace().bar,o=e.getOffsetRightBarCount()-e.getInitialOffsetRightDistance()/i;this.scrollByDistance(o*i,t)},e.prototype.scrollToDataIndex=function(t,e){var i=this._chartStore.getTimeScaleStore(),o=(i.getOffsetRightBarCount()+(this.getDataList().length-1-t))*i.getBarSpace().bar;this.scrollByDistance(o,e)},e.prototype.scrollToTimestamp=function(t,e){var i=Z(this.getDataList(),\\"timestamp\\",t);this.scrollToDataIndex(i,e)},e.prototype.zoomAtCoordinate=function(t,e,i){var o=void 0===i||0>i?0:i,n=this._chartStore.getTimeScaleStore();if(o>0){var r=n.getBarSpace().bar,a=r*t-r,s=(new Date).getTime(),l=function(){var t=((new Date).getTime()-s)/o,i=t>=1;n.zoom((i?a:a*t)/r,e),i||requestAnimationFrame(l)};l()}else n.zoom(t,e)},e.prototype.zoomAtDataIndex=function(t,e,i){var o=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(e);this.zoomAtCoordinate(t,{x:o,y:0},i)},e.prototype.zoomAtTimestamp=function(t,e,i){var o=Z(this.getDataList(),\\"timestamp\\",e);this.zoomAtDataIndex(t,o,i)},e.prototype.convertToPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e={},i=t.dataIndex;if(void 0!==t.timestamp&&(i=c.timestampToDataIndex(t.timestamp)),void 0!==i&&(e.x=null==p?void 0:p.convertToPixel(i)),void 0!==t.value){var o=null==v?void 0:v.convertToPixel(t.value);e.y=s?h.top+o:o}return e}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.convertFromPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e,i={};if(void 0!==t.x){var o=p.convertFromPixel(t.x);i.dataIndex=o,i.timestamp=null!==(e=c.dataIndexToTimestamp(o))&&void 0!==e?e:void 0}void 0!==t.y&&(i.value=v.convertFromPixel(s?t.y-h.top:t.y));return i}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.executeAction=function(e,i){var o;if(e===t.ActionType.OnCrosshairChange){var n=k({},i);n.paneId=null!==(o=n.paneId)&&void 0!==o?o:Kt.CANDLE,this._chartStore.getTooltipStore().setCrosshair(n)}},e.prototype.subscribeAction=function(t,e){this._chartStore.getActionStore().subscribe(t,e)},e.prototype.unsubscribeAction=function(t,e){this._chartStore.getActionStore().unsubscribe(t,e)},e.prototype.getConvertPictureUrl=function(t,e,i){var o=this._chartContainer.offsetWidth,n=this._chartContainer.offsetHeight,r=Y(\\"canvas\\",{width:\\"\\".concat(o,\\"px\\"),height:\\"\\".concat(n,\\"px\\"),boxSizing:\\"border-box\\"}),a=r.getContext(\\"2d\\"),s=X(r);r.width=o*s,r.height=n*s,a.scale(s,s),a.fillStyle=null!=i?i:\\"#FFFFFF\\",a.fillRect(0,0,o,n);var l=null!=t&&t;this._panes.forEach((function(t){var e=t.getBounding();a.drawImage(t.getImage(l),0,e.top,o,e.height)}));var u=this._xAxisPane.getBounding();return a.drawImage(this._xAxisPane.getImage(l),0,u.top,o,u.height),r.toDataURL(\\"image/\\".concat(null!=e?e:\\"jpeg\\"))},e.prototype.resize=function(){this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.destroy=function(){this._chartEvent.destroy(),this._panes.forEach((function(t){t.destroy()})),this._panes.clear(),this._xAxisPane.destroy(),this._container.removeChild(this._chartContainer)},e}(),li=new Map,ui=1;var ci={clone:i,merge:e,isString:u,isNumber:a,isValid:s,isObject:r,isArray:o,isFunction:n,isBoolean:l,formatValue:C,formatPrecision:T,formatBigNumber:w,formatDate:b,formatThousands:E,calcTextWidth:j,getLinearSlopeIntercept:kt,getLinearYFromSlopeIntercept:Pt,getLinearYFromCoordinates:Mt,checkCoordinateOnArc:xe,checkCoordinateOnCircle:re,checkCoordinateOnLine:Dt,checkCoordinateOnPolygon:le,checkCoordinateOnRect:de,checkCoordinateOnText:fe,drawArc:Se,drawCircle:ae,drawLine:At,drawPolygon:ue,drawRect:pe,drawText:me,drawRectText:_e};t.dispose=function(t){var e,i,o;if(t instanceof si)o=t.id;else{var n=void 0;o=null!==(e=null==(n=u(t)?document.getElementById(t):t)?void 0:n.getAttribute(\\"k-line-chart-id\\"))&&void 0!==e?e:null}null!==o&&(null===(i=li.get(o))||void 0===i||i.destroy(),li.delete(o))},t.getFigureClass=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null},t.getOverlayClass=function(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null},t.getSupportedFigures=function(){return Object.keys(be)},t.getSupportedIndicators=function(){return Object.keys(ht)},t.getSupportedLocales=function(){return Object.keys(Be)},t.getSupportedOverlays=function(){return Object.keys(Vt)},t.init=function(t,e){var i;if(null===(i=u(t)?document.getElementById(t):t))return null;var o=li.get(i.id);if(void 0!==o)return o;var n=\\"k_line_chart_\\".concat(ui++);return(o=new si(i,e)).id=n,i.setAttribute(\\"k-line-chart-id\\",n),li.set(n,o),o},t.registerFigure=function(t){be[t.name]=wt.extend(t)},t.registerIndicator=function(t){ht[t.name]=nt.extend(t)},t.registerLocale=function(t,e){Be[t]=k(k({},Be[t]),e)},t.registerOverlay=function(t){Vt[t.name]=xt.extend(t)},t.registerStyles=function(t,e){Jt[t]=e},t.utils=ci,t.version=function(){return\\"9.5.4\\"}}));\\n"]]},"headers":[],"relativePath":"en-US/sample/timezone.md","filePath":"en-US/sample/timezone.md","lastUpdated":1698784282000}`),d={name:"en-US/sample/timezone.md"},D=Object.assign(d,{setup(y){return(v,g)=>(i(),r("div",null,[u,l(n,{js:t(o),html:t(s),css:t(a),title:"Timezone"},null,8,["js","html","css"]),h]))}});export{x as __pageData,D as default}; +}
`,1),D=JSON.parse(`{"title":"Timezone","description":"","frontmatter":{"aside":false,"editLink":false,"head":[["script",{},"/**\\n * @license\\n * KLineChart v9.5.4\\n * Copyright (c) 2019 lihu.\\n * Licensed under Apache License 2.0 https://www.apache.org/licenses/LICENSE-2.0\\n */\\n!function(t,e){\\"object\\"==typeof exports&&\\"undefined\\"!=typeof module?e(exports):\\"function\\"==typeof define&&define.amd?define([\\"exports\\"],e):e((t=\\"undefined\\"!=typeof globalThis?globalThis:t||self).klinecharts={})}(this,(function(t){\\"use strict\\";function e(t,i){if(r(t)||r(i))for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var a=t[n],l=i[n];r(l)&&r(a)&&!o(l)&&!o(a)?e(a,l):s(i[n])&&(t[n]=i[n])}}function i(t){if(!r(t)||!o(t))return t;var e;for(var n in e=o(t)?[]:{},t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=t[n];e[n]=r(a)?i(a):a}return e}function o(t){return\\"[object Array]\\"===Object.prototype.toString.call(t)}function n(t){return\\"function\\"==typeof t}function r(t){return\\"object\\"==typeof t}function a(t){return\\"number\\"==typeof t&&!isNaN(t)}function s(t){return null!=t}function l(t){return\\"boolean\\"==typeof t}function u(t){return\\"string\\"==typeof t}var c,h,d,p,v,g,f,m,y,_,x=/\\\\\\\\(\\\\\\\\)?/g,S=RegExp(\\"[^.[\\\\\\\\]]+|\\\\\\\\[(?:([^\\\\\\"'][^[]*)|([\\\\\\"'])((?:(?!\\\\\\\\2)[^\\\\\\\\\\\\\\\\]|\\\\\\\\\\\\\\\\.)*?)\\\\\\\\2)\\\\\\\\]|(?=(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\])(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\]|$))\\",\\"g\\");function C(t,e,i){if(s(t)){var o=[];e.replace(S,(function(t){for(var e=[],i=1;arguments.length>i;i++)e[i-1]=arguments[i];var n=t;return s(e[1])?n=e[2].replace(x,\\"$1\\"):s(e[0])&&(n=e[0].trim()),o.push(n),\\"\\"}));for(var n=t,r=0,a=o.length;s(n)&&a>r;)n=null==n?void 0:n[o[r++]];return s(n)?n:null!=i?i:\\"--\\"}return null!=i?i:\\"--\\"}function b(t,e,i){var o=t.format(new Date(e)).split(\\", \\"),n=o[0].split(\\"/\\"),r=o[1].split(\\":\\"),a={YYYY:n[2],MM:n[0],DD:n[1],HH:\\"24\\"===r[0]?\\"00\\":r[0],mm:r[1],ss:r[2]};return i.replace(/YYYY|MM|DD|HH|mm|ss/g,(function(t){return a[t]}))}function T(t,e){var i=+t;return a(i)?i.toFixed(null!=e?e:2):\\"\\".concat(t)}function w(t){var e=+t;if(a(e)){if(e>1e9)return\\"\\".concat(+(e/1e9).toFixed(3),\\"B\\");if(e>1e6)return\\"\\".concat(+(e/1e6).toFixed(3),\\"M\\");if(e>1e3)return\\"\\".concat(+(e/1e3).toFixed(3),\\"K\\")}return\\"\\".concat(t)}function E(t,e){var i=\\"\\".concat(t);if(0===e.length)return i;if(i.includes(\\".\\")){var o=i.split(\\".\\");return\\"\\".concat(o[0].replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)})),\\".\\").concat(o[1])}return i.replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)}))}t.LineType=void 0,(c=t.LineType||(t.LineType={})).Dashed=\\"dashed\\",c.Solid=\\"solid\\",t.PolygonType=void 0,(h=t.PolygonType||(t.PolygonType={})).Stroke=\\"stroke\\",h.Fill=\\"fill\\",h.StrokeFill=\\"stroke_fill\\",t.TooltipShowRule=void 0,(d=t.TooltipShowRule||(t.TooltipShowRule={})).Always=\\"always\\",d.FollowCross=\\"follow_cross\\",d.None=\\"none\\",t.TooltipShowType=void 0,(p=t.TooltipShowType||(t.TooltipShowType={})).Standard=\\"standard\\",p.Rect=\\"rect\\",t.TooltipIconPosition=void 0,(v=t.TooltipIconPosition||(t.TooltipIconPosition={})).Left=\\"left\\",v.Middle=\\"middle\\",v.Right=\\"right\\",function(t){t.Fixed=\\"fixed\\",t.Pointer=\\"pointer\\"}(g||(g={})),t.CandleType=void 0,(f=t.CandleType||(t.CandleType={})).CandleSolid=\\"candle_solid\\",f.CandleStroke=\\"candle_stroke\\",f.CandleUpStroke=\\"candle_up_stroke\\",f.CandleDownStroke=\\"candle_down_stroke\\",f.Ohlc=\\"ohlc\\",f.Area=\\"area\\",t.YAxisPosition=void 0,(m=t.YAxisPosition||(t.YAxisPosition={})).Left=\\"left\\",m.Right=\\"right\\",t.YAxisType=void 0,(y=t.YAxisType||(t.YAxisType={})).Normal=\\"normal\\",y.Percentage=\\"percentage\\",y.Log=\\"log\\",t.FormatDateType=void 0,(_=t.FormatDateType||(t.FormatDateType={}))[_.Tooltip=0]=\\"Tooltip\\",_[_.Crosshair=1]=\\"Crosshair\\",_[_.XAxis=2]=\\"XAxis\\";var I=\\"en-US\\",D=function(t,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},D(t,e)};function P(t,e){if(\\"function\\"!=typeof e&&null!==e)throw new TypeError(\\"Class extends value \\"+e+\\" is not a constructor or null\\");function i(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var M,k=function(){return k=Object.assign||function(t){for(var e,i=1,o=arguments.length;o>i;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},k.apply(this,arguments)};function A(t,e,i,o){return new(i||(i=Promise))((function(n,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function s(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))}function F(t,e){var i,o,n,r,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},\\"function\\"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(l){return function(s){if(i)throw new TypeError(\\"Generator is already executing.\\");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(i=1,o&&(n=2&s[0]?o.return:s[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&n[3]>s[1])){a.label=s[1];break}if(6===s[0]&&n[1]>a.label){a.label=n[1],n=s;break}if(n&&n[2]>a.label){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],o=0}finally{i=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function L(t){var e=\\"function\\"==typeof Symbol&&Symbol.iterator,i=e&&t[e],o=0;if(i)return i.call(t);if(t&&\\"number\\"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?\\"Object is not iterable.\\":\\"Symbol.iterator is not defined.\\")}function R(t,e){var i=\\"function\\"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,n,r=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return a}function B(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;r>n;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}t.ActionType=void 0,(M=t.ActionType||(t.ActionType={})).OnZoom=\\"onZoom\\",M.OnScroll=\\"onScroll\\",M.OnVisibleRangeChange=\\"onVisibleRangeChange\\",M.OnTooltipIconClick=\\"onTooltipIconClick\\",M.OnCrosshairChange=\\"onCrosshairChange\\",M.OnCandleBarClick=\\"onCandleBarClick\\",M.OnPaneDrag=\\"onPaneDrag\\";var O,V=function(){function t(){this._callbacks=[]}return t.prototype.subscribe=function(t){var e;0>(null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1)&&this._callbacks.push(t)},t.prototype.unsubscribe=function(t){var e;if(void 0!==t){var i=null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1;i>-1&&this._callbacks.splice(i,1)}else this._callbacks=[]},t.prototype.execute=function(t){this._callbacks.forEach((function(e){e(t)}))},t.prototype.isEmpty=function(){return 0===this._callbacks.length},t}(),N=1,W=(new Date).getTime();function z(t){var e=(new Date).getTime();return e===W?++N:N=1,W=e,\\"\\".concat(null!=t?t:\\"\\").concat(e,\\"_\\").concat(N)}function Y(t,e){var i,o=document.createElement(t),n=null!=e?e:{};for(var r in n)o.style[r]=null!==(i=n[r])&&void 0!==i?i:\\"\\";return o}function X(t){var e,i,o;return Math.ceil(null!==(o=null===(i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0===i?void 0:i.devicePixelRatio)&&void 0!==o?o:2)}function H(t,e,i){return\\"\\".concat(null!=e?e:\\"normal\\",\\" \\").concat(null!=t?t:12,\\"px \\").concat(null!=i?i:\\"Helvetica Neue\\")}function j(t,e,i,o){if(void 0===O){var n=document.createElement(\\"canvas\\"),r=X(n);(O=n.getContext(\\"2d\\")).scale(r,r)}return O.font=H(e,i,o),Math.round(O.measureText(t).width)}function Z(t,e,i){var o=0,n=0;for(n=t.length-1;o!==n;){var r=Math.floor((n+o)/2),a=n-o,s=t[r][e];if(i===t[o][e])return o;if(i===t[n][e])return n;if(i===s)return r;if(i>s?o=r:n=r,2>=a)break}return o}function G(t,e){return null==e&&(e=10),+(+t).toFixed(e=Math.min(Math.max(0,e),20))}function K(t,e,i){var o=[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER];return t.forEach((function(t){var n,r;o[0]=Math.max(null!==(n=t[e])&&void 0!==n?n:t,o[0]),o[1]=Math.min(null!==(r=t[i])&&void 0!==r?r:t,o[1])})),o}function U(t){return Math.log(t)/Math.log(10)}function q(t){return Math.pow(10,t)}var $,J=1,Q=50,tt=6,et=50,it=function(){function e(t){this._dateTimeFormat=this._buildDateTimeFormat(),this._zoomEnabled=!0,this._scrollEnabled=!0,this._loading=!0,this._loadMoreCallback=null,this._more=!0,this._totalBarSpace=0,this._barSpace=tt,this._offsetRightDistance=et,this._startScrollOffsetRightBarCount=0,this._minVisibleBarCount={left:2,right:2},this._visibleRange={from:0,to:0,realFrom:0,realTo:0},this._chartStore=t,this._gapBarSpace=this._calcGapBarSpace(),this._offsetRightBarCount=this._offsetRightDistance/this._barSpace}return e.prototype._calcGapBarSpace=function(){return Math.max(1,Math.min(Math.floor(.82*this._barSpace),Math.floor(this._barSpace)-1))},e.prototype.adjustVisibleRange=function(){var e,i=this._chartStore.getDataList(),o=i.length,n=this._totalBarSpace/this._barSpace,r=n-Math.min(this._minVisibleBarCount.left,o);this._offsetRightBarCount>r&&(this._offsetRightBarCount=r);var a=-o+Math.min(this._minVisibleBarCount.right,o);a>this._offsetRightBarCount&&(this._offsetRightBarCount=a);var s=Math.round(this._offsetRightBarCount+o+.5);s>o&&(s=o);var l=Math.round(s-n)-1;if(0>l&&(l=0),this._visibleRange={from:l,to:s,realFrom:this._offsetRightBarCount>0?Math.round(o+this._offsetRightBarCount-n)-1:l,realTo:s},this._chartStore.getActionStore().execute(t.ActionType.OnVisibleRangeChange,this._visibleRange),this._chartStore.adjustVisibleDataList(),0===l&&this._more&&!this._loading&&null!==this._loadMoreCallback){this._loading=!0;var u=i[0];this._loadMoreCallback(null!==(e=null==u?void 0:u.timestamp)&&void 0!==e?e:null)}},e.prototype.setMore=function(t){return this._more=t,this},e.prototype.setLoading=function(t){return this._loading=t,this},e.prototype.getDateTimeFormat=function(){return this._dateTimeFormat},e.prototype._buildDateTimeFormat=function(t){var e={hour12:!1,year:\\"numeric\\",month:\\"2-digit\\",day:\\"2-digit\\",hour:\\"2-digit\\",minute:\\"2-digit\\",second:\\"2-digit\\"};void 0!==t&&(e.timeZone=t);var i=null;try{i=new Intl.DateTimeFormat(\\"en\\",e)}catch(t){}return i},e.prototype.setTimezone=function(t){var e=this._buildDateTimeFormat(t);null!==e&&(this._dateTimeFormat=e)},e.prototype.getTimezone=function(){return this._dateTimeFormat.resolvedOptions().timeZone},e.prototype.getBarSpace=function(){return{bar:this._barSpace,halfBar:this._barSpace/2,gapBar:this._gapBarSpace,halfGapBar:this._gapBarSpace/2}},e.prototype.setBarSpace=function(t,e){J>t||t>Q||this._barSpace===t||(this._barSpace=t,this._gapBarSpace=this._calcGapBarSpace(),null==e||e(),this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0))},e.prototype.setTotalBarSpace=function(t){return this._totalBarSpace!==t&&(this._totalBarSpace=t,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0)),this},e.prototype.setOffsetRightDistance=function(t,e){return this._offsetRightDistance=t,this._offsetRightBarCount=t/this._barSpace,null!=e&&e&&(this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)),this},e.prototype.resetOffsetRightDistance=function(){this.setOffsetRightDistance(this._offsetRightDistance)},e.prototype.getInitialOffsetRightDistance=function(){return this._offsetRightDistance},e.prototype.getOffsetRightDistance=function(){return Math.max(0,this._offsetRightBarCount*this._barSpace)},e.prototype.getOffsetRightBarCount=function(){return this._offsetRightBarCount},e.prototype.setOffsetRightBarCount=function(t){return this._offsetRightBarCount=t,this},e.prototype.setLeftMinVisibleBarCount=function(t){return this._minVisibleBarCount.left=t,this},e.prototype.setRightMinVisibleBarCount=function(t){return this._minVisibleBarCount.right=t,this},e.prototype.getVisibleRange=function(){return this._visibleRange},e.prototype.startScroll=function(){this._startScrollOffsetRightBarCount=this._offsetRightBarCount},e.prototype.scroll=function(e){if(this._scrollEnabled){var i=e/this._barSpace;this._chartStore.getActionStore().execute(t.ActionType.OnScroll),this._offsetRightBarCount=this._startScrollOffsetRightBarCount-i,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)}},e.prototype.getDataByDataIndex=function(t){var e;return null!==(e=this._chartStore.getDataList()[t])&&void 0!==e?e:null},e.prototype.coordinateToFloatIndex=function(t){var e=this._chartStore.getDataList().length;return Math.round(1e6*(e+this._offsetRightBarCount-(this._totalBarSpace-t)/this._barSpace))/1e6},e.prototype.dataIndexToTimestamp=function(t){var e,i=this.getDataByDataIndex(t);return null!==(e=null==i?void 0:i.timestamp)&&void 0!==e?e:null},e.prototype.timestampToDataIndex=function(t){var e=this._chartStore.getDataList();return 0===e.length?0:Z(e,\\"timestamp\\",t)},e.prototype.dataIndexToCoordinate=function(t){var e=this._chartStore.getDataList().length;return this._totalBarSpace-(e+this._offsetRightBarCount-t-.5)*this._barSpace},e.prototype.coordinateToDataIndex=function(t){return Math.ceil(this.coordinateToFloatIndex(t))-1},e.prototype.zoom=function(e,i){var o,n=this;if(this._zoomEnabled){if(void 0===(null==i?void 0:i.x)){var r=this._chartStore.getTooltipStore().getCrosshair();i={x:null!==(o=null==r?void 0:r.x)&&void 0!==o?o:this._totalBarSpace/2}}this._chartStore.getActionStore().execute(t.ActionType.OnZoom);var a=this.coordinateToFloatIndex(i.x);this.setBarSpace(this._barSpace+e*(this._barSpace/10),(function(){n._offsetRightBarCount+=a-n.coordinateToFloatIndex(null==i?void 0:i.x)}))}},e.prototype.setZoomEnabled=function(t){return this._zoomEnabled=t,this},e.prototype.getZoomEnabled=function(){return this._zoomEnabled},e.prototype.setScrollEnabled=function(t){return this._scrollEnabled=t,this},e.prototype.getScrollEnabled=function(){return this._scrollEnabled},e.prototype.setLoadMoreCallback=function(t){return this._loadMoreCallback=t,this},e.prototype.clear=function(){this._more=!0,this._loading=!0,this._visibleRange={from:0,to:0,realFrom:0,realTo:0}},e}();function ot(t,e,i,o,n){var r,a=e.result,l=e.figures,u=e.styles,c=C(u,\\"circles\\",o.circles),h=c.length,d=C(u,\\"bars\\",o.bars),p=d.length,v=C(u,\\"lines\\",o.lines),g=v.length,f=0,m=0,y=0;l.forEach((function(l){var u;switch(l.type){case\\"circle\\":var _=c[f%h];r=k(k({},_),{color:_.noChangeColor}),f++;break;case\\"bar\\":var x=d[m%p];r=k(k({},x),{color:x.noChangeColor}),m++;break;case\\"line\\":r=v[y%g],y++}if(s(r)){var S=null===(u=l.styles)||void 0===u?void 0:u.call(l,{prev:{kLineData:t[i-1],indicatorData:a[i-1]},current:{kLineData:t[i],indicatorData:a[i]},next:{kLineData:t[i+1],indicatorData:a[i+1]}},e,o);n(l,k(k({},r),S))}}))}t.IndicatorSeries=void 0,($=t.IndicatorSeries||(t.IndicatorSeries={})).Normal=\\"normal\\",$.Price=\\"price\\",$.Volume=\\"volume\\";var nt=function(){function i(e){this.result=[],this._precisionFlag=!1;var i=e.name,o=e.shortName,n=e.series,r=e.calcParams,a=e.figures,s=e.precision,l=e.shouldOhlc,u=e.shouldFormatBigNumber,c=e.visible,h=e.minValue,d=e.maxValue,p=e.styles,v=e.extendData,g=e.regenerateFigures,f=e.createTooltipDataSource,m=e.draw;this.name=i,this.shortName=null!=o?o:i,this.series=null!=n?n:t.IndicatorSeries.Normal,this.precision=null!=s?s:4,this.calcParams=null!=r?r:[],this.figures=null!=a?a:[],this.shouldOhlc=null!=l&&l,this.shouldFormatBigNumber=null!=u&&u,this.visible=null==c||c,this.minValue=null!=h?h:null,this.maxValue=null!=d?d:null,this.styles=null!=p?p:{},this.extendData=v,this.regenerateFigures=null!=g?g:null,this.createTooltipDataSource=null!=f?f:null,this.draw=null!=m?m:null}return i.prototype.setShortName=function(t){return this.shortName!==t&&(this.shortName=t,!0)},i.prototype.setSeries=function(t){return this.series!==t&&(this.series=t,!0)},i.prototype.setPrecision=function(t,e){var i=null!=e&&e,o=Math.floor(t);return!(o===this.precision||0>t||i&&(!i||this._precisionFlag))&&(this.precision=o,i||(this._precisionFlag=!0),!0)},i.prototype.setCalcParams=function(t){var e,i;return this.calcParams=t,this.figures=null!==(i=null===(e=this.regenerateFigures)||void 0===e?void 0:e.call(this,t))&&void 0!==i?i:this.figures,!0},i.prototype.setShouldOhlc=function(t){return this.shouldOhlc!==t&&(this.shouldOhlc=t,!0)},i.prototype.setShouldFormatBigNumber=function(t){return this.shouldFormatBigNumber!==t&&(this.shouldFormatBigNumber=t,!0)},i.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},i.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},i.prototype.setExtendData=function(t){return this.extendData!==t&&(this.extendData=t,!0)},i.prototype.setFigures=function(t){return this.figures!==t&&(this.figures=t,!0)},i.prototype.setMinValue=function(t){return this.minValue!==t&&(this.minValue=t,!0)},i.prototype.setMaxValue=function(t){return this.maxValue!==t&&(this.maxValue=t,!0)},i.prototype.setRegenerateFigures=function(t){return this.regenerateFigures!==t&&(this.regenerateFigures=t,!0)},i.prototype.setCreateTooltipDataSource=function(t){return this.createTooltipDataSource!==t&&(this.createTooltipDataSource=t,!0)},i.prototype.setDraw=function(t){return this.draw!==t&&(this.draw=t,!0)},i.prototype.calcIndicator=function(t){return A(this,void 0,void 0,(function(){var e;return F(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.calc(t,this)];case 1:return e=i.sent(),this.result=e,[2,!0];case 2:return i.sent(),[2,!1];case 3:return[2]}}))}))},i.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i.prototype.calc=function(e,i){return t.calc(e,i)},i}(i)},i}(),rt={name:\\"AVP\\",shortName:\\"AVP\\",series:t.IndicatorSeries.Price,precision:2,figures:[{key:\\"avp\\",title:\\"AVP: \\",type:\\"line\\"}],calc:function(t){var e=0,i=0;return t.map((function(t){var o,n,r={},a=null!==(o=null==t?void 0:t.turnover)&&void 0!==o?o:0,s=null!==(n=null==t?void 0:t.volume)&&void 0!==n?n:0;return e+=a,0!==(i+=s)&&(r.avp=e/i),r}))}};var at={name:\\"EMA\\",shortName:\\"EMA\\",series:t.IndicatorSeries.Price,calcParams:[6,12,20],precision:2,shouldOhlc:!0,figures:[{key:\\"ema1\\",title:\\"EMA6: \\",type:\\"line\\"},{key:\\"ema2\\",title:\\"EMA12: \\",type:\\"line\\"},{key:\\"ema3\\",title:\\"EMA20: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ema\\".concat(e+1),title:\\"EMA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=0,r=[];return t.map((function(t,e){var a={},s=t.close;return n+=s,i.forEach((function(t,i){t-1>e||(r[i]=e>t-1?(2*s+(t-1)*r[i])/(t+1):n/t,a[o[i].key]=r[i])})),a}))}},st={name:\\"MA\\",shortName:\\"MA\\",series:t.IndicatorSeries.Price,calcParams:[5,10,30,60],precision:2,shouldOhlc:!0,figures:[{key:\\"ma5\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma10\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma30\\",title:\\"MA30: \\",type:\\"line\\"},{key:\\"ma60\\",title:\\"MA60: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,i){var l;n[i]=(null!==(l=n[i])&&void 0!==l?l:0)+s,e-1>r||(a[o[i].key]=n[i]/e,n[i]-=t[r-(e-1)].close)})),a}))}},lt={name:\\"RSI\\",shortName:\\"RSI\\",calcParams:[6,12,24],figures:[{key:\\"rsi1\\",title:\\"RSI1: \\",type:\\"line\\"},{key:\\"rsi2\\",title:\\"RSI2: \\",type:\\"line\\"},{key:\\"rsi3\\",title:\\"RSI3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){var i=e+1;return{key:\\"rsi\\".concat(i),title:\\"RSI\\".concat(i,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[],r=[];return t.map((function(e,a){var s,l={},u=(null!==(s=t[a-1])&&void 0!==s?s:e).close,c=e.close-u;return i.forEach((function(e,i){var s,u,h;if(c>0?n[i]=(null!==(s=n[i])&&void 0!==s?s:0)+c:r[i]=(null!==(u=r[i])&&void 0!==u?u:0)+Math.abs(c),a>=e-1){l[o[i].key]=0!==r[i]?100-100/(1+n[i]/r[i]):0;var d=t[a-(e-1)],p=null!==(h=t[a-e])&&void 0!==h?h:d,v=d.close-p.close;v>0?n[i]-=v:r[i]-=Math.abs(v)}})),l}))}},ut={name:\\"VOL\\",shortName:\\"VOL\\",series:t.IndicatorSeries.Volume,calcParams:[5,10,20],shouldFormatBigNumber:!0,precision:0,minValue:0,figures:[{key:\\"ma1\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA20: \\",type:\\"line\\"},{key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}],regenerateFigures:function(t){var e=t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}));return e.push({key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}),e},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a,s=null!==(a=e.volume)&&void 0!==a?a:0,l={volume:s};return i.forEach((function(e,i){var a,u;n[i]=(null!==(a=n[i])&&void 0!==a?a:0)+s,e-1>r||(l[o[i].key]=n[i]/e,n[i]-=null!==(u=t[r-(e-1)].volume)&&void 0!==u?u:0)})),l}))}},ct={name:\\"WR\\",shortName:\\"WR\\",calcParams:[6,10,14],figures:[{key:\\"wr1\\",title:\\"WR1: \\",type:\\"line\\"},{key:\\"wr2\\",title:\\"WR2: \\",type:\\"line\\"},{key:\\"wr3\\",title:\\"WR3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"wr\\".concat(e+1),title:\\"WR\\".concat(e+1,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures;return t.map((function(e,n){var r={},a=e.close;return i.forEach((function(e,i){var s=e-1;if(n>=s){var l=K(t.slice(n-s,n+1),\\"high\\",\\"low\\"),u=l[0],c=u-l[1];r[o[i].key]=0===c?0:(a-u)/c*100}})),r}))}},ht={},dt=[rt,{name:\\"AO\\",shortName:\\"AO\\",calcParams:[5,34],figures:[{key:\\"ao\\",title:\\"AO: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.ao)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.ao)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return{color:l=c>u?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor),style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,borderColor:l}}}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=0;return t.map((function(e,l){var u,c={},h=(e.low+e.high)/2;(n+=h,r+=h,ll||(c.ao=a-s),c}))}},{name:\\"BIAS\\",shortName:\\"BIAS\\",calcParams:[6,12,24],figures:[{key:\\"bias1\\",title:\\"BIAS6: \\",type:\\"line\\"},{key:\\"bias2\\",title:\\"BIAS12: \\",type:\\"line\\"},{key:\\"bias3\\",title:\\"BIAS24: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"bias\\".concat(e+1),title:\\"BIAS\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,l){var u;if(n[l]=(null!==(u=n[l])&&void 0!==u?u:0)+s,r>=e-1){var c=n[l]/i[l];a[o[l].key]=(s-c)/c*100,n[l]-=t[r-(e-1)].close}})),a}))}},{name:\\"BOLL\\",shortName:\\"BOLL\\",series:t.IndicatorSeries.Price,calcParams:[20,2],precision:2,shouldOhlc:!0,figures:[{key:\\"up\\",title:\\"UP: \\",type:\\"line\\"},{key:\\"mid\\",title:\\"MID: \\",type:\\"line\\"},{key:\\"dn\\",title:\\"DN: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0;return t.map((function(e,r){var a={};if(n+=e.close,r>=o){a.mid=n/i[0];var s=function(t,e){var i=t.length,o=0;return t.forEach((function(t){var i=t.close-e;o+=i*i})),Math.sqrt((o=Math.abs(o))/i)}(t.slice(r-o,r+1),a.mid);a.up=a.mid+i[1]*s,a.dn=a.mid-i[1]*s,n-=t[r-o].close}return a}))}},{name:\\"BRAR\\",shortName:\\"BRAR\\",calcParams:[26],figures:[{key:\\"br\\",title:\\"BR: \\",type:\\"line\\"},{key:\\"ar\\",title:\\"AR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0;return t.map((function(e,s){var l,u,c={},h=e.high,d=e.low,p=e.open,v=(null!==(l=t[s-1])&&void 0!==l?l:e).close;if(r+=h-p,a+=p-d,o+=h-v,n+=v-d,s>=i[0]-1){c.ar=0!==a?r/a*100:0,c.br=0!==n?o/n*100:0;var g=t[s-(i[0]-1)],f=g.high,m=g.low,y=g.open,_=(null!==(u=t[s-i[0]])&&void 0!==u?u:t[s-(i[0]-1)]).close;o-=f-_,n-=_-m,r-=f-y,a-=y-m}return c}))}},{name:\\"BBI\\",shortName:\\"BBI\\",series:t.IndicatorSeries.Price,precision:2,calcParams:[3,6,12,24],shouldOhlc:!0,figures:[{key:\\"bbi\\",title:\\"BBI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max.apply(Math,B([],R(i),!1)),n=[],r=[];return t.map((function(e,a){var s={},l=e.close;if(i.forEach((function(e,i){var o;n[i]=(null!==(o=n[i])&&void 0!==o?o:0)+l,e-1>a||(r[i]=n[i]/e,n[i]-=t[a-(e-1)].close)})),a>=o-1){var u=0;r.forEach((function(t){u+=t})),s.bbi=u/4}return s}))}},{name:\\"CCI\\",shortName:\\"CCI\\",calcParams:[20],figures:[{key:\\"cci\\",title:\\"CCI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0,r=[];return t.map((function(e,a){var s={},l=(e.high+e.low+e.close)/3;if(n+=l,r.push(l),a>=o){var u=n/i[0],c=r.slice(a-o,a+1),h=0;c.forEach((function(t){h+=Math.abs(t-u)}));var d=h/i[0];s.cci=0!==d?(l-u)/d/.015:0,n-=(t[a-o].high+t[a-o].low+t[a-o].close)/3}return s}))}},{name:\\"CR\\",shortName:\\"CR\\",calcParams:[26,10,20,40,60],figures:[{key:\\"cr\\",title:\\"CR: \\",type:\\"line\\"},{key:\\"ma1\\",title:\\"MA1: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA2: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA3: \\",type:\\"line\\"},{key:\\"ma4\\",title:\\"MA4: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.ceil(i[1]/2.5+1),n=Math.ceil(i[2]/2.5+1),r=Math.ceil(i[3]/2.5+1),a=Math.ceil(i[4]/2.5+1),s=0,l=[],u=0,c=[],h=0,d=[],p=0,v=[],g=[];return t.forEach((function(e,f){var m,y,_,x,S,C={},b=null!==(m=t[f-1])&&void 0!==m?m:e,T=(b.high+b.close+b.low+b.open)/4,w=Math.max(0,e.high-T),E=Math.max(0,T-e.low);i[0]-1>f||(C.cr=0!==E?w/E*100:0,s+=C.cr,u+=C.cr,h+=C.cr,p+=C.cr,i[0]+i[1]-2>f||(l.push(s/i[1]),i[0]+i[1]+o-3>f||(C.ma1=l[l.length-1-o]),s-=null!==(y=g[f-(i[1]-1)].cr)&&void 0!==y?y:0),i[0]+i[2]-2>f||(c.push(u/i[2]),i[0]+i[2]+n-3>f||(C.ma2=c[c.length-1-n]),u-=null!==(_=g[f-(i[2]-1)].cr)&&void 0!==_?_:0),i[0]+i[3]-2>f||(d.push(h/i[3]),i[0]+i[3]+r-3>f||(C.ma3=d[d.length-1-r]),h-=null!==(x=g[f-(i[3]-1)].cr)&&void 0!==x?x:0),i[0]+i[4]-2>f||(v.push(p/i[4]),i[0]+i[4]+a-3>f||(C.ma4=v[v.length-1-a]),p-=null!==(S=g[f-(i[4]-1)].cr)&&void 0!==S?S:0)),g.push(C)})),g}},{name:\\"DMA\\",shortName:\\"DMA\\",calcParams:[10,50,10],figures:[{key:\\"dma\\",title:\\"DMA: \\",type:\\"line\\"},{key:\\"ama\\",title:\\"AMA: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c={},h=e.close;n+=h,r+=h;var d=0,p=0;if(i[0]-1>l||(d=n/i[0],n-=t[l-(i[0]-1)].close),i[1]-1>l||(p=r/i[1],r-=t[l-(i[1]-1)].close),l>=o-1){var v=d-p;c.dma=v,a+=v,o+i[2]-2>l||(c.ama=a/i[2],a-=null!==(u=s[l-(i[2]-1)].dma)&&void 0!==u?u:0)}s.push(c)})),s}},{name:\\"DMI\\",shortName:\\"DMI\\",calcParams:[14,6],figures:[{key:\\"pdi\\",title:\\"PDI: \\",type:\\"line\\"},{key:\\"mdi\\",title:\\"MDI: \\",type:\\"line\\"},{key:\\"adx\\",title:\\"ADX: \\",type:\\"line\\"},{key:\\"adxr\\",title:\\"ADXR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=0,l=0,u=0,c=0,h=[];return t.forEach((function(e,d){var p,v,g={},f=null!==(p=t[d-1])&&void 0!==p?p:e,m=f.close,y=e.high,_=e.low,x=y-_,S=Math.abs(y-m),C=Math.abs(m-_),b=y-f.high,T=f.low-_,w=Math.max(Math.max(x,S),C),E=b>0&&b>T?b:0,I=T>0&&T>b?T:0;if(o+=w,n+=E,r+=I,d>=i[0]-1){d>i[0]-1?(a=a-a/i[0]+w,s=s-s/i[0]+E,l=l-l/i[0]+I):(a=o,s=n,l=r);var D=0,P=0;0!==a&&(D=100*s/a,P=100*l/a),g.pdi=D,g.mdi=P;var M=0;P+D!==0&&(M=Math.abs(P-D)/(P+D)*100),u+=M,2*i[0]-2>d||(g.adx=c=d>2*i[0]-2?(c*(i[0]-1)+M)/i[0]:u/i[0],2*i[0]+i[1]-3>d||(g.adxr=((null!==(v=h[d-(i[1]-1)].adx)&&void 0!==v?v:0)+c)/2))}h.push(g)})),h}},{name:\\"EMV\\",shortName:\\"EMV\\",calcParams:[14,9],figures:[{key:\\"emv\\",title:\\"EMV: \\",type:\\"line\\"},{key:\\"maEmv\\",title:\\"MAEMV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.map((function(e,r){var a,s={};if(r>0){var l=t[r-1],u=e.high,c=e.low,h=null!==(a=e.volume)&&void 0!==a?a:0,d=(u+c)/2-(l.high+l.low)/2;if(0===h||u-c==0)s.emv=0;else s.emv=d/(h/1e8/(u-c));o+=s.emv,n.push(s.emv),i[0]>r||(s.maEmv=o/i[0],o-=n[r-i[0]])}return s}))}},at,{name:\\"MTM\\",shortName:\\"MTM\\",calcParams:[12,6],figures:[{key:\\"mtm\\",title:\\"MTM: \\",type:\\"line\\"},{key:\\"maMtm\\",title:\\"MAMTM: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.forEach((function(e,r){var a,s={};rr||(s.maMtm=o/i[1],o-=null!==(a=n[r-(i[1]-1)].mtm)&&void 0!==a?a:0));n.push(s)})),n}},st,{name:\\"MACD\\",shortName:\\"MACD\\",calcParams:[12,26,9],figures:[{key:\\"dif\\",title:\\"DIF: \\",type:\\"line\\"},{key:\\"dea\\",title:\\"DEA: \\",type:\\"line\\"},{key:\\"macd\\",title:\\"MACD: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.macd)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.macd)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return l=c>0?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):0>c?C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor):C(i.styles,\\"bars[0].noChangeColor\\",o.bars[0].noChangeColor),{style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,color:l,borderColor:l}}}],calc:function(t,e){var i,o,n=e.calcParams,r=0,a=0,s=0,l=0,u=Math.max(n[0],n[1]);return t.map((function(t,e){var c={},h=t.close;return r+=h,n[0]-1>e||(i=e>n[0]-1?(2*h+(n[0]-1)*i)/(n[0]+1):r/n[0]),n[1]-1>e||(o=e>n[1]-1?(2*h+(n[1]-1)*o)/(n[1]+1):r/n[1]),u-1>e||(c.dif=a=i-o,s+=a,u+n[2]-2>e||(c.macd=2*(a-(l=e>u+n[2]-2?(2*a+l*(n[2]-1))/(n[2]+1):s/n[2])),c.dea=l)),c}))}},{name:\\"OBV\\",shortName:\\"OBV\\",calcParams:[30],figures:[{key:\\"obv\\",title:\\"OBV: \\",type:\\"line\\"},{key:\\"maObv\\",title:\\"MAOBV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[];return t.forEach((function(e,a){var s,l,u,c,h=null!==(s=t[a-1])&&void 0!==s?s:e;h.close>e.close?n-=null!==(l=e.volume)&&void 0!==l?l:0:e.close>h.close&&(n+=null!==(u=e.volume)&&void 0!==u?u:0);var d={obv:n};o+=n,i[0]-1>a||(d.maObv=o/i[0],o-=null!==(c=r[a-(i[0]-1)].obv)&&void 0!==c?c:0),r.push(d)})),r}},{name:\\"PVT\\",shortName:\\"PVT\\",figures:[{key:\\"pvt\\",title:\\"PVT: \\",type:\\"line\\"}],calc:function(t){var e=0;return t.map((function(i,o){var n,r,a={},s=null!==(n=i.volume)&&void 0!==n?n:1,l=(null!==(r=t[o-1])&&void 0!==r?r:i).close,u=0,c=l*s;return 0!==c&&(u=(i.close-l)/c),a.pvt=e+=u,a}))}},{name:\\"PSY\\",shortName:\\"PSY\\",calcParams:[12,6],figures:[{key:\\"psy\\",title:\\"PSY: \\",type:\\"line\\"},{key:\\"maPsy\\",title:\\"MAPSY: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[],a=[];return t.forEach((function(e,s){var l,u,c={},h=(null!==(l=t[s-1])&&void 0!==l?l:e).close,d=e.close-h>0?1:0;r.push(d),o+=d,i[0]-1>s||(c.psy=o/i[0]*100,n+=c.psy,i[0]+i[1]-2>s||(c.maPsy=n/i[1],n-=null!==(u=a[s-(i[1]-1)].psy)&&void 0!==u?u:0),o-=r[s-(i[0]-1)]),a.push(c)})),a}},{name:\\"ROC\\",shortName:\\"ROC\\",calcParams:[12,6],figures:[{key:\\"roc\\",title:\\"ROC: \\",type:\\"line\\"},{key:\\"maRoc\\",title:\\"MAROC: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[],n=0;return t.forEach((function(e,r){var a,s,l={};if(r>=i[0]-1){var u=(null!==(a=t[r-i[0]])&&void 0!==a?a:t[r-(i[0]-1)]).close;l.roc=0!==u?(e.close-u)/u*100:0,n+=l.roc,i[0]-1+i[1]-1>r||(l.maRoc=n/i[1],n-=null!==(s=o[r-(i[1]-1)].roc)&&void 0!==s?s:0)}o.push(l)})),o}},lt,{name:\\"SMA\\",shortName:\\"SMA\\",series:t.IndicatorSeries.Price,calcParams:[12,2],precision:2,figures:[{key:\\"sma\\",title:\\"SMA: \\",type:\\"line\\"}],shouldOhlc:!0,calc:function(t,e){var i=e.calcParams,o=0,n=0;return t.map((function(t,e){var r={},a=t.close;return o+=a,i[0]-1>e||(r.sma=n=e>i[0]-1?(a*i[1]+n*(i[0]-i[1]+1))/(i[0]+1):o/i[0]),r}))}},{name:\\"KDJ\\",shortName:\\"KDJ\\",calcParams:[9,3,3],figures:[{key:\\"k\\",title:\\"K: \\",type:\\"line\\"},{key:\\"d\\",title:\\"D: \\",type:\\"line\\"},{key:\\"j\\",title:\\"J: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[];return t.forEach((function(e,n){var r,a,s,l,u={},c=e.close;if(n>=i[0]-1){var h=K(t.slice(n-(i[0]-1),n+1),\\"high\\",\\"low\\"),d=h[1],p=h[0]-d;u.k=((i[1]-1)*(null!==(a=null===(r=o[n-1])||void 0===r?void 0:r.k)&&void 0!==a?a:50)+(c-d)/(0===p?1:p)*100)/i[1],u.d=((i[2]-1)*(null!==(l=null===(s=o[n-1])||void 0===s?void 0:s.d)&&void 0!==l?l:50)+u.k)/i[2],u.j=3*u.k-2*u.d}o.push(u)})),o}},{name:\\"SAR\\",shortName:\\"SAR\\",series:t.IndicatorSeries.Price,calcParams:[2,2,20],precision:2,shouldOhlc:!0,figures:[{key:\\"sar\\",title:\\"SAR: \\",type:\\"circle\\",styles:function(t,e,i){var o,n,r=t.current,a=null!==(n=null===(o=r.indicatorData)||void 0===o?void 0:o.sar)&&void 0!==n?n:Number.MIN_SAFE_INTEGER,s=r.kLineData;return{color:((null==s?void 0:s.high)+(null==s?void 0:s.low))/2>a?C(e.styles,\\"circles[0].upColor\\",i.circles[0].upColor):C(e.styles,\\"circles[0].downColor\\",i.circles[0].downColor)}}}],calc:function(t,e){var i=e.calcParams,o=i[0]/100,n=i[1]/100,r=i[2]/100,a=o,s=-100,l=!1,u=0;return t.map((function(e,i){var c=u,h=e.high,d=e.low;if(l){(-100===s||h>s)&&(s=h,a=Math.min(a+n,r)),u=c+a*(s-c);var p=Math.min(t[Math.max(1,i)-1].low,d);u>e.low?(u=s,a=o,s=-100,l=!l):u>p&&(u=p)}else{(-100===s||s>d)&&(s=d,a=Math.min(a+n,r)),u=c+a*(s-c);var v=Math.max(t[Math.max(1,i)-1].high,h);e.high>u?(u=s,a=0,s=-100,l=!l):v>u&&(u=v)}return{sar:u}}))}},{name:\\"TRIX\\",shortName:\\"TRIX\\",calcParams:[12,9],figures:[{key:\\"trix\\",title:\\"TRIX: \\",type:\\"line\\"},{key:\\"maTrix\\",title:\\"MATRIX: \\",type:\\"line\\"}],calc:function(t,e){var i,o,n,r=e.calcParams,a=0,s=0,l=0,u=0,c=[];return t.forEach((function(t,e){var h,d={},p=t.close;if(a+=p,e>=r[0]-1&&(s+=i=e>r[0]-1?(2*p+(r[0]-1)*i)/(r[0]+1):a/r[0],e>=2*r[0]-2&&(l+=o=e>2*r[0]-2?(2*i+(r[0]-1)*o)/(r[0]+1):s/r[0],e>=3*r[0]-3))){var v=void 0,g=0;e>3*r[0]-3?g=((v=(2*o+(r[0]-1)*n)/(r[0]+1))-n)/n*100:v=l/r[0],n=v,d.trix=g,u+=g,3*r[0]+r[1]-4>e||(d.maTrix=u/r[1],u-=null!==(h=c[e-(r[1]-1)].trix)&&void 0!==h?h:0)}c.push(d)})),c}},ut,{name:\\"VR\\",shortName:\\"VR\\",calcParams:[26,6],figures:[{key:\\"vr\\",title:\\"VR: \\",type:\\"line\\"},{key:\\"maVr\\",title:\\"MAVR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c,h,d,p,v={},g=e.close,f=(null!==(u=t[l-1])&&void 0!==u?u:e).close,m=null!==(c=e.volume)&&void 0!==c?c:0;if(g>f?o+=m:f>g?n+=m:r+=m,l>=i[0]-1){var y=r/2;v.vr=n+y===0?0:(o+y)/(n+y)*100,a+=v.vr,i[0]+i[1]-2>l||(v.maVr=a/i[1],a-=null!==(h=s[l-(i[1]-1)].vr)&&void 0!==h?h:0);var _=t[l-(i[0]-1)],x=null!==(d=t[l-i[0]])&&void 0!==d?d:_,S=_.close,C=null!==(p=_.volume)&&void 0!==p?p:0;S>x.close?o-=C:x.close>S?n-=C:r-=C}s.push(v)})),s}},ct];function pt(t){var e;return null!==(e=ht[t])&&void 0!==e?e:null}dt.forEach((function(t){ht[t.name]=nt.extend(t)}));var vt,gt=function(){function e(t){this._instances=new Map,this._chartStore=t}return e.prototype._overrideInstance=function(t,e){var i=e.shortName,o=e.series,n=e.calcParams,r=e.precision,a=e.figures,s=e.minValue,l=e.maxValue,u=e.shouldOhlc,c=e.shouldFormatBigNumber,h=e.visible,d=e.styles,p=e.extendData,v=e.regenerateFigures,g=e.createTooltipDataSource,f=e.draw,m=e.calc,y=!1;void 0!==i&&t.setShortName(i)&&(y=!0),void 0!==o&&t.setSeries(o)&&(y=!0);var _=!1;return void 0!==n&&t.setCalcParams(n)&&(y=!0,_=!0),void 0!==a&&t.setFigures(a)&&(y=!0,_=!0),void 0!==s&&t.setMinValue(s)&&(y=!0),void 0!==l&&t.setMinValue(l)&&(y=!0),void 0!==r&&t.setPrecision(r)&&(y=!0),void 0!==u&&t.setShouldOhlc(u)&&(y=!0),void 0!==c&&t.setShouldFormatBigNumber(c)&&(y=!0),void 0!==h&&t.setVisible(h)&&(y=!0),void 0!==d&&t.setStyles(d)&&(y=!0),void 0!==p&&t.setExtendData(p)&&(y=!0,_=!0),void 0!==v&&t.setRegenerateFigures(v)&&(y=!0),void 0!==g&&t.setCreateTooltipDataSource(g)&&(y=!0),void 0!==f&&t.setDraw(f)&&(y=!0),void 0!==m&&(t.calc=m,_=!0),[y,_]},e.prototype.addInstance=function(t,e,i){var o;return A(this,void 0,void 0,(function(){var n,r,a,s;return F(this,(function(l){switch(l.label){case 0:return n=t.name,r=this._instances.get(e),null!==(o=null==r?void 0:r.has(n))&&void 0!==o&&o?[4,Promise.reject(Error(\\"Duplicate indicators.\\"))]:[3,2];case 1:case 3:return[2,l.sent()];case 2:return void 0===r&&(r=new Map,this._instances.set(e,r)),a=pt(n),s=new a,this._overrideInstance(s,t),i||r.clear(),r.set(n,s),[4,s.calcIndicator(this._chartStore.getDataList())]}}))}))},e.prototype.getInstances=function(t){var e;return null!==(e=this._instances.get(t))&&void 0!==e?e:new Map},e.prototype.removeInstance=function(t,e){var i=!1,o=this._instances.get(t);return void 0!==o&&(void 0!==e?o.has(e)&&(o.delete(e),i=!0):(o.clear(),i=!0),0===o.size&&this._instances.delete(t)),i},e.prototype.hasInstances=function(t){return this._instances.has(t)},e.prototype.calcInstance=function(t,e){var i;return A(this,void 0,void 0,(function(){var o,n,r,a=this;return F(this,(function(s){switch(s.label){case 0:return o=[],void 0!==t?void 0!==e?(n=this._instances.get(e),null!==(i=null==n?void 0:n.has(t))&&void 0!==i&&i&&(r=null==n?void 0:n.get(t),o.push(r.calcIndicator(this._chartStore.getDataList())))):this._instances.forEach((function(e){if(e.has(t)){var i=null==e?void 0:e.get(t);o.push(i.calcIndicator(a._chartStore.getDataList()))}})):this._instances.forEach((function(t){t.forEach((function(t){o.push(t.calcIndicator(a._chartStore.getDataList()))}))})),[4,Promise.all(o)];case 1:return[2,s.sent().includes(!0)]}}))}))},e.prototype.getInstanceByPaneId=function(t,e){var i;if(void 0!==t){var o=this._instances.get(t);return void 0!==e?null!==(i=null==o?void 0:o.get(e))&&void 0!==i?i:null:null!=o?o:null}return this._instances},e.prototype.setSeriesPrecision=function(e){this._instances.forEach((function(i){i.forEach((function(i){i.series===t.IndicatorSeries.Price&&i.setPrecision(e.price,!0),i.series===t.IndicatorSeries.Volume&&i.setPrecision(e.volume,!0)}))}))},e.prototype.override=function(t,e){return A(this,void 0,void 0,(function(){var i,o,n,r,a,s,l=this;return F(this,(function(u){switch(u.label){case 0:return i=t.name,o=new Map,null!==e?void 0!==(n=this._instances.get(e))&&o.set(e,n):o=this._instances,r=!1,a=[],o.forEach((function(e){var o=e.get(i);if(void 0!==o){var n=l._overrideInstance(o,t);n[1]?a.push(o.calcIndicator(l._chartStore.getDataList())):n[0]&&(r=!0)}})),[4,Promise.all(a)];case 1:return s=u.sent(),[2,[r,s.includes(!0)]]}}))}))},e}(),ft=function(){function t(t){this._crosshair={},this._activeIcon=null,this._chartStore=t}return t.prototype.setCrosshair=function(t,e){var i,o,n=this._chartStore.getDataList(),r=null!=t?t:{},a=n[o=void 0!==r.x?0>(i=this._chartStore.getTimeScaleStore().coordinateToDataIndex(r.x))?0:i>n.length-1?n.length-1:i:i=n.length-1],s=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(i),l=this._crosshair.x,u=this._crosshair.y,c=this._crosshair.paneId;this._crosshair=k(k({},r),{realX:s,kLineData:a,realDataIndex:i,dataIndex:o}),l===r.x&&u===r.y&&c===r.paneId||(null!==a&&this._chartStore.getChart().crosshairChange(this._crosshair),null!=e&&e||this._chartStore.getChart().updatePane(1))},t.prototype.recalculateCrosshair=function(t){this.setCrosshair(this._crosshair,t)},t.prototype.getCrosshair=function(){return this._crosshair},t.prototype.setActiveIcon=function(t){this._activeIcon=null!=t?t:null},t.prototype.getActiveIcon=function(){return this._activeIcon},t.prototype.clear=function(){this.setCrosshair({},!0),this.setActiveIcon()},t}();t.OverlayMode=void 0,(vt=t.OverlayMode||(t.OverlayMode={})).Normal=\\"normal\\",vt.WeakMagnet=\\"weak_magnet\\",vt.StrongMagnet=\\"strong_magnet\\";var mt=1,yt=\\"overlay_figure_\\",_t=Number.MAX_SAFE_INTEGER,xt=function(){function o(e){this.currentStep=mt,this.points=[],this._prevPressedPoint=null,this._prevPressedPoints=[];var i=e.mode,o=e.modeSensitivity,n=e.extendData,r=e.styles,a=e.totalStep,s=e.lock,l=e.visible,u=e.zLevel,c=e.needDefaultPointFigure,h=e.needDefaultXAxisFigure,d=e.needDefaultYAxisFigure,p=e.createPointFigures,v=e.createXAxisFigures,g=e.createYAxisFigures,f=e.performEventPressedMove,m=e.performEventMoveForDrawing,y=e.onDrawStart,_=e.onDrawing,x=e.onDrawEnd,S=e.onClick,C=e.onDoubleClick,b=e.onRightClick,T=e.onPressedMoveStart,w=e.onPressedMoving,E=e.onPressedMoveEnd,I=e.onMouseEnter,D=e.onMouseLeave,P=e.onRemoved,M=e.onSelected,k=e.onDeselected;this.name=e.name,this.totalStep=void 0===a||2>a?1:a,this.lock=null!=s&&s,this.visible=null==l||l,this.zLevel=null!=u?u:0,this.needDefaultPointFigure=null!=c&&c,this.needDefaultXAxisFigure=null!=h&&h,this.needDefaultYAxisFigure=null!=d&&d,this.mode=null!=i?i:t.OverlayMode.Normal,this.modeSensitivity=null!=o?o:8,this.extendData=n,this.styles=null!=r?r:{},this.createPointFigures=null!=p?p:null,this.createXAxisFigures=null!=v?v:null,this.createYAxisFigures=null!=g?g:null,this.performEventPressedMove=null!=f?f:null,this.performEventMoveForDrawing=null!=m?m:null,this.onDrawStart=null!=y?y:null,this.onDrawing=null!=_?_:null,this.onDrawEnd=null!=x?x:null,this.onClick=null!=S?S:null,this.onDoubleClick=null!=C?C:null,this.onRightClick=null!=b?b:null,this.onPressedMoveStart=null!=T?T:null,this.onPressedMoving=null!=w?w:null,this.onPressedMoveEnd=null!=E?E:null,this.onMouseEnter=null!=I?I:null,this.onMouseLeave=null!=D?D:null,this.onRemoved=null!=P?P:null,this.onSelected=null!=M?M:null,this.onDeselected=null!=k?k:null}return o.prototype.setId=function(t){return void 0===this.id&&(this.id=t,!0)},o.prototype.setGroupId=function(t){return void 0===this.groupId&&(this.groupId=t,!0)},o.prototype.setDefaultZLevel=function(t){return void 0===this.defaultZLevel&&(this.defaultZLevel=t,!0)},o.prototype.setPaneId=function(t){this.paneId=t},o.prototype.setExtendData=function(t){return t!==this.extendData&&(this.extendData=t,!0)},o.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},o.prototype.setPoints=function(t){if(t.length>0){var e=void 0;if(this.points=B([],R(t),!1),this.totalStep-1>t.length?(this.currentStep=t.length+1,e=t.length):(this.currentStep=-1,e=this.totalStep-1),null!==this.performEventMoveForDrawing)for(var i=0;e>i;i++)this.performEventMoveForDrawing({currentStep:i+2,mode:this.mode,points:this.points,performPointIndex:i,performPoint:this.points[i]});return-1===this.currentStep&&null!==this.performEventPressedMove&&this.performEventPressedMove({currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:this.points.length-1,performPoint:this.points[this.points.length-1]}),!0}return!1},o.prototype.setLock=function(t){return this.lock!==t&&(this.lock=t,!0)},o.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},o.prototype.resetZLevel=function(){this.zLevel=this.defaultZLevel},o.prototype.setZLevel=function(t){return this.zLevel!==t&&(this.zLevel=t,!0)},o.prototype.setMode=function(t){return this.mode!==t&&(this.mode=t,!0)},o.prototype.setModeSensitivity=function(t){return this.modeSensitivity!==t&&(this.modeSensitivity=t,!0)},o.prototype.setOnDrawStartCallback=function(t){return this.onDrawStart!==t&&(this.onDrawStart=t,!0)},o.prototype.setOnDrawingCallback=function(t){return this.onDrawing!==t&&(this.onDrawing=t,!0)},o.prototype.setOnDrawEndCallback=function(t){return this.onDrawEnd!==t&&(this.onDrawEnd=t,!0)},o.prototype.setOnClickCallback=function(t){return this.onClick!==t&&(this.onClick=t,!0)},o.prototype.setOnDoubleClickCallback=function(t){return this.onDoubleClick!==t&&(this.onDoubleClick=t,!0)},o.prototype.setOnRightClickCallback=function(t){return this.onRightClick!==t&&(this.onRightClick=t,!0)},o.prototype.setOnPressedMoveStartCallback=function(t){return this.onPressedMoveStart!==t&&(this.onPressedMoveStart=t,!0)},o.prototype.setOnPressedMovingCallback=function(t){return this.onPressedMoving!==t&&(this.onPressedMoving=t,!0)},o.prototype.setOnPressedMoveEndCallback=function(t){return this.onPressedMoveEnd!==t&&(this.onPressedMoveEnd=t,!0)},o.prototype.setOnMouseEnterCallback=function(t){return this.onMouseEnter!==t&&(this.onMouseEnter=t,!0)},o.prototype.setOnMouseLeaveCallback=function(t){return this.onMouseLeave!==t&&(this.onMouseLeave=t,!0)},o.prototype.setOnRemovedCallback=function(t){return this.onRemoved!==t&&(this.onRemoved=t,!0)},o.prototype.setOnSelectedCallback=function(t){return this.onSelected!==t&&(this.onSelected=t,!0)},o.prototype.setOnDeselectedCallback=function(t){return this.onDeselected!==t&&(this.onDeselected=t,!0)},o.prototype.nextStep=function(){this.currentStep===this.totalStep-1?this.currentStep=-1:this.currentStep++},o.prototype.forceComplete=function(){this.currentStep=-1},o.prototype.isDrawing=function(){return-1!==this.currentStep},o.prototype.isStart=function(){return this.currentStep===mt},o.prototype.eventMoveForDrawing=function(t){var e,i=this.currentStep-1,o={};void 0!==t.timestamp&&(o.timestamp=t.timestamp),void 0!==t.dataIndex&&(o.dataIndex=t.dataIndex),void 0!==t.value&&(o.value=t.value),this.points[i]=o,null===(e=this.performEventMoveForDrawing)||void 0===e||e.call(this,{currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:i,performPoint:o})},o.prototype.eventPressedPointMove=function(t,e){var i;void 0!==t.dataIndex&&(this.points[e].dataIndex=t.dataIndex,this.points[e].timestamp=t.timestamp),void 0!==t.value&&(this.points[e].value=t.value),null===(i=this.performEventPressedMove)||void 0===i||i.call(this,{currentStep:this.currentStep,points:this.points,mode:this.mode,performPointIndex:e,performPoint:this.points[e]})},o.prototype.startPressedMove=function(t){this._prevPressedPoint=k({},t),this._prevPressedPoints=i(this.points)},o.prototype.eventPressedOtherMove=function(t,e){var i,o;null!==this._prevPressedPoint&&(void 0!==t.dataIndex&&void 0!==this._prevPressedPoint.dataIndex&&(i=t.dataIndex-this._prevPressedPoint.dataIndex),void 0!==t.value&&void 0!==this._prevPressedPoint.value&&(o=t.value-this._prevPressedPoint.value),this.points=this._prevPressedPoints.map((function(t){var n;void 0===t.dataIndex&&void 0!==t.timestamp&&(t.dataIndex=e.timestampToDataIndex(t.timestamp));var r=k({},t);return void 0!==i&&void 0!==t.dataIndex&&(r.dataIndex=t.dataIndex+i,r.timestamp=null!==(n=e.dataIndexToTimestamp(r.dataIndex))&&void 0!==n?n:void 0),void 0!==o&&void 0!==t.value&&(r.value=t.value+o),r})))},o.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i}(o)},o}(),St={name:\\"fibonacciLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.precision,o=t.thousandsSeparator,n=t.overlay.points;if(e.length>0){var r=[],a=[],s=t.bounding.width;if(e.length>1&&void 0!==n[0].value&&void 0!==n[1].value){var l=e[0].y-e[1].y,u=n[0].value-n[1].value;[1,.786,.618,.5,.382,.236,0].forEach((function(t){var c,h=e[1].y+l*t,d=E(((null!==(c=n[1].value)&&void 0!==c?c:0)+u*t).toFixed(i.price),o);r.push({coordinates:[{x:0,y:h},{x:s,y:h}]}),a.push({x:0,y:h,text:\\"\\".concat(d,\\" (\\").concat((100*t).toFixed(1),\\"%)\\"),baseline:\\"bottom\\"})}))}return[{type:\\"line\\",attrs:r},{type:\\"text\\",isCheckEvent:!1,attrs:a}]}return[]}},Ct={name:\\"horizontalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i={x:0,y:e[0].y};return void 0!==e[1]&&e[1].x>e[0].x&&(i.x=t.bounding.width),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},bt=function(){function t(){this._children=[],this._callbacks=new Map}return t.prototype.registerEvent=function(t,e){return this._callbacks.set(t,e),this},t.prototype.onEvent=function(t,e,i){var o=this._callbacks.get(t);return!(void 0===o||!this.checkEventOn(e))&&o(e,i)},t.prototype.checkEventOn=function(t){var e,i;try{for(var o=L(this._children),n=o.next();!n.done;n=o.next()){if(n.value.checkEventOn(t))return!0}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return!1},t.prototype.dispatchEvent=function(t,e,i){var o=this._children.length-1;if(o>-1)for(var n=o;n>-1;n--)if(this._children[n].dispatchEvent(t,e,i))return!0;return this.onEvent(t,e,i)},t.prototype.addChild=function(t){return this._children.push(t),this},t.prototype.clear=function(){this._children=[]},t}(),Tt=2,wt=function(t){function e(e){var i=t.call(this)||this;return i.attrs=e.attrs,i.styles=e.styles,i}return P(e,t),e.prototype.checkEventOn=function(t){return this.checkEventOnImp(t,this.attrs,this.styles)},e.prototype.draw=function(t){this.drawImp(t,this.attrs,this.styles)},e.extend=function(t){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.checkEventOnImp=function(e,i,o){return t.checkEventOn(e,i,o)},i.prototype.drawImp=function(e,i,o){t.draw(e,i,o)},i}(e);return i},e}(bt);function Et(t,e){return Math.sqrt(Math.pow(t.x+e.x,2)+Math.pow(t.y+e.y,2))}function It(t){var e=Et(t[0],t[1]),i=e+Et(t[1],t[2]),o=[t[2].x-t[0].x,t[2].y-t[0].y];return[{x:t[1].x-.5*o[0]*e/i,y:t[1].y-.5*o[1]*e/i},{x:t[1].x+.5*o[0]*e/i,y:t[1].y+.5*o[1]*e/i}]}function Dt(t,e){var i=e.coordinates;if(i.length>1)for(var o=1;i.length>o;o++){var n=i[o-1],r=i[o];if(n.x===r.x){if(Tt+Tt>Math.abs(n.y-t.y)+Math.abs(r.y-t.y)-Math.abs(n.y-r.y)&&Tt>Math.abs(t.x-n.x))return!0}else{var a=kt(n,r),s=Pt(a,t),l=Math.abs(s-t.y);if(Tt+Tt>Math.abs(n.x-t.x)+Math.abs(r.x-t.x)-Math.abs(n.x-r.x)&&Tt*Tt>l*l/(a[0]*a[0]+1))return!0}}return!1}function Pt(t,e){return null!=t?e.x*t[0]+t[1]:e.y}function Mt(t,e,i){return Pt(kt(t,e),i)}function kt(t,e){var i=t.x-e.x;if(0!==i){var o=(t.y-e.y)/i;return[o,t.y-o*t.x]}return null}function At(e,i,o){var n=i.coordinates,r=n.length;if(r>1){var a=o.style,s=void 0===a?t.LineType.Solid:a,l=o.smooth,u=o.size,c=o.color,h=void 0===c?\\"currentColor\\":c,d=o.dashedValue,p=void 0===d?[2,2]:d;if(e.lineWidth=void 0===u?1:u,e.strokeStyle=h,e.setLineDash(s===t.LineType.Dashed?p:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y),null!=l&&l){for(var v=[],g=1;r-1>g;g++)v=v.concat(It([n[g-1],n[g],n[g+1]]));e.quadraticCurveTo(v[0].x,v[0].y,n[1].x,n[1].y);for(var f=2;r-1>f;f++)e.bezierCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,v[2*(f-1)].x,v[2*(f-1)].y,n[f].x,n[f].y);e.quadraticCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,n[f].x,n[f].y)}else for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.stroke(),e.closePath()}}var Ft={name:\\"line\\",checkEventOn:Dt,draw:function(t,e,i){At(t,e,i)}};function Lt(t,e,i){var o=null!=i?i:0,n=[];if(t.length>1)if(t[0].x===t[1].x){var r=e.height;if(n.push({coordinates:[{x:t[0].x,y:0},{x:t[0].x,y:r}]}),t.length>2){n.push({coordinates:[{x:t[2].x,y:0},{x:t[2].x,y:r}]});for(var a=t[0].x-t[2].x,s=0;o>s;s++){var l=a*(s+1);n.push({coordinates:[{x:t[0].x+l,y:0},{x:t[0].x+l,y:r}]})}}}else{var u=e.width,c=kt(t[0],t[1]),h=c[0],d=c[1];if(n.push({coordinates:[{x:0,y:0*h+d},{x:u,y:u*h+d}]}),t.length>2){var p=t[2].y-h*t[2].x;n.push({coordinates:[{x:0,y:0*h+p},{x:u,y:u*h+p}]});for(a=d-p,s=0;o>s;s++){var v=d+a*(s+1);n.push({coordinates:[{x:0,y:0*h+v},{x:u,y:u*h+v}]})}}}return n}function Rt(t,e){if(t.length>1){var i=void 0;return i=t[0].x===t[1].x&&t[0].y!==t[1].y?t[1].y>t[0].y?{x:t[0].x,y:e.height}:{x:t[0].x,y:0}:t[0].x>t[1].x?{x:0,y:Mt(t[0],t[1],{x:0,y:t[0].y})}:{x:e.width,y:Mt(t[0],t[1],{x:e.width,y:t[0].y})},{coordinates:[t[0],i]}}return[]}var Bt={name:\\"simpleAnnotation\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"},line:{style:t.LineType.Dashed}},createPointFigures:function(t){var e,i,o=t.overlay,r=t.coordinates;s(o.extendData)&&(i=n(o.extendData)?o.extendData(o):null!==(e=o.extendData)&&void 0!==e?e:\\"\\");var a=r[0].x,l=r[0].y-6,u=l-50,c=u-5;return[{type:\\"line\\",attrs:{coordinates:[{x:a,y:l},{x:a,y:u}]},ignoreEvent:!0},{type:\\"polygon\\",attrs:{coordinates:[{x:a,y:u},{x:a-4,y:c},{x:a+4,y:c}]},ignoreEvent:!0},{type:\\"text\\",attrs:{x:a,y:c,text:null!=i?i:\\"\\",align:\\"center\\",baseline:\\"bottom\\"},ignoreEvent:!0}]}},Ot={name:\\"simpleTag\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}},createPointFigures:function(t){var e=t.coordinates;return{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]},ignoreEvent:!0}},createYAxisFigures:function(t){var e,i,o,r,a,l=t.overlay,u=t.coordinates,c=t.bounding,h=t.yAxis,d=t.precision;return null!==(e=null==h?void 0:h.isFromZero())&&void 0!==e&&e?(o=\\"left\\",r=0):(o=\\"right\\",r=c.width),s(l.extendData)&&(a=n(l.extendData)?l.extendData(l):null!==(i=l.extendData)&&void 0!==i?i:\\"\\"),s(a)||void 0===l.points[0].value||(a=T(l.points[0].value,d.price)),{type:\\"text\\",attrs:{x:r,y:u[0].y,text:null!=a?a:\\"\\",align:o,baseline:\\"middle\\"}}}},Vt={};function Nt(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null}function Wt(t){var i={width:0,height:0,left:0,right:0,top:0,bottom:0};return void 0!==t&&e(i,t),i}[St,Ct,{name:\\"horizontalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=[];return 2===e.length&&i.push({coordinates:e}),[{type:\\"line\\",attrs:i}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},{name:\\"horizontalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]}}]}},{name:\\"parallelStraightLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding)}]}},{name:\\"priceChannelLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding,1)}]}},{name:\\"priceLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.thousandsSeparator,o=t.overlay.points[0].value;return[{type:\\"line\\",attrs:{coordinates:[e[0],{x:t.bounding.width,y:e[0].y}]}},{type:\\"text\\",ignoreEvent:!0,attrs:{x:e[0].x,y:e[0].y,text:E((void 0===o?0:o).toFixed(t.precision.price),i),baseline:\\"bottom\\"}}]}},{name:\\"rayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Rt(t.coordinates,t.bounding)}]}},{name:\\"segment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]}},{name:\\"straightLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.bounding;return 2===e.length?e[0].x===e[1].x?[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:i.height}]}}]:[{type:\\"line\\",attrs:{coordinates:[{x:0,y:Mt(e[0],e[1],{x:0,y:e[0].y})},{x:i.width,y:Mt(e[0],e[1],{x:i.width,y:e[0].y})}]}}]:[]}},{name:\\"verticalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;if(2===e.length){var i={x:e[0].x,y:0};return e[1].y>e[0].y&&(i.y=t.bounding.height),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]}return[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:t.bounding.height}]}}]}},Bt,Ot].forEach((function(t){Vt[t.name]=xt.extend(t)}));var zt=\\"main\\",Yt=\\"xAxis\\",Xt=\\"yAxis\\",Ht=\\"separator\\",jt=function(t){function i(e,i){var o=t.call(this)||this;return o._bounding=Wt(),o._pane=i,o._init(e),o}return P(i,t),i.prototype._init=function(t){if(this._container=Y(\\"div\\",this.getContainerStyle()),this.insertBefore()){var e=t.lastChild;null!==e?t.insertBefore(this._container,e):t.appendChild(this._container)}else t.appendChild(this._container);this.initDom(this._container)},i.prototype.setBounding=function(t){return e(this._bounding,t),this},i.prototype.getContainer=function(){return this._container},i.prototype.getBounding=function(){return this._bounding},i.prototype.getPane=function(){return this._pane},i.prototype.update=function(t){this.updateImp(this._container,this._bounding,null!=t?t:3)},i.prototype.insertBefore=function(){return!1},i}(bt);var Zt=function(e){function i(t,i){var o,n,r,a=e.call(this,t,i)||this;return a._dragFlag=!1,a._dragStartY=0,a._topPaneHeight=0,a._currentPaneHeight=0,a._pressedMouseMoveEvent=(o=a._pressedTouchMouseMoveEvent,n=20,r=0,function(){var t=Date.now();t-r>(null!=n?n:20)&&(o.apply(this,arguments),r=t)}),a.registerEvent(\\"touchStartEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"touchMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"touchEndEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"mouseDownEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"mouseUpEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"pressedMouseMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"mouseEnterEvent\\",a._mouseEnterEvent.bind(a)).registerEvent(\\"mouseLeaveEvent\\",a._mouseLeaveEvent.bind(a)),a}return P(i,e),i.prototype.getName=function(){return Ht},i.prototype.checkEventOn=function(){return!0},i.prototype._mouseDownEvent=function(t){var e,i;this._dragFlag=!0,this._dragStartY=t.pageY;var o=this.getPane();return this._topPaneHeight=null!==(i=null===(e=o.getTopPane())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,this._currentPaneHeight=o.getBounding().height,!0},i.prototype._mouseUpEvent=function(){return this._dragFlag=!1,this._mouseLeaveEvent()},i.prototype._pressedTouchMouseMoveEvent=function(e){var i=e.pageY-this._dragStartY,o=this.getPane(),n=o.getTopPane(),r=0>i;if(null!==n&&o.getOptions().dragEnabled){var a=void 0,s=void 0,l=void 0,u=void 0;r?(a=n,s=o,l=this._topPaneHeight,u=this._currentPaneHeight):(a=o,s=n,l=this._currentPaneHeight,u=this._topPaneHeight);var c=a.getOptions().minHeight;if(l>c){var h=Math.max(l-Math.abs(i),c),d=l-h;a.setBounding({height:h}),s.setBounding({height:u+d});var p=o.getChart();p.getChartStore().getActionStore().execute(t.ActionType.OnPaneDrag,{paneId:o.getId}),p.adjustPaneViewport(!0,!0,!0,!0,!0)}}return!0},i.prototype._mouseEnterEvent=function(){var t=this.getPane();if(t.getOptions().dragEnabled){var e=t.getChart().getStyles().separator;return this._moveDom.style.background=e.activeBackgroundColor,!0}return!1},i.prototype._mouseLeaveEvent=function(){return!this._dragFlag&&(this._moveDom.style.background=\\"\\",!0)},i.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",boxSizing:\\"border-box\\"}},i.prototype.insertBefore=function(){return!0},i.prototype.initDom=function(t){this._moveDom=Y(\\"div\\",{width:\\"100%\\",height:\\"\\".concat(7,\\"px\\"),margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"-3px\\",zIndex:\\"20\\",boxSizing:\\"border-box\\",cursor:\\"ns-resize\\"}),t.appendChild(this._moveDom)},i.prototype.updateImp=function(t,e,i){if(4===i||2===i){var o=this.getPane().getChart().getStyles().separator;this._moveDom.style.top=\\"\\".concat(-Math.floor((7-o.size)/2),\\"px\\"),this._moveDom.style.height=\\"\\".concat(7,\\"px\\");var n=o.fill;t.style.backgroundColor=o.color,t.style.height=\\"\\".concat(o.size,\\"px\\"),t.style.marginLeft=\\"\\".concat(n?0:e.left,\\"px\\"),t.style.width=n?\\"100%\\":\\"\\".concat(e.width,\\"px\\")}},i.prototype.getImage=function(){var t=this.getPane().getChart().getStyles().separator,e=this.getContainer().offsetWidth,i=t.size,o=Y(\\"canvas\\",{width:\\"\\".concat(e,\\"px\\"),height:\\"\\".concat(i,\\"px\\"),boxSizing:\\"border-box\\"}),n=o.getContext(\\"2d\\"),r=X(o);return o.width=e*r,o.height=i*r,n.scale(r,r),n.fillStyle=t.color,n.fillRect(this.getBounding().left,0,e,i),o},i}(jt),Gt=30,Kt={CANDLE:\\"candle_pane\\",INDICATOR:\\"indicator_pane_\\",XAXIS:\\"xaxis_pane\\"},Ut=function(){function t(t,e,i,o,n){this._yAxisWidget=null,this._separatorWidget=null,this._axis=this.createAxisComponent(),this._bounding=Wt(),this._options={minHeight:Gt,dragEnabled:!0,gap:{top:.2,bottom:.1},axisOptions:{scrollZoomEnabled:!0}},this._chart=e,this._id=i,this._topPane=null!=o?o:null,this._bottomPane=null!=n?n:null,this._init(t)}return t.prototype._init=function(t){this._container=t,this._seriesContainer=Y(\\"div\\",{width:\\"100%\\",margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}),this._separatorWidget=this.createSeparatorWidget(t);var e=t.lastChild;null!==e?t.insertBefore(this._seriesContainer,e):t.appendChild(this._seriesContainer),this._mainWidget=this.createMainWidget(this._seriesContainer),this._yAxisWidget=this.createYAxisWidget(this._seriesContainer)},t.prototype.getContainer=function(){return this._seriesContainer},t.prototype.getId=function(){return this._id},t.prototype.setOptions=function(t){var i,o,n,r,a;return e(this._options,t),this.getId()===Kt.XAXIS?(r=this.getMainWidget().getContainer(),a=\\"ew-resize\\"):(r=null===(i=this.getYAxisWidget())||void 0===i?void 0:i.getContainer(),a=\\"ns-resize\\"),r.style.cursor=null===(n=null===(o=t.axisOptions)||void 0===o?void 0:o.scrollZoomEnabled)||void 0===n||n?a:\\"default\\",this},t.prototype.getOptions=function(){return this._options},t.prototype.getChart=function(){return this._chart},t.prototype.getAxisComponent=function(){return this._axis},t.prototype.setBounding=function(t,i,o){var n,r,a;e(this._bounding,t);var s=0;if(null!==this._separatorWidget){s=this._chart.getStyles().separator.size;var l=k(k({},t),{height:7});void 0!==t.top&&(l.top=t.top-Math.floor((7-s)/2)),this._separatorWidget.setBounding(l)}var u={};return void 0!==t.height&&(u.height=t.height-s),void 0!==t.top&&(u.top=t.top+s),this._mainWidget.setBounding(u),null===(n=this._yAxisWidget)||void 0===n||n.setBounding(u),void 0!==i&&(this._mainWidget.setBounding(i),null===(r=this._separatorWidget)||void 0===r||r.setBounding(i)),void 0!==o&&(null===(a=this._yAxisWidget)||void 0===a||a.setBounding(o)),this},t.prototype.getTopPane=function(){return this._topPane},t.prototype.setTopPane=function(t){return this._topPane=t,this},t.prototype.getBottomPane=function(){return this._bottomPane},t.prototype.setBottomPane=function(t){return this._bottomPane=t,this},t.prototype.getBounding=function(){return this._bounding},t.prototype.getMainWidget=function(){return this._mainWidget},t.prototype.getYAxisWidget=function(){return this._yAxisWidget},t.prototype.getSeparatorWidget=function(){return this._separatorWidget},t.prototype.update=function(t){var e,i;this._bounding.width!==this._seriesContainer.offsetWidth&&(this._seriesContainer.style.width=\\"\\".concat(this._bounding.width,\\"px\\"));var o=this._mainWidget.getBounding().height;o!==this._seriesContainer.offsetHeight&&(this._seriesContainer.style.height=\\"\\".concat(o,\\"px\\"));var n=null!=t?t:3;this._mainWidget.update(n),null===(e=this._yAxisWidget)||void 0===e||e.update(n),null===(i=this._separatorWidget)||void 0===i||i.update(n)},t.prototype.getImage=function(t){var e=this._bounding,i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);n.width=i*a,n.height=o*a,r.scale(a,a);var s=0;if(null!=this._separatorWidget){var l=this.getChart().getStyles().separator.size;s=l,r.drawImage(this._separatorWidget.getImage(),0,0,i,l)}var u=this._mainWidget.getBounding();if(r.drawImage(this._mainWidget.getImage(t),u.left,s,u.width,u.height),null!==this._yAxisWidget){var c=this._yAxisWidget.getBounding();r.drawImage(this._yAxisWidget.getImage(t),c.left,s,c.width,c.height)}return n},t.prototype.destroy=function(){this._container.removeChild(this._seriesContainer),null!==this._separatorWidget&&this._container.removeChild(this._separatorWidget.getContainer())},t.prototype.createSeparatorWidget=function(t){return null},t.prototype.createYAxisWidget=function(t){return null},t}(),qt=function(){function t(t){this._instances=new Map,this._counter=new Map,this._progressInstanceInfo=null,this._pressedInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._hoverInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._clickInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._chartStore=t}return t.prototype._overrideInstance=function(t,e){var i=e.id,o=e.groupId,n=e.points,r=e.styles,a=e.lock,s=e.visible,l=e.zLevel,u=e.mode,c=e.modeSensitivity,h=e.extendData,d=e.onDrawStart,p=e.onDrawing,v=e.onDrawEnd,g=e.onClick,f=e.onDoubleClick,m=e.onRightClick,y=e.onPressedMoveStart,_=e.onPressedMoving,x=e.onPressedMoveEnd,S=e.onMouseEnter,C=e.onMouseLeave,b=e.onRemoved,T=e.onSelected,w=e.onDeselected,E=!1,I=!1;return void 0!==i&&t.setId(i),void 0!==o&&t.setGroupId(o),void 0!==n&&t.setPoints(n)&&(E=!0),void 0!==r&&t.setStyles(r)&&(E=!0),void 0!==a&&t.setLock(a),void 0!==s&&t.setVisible(s)&&(E=!0),void 0!==l&&t.setZLevel(l)&&(E=!0,I=!0),void 0!==u&&t.setMode(u),void 0!==c&&t.setModeSensitivity(c),void 0!==h&&t.setExtendData(h)&&(E=!0),void 0!==d&&t.setOnDrawStartCallback(d),void 0!==p&&t.setOnDrawingCallback(p),void 0!==v&&t.setOnDrawEndCallback(v),void 0!==g&&t.setOnClickCallback(g),void 0!==f&&t.setOnDoubleClickCallback(f),void 0!==m&&t.setOnRightClickCallback(m),void 0!==y&&t.setOnPressedMoveStartCallback(y),void 0!==_&&t.setOnPressedMovingCallback(_),void 0!==x&&t.setOnPressedMoveEndCallback(x),void 0!==S&&t.setOnMouseEnterCallback(S),void 0!==C&&t.setOnMouseLeaveCallback(C),void 0!==b&&t.setOnRemovedCallback(b),void 0!==T&&t.setOnSelectedCallback(T),void 0!==w&&t.setOnDeselectedCallback(w),[E,I]},t.prototype.getInstanceById=function(t){var e,i;try{for(var o=L(this._instances),n=o.next();!n.done;n=o.next()){var r=n.value[1].find((function(e){return e.id===t}));if(void 0!==r)return r}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return null!==this._progressInstanceInfo&&this._progressInstanceInfo.instance.id===t?this._progressInstanceInfo.instance:null},t.prototype._sort=function(t){var e;void 0!==t?null===(e=this._instances.get(t))||void 0===e||e.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel})):this._instances.forEach((function(t){t.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel}))}))},t.prototype.addInstances=function(t,e,i){var o=this,n=t.map((function(t){var n,r,a,s,l,u=null!==(n=t.id)&&void 0!==n?n:z(\\"overlay_\\");if(null===o.getInstanceById(u)){var c=Nt(t.name);if(null!==c){var h=new c,d=(null!==(r=o._counter.get(e))&&void 0!==r?r:0)+1;o._counter.set(e,d),h.setDefaultZLevel(d),h.setPaneId(e);var p=null!==(a=t.groupId)&&void 0!==a?a:u;return t.id=u,t.groupId=p,o._overrideInstance(h,t),h.isDrawing()?o._progressInstanceInfo={paneId:e,instance:h,appointPaneFlag:i}:(o._instances.has(e)||o._instances.set(e,[]),null===(s=o._instances.get(e))||void 0===s||s.push(h)),h.isStart()&&(null===(l=h.onDrawStart)||void 0===l||l.call(h,{overlay:h})),u}}return null}));return n.some((function(t){return null!==t}))&&(this._sort(),this._chartStore.getChart().updatePane(1,e)),n},t.prototype.getProgressInstanceInfo=function(){return this._progressInstanceInfo},t.prototype.progressInstanceComplete=function(){var t;if(null!==this._progressInstanceInfo){var e=this._progressInstanceInfo,i=e.instance,o=e.paneId;i.isDrawing()||(this._instances.has(o)||this._instances.set(o,[]),null===(t=this._instances.get(o))||void 0===t||t.push(i),this._sort(o),this._progressInstanceInfo=null)}},t.prototype.updateProgressInstanceInfo=function(t,e){null!==this._progressInstanceInfo&&(void 0!==e&&e&&(this._progressInstanceInfo.appointPaneFlag=e),this._progressInstanceInfo.paneId=t,this._progressInstanceInfo.instance.setPaneId(t))},t.prototype.getInstances=function(t){var e;if(void 0===t){var i=[];return this._instances.forEach((function(t){i=i.concat(t)})),i}return null!==(e=this._instances.get(t))&&void 0!==e?e:[]},t.prototype.override=function(t){var e=this,i=t.id,o=t.groupId,n=t.name,r=!1,a=!1,s=function(i){var o=e._overrideInstance(i,t);o[0]&&(r=!0),o[1]&&(a=!0)};if(void 0!==i){var l=this.getInstanceById(i);null!==l&&s(l)}else if(this._instances.forEach((function(t){t.forEach((function(t){(void 0!==n&&t.name===n||void 0!==o&&t.groupId===o||void 0===n&&void 0===o)&&s(t)}))})),null!==this._progressInstanceInfo){var u=this._progressInstanceInfo.instance;(void 0!==n&&u.name===n||void 0!==o&&u.groupId===o||void 0===n&&void 0===o)&&s(u)}a&&this._sort(),r&&this._chartStore.getChart().updatePane(1)},t.prototype.removeInstance=function(t){var e,i,o,n=function(t,e){if(void 0!==t.id){if(e.id!==t.id)return!1}else if(void 0!==t.groupId){if(e.groupId!==t.groupId)return!1}else if(void 0!==t.name&&e.name!==t.name)return!1;return!0},r=[];if(null!==this._progressInstanceInfo){var a=this._progressInstanceInfo.instance;(void 0===t||void 0!==t&&n(t,a))&&(r.push(this._progressInstanceInfo.paneId),null===(o=a.onRemoved)||void 0===o||o.call(a,{overlay:a}),this._progressInstanceInfo=null)}if(void 0!==t){var s=new Map,l=function(e){var i=e[1].filter((function(i){var o;return!n(t,i)||(r.includes(e[0])||r.push(e[0]),null===(o=i.onRemoved)||void 0===o||o.call(i,{overlay:i}),!1)}));i.length>0&&s.set(e[0],i)};try{for(var u=L(this._instances),c=u.next();!c.done;c=u.next()){l(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}this._instances=s}else this._instances.forEach((function(t,e){r.push(e),t.forEach((function(t){var e;null===(e=t.onRemoved)||void 0===e||e.call(t,{overlay:t})}))})),this._instances.clear();if(r.length>0){var h=this._chartStore.getChart();r.forEach((function(t){h.updatePane(1,t)})),h.updatePane(1,Kt.XAXIS)}},t.prototype.setPressedInstanceInfo=function(t){this._pressedInstanceInfo=t},t.prototype.getPressedInstanceInfo=function(){return this._pressedInstanceInfo},t.prototype.setHoverInstanceInfo=function(t,e){var i,o,r=this._hoverInstanceInfo,a=r.instance,s=r.figureKey,l=r.figureIndex;if(((null==a?void 0:a.id)!==(null===(i=t.instance)||void 0===i?void 0:i.id)||r.figureType!==t.figureType||l!==t.figureIndex)&&(this._hoverInstanceInfo=t,(null==a?void 0:a.id)!==(null===(o=t.instance)||void 0===o?void 0:o.id))){var u=!1,c=!1;null!==a&&(c=!0,a.resetZLevel(),n(a.onMouseLeave)&&(a.onMouseLeave(k({overlay:a,figureKey:s,figureIndex:l},e)),u=!0)),null!==t.instance&&(c=!0,t.instance.setZLevel(_t),n(t.instance.onMouseEnter)&&(t.instance.onMouseEnter(k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),u=!0)),c&&this._sort(),u||this._chartStore.getChart().updatePane(1)}},t.prototype.getHoverInstanceInfo=function(){return this._hoverInstanceInfo},t.prototype.setClickInstanceInfo=function(t,e){var i,o,n,r,a,s,l,u,c,h=this._clickInstanceInfo,d=h.paneId,p=h.instance,v=h.figureType,g=h.figureKey,f=h.figureIndex;if(null!==(o=null===(i=t.instance)||void 0===i?void 0:i.isDrawing())&&void 0!==o&&o||null===(r=null===(n=t.instance)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),((null==p?void 0:p.id)!==(null===(a=t.instance)||void 0===a?void 0:a.id)||v!==t.figureType||f!==t.figureIndex)&&(this._clickInstanceInfo=t,(null==p?void 0:p.id)!==(null===(s=t.instance)||void 0===s?void 0:s.id))){null===(l=null==p?void 0:p.onDeselected)||void 0===l||l.call(p,k({overlay:p,figureKey:g,figureIndex:f},e)),null===(c=null===(u=t.instance)||void 0===u?void 0:u.onSelected)||void 0===c||c.call(u,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e));var m=this._chartStore.getChart();m.updatePane(1,t.paneId),d!==t.paneId&&m.updatePane(1,d),m.updatePane(1,Kt.XAXIS)}},t.prototype.getClickInstanceInfo=function(){return this._clickInstanceInfo},t.prototype.isEmpty=function(){return 0===this._instances.size&&null===this._progressInstanceInfo},t.prototype.isDrawing=function(){var t,e;return null!==this._progressInstanceInfo&&null!==(e=null===(t=this._progressInstanceInfo)||void 0===t?void 0:t.instance.isDrawing())&&void 0!==e&&e},t}(),$t=function(){function t(){this._actions=new Map}return t.prototype.execute=function(t,e){var i;null===(i=this._actions.get(t))||void 0===i||i.execute(e)},t.prototype.subscribe=function(t,e){var i;this._actions.has(t)||this._actions.set(t,new V),null===(i=this._actions.get(t))||void 0===i||i.subscribe(e)},t.prototype.unsubscribe=function(t,e){var i=this._actions.get(t);void 0!==i&&(i.unsubscribe(e),i.isEmpty()&&this._actions.delete(t))},t.prototype.has=function(t){var e=this._actions.get(t);return void 0!==e&&!e.isEmpty()},t}(),Jt={light:{grid:{horizontal:{color:\\"#EDEDED\\"},vertical:{color:\\"#EDEDED\\"}},candle:{priceMark:{high:{color:\\"#76808F\\"},low:{color:\\"#76808F\\"}},tooltip:{rect:{color:\\"#FEFEFE\\",borderColor:\\"#F2F3F5\\"},text:{color:\\"#76808F\\"}}},indicator:{tooltip:{text:{color:\\"#76808F\\"}}},xAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},yAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},separator:{color:\\"#DDDDDD\\"},crosshair:{horizontal:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}},vertical:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}}}},dark:{grid:{horizontal:{color:\\"#292929\\"},vertical:{color:\\"#292929\\"}},candle:{priceMark:{high:{color:\\"#929AA5\\"},low:{color:\\"#929AA5\\"}},tooltip:{rect:{color:\\"rgba(10, 10, 10, .6)\\",borderColor:\\"rgba(10, 10, 10, .6)\\"},text:{color:\\"#929AA5\\"}}},indicator:{tooltip:{text:{color:\\"#929AA5\\"}}},xAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},yAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},separator:{color:\\"#333333\\"},crosshair:{horizontal:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}},vertical:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}}}}};function Qt(t){var e;return null!==(e=Jt[t])&&void 0!==e?e:null}var te=function(){function i(e,i){this._styles={grid:{show:!0,horizontal:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]},vertical:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]}},candle:{type:t.CandleType.CandleSolid,bar:{upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",upBorderColor:\\"#2DC08E\\",downBorderColor:\\"#F92855\\",noChangeBorderColor:\\"#888888\\",upWickColor:\\"#2DC08E\\",downWickColor:\\"#F92855\\",noChangeWickColor:\\"#888888\\"},area:{lineSize:2,lineColor:\\"#1677FF\\",value:\\"close\\",backgroundColor:[{offset:0,color:\\"rgba(22, 119, 255, 0.01)\\"},{offset:1,color:\\"rgba(22, 119, 255, 0.2)\\"}]},priceMark:{show:!0,high:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},low:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},last:{show:!0,upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,4],size:1},text:{show:!0,style:t.PolygonType.Fill,size:12,paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderColor:\\"transparent\\",borderStyle:t.LineType.Solid,borderSize:0,borderDashedValue:[2,2],color:\\"#FFFFFF\\",family:\\"Helvetica Neue\\",weight:\\"normal\\",borderRadius:2}}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,custom:null,defaultValue:\\"n/a\\",rect:{position:g.Fixed,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:8,offsetLeft:10,offsetTop:8,offsetRight:10,offsetBottom:8,borderRadius:4,borderSize:1,borderColor:\\"#F2F3F5\\",color:\\"#FEFEFE\\"},text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},indicator:{ohlc:{upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"},bars:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lines:[{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#FF9600\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#935EBD\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#1677FF\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#E11D74\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#01C5C4\\"}],circles:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lastValueMark:{show:!1,text:{show:!1,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderColor:\\"transparent\\",borderSize:1,borderDashedValue:[2,2],paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderRadius:2}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,showName:!0,showParams:!0,defaultValue:\\"n/a\\",text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},xAxis:{show:!0,size:\\"auto\\",axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},yAxis:{show:!0,size:\\"auto\\",type:t.YAxisType.Normal,position:t.YAxisPosition.Right,inside:!1,reverse:!1,axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},separator:{size:1,color:\\"#DDDDDD\\",fill:!0,activeBackgroundColor:\\"rgba(33, 150, 243, 0.08)\\"},crosshair:{show:!0,horizontal:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderColor:\\"#686D76\\",borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}},vertical:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#686D76\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}}},overlay:{point:{color:\\"#1677FF\\",borderColor:\\"rgba(22, 119, 255, 0.35)\\",borderSize:1,radius:5,activeColor:\\"#1677FF\\",activeBorderColor:\\"rgba(22, 119, 255, 0.35)\\",activeBorderSize:3,activeRadius:5},line:{style:t.LineType.Solid,smooth:!1,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},rect:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderRadius:0,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},polygon:{style:t.PolygonType.Fill,color:\\"#1677FF\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},circle:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},arc:{style:t.LineType.Solid,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},text:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:0,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,backgroundColor:\\"transparent\\"},rectText:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}}},this._customApi={formatDate:b,formatBigNumber:w},this._locale=I,this._precision={price:2,volume:0},this._thousandsSeparator=\\",\\",this._dataList=[],this._timeScaleStore=new it(this),this._indicatorStore=new gt(this),this._overlayStore=new qt(this),this._tooltipStore=new ft(this),this._actionStore=new $t,this._visibleDataList=[],this._chart=e,this.setOptions(i)}return i.prototype.adjustVisibleDataList=function(){this._visibleDataList=[];for(var t=this._timeScaleStore.getVisibleRange(),e=t.to,i=t.from;e>i;i++){var o=this._dataList[i],n=this._timeScaleStore.dataIndexToCoordinate(i);this._visibleDataList.push({dataIndex:i,x:n,data:o})}},i.prototype.setOptions=function(t){if(void 0!==t){var i=t.locale,o=t.timezone,n=t.styles,r=t.customApi;void 0!==i&&(this._locale=i),void 0!==o&&this._timeScaleStore.setTimezone(o),void 0!==n&&(u(n)?e(this._styles,Qt(n)):e(this._styles,n)),void 0!==r&&e(this._customApi,r),void 0!==t.thousandsSeparator&&(this._thousandsSeparator=t.thousandsSeparator)}return this},i.prototype.getStyles=function(){return this._styles},i.prototype.getLocale=function(){return this._locale},i.prototype.getCustomApi=function(){return this._customApi},i.prototype.getThousandsSeparator=function(){return this._thousandsSeparator},i.prototype.getPrecision=function(){return this._precision},i.prototype.setPrecision=function(t){return this._precision=t,this._indicatorStore.setSeriesPrecision(t),this},i.prototype.getDataList=function(){return this._dataList},i.prototype.getVisibleDataList=function(){return this._visibleDataList},i.prototype.addData=function(t,e,i){if(o(t)){this._timeScaleStore.setLoading(!1),this._timeScaleStore.setMore(null==i||i);var n=0===this._dataList.length;this._dataList=t.concat(this._dataList),n&&this._timeScaleStore.resetOffsetRightDistance(),this._timeScaleStore.adjustVisibleRange()}else{if(er&&this._timeScaleStore.setOffsetRightBarCount(--r),this._timeScaleStore.adjustVisibleRange()}}this._tooltipStore.recalculateCrosshair(!0)},i.prototype.clear=function(){this._dataList=[],this._visibleDataList=[],this._timeScaleStore.clear(),this._tooltipStore.clear()},i.prototype.getTimeScaleStore=function(){return this._timeScaleStore},i.prototype.getIndicatorStore=function(){return this._indicatorStore},i.prototype.getOverlayStore=function(){return this._overlayStore},i.prototype.getTooltipStore=function(){return this._tooltipStore},i.prototype.getActionStore=function(){return this._actionStore},i.prototype.getChart=function(){return this._chart},i}();function ee(t){return null==window.requestAnimationFrame?window.setTimeout(t,20):window.requestAnimationFrame(t)}function ie(t){null==window.cancelAnimationFrame&&window.clearTimeout(t),window.cancelAnimationFrame(t)}var oe=-1,ne=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._mainRequestAnimationId=oe,e._overlayRequestAnimationId=oe,e}return P(e,t),e.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"0\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}},e.prototype.initDom=function(t){this._mainCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._mainCtx=this._mainCanvas.getContext(\\"2d\\"),this._overlayCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._overlayCtx=this._overlayCanvas.getContext(\\"2d\\"),t.appendChild(this._mainCanvas),t.appendChild(this._overlayCanvas)},e.prototype._optimalUpdateMain=function(t,e){var i=this;this._mainRequestAnimationId!==oe&&(ie(this._mainRequestAnimationId),this._mainRequestAnimationId=oe),this._mainRequestAnimationId=ee((function(){if(t!==i._mainCanvas.offsetWidth||e!==i._mainCanvas.offsetHeight){i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);var o=X(i._mainCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._mainCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._mainCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._mainCanvas.width=n,i._mainCanvas.height=r,i._mainCtx.scale(o,o)}else i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);i.updateMain(i._mainCtx)}))},e.prototype._optimalUpdateOverlay=function(t,e){var i=this;this._overlayRequestAnimationId!==oe&&(ie(this._overlayRequestAnimationId),this._overlayRequestAnimationId=oe),this._overlayRequestAnimationId=ee((function(){if(t!==i._overlayCanvas.offsetWidth||e!==i._overlayCanvas.offsetHeight){i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);var o=X(i._overlayCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._overlayCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._overlayCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._overlayCanvas.width=n,i._overlayCanvas.height=r,i._overlayCtx.scale(o,o)}else i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);i.updateOverlay(i._overlayCtx)}))},e.prototype.updateImp=function(t,e,i){var o=e.width,n=e.height;t.style.left=\\"\\".concat(e.left,\\"px\\");var r=i;switch(o===t.offsetWidth&&n===t.offsetHeight||(t.style.width=\\"\\".concat(o,\\"px\\"),t.style.height=\\"\\".concat(n,\\"px\\"),r=3),r){case 0:this._optimalUpdateMain(o,n);break;case 1:this._optimalUpdateOverlay(o,n);break;case 3:case 4:this._optimalUpdateMain(o,n),this._optimalUpdateOverlay(o,n)}},e.prototype.getImage=function(t){var e=this.getBounding(),i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);return n.width=i*a,n.height=o*a,r.scale(a,a),r.drawImage(this._mainCanvas,0,0,i,o),t&&r.drawImage(this._overlayCanvas,0,0,i,o),n},e}(jt);function re(t,e){var i=t.x-e.x,o=t.y-e.y,n=e.r;return!(i*i+o*o>n*n)}function ae(e,i,o){var n=i.x,r=i.y,a=i.r,s=o.style,l=void 0===s?t.PolygonType.Fill:s,u=o.color,c=o.borderSize,h=void 0===c?1:c,d=o.borderColor,p=void 0===d?\\"currentColor\\":d,v=o.borderStyle,g=void 0===v?t.LineType.Solid:v,f=o.borderDashedValue,m=void 0===f?[2,2]:f;l!==t.PolygonType.Fill&&o.style!==t.PolygonType.StrokeFill||(e.fillStyle=void 0===u?\\"currentColor\\":u,e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.fill()),l!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||(e.strokeStyle=p,e.lineWidth=h,e.setLineDash(g===t.LineType.Dashed?m:[]),e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.stroke())}var se={name:\\"circle\\",checkEventOn:re,draw:function(t,e,i){ae(t,e,i)}};function le(t,e){for(var i=!1,o=e.coordinates,n=0,r=o.length-1;o.length>n;r=n++)o[n].y>t.y!=o[r].y>t.y&&(o[r].x-o[n].x)*(t.y-o[n].y)/(o[r].y-o[n].y)+o[n].x>t.x&&(i=!i);return i}function ue(e,i,o){var n=i.coordinates,r=o.style,a=void 0===r?t.PolygonType.Fill:r,s=o.color,l=o.borderSize,u=void 0===l?1:l,c=o.borderColor,h=void 0===c?\\"currentColor\\":c,d=o.borderStyle,p=void 0===d?t.LineType.Solid:d,v=o.borderDashedValue,g=void 0===v?[2,2]:v;if(a===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){e.fillStyle=void 0===s?\\"currentColor\\":s,e.beginPath(),e.moveTo(n[0].x,n[0].y);for(var f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.fill()}if(a===t.PolygonType.Stroke||o.style===t.PolygonType.StrokeFill){e.strokeStyle=h,e.lineWidth=u,e.setLineDash(p===t.LineType.Dashed?g:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y);for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.stroke()}}var ce={name:\\"polygon\\",checkEventOn:le,draw:function(t,e,i){ue(t,e,i)}};function he(t){return\\"transparent\\"===t}function de(t,e){var i=e.x,o=e.width;2*Tt>o&&(i-=Tt,o=2*Tt);var n=e.y,r=e.height;return 2*Tt>r&&(n-=Tt,r=2*Tt),!(i>t.x||t.x>i+o||n>t.y||t.y>n+r)}function pe(e,i,o){var n=i.x,r=i.y,a=i.width,s=i.height,l=o.style,c=void 0===l?t.PolygonType.Fill:l,h=o.color,d=void 0===h?\\"transparent\\":h,p=o.borderSize,v=void 0===p?1:p,g=o.borderColor,f=void 0===g?\\"transparent\\":g,m=o.borderStyle,y=void 0===m?t.LineType.Solid:m,_=o.borderRadius,x=void 0===_?0:_,S=o.borderDashedValue,C=void 0===S?[2,2]:S;if(c===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){var b=!0;u(d)&&(b=!he(d)),b&&(e.fillStyle=d,e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.fill())}c!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||he(f)||0>v||(e.strokeStyle=f,e.lineWidth=v,e.setLineDash(y===t.LineType.Dashed?C:[]),e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.stroke())}var ve={name:\\"rect\\",checkEventOn:de,draw:function(t,e,i){pe(t,e,i)}};function ge(t,e){var i,o,n=e.size,r=void 0===n?12:n,a=e.paddingLeft,s=e.paddingTop,l=void 0===s?0:s,u=e.paddingRight,c=void 0===u?0:u,h=e.paddingBottom,d=void 0===h?0:h,p=e.weight,v=t.x,g=t.y,f=t.align,m=void 0===f?\\"left\\":f,y=t.baseline,_=void 0===y?\\"top\\":y,x=t.width,S=t.height,C=null!=x?x:(void 0===a?0:a)+j(t.text,r,void 0===p?\\"normal\\":p,e.family)+c,b=null!=S?S:l+r+d;switch(m){case\\"left\\":case\\"start\\":i=v;break;case\\"right\\":case\\"end\\":i=v-C;break;default:i=v-C/2}switch(_){case\\"top\\":case\\"hanging\\":o=g;break;case\\"bottom\\":case\\"ideographic\\":case\\"alphabetic\\":o=g-b;break;default:o=g-b/2}return{x:i,y:o,width:C,height:b}}function fe(t,e,i){var o=ge(e,i),n=o.x,r=o.y;return!(n>t.x||t.x>n+o.width||r>t.y||t.y>r+o.height)}function me(t,e,i){var o=e.text,n=i.color,r=void 0===n?\\"currentColor\\":n,a=i.size,s=void 0===a?12:a,l=i.family,u=i.weight,c=i.paddingLeft,h=void 0===c?0:c,d=i.paddingTop,p=void 0===d?0:d,v=i.paddingRight,g=void 0===v?0:v,f=ge(e,i);pe(t,f,k(k({},i),{color:i.backgroundColor})),t.textAlign=\\"left\\",t.textBaseline=\\"top\\",t.font=H(s,u,l),t.fillStyle=r,t.fillText(o,f.x+h,f.y+p,f.width-h-g)}var ye={name:\\"text\\",checkEventOn:function(t,e,i){return fe(t,e,i)},draw:function(t,e,i){me(t,e,i)}},_e=me;function xe(t,e){if(Math.abs(Math.sqrt((h=(u=t).x-(c=e).x)*h+(d=u.y-c.y)*d)-e.r)Math.max(r,s)+Tt||Math.min(r,s)-Tt>t.x||t.y>Math.max(a,l)+Tt||Math.min(a,l)-Tt>t.y)}var u,c,h,d;return!1}function Se(e,i,o){var n=i.x,r=i.y,a=i.r,s=i.startAngle,l=i.endAngle,u=o.style,c=void 0===u?t.LineType.Solid:u,h=o.size,d=o.color,p=void 0===d?\\"currentColor\\":d,v=o.dashedValue,g=void 0===v?[2,2]:v;e.lineWidth=void 0===h?1:h,e.strokeStyle=p,e.setLineDash(c===t.LineType.Dashed?g:[]),e.beginPath(),e.arc(n,r,a,s,l),e.stroke(),e.closePath()}var Ce={name:\\"arc\\",checkEventOn:xe,draw:function(t,e,i){Se(t,e,i)}},be={};[se,Ft,ce,ve,ye,ye,Ce].forEach((function(t){be[t.name]=wt.extend(t)}));var Te=function(t){function e(e){var i=t.call(this)||this;return i._widget=e,i}return P(e,t),e.prototype.getWidget=function(){return this._widget},e.prototype.createFigure=function(t,e,i,o){var n=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null}(t);if(null!==n){var r=new n({name:t,attrs:e,styles:i});if(void 0!==o){for(var a in o)o.hasOwnProperty(a)&&r.registerEvent(a,o[a]);this.addChild(r)}return r}return null},e.prototype.draw=function(t){this.clear(),this.drawImp(t)},e}(bt),we=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=this.getWidget().getPane(),r=n.getChart(),a=o.getBounding(),s=r.getStyles().grid;if(s.show){t.save(),t.globalCompositeOperation=\\"destination-over\\";var l=s.horizontal;if(l.show)n.getAxisComponent().getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:0,y:e.coord},{x:a.width,y:e.coord}]},l))||void 0===o||o.draw(t)}));var u=s.vertical;if(u.show)(null===(e=r.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent()).getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:e.coord,y:0},{x:e.coord,y:a.height}]},u))||void 0===o||o.draw(t)}));t.restore()}},e}(Te),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.eachChildren=function(t){var e=this.getWidget().getPane().getChart().getChartStore(),i=e.getVisibleDataList(),o=e.getTimeScaleStore().getBarSpace();i.forEach((function(e,i){t(e,o,i)}))},e}(Te),Ie=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundCandleBarClickEvent=function(e){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnCandleBarClick,e),!1}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this,i=this.getWidget().getPane(),o=i.getId()===Kt.CANDLE,n=i.getChart().getChartStore(),r=this.getCandleBarOptions(n);if(null!==r){var a=i.getAxisComponent();this.eachChildren((function(i,n){e._drawCandleBar(t,a,i,n,r,o)}))}},i.prototype.getCandleBarOptions=function(t){var e=t.getStyles().candle;return{type:e.type,styles:e.bar}},i.prototype._drawCandleBar=function(e,i,o,n,r,a){var s,l,u,c=this,h=o.data,d=o.x,p=h.open,v=h.high,g=h.low,f=h.close,m=n.halfGapBar,y=n.gapBar,_=r.type,x=r.styles;f>p?(s=x.upColor,l=x.upBorderColor,u=x.upWickColor):p>f?(s=x.downColor,l=x.downBorderColor,u=x.downWickColor):(s=x.noChangeColor,l=x.noChangeBorderColor,u=x.noChangeWickColor);var S=i.convertToPixel(p),C=i.convertToPixel(f),b=[S,C,i.convertToPixel(v),i.convertToPixel(g)];b.sort((function(t,e){return t-e}));var T=Math.max(1,b[2]-b[1]),w=[];_!==t.CandleType.Ohlc?(w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[1]-b[0]},styles:{color:u}}),w.push(_===t.CandleType.CandleStroke||_===t.CandleType.CandleUpStroke&&f>p||_===t.CandleType.CandleDownStroke&&p>f?{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.Stroke,borderColor:l}}:{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.StrokeFill,color:s,borderColor:l}}),w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[2],width:1,height:b[3]-b[2]},styles:{color:u}})):w=[{name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[3]-b[0]},styles:{color:s}},{name:\\"rect\\",attrs:{x:d-m,y:S,width:m,height:1},styles:{color:s}},{name:\\"rect\\",attrs:{x:d,y:C,width:m,height:1},styles:{color:s}}],w.forEach((function(t){var i,n,r=t.attrs,s=t.styles;a&&(n={mouseClickEvent:c._boundCandleBarClickEvent(o)}),null===(i=c.createFigure(\\"rect\\",r,s,n))||void 0===i||i.draw(e)}))},i}(Ee),De=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.getCandleBarOptions=function(e){var i,o,n=this.getWidget().getPane();if(!n.getAxisComponent().isInCandle()){var r=e.getIndicatorStore().getInstances(n.getId());try{for(var a=L(r),s=a.next();!s.done;s=a.next()){var l=s.value[1];if(l.shouldOhlc&&l.visible){var u=l.styles,c=e.getStyles().indicator,h=C(u,\\"ohlc.upColor\\",c.ohlc.upColor),d=C(u,\\"ohlc.downColor\\",c.ohlc.downColor),p=C(u,\\"ohlc.noChangeColor\\",c.ohlc.noChangeColor);return{type:t.CandleType.Ohlc,styles:{upColor:h,downColor:d,noChangeColor:p,upBorderColor:h,downBorderColor:d,noChangeBorderColor:p,upWickColor:h,downWickColor:d,noChangeWickColor:p}}}}}catch(t){i={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}return null},i.prototype.drawImp=function(t){var i,o=this;e.prototype.drawImp.call(this,t);var n=this.getWidget(),r=n.getPane(),l=r.getChart(),u=n.getBounding(),c=null===(i=l.getPaneById(Kt.XAXIS))||void 0===i?void 0:i.getAxisComponent(),h=r.getAxisComponent(),d=l.getChartStore(),p=d.getDataList(),v=d.getTimeScaleStore(),g=v.getVisibleRange(),f=d.getIndicatorStore().getInstances(r.getId()),m=d.getStyles().indicator;f.forEach((function(e){var i;if(e.visible){var n=!1;if(null!==e.draw&&(t.save(),n=null!==(i=e.draw({ctx:t,kLineDataList:p,indicator:e,visibleRange:g,bounding:u,barSpace:v.getBarSpace(),defaultStyles:m,xAxis:c,yAxis:h}))&&void 0!==i&&i,t.restore()),!n){var r=e.result;o.eachChildren((function(i,n){var l,d,v,g=n.halfGapBar,f=n.gapBar,y=i.dataIndex,_=i.x,x=c.convertToPixel(y-1),S=c.convertToPixel(y+1),C=null!==(l=r[y-1])&&void 0!==l?l:{},b=null!==(d=r[y])&&void 0!==d?d:{},T=null!==(v=r[y+1])&&void 0!==v?v:{},w={x:x},E={x:_},I={x:S};e.figures.forEach((function(t){var e=t.key;w[e]=h.convertToPixel(C[e]),E[e]=h.convertToPixel(b[e]),I[e]=h.convertToPixel(T[e])})),ot(p,e,y,m,(function(e,i){var r,l,d;if(s(b[e.key])){var p=E[e.key],v=null===(r=e.attrs)||void 0===r?void 0:r.call(e,{coordinate:{prev:w,current:E,next:I},bounding:u,barSpace:n,xAxis:c,yAxis:h});if(!s(v))switch(e.type){case\\"circle\\":v={x:_,y:p,r:g};break;case\\"rect\\":case\\"bar\\":var m=null!==(l=e.baseValue)&&void 0!==l?l:h.getExtremum().min,y=h.convertToPixel(m),x=Math.abs(y-p);m!==b[e.key]&&(x=Math.max(1,x));v={x:_-g,y:p>y?y:p,width:f,height:x};break;case\\"line\\":a(E[e.key])&&a(I[e.key])&&(v={coordinates:[{x:E.x,y:E[e.key]},{x:I.x,y:I[e.key]}]})}if(s(v)){var S=e.type;null===(d=o.createFigure(\\"bar\\"===S?\\"rect\\":S,v,i))||void 0===d||d.draw(t)}}}))}))}}}))},i}(Ie),Pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=e.getBounding(),n=e.getPane().getChart().getChartStore(),r=n.getTooltipStore().getCrosshair(),a=n.getStyles().crosshair;if(void 0!==r.paneId&&a.show){if(r.paneId===i.getId()){var s=r.y;this._drawLine(t,[{x:0,y:s},{x:o.width,y:s}],a.horizontal)}var l=r.realX;this._drawLine(t,[{x:l,y:0},{x:l,y:o.height}],a.vertical)}},e.prototype._drawLine=function(t,e,i){var o;if(i.show){var n=i.line;n.show&&(null===(o=this.createFigure(\\"line\\",{coordinates:e},n))||void 0===o||o.draw(t))}},e}(Te),Me=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundIconClickEvent=function(e,o){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnTooltipIconClick,k(k({},e),{iconId:o})),!0}},i._boundIconMouseMoveEvent=function(t,e){return function(){return i.getWidget().getPane().getChart().getChartStore().getTooltipStore().setActiveIcon(k(k({},t),{iconId:e})),!0}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=i.getChart().getChartStore(),n=o.getTooltipStore().getCrosshair();if(void 0!==n.kLineData){var r=e.getBounding(),a=o.getCustomApi(),s=o.getThousandsSeparator(),l=o.getIndicatorStore().getInstances(i.getId()),u=o.getTooltipStore().getActiveIcon(),c=o.getStyles().indicator;this.drawIndicatorTooltip(t,i.getId(),o.getDataList(),n,u,l,a,s,r,c)}},i.prototype.drawIndicatorTooltip=function(t,e,i,o,n,r,a,s,l,u,c){var h=this,d=u.tooltip,p=0;if(this.isDrawTooltip(o,d)){var v=d.text,g=0,f=null!=c?c:0,m=0;r.forEach((function(r){var c=h.getIndicatorTooltipData(i,o,r,a,s,u),d=c.name,y=c.calcParamsText,_=c.values,x=d.length>0,S=_.length>0;if(x||S){var C=R(h.classifyTooltipIcons(c.icons),3),b=C[1],T=C[2],w=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,C[0],g,f,m),4);if(g=w[0],f=w[1],p+=w[3],m=w[2],x){var E=d;y.length>0&&(E=\\"\\".concat(E).concat(y));var I=R(h.drawStandardTooltipLabels(t,l,[{title:{text:\\"\\",color:v.color},value:{text:E,color:v.color}}],g,f,m,v),4);g=I[0],f=I[1],p+=I[3],m=I[2]}var D=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,b,g,f,m),4);if(g=D[0],f=D[1],p+=D[3],m=D[2],S){var P=R(h.drawStandardTooltipLabels(t,l,_,g,f,m,v),4);g=P[0],f=P[1],p+=P[3],m=P[2]}var M=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,T,g,f,m),4);g=0,p+=M[3],f=M[1]+M[2],m=0}}))}return p},i.prototype.drawStandardTooltipIcons=function(t,e,i,o,n,r,a,s){var l=this,u=r,c=a,h=0,d=0,p=0;return n.length>0&&(n.forEach((function(e){var i=e.marginLeft,o=e.marginTop,n=e.marginRight,r=e.marginBottom,a=e.paddingLeft,s=e.paddingTop,l=e.paddingRight,u=e.paddingBottom,c=e.size,p=e.icon;t.font=H(c,\\"normal\\",e.fontFamily),h+=i+a+t.measureText(p).width+l+n,d=Math.max(d,o+s+c+u+r)})),u+h>e.width?(u=n[0].marginLeft,c+=s,p=d):p=Math.max(0,d-s),n.forEach((function(e){var n,r=e.marginRight,a=e.paddingLeft,s=e.paddingRight,h=e.icon,d=(null==o?void 0:o.paneId)===i.paneId&&(null==o?void 0:o.indicatorName)===i.indicatorName&&(null==o?void 0:o.iconId)===e.id;null===(n=l.createFigure(\\"text\\",{text:h,x:u+=e.marginLeft,y:c+e.marginTop},{paddingLeft:a,paddingTop:e.paddingTop,paddingRight:s,paddingBottom:e.paddingBottom,color:d?e.activeColor:e.color,size:e.size,family:e.fontFamily,backgroundColor:d?e.activeBackgroundColor:e.backgroundColor},{mouseClickEvent:l._boundIconClickEvent(i,e.id),mouseMoveEvent:l._boundIconMouseMoveEvent(i,e.id)}))||void 0===n||n.draw(t),u+=a+t.measureText(h).width+s+r}))),[u,c,Math.max(s,d),p]},i.prototype.drawStandardTooltipLabels=function(t,e,i,o,n,r,a){var s=this,l=o,u=n,c=0,h=0,d=r;if(i.length>0){var p=a.marginLeft,v=a.marginTop,g=a.marginRight,f=a.marginBottom,m=a.size,y=a.family,_=a.weight;t.font=H(m,_,y),i.forEach((function(i){var o,n,r=i.title,a=i.value,x=t.measureText(r.text).width,S=t.measureText(a.text).width,C=m+v+f;l+p+(x+S)+g>e.width?(l=p,u+=C,h+=C):(l+=p,h+=Math.max(0,C-d)),d=c=Math.max(d,C),r.text.length>0&&(null===(o=s.createFigure(\\"text\\",{x:l,y:u+v,text:r.text},{color:r.color,size:m,family:y,weight:_}))||void 0===o||o.draw(t),l+=x),null===(n=s.createFigure(\\"text\\",{x:l,y:u+v,text:a.text},{color:a.color,size:m,family:y,weight:_}))||void 0===n||n.draw(t),l+=S+g}))}return[l,u,c,h]},i.prototype.isDrawTooltip=function(e,i){var o=i.showRule;return o===t.TooltipShowRule.Always||o===t.TooltipShowRule.FollowCross&&void 0!==e.paneId},i.prototype.getIndicatorTooltipData=function(t,e,i,o,n,a){var l,u,c,h=a.tooltip,d=h.showName?i.shortName:\\"\\",p=\\"\\",v=i.calcParams;v.length>0&&h.showParams&&(p=\\"(\\".concat(v.join(\\",\\"),\\")\\"));var g={name:d,calcParamsText:p,values:[],icons:h.icons},f=e.dataIndex,m=null!==(l=i.result)&&void 0!==l?l:[],y=[];if(i.visible){var _=null!==(u=m[f])&&void 0!==u?u:{};ot(t,i,f,a,(function(t,e){if(void 0!==t.title){var r=e.color,a=_[t.key];s(a)&&(a=T(a,i.precision),i.shouldFormatBigNumber&&(a=o.formatBigNumber(a))),y.push({title:{text:t.title,color:r},value:{text:E(null!=a?a:h.defaultValue,n),color:r}})}})),g.values=y}if(null!==i.createTooltipDataSource){var x=this.getWidget(),S=x.getPane(),C=S.getChart().getChartStore(),b=i.createTooltipDataSource({kLineDataList:t,indicator:i,visibleRange:C.getTimeScaleStore().getVisibleRange(),bounding:x.getBounding(),crosshair:e,defaultStyles:a,xAxis:null===(c=S.getChart().getPaneById(Kt.XAXIS))||void 0===c?void 0:c.getAxisComponent(),yAxis:S.getAxisComponent()}),w=b.name,I=b.calcParamsText,D=b.values,P=b.icons;if(void 0!==w&&h.showName&&(g.name=w),void 0!==I&&h.showParams&&(g.calcParamsText=I),void 0!==P&&(g.icons=P),void 0!==D&&i.visible){var M=[],k=a.tooltip.text.color;D.forEach((function(t){var e={text:\\"\\",color:k};r(t.title)?e=t.title:e.text=t.title;var i={text:\\"\\",color:k};r(t.value)?i=t.value:i.text=t.value,i.text=E(i.text,n),M.push({title:e,value:i})})),g.values=M}}return g},i.prototype.classifyTooltipIcons=function(e){var i=[],o=[],n=[];return e.forEach((function(e){switch(e.position){case t.TooltipIconPosition.Left:i.push(e);break;case t.TooltipIconPosition.Middle:o.push(e);break;case t.TooltipIconPosition.Right:n.push(e)}})),[i,o,n]},i}(Te),ke=function(e){function i(t){var i=e.call(this,t)||this;return i._initEvent(),i}return P(i,e),i.prototype._initEvent=function(){var t=this,e=this.getWidget().getPane(),i=e.getId(),o=e.getChart().getChartStore().getOverlayStore();this.registerEvent(\\"mouseMoveEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;a.isStart()&&(o.updateProgressInstanceInfo(i),s=i);var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);return a.isDrawing()&&s===i&&(a.eventMoveForDrawing(t._coordinateToPoint(r.instance,e)),null===(n=a.onDrawing)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))),t._figureMouseMoveEvent(a,1,u,l,0)(e)}return o.setHoverInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseClickEvent\\",(function(e){var n,r,a=o.getProgressInstanceInfo();if(null!==a){var s=a.instance,l=a.paneId;s.isStart()&&(o.updateProgressInstanceInfo(i,!0),l=i);var u=s.points.length-1,c=\\"\\".concat(yt,\\"point_\\").concat(u);return s.isDrawing()&&l===i&&(s.eventMoveForDrawing(t._coordinateToPoint(s,e)),null===(n=s.onDrawing)||void 0===n||n.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)),s.nextStep(),s.isDrawing()||(o.progressInstanceComplete(),null===(r=s.onDrawEnd)||void 0===r||r.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)))),t._figureMouseClickEvent(s,1,c,u,0)(e)}return o.setClickInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseDoubleClickEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;if(a.isDrawing()&&s===i&&(a.forceComplete(),!a.isDrawing())){o.progressInstanceComplete();var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);null===(n=a.onDrawEnd)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))}var c=a.points.length-1;return t._figureMouseClickEvent(a,1,\\"\\".concat(yt,\\"point_\\").concat(c),c,0)(e)}return!1})).registerEvent(\\"mouseRightClickEvent\\",(function(e){var i=o.getProgressInstanceInfo();if(null!==i){var n=i.instance;if(n.isDrawing()){var r=n.points.length-1;return t._figureMouseRightClickEvent(n,1,\\"\\".concat(yt,\\"point_\\").concat(r),r,0)(e)}}return!1})).registerEvent(\\"mouseUpEvent\\",(function(t){var e,n=o.getPressedInstanceInfo(),r=n.instance;return null!==r&&(null===(e=r.onPressedMoveEnd)||void 0===e||e.call(r,k({overlay:r,figureKey:n.figureKey,figureIndex:n.figureIndex},t))),o.setPressedInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1}),!1})).registerEvent(\\"pressedMouseMoveEvent\\",(function(e){var i,n,r=o.getPressedInstanceInfo(),a=r.instance,s=r.figureType,l=r.figureIndex;if(null!==a){if(!(a.lock||null!==(n=null===(i=a.onPressedMoving)||void 0===i?void 0:i.call(a,k({overlay:a,figureIndex:l,figureKey:r.figureKey},e)))&&void 0!==n&&n)){var u=t._coordinateToPoint(a,e);1===s?a.eventPressedPointMove(u,l):a.eventPressedOtherMove(u,t.getWidget().getPane().getChart().getChartStore().getTimeScaleStore())}return!0}return!1}))},i.prototype._createFigureEvents=function(t,e,i,o,n,r){var a;if(!t.isDrawing()){var s=[];if(void 0!==r&&(l(r)?r&&(s=[\\"mouseClickEvent\\",\\"mouseDoubleClickEvent\\",\\"mouseRightClickEvent\\",\\"tapEvent\\",\\"doubleTapEvent\\",\\"mouseDownEvent\\",\\"touchStartEvent\\",\\"mouseMoveEvent\\",\\"touchMoveEvent\\"]):s=r),0===s.length)return{mouseMoveEvent:this._figureMouseMoveEvent(t,e,i,o,n),mouseDownEvent:this._figureMouseDownEvent(t,e,i,o,n),mouseClickEvent:this._figureMouseClickEvent(t,e,i,o,n),mouseRightClickEvent:this._figureMouseRightClickEvent(t,e,i,o,n),mouseDoubleClickEvent:this._figureMouseDoubleClickEvent(t,e,i,o,n)};a={},s.includes(\\"mouseMoveEvent\\")||s.includes(\\"touchMoveEvent\\")||(a.mouseMoveEvent=this._figureMouseMoveEvent(t,e,i,o,n)),s.includes(\\"mouseDownEvent\\")||s.includes(\\"touchStartEvent\\")||(a.mouseDownEvent=this._figureMouseDownEvent(t,e,i,o,n)),s.includes(\\"mouseClickEvent\\")||s.includes(\\"tapEvent\\")||(a.mouseClickEvent=this._figureMouseClickEvent(t,e,i,o,n)),s.includes(\\"mouseDoubleClickEvent\\")||s.includes(\\"doubleTapEvent\\")||(a.mouseDoubleClickEvent=this._figureMouseDoubleClickEvent(t,e,i,o,n)),s.includes(\\"mouseRightClickEvent\\")||(a.mouseRightClickEvent=this._figureMouseRightClickEvent(t,e,i,o,n))}return a},i.prototype._figureMouseMoveEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane();return s.getChart().getChartStore().getOverlayStore().setHoverInstanceInfo({paneId:s.getId(),instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDownEvent=function(t,e,i,o,n){var r=this;return function(a){var s,l=r.getWidget().getPane(),u=l.getId(),c=l.getChart().getChartStore().getOverlayStore();return t.startPressedMove(r._coordinateToPoint(t,a)),null===(s=t.onPressedMoveStart)||void 0===s||s.call(t,k({overlay:t,figureIndex:o,figureKey:i},a)),c.setPressedInstanceInfo({paneId:u,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n}),!0}},i.prototype._figureMouseClickEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane(),l=s.getId();return s.getChart().getChartStore().getOverlayStore().setClickInstanceInfo({paneId:l,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDoubleClickEvent=function(t,e,i,o,n){return function(e){var n;return null===(n=t.onDoubleClick)||void 0===n||n.call(t,k(k({},e),{figureIndex:o,figureKey:i,overlay:t})),!0}},i.prototype._figureMouseRightClickEvent=function(t,e,i,o,n){var r=this;return function(e){var n,a;null!==(a=null===(n=t.onRightClick)||void 0===n?void 0:n.call(t,k({overlay:t,figureIndex:o,figureKey:i},e)))&&void 0!==a&&a||r.getWidget().getPane().getChart().getChartStore().getOverlayStore().removeInstance(t);return!0}},i.prototype._coordinateToPoint=function(e,i){var o,n,r={},a=this.getWidget().getPane(),s=a.getChart(),l=a.getId(),u=s.getChartStore().getTimeScaleStore();if(this.coordinateToPointTimestampDataIndexFlag()){var c=(null===(o=s.getPaneById(Kt.XAXIS))||void 0===o?void 0:o.getAxisComponent()).convertFromPixel(i.x),h=null!==(n=u.dataIndexToTimestamp(c))&&void 0!==n?n:void 0;r.dataIndex=c,r.timestamp=h}if(this.coordinateToPointValueFlag()){var d=a.getAxisComponent(),p=d.convertFromPixel(i.y);if(e.mode!==t.OverlayMode.Normal&&l===Kt.CANDLE&&void 0!==r.dataIndex){var v=u.getDataByDataIndex(r.dataIndex);if(null!==v){var g=e.modeSensitivity;if(p>v.high)if(e.mode===t.OverlayMode.WeakMagnet){var f=d.convertToPixel(v.high);d.convertFromPixel(f-g)>p&&(p=v.high)}else p=v.high;else if(v.low>p)if(e.mode===t.OverlayMode.WeakMagnet){var m=d.convertToPixel(v.low);p>d.convertFromPixel(m-g)&&(p=v.low)}else p=v.low;else{var y=Math.max(v.open,v.close),_=Math.min(v.open,v.close);p=p>y?v.high-p>p-y?y:v.high:_>p?_-p>p-v.low?v.low:_:p-_>y-p?y:_}}}r.value=p}return r},i.prototype.coordinateToPointValueFlag=function(){return!0},i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.dispatchEvent=function(t,i,o){return this.getWidget().getPane().getChart().getChartStore().getOverlayStore().isDrawing()?this.onEvent(t,i,o):e.prototype.dispatchEvent.call(this,t,i,o)},i.prototype.checkEventOn=function(){return!0},i.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart(),s=n.getAxisComponent(),l=null===(e=a.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent(),u=o.getBounding(),c=a.getChartStore(),h=c.getCustomApi(),d=c.getThousandsSeparator(),p=c.getTimeScaleStore(),v=p.getDateTimeFormat(),g=p.getBarSpace(),f=c.getPrecision(),m=c.getStyles().overlay,y=c.getOverlayStore(),_=y.getHoverInstanceInfo(),x=y.getClickInstanceInfo();this.getCompleteOverlays(y,r).forEach((function(e){e.visible&&i._drawOverlay(t,e,u,g,f,v,h,d,m,l,s,_,x,p)}));var S=y.getProgressInstanceInfo();if(null!==S){var C=this.getProgressOverlay(S,r);null!==C&&C.visible&&this._drawOverlay(t,C,u,g,f,v,h,d,m,l,s,_,x,p)}},i.prototype._drawOverlay=function(t,e,i,o,n,r,a,s,l,u,c,h,d,p){var v=e.points.map((function(t){var e,i,o=t.dataIndex;void 0!==t.timestamp&&(o=p.timestampToDataIndex(t.timestamp));var n={x:0,y:0};return void 0!==o&&(n.x=null!==(e=null==u?void 0:u.convertToPixel(o))&&void 0!==e?e:0),void 0!==t.value&&(n.y=null!==(i=null==c?void 0:c.convertToPixel(t.value))&&void 0!==i?i:0),n}));if(v.length>0){var g=[].concat(this.getFigures(e,v,i,o,n,s,r,l,u,c));this.drawFigures(t,e,g,l)}this.drawDefaultFigures(t,e,v,i,n,r,a,s,l,u,c,h,d)},i.prototype.drawFigures=function(t,e,i,o){var n=this;i.forEach((function(i,r){var a=i.type,s=i.styles,l=i.ignoreEvent;[].concat(i.attrs).forEach((function(u,c){var h,d,p,v=n._createFigureEvents(e,2,null!==(h=i.key)&&void 0!==h?h:\\"\\",r,c,l),g=k(k(k({},o[a]),null===(d=e.styles)||void 0===d?void 0:d[a]),s);null===(p=n.createFigure(a,u,g,v))||void 0===p||p.draw(t)}))}))},i.prototype.getCompleteOverlays=function(t,e){return t.getInstances(e)},i.prototype.getProgressOverlay=function(t,e){return t.paneId===e?t.instance:null},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createPointFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){var p,v,g=this;if(e.needDefaultPointFigure&&((null===(p=h.instance)||void 0===p?void 0:p.id)===e.id&&0!==h.figureType||(null===(v=d.instance)||void 0===v?void 0:v.id)===e.id&&0!==d.figureType)){var f=e.styles,m=k(k({},l.point),null==f?void 0:f.point);i.forEach((function(i,o){var n,r,a,s=i.x,l=i.y,u=m.radius,c=m.color,d=m.borderColor,p=m.borderSize;(null===(n=h.instance)||void 0===n?void 0:n.id)===e.id&&1===h.figureType&&h.figureIndex===o&&(u=m.activeRadius,c=m.activeColor,d=m.activeBorderColor,p=m.activeBorderSize),null===(r=g.createFigure(\\"circle\\",{x:s,y:l,r:u+p},{color:d},g._createFigureEvents(e,1,\\"\\".concat(yt,\\"point_\\").concat(o),o,0)))||void 0===r||r.draw(t),null===(a=g.createFigure(\\"circle\\",{x:s,y:l,r:u},{color:c}))||void 0===a||a.draw(t)}))}},i}(Te),Ae=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._gridView=new we(o),o._indicatorView=new De(o),o._crosshairLineView=new Pe(o),o._tooltipView=o.createTooltipView(),o._overlayView=new ke(o),o.addChild(o._tooltipView),o.addChild(o._overlayView),o.getContainer().style.cursor=\\"crosshair\\",o.registerEvent(\\"mouseMoveEvent\\",(function(){return i.getChart().getChartStore().getTooltipStore().setActiveIcon(),!1})),o}return P(e,t),e.prototype.getName=function(){return zt},e.prototype.updateMain=function(t){this.updateMainContent(t),this._indicatorView.draw(t),this._gridView.draw(t)},e.prototype.createTooltipView=function(){return new Me(this)},e.prototype.updateMainContent=function(t){},e.prototype.updateOverlay=function(t){this._overlayView.draw(t),this._crosshairLineView.draw(t),this._tooltipView.draw(t)},e}(ne),Fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i,n=this.getWidget(),r=n.getPane(),s=r.getChart(),l=n.getBounding(),u=r.getAxisComponent(),c=s.getStyles().candle.area,h=[],d=[],p=Number.MAX_SAFE_INTEGER;this.eachChildren((function(t,e,i){var o=t.x,n=e.halfGapBar,r=t.data[c.value];if(a(r)){var s=u.convertToPixel(r);if(0===i){var v=o-n;d.push({x:v,y:l.height}),d.push({x:v,y:s}),h.push({x:v,y:s})}h.push({x:o,y:s}),d.push({x:o,y:s}),p=Math.min(p,s)}}));var v=d.length;if(v>0){var g=d[v-1],f=g.x;h.push({x:f,y:g.y}),d.push({x:f,y:g.y}),d.push({x:f,y:l.height})}if(h.length>0&&(null===(e=this.createFigure(\\"line\\",{coordinates:h},{color:c.lineColor,size:c.lineSize}))||void 0===e||e.draw(t)),d.length>0){var m=c.backgroundColor,y=void 0;if(o(m)){var _=t.createLinearGradient(0,l.height,0,p);try{m.forEach((function(t){_.addColorStop(t.offset,t.color)}))}catch(t){}y=_}else y=m;null===(i=this.createFigure(\\"polygon\\",{coordinates:d},{color:y}))||void 0===i||i.draw(t)}},e}(Ee),Le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget().getPane(),i=e.getChart().getChartStore(),o=i.getStyles().candle.priceMark,n=o.high,r=o.low;if(o.show&&(n.show||r.show)){var a=i.getThousandsSeparator(),s=i.getPrecision(),l=e.getAxisComponent(),u=Number.MIN_SAFE_INTEGER,c=0,h=Number.MAX_SAFE_INTEGER,d=0;this.eachChildren((function(t){var e=t.data,i=t.x;e.high>u&&(u=e.high,c=i),h>e.low&&(h=e.low,d=i)}));var p=l.convertToPixel(u),v=l.convertToPixel(h);n.show&&u!==Number.MIN_SAFE_INTEGER&&this._drawMark(t,E(T(u,s.price),a),{x:c,y:p},v>p?[-2,-5]:[2,5],n),r.show&&h!==Number.MAX_SAFE_INTEGER&&this._drawMark(t,E(T(h,s.price),a),{x:d,y:v},v>p?[2,5]:[-2,-5],r)}},e.prototype._drawMark=function(t,e,i,o,n){var r,a,s,l,u,c,h=i.x,d=i.y+o[0];null===(r=this.createFigure(\\"line\\",{coordinates:[{x:h-2,y:d+o[0]},{x:h,y:d},{x:h+2,y:d+o[0]}]},{color:n.color}))||void 0===r||r.draw(t),h>this.getWidget().getBounding().width/2?(u=(l=h-5)-n.textOffset,c=\\"right\\"):(c=\\"left\\",u=(l=h+5)+n.textOffset);var p=d+o[1];null===(a=this.createFigure(\\"line\\",{coordinates:[{x:h,y:d},{x:h,y:p},{x:l,y:p}]},{color:n.color}))||void 0===a||a.draw(t),null===(s=this.createFigure(\\"text\\",{x:u,y:p,text:e,align:c,baseline:\\"middle\\"},{color:n.color,size:n.textSize,family:n.textFamily,weight:n.textWeight}))||void 0===s||s.draw(t)},e}(Ee),Re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getStyles().candle.priceMark,s=a.last,l=s.line;if(a.show&&s.show&&l.show){var u=o.getAxisComponent(),c=r.getDataList(),h=c[c.length-1];if(null!=h){var d=h.close,p=h.open,v=u.convertToNicePixel(d);null===(e=this.createFigure(\\"line\\",{coordinates:[{x:0,y:v},{x:n.width,y:v}]},{style:l.style,color:d>p?s.upColor:p>d?s.downColor:s.noChangeColor,size:l.size,dashedValue:l.dashedValue}))||void 0===e||e.draw(t)}}},e}(Te),Be={\\"zh-CN\\":{time:\\"时间:\\",open:\\"开:\\",high:\\"高:\\",low:\\"低:\\",close:\\"收:\\",volume:\\"成交量:\\",change:\\"涨幅:\\"},\\"en-US\\":{time:\\"Time: \\",open:\\"Open: \\",high:\\"High: \\",low:\\"Low: \\",close:\\"Close: \\",volume:\\"Volume: \\",change:\\"Change: \\"}};var Oe=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart().getChartStore(),s=a.getTooltipStore().getCrosshair();if(void 0!==s.kLineData){var l=o.getBounding(),u=null===(i=n.getYAxisWidget())||void 0===i?void 0:i.getBounding(),c=a.getDataList(),h=a.getPrecision(),d=a.getLocale(),p=a.getCustomApi(),v=a.getThousandsSeparator(),g=a.getTooltipStore().getActiveIcon(),f=a.getIndicatorStore().getInstances(n.getId()),m=a.getTimeScaleStore().getDateTimeFormat(),y=a.getStyles(),_=y.candle,x=y.indicator;if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Rect){var S=this.isDrawTooltip(s,_.tooltip),C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,C,y,0)}else if(_.tooltip.showType===t.TooltipShowType.Standard&&x.tooltip.showType===t.TooltipShowType.Standard){var b=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,b)}else if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Standard){var T=this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,0);S=this.isDrawTooltip(s,_.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,!1,y,T)}else{var w=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,!1,C,y,w)}}},i.prototype._drawCandleStandardTooltip=function(t,e,i,o,n,r,a,s,l,u,c,h){var d,p,v,g=h.tooltip,f=g.text,m=0;if(this.isDrawTooltip(n,g)){var y=null!==(d=n.dataIndex)&&void 0!==d?d:0,_=this._getCandleTooltipData({prev:null!==(p=e[y-1])&&void 0!==p?p:null,current:n.kLineData,next:null!==(v=e[y+1])&&void 0!==v?v:null},a,s,l,u,c,h),x=0,S=0,C=0,b=R(this.classifyTooltipIcons(g.icons),3),T=b[1],w=b[2],E=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,b[0],x,S,0),4);m+=E[3];var I=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,T,x=E[0],S=E[1],C=E[2]),4);if(x=I[0],S=I[1],m+=I[3],C=I[2],_.length>0){var D=R(this.drawStandardTooltipLabels(t,o,_,x,S,C,f),4);x=D[0],S=D[1],m+=D[3],C=D[2]}var P=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,w,x,S,C),4);x=P[0],S=P[1],m+=P[3],C=P[2]}return m},i.prototype._drawRectTooltip=function(e,i,o,n,r,a,s,l,u,c,h,d,p,v,f){var m,y,_,x,S,C=this,b=v.candle,T=v.indicator,w=b.tooltip,E=T.tooltip;if(d||p){var I=null!==(m=a.dataIndex)&&void 0!==m?m:0,D=this._getCandleTooltipData({prev:null!==(y=i[I-1])&&void 0!==y?y:null,current:a.kLineData,next:null!==(_=i[I+1])&&void 0!==_?_:null},s,l,u,c,h,b),P=w.text,M=P.marginLeft,k=P.marginRight,A=P.marginTop,F=P.marginBottom,L=P.size,R=P.weight,B=P.family,O=w.rect,V=O.position,N=O.paddingLeft,W=O.paddingRight,z=O.paddingTop,Y=O.paddingBottom,X=O.offsetLeft,j=O.offsetRight,Z=O.offsetTop,G=O.offsetBottom,K=O.borderSize,U=O.borderRadius,q=O.borderColor,$=O.color,J=0,Q=0,tt=0;d&&(e.font=H(L,R,B),D.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+M+k;J=Math.max(J,n)})),tt+=(F+A+L)*D.length);var et=E.text,it=et.marginLeft,ot=et.marginRight,nt=et.marginTop,rt=et.marginBottom,at=et.size,st=et.weight,lt=et.family,ut=[];if(p&&(e.font=H(at,st,lt),o.forEach((function(t){var o,n=null!==(o=C.getIndicatorTooltipData(i,a,t,c,h,T).values)&&void 0!==o?o:[];ut.push(n),n.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+it+ot;J=Math.max(J,n),tt+=nt+rt+at}))}))),0!==(Q+=J)&&0!==tt){Q+=2*K+N+W,tt+=2*K+z+Y;var ct=V===g.Pointer&&a.paneId===Kt.CANDLE,ht=(null!==(x=a.realX)&&void 0!==x?x:0)>n.width/2,dt=0;if(ct){var pt=a.realX;dt=ht?pt-j-Q:pt+X}else ht?(dt=X,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Left&&(dt+=r.width)):(dt=n.width-j-Q,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Right&&(dt-=r.width));var vt=f+Z;if(ct)(vt=a.y-tt/2)+tt>n.height-G&&(vt=n.height-G-tt),f+Z>vt&&(vt=f+Z);null===(S=this.createFigure(\\"rect\\",{x:dt,y:vt,width:Q,height:tt},{style:t.PolygonType.StrokeFill,color:$,borderColor:q,borderSize:K,borderRadius:U}))||void 0===S||S.draw(e);var gt=dt+K+N+M,ft=vt+K+z;if(d&&D.forEach((function(t){var i,o,n=t.title;null===(i=C.createFigure(\\"text\\",{x:gt,y:ft+=A,text:n.text},{color:n.color,size:L,family:B,weight:R}))||void 0===i||i.draw(e);var r=t.value;null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-k-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:L,family:B,weight:R}))||void 0===o||o.draw(e),ft+=L+F})),p){var mt=dt+K+N+it;ut.forEach((function(t){t.forEach((function(t){var i,o,n=t.title,r=t.value;null===(i=C.createFigure(\\"text\\",{x:mt,y:ft+=nt,text:n.text},{color:n.color,size:at,family:lt,weight:st}))||void 0===i||i.draw(e),null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-ot-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:at,family:lt,weight:st}))||void 0===o||o.draw(e),ft+=at+rt}))}))}}}},i.prototype._getCandleTooltipData=function(e,i,o,a,s,l,u){var c,h,d,p,v,g=u.tooltip,f=g.text.color,m=e.current,y=null!==(h=null===(c=e.prev)||void 0===c?void 0:c.close)&&void 0!==h?h:m.close,_=m.close-y,x=i.price,S=i.volume,C={\\"{time}\\":s.formatDate(o,m.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Tooltip),\\"{open}\\":E(T(m.open,x),l),\\"{high}\\":E(T(m.high,x),l),\\"{low}\\":E(T(m.low,x),l),\\"{close}\\":E(T(m.close,x),l),\\"{volume}\\":E(s.formatBigNumber(T(null!==(d=m.volume)&&void 0!==d?d:g.defaultValue,S)),l),\\"{change}\\":0===y?g.defaultValue:\\"\\".concat(T(_/y*100),\\"%\\")};return(null!==(v=n(g.custom)?null===(p=g.custom)||void 0===p?void 0:p.call(g,e,u):g.custom)&&void 0!==v?v:[{title:\\"time\\",value:\\"{time}\\"},{title:\\"open\\",value:\\"{open}\\"},{title:\\"high\\",value:\\"{high}\\"},{title:\\"low\\",value:\\"{low}\\"},{title:\\"close\\",value:\\"{close}\\"},{title:\\"volume\\",value:\\"{volume}\\"}]).map((function(t){var e,i=t.title,o=t.value,n={text:\\"\\",color:\\"\\"};r(i)?n=k({},i):(n.text=i,n.color=f),n.text=function(t,e){var i,o;return null!==(o=null===(i=Be[e])||void 0===i?void 0:i[t])&&void 0!==o?o:t}(n.text,a);var s={text:g.defaultValue,color:\\"\\"};r(o)?s=k({},o):(s.text=o,s.color=f);var l=s.text.match(/{(\\\\S*)}/);if(null!==l&&l.length>1){var c=\\"{\\".concat(l[1],\\"}\\");s.text=s.text.replace(c,null!==(e=C[c])&&void 0!==e?e:g.defaultValue),\\"{change}\\"===c&&(s.color=0===_?u.priceMark.last.noChangeColor:_>0?u.priceMark.last.upColor:u.priceMark.last.downColor)}return{title:n,value:s}}))},i}(Me),Ve=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o._candleBarView=new Ie(o),o._candleAreaView=new Fe(o),o._candleHighLowPriceView=new Le(o),o._candleLastPriceLineView=new Re(o),o.addChild(o._candleBarView),o}return P(i,e),i.prototype.updateMainContent=function(e){this.getPane().getChart().getStyles().candle.type!==t.CandleType.Area?(this._candleBarView.draw(e),this._candleHighLowPriceView.draw(e)):this._candleAreaView.draw(e),this._candleLastPriceLineView.draw(e)},i.prototype.createTooltipView=function(){return new Oe(this)},i}(Ae),Ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getAxisComponent(),s=this.getAxisStyles(n.getChart().getStyles());if(s.show){s.axisLine.show&&(null===(e=this.createFigure(\\"line\\",this.createAxisLine(r,s),s.axisLine))||void 0===e||e.draw(t));var l=a.getTicks();if(s.tickLine.show)this.createTickLines(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",e,s.tickLine))||void 0===o||o.draw(t)}));if(s.tickText.show)this.createTickTexts(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"text\\",e,s.tickText))||void 0===o||o.draw(t)}))}},e}(Te),We=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.yAxis},e.prototype.createAxisLine=function(t,e){var i,o=this.getWidget().getPane().getAxisComponent(),n=e.axisLine.size;return{coordinates:[{x:i=o.isFromZero()?n/2:t.width-n,y:0},{x:i,y:t.height}]}},e.prototype.createTickLines=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=0,s=0;return o.isFromZero()?(a=0,n.show&&(a+=n.size),s=a+r.length):(a=e.width,n.show&&(a-=n.size),s=a-r.length),t.map((function(t){return{coordinates:[{x:a,y:t.coord},{x:s,y:t.coord}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=i.tickText,s=0;o.isFromZero()?(s=a.marginStart,n.show&&(s+=n.size),r.show&&(s+=r.length)):(s=e.width-a.marginEnd,n.show&&(s-=n.size),r.show&&(s-=r.length));var l=this.getWidget().getPane().getAxisComponent().isFromZero()?\\"left\\":\\"right\\";return t.map((function(t){return{x:s,y:t.coord,text:t.text,align:l,baseline:\\"middle\\"}}))},e}(Ne),ze=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getChart().getChartStore(),s=a.getStyles().candle.priceMark,l=s.last,u=l.text;if(s.show&&l.show&&u.show){var c=a.getPrecision(),h=n.getAxisComponent(),d=a.getDataList(),p=a.getVisibleDataList(),v=d[d.length-1];if(void 0!==v){var g=v.close,f=v.open,m=h.convertToNicePixel(g),y=void 0;y=g>f?l.upColor:f>g?l.downColor:l.noChangeColor;var _=void 0;if(h.getType()===t.YAxisType.Percentage){var x=p[0].data.close;_=\\"\\".concat(((g-x)/x*100).toFixed(2),\\"%\\")}else _=T(g,c.price);_=E(_,a.getThousandsSeparator());var S=void 0,C=void 0;h.isFromZero()?(S=0,C=\\"left\\"):(S=r.width,C=\\"right\\"),null===(i=this.createFigure(\\"text\\",{x:S,y:m,text:_,align:C,baseline:\\"middle\\"},k(k({},u),{backgroundColor:y})))||void 0===i||i.draw(e)}}},i}(Te),Ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getCustomApi(),l=r.getStyles().indicator,u=l.lastValueMark,c=u.text;if(u.show){var h=o.getAxisComponent(),d=r.getDataList(),p=d.length-1,v=r.getIndicatorStore().getInstances(o.getId()),g=r.getThousandsSeparator();v.forEach((function(i){var o=i.result[p];if(void 0!==o&&i.visible){var r=i.precision;ot(d,i,p,l,(function(l,u){var d,p=o[l.key];if(s(p)){var v=h.convertToNicePixel(p),f=T(p,r);i.shouldFormatBigNumber&&(f=a.formatBigNumber(f)),f=E(f,g);var m=void 0,y=void 0;h.isFromZero()?(m=0,y=\\"left\\"):(m=n.width,y=\\"right\\"),null===(d=e.createFigure(\\"text\\",{x:m,y:v,text:f,align:y,baseline:\\"middle\\"},k(k({},c),{backgroundColor:u.color})))||void 0===d||d.draw(t)}}))}}))}},e}(Te),Xe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!1},e.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){this.drawFigures(t,e,this.getDefaultFigures(e,i,o,n,r,a,s,u,c,d),l)},e.prototype.getDefaultFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h,d=[];if(t.needDefaultYAxisFigure&&t.id===(null===(c=u.instance)||void 0===c?void 0:c.id)&&u.paneId===this.getWidget().getPane().getId()){var p,v,g=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;null!==(h=null==l?void 0:l.isFromZero())&&void 0!==h&&h?(p=\\"left\\",v=0):(p=\\"right\\",v=i.width),e.forEach((function(e,i){var n=t.points[i];if(void 0!==n.value){g=Math.min(g,e.y),f=Math.max(f,e.y);var r=E(T(n.value,o.price),a);d.push({type:\\"text\\",attrs:{x:v,y:e.y,text:r,align:p,baseline:\\"middle\\"},ignoreEvent:!0})}})),e.length>1&&d.unshift({type:\\"rect\\",attrs:{x:0,y:g,width:i.width,height:f-g},ignoreEvent:!0})}return d},e.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createYAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},e}(ke),He=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=i.getPane().getChart().getChartStore(),a=r.getTooltipStore().getCrosshair(),s=r.getStyles().crosshair;if(void 0!==a.paneId&&this.compare(a,o.getId())&&s.show){var l=this.getDirectionStyles(s),u=l.text;if(l.show&&u.show){var c=o.getAxisComponent(),h=this.getText(a,r,c);t.font=H(u.size,u.weight,u.family),null===(e=this.createFigure(\\"text\\",this.getTextAttrs(h,t.measureText(h).width,a,n,c,u),u))||void 0===e||e.draw(t)}}},i.prototype.compare=function(t,e){return t.paneId===e},i.prototype.getDirectionStyles=function(t){return t.horizontal},i.prototype.getText=function(e,i,o){var n,r,a,s=o,l=o.convertFromPixel(e.y);if(s.getType()===t.YAxisType.Percentage){var u=null!==(r=null===(n=i.getVisibleDataList()[0])||void 0===n?void 0:n.data)&&void 0!==r?r:{};a=\\"\\".concat(((l-u.close)/u.close*100).toFixed(2),\\"%\\")}else{var c=i.getIndicatorStore().getInstances(e.paneId),h=0,d=!1;s.isInCandle()?h=i.getPrecision().price:c.forEach((function(t){h=Math.max(t.precision,h),d||(d=t.shouldFormatBigNumber)})),a=T(l,h),d&&(a=i.getCustomApi().formatBigNumber(a))}return E(a,i.getThousandsSeparator())},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s;return n.isFromZero()?(a=0,s=\\"left\\"):(a=o.width,s=\\"right\\"),{x:a,y:i.y,text:t,align:s,baseline:\\"middle\\"}},i}(Te),je=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._yAxisView=new We(o),o._candleLastPriceLabelView=new ze(o),o._indicatorLastValueView=new Ye(o),o._overlayYAxisView=new Xe(o),o._crosshairHorizontalLabelView=new He(o),o.getContainer().style.cursor=\\"ns-resize\\",o.addChild(o._overlayYAxisView),o}return P(e,t),e.prototype.getName=function(){return Xt},e.prototype.updateMain=function(t){this._yAxisView.draw(t),this.getPane().getAxisComponent().isInCandle()&&this._candleLastPriceLabelView.draw(t),this._indicatorLastValueView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayYAxisView.draw(t),this._crosshairHorizontalLabelView.draw(t)},e}(ne),Ze=function(){function t(t){this._extremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._prevExtremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._ticks=[],this._autoCalcTickFlag=!0,this._parent=t}return t.prototype.getParent=function(){return this._parent},t.prototype.buildTicks=function(t){return this._autoCalcTickFlag&&(this._extremum=this.calcExtremum()),!(this._prevExtremum.min===this._extremum.min&&this._prevExtremum.max===this._extremum.max&&!t)&&(this._prevExtremum=this._extremum,this._ticks=this.optimalTicks(this._calcTicks()),!0)},t.prototype.getTicks=function(){return this._ticks},t.prototype.getScrollZoomEnabled=function(){var t;return null===(t=this.getParent().getOptions().axisOptions.scrollZoomEnabled)||void 0===t||t},t.prototype.setExtremum=function(t){this._autoCalcTickFlag=!1,this._extremum=t},t.prototype.getExtremum=function(){return this._extremum},t.prototype.setAutoCalcTickFlag=function(t){this._autoCalcTickFlag=t},t.prototype.getAutoCalcTickFlag=function(){return this._autoCalcTickFlag},t.prototype._calcTicks=function(){var t=this._extremum,e=t.realMin,i=t.realMax,o=t.realRange,n=[];if(o>=0){var r=R(this._calcTickInterval(o),2),a=r[0],s=r[1],l=G(Math.ceil(e/a)*a,s),u=G(Math.floor(i/a)*a,s),c=0,h=l;if(0!==a)for(;u>=h;){var d=h.toFixed(s);n[c]={text:d,coord:0,value:d},++c,h+=a}}return n},t.prototype._calcTickInterval=function(t){var e,i,o,n,r=(i=Math.floor(U(e=t/8)),o=q(i),e=(1.5>(n=e/o)?1:2.5>n?2:3.5>n?3:4.5>n?4:5.5>n?5:6.5>n?6:8)*o,-20>i?e:+e.toFixed(0>i?-i:0)),a=function(t){var e=\\"\\"+t,i=e.indexOf(\\"e\\");if(i>0){var o=+e.slice(i+1);return 0>o?-o:0}var n=e.indexOf(\\".\\");return 0>n?0:e.length-1-n}(r);return[r,a]},t}(),Ge=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var e,i,o,n,r,a=this.getParent(),l=a.getChart(),u=l.getChartStore(),c=Number.MAX_SAFE_INTEGER,h=Number.MIN_SAFE_INTEGER,d=[],p=!1,v=Number.MAX_SAFE_INTEGER,g=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER;u.getIndicatorStore().getInstances(a.getId()).forEach((function(t){var e,i,o;p||(p=null!==(e=t.shouldOhlc)&&void 0!==e&&e),f=Math.min(f,t.precision),null!==t.minValue&&(v=Math.min(v,t.minValue)),null!==t.maxValue&&(g=Math.max(g,t.maxValue)),d.push({figures:null!==(i=t.figures)&&void 0!==i?i:[],result:null!==(o=t.result)&&void 0!==o?o:[]})}));var m=4,y=this.isInCandle();if(y){var _=u.getPrecision().price;m=f!==Number.MAX_SAFE_INTEGER?Math.min(f,_):_}else f!==Number.MAX_SAFE_INTEGER&&(m=f);var x=u.getVisibleDataList(),S=l.getStyles().candle,C=S.type===t.CandleType.Area,b=S.area.value,T=y&&!C||!y&&p;x.forEach((function(t){var e=t.dataIndex,i=t.data;if(T&&(c=Math.min(c,i.low),h=Math.max(h,i.high)),y&&C){var o=i[b];c=Math.min(c,o),h=Math.max(h,o)}d.forEach((function(t){var i,o=null!==(i=t.result[e])&&void 0!==i?i:{};t.figures.forEach((function(t){var e=o[t.key];s(e)&&(c=Math.min(c,e),h=Math.max(h,e))}))}))})),c!==Number.MAX_SAFE_INTEGER&&h!==Number.MIN_SAFE_INTEGER?(c=Math.min(v,c),h=Math.max(g,h)):(c=0,h=10);var w,E=this.getType();switch(E){case t.YAxisType.Percentage:var I=null===(e=x[0])||void 0===e?void 0:e.data;void 0!==(null==I?void 0:I.close)&&(c=(c-I.close)/I.close*100,h=(h-I.close)/I.close*100),w=.01;break;case t.YAxisType.Log:c=U(c),h=U(h),w=.05*q(-m);break;default:w=q(-m)}if(c===h||w>Math.abs(c-h)){var D=v===c,P=g===h;c=D?c:P?c-8*w:c-4*w,h=P?h:D?h+8*w:h+4*w}var M=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,k=a.getOptions().gap,A=null!==(n=null==k?void 0:k.top)&&void 0!==n?n:.2;1>A||(A/=M);var F=null!==(r=null==k?void 0:k.bottom)&&void 0!==r?r:.1;1>F||(F/=M);var L,R,B,O=Math.abs(h-c);return O=Math.abs((h+=O*A)-(c-=O*F)),E===t.YAxisType.Log?(L=q(c),R=q(h),B=Math.abs(R-L)):(L=c,R=h,B=O),{min:c,max:h,range:O,realMin:L,realMax:R,realRange:B}},i.prototype._innerConvertToPixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.getExtremum(),r=(t-n.min)/n.range;return this.isReverse()?Math.round(r*o):Math.round((1-r)*o)},i.prototype.isInCandle=function(){return\\"candle\\"===this.getParent().getName()},i.prototype.getType=function(){return this.isInCandle()?this.getParent().getChart().getStyles().yAxis.type:t.YAxisType.Normal},i.prototype.getPosition=function(){return this.getParent().getChart().getStyles().yAxis.position},i.prototype.isReverse=function(){return!!this.isInCandle()&&this.getParent().getChart().getStyles().yAxis.reverse},i.prototype.isFromZero=function(){var e=this.getParent().getChart().getStyles().yAxis,i=e.inside;return e.position===t.YAxisPosition.Left&&i||e.position===t.YAxisPosition.Right&&!i},i.prototype.optimalTicks=function(e){var i,o,n=this,r=this.getParent(),a=null!==(o=null===(i=r.getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,s=r.getChart().getChartStore(),l=s.getCustomApi(),u=[],c=this.getType(),h=s.getIndicatorStore().getInstances(r.getId()),d=s.getThousandsSeparator(),p=0,v=!1;this.isInCandle()?p=s.getPrecision().price:h.forEach((function(t){p=Math.max(p,t.precision),v||(v=t.shouldFormatBigNumber)}));var g,f=s.getStyles().xAxis.tickText.size;return e.forEach((function(e){var i,o=e.value,r=n._innerConvertToPixel(+o);switch(c){case t.YAxisType.Percentage:i=\\"\\".concat(T(o,2),\\"%\\");break;case t.YAxisType.Log:r=n._innerConvertToPixel(U(+o)),i=T(o,p);break;default:i=T(o,p),v&&(i=l.formatBigNumber(o))}i=E(i,d),r>f&&a-f>r&&(void 0!==g&&Math.abs(g-r)>2*f||void 0===g)&&(u.push({text:i,coord:r,value:o}),g=r)})),u},i.prototype.getAutoSize=function(){var e=this.getParent(),i=e.getChart(),o=i.getStyles(),n=o.yAxis,r=n.size;if(\\"auto\\"!==r)return r;var a=i.getChartStore(),s=a.getCustomApi(),l=0;if(n.show&&(n.axisLine.show&&(l+=n.axisLine.size),n.tickLine.show&&(l+=n.tickLine.length),n.tickText.show)){var u=0;this.getTicks().forEach((function(t){u=Math.max(u,j(t.text,n.tickText.size,n.tickText.weight,n.tickText.family))})),l+=n.tickText.marginStart+n.tickText.marginEnd+u}var c=o.crosshair,h=0;if(c.show&&c.horizontal.show&&c.horizontal.text.show){var d=a.getIndicatorStore().getInstances(e.getId()),p=0,v=!1;d.forEach((function(t){p=Math.max(t.precision,p),v||(v=t.shouldFormatBigNumber)}));var g=2;if(this.getType()!==t.YAxisType.Percentage)if(this.isInCandle()){var f=a.getPrecision().price,m=o.indicator.lastValueMark;g=m.show&&m.text.show?Math.max(p,f):f}else g=p;var y=T(this.getExtremum().max,g);v&&(y=s.formatBigNumber(y)),h+=c.horizontal.text.paddingLeft+c.horizontal.text.paddingRight+2*c.horizontal.text.borderSize+j(y,c.horizontal.text.size,c.horizontal.text.weight,c.horizontal.text.family)}return Math.max(l,h)},i.prototype.convertFromPixel=function(e){var i,o,n,r=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,a=this.getExtremum(),s=a.min,l=a.range,u=(this.isReverse()?e/r:1-e/r)*l+s;switch(this.getType()){case t.YAxisType.Percentage:var c=null===(n=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===n?void 0:n.data;return void 0!==(null==c?void 0:c.close)?c.close*u/100+c.close:0;case t.YAxisType.Log:return q(u);default:return u}},i.prototype.convertToRealValue=function(e){var i=e;return this.getType()===t.YAxisType.Log&&(i=q(e)),i},i.prototype.convertToPixel=function(e){var i,o=e;switch(this.getType()){case t.YAxisType.Percentage:var n=null===(i=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===i?void 0:i.data;void 0!==(null==n?void 0:n.close)&&(o=(e-n.close)/n.close*100);break;case t.YAxisType.Log:o=U(e);break;default:o=e}return this._innerConvertToPixel(o)},i.prototype.convertToNicePixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.convertToPixel(t);return Math.round(Math.max(.05*o,Math.min(n,.98*o)))},i}(Ze),Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"indicator\\"},e.prototype.createAxisComponent=function(){return new Ge(this)},e.prototype.createMainWidget=function(t){return new Ae(t,this)},e.prototype.createSeparatorWidget=function(t){return new Zt(t,this)},e.prototype.createYAxisWidget=function(t){return new je(t,this)},e}(Ut),Ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"candle\\"},e.prototype.createMainWidget=function(t){return new Ve(t,this)},e.prototype.createSeparatorWidget=function(){return null},e}(Ke),qe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.xAxis},e.prototype.createAxisLine=function(t,e){var i=e.axisLine.size/2;return{coordinates:[{x:0,y:i},{x:t.width,y:i}]}},e.prototype.createTickLines=function(t,e,i){var o=i.tickLine,n=i.axisLine.size;return t.map((function(t){return{coordinates:[{x:t.coord,y:0},{x:t.coord,y:n+o.length}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=i.tickText,n=i.axisLine.size,r=i.tickLine.length;return t.map((function(t){return{x:t.coord,y:n+r+o.marginStart,text:t.text,align:\\"center\\",baseline:\\"top\\"}}))},e}(Ne),$e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.coordinateToPointValueFlag=function(){return!1},i.prototype.getCompleteOverlays=function(t){return t.getInstances()},i.prototype.getProgressOverlay=function(t){return t.instance},i.prototype.getDefaultFigures=function(e,i,o,n,r,a,s,l,u,c){var h,d=[];if(e.needDefaultXAxisFigure&&e.id===(null===(h=c.instance)||void 0===h?void 0:h.id)){var p=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER;i.forEach((function(i,o){p=Math.min(p,i.x),v=Math.max(v,i.x);var n=e.points[o];if(void 0!==n.timestamp){var s=a.formatDate(r,n.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair);d.push({type:\\"text\\",attrs:{x:i.x,y:0,text:s,align:\\"center\\"},ignoreEvent:!0})}})),i.length>1&&d.unshift({type:\\"rect\\",attrs:{x:p,y:0,width:v-p,height:o.height},ignoreEvent:!0})}return d},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createXAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i}(Xe),Je=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.compare=function(t){return void 0!==t.kLineData&&t.dataIndex===t.realDataIndex},i.prototype.getDirectionStyles=function(t){return t.vertical},i.prototype.getText=function(e,i){var o,n=null===(o=e.kLineData)||void 0===o?void 0:o.timestamp;return i.getCustomApi().formatDate(i.getTimeScaleStore().getDateTimeFormat(),n,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair)},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s=i.realX,l=\\"center\\";return 0>s-e/2-r.paddingLeft?(a=0,l=\\"left\\"):s+e/2+r.paddingRight>o.width?(a=o.width,l=\\"right\\"):a=s,{x:a,y:0,text:t,align:l,baseline:\\"top\\"}},i}(He),Qe=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._xAxisView=new qe(o),o._overlayXAxisView=new $e(o),o._crosshairVerticalLabelView=new Je(o),o.getContainer().style.cursor=\\"ew-resize\\",o.addChild(o._overlayXAxisView),o}return P(e,t),e.prototype.getName=function(){return Yt},e.prototype.updateMain=function(t){this._xAxisView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayXAxisView.draw(t),this._crosshairVerticalLabelView.draw(t)},e}(ne),ti=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var t=this.getParent().getChart().getChartStore().getTimeScaleStore().getVisibleRange(),e=t.from,i=t.to,o=i-1,n=i-e;return{min:e,max:o,range:n,realMin:e,realMax:o,realRange:n}},i.prototype.optimalTicks=function(e){var i,o,n=this.getParent().getChart(),r=n.getChartStore(),a=r.getCustomApi().formatDate,s=[],l=e.length,u=r.getDataList();if(l>0){var c=r.getTimeScaleStore().getDateTimeFormat(),h=n.getStyles().xAxis.tickText,d=j(\\"00-00 00:00\\",h.size,h.weight,h.family),p=this.convertToPixel(parseInt(e[0].value,10)),v=1;if(l>1){var g=this.convertToPixel(parseInt(e[1].value,10)),f=Math.abs(g-p);d>f&&(v=Math.ceil(d/f))}for(var m=0;l>m;m+=v){var y=parseInt(e[m].value,10),_=u[y].timestamp,x=a(c,_,\\"HH:mm\\",t.FormatDateType.XAxis);if(0!==m)x=null!==(i=this._optimalTickLabel(a,c,_,u[parseInt(e[m-v].value,10)].timestamp))&&void 0!==i?i:x;var S=this.convertToPixel(y);s.push({text:x,coord:S,value:_})}if(1===s.length)s[0].text=a(c,s[0].value,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.XAxis);else{var C=s[0].value,b=s[1].value;if(void 0!==s[2]){var T=s[2].text;/^[0-9]{2}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"MM-DD\\",t.FormatDateType.XAxis):/^[0-9]{4}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"YYYY-MM\\",t.FormatDateType.XAxis):/^[0-9]{4}$/.test(T)&&(s[0].text=a(c,C,\\"YYYY\\",t.FormatDateType.XAxis))}else s[0].text=null!==(o=this._optimalTickLabel(a,c,C,b))&&void 0!==o?o:s[0].text}}return s},i.prototype._optimalTickLabel=function(e,i,o,n){var r=e(i,o,\\"YYYY\\",t.FormatDateType.XAxis),a=e(i,o,\\"YYYY-MM\\",t.FormatDateType.XAxis),s=e(i,o,\\"MM-DD\\",t.FormatDateType.XAxis);return r!==e(i,n,\\"YYYY\\",t.FormatDateType.XAxis)?r:a!==e(i,n,\\"YYYY-MM\\",t.FormatDateType.XAxis)?a:s!==e(i,n,\\"MM-DD\\",t.FormatDateType.XAxis)?s:null},i.prototype.getAutoSize=function(){var t=this.getParent().getChart().getStyles(),e=t.xAxis,i=e.size;if(\\"auto\\"!==i)return i;var o=t.crosshair,n=0;e.show&&(e.axisLine.show&&(n+=e.axisLine.size),e.tickLine.show&&(n+=e.tickLine.length),e.tickText.show&&(n+=e.tickText.marginStart+e.tickText.marginEnd+e.tickText.size));var r=0;return o.show&&o.vertical.show&&o.vertical.text.show&&(r+=o.vertical.text.paddingTop+o.vertical.text.paddingBottom+2*o.vertical.text.borderSize+o.vertical.text.size),Math.max(n,r)},i.prototype.convertTimestampFromPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.coordinateToDataIndex(t);return e.dataIndexToTimestamp(i)},i.prototype.convertTimestampToPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.timestampToDataIndex(t);return e.dataIndexToCoordinate(i)},i.prototype.convertFromPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().coordinateToDataIndex(t)},i.prototype.convertToPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().dataIndexToCoordinate(t)},i}(Ze),ei=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"xAxis\\"},e.prototype.createAxisComponent=function(){return new ti(this)},e.prototype.createMainWidget=function(t){return new Qe(t,this)},e}(Ut);function ii(){var t;return\\"undefined\\"!=typeof window&&(null!==(t=window.navigator.userAgent.toLowerCase().indexOf(\\"firefox\\"))&&void 0!==t?t:-1)>-1}function oi(){return\\"undefined\\"!=typeof window&&/iPhone|iPad|iPod/.test(window.navigator.platform)}var ni,ri=function(){function t(t,e,i){var o=this;this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0},this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0},this._longTapTimeoutId=null,this._longTapActive=!1,this._mouseMoveStartCoordinate=null,this._touchMoveStartCoordinate=null,this._touchMoveExceededManhattanDistance=!1,this._cancelClick=!1,this._cancelTap=!1,this._unsubscribeOutsideMouseEvents=null,this._unsubscribeOutsideTouchEvents=null,this._unsubscribeMobileSafariEvents=null,this._unsubscribeMousemove=null,this._unsubscribeMouseWheel=null,this._unsubscribeContextMenu=null,this._unsubscribeRootMouseEvents=null,this._unsubscribeRootTouchEvents=null,this._startPinchMiddleCoordinate=null,this._startPinchDistance=0,this._pinchPrevented=!1,this._preventTouchDragProcess=!1,this._mousePressed=!1,this._lastTouchEventTimeStamp=0,this._activeTouchId=null,this._acceptMouseLeave=!oi(),this._onFirefoxOutsideMouseUp=function(t){o._mouseUpHandler(t)},this._onMobileSafariDoubleClick=function(t){o._firesTouchEvents(t)?(++o._tapCount,null!==o._tapTimeoutId&&o._tapCount>1&&(30>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._tapCoordinate).manhattanDistance&&!o._cancelTap&&o._processEvent(o._makeCompatEvent(t),o._handler.doubleTapEvent),o._resetTapTimeout())):(++o._clickCount,null!==o._clickTimeoutId&&o._clickCount>1&&(5>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._clickCoordinate).manhattanDistance&&!o._cancelClick&&o._processEvent(o._makeCompatEvent(t),o._handler.mouseDoubleClickEvent),o._resetClickTimeout()))},this._target=t,this._handler=e,this._options=i,this._init()}return t.prototype.destroy=function(){null!==this._unsubscribeOutsideMouseEvents&&(this._unsubscribeOutsideMouseEvents(),this._unsubscribeOutsideMouseEvents=null),null!==this._unsubscribeOutsideTouchEvents&&(this._unsubscribeOutsideTouchEvents(),this._unsubscribeOutsideTouchEvents=null),null!==this._unsubscribeMousemove&&(this._unsubscribeMousemove(),this._unsubscribeMousemove=null),null!==this._unsubscribeMouseWheel&&(this._unsubscribeMouseWheel(),this._unsubscribeMouseWheel=null),null!==this._unsubscribeContextMenu&&(this._unsubscribeContextMenu(),this._unsubscribeContextMenu=null),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null),null!==this._unsubscribeMobileSafariEvents&&(this._unsubscribeMobileSafariEvents(),this._unsubscribeMobileSafariEvents=null),this._clearLongTapTimeout(),this._resetClickTimeout()},t.prototype._mouseEnterHandler=function(t){var e,i,o,n=this;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this);var r=this._mouseMoveHandler.bind(this);this._unsubscribeMousemove=function(){n._target.removeEventListener(\\"mousemove\\",r)},this._target.addEventListener(\\"mousemove\\",r);var a=this._mouseWheelHandler.bind(this);this._unsubscribeMouseWheel=function(){n._target.removeEventListener(\\"wheel\\",a)},this._target.addEventListener(\\"wheel\\",a,{passive:!1});var s=this._contextMenuHandler.bind(this);this._unsubscribeContextMenu=function(){n._target.removeEventListener(\\"contextmenu\\",s)},this._target.addEventListener(\\"contextmenu\\",s,{passive:!1}),this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseEnterEvent),this._acceptMouseLeave=!0)},t.prototype._resetClickTimeout=function(){null!==this._clickTimeoutId&&clearTimeout(this._clickTimeoutId),this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0}},t.prototype._resetTapTimeout=function(){null!==this._tapTimeoutId&&clearTimeout(this._tapTimeoutId),this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0}},t.prototype._mouseMoveHandler=function(t){this._mousePressed||null!==this._touchMoveStartCoordinate||this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseMoveEvent),this._acceptMouseLeave=!0)},t.prototype._mouseWheelHandler=function(t){if(Math.abs(t.deltaX)>Math.abs(t.deltaY)){if(void 0===this._handler.mouseWheelHortEvent)return;if(this._preventDefault(t),0===Math.abs(t.deltaX))return;this._handler.mouseWheelHortEvent(this._makeCompatEvent(t),-t.deltaX)}else{if(void 0===this._handler.mouseWheelVertEvent)return;var e=-t.deltaY/100;if(0===e)return;switch(this._preventDefault(t),t.deltaMode){case t.DOM_DELTA_PAGE:e*=120;break;case t.DOM_DELTA_LINE:e*=32}if(0!==e){var i=Math.sign(e)*Math.min(1,Math.abs(e));this._handler.mouseWheelVertEvent(this._makeCompatEvent(t),i)}}},t.prototype._contextMenuHandler=function(t){this._preventDefault(t)},t.prototype._touchMoveHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null!==e&&(this._lastTouchEventTimeStamp=this._eventTimeStamp(t),null===this._startPinchMiddleCoordinate&&!this._preventTouchDragProcess)){this._pinchPrevented=!0;var i=this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._touchMoveStartCoordinate),o=i.yOffset;if(this._touchMoveExceededManhattanDistance||i.manhattanDistance>=5){if(!this._touchMoveExceededManhattanDistance){var n=.5*i.xOffset,r=o>=n&&!this._options.treatVertDragAsPageScroll(),a=n>o&&!this._options.treatHorzDragAsPageScroll();r||a||(this._preventTouchDragProcess=!0),this._touchMoveExceededManhattanDistance=!0,this._cancelTap=!0,this._clearLongTapTimeout(),this._resetTapTimeout()}this._preventTouchDragProcess||this._processEvent(this._makeCompatEvent(t,e),this._handler.touchMoveEvent)}}},t.prototype._mouseMoveWithDownHandler=function(t){0===t.button&&(5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._mouseMoveStartCoordinate).manhattanDistance||(this._cancelClick=!0,this._resetClickTimeout()),this._cancelClick&&this._processEvent(this._makeCompatEvent(t),this._handler.pressedMouseMoveEvent))},t.prototype._mouseTouchMoveWithDownInfo=function(t,e){var i=Math.abs(e.x-t.x),o=Math.abs(e.y-t.y);return{xOffset:i,yOffset:o,manhattanDistance:i+o}},t.prototype._touchEndHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null===e&&0===t.touches.length&&(e=t.changedTouches[0]),null!==e){this._activeTouchId=null,this._lastTouchEventTimeStamp=this._eventTimeStamp(t),this._clearLongTapTimeout(),this._touchMoveStartCoordinate=null,null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var i=this._makeCompatEvent(t,e);if(this._processEvent(i,this._handler.touchEndEvent),++this._tapCount,null!==this._tapTimeoutId&&this._tapCount>1)30>this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._tapCoordinate).manhattanDistance&&!this._cancelTap&&this._processEvent(i,this._handler.doubleTapEvent),this._resetTapTimeout();else this._cancelTap||(this._processEvent(i,this._handler.tapEvent),void 0!==this._handler.tapEvent&&this._preventDefault(t));0===this._tapCount&&this._preventDefault(t),0===t.touches.length&&this._longTapActive&&(this._longTapActive=!1,this._preventDefault(t))}},t.prototype._mouseUpHandler=function(t){if(0===t.button){var e=this._makeCompatEvent(t);if(this._mouseMoveStartCoordinate=null,this._mousePressed=!1,null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),ii())this._target.ownerDocument.documentElement.removeEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp);if(!this._firesTouchEvents(t))if(this._processEvent(e,this._handler.mouseUpEvent),++this._clickCount,null!==this._clickTimeoutId&&this._clickCount>1)5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._clickCoordinate).manhattanDistance&&!this._cancelClick&&this._processEvent(e,this._handler.mouseDoubleClickEvent),this._resetClickTimeout();else this._cancelClick||this._processEvent(e,this._handler.mouseClickEvent)}},t.prototype._clearLongTapTimeout=function(){null!==this._longTapTimeoutId&&(clearTimeout(this._longTapTimeoutId),this._longTapTimeoutId=null)},t.prototype._touchStartHandler=function(t){if(null===this._activeTouchId){var e=t.changedTouches[0];this._activeTouchId=e.identifier,this._lastTouchEventTimeStamp=this._eventTimeStamp(t);var i=this._target.ownerDocument.documentElement;this._cancelTap=!1,this._touchMoveExceededManhattanDistance=!1,this._preventTouchDragProcess=!1,this._touchMoveStartCoordinate=this._getCoordinate(e),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var o=this._touchMoveHandler.bind(this),n=this._touchEndHandler.bind(this);this._unsubscribeRootTouchEvents=function(){i.removeEventListener(\\"touchmove\\",o),i.removeEventListener(\\"touchend\\",n)},i.addEventListener(\\"touchmove\\",o,{passive:!1}),i.addEventListener(\\"touchend\\",n,{passive:!1}),this._clearLongTapTimeout(),this._longTapTimeoutId=setTimeout(this._longTapHandler.bind(this,t),500),this._processEvent(this._makeCompatEvent(t,e),this._handler.touchStartEvent),null===this._tapTimeoutId&&(this._tapCount=0,this._tapTimeoutId=setTimeout(this._resetTapTimeout.bind(this),500),this._tapCoordinate=this._getCoordinate(e))}},t.prototype._mouseDownHandler=function(t){if(2===t.button)return this._preventDefault(t),void this._processEvent(this._makeCompatEvent(t),this._handler.mouseRightClickEvent);if(0===t.button){var e=this._target.ownerDocument.documentElement;ii()&&e.addEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp),this._cancelClick=!1,this._mouseMoveStartCoordinate=this._getCoordinate(t),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null);var i=this._mouseMoveWithDownHandler.bind(this),o=this._mouseUpHandler.bind(this);this._unsubscribeRootMouseEvents=function(){e.removeEventListener(\\"mousemove\\",i),e.removeEventListener(\\"mouseup\\",o)},e.addEventListener(\\"mousemove\\",i),e.addEventListener(\\"mouseup\\",o),this._mousePressed=!0,this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseDownEvent),null===this._clickTimeoutId&&(this._clickCount=0,this._clickTimeoutId=setTimeout(this._resetClickTimeout.bind(this),500),this._clickCoordinate=this._getCoordinate(t)))}},t.prototype._init=function(){var t=this;this._target.addEventListener(\\"mouseenter\\",this._mouseEnterHandler.bind(this)),this._target.addEventListener(\\"touchcancel\\",this._clearLongTapTimeout.bind(this));var e=this._target.ownerDocument,i=function(e){null!=t._handler.mouseDownOutsideEvent&&(e.composed&&t._target.contains(e.composedPath()[0])||null!==e.target&&t._target.contains(e.target)||t._handler.mouseDownOutsideEvent({x:0,y:0,pageX:0,pageY:0}))};this._unsubscribeOutsideTouchEvents=function(){e.removeEventListener(\\"touchstart\\",i)},this._unsubscribeOutsideMouseEvents=function(){e.removeEventListener(\\"mousedown\\",i)},e.addEventListener(\\"mousedown\\",i),e.addEventListener(\\"touchstart\\",i,{passive:!0}),oi()&&(this._unsubscribeMobileSafariEvents=function(){t._target.removeEventListener(\\"dblclick\\",t._onMobileSafariDoubleClick)},this._target.addEventListener(\\"dblclick\\",this._onMobileSafariDoubleClick)),this._target.addEventListener(\\"mouseleave\\",this._mouseLeaveHandler.bind(this)),this._target.addEventListener(\\"touchstart\\",this._touchStartHandler.bind(this),{passive:!0}),this._target.addEventListener(\\"mousedown\\",(function(t){if(1===t.button)return t.preventDefault(),!1})),this._target.addEventListener(\\"mousedown\\",this._mouseDownHandler.bind(this)),this._initPinch(),this._target.addEventListener(\\"touchmove\\",(function(){}),{passive:!1})},t.prototype._initPinch=function(){var t=this;void 0===this._handler.pinchStartEvent&&void 0===this._handler.pinchEvent&&void 0===this._handler.pinchEndEvent||(this._target.addEventListener(\\"touchstart\\",(function(e){return t._checkPinchState(e.touches)}),{passive:!0}),this._target.addEventListener(\\"touchmove\\",(function(e){if(2===e.touches.length&&null!==t._startPinchMiddleCoordinate&&void 0!==t._handler.pinchEvent){var i=t._getTouchDistance(e.touches[0],e.touches[1])/t._startPinchDistance;t._handler.pinchEvent(k(k({},t._startPinchMiddleCoordinate),{pageX:0,pageY:0}),i),t._preventDefault(e)}}),{passive:!1}),this._target.addEventListener(\\"touchend\\",(function(e){t._checkPinchState(e.touches)})))},t.prototype._checkPinchState=function(t){1===t.length&&(this._pinchPrevented=!1),2!==t.length||this._pinchPrevented||this._longTapActive?this._stopPinch():this._startPinch(t)},t.prototype._startPinch=function(t){var e,i=null!==(e=this._target.getBoundingClientRect())&&void 0!==e?e:{left:0,top:0};this._startPinchMiddleCoordinate={x:(t[0].clientX-i.left+(t[1].clientX-i.left))/2,y:(t[0].clientY-i.top+(t[1].clientY-i.top))/2},this._startPinchDistance=this._getTouchDistance(t[0],t[1]),void 0!==this._handler.pinchStartEvent&&this._handler.pinchStartEvent({x:0,y:0,pageX:0,pageY:0}),this._clearLongTapTimeout()},t.prototype._stopPinch=function(){null!==this._startPinchMiddleCoordinate&&(this._startPinchMiddleCoordinate=null,void 0!==this._handler.pinchEndEvent&&this._handler.pinchEndEvent({x:0,y:0,pageX:0,pageY:0}))},t.prototype._mouseLeaveHandler=function(t){var e,i,o;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this),this._firesTouchEvents(t)||this._acceptMouseLeave&&(this._processEvent(this._makeCompatEvent(t),this._handler.mouseLeaveEvent),this._acceptMouseLeave=!oi())},t.prototype._longTapHandler=function(t){var e=this._touchWithId(t.touches,this._activeTouchId);null!==e&&(this._processEvent(this._makeCompatEvent(t,e),this._handler.longTapEvent),this._cancelTap=!0,this._longTapActive=!0)},t.prototype._firesTouchEvents=function(t){var e;return void 0!==(null===(e=t.sourceCapabilities)||void 0===e?void 0:e.firesTouchEvents)?t.sourceCapabilities.firesTouchEvents:this._eventTimeStamp(t)i;++i)if(t[i].identifier===e)return t[i];return null},t}(),ai=function(){function t(t,e){var i=this;this._flingStartTime=(new Date).getTime(),this._flingScrollRequestId=null,this._startScrollCoordinate=null,this._touchCoordinate=null,this._touchCancelCrosshair=!1,this._touchZoomed=!1,this._pinchScale=1,this._mouseDownWidget=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,this._mouseMoveTriggerWidgetInfo={pane:null,widget:null},this._boundKeyBoardDownEvent=function(t){if(t.shiftKey)switch(t.code){case\\"Equal\\":i._chart.getChartStore().getTimeScaleStore().zoom(.5);break;case\\"Minus\\":i._chart.getChartStore().getTimeScaleStore().zoom(-.5);break;case\\"ArrowLeft\\":(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(-3*e.getBarSpace().bar);break;case\\"ArrowRight\\":var e;(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(3*e.getBarSpace().bar)}},this._container=t,this._chart=e,this._event=new ri(t,this,{treatVertDragAsPageScroll:function(){return!1},treatHorzDragAsPageScroll:function(){return!1}}),t.addEventListener(\\"keydown\\",this._boundKeyBoardDownEvent)}return t.prototype.pinchStartEvent=function(){return this._touchZoomed=!0,this._pinchScale=1,!0},t.prototype.pinchEvent=function(t,e){var i=this._findWidgetByEvent(t),o=i.pane,n=i.widget;if((null==o?void 0:o.getId())!==Kt.XAXIS&&(null==n?void 0:n.getName())===zt){var r=this._makeWidgetEvent(t,n),a=5*(e-this._pinchScale);return this._pinchScale=e,this._chart.getChartStore().getTimeScaleStore().zoom(a,{x:r.x,y:r.y}),!0}return!1},t.prototype.mouseWheelHortEvent=function(t,e){var i=this._chart.getChartStore().getTimeScaleStore();return i.startScroll(),i.scroll(e),!0},t.prototype.mouseWheelVertEvent=function(t,e){var i,o,n=this._findWidgetByEvent(t).widget,r=null!==(i=t.isTouch)&&void 0!==i&&i,a=this._makeWidgetEvent(t,n),s=null,l=null==n?void 0:n.getName();if(r)if(l===zt||l===Yt)s={x:a.x,y:a.y};else{var u=null===(o=this._chart.getPaneById(Kt.CANDLE))||void 0===o?void 0:o.getBounding();s={x:u.width/2,y:u.height/2}}else l===zt&&(s={x:a.x,y:a.y});return null!==s&&(this._chart.getChartStore().getTimeScaleStore().zoom(e,{x:a.x,y:a.y}),!0)},t.prototype.mouseDownEvent=function(t){var e,i,o=this._findWidgetByEvent(t),n=o.pane,r=o.widget;if(this._mouseDownWidget=r,null!==r){var a=this._makeWidgetEvent(t,r);switch(r.getName()){case Ht:return r.dispatchEvent(\\"mouseDownEvent\\",a);case zt:var s=null!==(e=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==e?e:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._startScrollCoordinate={x:a.x,y:a.y},this._chart.getChartStore().getTimeScaleStore().startScroll(),r.dispatchEvent(\\"mouseDownEvent\\",a);case Yt:return(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1),this._xAxisStartScaleCoordinate={x:a.x,y:a.y},this._xAxisStartScaleDistance=a.pageX,l;case Xt:var l;(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1);s=null!==(i=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==i?i:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._yAxisStartScaleDistance=a.pageY,l}}return!1},t.prototype.mouseMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget,s=this._makeWidgetEvent(t,a);if((null===(e=this._mouseMoveTriggerWidgetInfo.pane)||void 0===e?void 0:e.getId())===(null==r?void 0:r.getId())&&(null===(i=this._mouseMoveTriggerWidgetInfo.widget)||void 0===i?void 0:i.getName())===(null==a?void 0:a.getName())||(null==a||a.dispatchEvent(\\"mouseEnterEvent\\",s),null===(o=this._mouseMoveTriggerWidgetInfo.widget)||void 0===o||o.dispatchEvent(\\"mouseLeaveEvent\\",s),this._mouseMoveTriggerWidgetInfo={pane:r,widget:a}),null!==a)switch(a.getName()){case zt:var l=a.dispatchEvent(\\"mouseMoveEvent\\",s),u=this._chart.getChartStore(),c={x:s.x,y:s.y,paneId:null==r?void 0:r.getId()};return l&&null!==u.getTooltipStore().getActiveIcon()&&(c=void 0,null!==a&&(a.getContainer().style.cursor=\\"pointer\\")),this._chart.getChartStore().getTooltipStore().setCrosshair(c),l;case Ht:case Yt:case Xt:l=a.dispatchEvent(\\"mouseMoveEvent\\",s);return this._chart.getChartStore().getTooltipStore().setCrosshair(),l}return!1},t.prototype.pressedMouseMoveEvent=function(t){var e,i,o,n,r;if(null!==this._mouseDownWidget&&this._mouseDownWidget.getName()===Ht)return this._mouseDownWidget.dispatchEvent(\\"pressedMouseMoveEvent\\",t);var a=this._findWidgetByEvent(t),s=a.pane,l=a.widget;if(null!==l&&(null===(e=this._mouseDownWidget)||void 0===e?void 0:e.getPane().getId())===(null==s?void 0:s.getId())&&(null===(i=this._mouseDownWidget)||void 0===i?void 0:i.getName())===l.getName()){var u=this._makeWidgetEvent(t,l);switch(l.getName()){case zt:var c=l.getBounding();if(!(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))&&null!==this._startScrollCoordinate){var h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&!h.getAutoCalcTickFlag()&&h.getScrollZoomEnabled()){var d=this._prevYAxisExtremum,p=d.min,v=d.max+(b=(S=d.range)*(C=(null!==(o=null==h?void 0:h.isReverse())&&void 0!==o&&o?this._startScrollCoordinate.y-u.y:u.y-this._startScrollCoordinate.y)/c.height)),g=h.convertToRealValue(E=p+b),f=h.convertToRealValue(v);h.setExtremum({min:E,max:v,range:v-E,realMin:g,realMax:f,realRange:f-g})}var m=u.x-this._startScrollCoordinate.x;this._chart.getChartStore().getTimeScaleStore().scroll(m)}return this._chart.getChartStore().getTooltipStore().setCrosshair({x:u.x,y:u.y,paneId:null==s?void 0:s.getId()}),x;case Yt:if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{var y=null==s?void 0:s.getAxisComponent();if(null===(n=null==y?void 0:y.getScrollZoomEnabled())||void 0===n||n){var _=10*((C=this._xAxisStartScaleDistance/u.pageX)-this._xAxisScale);this._xAxisScale=C,this._chart.getChartStore().getTimeScaleStore().zoom(_,null!==(r=this._xAxisStartScaleCoordinate)&&void 0!==r?r:void 0)}}return x;case Xt:var x;if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&h.getScrollZoomEnabled()){var S,C,b,T=this._prevYAxisExtremum,w=(S=T.range)*(C=u.pageY/this._yAxisStartScaleDistance),E=(p=T.min)-(b=(w-S)/2),I=(v=T.max+b,null==s?void 0:s.getAxisComponent());g=I.convertToRealValue(E),f=I.convertToRealValue(v);I.setExtremum({min:E,max:v,range:w,realMin:g,realMax:f,realRange:f-g}),this._chart.adjustPaneViewport(!1,!0,!0,!0)}}return x}}return!1},t.prototype.mouseUpEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Ht:case Yt:case Xt:i=e.dispatchEvent(\\"mouseUpEvent\\",o)}i&&this._chart.updatePane(1)}return this._mouseDownWidget=null,this._startScrollCoordinate=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,i},t.prototype.mouseClickEvent=function(t){var e=this._findWidgetByEvent(t).widget;if(null!==e){var i=this._makeWidgetEvent(t,e);return e.dispatchEvent(\\"mouseClickEvent\\",i)}return!1},t.prototype.mouseRightClickEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Yt:case Xt:i=e.dispatchEvent(\\"mouseRightClickEvent\\",o)}i&&this._chart.updatePane(1)}return!1},t.prototype.mouseDoubleClickEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o)switch(o.getName()){case zt:var n=this._makeWidgetEvent(t,o);return o.dispatchEvent(\\"mouseDoubleClickEvent\\",n);case Xt:var r=null==i?void 0:i.getAxisComponent();if(!r.getAutoCalcTickFlag())return r.setAutoCalcTickFlag(!0),this._chart.adjustPaneViewport(!1,!0,!0,!0),!0}return!1},t.prototype.mouseLeaveEvent=function(){return this._chart.getChartStore().getTooltipStore().setCrosshair(),!0},t.prototype.touchStartEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o){var n=this._makeWidgetEvent(t,o);switch(o.getName()){case zt:var r=this._chart.getChartStore(),a=r.getTooltipStore();if(o.dispatchEvent(\\"mouseDownEvent\\",n))return this._touchCancelCrosshair=!0,this._touchCoordinate=null,a.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._flingScrollRequestId&&(ie(this._flingScrollRequestId),this._flingScrollRequestId=null),this._flingStartTime=(new Date).getTime(),this._startScrollCoordinate={x:n.x,y:n.y},r.getTimeScaleStore().startScroll(),this._touchZoomed=!1,null!==this._touchCoordinate){var s=n.x-this._touchCoordinate.x,l=n.y-this._touchCoordinate.y;10>Math.sqrt(s*s+l*l)?(this._touchCoordinate={x:n.x,y:n.y},a.setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()})):(this._touchCoordinate=null,this._touchCancelCrosshair=!0,a.setCrosshair())}return!0;case Yt:case Xt:var u=o.dispatchEvent(\\"mouseDownEvent\\",n);return u&&this._chart.updatePane(1),u}}return!1},t.prototype.touchMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget;if(null!==a){var s=this._makeWidgetEvent(t,a),l=a.getName(),u=this._chart.getChartStore(),c=u.getTooltipStore();switch(l){case zt:if(a.dispatchEvent(\\"pressedMouseMoveEvent\\",s))return null===(e=s.preventDefault)||void 0===e||e.call(s),c.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._touchCoordinate)null===(i=s.preventDefault)||void 0===i||i.call(s),c.setCrosshair({x:s.x,y:s.y,paneId:null==r?void 0:r.getId()});else if(null!==this._startScrollCoordinate&&Math.abs(this._startScrollCoordinate.x-s.x)>this._startScrollCoordinate.y-s.y){var h=s.x-this._startScrollCoordinate.x;u.getTimeScaleStore().scroll(h)}return!0;case Yt:case Xt:var d=a.dispatchEvent(\\"pressedMouseMoveEvent\\",s);return d&&(null===(o=s.preventDefault)||void 0===o||o.call(s),this._chart.updatePane(1)),d}}return!1},t.prototype.touchEndEvent=function(t){var e=this,i=this._findWidgetByEvent(t).widget;if(null!==i){var o=this._makeWidgetEvent(t,i);switch(i.getName()){case zt:if(i.dispatchEvent(\\"mouseUpEvent\\",o),null!==this._startScrollCoordinate){var n=(new Date).getTime()-this._flingStartTime,r=(o.x-this._startScrollCoordinate.x)/(n>0?n:1)*20;if(200>n&&Math.abs(r)>0){var a=this._chart.getChartStore().getTimeScaleStore(),s=function(){e._flingScrollRequestId=ee((function(){a.startScroll(),a.scroll(r),1>Math.abs(r*=.975)?null!==e._flingScrollRequestId&&(ie(e._flingScrollRequestId),e._flingScrollRequestId=null):s()}))};s()}}return!0;case Yt:case Xt:i.dispatchEvent(\\"mouseUpEvent\\",o)&&this._chart.updatePane(1)}}return!1},t.prototype.tapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget,n=!1;if(null!==o){var r=this._makeWidgetEvent(t,o),a=o.dispatchEvent(\\"mouseClickEvent\\",r);if(o.getName()===zt){var s=this._makeWidgetEvent(t,o),l=this._chart.getChartStore().getTooltipStore();a?(this._touchCancelCrosshair=!0,this._touchCoordinate=null,l.setCrosshair(void 0,!0),n=!0):(this._touchCancelCrosshair||this._touchZoomed||(this._touchCoordinate={x:s.x,y:s.y},l.setCrosshair({x:s.x,y:s.y,paneId:null==i?void 0:i.getId()},!0),n=!0),this._touchCancelCrosshair=!1)}(n||a)&&this._chart.updatePane(1)}return n},t.prototype.doubleTapEvent=function(t){return this.mouseDoubleClickEvent(t)},t.prototype.longTapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o&&o.getName()===zt){var n=this._makeWidgetEvent(t,o);return this._touchCoordinate={x:n.x,y:n.y},this._chart.getChartStore().getTooltipStore().setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()}),!0}return!1},t.prototype._findWidgetByEvent=function(t){var e,i,o=this._chart.getAllPanes(),n=t.x,r=t.y,a=null;try{for(var s=L(o),l=s.next();!l.done;l=s.next()){var u=R(l.value,2)[1],c=u.getBounding();if(!(c.left>n||n>c.left+c.width||c.top>r||r>c.top+c.height)){a=u;break}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}null===a&&(a=this._chart.getPaneById(Kt.XAXIS));var h=null;if(null!==a){var d=a.getSeparatorWidget();if(null!==d){var p=d.getBounding();p.left>n||n>p.left+p.width||p.top>r||r>p.top+7||(h=d)}if(null===h){var v=a.getMainWidget(),g=v.getBounding();g.left>n||n>g.left+g.width||g.top>r||r>g.top+g.height||(h=v)}if(null===h){var f=a.getYAxisWidget();if(null!==f){var m=f.getBounding();m.left>n||n>m.left+m.width||m.top>r||r>m.top+m.height||(h=f)}}}return{pane:a,widget:h}},t.prototype._makeWidgetEvent=function(t,e){var i,o,n,r=null!==(i=null==e?void 0:e.getBounding())&&void 0!==i?i:null;return k(k({},t),{x:t.x-(null!==(o=null==r?void 0:r.left)&&void 0!==o?o:0),y:t.y-(null!==(n=null==r?void 0:r.top)&&void 0!==n?n:0)})},t.prototype.destroy=function(){this._container.removeEventListener(\\"keydown\\",this._boundKeyBoardDownEvent),this._event.destroy()},t}();t.DomPosition=void 0,(ni=t.DomPosition||(t.DomPosition={})).Root=\\"root\\",ni.Main=\\"main\\",ni.YAxis=\\"yAxis\\";var si=function(){function e(t,e){this._panes=new Map,this._initContainer(t),this._chartEvent=new ai(this._chartContainer,this),this._chartStore=new te(this,e),this._xAxisPane=new ei(this._chartContainer,this,Kt.XAXIS),this._panes.set(Kt.CANDLE,new Ue(this._chartContainer,this,Kt.CANDLE)),this.adjustPaneViewport(!0,!0,!0)}return e.prototype._initContainer=function(t){this._container=t,this._chartContainer=Y(\\"div\\",{position:\\"relative\\",width:\\"100%\\",outline:\\"none\\",borderStyle:\\"none\\",cursor:\\"crosshair\\",boxSizing:\\"border-box\\",userSelect:\\"none\\",webkitUserSelect:\\"none\\",msUserSelect:\\"none\\",MozUserSelect:\\"none\\",webkitTapHighlightColor:\\"transparent\\"}),this._chartContainer.tabIndex=1,t.appendChild(this._chartContainer)},e.prototype._measurePaneHeight=function(){var t,e=this._container.offsetHeight,i=this._xAxisPane.getAxisComponent().getAutoSize(),o=e-i;0>o&&(o=0);var n=0;this._panes.forEach((function(t){if(t.getId()!==Kt.CANDLE){var e=t.getBounding().height,i=t.getOptions().minHeight;i>e&&(e=i),n+e>o?e=Math.max(o-(n=o),0):n+=e,t.setBounding({height:e})}}));var r=o-n;null===(t=this._panes.get(Kt.CANDLE))||void 0===t||t.setBounding({height:r});var a=0;this._panes.forEach((function(t){t.setBounding({top:a}),a+=t.getBounding().height})),this._xAxisPane.setBounding({height:i,top:a})},e.prototype._measurePaneWidth=function(){var e=this._chartStore.getStyles().yAxis,i=e.position===t.YAxisPosition.Left,o=!e.inside,n=this._container.offsetWidth,r=0,a=Number.MIN_SAFE_INTEGER,s=0,l=0;this._panes.forEach((function(t){a=Math.max(a,t.getAxisComponent().getAutoSize())})),a>n&&(a=n),o?(r=n-a,i?(s=0,l=a):(s=n-a,l=0)):(r=n,l=0,s=i?0:n-a),this._chartStore.getTimeScaleStore().setTotalBarSpace(r);var u={width:n},c={width:r,left:l},h={width:a,left:s};this._panes.forEach((function(t){t.setBounding(u,c,h)})),this._xAxisPane.setBounding(u,c,h)},e.prototype._setPaneOptions=function(t,e){var i,o,n=this._panes.get(null!==(i=null==t?void 0:t.id)&&void 0!==i?i:\\"\\"),r=!1;if(void 0!==n){var a=e;if(t.id!==Kt.CANDLE&&void 0!==t.height&&t.height>0){var s=Math.max(null!==(o=t.minHeight)&&void 0!==o?o:n.getOptions().minHeight,0);n.setBounding({height:Math.max(s,t.height)}),a=!0,r=!0}n.setOptions(t),a&&this.adjustPaneViewport(r,!0,!0,!0,!0)}},e.prototype.getContainer=function(){return this._container},e.prototype.getChartStore=function(){return this._chartStore},e.prototype.getAllPanes=function(){return this._panes},e.prototype.adjustPaneViewport=function(t,e,i,o,n){t&&this._measurePaneHeight();var r=e,a=null!=n&&n;(null!=o&&o||a)&&this._panes.forEach((function(t){var e=t.getAxisComponent().buildTicks(a);r||(r=e)})),r&&this._measurePaneWidth(),null!=i&&i&&(this._xAxisPane.getAxisComponent().buildTicks(!0),this.updatePane(4))},e.prototype.updatePane=function(t,e){var i;void 0!==e?null===(i=this.getPaneById(e))||void 0===i||i.update(t):(this._xAxisPane.update(t),this._panes.forEach((function(e){e.update(t)})))},e.prototype.getPaneById=function(t){var e;return t===Kt.XAXIS?this._xAxisPane:null!==(e=this._panes.get(t))&&void 0!==e?e:null},e.prototype.crosshairChange=function(e){var i=this,o=this._chartStore.getActionStore();if(o.has(t.ActionType.OnCrosshairChange)){var n={};this._panes.forEach((function(t,o){var r={};i._chartStore.getIndicatorStore().getInstances(o).forEach((function(t){var i,o=t.result;r[t.name]=o[null!==(i=e.dataIndex)&&void 0!==i?i:o.length-1]})),n[o]=r})),void 0!==e.paneId&&o.execute(t.ActionType.OnCrosshairChange,k(k({},e),{indicatorData:n}))}},e.prototype.getDom=function(e,i){var o,n;if(void 0===e)return this._chartContainer;var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getContainer();case t.DomPosition.Main:return r.getMainWidget().getContainer();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getContainer())&&void 0!==n?n:null}return null},e.prototype.getSize=function(e,i){var o,n;if(void 0===e)return{width:this._chartContainer.offsetWidth,height:this._chartContainer.offsetHeight,left:0,top:0,right:0,bottom:0};var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getBounding();case t.DomPosition.Main:return r.getMainWidget().getBounding();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getBounding())&&void 0!==n?n:null}return null},e.prototype.setStyles=function(t){var e,i,o;this._chartStore.setOptions({styles:t}),void 0!==(null===(e=null==(o=u(t)?Qt(t):t)?void 0:o.yAxis)||void 0===e?void 0:e.type)&&(null===(i=this.getPaneById(Kt.CANDLE))||void 0===i||i.getAxisComponent().setAutoCalcTickFlag(!0)),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getStyles=function(){return this._chartStore.getStyles()},e.prototype.setLocale=function(t){this._chartStore.setOptions({locale:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getLocale=function(){return this._chartStore.getLocale()},e.prototype.setCustomApi=function(t){this._chartStore.setOptions({customApi:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.setPriceVolumePrecision=function(t,e){this._chartStore.setPrecision({price:t,volume:e})},e.prototype.getPriceVolumePrecision=function(){return this._chartStore.getPrecision()},e.prototype.setTimezone=function(t){this._chartStore.setOptions({timezone:t}),this._xAxisPane.getAxisComponent().buildTicks(!0),this._xAxisPane.update(3)},e.prototype.getTimezone=function(){return this._chartStore.getTimeScaleStore().getTimezone()},e.prototype.setOffsetRightDistance=function(t){this._chartStore.getTimeScaleStore().setOffsetRightDistance(t,!0)},e.prototype.getOffsetRightDistance=function(){return this._chartStore.getTimeScaleStore().getOffsetRightDistance()},e.prototype.setLeftMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setLeftMinVisibleBarCount(Math.ceil(t))},e.prototype.setRightMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setRightMinVisibleBarCount(Math.ceil(t))},e.prototype.setBarSpace=function(t){this._chartStore.getTimeScaleStore().setBarSpace(t)},e.prototype.getBarSpace=function(){return this._chartStore.getTimeScaleStore().getBarSpace().bar},e.prototype.getVisibleRange=function(){return this._chartStore.getTimeScaleStore().getVisibleRange()},e.prototype.clearData=function(){this._chartStore.clear()},e.prototype.getDataList=function(){return this._chartStore.getDataList()},e.prototype.applyNewData=function(t,e,i){this._chartStore.clear(),0===t.length?this.adjustPaneViewport(!1,!0,!0,!0):this.applyMoreData(t,e,i)},e.prototype.applyMoreData=function(t,e,i){var o=this;this._chartStore.addData(t,0,e),t.length>0&&this._chartStore.getIndicatorStore().calcInstance().then((function(t){o.adjustPaneViewport(!1,!0,!0,!0),null==i||i()})).catch((function(t){}))},e.prototype.updateData=function(t,e){var i=this,o=this._chartStore.getDataList(),n=o.length,r=t.timestamp,a=C(o[n-1],\\"timestamp\\",0);if(r>=a){var s=n;r===a&&(s=n-1),this._chartStore.addData(t,s),this._chartStore.getIndicatorStore().calcInstance().then((function(t){i.adjustPaneViewport(!1,!0,!0,!0),null==e||e()})).catch((function(t){}))}},e.prototype.loadMore=function(t){this._chartStore.getTimeScaleStore().setLoadMoreCallback(t)},e.prototype.createIndicator=function(t,e,i,o){var n,r,a,l=this,c=u(t)?{name:t}:t;if(null===pt(c.name))return null;if(s(i)&&u(null==i?void 0:i.id)&&this._panes.has(i.id))a=i.id,this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).then((function(t){var e,o;l._setPaneOptions(i,null!==(o=null===(e=l._panes.get(a))||void 0===e?void 0:e.getAxisComponent().buildTicks(!0))&&void 0!==o&&o)})).catch((function(t){}));else{a=null!==(n=null==i?void 0:i.id)&&void 0!==n?n:z(Kt.INDICATOR);var h=Array.from(this._panes.values()).pop(),d=new Ke(this._chartContainer,this,a,h);h.setBottomPane(d);var p=null!==(r=null==i?void 0:i.height)&&void 0!==r?r:100;d.setBounding({height:p}),s(i)&&d.setOptions(i),this._panes.set(a,d),this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).finally((function(){l.adjustPaneViewport(!0,!0,!0,!0,!0),null==o||o()}))}return a},e.prototype.overrideIndicator=function(t,e,i){var o=this;this._chartStore.getIndicatorStore().override(t,null!=e?e:null).then((function(t){var e=R(t,2),n=e[1];(e[0]||n)&&(o.adjustPaneViewport(!1,n,!0,n),null==i||i())})).catch((function(){}))},e.prototype.getIndicatorByPaneId=function(t,e){return this._chartStore.getIndicatorStore().getInstanceByPaneId(t,e)},e.prototype.removeIndicator=function(t,e){var i=this._chartStore.getIndicatorStore();if(i.removeInstance(t,e)){var o=!1;if(t!==Kt.CANDLE&&!i.hasInstances(t)){var n=this._panes.get(t);if(void 0!==n){o=!0;var r=n.getTopPane(),a=n.getBottomPane();null==a||a.setTopPane(r),null==r||r.setBottomPane(a),null==n||n.destroy(),this._panes.delete(t)}}this.adjustPaneViewport(o,!0,!0,!0,!0)}},e.prototype.createOverlay=function(t,e){var i=[];if(u(t))i=[{name:t}];else if(o(t))i=t.map((function(t){return u(t)?{name:t}:t}));else{i=[t]}var n=!0;void 0!==e&&null!==this.getPaneById(e)||(e=Kt.CANDLE,n=!1);var r=this._chartStore.getOverlayStore().addInstances(i,e,n);return o(t)?r:r[0]},e.prototype.getOverlayById=function(t){return this._chartStore.getOverlayStore().getInstanceById(t)},e.prototype.overrideOverlay=function(t){this._chartStore.getOverlayStore().override(t)},e.prototype.removeOverlay=function(t){var e;void 0!==t&&(e=u(t)?{id:t}:t),this._chartStore.getOverlayStore().removeInstance(e)},e.prototype.setPaneOptions=function(t){this._setPaneOptions(t,!1)},e.prototype.setZoomEnabled=function(t){this._chartStore.getTimeScaleStore().setZoomEnabled(t)},e.prototype.isZoomEnabled=function(){return this._chartStore.getTimeScaleStore().getZoomEnabled()},e.prototype.setScrollEnabled=function(t){this._chartStore.getTimeScaleStore().setScrollEnabled(t)},e.prototype.isScrollEnabled=function(){return this._chartStore.getTimeScaleStore().getScrollEnabled()},e.prototype.scrollByDistance=function(t,e){var i=void 0===e||0>e?0:e,o=this._chartStore.getTimeScaleStore();if(i>0){o.startScroll();var n=(new Date).getTime(),r=function(){var e=((new Date).getTime()-n)/i,a=e>=1;o.scroll(a?t:t*e),a||requestAnimationFrame(r)};r()}else o.startScroll(),o.scroll(t)},e.prototype.scrollToRealTime=function(t){var e=this._chartStore.getTimeScaleStore(),i=e.getBarSpace().bar,o=e.getOffsetRightBarCount()-e.getInitialOffsetRightDistance()/i;this.scrollByDistance(o*i,t)},e.prototype.scrollToDataIndex=function(t,e){var i=this._chartStore.getTimeScaleStore(),o=(i.getOffsetRightBarCount()+(this.getDataList().length-1-t))*i.getBarSpace().bar;this.scrollByDistance(o,e)},e.prototype.scrollToTimestamp=function(t,e){var i=Z(this.getDataList(),\\"timestamp\\",t);this.scrollToDataIndex(i,e)},e.prototype.zoomAtCoordinate=function(t,e,i){var o=void 0===i||0>i?0:i,n=this._chartStore.getTimeScaleStore();if(o>0){var r=n.getBarSpace().bar,a=r*t-r,s=(new Date).getTime(),l=function(){var t=((new Date).getTime()-s)/o,i=t>=1;n.zoom((i?a:a*t)/r,e),i||requestAnimationFrame(l)};l()}else n.zoom(t,e)},e.prototype.zoomAtDataIndex=function(t,e,i){var o=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(e);this.zoomAtCoordinate(t,{x:o,y:0},i)},e.prototype.zoomAtTimestamp=function(t,e,i){var o=Z(this.getDataList(),\\"timestamp\\",e);this.zoomAtDataIndex(t,o,i)},e.prototype.convertToPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e={},i=t.dataIndex;if(void 0!==t.timestamp&&(i=c.timestampToDataIndex(t.timestamp)),void 0!==i&&(e.x=null==p?void 0:p.convertToPixel(i)),void 0!==t.value){var o=null==v?void 0:v.convertToPixel(t.value);e.y=s?h.top+o:o}return e}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.convertFromPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e,i={};if(void 0!==t.x){var o=p.convertFromPixel(t.x);i.dataIndex=o,i.timestamp=null!==(e=c.dataIndexToTimestamp(o))&&void 0!==e?e:void 0}void 0!==t.y&&(i.value=v.convertFromPixel(s?t.y-h.top:t.y));return i}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.executeAction=function(e,i){var o;if(e===t.ActionType.OnCrosshairChange){var n=k({},i);n.paneId=null!==(o=n.paneId)&&void 0!==o?o:Kt.CANDLE,this._chartStore.getTooltipStore().setCrosshair(n)}},e.prototype.subscribeAction=function(t,e){this._chartStore.getActionStore().subscribe(t,e)},e.prototype.unsubscribeAction=function(t,e){this._chartStore.getActionStore().unsubscribe(t,e)},e.prototype.getConvertPictureUrl=function(t,e,i){var o=this._chartContainer.offsetWidth,n=this._chartContainer.offsetHeight,r=Y(\\"canvas\\",{width:\\"\\".concat(o,\\"px\\"),height:\\"\\".concat(n,\\"px\\"),boxSizing:\\"border-box\\"}),a=r.getContext(\\"2d\\"),s=X(r);r.width=o*s,r.height=n*s,a.scale(s,s),a.fillStyle=null!=i?i:\\"#FFFFFF\\",a.fillRect(0,0,o,n);var l=null!=t&&t;this._panes.forEach((function(t){var e=t.getBounding();a.drawImage(t.getImage(l),0,e.top,o,e.height)}));var u=this._xAxisPane.getBounding();return a.drawImage(this._xAxisPane.getImage(l),0,u.top,o,u.height),r.toDataURL(\\"image/\\".concat(null!=e?e:\\"jpeg\\"))},e.prototype.resize=function(){this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.destroy=function(){this._chartEvent.destroy(),this._panes.forEach((function(t){t.destroy()})),this._panes.clear(),this._xAxisPane.destroy(),this._container.removeChild(this._chartContainer)},e}(),li=new Map,ui=1;var ci={clone:i,merge:e,isString:u,isNumber:a,isValid:s,isObject:r,isArray:o,isFunction:n,isBoolean:l,formatValue:C,formatPrecision:T,formatBigNumber:w,formatDate:b,formatThousands:E,calcTextWidth:j,getLinearSlopeIntercept:kt,getLinearYFromSlopeIntercept:Pt,getLinearYFromCoordinates:Mt,checkCoordinateOnArc:xe,checkCoordinateOnCircle:re,checkCoordinateOnLine:Dt,checkCoordinateOnPolygon:le,checkCoordinateOnRect:de,checkCoordinateOnText:fe,drawArc:Se,drawCircle:ae,drawLine:At,drawPolygon:ue,drawRect:pe,drawText:me,drawRectText:_e};t.dispose=function(t){var e,i,o;if(t instanceof si)o=t.id;else{var n=void 0;o=null!==(e=null==(n=u(t)?document.getElementById(t):t)?void 0:n.getAttribute(\\"k-line-chart-id\\"))&&void 0!==e?e:null}null!==o&&(null===(i=li.get(o))||void 0===i||i.destroy(),li.delete(o))},t.getFigureClass=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null},t.getOverlayClass=function(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null},t.getSupportedFigures=function(){return Object.keys(be)},t.getSupportedIndicators=function(){return Object.keys(ht)},t.getSupportedLocales=function(){return Object.keys(Be)},t.getSupportedOverlays=function(){return Object.keys(Vt)},t.init=function(t,e){var i;if(null===(i=u(t)?document.getElementById(t):t))return null;var o=li.get(i.id);if(void 0!==o)return o;var n=\\"k_line_chart_\\".concat(ui++);return(o=new si(i,e)).id=n,i.setAttribute(\\"k-line-chart-id\\",n),li.set(n,o),o},t.registerFigure=function(t){be[t.name]=wt.extend(t)},t.registerIndicator=function(t){ht[t.name]=nt.extend(t)},t.registerLocale=function(t,e){Be[t]=k(k({},Be[t]),e)},t.registerOverlay=function(t){Vt[t.name]=xt.extend(t)},t.registerStyles=function(t,e){Jt[t]=e},t.utils=ci,t.version=function(){return\\"9.5.4\\"}}));\\n"]]},"headers":[],"relativePath":"en-US/sample/timezone.md","filePath":"en-US/sample/timezone.md","lastUpdated":1698784282000}`),d={name:"en-US/sample/timezone.md"},x=Object.assign(d,{setup(y){return(v,g)=>(i(),r("div",null,[u,l(n,{js:t(o),html:t(s),css:t(a),title:"Timezone"},null,8,["js","html","css"]),h]))}});export{D as __pageData,x as default}; diff --git a/assets/en-US_sample_timezone.md.d3cc9c94.lean.js b/assets/en-US_sample_timezone.md.6e8af94e.lean.js similarity index 99% rename from assets/en-US_sample_timezone.md.d3cc9c94.lean.js rename to assets/en-US_sample_timezone.md.6e8af94e.lean.js index 4f400375f..e39c51040 100644 --- a/assets/en-US_sample_timezone.md.d3cc9c94.lean.js +++ b/assets/en-US_sample_timezone.md.6e8af94e.lean.js @@ -1 +1 @@ -import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.d021247c.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"timezone",tabindex:"-1"},[c("Timezone "),e("a",{class:"header-anchor",href:"#timezone","aria-label":'Permalink to "Timezone"'},"​")],-1),h=p("",1),x=JSON.parse(`{"title":"Timezone","description":"","frontmatter":{"aside":false,"editLink":false,"head":[["script",{},"/**\\n * @license\\n * KLineChart v9.5.4\\n * Copyright (c) 2019 lihu.\\n * Licensed under Apache License 2.0 https://www.apache.org/licenses/LICENSE-2.0\\n */\\n!function(t,e){\\"object\\"==typeof exports&&\\"undefined\\"!=typeof module?e(exports):\\"function\\"==typeof define&&define.amd?define([\\"exports\\"],e):e((t=\\"undefined\\"!=typeof globalThis?globalThis:t||self).klinecharts={})}(this,(function(t){\\"use strict\\";function e(t,i){if(r(t)||r(i))for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var a=t[n],l=i[n];r(l)&&r(a)&&!o(l)&&!o(a)?e(a,l):s(i[n])&&(t[n]=i[n])}}function i(t){if(!r(t)||!o(t))return t;var e;for(var n in e=o(t)?[]:{},t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=t[n];e[n]=r(a)?i(a):a}return e}function o(t){return\\"[object Array]\\"===Object.prototype.toString.call(t)}function n(t){return\\"function\\"==typeof t}function r(t){return\\"object\\"==typeof t}function a(t){return\\"number\\"==typeof t&&!isNaN(t)}function s(t){return null!=t}function l(t){return\\"boolean\\"==typeof t}function u(t){return\\"string\\"==typeof t}var c,h,d,p,v,g,f,m,y,_,x=/\\\\\\\\(\\\\\\\\)?/g,S=RegExp(\\"[^.[\\\\\\\\]]+|\\\\\\\\[(?:([^\\\\\\"'][^[]*)|([\\\\\\"'])((?:(?!\\\\\\\\2)[^\\\\\\\\\\\\\\\\]|\\\\\\\\\\\\\\\\.)*?)\\\\\\\\2)\\\\\\\\]|(?=(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\])(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\]|$))\\",\\"g\\");function C(t,e,i){if(s(t)){var o=[];e.replace(S,(function(t){for(var e=[],i=1;arguments.length>i;i++)e[i-1]=arguments[i];var n=t;return s(e[1])?n=e[2].replace(x,\\"$1\\"):s(e[0])&&(n=e[0].trim()),o.push(n),\\"\\"}));for(var n=t,r=0,a=o.length;s(n)&&a>r;)n=null==n?void 0:n[o[r++]];return s(n)?n:null!=i?i:\\"--\\"}return null!=i?i:\\"--\\"}function b(t,e,i){var o=t.format(new Date(e)).split(\\", \\"),n=o[0].split(\\"/\\"),r=o[1].split(\\":\\"),a={YYYY:n[2],MM:n[0],DD:n[1],HH:\\"24\\"===r[0]?\\"00\\":r[0],mm:r[1],ss:r[2]};return i.replace(/YYYY|MM|DD|HH|mm|ss/g,(function(t){return a[t]}))}function T(t,e){var i=+t;return a(i)?i.toFixed(null!=e?e:2):\\"\\".concat(t)}function w(t){var e=+t;if(a(e)){if(e>1e9)return\\"\\".concat(+(e/1e9).toFixed(3),\\"B\\");if(e>1e6)return\\"\\".concat(+(e/1e6).toFixed(3),\\"M\\");if(e>1e3)return\\"\\".concat(+(e/1e3).toFixed(3),\\"K\\")}return\\"\\".concat(t)}function E(t,e){var i=\\"\\".concat(t);if(0===e.length)return i;if(i.includes(\\".\\")){var o=i.split(\\".\\");return\\"\\".concat(o[0].replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)})),\\".\\").concat(o[1])}return i.replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)}))}t.LineType=void 0,(c=t.LineType||(t.LineType={})).Dashed=\\"dashed\\",c.Solid=\\"solid\\",t.PolygonType=void 0,(h=t.PolygonType||(t.PolygonType={})).Stroke=\\"stroke\\",h.Fill=\\"fill\\",h.StrokeFill=\\"stroke_fill\\",t.TooltipShowRule=void 0,(d=t.TooltipShowRule||(t.TooltipShowRule={})).Always=\\"always\\",d.FollowCross=\\"follow_cross\\",d.None=\\"none\\",t.TooltipShowType=void 0,(p=t.TooltipShowType||(t.TooltipShowType={})).Standard=\\"standard\\",p.Rect=\\"rect\\",t.TooltipIconPosition=void 0,(v=t.TooltipIconPosition||(t.TooltipIconPosition={})).Left=\\"left\\",v.Middle=\\"middle\\",v.Right=\\"right\\",function(t){t.Fixed=\\"fixed\\",t.Pointer=\\"pointer\\"}(g||(g={})),t.CandleType=void 0,(f=t.CandleType||(t.CandleType={})).CandleSolid=\\"candle_solid\\",f.CandleStroke=\\"candle_stroke\\",f.CandleUpStroke=\\"candle_up_stroke\\",f.CandleDownStroke=\\"candle_down_stroke\\",f.Ohlc=\\"ohlc\\",f.Area=\\"area\\",t.YAxisPosition=void 0,(m=t.YAxisPosition||(t.YAxisPosition={})).Left=\\"left\\",m.Right=\\"right\\",t.YAxisType=void 0,(y=t.YAxisType||(t.YAxisType={})).Normal=\\"normal\\",y.Percentage=\\"percentage\\",y.Log=\\"log\\",t.FormatDateType=void 0,(_=t.FormatDateType||(t.FormatDateType={}))[_.Tooltip=0]=\\"Tooltip\\",_[_.Crosshair=1]=\\"Crosshair\\",_[_.XAxis=2]=\\"XAxis\\";var I=\\"en-US\\",D=function(t,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},D(t,e)};function P(t,e){if(\\"function\\"!=typeof e&&null!==e)throw new TypeError(\\"Class extends value \\"+e+\\" is not a constructor or null\\");function i(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var M,k=function(){return k=Object.assign||function(t){for(var e,i=1,o=arguments.length;o>i;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},k.apply(this,arguments)};function A(t,e,i,o){return new(i||(i=Promise))((function(n,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function s(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))}function F(t,e){var i,o,n,r,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},\\"function\\"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(l){return function(s){if(i)throw new TypeError(\\"Generator is already executing.\\");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(i=1,o&&(n=2&s[0]?o.return:s[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&n[3]>s[1])){a.label=s[1];break}if(6===s[0]&&n[1]>a.label){a.label=n[1],n=s;break}if(n&&n[2]>a.label){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],o=0}finally{i=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function L(t){var e=\\"function\\"==typeof Symbol&&Symbol.iterator,i=e&&t[e],o=0;if(i)return i.call(t);if(t&&\\"number\\"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?\\"Object is not iterable.\\":\\"Symbol.iterator is not defined.\\")}function R(t,e){var i=\\"function\\"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,n,r=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return a}function B(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;r>n;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}t.ActionType=void 0,(M=t.ActionType||(t.ActionType={})).OnZoom=\\"onZoom\\",M.OnScroll=\\"onScroll\\",M.OnVisibleRangeChange=\\"onVisibleRangeChange\\",M.OnTooltipIconClick=\\"onTooltipIconClick\\",M.OnCrosshairChange=\\"onCrosshairChange\\",M.OnCandleBarClick=\\"onCandleBarClick\\",M.OnPaneDrag=\\"onPaneDrag\\";var O,V=function(){function t(){this._callbacks=[]}return t.prototype.subscribe=function(t){var e;0>(null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1)&&this._callbacks.push(t)},t.prototype.unsubscribe=function(t){var e;if(void 0!==t){var i=null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1;i>-1&&this._callbacks.splice(i,1)}else this._callbacks=[]},t.prototype.execute=function(t){this._callbacks.forEach((function(e){e(t)}))},t.prototype.isEmpty=function(){return 0===this._callbacks.length},t}(),N=1,W=(new Date).getTime();function z(t){var e=(new Date).getTime();return e===W?++N:N=1,W=e,\\"\\".concat(null!=t?t:\\"\\").concat(e,\\"_\\").concat(N)}function Y(t,e){var i,o=document.createElement(t),n=null!=e?e:{};for(var r in n)o.style[r]=null!==(i=n[r])&&void 0!==i?i:\\"\\";return o}function X(t){var e,i,o;return Math.ceil(null!==(o=null===(i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0===i?void 0:i.devicePixelRatio)&&void 0!==o?o:2)}function H(t,e,i){return\\"\\".concat(null!=e?e:\\"normal\\",\\" \\").concat(null!=t?t:12,\\"px \\").concat(null!=i?i:\\"Helvetica Neue\\")}function j(t,e,i,o){if(void 0===O){var n=document.createElement(\\"canvas\\"),r=X(n);(O=n.getContext(\\"2d\\")).scale(r,r)}return O.font=H(e,i,o),Math.round(O.measureText(t).width)}function Z(t,e,i){var o=0,n=0;for(n=t.length-1;o!==n;){var r=Math.floor((n+o)/2),a=n-o,s=t[r][e];if(i===t[o][e])return o;if(i===t[n][e])return n;if(i===s)return r;if(i>s?o=r:n=r,2>=a)break}return o}function G(t,e){return null==e&&(e=10),+(+t).toFixed(e=Math.min(Math.max(0,e),20))}function K(t,e,i){var o=[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER];return t.forEach((function(t){var n,r;o[0]=Math.max(null!==(n=t[e])&&void 0!==n?n:t,o[0]),o[1]=Math.min(null!==(r=t[i])&&void 0!==r?r:t,o[1])})),o}function U(t){return Math.log(t)/Math.log(10)}function q(t){return Math.pow(10,t)}var $,J=1,Q=50,tt=6,et=50,it=function(){function e(t){this._dateTimeFormat=this._buildDateTimeFormat(),this._zoomEnabled=!0,this._scrollEnabled=!0,this._loading=!0,this._loadMoreCallback=null,this._more=!0,this._totalBarSpace=0,this._barSpace=tt,this._offsetRightDistance=et,this._startScrollOffsetRightBarCount=0,this._minVisibleBarCount={left:2,right:2},this._visibleRange={from:0,to:0,realFrom:0,realTo:0},this._chartStore=t,this._gapBarSpace=this._calcGapBarSpace(),this._offsetRightBarCount=this._offsetRightDistance/this._barSpace}return e.prototype._calcGapBarSpace=function(){return Math.max(1,Math.min(Math.floor(.82*this._barSpace),Math.floor(this._barSpace)-1))},e.prototype.adjustVisibleRange=function(){var e,i=this._chartStore.getDataList(),o=i.length,n=this._totalBarSpace/this._barSpace,r=n-Math.min(this._minVisibleBarCount.left,o);this._offsetRightBarCount>r&&(this._offsetRightBarCount=r);var a=-o+Math.min(this._minVisibleBarCount.right,o);a>this._offsetRightBarCount&&(this._offsetRightBarCount=a);var s=Math.round(this._offsetRightBarCount+o+.5);s>o&&(s=o);var l=Math.round(s-n)-1;if(0>l&&(l=0),this._visibleRange={from:l,to:s,realFrom:this._offsetRightBarCount>0?Math.round(o+this._offsetRightBarCount-n)-1:l,realTo:s},this._chartStore.getActionStore().execute(t.ActionType.OnVisibleRangeChange,this._visibleRange),this._chartStore.adjustVisibleDataList(),0===l&&this._more&&!this._loading&&null!==this._loadMoreCallback){this._loading=!0;var u=i[0];this._loadMoreCallback(null!==(e=null==u?void 0:u.timestamp)&&void 0!==e?e:null)}},e.prototype.setMore=function(t){return this._more=t,this},e.prototype.setLoading=function(t){return this._loading=t,this},e.prototype.getDateTimeFormat=function(){return this._dateTimeFormat},e.prototype._buildDateTimeFormat=function(t){var e={hour12:!1,year:\\"numeric\\",month:\\"2-digit\\",day:\\"2-digit\\",hour:\\"2-digit\\",minute:\\"2-digit\\",second:\\"2-digit\\"};void 0!==t&&(e.timeZone=t);var i=null;try{i=new Intl.DateTimeFormat(\\"en\\",e)}catch(t){}return i},e.prototype.setTimezone=function(t){var e=this._buildDateTimeFormat(t);null!==e&&(this._dateTimeFormat=e)},e.prototype.getTimezone=function(){return this._dateTimeFormat.resolvedOptions().timeZone},e.prototype.getBarSpace=function(){return{bar:this._barSpace,halfBar:this._barSpace/2,gapBar:this._gapBarSpace,halfGapBar:this._gapBarSpace/2}},e.prototype.setBarSpace=function(t,e){J>t||t>Q||this._barSpace===t||(this._barSpace=t,this._gapBarSpace=this._calcGapBarSpace(),null==e||e(),this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0))},e.prototype.setTotalBarSpace=function(t){return this._totalBarSpace!==t&&(this._totalBarSpace=t,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0)),this},e.prototype.setOffsetRightDistance=function(t,e){return this._offsetRightDistance=t,this._offsetRightBarCount=t/this._barSpace,null!=e&&e&&(this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)),this},e.prototype.resetOffsetRightDistance=function(){this.setOffsetRightDistance(this._offsetRightDistance)},e.prototype.getInitialOffsetRightDistance=function(){return this._offsetRightDistance},e.prototype.getOffsetRightDistance=function(){return Math.max(0,this._offsetRightBarCount*this._barSpace)},e.prototype.getOffsetRightBarCount=function(){return this._offsetRightBarCount},e.prototype.setOffsetRightBarCount=function(t){return this._offsetRightBarCount=t,this},e.prototype.setLeftMinVisibleBarCount=function(t){return this._minVisibleBarCount.left=t,this},e.prototype.setRightMinVisibleBarCount=function(t){return this._minVisibleBarCount.right=t,this},e.prototype.getVisibleRange=function(){return this._visibleRange},e.prototype.startScroll=function(){this._startScrollOffsetRightBarCount=this._offsetRightBarCount},e.prototype.scroll=function(e){if(this._scrollEnabled){var i=e/this._barSpace;this._chartStore.getActionStore().execute(t.ActionType.OnScroll),this._offsetRightBarCount=this._startScrollOffsetRightBarCount-i,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)}},e.prototype.getDataByDataIndex=function(t){var e;return null!==(e=this._chartStore.getDataList()[t])&&void 0!==e?e:null},e.prototype.coordinateToFloatIndex=function(t){var e=this._chartStore.getDataList().length;return Math.round(1e6*(e+this._offsetRightBarCount-(this._totalBarSpace-t)/this._barSpace))/1e6},e.prototype.dataIndexToTimestamp=function(t){var e,i=this.getDataByDataIndex(t);return null!==(e=null==i?void 0:i.timestamp)&&void 0!==e?e:null},e.prototype.timestampToDataIndex=function(t){var e=this._chartStore.getDataList();return 0===e.length?0:Z(e,\\"timestamp\\",t)},e.prototype.dataIndexToCoordinate=function(t){var e=this._chartStore.getDataList().length;return this._totalBarSpace-(e+this._offsetRightBarCount-t-.5)*this._barSpace},e.prototype.coordinateToDataIndex=function(t){return Math.ceil(this.coordinateToFloatIndex(t))-1},e.prototype.zoom=function(e,i){var o,n=this;if(this._zoomEnabled){if(void 0===(null==i?void 0:i.x)){var r=this._chartStore.getTooltipStore().getCrosshair();i={x:null!==(o=null==r?void 0:r.x)&&void 0!==o?o:this._totalBarSpace/2}}this._chartStore.getActionStore().execute(t.ActionType.OnZoom);var a=this.coordinateToFloatIndex(i.x);this.setBarSpace(this._barSpace+e*(this._barSpace/10),(function(){n._offsetRightBarCount+=a-n.coordinateToFloatIndex(null==i?void 0:i.x)}))}},e.prototype.setZoomEnabled=function(t){return this._zoomEnabled=t,this},e.prototype.getZoomEnabled=function(){return this._zoomEnabled},e.prototype.setScrollEnabled=function(t){return this._scrollEnabled=t,this},e.prototype.getScrollEnabled=function(){return this._scrollEnabled},e.prototype.setLoadMoreCallback=function(t){return this._loadMoreCallback=t,this},e.prototype.clear=function(){this._more=!0,this._loading=!0,this._visibleRange={from:0,to:0,realFrom:0,realTo:0}},e}();function ot(t,e,i,o,n){var r,a=e.result,l=e.figures,u=e.styles,c=C(u,\\"circles\\",o.circles),h=c.length,d=C(u,\\"bars\\",o.bars),p=d.length,v=C(u,\\"lines\\",o.lines),g=v.length,f=0,m=0,y=0;l.forEach((function(l){var u;switch(l.type){case\\"circle\\":var _=c[f%h];r=k(k({},_),{color:_.noChangeColor}),f++;break;case\\"bar\\":var x=d[m%p];r=k(k({},x),{color:x.noChangeColor}),m++;break;case\\"line\\":r=v[y%g],y++}if(s(r)){var S=null===(u=l.styles)||void 0===u?void 0:u.call(l,{prev:{kLineData:t[i-1],indicatorData:a[i-1]},current:{kLineData:t[i],indicatorData:a[i]},next:{kLineData:t[i+1],indicatorData:a[i+1]}},e,o);n(l,k(k({},r),S))}}))}t.IndicatorSeries=void 0,($=t.IndicatorSeries||(t.IndicatorSeries={})).Normal=\\"normal\\",$.Price=\\"price\\",$.Volume=\\"volume\\";var nt=function(){function i(e){this.result=[],this._precisionFlag=!1;var i=e.name,o=e.shortName,n=e.series,r=e.calcParams,a=e.figures,s=e.precision,l=e.shouldOhlc,u=e.shouldFormatBigNumber,c=e.visible,h=e.minValue,d=e.maxValue,p=e.styles,v=e.extendData,g=e.regenerateFigures,f=e.createTooltipDataSource,m=e.draw;this.name=i,this.shortName=null!=o?o:i,this.series=null!=n?n:t.IndicatorSeries.Normal,this.precision=null!=s?s:4,this.calcParams=null!=r?r:[],this.figures=null!=a?a:[],this.shouldOhlc=null!=l&&l,this.shouldFormatBigNumber=null!=u&&u,this.visible=null==c||c,this.minValue=null!=h?h:null,this.maxValue=null!=d?d:null,this.styles=null!=p?p:{},this.extendData=v,this.regenerateFigures=null!=g?g:null,this.createTooltipDataSource=null!=f?f:null,this.draw=null!=m?m:null}return i.prototype.setShortName=function(t){return this.shortName!==t&&(this.shortName=t,!0)},i.prototype.setSeries=function(t){return this.series!==t&&(this.series=t,!0)},i.prototype.setPrecision=function(t,e){var i=null!=e&&e,o=Math.floor(t);return!(o===this.precision||0>t||i&&(!i||this._precisionFlag))&&(this.precision=o,i||(this._precisionFlag=!0),!0)},i.prototype.setCalcParams=function(t){var e,i;return this.calcParams=t,this.figures=null!==(i=null===(e=this.regenerateFigures)||void 0===e?void 0:e.call(this,t))&&void 0!==i?i:this.figures,!0},i.prototype.setShouldOhlc=function(t){return this.shouldOhlc!==t&&(this.shouldOhlc=t,!0)},i.prototype.setShouldFormatBigNumber=function(t){return this.shouldFormatBigNumber!==t&&(this.shouldFormatBigNumber=t,!0)},i.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},i.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},i.prototype.setExtendData=function(t){return this.extendData!==t&&(this.extendData=t,!0)},i.prototype.setFigures=function(t){return this.figures!==t&&(this.figures=t,!0)},i.prototype.setMinValue=function(t){return this.minValue!==t&&(this.minValue=t,!0)},i.prototype.setMaxValue=function(t){return this.maxValue!==t&&(this.maxValue=t,!0)},i.prototype.setRegenerateFigures=function(t){return this.regenerateFigures!==t&&(this.regenerateFigures=t,!0)},i.prototype.setCreateTooltipDataSource=function(t){return this.createTooltipDataSource!==t&&(this.createTooltipDataSource=t,!0)},i.prototype.setDraw=function(t){return this.draw!==t&&(this.draw=t,!0)},i.prototype.calcIndicator=function(t){return A(this,void 0,void 0,(function(){var e;return F(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.calc(t,this)];case 1:return e=i.sent(),this.result=e,[2,!0];case 2:return i.sent(),[2,!1];case 3:return[2]}}))}))},i.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i.prototype.calc=function(e,i){return t.calc(e,i)},i}(i)},i}(),rt={name:\\"AVP\\",shortName:\\"AVP\\",series:t.IndicatorSeries.Price,precision:2,figures:[{key:\\"avp\\",title:\\"AVP: \\",type:\\"line\\"}],calc:function(t){var e=0,i=0;return t.map((function(t){var o,n,r={},a=null!==(o=null==t?void 0:t.turnover)&&void 0!==o?o:0,s=null!==(n=null==t?void 0:t.volume)&&void 0!==n?n:0;return e+=a,0!==(i+=s)&&(r.avp=e/i),r}))}};var at={name:\\"EMA\\",shortName:\\"EMA\\",series:t.IndicatorSeries.Price,calcParams:[6,12,20],precision:2,shouldOhlc:!0,figures:[{key:\\"ema1\\",title:\\"EMA6: \\",type:\\"line\\"},{key:\\"ema2\\",title:\\"EMA12: \\",type:\\"line\\"},{key:\\"ema3\\",title:\\"EMA20: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ema\\".concat(e+1),title:\\"EMA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=0,r=[];return t.map((function(t,e){var a={},s=t.close;return n+=s,i.forEach((function(t,i){t-1>e||(r[i]=e>t-1?(2*s+(t-1)*r[i])/(t+1):n/t,a[o[i].key]=r[i])})),a}))}},st={name:\\"MA\\",shortName:\\"MA\\",series:t.IndicatorSeries.Price,calcParams:[5,10,30,60],precision:2,shouldOhlc:!0,figures:[{key:\\"ma5\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma10\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma30\\",title:\\"MA30: \\",type:\\"line\\"},{key:\\"ma60\\",title:\\"MA60: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,i){var l;n[i]=(null!==(l=n[i])&&void 0!==l?l:0)+s,e-1>r||(a[o[i].key]=n[i]/e,n[i]-=t[r-(e-1)].close)})),a}))}},lt={name:\\"RSI\\",shortName:\\"RSI\\",calcParams:[6,12,24],figures:[{key:\\"rsi1\\",title:\\"RSI1: \\",type:\\"line\\"},{key:\\"rsi2\\",title:\\"RSI2: \\",type:\\"line\\"},{key:\\"rsi3\\",title:\\"RSI3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){var i=e+1;return{key:\\"rsi\\".concat(i),title:\\"RSI\\".concat(i,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[],r=[];return t.map((function(e,a){var s,l={},u=(null!==(s=t[a-1])&&void 0!==s?s:e).close,c=e.close-u;return i.forEach((function(e,i){var s,u,h;if(c>0?n[i]=(null!==(s=n[i])&&void 0!==s?s:0)+c:r[i]=(null!==(u=r[i])&&void 0!==u?u:0)+Math.abs(c),a>=e-1){l[o[i].key]=0!==r[i]?100-100/(1+n[i]/r[i]):0;var d=t[a-(e-1)],p=null!==(h=t[a-e])&&void 0!==h?h:d,v=d.close-p.close;v>0?n[i]-=v:r[i]-=Math.abs(v)}})),l}))}},ut={name:\\"VOL\\",shortName:\\"VOL\\",series:t.IndicatorSeries.Volume,calcParams:[5,10,20],shouldFormatBigNumber:!0,precision:0,minValue:0,figures:[{key:\\"ma1\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA20: \\",type:\\"line\\"},{key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}],regenerateFigures:function(t){var e=t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}));return e.push({key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}),e},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a,s=null!==(a=e.volume)&&void 0!==a?a:0,l={volume:s};return i.forEach((function(e,i){var a,u;n[i]=(null!==(a=n[i])&&void 0!==a?a:0)+s,e-1>r||(l[o[i].key]=n[i]/e,n[i]-=null!==(u=t[r-(e-1)].volume)&&void 0!==u?u:0)})),l}))}},ct={name:\\"WR\\",shortName:\\"WR\\",calcParams:[6,10,14],figures:[{key:\\"wr1\\",title:\\"WR1: \\",type:\\"line\\"},{key:\\"wr2\\",title:\\"WR2: \\",type:\\"line\\"},{key:\\"wr3\\",title:\\"WR3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"wr\\".concat(e+1),title:\\"WR\\".concat(e+1,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures;return t.map((function(e,n){var r={},a=e.close;return i.forEach((function(e,i){var s=e-1;if(n>=s){var l=K(t.slice(n-s,n+1),\\"high\\",\\"low\\"),u=l[0],c=u-l[1];r[o[i].key]=0===c?0:(a-u)/c*100}})),r}))}},ht={},dt=[rt,{name:\\"AO\\",shortName:\\"AO\\",calcParams:[5,34],figures:[{key:\\"ao\\",title:\\"AO: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.ao)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.ao)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return{color:l=c>u?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor),style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,borderColor:l}}}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=0;return t.map((function(e,l){var u,c={},h=(e.low+e.high)/2;(n+=h,r+=h,ll||(c.ao=a-s),c}))}},{name:\\"BIAS\\",shortName:\\"BIAS\\",calcParams:[6,12,24],figures:[{key:\\"bias1\\",title:\\"BIAS6: \\",type:\\"line\\"},{key:\\"bias2\\",title:\\"BIAS12: \\",type:\\"line\\"},{key:\\"bias3\\",title:\\"BIAS24: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"bias\\".concat(e+1),title:\\"BIAS\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,l){var u;if(n[l]=(null!==(u=n[l])&&void 0!==u?u:0)+s,r>=e-1){var c=n[l]/i[l];a[o[l].key]=(s-c)/c*100,n[l]-=t[r-(e-1)].close}})),a}))}},{name:\\"BOLL\\",shortName:\\"BOLL\\",series:t.IndicatorSeries.Price,calcParams:[20,2],precision:2,shouldOhlc:!0,figures:[{key:\\"up\\",title:\\"UP: \\",type:\\"line\\"},{key:\\"mid\\",title:\\"MID: \\",type:\\"line\\"},{key:\\"dn\\",title:\\"DN: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0;return t.map((function(e,r){var a={};if(n+=e.close,r>=o){a.mid=n/i[0];var s=function(t,e){var i=t.length,o=0;return t.forEach((function(t){var i=t.close-e;o+=i*i})),Math.sqrt((o=Math.abs(o))/i)}(t.slice(r-o,r+1),a.mid);a.up=a.mid+i[1]*s,a.dn=a.mid-i[1]*s,n-=t[r-o].close}return a}))}},{name:\\"BRAR\\",shortName:\\"BRAR\\",calcParams:[26],figures:[{key:\\"br\\",title:\\"BR: \\",type:\\"line\\"},{key:\\"ar\\",title:\\"AR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0;return t.map((function(e,s){var l,u,c={},h=e.high,d=e.low,p=e.open,v=(null!==(l=t[s-1])&&void 0!==l?l:e).close;if(r+=h-p,a+=p-d,o+=h-v,n+=v-d,s>=i[0]-1){c.ar=0!==a?r/a*100:0,c.br=0!==n?o/n*100:0;var g=t[s-(i[0]-1)],f=g.high,m=g.low,y=g.open,_=(null!==(u=t[s-i[0]])&&void 0!==u?u:t[s-(i[0]-1)]).close;o-=f-_,n-=_-m,r-=f-y,a-=y-m}return c}))}},{name:\\"BBI\\",shortName:\\"BBI\\",series:t.IndicatorSeries.Price,precision:2,calcParams:[3,6,12,24],shouldOhlc:!0,figures:[{key:\\"bbi\\",title:\\"BBI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max.apply(Math,B([],R(i),!1)),n=[],r=[];return t.map((function(e,a){var s={},l=e.close;if(i.forEach((function(e,i){var o;n[i]=(null!==(o=n[i])&&void 0!==o?o:0)+l,e-1>a||(r[i]=n[i]/e,n[i]-=t[a-(e-1)].close)})),a>=o-1){var u=0;r.forEach((function(t){u+=t})),s.bbi=u/4}return s}))}},{name:\\"CCI\\",shortName:\\"CCI\\",calcParams:[20],figures:[{key:\\"cci\\",title:\\"CCI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0,r=[];return t.map((function(e,a){var s={},l=(e.high+e.low+e.close)/3;if(n+=l,r.push(l),a>=o){var u=n/i[0],c=r.slice(a-o,a+1),h=0;c.forEach((function(t){h+=Math.abs(t-u)}));var d=h/i[0];s.cci=0!==d?(l-u)/d/.015:0,n-=(t[a-o].high+t[a-o].low+t[a-o].close)/3}return s}))}},{name:\\"CR\\",shortName:\\"CR\\",calcParams:[26,10,20,40,60],figures:[{key:\\"cr\\",title:\\"CR: \\",type:\\"line\\"},{key:\\"ma1\\",title:\\"MA1: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA2: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA3: \\",type:\\"line\\"},{key:\\"ma4\\",title:\\"MA4: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.ceil(i[1]/2.5+1),n=Math.ceil(i[2]/2.5+1),r=Math.ceil(i[3]/2.5+1),a=Math.ceil(i[4]/2.5+1),s=0,l=[],u=0,c=[],h=0,d=[],p=0,v=[],g=[];return t.forEach((function(e,f){var m,y,_,x,S,C={},b=null!==(m=t[f-1])&&void 0!==m?m:e,T=(b.high+b.close+b.low+b.open)/4,w=Math.max(0,e.high-T),E=Math.max(0,T-e.low);i[0]-1>f||(C.cr=0!==E?w/E*100:0,s+=C.cr,u+=C.cr,h+=C.cr,p+=C.cr,i[0]+i[1]-2>f||(l.push(s/i[1]),i[0]+i[1]+o-3>f||(C.ma1=l[l.length-1-o]),s-=null!==(y=g[f-(i[1]-1)].cr)&&void 0!==y?y:0),i[0]+i[2]-2>f||(c.push(u/i[2]),i[0]+i[2]+n-3>f||(C.ma2=c[c.length-1-n]),u-=null!==(_=g[f-(i[2]-1)].cr)&&void 0!==_?_:0),i[0]+i[3]-2>f||(d.push(h/i[3]),i[0]+i[3]+r-3>f||(C.ma3=d[d.length-1-r]),h-=null!==(x=g[f-(i[3]-1)].cr)&&void 0!==x?x:0),i[0]+i[4]-2>f||(v.push(p/i[4]),i[0]+i[4]+a-3>f||(C.ma4=v[v.length-1-a]),p-=null!==(S=g[f-(i[4]-1)].cr)&&void 0!==S?S:0)),g.push(C)})),g}},{name:\\"DMA\\",shortName:\\"DMA\\",calcParams:[10,50,10],figures:[{key:\\"dma\\",title:\\"DMA: \\",type:\\"line\\"},{key:\\"ama\\",title:\\"AMA: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c={},h=e.close;n+=h,r+=h;var d=0,p=0;if(i[0]-1>l||(d=n/i[0],n-=t[l-(i[0]-1)].close),i[1]-1>l||(p=r/i[1],r-=t[l-(i[1]-1)].close),l>=o-1){var v=d-p;c.dma=v,a+=v,o+i[2]-2>l||(c.ama=a/i[2],a-=null!==(u=s[l-(i[2]-1)].dma)&&void 0!==u?u:0)}s.push(c)})),s}},{name:\\"DMI\\",shortName:\\"DMI\\",calcParams:[14,6],figures:[{key:\\"pdi\\",title:\\"PDI: \\",type:\\"line\\"},{key:\\"mdi\\",title:\\"MDI: \\",type:\\"line\\"},{key:\\"adx\\",title:\\"ADX: \\",type:\\"line\\"},{key:\\"adxr\\",title:\\"ADXR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=0,l=0,u=0,c=0,h=[];return t.forEach((function(e,d){var p,v,g={},f=null!==(p=t[d-1])&&void 0!==p?p:e,m=f.close,y=e.high,_=e.low,x=y-_,S=Math.abs(y-m),C=Math.abs(m-_),b=y-f.high,T=f.low-_,w=Math.max(Math.max(x,S),C),E=b>0&&b>T?b:0,I=T>0&&T>b?T:0;if(o+=w,n+=E,r+=I,d>=i[0]-1){d>i[0]-1?(a=a-a/i[0]+w,s=s-s/i[0]+E,l=l-l/i[0]+I):(a=o,s=n,l=r);var D=0,P=0;0!==a&&(D=100*s/a,P=100*l/a),g.pdi=D,g.mdi=P;var M=0;P+D!==0&&(M=Math.abs(P-D)/(P+D)*100),u+=M,2*i[0]-2>d||(g.adx=c=d>2*i[0]-2?(c*(i[0]-1)+M)/i[0]:u/i[0],2*i[0]+i[1]-3>d||(g.adxr=((null!==(v=h[d-(i[1]-1)].adx)&&void 0!==v?v:0)+c)/2))}h.push(g)})),h}},{name:\\"EMV\\",shortName:\\"EMV\\",calcParams:[14,9],figures:[{key:\\"emv\\",title:\\"EMV: \\",type:\\"line\\"},{key:\\"maEmv\\",title:\\"MAEMV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.map((function(e,r){var a,s={};if(r>0){var l=t[r-1],u=e.high,c=e.low,h=null!==(a=e.volume)&&void 0!==a?a:0,d=(u+c)/2-(l.high+l.low)/2;if(0===h||u-c==0)s.emv=0;else s.emv=d/(h/1e8/(u-c));o+=s.emv,n.push(s.emv),i[0]>r||(s.maEmv=o/i[0],o-=n[r-i[0]])}return s}))}},at,{name:\\"MTM\\",shortName:\\"MTM\\",calcParams:[12,6],figures:[{key:\\"mtm\\",title:\\"MTM: \\",type:\\"line\\"},{key:\\"maMtm\\",title:\\"MAMTM: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.forEach((function(e,r){var a,s={};rr||(s.maMtm=o/i[1],o-=null!==(a=n[r-(i[1]-1)].mtm)&&void 0!==a?a:0));n.push(s)})),n}},st,{name:\\"MACD\\",shortName:\\"MACD\\",calcParams:[12,26,9],figures:[{key:\\"dif\\",title:\\"DIF: \\",type:\\"line\\"},{key:\\"dea\\",title:\\"DEA: \\",type:\\"line\\"},{key:\\"macd\\",title:\\"MACD: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.macd)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.macd)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return l=c>0?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):0>c?C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor):C(i.styles,\\"bars[0].noChangeColor\\",o.bars[0].noChangeColor),{style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,color:l,borderColor:l}}}],calc:function(t,e){var i,o,n=e.calcParams,r=0,a=0,s=0,l=0,u=Math.max(n[0],n[1]);return t.map((function(t,e){var c={},h=t.close;return r+=h,n[0]-1>e||(i=e>n[0]-1?(2*h+(n[0]-1)*i)/(n[0]+1):r/n[0]),n[1]-1>e||(o=e>n[1]-1?(2*h+(n[1]-1)*o)/(n[1]+1):r/n[1]),u-1>e||(c.dif=a=i-o,s+=a,u+n[2]-2>e||(c.macd=2*(a-(l=e>u+n[2]-2?(2*a+l*(n[2]-1))/(n[2]+1):s/n[2])),c.dea=l)),c}))}},{name:\\"OBV\\",shortName:\\"OBV\\",calcParams:[30],figures:[{key:\\"obv\\",title:\\"OBV: \\",type:\\"line\\"},{key:\\"maObv\\",title:\\"MAOBV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[];return t.forEach((function(e,a){var s,l,u,c,h=null!==(s=t[a-1])&&void 0!==s?s:e;h.close>e.close?n-=null!==(l=e.volume)&&void 0!==l?l:0:e.close>h.close&&(n+=null!==(u=e.volume)&&void 0!==u?u:0);var d={obv:n};o+=n,i[0]-1>a||(d.maObv=o/i[0],o-=null!==(c=r[a-(i[0]-1)].obv)&&void 0!==c?c:0),r.push(d)})),r}},{name:\\"PVT\\",shortName:\\"PVT\\",figures:[{key:\\"pvt\\",title:\\"PVT: \\",type:\\"line\\"}],calc:function(t){var e=0;return t.map((function(i,o){var n,r,a={},s=null!==(n=i.volume)&&void 0!==n?n:1,l=(null!==(r=t[o-1])&&void 0!==r?r:i).close,u=0,c=l*s;return 0!==c&&(u=(i.close-l)/c),a.pvt=e+=u,a}))}},{name:\\"PSY\\",shortName:\\"PSY\\",calcParams:[12,6],figures:[{key:\\"psy\\",title:\\"PSY: \\",type:\\"line\\"},{key:\\"maPsy\\",title:\\"MAPSY: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[],a=[];return t.forEach((function(e,s){var l,u,c={},h=(null!==(l=t[s-1])&&void 0!==l?l:e).close,d=e.close-h>0?1:0;r.push(d),o+=d,i[0]-1>s||(c.psy=o/i[0]*100,n+=c.psy,i[0]+i[1]-2>s||(c.maPsy=n/i[1],n-=null!==(u=a[s-(i[1]-1)].psy)&&void 0!==u?u:0),o-=r[s-(i[0]-1)]),a.push(c)})),a}},{name:\\"ROC\\",shortName:\\"ROC\\",calcParams:[12,6],figures:[{key:\\"roc\\",title:\\"ROC: \\",type:\\"line\\"},{key:\\"maRoc\\",title:\\"MAROC: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[],n=0;return t.forEach((function(e,r){var a,s,l={};if(r>=i[0]-1){var u=(null!==(a=t[r-i[0]])&&void 0!==a?a:t[r-(i[0]-1)]).close;l.roc=0!==u?(e.close-u)/u*100:0,n+=l.roc,i[0]-1+i[1]-1>r||(l.maRoc=n/i[1],n-=null!==(s=o[r-(i[1]-1)].roc)&&void 0!==s?s:0)}o.push(l)})),o}},lt,{name:\\"SMA\\",shortName:\\"SMA\\",series:t.IndicatorSeries.Price,calcParams:[12,2],precision:2,figures:[{key:\\"sma\\",title:\\"SMA: \\",type:\\"line\\"}],shouldOhlc:!0,calc:function(t,e){var i=e.calcParams,o=0,n=0;return t.map((function(t,e){var r={},a=t.close;return o+=a,i[0]-1>e||(r.sma=n=e>i[0]-1?(a*i[1]+n*(i[0]-i[1]+1))/(i[0]+1):o/i[0]),r}))}},{name:\\"KDJ\\",shortName:\\"KDJ\\",calcParams:[9,3,3],figures:[{key:\\"k\\",title:\\"K: \\",type:\\"line\\"},{key:\\"d\\",title:\\"D: \\",type:\\"line\\"},{key:\\"j\\",title:\\"J: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[];return t.forEach((function(e,n){var r,a,s,l,u={},c=e.close;if(n>=i[0]-1){var h=K(t.slice(n-(i[0]-1),n+1),\\"high\\",\\"low\\"),d=h[1],p=h[0]-d;u.k=((i[1]-1)*(null!==(a=null===(r=o[n-1])||void 0===r?void 0:r.k)&&void 0!==a?a:50)+(c-d)/(0===p?1:p)*100)/i[1],u.d=((i[2]-1)*(null!==(l=null===(s=o[n-1])||void 0===s?void 0:s.d)&&void 0!==l?l:50)+u.k)/i[2],u.j=3*u.k-2*u.d}o.push(u)})),o}},{name:\\"SAR\\",shortName:\\"SAR\\",series:t.IndicatorSeries.Price,calcParams:[2,2,20],precision:2,shouldOhlc:!0,figures:[{key:\\"sar\\",title:\\"SAR: \\",type:\\"circle\\",styles:function(t,e,i){var o,n,r=t.current,a=null!==(n=null===(o=r.indicatorData)||void 0===o?void 0:o.sar)&&void 0!==n?n:Number.MIN_SAFE_INTEGER,s=r.kLineData;return{color:((null==s?void 0:s.high)+(null==s?void 0:s.low))/2>a?C(e.styles,\\"circles[0].upColor\\",i.circles[0].upColor):C(e.styles,\\"circles[0].downColor\\",i.circles[0].downColor)}}}],calc:function(t,e){var i=e.calcParams,o=i[0]/100,n=i[1]/100,r=i[2]/100,a=o,s=-100,l=!1,u=0;return t.map((function(e,i){var c=u,h=e.high,d=e.low;if(l){(-100===s||h>s)&&(s=h,a=Math.min(a+n,r)),u=c+a*(s-c);var p=Math.min(t[Math.max(1,i)-1].low,d);u>e.low?(u=s,a=o,s=-100,l=!l):u>p&&(u=p)}else{(-100===s||s>d)&&(s=d,a=Math.min(a+n,r)),u=c+a*(s-c);var v=Math.max(t[Math.max(1,i)-1].high,h);e.high>u?(u=s,a=0,s=-100,l=!l):v>u&&(u=v)}return{sar:u}}))}},{name:\\"TRIX\\",shortName:\\"TRIX\\",calcParams:[12,9],figures:[{key:\\"trix\\",title:\\"TRIX: \\",type:\\"line\\"},{key:\\"maTrix\\",title:\\"MATRIX: \\",type:\\"line\\"}],calc:function(t,e){var i,o,n,r=e.calcParams,a=0,s=0,l=0,u=0,c=[];return t.forEach((function(t,e){var h,d={},p=t.close;if(a+=p,e>=r[0]-1&&(s+=i=e>r[0]-1?(2*p+(r[0]-1)*i)/(r[0]+1):a/r[0],e>=2*r[0]-2&&(l+=o=e>2*r[0]-2?(2*i+(r[0]-1)*o)/(r[0]+1):s/r[0],e>=3*r[0]-3))){var v=void 0,g=0;e>3*r[0]-3?g=((v=(2*o+(r[0]-1)*n)/(r[0]+1))-n)/n*100:v=l/r[0],n=v,d.trix=g,u+=g,3*r[0]+r[1]-4>e||(d.maTrix=u/r[1],u-=null!==(h=c[e-(r[1]-1)].trix)&&void 0!==h?h:0)}c.push(d)})),c}},ut,{name:\\"VR\\",shortName:\\"VR\\",calcParams:[26,6],figures:[{key:\\"vr\\",title:\\"VR: \\",type:\\"line\\"},{key:\\"maVr\\",title:\\"MAVR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c,h,d,p,v={},g=e.close,f=(null!==(u=t[l-1])&&void 0!==u?u:e).close,m=null!==(c=e.volume)&&void 0!==c?c:0;if(g>f?o+=m:f>g?n+=m:r+=m,l>=i[0]-1){var y=r/2;v.vr=n+y===0?0:(o+y)/(n+y)*100,a+=v.vr,i[0]+i[1]-2>l||(v.maVr=a/i[1],a-=null!==(h=s[l-(i[1]-1)].vr)&&void 0!==h?h:0);var _=t[l-(i[0]-1)],x=null!==(d=t[l-i[0]])&&void 0!==d?d:_,S=_.close,C=null!==(p=_.volume)&&void 0!==p?p:0;S>x.close?o-=C:x.close>S?n-=C:r-=C}s.push(v)})),s}},ct];function pt(t){var e;return null!==(e=ht[t])&&void 0!==e?e:null}dt.forEach((function(t){ht[t.name]=nt.extend(t)}));var vt,gt=function(){function e(t){this._instances=new Map,this._chartStore=t}return e.prototype._overrideInstance=function(t,e){var i=e.shortName,o=e.series,n=e.calcParams,r=e.precision,a=e.figures,s=e.minValue,l=e.maxValue,u=e.shouldOhlc,c=e.shouldFormatBigNumber,h=e.visible,d=e.styles,p=e.extendData,v=e.regenerateFigures,g=e.createTooltipDataSource,f=e.draw,m=e.calc,y=!1;void 0!==i&&t.setShortName(i)&&(y=!0),void 0!==o&&t.setSeries(o)&&(y=!0);var _=!1;return void 0!==n&&t.setCalcParams(n)&&(y=!0,_=!0),void 0!==a&&t.setFigures(a)&&(y=!0,_=!0),void 0!==s&&t.setMinValue(s)&&(y=!0),void 0!==l&&t.setMinValue(l)&&(y=!0),void 0!==r&&t.setPrecision(r)&&(y=!0),void 0!==u&&t.setShouldOhlc(u)&&(y=!0),void 0!==c&&t.setShouldFormatBigNumber(c)&&(y=!0),void 0!==h&&t.setVisible(h)&&(y=!0),void 0!==d&&t.setStyles(d)&&(y=!0),void 0!==p&&t.setExtendData(p)&&(y=!0,_=!0),void 0!==v&&t.setRegenerateFigures(v)&&(y=!0),void 0!==g&&t.setCreateTooltipDataSource(g)&&(y=!0),void 0!==f&&t.setDraw(f)&&(y=!0),void 0!==m&&(t.calc=m,_=!0),[y,_]},e.prototype.addInstance=function(t,e,i){var o;return A(this,void 0,void 0,(function(){var n,r,a,s;return F(this,(function(l){switch(l.label){case 0:return n=t.name,r=this._instances.get(e),null!==(o=null==r?void 0:r.has(n))&&void 0!==o&&o?[4,Promise.reject(Error(\\"Duplicate indicators.\\"))]:[3,2];case 1:case 3:return[2,l.sent()];case 2:return void 0===r&&(r=new Map,this._instances.set(e,r)),a=pt(n),s=new a,this._overrideInstance(s,t),i||r.clear(),r.set(n,s),[4,s.calcIndicator(this._chartStore.getDataList())]}}))}))},e.prototype.getInstances=function(t){var e;return null!==(e=this._instances.get(t))&&void 0!==e?e:new Map},e.prototype.removeInstance=function(t,e){var i=!1,o=this._instances.get(t);return void 0!==o&&(void 0!==e?o.has(e)&&(o.delete(e),i=!0):(o.clear(),i=!0),0===o.size&&this._instances.delete(t)),i},e.prototype.hasInstances=function(t){return this._instances.has(t)},e.prototype.calcInstance=function(t,e){var i;return A(this,void 0,void 0,(function(){var o,n,r,a=this;return F(this,(function(s){switch(s.label){case 0:return o=[],void 0!==t?void 0!==e?(n=this._instances.get(e),null!==(i=null==n?void 0:n.has(t))&&void 0!==i&&i&&(r=null==n?void 0:n.get(t),o.push(r.calcIndicator(this._chartStore.getDataList())))):this._instances.forEach((function(e){if(e.has(t)){var i=null==e?void 0:e.get(t);o.push(i.calcIndicator(a._chartStore.getDataList()))}})):this._instances.forEach((function(t){t.forEach((function(t){o.push(t.calcIndicator(a._chartStore.getDataList()))}))})),[4,Promise.all(o)];case 1:return[2,s.sent().includes(!0)]}}))}))},e.prototype.getInstanceByPaneId=function(t,e){var i;if(void 0!==t){var o=this._instances.get(t);return void 0!==e?null!==(i=null==o?void 0:o.get(e))&&void 0!==i?i:null:null!=o?o:null}return this._instances},e.prototype.setSeriesPrecision=function(e){this._instances.forEach((function(i){i.forEach((function(i){i.series===t.IndicatorSeries.Price&&i.setPrecision(e.price,!0),i.series===t.IndicatorSeries.Volume&&i.setPrecision(e.volume,!0)}))}))},e.prototype.override=function(t,e){return A(this,void 0,void 0,(function(){var i,o,n,r,a,s,l=this;return F(this,(function(u){switch(u.label){case 0:return i=t.name,o=new Map,null!==e?void 0!==(n=this._instances.get(e))&&o.set(e,n):o=this._instances,r=!1,a=[],o.forEach((function(e){var o=e.get(i);if(void 0!==o){var n=l._overrideInstance(o,t);n[1]?a.push(o.calcIndicator(l._chartStore.getDataList())):n[0]&&(r=!0)}})),[4,Promise.all(a)];case 1:return s=u.sent(),[2,[r,s.includes(!0)]]}}))}))},e}(),ft=function(){function t(t){this._crosshair={},this._activeIcon=null,this._chartStore=t}return t.prototype.setCrosshair=function(t,e){var i,o,n=this._chartStore.getDataList(),r=null!=t?t:{},a=n[o=void 0!==r.x?0>(i=this._chartStore.getTimeScaleStore().coordinateToDataIndex(r.x))?0:i>n.length-1?n.length-1:i:i=n.length-1],s=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(i),l=this._crosshair.x,u=this._crosshair.y,c=this._crosshair.paneId;this._crosshair=k(k({},r),{realX:s,kLineData:a,realDataIndex:i,dataIndex:o}),l===r.x&&u===r.y&&c===r.paneId||(null!==a&&this._chartStore.getChart().crosshairChange(this._crosshair),null!=e&&e||this._chartStore.getChart().updatePane(1))},t.prototype.recalculateCrosshair=function(t){this.setCrosshair(this._crosshair,t)},t.prototype.getCrosshair=function(){return this._crosshair},t.prototype.setActiveIcon=function(t){this._activeIcon=null!=t?t:null},t.prototype.getActiveIcon=function(){return this._activeIcon},t.prototype.clear=function(){this.setCrosshair({},!0),this.setActiveIcon()},t}();t.OverlayMode=void 0,(vt=t.OverlayMode||(t.OverlayMode={})).Normal=\\"normal\\",vt.WeakMagnet=\\"weak_magnet\\",vt.StrongMagnet=\\"strong_magnet\\";var mt=1,yt=\\"overlay_figure_\\",_t=Number.MAX_SAFE_INTEGER,xt=function(){function o(e){this.currentStep=mt,this.points=[],this._prevPressedPoint=null,this._prevPressedPoints=[];var i=e.mode,o=e.modeSensitivity,n=e.extendData,r=e.styles,a=e.totalStep,s=e.lock,l=e.visible,u=e.zLevel,c=e.needDefaultPointFigure,h=e.needDefaultXAxisFigure,d=e.needDefaultYAxisFigure,p=e.createPointFigures,v=e.createXAxisFigures,g=e.createYAxisFigures,f=e.performEventPressedMove,m=e.performEventMoveForDrawing,y=e.onDrawStart,_=e.onDrawing,x=e.onDrawEnd,S=e.onClick,C=e.onDoubleClick,b=e.onRightClick,T=e.onPressedMoveStart,w=e.onPressedMoving,E=e.onPressedMoveEnd,I=e.onMouseEnter,D=e.onMouseLeave,P=e.onRemoved,M=e.onSelected,k=e.onDeselected;this.name=e.name,this.totalStep=void 0===a||2>a?1:a,this.lock=null!=s&&s,this.visible=null==l||l,this.zLevel=null!=u?u:0,this.needDefaultPointFigure=null!=c&&c,this.needDefaultXAxisFigure=null!=h&&h,this.needDefaultYAxisFigure=null!=d&&d,this.mode=null!=i?i:t.OverlayMode.Normal,this.modeSensitivity=null!=o?o:8,this.extendData=n,this.styles=null!=r?r:{},this.createPointFigures=null!=p?p:null,this.createXAxisFigures=null!=v?v:null,this.createYAxisFigures=null!=g?g:null,this.performEventPressedMove=null!=f?f:null,this.performEventMoveForDrawing=null!=m?m:null,this.onDrawStart=null!=y?y:null,this.onDrawing=null!=_?_:null,this.onDrawEnd=null!=x?x:null,this.onClick=null!=S?S:null,this.onDoubleClick=null!=C?C:null,this.onRightClick=null!=b?b:null,this.onPressedMoveStart=null!=T?T:null,this.onPressedMoving=null!=w?w:null,this.onPressedMoveEnd=null!=E?E:null,this.onMouseEnter=null!=I?I:null,this.onMouseLeave=null!=D?D:null,this.onRemoved=null!=P?P:null,this.onSelected=null!=M?M:null,this.onDeselected=null!=k?k:null}return o.prototype.setId=function(t){return void 0===this.id&&(this.id=t,!0)},o.prototype.setGroupId=function(t){return void 0===this.groupId&&(this.groupId=t,!0)},o.prototype.setDefaultZLevel=function(t){return void 0===this.defaultZLevel&&(this.defaultZLevel=t,!0)},o.prototype.setPaneId=function(t){this.paneId=t},o.prototype.setExtendData=function(t){return t!==this.extendData&&(this.extendData=t,!0)},o.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},o.prototype.setPoints=function(t){if(t.length>0){var e=void 0;if(this.points=B([],R(t),!1),this.totalStep-1>t.length?(this.currentStep=t.length+1,e=t.length):(this.currentStep=-1,e=this.totalStep-1),null!==this.performEventMoveForDrawing)for(var i=0;e>i;i++)this.performEventMoveForDrawing({currentStep:i+2,mode:this.mode,points:this.points,performPointIndex:i,performPoint:this.points[i]});return-1===this.currentStep&&null!==this.performEventPressedMove&&this.performEventPressedMove({currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:this.points.length-1,performPoint:this.points[this.points.length-1]}),!0}return!1},o.prototype.setLock=function(t){return this.lock!==t&&(this.lock=t,!0)},o.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},o.prototype.resetZLevel=function(){this.zLevel=this.defaultZLevel},o.prototype.setZLevel=function(t){return this.zLevel!==t&&(this.zLevel=t,!0)},o.prototype.setMode=function(t){return this.mode!==t&&(this.mode=t,!0)},o.prototype.setModeSensitivity=function(t){return this.modeSensitivity!==t&&(this.modeSensitivity=t,!0)},o.prototype.setOnDrawStartCallback=function(t){return this.onDrawStart!==t&&(this.onDrawStart=t,!0)},o.prototype.setOnDrawingCallback=function(t){return this.onDrawing!==t&&(this.onDrawing=t,!0)},o.prototype.setOnDrawEndCallback=function(t){return this.onDrawEnd!==t&&(this.onDrawEnd=t,!0)},o.prototype.setOnClickCallback=function(t){return this.onClick!==t&&(this.onClick=t,!0)},o.prototype.setOnDoubleClickCallback=function(t){return this.onDoubleClick!==t&&(this.onDoubleClick=t,!0)},o.prototype.setOnRightClickCallback=function(t){return this.onRightClick!==t&&(this.onRightClick=t,!0)},o.prototype.setOnPressedMoveStartCallback=function(t){return this.onPressedMoveStart!==t&&(this.onPressedMoveStart=t,!0)},o.prototype.setOnPressedMovingCallback=function(t){return this.onPressedMoving!==t&&(this.onPressedMoving=t,!0)},o.prototype.setOnPressedMoveEndCallback=function(t){return this.onPressedMoveEnd!==t&&(this.onPressedMoveEnd=t,!0)},o.prototype.setOnMouseEnterCallback=function(t){return this.onMouseEnter!==t&&(this.onMouseEnter=t,!0)},o.prototype.setOnMouseLeaveCallback=function(t){return this.onMouseLeave!==t&&(this.onMouseLeave=t,!0)},o.prototype.setOnRemovedCallback=function(t){return this.onRemoved!==t&&(this.onRemoved=t,!0)},o.prototype.setOnSelectedCallback=function(t){return this.onSelected!==t&&(this.onSelected=t,!0)},o.prototype.setOnDeselectedCallback=function(t){return this.onDeselected!==t&&(this.onDeselected=t,!0)},o.prototype.nextStep=function(){this.currentStep===this.totalStep-1?this.currentStep=-1:this.currentStep++},o.prototype.forceComplete=function(){this.currentStep=-1},o.prototype.isDrawing=function(){return-1!==this.currentStep},o.prototype.isStart=function(){return this.currentStep===mt},o.prototype.eventMoveForDrawing=function(t){var e,i=this.currentStep-1,o={};void 0!==t.timestamp&&(o.timestamp=t.timestamp),void 0!==t.dataIndex&&(o.dataIndex=t.dataIndex),void 0!==t.value&&(o.value=t.value),this.points[i]=o,null===(e=this.performEventMoveForDrawing)||void 0===e||e.call(this,{currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:i,performPoint:o})},o.prototype.eventPressedPointMove=function(t,e){var i;void 0!==t.dataIndex&&(this.points[e].dataIndex=t.dataIndex,this.points[e].timestamp=t.timestamp),void 0!==t.value&&(this.points[e].value=t.value),null===(i=this.performEventPressedMove)||void 0===i||i.call(this,{currentStep:this.currentStep,points:this.points,mode:this.mode,performPointIndex:e,performPoint:this.points[e]})},o.prototype.startPressedMove=function(t){this._prevPressedPoint=k({},t),this._prevPressedPoints=i(this.points)},o.prototype.eventPressedOtherMove=function(t,e){var i,o;null!==this._prevPressedPoint&&(void 0!==t.dataIndex&&void 0!==this._prevPressedPoint.dataIndex&&(i=t.dataIndex-this._prevPressedPoint.dataIndex),void 0!==t.value&&void 0!==this._prevPressedPoint.value&&(o=t.value-this._prevPressedPoint.value),this.points=this._prevPressedPoints.map((function(t){var n;void 0===t.dataIndex&&void 0!==t.timestamp&&(t.dataIndex=e.timestampToDataIndex(t.timestamp));var r=k({},t);return void 0!==i&&void 0!==t.dataIndex&&(r.dataIndex=t.dataIndex+i,r.timestamp=null!==(n=e.dataIndexToTimestamp(r.dataIndex))&&void 0!==n?n:void 0),void 0!==o&&void 0!==t.value&&(r.value=t.value+o),r})))},o.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i}(o)},o}(),St={name:\\"fibonacciLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.precision,o=t.thousandsSeparator,n=t.overlay.points;if(e.length>0){var r=[],a=[],s=t.bounding.width;if(e.length>1&&void 0!==n[0].value&&void 0!==n[1].value){var l=e[0].y-e[1].y,u=n[0].value-n[1].value;[1,.786,.618,.5,.382,.236,0].forEach((function(t){var c,h=e[1].y+l*t,d=E(((null!==(c=n[1].value)&&void 0!==c?c:0)+u*t).toFixed(i.price),o);r.push({coordinates:[{x:0,y:h},{x:s,y:h}]}),a.push({x:0,y:h,text:\\"\\".concat(d,\\" (\\").concat((100*t).toFixed(1),\\"%)\\"),baseline:\\"bottom\\"})}))}return[{type:\\"line\\",attrs:r},{type:\\"text\\",isCheckEvent:!1,attrs:a}]}return[]}},Ct={name:\\"horizontalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i={x:0,y:e[0].y};return void 0!==e[1]&&e[1].x>e[0].x&&(i.x=t.bounding.width),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},bt=function(){function t(){this._children=[],this._callbacks=new Map}return t.prototype.registerEvent=function(t,e){return this._callbacks.set(t,e),this},t.prototype.onEvent=function(t,e,i){var o=this._callbacks.get(t);return!(void 0===o||!this.checkEventOn(e))&&o(e,i)},t.prototype.checkEventOn=function(t){var e,i;try{for(var o=L(this._children),n=o.next();!n.done;n=o.next()){if(n.value.checkEventOn(t))return!0}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return!1},t.prototype.dispatchEvent=function(t,e,i){var o=this._children.length-1;if(o>-1)for(var n=o;n>-1;n--)if(this._children[n].dispatchEvent(t,e,i))return!0;return this.onEvent(t,e,i)},t.prototype.addChild=function(t){return this._children.push(t),this},t.prototype.clear=function(){this._children=[]},t}(),Tt=2,wt=function(t){function e(e){var i=t.call(this)||this;return i.attrs=e.attrs,i.styles=e.styles,i}return P(e,t),e.prototype.checkEventOn=function(t){return this.checkEventOnImp(t,this.attrs,this.styles)},e.prototype.draw=function(t){this.drawImp(t,this.attrs,this.styles)},e.extend=function(t){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.checkEventOnImp=function(e,i,o){return t.checkEventOn(e,i,o)},i.prototype.drawImp=function(e,i,o){t.draw(e,i,o)},i}(e);return i},e}(bt);function Et(t,e){return Math.sqrt(Math.pow(t.x+e.x,2)+Math.pow(t.y+e.y,2))}function It(t){var e=Et(t[0],t[1]),i=e+Et(t[1],t[2]),o=[t[2].x-t[0].x,t[2].y-t[0].y];return[{x:t[1].x-.5*o[0]*e/i,y:t[1].y-.5*o[1]*e/i},{x:t[1].x+.5*o[0]*e/i,y:t[1].y+.5*o[1]*e/i}]}function Dt(t,e){var i=e.coordinates;if(i.length>1)for(var o=1;i.length>o;o++){var n=i[o-1],r=i[o];if(n.x===r.x){if(Tt+Tt>Math.abs(n.y-t.y)+Math.abs(r.y-t.y)-Math.abs(n.y-r.y)&&Tt>Math.abs(t.x-n.x))return!0}else{var a=kt(n,r),s=Pt(a,t),l=Math.abs(s-t.y);if(Tt+Tt>Math.abs(n.x-t.x)+Math.abs(r.x-t.x)-Math.abs(n.x-r.x)&&Tt*Tt>l*l/(a[0]*a[0]+1))return!0}}return!1}function Pt(t,e){return null!=t?e.x*t[0]+t[1]:e.y}function Mt(t,e,i){return Pt(kt(t,e),i)}function kt(t,e){var i=t.x-e.x;if(0!==i){var o=(t.y-e.y)/i;return[o,t.y-o*t.x]}return null}function At(e,i,o){var n=i.coordinates,r=n.length;if(r>1){var a=o.style,s=void 0===a?t.LineType.Solid:a,l=o.smooth,u=o.size,c=o.color,h=void 0===c?\\"currentColor\\":c,d=o.dashedValue,p=void 0===d?[2,2]:d;if(e.lineWidth=void 0===u?1:u,e.strokeStyle=h,e.setLineDash(s===t.LineType.Dashed?p:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y),null!=l&&l){for(var v=[],g=1;r-1>g;g++)v=v.concat(It([n[g-1],n[g],n[g+1]]));e.quadraticCurveTo(v[0].x,v[0].y,n[1].x,n[1].y);for(var f=2;r-1>f;f++)e.bezierCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,v[2*(f-1)].x,v[2*(f-1)].y,n[f].x,n[f].y);e.quadraticCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,n[f].x,n[f].y)}else for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.stroke(),e.closePath()}}var Ft={name:\\"line\\",checkEventOn:Dt,draw:function(t,e,i){At(t,e,i)}};function Lt(t,e,i){var o=null!=i?i:0,n=[];if(t.length>1)if(t[0].x===t[1].x){var r=e.height;if(n.push({coordinates:[{x:t[0].x,y:0},{x:t[0].x,y:r}]}),t.length>2){n.push({coordinates:[{x:t[2].x,y:0},{x:t[2].x,y:r}]});for(var a=t[0].x-t[2].x,s=0;o>s;s++){var l=a*(s+1);n.push({coordinates:[{x:t[0].x+l,y:0},{x:t[0].x+l,y:r}]})}}}else{var u=e.width,c=kt(t[0],t[1]),h=c[0],d=c[1];if(n.push({coordinates:[{x:0,y:0*h+d},{x:u,y:u*h+d}]}),t.length>2){var p=t[2].y-h*t[2].x;n.push({coordinates:[{x:0,y:0*h+p},{x:u,y:u*h+p}]});for(a=d-p,s=0;o>s;s++){var v=d+a*(s+1);n.push({coordinates:[{x:0,y:0*h+v},{x:u,y:u*h+v}]})}}}return n}function Rt(t,e){if(t.length>1){var i=void 0;return i=t[0].x===t[1].x&&t[0].y!==t[1].y?t[1].y>t[0].y?{x:t[0].x,y:e.height}:{x:t[0].x,y:0}:t[0].x>t[1].x?{x:0,y:Mt(t[0],t[1],{x:0,y:t[0].y})}:{x:e.width,y:Mt(t[0],t[1],{x:e.width,y:t[0].y})},{coordinates:[t[0],i]}}return[]}var Bt={name:\\"simpleAnnotation\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"},line:{style:t.LineType.Dashed}},createPointFigures:function(t){var e,i,o=t.overlay,r=t.coordinates;s(o.extendData)&&(i=n(o.extendData)?o.extendData(o):null!==(e=o.extendData)&&void 0!==e?e:\\"\\");var a=r[0].x,l=r[0].y-6,u=l-50,c=u-5;return[{type:\\"line\\",attrs:{coordinates:[{x:a,y:l},{x:a,y:u}]},ignoreEvent:!0},{type:\\"polygon\\",attrs:{coordinates:[{x:a,y:u},{x:a-4,y:c},{x:a+4,y:c}]},ignoreEvent:!0},{type:\\"text\\",attrs:{x:a,y:c,text:null!=i?i:\\"\\",align:\\"center\\",baseline:\\"bottom\\"},ignoreEvent:!0}]}},Ot={name:\\"simpleTag\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}},createPointFigures:function(t){var e=t.coordinates;return{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]},ignoreEvent:!0}},createYAxisFigures:function(t){var e,i,o,r,a,l=t.overlay,u=t.coordinates,c=t.bounding,h=t.yAxis,d=t.precision;return null!==(e=null==h?void 0:h.isFromZero())&&void 0!==e&&e?(o=\\"left\\",r=0):(o=\\"right\\",r=c.width),s(l.extendData)&&(a=n(l.extendData)?l.extendData(l):null!==(i=l.extendData)&&void 0!==i?i:\\"\\"),s(a)||void 0===l.points[0].value||(a=T(l.points[0].value,d.price)),{type:\\"text\\",attrs:{x:r,y:u[0].y,text:null!=a?a:\\"\\",align:o,baseline:\\"middle\\"}}}},Vt={};function Nt(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null}function Wt(t){var i={width:0,height:0,left:0,right:0,top:0,bottom:0};return void 0!==t&&e(i,t),i}[St,Ct,{name:\\"horizontalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=[];return 2===e.length&&i.push({coordinates:e}),[{type:\\"line\\",attrs:i}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},{name:\\"horizontalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]}}]}},{name:\\"parallelStraightLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding)}]}},{name:\\"priceChannelLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding,1)}]}},{name:\\"priceLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.thousandsSeparator,o=t.overlay.points[0].value;return[{type:\\"line\\",attrs:{coordinates:[e[0],{x:t.bounding.width,y:e[0].y}]}},{type:\\"text\\",ignoreEvent:!0,attrs:{x:e[0].x,y:e[0].y,text:E((void 0===o?0:o).toFixed(t.precision.price),i),baseline:\\"bottom\\"}}]}},{name:\\"rayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Rt(t.coordinates,t.bounding)}]}},{name:\\"segment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]}},{name:\\"straightLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.bounding;return 2===e.length?e[0].x===e[1].x?[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:i.height}]}}]:[{type:\\"line\\",attrs:{coordinates:[{x:0,y:Mt(e[0],e[1],{x:0,y:e[0].y})},{x:i.width,y:Mt(e[0],e[1],{x:i.width,y:e[0].y})}]}}]:[]}},{name:\\"verticalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;if(2===e.length){var i={x:e[0].x,y:0};return e[1].y>e[0].y&&(i.y=t.bounding.height),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]}return[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:t.bounding.height}]}}]}},Bt,Ot].forEach((function(t){Vt[t.name]=xt.extend(t)}));var zt=\\"main\\",Yt=\\"xAxis\\",Xt=\\"yAxis\\",Ht=\\"separator\\",jt=function(t){function i(e,i){var o=t.call(this)||this;return o._bounding=Wt(),o._pane=i,o._init(e),o}return P(i,t),i.prototype._init=function(t){if(this._container=Y(\\"div\\",this.getContainerStyle()),this.insertBefore()){var e=t.lastChild;null!==e?t.insertBefore(this._container,e):t.appendChild(this._container)}else t.appendChild(this._container);this.initDom(this._container)},i.prototype.setBounding=function(t){return e(this._bounding,t),this},i.prototype.getContainer=function(){return this._container},i.prototype.getBounding=function(){return this._bounding},i.prototype.getPane=function(){return this._pane},i.prototype.update=function(t){this.updateImp(this._container,this._bounding,null!=t?t:3)},i.prototype.insertBefore=function(){return!1},i}(bt);var Zt=function(e){function i(t,i){var o,n,r,a=e.call(this,t,i)||this;return a._dragFlag=!1,a._dragStartY=0,a._topPaneHeight=0,a._currentPaneHeight=0,a._pressedMouseMoveEvent=(o=a._pressedTouchMouseMoveEvent,n=20,r=0,function(){var t=Date.now();t-r>(null!=n?n:20)&&(o.apply(this,arguments),r=t)}),a.registerEvent(\\"touchStartEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"touchMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"touchEndEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"mouseDownEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"mouseUpEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"pressedMouseMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"mouseEnterEvent\\",a._mouseEnterEvent.bind(a)).registerEvent(\\"mouseLeaveEvent\\",a._mouseLeaveEvent.bind(a)),a}return P(i,e),i.prototype.getName=function(){return Ht},i.prototype.checkEventOn=function(){return!0},i.prototype._mouseDownEvent=function(t){var e,i;this._dragFlag=!0,this._dragStartY=t.pageY;var o=this.getPane();return this._topPaneHeight=null!==(i=null===(e=o.getTopPane())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,this._currentPaneHeight=o.getBounding().height,!0},i.prototype._mouseUpEvent=function(){return this._dragFlag=!1,this._mouseLeaveEvent()},i.prototype._pressedTouchMouseMoveEvent=function(e){var i=e.pageY-this._dragStartY,o=this.getPane(),n=o.getTopPane(),r=0>i;if(null!==n&&o.getOptions().dragEnabled){var a=void 0,s=void 0,l=void 0,u=void 0;r?(a=n,s=o,l=this._topPaneHeight,u=this._currentPaneHeight):(a=o,s=n,l=this._currentPaneHeight,u=this._topPaneHeight);var c=a.getOptions().minHeight;if(l>c){var h=Math.max(l-Math.abs(i),c),d=l-h;a.setBounding({height:h}),s.setBounding({height:u+d});var p=o.getChart();p.getChartStore().getActionStore().execute(t.ActionType.OnPaneDrag,{paneId:o.getId}),p.adjustPaneViewport(!0,!0,!0,!0,!0)}}return!0},i.prototype._mouseEnterEvent=function(){var t=this.getPane();if(t.getOptions().dragEnabled){var e=t.getChart().getStyles().separator;return this._moveDom.style.background=e.activeBackgroundColor,!0}return!1},i.prototype._mouseLeaveEvent=function(){return!this._dragFlag&&(this._moveDom.style.background=\\"\\",!0)},i.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",boxSizing:\\"border-box\\"}},i.prototype.insertBefore=function(){return!0},i.prototype.initDom=function(t){this._moveDom=Y(\\"div\\",{width:\\"100%\\",height:\\"\\".concat(7,\\"px\\"),margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"-3px\\",zIndex:\\"20\\",boxSizing:\\"border-box\\",cursor:\\"ns-resize\\"}),t.appendChild(this._moveDom)},i.prototype.updateImp=function(t,e,i){if(4===i||2===i){var o=this.getPane().getChart().getStyles().separator;this._moveDom.style.top=\\"\\".concat(-Math.floor((7-o.size)/2),\\"px\\"),this._moveDom.style.height=\\"\\".concat(7,\\"px\\");var n=o.fill;t.style.backgroundColor=o.color,t.style.height=\\"\\".concat(o.size,\\"px\\"),t.style.marginLeft=\\"\\".concat(n?0:e.left,\\"px\\"),t.style.width=n?\\"100%\\":\\"\\".concat(e.width,\\"px\\")}},i.prototype.getImage=function(){var t=this.getPane().getChart().getStyles().separator,e=this.getContainer().offsetWidth,i=t.size,o=Y(\\"canvas\\",{width:\\"\\".concat(e,\\"px\\"),height:\\"\\".concat(i,\\"px\\"),boxSizing:\\"border-box\\"}),n=o.getContext(\\"2d\\"),r=X(o);return o.width=e*r,o.height=i*r,n.scale(r,r),n.fillStyle=t.color,n.fillRect(this.getBounding().left,0,e,i),o},i}(jt),Gt=30,Kt={CANDLE:\\"candle_pane\\",INDICATOR:\\"indicator_pane_\\",XAXIS:\\"xaxis_pane\\"},Ut=function(){function t(t,e,i,o,n){this._yAxisWidget=null,this._separatorWidget=null,this._axis=this.createAxisComponent(),this._bounding=Wt(),this._options={minHeight:Gt,dragEnabled:!0,gap:{top:.2,bottom:.1},axisOptions:{scrollZoomEnabled:!0}},this._chart=e,this._id=i,this._topPane=null!=o?o:null,this._bottomPane=null!=n?n:null,this._init(t)}return t.prototype._init=function(t){this._container=t,this._seriesContainer=Y(\\"div\\",{width:\\"100%\\",margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}),this._separatorWidget=this.createSeparatorWidget(t);var e=t.lastChild;null!==e?t.insertBefore(this._seriesContainer,e):t.appendChild(this._seriesContainer),this._mainWidget=this.createMainWidget(this._seriesContainer),this._yAxisWidget=this.createYAxisWidget(this._seriesContainer)},t.prototype.getContainer=function(){return this._seriesContainer},t.prototype.getId=function(){return this._id},t.prototype.setOptions=function(t){var i,o,n,r,a;return e(this._options,t),this.getId()===Kt.XAXIS?(r=this.getMainWidget().getContainer(),a=\\"ew-resize\\"):(r=null===(i=this.getYAxisWidget())||void 0===i?void 0:i.getContainer(),a=\\"ns-resize\\"),r.style.cursor=null===(n=null===(o=t.axisOptions)||void 0===o?void 0:o.scrollZoomEnabled)||void 0===n||n?a:\\"default\\",this},t.prototype.getOptions=function(){return this._options},t.prototype.getChart=function(){return this._chart},t.prototype.getAxisComponent=function(){return this._axis},t.prototype.setBounding=function(t,i,o){var n,r,a;e(this._bounding,t);var s=0;if(null!==this._separatorWidget){s=this._chart.getStyles().separator.size;var l=k(k({},t),{height:7});void 0!==t.top&&(l.top=t.top-Math.floor((7-s)/2)),this._separatorWidget.setBounding(l)}var u={};return void 0!==t.height&&(u.height=t.height-s),void 0!==t.top&&(u.top=t.top+s),this._mainWidget.setBounding(u),null===(n=this._yAxisWidget)||void 0===n||n.setBounding(u),void 0!==i&&(this._mainWidget.setBounding(i),null===(r=this._separatorWidget)||void 0===r||r.setBounding(i)),void 0!==o&&(null===(a=this._yAxisWidget)||void 0===a||a.setBounding(o)),this},t.prototype.getTopPane=function(){return this._topPane},t.prototype.setTopPane=function(t){return this._topPane=t,this},t.prototype.getBottomPane=function(){return this._bottomPane},t.prototype.setBottomPane=function(t){return this._bottomPane=t,this},t.prototype.getBounding=function(){return this._bounding},t.prototype.getMainWidget=function(){return this._mainWidget},t.prototype.getYAxisWidget=function(){return this._yAxisWidget},t.prototype.getSeparatorWidget=function(){return this._separatorWidget},t.prototype.update=function(t){var e,i;this._bounding.width!==this._seriesContainer.offsetWidth&&(this._seriesContainer.style.width=\\"\\".concat(this._bounding.width,\\"px\\"));var o=this._mainWidget.getBounding().height;o!==this._seriesContainer.offsetHeight&&(this._seriesContainer.style.height=\\"\\".concat(o,\\"px\\"));var n=null!=t?t:3;this._mainWidget.update(n),null===(e=this._yAxisWidget)||void 0===e||e.update(n),null===(i=this._separatorWidget)||void 0===i||i.update(n)},t.prototype.getImage=function(t){var e=this._bounding,i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);n.width=i*a,n.height=o*a,r.scale(a,a);var s=0;if(null!=this._separatorWidget){var l=this.getChart().getStyles().separator.size;s=l,r.drawImage(this._separatorWidget.getImage(),0,0,i,l)}var u=this._mainWidget.getBounding();if(r.drawImage(this._mainWidget.getImage(t),u.left,s,u.width,u.height),null!==this._yAxisWidget){var c=this._yAxisWidget.getBounding();r.drawImage(this._yAxisWidget.getImage(t),c.left,s,c.width,c.height)}return n},t.prototype.destroy=function(){this._container.removeChild(this._seriesContainer),null!==this._separatorWidget&&this._container.removeChild(this._separatorWidget.getContainer())},t.prototype.createSeparatorWidget=function(t){return null},t.prototype.createYAxisWidget=function(t){return null},t}(),qt=function(){function t(t){this._instances=new Map,this._counter=new Map,this._progressInstanceInfo=null,this._pressedInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._hoverInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._clickInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._chartStore=t}return t.prototype._overrideInstance=function(t,e){var i=e.id,o=e.groupId,n=e.points,r=e.styles,a=e.lock,s=e.visible,l=e.zLevel,u=e.mode,c=e.modeSensitivity,h=e.extendData,d=e.onDrawStart,p=e.onDrawing,v=e.onDrawEnd,g=e.onClick,f=e.onDoubleClick,m=e.onRightClick,y=e.onPressedMoveStart,_=e.onPressedMoving,x=e.onPressedMoveEnd,S=e.onMouseEnter,C=e.onMouseLeave,b=e.onRemoved,T=e.onSelected,w=e.onDeselected,E=!1,I=!1;return void 0!==i&&t.setId(i),void 0!==o&&t.setGroupId(o),void 0!==n&&t.setPoints(n)&&(E=!0),void 0!==r&&t.setStyles(r)&&(E=!0),void 0!==a&&t.setLock(a),void 0!==s&&t.setVisible(s)&&(E=!0),void 0!==l&&t.setZLevel(l)&&(E=!0,I=!0),void 0!==u&&t.setMode(u),void 0!==c&&t.setModeSensitivity(c),void 0!==h&&t.setExtendData(h)&&(E=!0),void 0!==d&&t.setOnDrawStartCallback(d),void 0!==p&&t.setOnDrawingCallback(p),void 0!==v&&t.setOnDrawEndCallback(v),void 0!==g&&t.setOnClickCallback(g),void 0!==f&&t.setOnDoubleClickCallback(f),void 0!==m&&t.setOnRightClickCallback(m),void 0!==y&&t.setOnPressedMoveStartCallback(y),void 0!==_&&t.setOnPressedMovingCallback(_),void 0!==x&&t.setOnPressedMoveEndCallback(x),void 0!==S&&t.setOnMouseEnterCallback(S),void 0!==C&&t.setOnMouseLeaveCallback(C),void 0!==b&&t.setOnRemovedCallback(b),void 0!==T&&t.setOnSelectedCallback(T),void 0!==w&&t.setOnDeselectedCallback(w),[E,I]},t.prototype.getInstanceById=function(t){var e,i;try{for(var o=L(this._instances),n=o.next();!n.done;n=o.next()){var r=n.value[1].find((function(e){return e.id===t}));if(void 0!==r)return r}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return null!==this._progressInstanceInfo&&this._progressInstanceInfo.instance.id===t?this._progressInstanceInfo.instance:null},t.prototype._sort=function(t){var e;void 0!==t?null===(e=this._instances.get(t))||void 0===e||e.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel})):this._instances.forEach((function(t){t.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel}))}))},t.prototype.addInstances=function(t,e,i){var o=this,n=t.map((function(t){var n,r,a,s,l,u=null!==(n=t.id)&&void 0!==n?n:z(\\"overlay_\\");if(null===o.getInstanceById(u)){var c=Nt(t.name);if(null!==c){var h=new c,d=(null!==(r=o._counter.get(e))&&void 0!==r?r:0)+1;o._counter.set(e,d),h.setDefaultZLevel(d),h.setPaneId(e);var p=null!==(a=t.groupId)&&void 0!==a?a:u;return t.id=u,t.groupId=p,o._overrideInstance(h,t),h.isDrawing()?o._progressInstanceInfo={paneId:e,instance:h,appointPaneFlag:i}:(o._instances.has(e)||o._instances.set(e,[]),null===(s=o._instances.get(e))||void 0===s||s.push(h)),h.isStart()&&(null===(l=h.onDrawStart)||void 0===l||l.call(h,{overlay:h})),u}}return null}));return n.some((function(t){return null!==t}))&&(this._sort(),this._chartStore.getChart().updatePane(1,e)),n},t.prototype.getProgressInstanceInfo=function(){return this._progressInstanceInfo},t.prototype.progressInstanceComplete=function(){var t;if(null!==this._progressInstanceInfo){var e=this._progressInstanceInfo,i=e.instance,o=e.paneId;i.isDrawing()||(this._instances.has(o)||this._instances.set(o,[]),null===(t=this._instances.get(o))||void 0===t||t.push(i),this._sort(o),this._progressInstanceInfo=null)}},t.prototype.updateProgressInstanceInfo=function(t,e){null!==this._progressInstanceInfo&&(void 0!==e&&e&&(this._progressInstanceInfo.appointPaneFlag=e),this._progressInstanceInfo.paneId=t,this._progressInstanceInfo.instance.setPaneId(t))},t.prototype.getInstances=function(t){var e;if(void 0===t){var i=[];return this._instances.forEach((function(t){i=i.concat(t)})),i}return null!==(e=this._instances.get(t))&&void 0!==e?e:[]},t.prototype.override=function(t){var e=this,i=t.id,o=t.groupId,n=t.name,r=!1,a=!1,s=function(i){var o=e._overrideInstance(i,t);o[0]&&(r=!0),o[1]&&(a=!0)};if(void 0!==i){var l=this.getInstanceById(i);null!==l&&s(l)}else if(this._instances.forEach((function(t){t.forEach((function(t){(void 0!==n&&t.name===n||void 0!==o&&t.groupId===o||void 0===n&&void 0===o)&&s(t)}))})),null!==this._progressInstanceInfo){var u=this._progressInstanceInfo.instance;(void 0!==n&&u.name===n||void 0!==o&&u.groupId===o||void 0===n&&void 0===o)&&s(u)}a&&this._sort(),r&&this._chartStore.getChart().updatePane(1)},t.prototype.removeInstance=function(t){var e,i,o,n=function(t,e){if(void 0!==t.id){if(e.id!==t.id)return!1}else if(void 0!==t.groupId){if(e.groupId!==t.groupId)return!1}else if(void 0!==t.name&&e.name!==t.name)return!1;return!0},r=[];if(null!==this._progressInstanceInfo){var a=this._progressInstanceInfo.instance;(void 0===t||void 0!==t&&n(t,a))&&(r.push(this._progressInstanceInfo.paneId),null===(o=a.onRemoved)||void 0===o||o.call(a,{overlay:a}),this._progressInstanceInfo=null)}if(void 0!==t){var s=new Map,l=function(e){var i=e[1].filter((function(i){var o;return!n(t,i)||(r.includes(e[0])||r.push(e[0]),null===(o=i.onRemoved)||void 0===o||o.call(i,{overlay:i}),!1)}));i.length>0&&s.set(e[0],i)};try{for(var u=L(this._instances),c=u.next();!c.done;c=u.next()){l(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}this._instances=s}else this._instances.forEach((function(t,e){r.push(e),t.forEach((function(t){var e;null===(e=t.onRemoved)||void 0===e||e.call(t,{overlay:t})}))})),this._instances.clear();if(r.length>0){var h=this._chartStore.getChart();r.forEach((function(t){h.updatePane(1,t)})),h.updatePane(1,Kt.XAXIS)}},t.prototype.setPressedInstanceInfo=function(t){this._pressedInstanceInfo=t},t.prototype.getPressedInstanceInfo=function(){return this._pressedInstanceInfo},t.prototype.setHoverInstanceInfo=function(t,e){var i,o,r=this._hoverInstanceInfo,a=r.instance,s=r.figureKey,l=r.figureIndex;if(((null==a?void 0:a.id)!==(null===(i=t.instance)||void 0===i?void 0:i.id)||r.figureType!==t.figureType||l!==t.figureIndex)&&(this._hoverInstanceInfo=t,(null==a?void 0:a.id)!==(null===(o=t.instance)||void 0===o?void 0:o.id))){var u=!1,c=!1;null!==a&&(c=!0,a.resetZLevel(),n(a.onMouseLeave)&&(a.onMouseLeave(k({overlay:a,figureKey:s,figureIndex:l},e)),u=!0)),null!==t.instance&&(c=!0,t.instance.setZLevel(_t),n(t.instance.onMouseEnter)&&(t.instance.onMouseEnter(k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),u=!0)),c&&this._sort(),u||this._chartStore.getChart().updatePane(1)}},t.prototype.getHoverInstanceInfo=function(){return this._hoverInstanceInfo},t.prototype.setClickInstanceInfo=function(t,e){var i,o,n,r,a,s,l,u,c,h=this._clickInstanceInfo,d=h.paneId,p=h.instance,v=h.figureType,g=h.figureKey,f=h.figureIndex;if(null!==(o=null===(i=t.instance)||void 0===i?void 0:i.isDrawing())&&void 0!==o&&o||null===(r=null===(n=t.instance)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),((null==p?void 0:p.id)!==(null===(a=t.instance)||void 0===a?void 0:a.id)||v!==t.figureType||f!==t.figureIndex)&&(this._clickInstanceInfo=t,(null==p?void 0:p.id)!==(null===(s=t.instance)||void 0===s?void 0:s.id))){null===(l=null==p?void 0:p.onDeselected)||void 0===l||l.call(p,k({overlay:p,figureKey:g,figureIndex:f},e)),null===(c=null===(u=t.instance)||void 0===u?void 0:u.onSelected)||void 0===c||c.call(u,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e));var m=this._chartStore.getChart();m.updatePane(1,t.paneId),d!==t.paneId&&m.updatePane(1,d),m.updatePane(1,Kt.XAXIS)}},t.prototype.getClickInstanceInfo=function(){return this._clickInstanceInfo},t.prototype.isEmpty=function(){return 0===this._instances.size&&null===this._progressInstanceInfo},t.prototype.isDrawing=function(){var t,e;return null!==this._progressInstanceInfo&&null!==(e=null===(t=this._progressInstanceInfo)||void 0===t?void 0:t.instance.isDrawing())&&void 0!==e&&e},t}(),$t=function(){function t(){this._actions=new Map}return t.prototype.execute=function(t,e){var i;null===(i=this._actions.get(t))||void 0===i||i.execute(e)},t.prototype.subscribe=function(t,e){var i;this._actions.has(t)||this._actions.set(t,new V),null===(i=this._actions.get(t))||void 0===i||i.subscribe(e)},t.prototype.unsubscribe=function(t,e){var i=this._actions.get(t);void 0!==i&&(i.unsubscribe(e),i.isEmpty()&&this._actions.delete(t))},t.prototype.has=function(t){var e=this._actions.get(t);return void 0!==e&&!e.isEmpty()},t}(),Jt={light:{grid:{horizontal:{color:\\"#EDEDED\\"},vertical:{color:\\"#EDEDED\\"}},candle:{priceMark:{high:{color:\\"#76808F\\"},low:{color:\\"#76808F\\"}},tooltip:{rect:{color:\\"#FEFEFE\\",borderColor:\\"#F2F3F5\\"},text:{color:\\"#76808F\\"}}},indicator:{tooltip:{text:{color:\\"#76808F\\"}}},xAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},yAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},separator:{color:\\"#DDDDDD\\"},crosshair:{horizontal:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}},vertical:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}}}},dark:{grid:{horizontal:{color:\\"#292929\\"},vertical:{color:\\"#292929\\"}},candle:{priceMark:{high:{color:\\"#929AA5\\"},low:{color:\\"#929AA5\\"}},tooltip:{rect:{color:\\"rgba(10, 10, 10, .6)\\",borderColor:\\"rgba(10, 10, 10, .6)\\"},text:{color:\\"#929AA5\\"}}},indicator:{tooltip:{text:{color:\\"#929AA5\\"}}},xAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},yAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},separator:{color:\\"#333333\\"},crosshair:{horizontal:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}},vertical:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}}}}};function Qt(t){var e;return null!==(e=Jt[t])&&void 0!==e?e:null}var te=function(){function i(e,i){this._styles={grid:{show:!0,horizontal:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]},vertical:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]}},candle:{type:t.CandleType.CandleSolid,bar:{upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",upBorderColor:\\"#2DC08E\\",downBorderColor:\\"#F92855\\",noChangeBorderColor:\\"#888888\\",upWickColor:\\"#2DC08E\\",downWickColor:\\"#F92855\\",noChangeWickColor:\\"#888888\\"},area:{lineSize:2,lineColor:\\"#1677FF\\",value:\\"close\\",backgroundColor:[{offset:0,color:\\"rgba(22, 119, 255, 0.01)\\"},{offset:1,color:\\"rgba(22, 119, 255, 0.2)\\"}]},priceMark:{show:!0,high:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},low:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},last:{show:!0,upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,4],size:1},text:{show:!0,style:t.PolygonType.Fill,size:12,paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderColor:\\"transparent\\",borderStyle:t.LineType.Solid,borderSize:0,borderDashedValue:[2,2],color:\\"#FFFFFF\\",family:\\"Helvetica Neue\\",weight:\\"normal\\",borderRadius:2}}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,custom:null,defaultValue:\\"n/a\\",rect:{position:g.Fixed,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:8,offsetLeft:10,offsetTop:8,offsetRight:10,offsetBottom:8,borderRadius:4,borderSize:1,borderColor:\\"#F2F3F5\\",color:\\"#FEFEFE\\"},text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},indicator:{ohlc:{upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"},bars:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lines:[{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#FF9600\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#935EBD\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#1677FF\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#E11D74\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#01C5C4\\"}],circles:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lastValueMark:{show:!1,text:{show:!1,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderColor:\\"transparent\\",borderSize:1,borderDashedValue:[2,2],paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderRadius:2}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,showName:!0,showParams:!0,defaultValue:\\"n/a\\",text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},xAxis:{show:!0,size:\\"auto\\",axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},yAxis:{show:!0,size:\\"auto\\",type:t.YAxisType.Normal,position:t.YAxisPosition.Right,inside:!1,reverse:!1,axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},separator:{size:1,color:\\"#DDDDDD\\",fill:!0,activeBackgroundColor:\\"rgba(33, 150, 243, 0.08)\\"},crosshair:{show:!0,horizontal:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderColor:\\"#686D76\\",borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}},vertical:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#686D76\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}}},overlay:{point:{color:\\"#1677FF\\",borderColor:\\"rgba(22, 119, 255, 0.35)\\",borderSize:1,radius:5,activeColor:\\"#1677FF\\",activeBorderColor:\\"rgba(22, 119, 255, 0.35)\\",activeBorderSize:3,activeRadius:5},line:{style:t.LineType.Solid,smooth:!1,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},rect:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderRadius:0,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},polygon:{style:t.PolygonType.Fill,color:\\"#1677FF\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},circle:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},arc:{style:t.LineType.Solid,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},text:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:0,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,backgroundColor:\\"transparent\\"},rectText:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}}},this._customApi={formatDate:b,formatBigNumber:w},this._locale=I,this._precision={price:2,volume:0},this._thousandsSeparator=\\",\\",this._dataList=[],this._timeScaleStore=new it(this),this._indicatorStore=new gt(this),this._overlayStore=new qt(this),this._tooltipStore=new ft(this),this._actionStore=new $t,this._visibleDataList=[],this._chart=e,this.setOptions(i)}return i.prototype.adjustVisibleDataList=function(){this._visibleDataList=[];for(var t=this._timeScaleStore.getVisibleRange(),e=t.to,i=t.from;e>i;i++){var o=this._dataList[i],n=this._timeScaleStore.dataIndexToCoordinate(i);this._visibleDataList.push({dataIndex:i,x:n,data:o})}},i.prototype.setOptions=function(t){if(void 0!==t){var i=t.locale,o=t.timezone,n=t.styles,r=t.customApi;void 0!==i&&(this._locale=i),void 0!==o&&this._timeScaleStore.setTimezone(o),void 0!==n&&(u(n)?e(this._styles,Qt(n)):e(this._styles,n)),void 0!==r&&e(this._customApi,r),void 0!==t.thousandsSeparator&&(this._thousandsSeparator=t.thousandsSeparator)}return this},i.prototype.getStyles=function(){return this._styles},i.prototype.getLocale=function(){return this._locale},i.prototype.getCustomApi=function(){return this._customApi},i.prototype.getThousandsSeparator=function(){return this._thousandsSeparator},i.prototype.getPrecision=function(){return this._precision},i.prototype.setPrecision=function(t){return this._precision=t,this._indicatorStore.setSeriesPrecision(t),this},i.prototype.getDataList=function(){return this._dataList},i.prototype.getVisibleDataList=function(){return this._visibleDataList},i.prototype.addData=function(t,e,i){if(o(t)){this._timeScaleStore.setLoading(!1),this._timeScaleStore.setMore(null==i||i);var n=0===this._dataList.length;this._dataList=t.concat(this._dataList),n&&this._timeScaleStore.resetOffsetRightDistance(),this._timeScaleStore.adjustVisibleRange()}else{if(er&&this._timeScaleStore.setOffsetRightBarCount(--r),this._timeScaleStore.adjustVisibleRange()}}this._tooltipStore.recalculateCrosshair(!0)},i.prototype.clear=function(){this._dataList=[],this._visibleDataList=[],this._timeScaleStore.clear(),this._tooltipStore.clear()},i.prototype.getTimeScaleStore=function(){return this._timeScaleStore},i.prototype.getIndicatorStore=function(){return this._indicatorStore},i.prototype.getOverlayStore=function(){return this._overlayStore},i.prototype.getTooltipStore=function(){return this._tooltipStore},i.prototype.getActionStore=function(){return this._actionStore},i.prototype.getChart=function(){return this._chart},i}();function ee(t){return null==window.requestAnimationFrame?window.setTimeout(t,20):window.requestAnimationFrame(t)}function ie(t){null==window.cancelAnimationFrame&&window.clearTimeout(t),window.cancelAnimationFrame(t)}var oe=-1,ne=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._mainRequestAnimationId=oe,e._overlayRequestAnimationId=oe,e}return P(e,t),e.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"0\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}},e.prototype.initDom=function(t){this._mainCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._mainCtx=this._mainCanvas.getContext(\\"2d\\"),this._overlayCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._overlayCtx=this._overlayCanvas.getContext(\\"2d\\"),t.appendChild(this._mainCanvas),t.appendChild(this._overlayCanvas)},e.prototype._optimalUpdateMain=function(t,e){var i=this;this._mainRequestAnimationId!==oe&&(ie(this._mainRequestAnimationId),this._mainRequestAnimationId=oe),this._mainRequestAnimationId=ee((function(){if(t!==i._mainCanvas.offsetWidth||e!==i._mainCanvas.offsetHeight){i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);var o=X(i._mainCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._mainCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._mainCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._mainCanvas.width=n,i._mainCanvas.height=r,i._mainCtx.scale(o,o)}else i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);i.updateMain(i._mainCtx)}))},e.prototype._optimalUpdateOverlay=function(t,e){var i=this;this._overlayRequestAnimationId!==oe&&(ie(this._overlayRequestAnimationId),this._overlayRequestAnimationId=oe),this._overlayRequestAnimationId=ee((function(){if(t!==i._overlayCanvas.offsetWidth||e!==i._overlayCanvas.offsetHeight){i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);var o=X(i._overlayCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._overlayCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._overlayCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._overlayCanvas.width=n,i._overlayCanvas.height=r,i._overlayCtx.scale(o,o)}else i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);i.updateOverlay(i._overlayCtx)}))},e.prototype.updateImp=function(t,e,i){var o=e.width,n=e.height;t.style.left=\\"\\".concat(e.left,\\"px\\");var r=i;switch(o===t.offsetWidth&&n===t.offsetHeight||(t.style.width=\\"\\".concat(o,\\"px\\"),t.style.height=\\"\\".concat(n,\\"px\\"),r=3),r){case 0:this._optimalUpdateMain(o,n);break;case 1:this._optimalUpdateOverlay(o,n);break;case 3:case 4:this._optimalUpdateMain(o,n),this._optimalUpdateOverlay(o,n)}},e.prototype.getImage=function(t){var e=this.getBounding(),i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);return n.width=i*a,n.height=o*a,r.scale(a,a),r.drawImage(this._mainCanvas,0,0,i,o),t&&r.drawImage(this._overlayCanvas,0,0,i,o),n},e}(jt);function re(t,e){var i=t.x-e.x,o=t.y-e.y,n=e.r;return!(i*i+o*o>n*n)}function ae(e,i,o){var n=i.x,r=i.y,a=i.r,s=o.style,l=void 0===s?t.PolygonType.Fill:s,u=o.color,c=o.borderSize,h=void 0===c?1:c,d=o.borderColor,p=void 0===d?\\"currentColor\\":d,v=o.borderStyle,g=void 0===v?t.LineType.Solid:v,f=o.borderDashedValue,m=void 0===f?[2,2]:f;l!==t.PolygonType.Fill&&o.style!==t.PolygonType.StrokeFill||(e.fillStyle=void 0===u?\\"currentColor\\":u,e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.fill()),l!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||(e.strokeStyle=p,e.lineWidth=h,e.setLineDash(g===t.LineType.Dashed?m:[]),e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.stroke())}var se={name:\\"circle\\",checkEventOn:re,draw:function(t,e,i){ae(t,e,i)}};function le(t,e){for(var i=!1,o=e.coordinates,n=0,r=o.length-1;o.length>n;r=n++)o[n].y>t.y!=o[r].y>t.y&&(o[r].x-o[n].x)*(t.y-o[n].y)/(o[r].y-o[n].y)+o[n].x>t.x&&(i=!i);return i}function ue(e,i,o){var n=i.coordinates,r=o.style,a=void 0===r?t.PolygonType.Fill:r,s=o.color,l=o.borderSize,u=void 0===l?1:l,c=o.borderColor,h=void 0===c?\\"currentColor\\":c,d=o.borderStyle,p=void 0===d?t.LineType.Solid:d,v=o.borderDashedValue,g=void 0===v?[2,2]:v;if(a===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){e.fillStyle=void 0===s?\\"currentColor\\":s,e.beginPath(),e.moveTo(n[0].x,n[0].y);for(var f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.fill()}if(a===t.PolygonType.Stroke||o.style===t.PolygonType.StrokeFill){e.strokeStyle=h,e.lineWidth=u,e.setLineDash(p===t.LineType.Dashed?g:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y);for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.stroke()}}var ce={name:\\"polygon\\",checkEventOn:le,draw:function(t,e,i){ue(t,e,i)}};function he(t){return\\"transparent\\"===t}function de(t,e){var i=e.x,o=e.width;2*Tt>o&&(i-=Tt,o=2*Tt);var n=e.y,r=e.height;return 2*Tt>r&&(n-=Tt,r=2*Tt),!(i>t.x||t.x>i+o||n>t.y||t.y>n+r)}function pe(e,i,o){var n=i.x,r=i.y,a=i.width,s=i.height,l=o.style,c=void 0===l?t.PolygonType.Fill:l,h=o.color,d=void 0===h?\\"transparent\\":h,p=o.borderSize,v=void 0===p?1:p,g=o.borderColor,f=void 0===g?\\"transparent\\":g,m=o.borderStyle,y=void 0===m?t.LineType.Solid:m,_=o.borderRadius,x=void 0===_?0:_,S=o.borderDashedValue,C=void 0===S?[2,2]:S;if(c===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){var b=!0;u(d)&&(b=!he(d)),b&&(e.fillStyle=d,e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.fill())}c!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||he(f)||0>v||(e.strokeStyle=f,e.lineWidth=v,e.setLineDash(y===t.LineType.Dashed?C:[]),e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.stroke())}var ve={name:\\"rect\\",checkEventOn:de,draw:function(t,e,i){pe(t,e,i)}};function ge(t,e){var i,o,n=e.size,r=void 0===n?12:n,a=e.paddingLeft,s=e.paddingTop,l=void 0===s?0:s,u=e.paddingRight,c=void 0===u?0:u,h=e.paddingBottom,d=void 0===h?0:h,p=e.weight,v=t.x,g=t.y,f=t.align,m=void 0===f?\\"left\\":f,y=t.baseline,_=void 0===y?\\"top\\":y,x=t.width,S=t.height,C=null!=x?x:(void 0===a?0:a)+j(t.text,r,void 0===p?\\"normal\\":p,e.family)+c,b=null!=S?S:l+r+d;switch(m){case\\"left\\":case\\"start\\":i=v;break;case\\"right\\":case\\"end\\":i=v-C;break;default:i=v-C/2}switch(_){case\\"top\\":case\\"hanging\\":o=g;break;case\\"bottom\\":case\\"ideographic\\":case\\"alphabetic\\":o=g-b;break;default:o=g-b/2}return{x:i,y:o,width:C,height:b}}function fe(t,e,i){var o=ge(e,i),n=o.x,r=o.y;return!(n>t.x||t.x>n+o.width||r>t.y||t.y>r+o.height)}function me(t,e,i){var o=e.text,n=i.color,r=void 0===n?\\"currentColor\\":n,a=i.size,s=void 0===a?12:a,l=i.family,u=i.weight,c=i.paddingLeft,h=void 0===c?0:c,d=i.paddingTop,p=void 0===d?0:d,v=i.paddingRight,g=void 0===v?0:v,f=ge(e,i);pe(t,f,k(k({},i),{color:i.backgroundColor})),t.textAlign=\\"left\\",t.textBaseline=\\"top\\",t.font=H(s,u,l),t.fillStyle=r,t.fillText(o,f.x+h,f.y+p,f.width-h-g)}var ye={name:\\"text\\",checkEventOn:function(t,e,i){return fe(t,e,i)},draw:function(t,e,i){me(t,e,i)}},_e=me;function xe(t,e){if(Math.abs(Math.sqrt((h=(u=t).x-(c=e).x)*h+(d=u.y-c.y)*d)-e.r)Math.max(r,s)+Tt||Math.min(r,s)-Tt>t.x||t.y>Math.max(a,l)+Tt||Math.min(a,l)-Tt>t.y)}var u,c,h,d;return!1}function Se(e,i,o){var n=i.x,r=i.y,a=i.r,s=i.startAngle,l=i.endAngle,u=o.style,c=void 0===u?t.LineType.Solid:u,h=o.size,d=o.color,p=void 0===d?\\"currentColor\\":d,v=o.dashedValue,g=void 0===v?[2,2]:v;e.lineWidth=void 0===h?1:h,e.strokeStyle=p,e.setLineDash(c===t.LineType.Dashed?g:[]),e.beginPath(),e.arc(n,r,a,s,l),e.stroke(),e.closePath()}var Ce={name:\\"arc\\",checkEventOn:xe,draw:function(t,e,i){Se(t,e,i)}},be={};[se,Ft,ce,ve,ye,ye,Ce].forEach((function(t){be[t.name]=wt.extend(t)}));var Te=function(t){function e(e){var i=t.call(this)||this;return i._widget=e,i}return P(e,t),e.prototype.getWidget=function(){return this._widget},e.prototype.createFigure=function(t,e,i,o){var n=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null}(t);if(null!==n){var r=new n({name:t,attrs:e,styles:i});if(void 0!==o){for(var a in o)o.hasOwnProperty(a)&&r.registerEvent(a,o[a]);this.addChild(r)}return r}return null},e.prototype.draw=function(t){this.clear(),this.drawImp(t)},e}(bt),we=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=this.getWidget().getPane(),r=n.getChart(),a=o.getBounding(),s=r.getStyles().grid;if(s.show){t.save(),t.globalCompositeOperation=\\"destination-over\\";var l=s.horizontal;if(l.show)n.getAxisComponent().getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:0,y:e.coord},{x:a.width,y:e.coord}]},l))||void 0===o||o.draw(t)}));var u=s.vertical;if(u.show)(null===(e=r.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent()).getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:e.coord,y:0},{x:e.coord,y:a.height}]},u))||void 0===o||o.draw(t)}));t.restore()}},e}(Te),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.eachChildren=function(t){var e=this.getWidget().getPane().getChart().getChartStore(),i=e.getVisibleDataList(),o=e.getTimeScaleStore().getBarSpace();i.forEach((function(e,i){t(e,o,i)}))},e}(Te),Ie=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundCandleBarClickEvent=function(e){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnCandleBarClick,e),!1}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this,i=this.getWidget().getPane(),o=i.getId()===Kt.CANDLE,n=i.getChart().getChartStore(),r=this.getCandleBarOptions(n);if(null!==r){var a=i.getAxisComponent();this.eachChildren((function(i,n){e._drawCandleBar(t,a,i,n,r,o)}))}},i.prototype.getCandleBarOptions=function(t){var e=t.getStyles().candle;return{type:e.type,styles:e.bar}},i.prototype._drawCandleBar=function(e,i,o,n,r,a){var s,l,u,c=this,h=o.data,d=o.x,p=h.open,v=h.high,g=h.low,f=h.close,m=n.halfGapBar,y=n.gapBar,_=r.type,x=r.styles;f>p?(s=x.upColor,l=x.upBorderColor,u=x.upWickColor):p>f?(s=x.downColor,l=x.downBorderColor,u=x.downWickColor):(s=x.noChangeColor,l=x.noChangeBorderColor,u=x.noChangeWickColor);var S=i.convertToPixel(p),C=i.convertToPixel(f),b=[S,C,i.convertToPixel(v),i.convertToPixel(g)];b.sort((function(t,e){return t-e}));var T=Math.max(1,b[2]-b[1]),w=[];_!==t.CandleType.Ohlc?(w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[1]-b[0]},styles:{color:u}}),w.push(_===t.CandleType.CandleStroke||_===t.CandleType.CandleUpStroke&&f>p||_===t.CandleType.CandleDownStroke&&p>f?{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.Stroke,borderColor:l}}:{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.StrokeFill,color:s,borderColor:l}}),w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[2],width:1,height:b[3]-b[2]},styles:{color:u}})):w=[{name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[3]-b[0]},styles:{color:s}},{name:\\"rect\\",attrs:{x:d-m,y:S,width:m,height:1},styles:{color:s}},{name:\\"rect\\",attrs:{x:d,y:C,width:m,height:1},styles:{color:s}}],w.forEach((function(t){var i,n,r=t.attrs,s=t.styles;a&&(n={mouseClickEvent:c._boundCandleBarClickEvent(o)}),null===(i=c.createFigure(\\"rect\\",r,s,n))||void 0===i||i.draw(e)}))},i}(Ee),De=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.getCandleBarOptions=function(e){var i,o,n=this.getWidget().getPane();if(!n.getAxisComponent().isInCandle()){var r=e.getIndicatorStore().getInstances(n.getId());try{for(var a=L(r),s=a.next();!s.done;s=a.next()){var l=s.value[1];if(l.shouldOhlc&&l.visible){var u=l.styles,c=e.getStyles().indicator,h=C(u,\\"ohlc.upColor\\",c.ohlc.upColor),d=C(u,\\"ohlc.downColor\\",c.ohlc.downColor),p=C(u,\\"ohlc.noChangeColor\\",c.ohlc.noChangeColor);return{type:t.CandleType.Ohlc,styles:{upColor:h,downColor:d,noChangeColor:p,upBorderColor:h,downBorderColor:d,noChangeBorderColor:p,upWickColor:h,downWickColor:d,noChangeWickColor:p}}}}}catch(t){i={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}return null},i.prototype.drawImp=function(t){var i,o=this;e.prototype.drawImp.call(this,t);var n=this.getWidget(),r=n.getPane(),l=r.getChart(),u=n.getBounding(),c=null===(i=l.getPaneById(Kt.XAXIS))||void 0===i?void 0:i.getAxisComponent(),h=r.getAxisComponent(),d=l.getChartStore(),p=d.getDataList(),v=d.getTimeScaleStore(),g=v.getVisibleRange(),f=d.getIndicatorStore().getInstances(r.getId()),m=d.getStyles().indicator;f.forEach((function(e){var i;if(e.visible){var n=!1;if(null!==e.draw&&(t.save(),n=null!==(i=e.draw({ctx:t,kLineDataList:p,indicator:e,visibleRange:g,bounding:u,barSpace:v.getBarSpace(),defaultStyles:m,xAxis:c,yAxis:h}))&&void 0!==i&&i,t.restore()),!n){var r=e.result;o.eachChildren((function(i,n){var l,d,v,g=n.halfGapBar,f=n.gapBar,y=i.dataIndex,_=i.x,x=c.convertToPixel(y-1),S=c.convertToPixel(y+1),C=null!==(l=r[y-1])&&void 0!==l?l:{},b=null!==(d=r[y])&&void 0!==d?d:{},T=null!==(v=r[y+1])&&void 0!==v?v:{},w={x:x},E={x:_},I={x:S};e.figures.forEach((function(t){var e=t.key;w[e]=h.convertToPixel(C[e]),E[e]=h.convertToPixel(b[e]),I[e]=h.convertToPixel(T[e])})),ot(p,e,y,m,(function(e,i){var r,l,d;if(s(b[e.key])){var p=E[e.key],v=null===(r=e.attrs)||void 0===r?void 0:r.call(e,{coordinate:{prev:w,current:E,next:I},bounding:u,barSpace:n,xAxis:c,yAxis:h});if(!s(v))switch(e.type){case\\"circle\\":v={x:_,y:p,r:g};break;case\\"rect\\":case\\"bar\\":var m=null!==(l=e.baseValue)&&void 0!==l?l:h.getExtremum().min,y=h.convertToPixel(m),x=Math.abs(y-p);m!==b[e.key]&&(x=Math.max(1,x));v={x:_-g,y:p>y?y:p,width:f,height:x};break;case\\"line\\":a(E[e.key])&&a(I[e.key])&&(v={coordinates:[{x:E.x,y:E[e.key]},{x:I.x,y:I[e.key]}]})}if(s(v)){var S=e.type;null===(d=o.createFigure(\\"bar\\"===S?\\"rect\\":S,v,i))||void 0===d||d.draw(t)}}}))}))}}}))},i}(Ie),Pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=e.getBounding(),n=e.getPane().getChart().getChartStore(),r=n.getTooltipStore().getCrosshair(),a=n.getStyles().crosshair;if(void 0!==r.paneId&&a.show){if(r.paneId===i.getId()){var s=r.y;this._drawLine(t,[{x:0,y:s},{x:o.width,y:s}],a.horizontal)}var l=r.realX;this._drawLine(t,[{x:l,y:0},{x:l,y:o.height}],a.vertical)}},e.prototype._drawLine=function(t,e,i){var o;if(i.show){var n=i.line;n.show&&(null===(o=this.createFigure(\\"line\\",{coordinates:e},n))||void 0===o||o.draw(t))}},e}(Te),Me=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundIconClickEvent=function(e,o){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnTooltipIconClick,k(k({},e),{iconId:o})),!0}},i._boundIconMouseMoveEvent=function(t,e){return function(){return i.getWidget().getPane().getChart().getChartStore().getTooltipStore().setActiveIcon(k(k({},t),{iconId:e})),!0}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=i.getChart().getChartStore(),n=o.getTooltipStore().getCrosshair();if(void 0!==n.kLineData){var r=e.getBounding(),a=o.getCustomApi(),s=o.getThousandsSeparator(),l=o.getIndicatorStore().getInstances(i.getId()),u=o.getTooltipStore().getActiveIcon(),c=o.getStyles().indicator;this.drawIndicatorTooltip(t,i.getId(),o.getDataList(),n,u,l,a,s,r,c)}},i.prototype.drawIndicatorTooltip=function(t,e,i,o,n,r,a,s,l,u,c){var h=this,d=u.tooltip,p=0;if(this.isDrawTooltip(o,d)){var v=d.text,g=0,f=null!=c?c:0,m=0;r.forEach((function(r){var c=h.getIndicatorTooltipData(i,o,r,a,s,u),d=c.name,y=c.calcParamsText,_=c.values,x=d.length>0,S=_.length>0;if(x||S){var C=R(h.classifyTooltipIcons(c.icons),3),b=C[1],T=C[2],w=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,C[0],g,f,m),4);if(g=w[0],f=w[1],p+=w[3],m=w[2],x){var E=d;y.length>0&&(E=\\"\\".concat(E).concat(y));var I=R(h.drawStandardTooltipLabels(t,l,[{title:{text:\\"\\",color:v.color},value:{text:E,color:v.color}}],g,f,m,v),4);g=I[0],f=I[1],p+=I[3],m=I[2]}var D=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,b,g,f,m),4);if(g=D[0],f=D[1],p+=D[3],m=D[2],S){var P=R(h.drawStandardTooltipLabels(t,l,_,g,f,m,v),4);g=P[0],f=P[1],p+=P[3],m=P[2]}var M=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,T,g,f,m),4);g=0,p+=M[3],f=M[1]+M[2],m=0}}))}return p},i.prototype.drawStandardTooltipIcons=function(t,e,i,o,n,r,a,s){var l=this,u=r,c=a,h=0,d=0,p=0;return n.length>0&&(n.forEach((function(e){var i=e.marginLeft,o=e.marginTop,n=e.marginRight,r=e.marginBottom,a=e.paddingLeft,s=e.paddingTop,l=e.paddingRight,u=e.paddingBottom,c=e.size,p=e.icon;t.font=H(c,\\"normal\\",e.fontFamily),h+=i+a+t.measureText(p).width+l+n,d=Math.max(d,o+s+c+u+r)})),u+h>e.width?(u=n[0].marginLeft,c+=s,p=d):p=Math.max(0,d-s),n.forEach((function(e){var n,r=e.marginRight,a=e.paddingLeft,s=e.paddingRight,h=e.icon,d=(null==o?void 0:o.paneId)===i.paneId&&(null==o?void 0:o.indicatorName)===i.indicatorName&&(null==o?void 0:o.iconId)===e.id;null===(n=l.createFigure(\\"text\\",{text:h,x:u+=e.marginLeft,y:c+e.marginTop},{paddingLeft:a,paddingTop:e.paddingTop,paddingRight:s,paddingBottom:e.paddingBottom,color:d?e.activeColor:e.color,size:e.size,family:e.fontFamily,backgroundColor:d?e.activeBackgroundColor:e.backgroundColor},{mouseClickEvent:l._boundIconClickEvent(i,e.id),mouseMoveEvent:l._boundIconMouseMoveEvent(i,e.id)}))||void 0===n||n.draw(t),u+=a+t.measureText(h).width+s+r}))),[u,c,Math.max(s,d),p]},i.prototype.drawStandardTooltipLabels=function(t,e,i,o,n,r,a){var s=this,l=o,u=n,c=0,h=0,d=r;if(i.length>0){var p=a.marginLeft,v=a.marginTop,g=a.marginRight,f=a.marginBottom,m=a.size,y=a.family,_=a.weight;t.font=H(m,_,y),i.forEach((function(i){var o,n,r=i.title,a=i.value,x=t.measureText(r.text).width,S=t.measureText(a.text).width,C=m+v+f;l+p+(x+S)+g>e.width?(l=p,u+=C,h+=C):(l+=p,h+=Math.max(0,C-d)),d=c=Math.max(d,C),r.text.length>0&&(null===(o=s.createFigure(\\"text\\",{x:l,y:u+v,text:r.text},{color:r.color,size:m,family:y,weight:_}))||void 0===o||o.draw(t),l+=x),null===(n=s.createFigure(\\"text\\",{x:l,y:u+v,text:a.text},{color:a.color,size:m,family:y,weight:_}))||void 0===n||n.draw(t),l+=S+g}))}return[l,u,c,h]},i.prototype.isDrawTooltip=function(e,i){var o=i.showRule;return o===t.TooltipShowRule.Always||o===t.TooltipShowRule.FollowCross&&void 0!==e.paneId},i.prototype.getIndicatorTooltipData=function(t,e,i,o,n,a){var l,u,c,h=a.tooltip,d=h.showName?i.shortName:\\"\\",p=\\"\\",v=i.calcParams;v.length>0&&h.showParams&&(p=\\"(\\".concat(v.join(\\",\\"),\\")\\"));var g={name:d,calcParamsText:p,values:[],icons:h.icons},f=e.dataIndex,m=null!==(l=i.result)&&void 0!==l?l:[],y=[];if(i.visible){var _=null!==(u=m[f])&&void 0!==u?u:{};ot(t,i,f,a,(function(t,e){if(void 0!==t.title){var r=e.color,a=_[t.key];s(a)&&(a=T(a,i.precision),i.shouldFormatBigNumber&&(a=o.formatBigNumber(a))),y.push({title:{text:t.title,color:r},value:{text:E(null!=a?a:h.defaultValue,n),color:r}})}})),g.values=y}if(null!==i.createTooltipDataSource){var x=this.getWidget(),S=x.getPane(),C=S.getChart().getChartStore(),b=i.createTooltipDataSource({kLineDataList:t,indicator:i,visibleRange:C.getTimeScaleStore().getVisibleRange(),bounding:x.getBounding(),crosshair:e,defaultStyles:a,xAxis:null===(c=S.getChart().getPaneById(Kt.XAXIS))||void 0===c?void 0:c.getAxisComponent(),yAxis:S.getAxisComponent()}),w=b.name,I=b.calcParamsText,D=b.values,P=b.icons;if(void 0!==w&&h.showName&&(g.name=w),void 0!==I&&h.showParams&&(g.calcParamsText=I),void 0!==P&&(g.icons=P),void 0!==D&&i.visible){var M=[],k=a.tooltip.text.color;D.forEach((function(t){var e={text:\\"\\",color:k};r(t.title)?e=t.title:e.text=t.title;var i={text:\\"\\",color:k};r(t.value)?i=t.value:i.text=t.value,i.text=E(i.text,n),M.push({title:e,value:i})})),g.values=M}}return g},i.prototype.classifyTooltipIcons=function(e){var i=[],o=[],n=[];return e.forEach((function(e){switch(e.position){case t.TooltipIconPosition.Left:i.push(e);break;case t.TooltipIconPosition.Middle:o.push(e);break;case t.TooltipIconPosition.Right:n.push(e)}})),[i,o,n]},i}(Te),ke=function(e){function i(t){var i=e.call(this,t)||this;return i._initEvent(),i}return P(i,e),i.prototype._initEvent=function(){var t=this,e=this.getWidget().getPane(),i=e.getId(),o=e.getChart().getChartStore().getOverlayStore();this.registerEvent(\\"mouseMoveEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;a.isStart()&&(o.updateProgressInstanceInfo(i),s=i);var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);return a.isDrawing()&&s===i&&(a.eventMoveForDrawing(t._coordinateToPoint(r.instance,e)),null===(n=a.onDrawing)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))),t._figureMouseMoveEvent(a,1,u,l,0)(e)}return o.setHoverInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseClickEvent\\",(function(e){var n,r,a=o.getProgressInstanceInfo();if(null!==a){var s=a.instance,l=a.paneId;s.isStart()&&(o.updateProgressInstanceInfo(i,!0),l=i);var u=s.points.length-1,c=\\"\\".concat(yt,\\"point_\\").concat(u);return s.isDrawing()&&l===i&&(s.eventMoveForDrawing(t._coordinateToPoint(s,e)),null===(n=s.onDrawing)||void 0===n||n.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)),s.nextStep(),s.isDrawing()||(o.progressInstanceComplete(),null===(r=s.onDrawEnd)||void 0===r||r.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)))),t._figureMouseClickEvent(s,1,c,u,0)(e)}return o.setClickInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseDoubleClickEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;if(a.isDrawing()&&s===i&&(a.forceComplete(),!a.isDrawing())){o.progressInstanceComplete();var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);null===(n=a.onDrawEnd)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))}var c=a.points.length-1;return t._figureMouseClickEvent(a,1,\\"\\".concat(yt,\\"point_\\").concat(c),c,0)(e)}return!1})).registerEvent(\\"mouseRightClickEvent\\",(function(e){var i=o.getProgressInstanceInfo();if(null!==i){var n=i.instance;if(n.isDrawing()){var r=n.points.length-1;return t._figureMouseRightClickEvent(n,1,\\"\\".concat(yt,\\"point_\\").concat(r),r,0)(e)}}return!1})).registerEvent(\\"mouseUpEvent\\",(function(t){var e,n=o.getPressedInstanceInfo(),r=n.instance;return null!==r&&(null===(e=r.onPressedMoveEnd)||void 0===e||e.call(r,k({overlay:r,figureKey:n.figureKey,figureIndex:n.figureIndex},t))),o.setPressedInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1}),!1})).registerEvent(\\"pressedMouseMoveEvent\\",(function(e){var i,n,r=o.getPressedInstanceInfo(),a=r.instance,s=r.figureType,l=r.figureIndex;if(null!==a){if(!(a.lock||null!==(n=null===(i=a.onPressedMoving)||void 0===i?void 0:i.call(a,k({overlay:a,figureIndex:l,figureKey:r.figureKey},e)))&&void 0!==n&&n)){var u=t._coordinateToPoint(a,e);1===s?a.eventPressedPointMove(u,l):a.eventPressedOtherMove(u,t.getWidget().getPane().getChart().getChartStore().getTimeScaleStore())}return!0}return!1}))},i.prototype._createFigureEvents=function(t,e,i,o,n,r){var a;if(!t.isDrawing()){var s=[];if(void 0!==r&&(l(r)?r&&(s=[\\"mouseClickEvent\\",\\"mouseDoubleClickEvent\\",\\"mouseRightClickEvent\\",\\"tapEvent\\",\\"doubleTapEvent\\",\\"mouseDownEvent\\",\\"touchStartEvent\\",\\"mouseMoveEvent\\",\\"touchMoveEvent\\"]):s=r),0===s.length)return{mouseMoveEvent:this._figureMouseMoveEvent(t,e,i,o,n),mouseDownEvent:this._figureMouseDownEvent(t,e,i,o,n),mouseClickEvent:this._figureMouseClickEvent(t,e,i,o,n),mouseRightClickEvent:this._figureMouseRightClickEvent(t,e,i,o,n),mouseDoubleClickEvent:this._figureMouseDoubleClickEvent(t,e,i,o,n)};a={},s.includes(\\"mouseMoveEvent\\")||s.includes(\\"touchMoveEvent\\")||(a.mouseMoveEvent=this._figureMouseMoveEvent(t,e,i,o,n)),s.includes(\\"mouseDownEvent\\")||s.includes(\\"touchStartEvent\\")||(a.mouseDownEvent=this._figureMouseDownEvent(t,e,i,o,n)),s.includes(\\"mouseClickEvent\\")||s.includes(\\"tapEvent\\")||(a.mouseClickEvent=this._figureMouseClickEvent(t,e,i,o,n)),s.includes(\\"mouseDoubleClickEvent\\")||s.includes(\\"doubleTapEvent\\")||(a.mouseDoubleClickEvent=this._figureMouseDoubleClickEvent(t,e,i,o,n)),s.includes(\\"mouseRightClickEvent\\")||(a.mouseRightClickEvent=this._figureMouseRightClickEvent(t,e,i,o,n))}return a},i.prototype._figureMouseMoveEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane();return s.getChart().getChartStore().getOverlayStore().setHoverInstanceInfo({paneId:s.getId(),instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDownEvent=function(t,e,i,o,n){var r=this;return function(a){var s,l=r.getWidget().getPane(),u=l.getId(),c=l.getChart().getChartStore().getOverlayStore();return t.startPressedMove(r._coordinateToPoint(t,a)),null===(s=t.onPressedMoveStart)||void 0===s||s.call(t,k({overlay:t,figureIndex:o,figureKey:i},a)),c.setPressedInstanceInfo({paneId:u,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n}),!0}},i.prototype._figureMouseClickEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane(),l=s.getId();return s.getChart().getChartStore().getOverlayStore().setClickInstanceInfo({paneId:l,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDoubleClickEvent=function(t,e,i,o,n){return function(e){var n;return null===(n=t.onDoubleClick)||void 0===n||n.call(t,k(k({},e),{figureIndex:o,figureKey:i,overlay:t})),!0}},i.prototype._figureMouseRightClickEvent=function(t,e,i,o,n){var r=this;return function(e){var n,a;null!==(a=null===(n=t.onRightClick)||void 0===n?void 0:n.call(t,k({overlay:t,figureIndex:o,figureKey:i},e)))&&void 0!==a&&a||r.getWidget().getPane().getChart().getChartStore().getOverlayStore().removeInstance(t);return!0}},i.prototype._coordinateToPoint=function(e,i){var o,n,r={},a=this.getWidget().getPane(),s=a.getChart(),l=a.getId(),u=s.getChartStore().getTimeScaleStore();if(this.coordinateToPointTimestampDataIndexFlag()){var c=(null===(o=s.getPaneById(Kt.XAXIS))||void 0===o?void 0:o.getAxisComponent()).convertFromPixel(i.x),h=null!==(n=u.dataIndexToTimestamp(c))&&void 0!==n?n:void 0;r.dataIndex=c,r.timestamp=h}if(this.coordinateToPointValueFlag()){var d=a.getAxisComponent(),p=d.convertFromPixel(i.y);if(e.mode!==t.OverlayMode.Normal&&l===Kt.CANDLE&&void 0!==r.dataIndex){var v=u.getDataByDataIndex(r.dataIndex);if(null!==v){var g=e.modeSensitivity;if(p>v.high)if(e.mode===t.OverlayMode.WeakMagnet){var f=d.convertToPixel(v.high);d.convertFromPixel(f-g)>p&&(p=v.high)}else p=v.high;else if(v.low>p)if(e.mode===t.OverlayMode.WeakMagnet){var m=d.convertToPixel(v.low);p>d.convertFromPixel(m-g)&&(p=v.low)}else p=v.low;else{var y=Math.max(v.open,v.close),_=Math.min(v.open,v.close);p=p>y?v.high-p>p-y?y:v.high:_>p?_-p>p-v.low?v.low:_:p-_>y-p?y:_}}}r.value=p}return r},i.prototype.coordinateToPointValueFlag=function(){return!0},i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.dispatchEvent=function(t,i,o){return this.getWidget().getPane().getChart().getChartStore().getOverlayStore().isDrawing()?this.onEvent(t,i,o):e.prototype.dispatchEvent.call(this,t,i,o)},i.prototype.checkEventOn=function(){return!0},i.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart(),s=n.getAxisComponent(),l=null===(e=a.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent(),u=o.getBounding(),c=a.getChartStore(),h=c.getCustomApi(),d=c.getThousandsSeparator(),p=c.getTimeScaleStore(),v=p.getDateTimeFormat(),g=p.getBarSpace(),f=c.getPrecision(),m=c.getStyles().overlay,y=c.getOverlayStore(),_=y.getHoverInstanceInfo(),x=y.getClickInstanceInfo();this.getCompleteOverlays(y,r).forEach((function(e){e.visible&&i._drawOverlay(t,e,u,g,f,v,h,d,m,l,s,_,x,p)}));var S=y.getProgressInstanceInfo();if(null!==S){var C=this.getProgressOverlay(S,r);null!==C&&C.visible&&this._drawOverlay(t,C,u,g,f,v,h,d,m,l,s,_,x,p)}},i.prototype._drawOverlay=function(t,e,i,o,n,r,a,s,l,u,c,h,d,p){var v=e.points.map((function(t){var e,i,o=t.dataIndex;void 0!==t.timestamp&&(o=p.timestampToDataIndex(t.timestamp));var n={x:0,y:0};return void 0!==o&&(n.x=null!==(e=null==u?void 0:u.convertToPixel(o))&&void 0!==e?e:0),void 0!==t.value&&(n.y=null!==(i=null==c?void 0:c.convertToPixel(t.value))&&void 0!==i?i:0),n}));if(v.length>0){var g=[].concat(this.getFigures(e,v,i,o,n,s,r,l,u,c));this.drawFigures(t,e,g,l)}this.drawDefaultFigures(t,e,v,i,n,r,a,s,l,u,c,h,d)},i.prototype.drawFigures=function(t,e,i,o){var n=this;i.forEach((function(i,r){var a=i.type,s=i.styles,l=i.ignoreEvent;[].concat(i.attrs).forEach((function(u,c){var h,d,p,v=n._createFigureEvents(e,2,null!==(h=i.key)&&void 0!==h?h:\\"\\",r,c,l),g=k(k(k({},o[a]),null===(d=e.styles)||void 0===d?void 0:d[a]),s);null===(p=n.createFigure(a,u,g,v))||void 0===p||p.draw(t)}))}))},i.prototype.getCompleteOverlays=function(t,e){return t.getInstances(e)},i.prototype.getProgressOverlay=function(t,e){return t.paneId===e?t.instance:null},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createPointFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){var p,v,g=this;if(e.needDefaultPointFigure&&((null===(p=h.instance)||void 0===p?void 0:p.id)===e.id&&0!==h.figureType||(null===(v=d.instance)||void 0===v?void 0:v.id)===e.id&&0!==d.figureType)){var f=e.styles,m=k(k({},l.point),null==f?void 0:f.point);i.forEach((function(i,o){var n,r,a,s=i.x,l=i.y,u=m.radius,c=m.color,d=m.borderColor,p=m.borderSize;(null===(n=h.instance)||void 0===n?void 0:n.id)===e.id&&1===h.figureType&&h.figureIndex===o&&(u=m.activeRadius,c=m.activeColor,d=m.activeBorderColor,p=m.activeBorderSize),null===(r=g.createFigure(\\"circle\\",{x:s,y:l,r:u+p},{color:d},g._createFigureEvents(e,1,\\"\\".concat(yt,\\"point_\\").concat(o),o,0)))||void 0===r||r.draw(t),null===(a=g.createFigure(\\"circle\\",{x:s,y:l,r:u},{color:c}))||void 0===a||a.draw(t)}))}},i}(Te),Ae=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._gridView=new we(o),o._indicatorView=new De(o),o._crosshairLineView=new Pe(o),o._tooltipView=o.createTooltipView(),o._overlayView=new ke(o),o.addChild(o._tooltipView),o.addChild(o._overlayView),o.getContainer().style.cursor=\\"crosshair\\",o.registerEvent(\\"mouseMoveEvent\\",(function(){return i.getChart().getChartStore().getTooltipStore().setActiveIcon(),!1})),o}return P(e,t),e.prototype.getName=function(){return zt},e.prototype.updateMain=function(t){this.updateMainContent(t),this._indicatorView.draw(t),this._gridView.draw(t)},e.prototype.createTooltipView=function(){return new Me(this)},e.prototype.updateMainContent=function(t){},e.prototype.updateOverlay=function(t){this._overlayView.draw(t),this._crosshairLineView.draw(t),this._tooltipView.draw(t)},e}(ne),Fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i,n=this.getWidget(),r=n.getPane(),s=r.getChart(),l=n.getBounding(),u=r.getAxisComponent(),c=s.getStyles().candle.area,h=[],d=[],p=Number.MAX_SAFE_INTEGER;this.eachChildren((function(t,e,i){var o=t.x,n=e.halfGapBar,r=t.data[c.value];if(a(r)){var s=u.convertToPixel(r);if(0===i){var v=o-n;d.push({x:v,y:l.height}),d.push({x:v,y:s}),h.push({x:v,y:s})}h.push({x:o,y:s}),d.push({x:o,y:s}),p=Math.min(p,s)}}));var v=d.length;if(v>0){var g=d[v-1],f=g.x;h.push({x:f,y:g.y}),d.push({x:f,y:g.y}),d.push({x:f,y:l.height})}if(h.length>0&&(null===(e=this.createFigure(\\"line\\",{coordinates:h},{color:c.lineColor,size:c.lineSize}))||void 0===e||e.draw(t)),d.length>0){var m=c.backgroundColor,y=void 0;if(o(m)){var _=t.createLinearGradient(0,l.height,0,p);try{m.forEach((function(t){_.addColorStop(t.offset,t.color)}))}catch(t){}y=_}else y=m;null===(i=this.createFigure(\\"polygon\\",{coordinates:d},{color:y}))||void 0===i||i.draw(t)}},e}(Ee),Le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget().getPane(),i=e.getChart().getChartStore(),o=i.getStyles().candle.priceMark,n=o.high,r=o.low;if(o.show&&(n.show||r.show)){var a=i.getThousandsSeparator(),s=i.getPrecision(),l=e.getAxisComponent(),u=Number.MIN_SAFE_INTEGER,c=0,h=Number.MAX_SAFE_INTEGER,d=0;this.eachChildren((function(t){var e=t.data,i=t.x;e.high>u&&(u=e.high,c=i),h>e.low&&(h=e.low,d=i)}));var p=l.convertToPixel(u),v=l.convertToPixel(h);n.show&&u!==Number.MIN_SAFE_INTEGER&&this._drawMark(t,E(T(u,s.price),a),{x:c,y:p},v>p?[-2,-5]:[2,5],n),r.show&&h!==Number.MAX_SAFE_INTEGER&&this._drawMark(t,E(T(h,s.price),a),{x:d,y:v},v>p?[2,5]:[-2,-5],r)}},e.prototype._drawMark=function(t,e,i,o,n){var r,a,s,l,u,c,h=i.x,d=i.y+o[0];null===(r=this.createFigure(\\"line\\",{coordinates:[{x:h-2,y:d+o[0]},{x:h,y:d},{x:h+2,y:d+o[0]}]},{color:n.color}))||void 0===r||r.draw(t),h>this.getWidget().getBounding().width/2?(u=(l=h-5)-n.textOffset,c=\\"right\\"):(c=\\"left\\",u=(l=h+5)+n.textOffset);var p=d+o[1];null===(a=this.createFigure(\\"line\\",{coordinates:[{x:h,y:d},{x:h,y:p},{x:l,y:p}]},{color:n.color}))||void 0===a||a.draw(t),null===(s=this.createFigure(\\"text\\",{x:u,y:p,text:e,align:c,baseline:\\"middle\\"},{color:n.color,size:n.textSize,family:n.textFamily,weight:n.textWeight}))||void 0===s||s.draw(t)},e}(Ee),Re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getStyles().candle.priceMark,s=a.last,l=s.line;if(a.show&&s.show&&l.show){var u=o.getAxisComponent(),c=r.getDataList(),h=c[c.length-1];if(null!=h){var d=h.close,p=h.open,v=u.convertToNicePixel(d);null===(e=this.createFigure(\\"line\\",{coordinates:[{x:0,y:v},{x:n.width,y:v}]},{style:l.style,color:d>p?s.upColor:p>d?s.downColor:s.noChangeColor,size:l.size,dashedValue:l.dashedValue}))||void 0===e||e.draw(t)}}},e}(Te),Be={\\"zh-CN\\":{time:\\"时间:\\",open:\\"开:\\",high:\\"高:\\",low:\\"低:\\",close:\\"收:\\",volume:\\"成交量:\\",change:\\"涨幅:\\"},\\"en-US\\":{time:\\"Time: \\",open:\\"Open: \\",high:\\"High: \\",low:\\"Low: \\",close:\\"Close: \\",volume:\\"Volume: \\",change:\\"Change: \\"}};var Oe=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart().getChartStore(),s=a.getTooltipStore().getCrosshair();if(void 0!==s.kLineData){var l=o.getBounding(),u=null===(i=n.getYAxisWidget())||void 0===i?void 0:i.getBounding(),c=a.getDataList(),h=a.getPrecision(),d=a.getLocale(),p=a.getCustomApi(),v=a.getThousandsSeparator(),g=a.getTooltipStore().getActiveIcon(),f=a.getIndicatorStore().getInstances(n.getId()),m=a.getTimeScaleStore().getDateTimeFormat(),y=a.getStyles(),_=y.candle,x=y.indicator;if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Rect){var S=this.isDrawTooltip(s,_.tooltip),C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,C,y,0)}else if(_.tooltip.showType===t.TooltipShowType.Standard&&x.tooltip.showType===t.TooltipShowType.Standard){var b=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,b)}else if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Standard){var T=this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,0);S=this.isDrawTooltip(s,_.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,!1,y,T)}else{var w=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,!1,C,y,w)}}},i.prototype._drawCandleStandardTooltip=function(t,e,i,o,n,r,a,s,l,u,c,h){var d,p,v,g=h.tooltip,f=g.text,m=0;if(this.isDrawTooltip(n,g)){var y=null!==(d=n.dataIndex)&&void 0!==d?d:0,_=this._getCandleTooltipData({prev:null!==(p=e[y-1])&&void 0!==p?p:null,current:n.kLineData,next:null!==(v=e[y+1])&&void 0!==v?v:null},a,s,l,u,c,h),x=0,S=0,C=0,b=R(this.classifyTooltipIcons(g.icons),3),T=b[1],w=b[2],E=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,b[0],x,S,0),4);m+=E[3];var I=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,T,x=E[0],S=E[1],C=E[2]),4);if(x=I[0],S=I[1],m+=I[3],C=I[2],_.length>0){var D=R(this.drawStandardTooltipLabels(t,o,_,x,S,C,f),4);x=D[0],S=D[1],m+=D[3],C=D[2]}var P=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,w,x,S,C),4);x=P[0],S=P[1],m+=P[3],C=P[2]}return m},i.prototype._drawRectTooltip=function(e,i,o,n,r,a,s,l,u,c,h,d,p,v,f){var m,y,_,x,S,C=this,b=v.candle,T=v.indicator,w=b.tooltip,E=T.tooltip;if(d||p){var I=null!==(m=a.dataIndex)&&void 0!==m?m:0,D=this._getCandleTooltipData({prev:null!==(y=i[I-1])&&void 0!==y?y:null,current:a.kLineData,next:null!==(_=i[I+1])&&void 0!==_?_:null},s,l,u,c,h,b),P=w.text,M=P.marginLeft,k=P.marginRight,A=P.marginTop,F=P.marginBottom,L=P.size,R=P.weight,B=P.family,O=w.rect,V=O.position,N=O.paddingLeft,W=O.paddingRight,z=O.paddingTop,Y=O.paddingBottom,X=O.offsetLeft,j=O.offsetRight,Z=O.offsetTop,G=O.offsetBottom,K=O.borderSize,U=O.borderRadius,q=O.borderColor,$=O.color,J=0,Q=0,tt=0;d&&(e.font=H(L,R,B),D.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+M+k;J=Math.max(J,n)})),tt+=(F+A+L)*D.length);var et=E.text,it=et.marginLeft,ot=et.marginRight,nt=et.marginTop,rt=et.marginBottom,at=et.size,st=et.weight,lt=et.family,ut=[];if(p&&(e.font=H(at,st,lt),o.forEach((function(t){var o,n=null!==(o=C.getIndicatorTooltipData(i,a,t,c,h,T).values)&&void 0!==o?o:[];ut.push(n),n.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+it+ot;J=Math.max(J,n),tt+=nt+rt+at}))}))),0!==(Q+=J)&&0!==tt){Q+=2*K+N+W,tt+=2*K+z+Y;var ct=V===g.Pointer&&a.paneId===Kt.CANDLE,ht=(null!==(x=a.realX)&&void 0!==x?x:0)>n.width/2,dt=0;if(ct){var pt=a.realX;dt=ht?pt-j-Q:pt+X}else ht?(dt=X,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Left&&(dt+=r.width)):(dt=n.width-j-Q,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Right&&(dt-=r.width));var vt=f+Z;if(ct)(vt=a.y-tt/2)+tt>n.height-G&&(vt=n.height-G-tt),f+Z>vt&&(vt=f+Z);null===(S=this.createFigure(\\"rect\\",{x:dt,y:vt,width:Q,height:tt},{style:t.PolygonType.StrokeFill,color:$,borderColor:q,borderSize:K,borderRadius:U}))||void 0===S||S.draw(e);var gt=dt+K+N+M,ft=vt+K+z;if(d&&D.forEach((function(t){var i,o,n=t.title;null===(i=C.createFigure(\\"text\\",{x:gt,y:ft+=A,text:n.text},{color:n.color,size:L,family:B,weight:R}))||void 0===i||i.draw(e);var r=t.value;null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-k-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:L,family:B,weight:R}))||void 0===o||o.draw(e),ft+=L+F})),p){var mt=dt+K+N+it;ut.forEach((function(t){t.forEach((function(t){var i,o,n=t.title,r=t.value;null===(i=C.createFigure(\\"text\\",{x:mt,y:ft+=nt,text:n.text},{color:n.color,size:at,family:lt,weight:st}))||void 0===i||i.draw(e),null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-ot-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:at,family:lt,weight:st}))||void 0===o||o.draw(e),ft+=at+rt}))}))}}}},i.prototype._getCandleTooltipData=function(e,i,o,a,s,l,u){var c,h,d,p,v,g=u.tooltip,f=g.text.color,m=e.current,y=null!==(h=null===(c=e.prev)||void 0===c?void 0:c.close)&&void 0!==h?h:m.close,_=m.close-y,x=i.price,S=i.volume,C={\\"{time}\\":s.formatDate(o,m.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Tooltip),\\"{open}\\":E(T(m.open,x),l),\\"{high}\\":E(T(m.high,x),l),\\"{low}\\":E(T(m.low,x),l),\\"{close}\\":E(T(m.close,x),l),\\"{volume}\\":E(s.formatBigNumber(T(null!==(d=m.volume)&&void 0!==d?d:g.defaultValue,S)),l),\\"{change}\\":0===y?g.defaultValue:\\"\\".concat(T(_/y*100),\\"%\\")};return(null!==(v=n(g.custom)?null===(p=g.custom)||void 0===p?void 0:p.call(g,e,u):g.custom)&&void 0!==v?v:[{title:\\"time\\",value:\\"{time}\\"},{title:\\"open\\",value:\\"{open}\\"},{title:\\"high\\",value:\\"{high}\\"},{title:\\"low\\",value:\\"{low}\\"},{title:\\"close\\",value:\\"{close}\\"},{title:\\"volume\\",value:\\"{volume}\\"}]).map((function(t){var e,i=t.title,o=t.value,n={text:\\"\\",color:\\"\\"};r(i)?n=k({},i):(n.text=i,n.color=f),n.text=function(t,e){var i,o;return null!==(o=null===(i=Be[e])||void 0===i?void 0:i[t])&&void 0!==o?o:t}(n.text,a);var s={text:g.defaultValue,color:\\"\\"};r(o)?s=k({},o):(s.text=o,s.color=f);var l=s.text.match(/{(\\\\S*)}/);if(null!==l&&l.length>1){var c=\\"{\\".concat(l[1],\\"}\\");s.text=s.text.replace(c,null!==(e=C[c])&&void 0!==e?e:g.defaultValue),\\"{change}\\"===c&&(s.color=0===_?u.priceMark.last.noChangeColor:_>0?u.priceMark.last.upColor:u.priceMark.last.downColor)}return{title:n,value:s}}))},i}(Me),Ve=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o._candleBarView=new Ie(o),o._candleAreaView=new Fe(o),o._candleHighLowPriceView=new Le(o),o._candleLastPriceLineView=new Re(o),o.addChild(o._candleBarView),o}return P(i,e),i.prototype.updateMainContent=function(e){this.getPane().getChart().getStyles().candle.type!==t.CandleType.Area?(this._candleBarView.draw(e),this._candleHighLowPriceView.draw(e)):this._candleAreaView.draw(e),this._candleLastPriceLineView.draw(e)},i.prototype.createTooltipView=function(){return new Oe(this)},i}(Ae),Ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getAxisComponent(),s=this.getAxisStyles(n.getChart().getStyles());if(s.show){s.axisLine.show&&(null===(e=this.createFigure(\\"line\\",this.createAxisLine(r,s),s.axisLine))||void 0===e||e.draw(t));var l=a.getTicks();if(s.tickLine.show)this.createTickLines(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",e,s.tickLine))||void 0===o||o.draw(t)}));if(s.tickText.show)this.createTickTexts(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"text\\",e,s.tickText))||void 0===o||o.draw(t)}))}},e}(Te),We=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.yAxis},e.prototype.createAxisLine=function(t,e){var i,o=this.getWidget().getPane().getAxisComponent(),n=e.axisLine.size;return{coordinates:[{x:i=o.isFromZero()?n/2:t.width-n,y:0},{x:i,y:t.height}]}},e.prototype.createTickLines=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=0,s=0;return o.isFromZero()?(a=0,n.show&&(a+=n.size),s=a+r.length):(a=e.width,n.show&&(a-=n.size),s=a-r.length),t.map((function(t){return{coordinates:[{x:a,y:t.coord},{x:s,y:t.coord}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=i.tickText,s=0;o.isFromZero()?(s=a.marginStart,n.show&&(s+=n.size),r.show&&(s+=r.length)):(s=e.width-a.marginEnd,n.show&&(s-=n.size),r.show&&(s-=r.length));var l=this.getWidget().getPane().getAxisComponent().isFromZero()?\\"left\\":\\"right\\";return t.map((function(t){return{x:s,y:t.coord,text:t.text,align:l,baseline:\\"middle\\"}}))},e}(Ne),ze=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getChart().getChartStore(),s=a.getStyles().candle.priceMark,l=s.last,u=l.text;if(s.show&&l.show&&u.show){var c=a.getPrecision(),h=n.getAxisComponent(),d=a.getDataList(),p=a.getVisibleDataList(),v=d[d.length-1];if(void 0!==v){var g=v.close,f=v.open,m=h.convertToNicePixel(g),y=void 0;y=g>f?l.upColor:f>g?l.downColor:l.noChangeColor;var _=void 0;if(h.getType()===t.YAxisType.Percentage){var x=p[0].data.close;_=\\"\\".concat(((g-x)/x*100).toFixed(2),\\"%\\")}else _=T(g,c.price);_=E(_,a.getThousandsSeparator());var S=void 0,C=void 0;h.isFromZero()?(S=0,C=\\"left\\"):(S=r.width,C=\\"right\\"),null===(i=this.createFigure(\\"text\\",{x:S,y:m,text:_,align:C,baseline:\\"middle\\"},k(k({},u),{backgroundColor:y})))||void 0===i||i.draw(e)}}},i}(Te),Ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getCustomApi(),l=r.getStyles().indicator,u=l.lastValueMark,c=u.text;if(u.show){var h=o.getAxisComponent(),d=r.getDataList(),p=d.length-1,v=r.getIndicatorStore().getInstances(o.getId()),g=r.getThousandsSeparator();v.forEach((function(i){var o=i.result[p];if(void 0!==o&&i.visible){var r=i.precision;ot(d,i,p,l,(function(l,u){var d,p=o[l.key];if(s(p)){var v=h.convertToNicePixel(p),f=T(p,r);i.shouldFormatBigNumber&&(f=a.formatBigNumber(f)),f=E(f,g);var m=void 0,y=void 0;h.isFromZero()?(m=0,y=\\"left\\"):(m=n.width,y=\\"right\\"),null===(d=e.createFigure(\\"text\\",{x:m,y:v,text:f,align:y,baseline:\\"middle\\"},k(k({},c),{backgroundColor:u.color})))||void 0===d||d.draw(t)}}))}}))}},e}(Te),Xe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!1},e.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){this.drawFigures(t,e,this.getDefaultFigures(e,i,o,n,r,a,s,u,c,d),l)},e.prototype.getDefaultFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h,d=[];if(t.needDefaultYAxisFigure&&t.id===(null===(c=u.instance)||void 0===c?void 0:c.id)&&u.paneId===this.getWidget().getPane().getId()){var p,v,g=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;null!==(h=null==l?void 0:l.isFromZero())&&void 0!==h&&h?(p=\\"left\\",v=0):(p=\\"right\\",v=i.width),e.forEach((function(e,i){var n=t.points[i];if(void 0!==n.value){g=Math.min(g,e.y),f=Math.max(f,e.y);var r=E(T(n.value,o.price),a);d.push({type:\\"text\\",attrs:{x:v,y:e.y,text:r,align:p,baseline:\\"middle\\"},ignoreEvent:!0})}})),e.length>1&&d.unshift({type:\\"rect\\",attrs:{x:0,y:g,width:i.width,height:f-g},ignoreEvent:!0})}return d},e.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createYAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},e}(ke),He=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=i.getPane().getChart().getChartStore(),a=r.getTooltipStore().getCrosshair(),s=r.getStyles().crosshair;if(void 0!==a.paneId&&this.compare(a,o.getId())&&s.show){var l=this.getDirectionStyles(s),u=l.text;if(l.show&&u.show){var c=o.getAxisComponent(),h=this.getText(a,r,c);t.font=H(u.size,u.weight,u.family),null===(e=this.createFigure(\\"text\\",this.getTextAttrs(h,t.measureText(h).width,a,n,c,u),u))||void 0===e||e.draw(t)}}},i.prototype.compare=function(t,e){return t.paneId===e},i.prototype.getDirectionStyles=function(t){return t.horizontal},i.prototype.getText=function(e,i,o){var n,r,a,s=o,l=o.convertFromPixel(e.y);if(s.getType()===t.YAxisType.Percentage){var u=null!==(r=null===(n=i.getVisibleDataList()[0])||void 0===n?void 0:n.data)&&void 0!==r?r:{};a=\\"\\".concat(((l-u.close)/u.close*100).toFixed(2),\\"%\\")}else{var c=i.getIndicatorStore().getInstances(e.paneId),h=0,d=!1;s.isInCandle()?h=i.getPrecision().price:c.forEach((function(t){h=Math.max(t.precision,h),d||(d=t.shouldFormatBigNumber)})),a=T(l,h),d&&(a=i.getCustomApi().formatBigNumber(a))}return E(a,i.getThousandsSeparator())},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s;return n.isFromZero()?(a=0,s=\\"left\\"):(a=o.width,s=\\"right\\"),{x:a,y:i.y,text:t,align:s,baseline:\\"middle\\"}},i}(Te),je=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._yAxisView=new We(o),o._candleLastPriceLabelView=new ze(o),o._indicatorLastValueView=new Ye(o),o._overlayYAxisView=new Xe(o),o._crosshairHorizontalLabelView=new He(o),o.getContainer().style.cursor=\\"ns-resize\\",o.addChild(o._overlayYAxisView),o}return P(e,t),e.prototype.getName=function(){return Xt},e.prototype.updateMain=function(t){this._yAxisView.draw(t),this.getPane().getAxisComponent().isInCandle()&&this._candleLastPriceLabelView.draw(t),this._indicatorLastValueView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayYAxisView.draw(t),this._crosshairHorizontalLabelView.draw(t)},e}(ne),Ze=function(){function t(t){this._extremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._prevExtremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._ticks=[],this._autoCalcTickFlag=!0,this._parent=t}return t.prototype.getParent=function(){return this._parent},t.prototype.buildTicks=function(t){return this._autoCalcTickFlag&&(this._extremum=this.calcExtremum()),!(this._prevExtremum.min===this._extremum.min&&this._prevExtremum.max===this._extremum.max&&!t)&&(this._prevExtremum=this._extremum,this._ticks=this.optimalTicks(this._calcTicks()),!0)},t.prototype.getTicks=function(){return this._ticks},t.prototype.getScrollZoomEnabled=function(){var t;return null===(t=this.getParent().getOptions().axisOptions.scrollZoomEnabled)||void 0===t||t},t.prototype.setExtremum=function(t){this._autoCalcTickFlag=!1,this._extremum=t},t.prototype.getExtremum=function(){return this._extremum},t.prototype.setAutoCalcTickFlag=function(t){this._autoCalcTickFlag=t},t.prototype.getAutoCalcTickFlag=function(){return this._autoCalcTickFlag},t.prototype._calcTicks=function(){var t=this._extremum,e=t.realMin,i=t.realMax,o=t.realRange,n=[];if(o>=0){var r=R(this._calcTickInterval(o),2),a=r[0],s=r[1],l=G(Math.ceil(e/a)*a,s),u=G(Math.floor(i/a)*a,s),c=0,h=l;if(0!==a)for(;u>=h;){var d=h.toFixed(s);n[c]={text:d,coord:0,value:d},++c,h+=a}}return n},t.prototype._calcTickInterval=function(t){var e,i,o,n,r=(i=Math.floor(U(e=t/8)),o=q(i),e=(1.5>(n=e/o)?1:2.5>n?2:3.5>n?3:4.5>n?4:5.5>n?5:6.5>n?6:8)*o,-20>i?e:+e.toFixed(0>i?-i:0)),a=function(t){var e=\\"\\"+t,i=e.indexOf(\\"e\\");if(i>0){var o=+e.slice(i+1);return 0>o?-o:0}var n=e.indexOf(\\".\\");return 0>n?0:e.length-1-n}(r);return[r,a]},t}(),Ge=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var e,i,o,n,r,a=this.getParent(),l=a.getChart(),u=l.getChartStore(),c=Number.MAX_SAFE_INTEGER,h=Number.MIN_SAFE_INTEGER,d=[],p=!1,v=Number.MAX_SAFE_INTEGER,g=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER;u.getIndicatorStore().getInstances(a.getId()).forEach((function(t){var e,i,o;p||(p=null!==(e=t.shouldOhlc)&&void 0!==e&&e),f=Math.min(f,t.precision),null!==t.minValue&&(v=Math.min(v,t.minValue)),null!==t.maxValue&&(g=Math.max(g,t.maxValue)),d.push({figures:null!==(i=t.figures)&&void 0!==i?i:[],result:null!==(o=t.result)&&void 0!==o?o:[]})}));var m=4,y=this.isInCandle();if(y){var _=u.getPrecision().price;m=f!==Number.MAX_SAFE_INTEGER?Math.min(f,_):_}else f!==Number.MAX_SAFE_INTEGER&&(m=f);var x=u.getVisibleDataList(),S=l.getStyles().candle,C=S.type===t.CandleType.Area,b=S.area.value,T=y&&!C||!y&&p;x.forEach((function(t){var e=t.dataIndex,i=t.data;if(T&&(c=Math.min(c,i.low),h=Math.max(h,i.high)),y&&C){var o=i[b];c=Math.min(c,o),h=Math.max(h,o)}d.forEach((function(t){var i,o=null!==(i=t.result[e])&&void 0!==i?i:{};t.figures.forEach((function(t){var e=o[t.key];s(e)&&(c=Math.min(c,e),h=Math.max(h,e))}))}))})),c!==Number.MAX_SAFE_INTEGER&&h!==Number.MIN_SAFE_INTEGER?(c=Math.min(v,c),h=Math.max(g,h)):(c=0,h=10);var w,E=this.getType();switch(E){case t.YAxisType.Percentage:var I=null===(e=x[0])||void 0===e?void 0:e.data;void 0!==(null==I?void 0:I.close)&&(c=(c-I.close)/I.close*100,h=(h-I.close)/I.close*100),w=.01;break;case t.YAxisType.Log:c=U(c),h=U(h),w=.05*q(-m);break;default:w=q(-m)}if(c===h||w>Math.abs(c-h)){var D=v===c,P=g===h;c=D?c:P?c-8*w:c-4*w,h=P?h:D?h+8*w:h+4*w}var M=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,k=a.getOptions().gap,A=null!==(n=null==k?void 0:k.top)&&void 0!==n?n:.2;1>A||(A/=M);var F=null!==(r=null==k?void 0:k.bottom)&&void 0!==r?r:.1;1>F||(F/=M);var L,R,B,O=Math.abs(h-c);return O=Math.abs((h+=O*A)-(c-=O*F)),E===t.YAxisType.Log?(L=q(c),R=q(h),B=Math.abs(R-L)):(L=c,R=h,B=O),{min:c,max:h,range:O,realMin:L,realMax:R,realRange:B}},i.prototype._innerConvertToPixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.getExtremum(),r=(t-n.min)/n.range;return this.isReverse()?Math.round(r*o):Math.round((1-r)*o)},i.prototype.isInCandle=function(){return\\"candle\\"===this.getParent().getName()},i.prototype.getType=function(){return this.isInCandle()?this.getParent().getChart().getStyles().yAxis.type:t.YAxisType.Normal},i.prototype.getPosition=function(){return this.getParent().getChart().getStyles().yAxis.position},i.prototype.isReverse=function(){return!!this.isInCandle()&&this.getParent().getChart().getStyles().yAxis.reverse},i.prototype.isFromZero=function(){var e=this.getParent().getChart().getStyles().yAxis,i=e.inside;return e.position===t.YAxisPosition.Left&&i||e.position===t.YAxisPosition.Right&&!i},i.prototype.optimalTicks=function(e){var i,o,n=this,r=this.getParent(),a=null!==(o=null===(i=r.getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,s=r.getChart().getChartStore(),l=s.getCustomApi(),u=[],c=this.getType(),h=s.getIndicatorStore().getInstances(r.getId()),d=s.getThousandsSeparator(),p=0,v=!1;this.isInCandle()?p=s.getPrecision().price:h.forEach((function(t){p=Math.max(p,t.precision),v||(v=t.shouldFormatBigNumber)}));var g,f=s.getStyles().xAxis.tickText.size;return e.forEach((function(e){var i,o=e.value,r=n._innerConvertToPixel(+o);switch(c){case t.YAxisType.Percentage:i=\\"\\".concat(T(o,2),\\"%\\");break;case t.YAxisType.Log:r=n._innerConvertToPixel(U(+o)),i=T(o,p);break;default:i=T(o,p),v&&(i=l.formatBigNumber(o))}i=E(i,d),r>f&&a-f>r&&(void 0!==g&&Math.abs(g-r)>2*f||void 0===g)&&(u.push({text:i,coord:r,value:o}),g=r)})),u},i.prototype.getAutoSize=function(){var e=this.getParent(),i=e.getChart(),o=i.getStyles(),n=o.yAxis,r=n.size;if(\\"auto\\"!==r)return r;var a=i.getChartStore(),s=a.getCustomApi(),l=0;if(n.show&&(n.axisLine.show&&(l+=n.axisLine.size),n.tickLine.show&&(l+=n.tickLine.length),n.tickText.show)){var u=0;this.getTicks().forEach((function(t){u=Math.max(u,j(t.text,n.tickText.size,n.tickText.weight,n.tickText.family))})),l+=n.tickText.marginStart+n.tickText.marginEnd+u}var c=o.crosshair,h=0;if(c.show&&c.horizontal.show&&c.horizontal.text.show){var d=a.getIndicatorStore().getInstances(e.getId()),p=0,v=!1;d.forEach((function(t){p=Math.max(t.precision,p),v||(v=t.shouldFormatBigNumber)}));var g=2;if(this.getType()!==t.YAxisType.Percentage)if(this.isInCandle()){var f=a.getPrecision().price,m=o.indicator.lastValueMark;g=m.show&&m.text.show?Math.max(p,f):f}else g=p;var y=T(this.getExtremum().max,g);v&&(y=s.formatBigNumber(y)),h+=c.horizontal.text.paddingLeft+c.horizontal.text.paddingRight+2*c.horizontal.text.borderSize+j(y,c.horizontal.text.size,c.horizontal.text.weight,c.horizontal.text.family)}return Math.max(l,h)},i.prototype.convertFromPixel=function(e){var i,o,n,r=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,a=this.getExtremum(),s=a.min,l=a.range,u=(this.isReverse()?e/r:1-e/r)*l+s;switch(this.getType()){case t.YAxisType.Percentage:var c=null===(n=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===n?void 0:n.data;return void 0!==(null==c?void 0:c.close)?c.close*u/100+c.close:0;case t.YAxisType.Log:return q(u);default:return u}},i.prototype.convertToRealValue=function(e){var i=e;return this.getType()===t.YAxisType.Log&&(i=q(e)),i},i.prototype.convertToPixel=function(e){var i,o=e;switch(this.getType()){case t.YAxisType.Percentage:var n=null===(i=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===i?void 0:i.data;void 0!==(null==n?void 0:n.close)&&(o=(e-n.close)/n.close*100);break;case t.YAxisType.Log:o=U(e);break;default:o=e}return this._innerConvertToPixel(o)},i.prototype.convertToNicePixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.convertToPixel(t);return Math.round(Math.max(.05*o,Math.min(n,.98*o)))},i}(Ze),Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"indicator\\"},e.prototype.createAxisComponent=function(){return new Ge(this)},e.prototype.createMainWidget=function(t){return new Ae(t,this)},e.prototype.createSeparatorWidget=function(t){return new Zt(t,this)},e.prototype.createYAxisWidget=function(t){return new je(t,this)},e}(Ut),Ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"candle\\"},e.prototype.createMainWidget=function(t){return new Ve(t,this)},e.prototype.createSeparatorWidget=function(){return null},e}(Ke),qe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.xAxis},e.prototype.createAxisLine=function(t,e){var i=e.axisLine.size/2;return{coordinates:[{x:0,y:i},{x:t.width,y:i}]}},e.prototype.createTickLines=function(t,e,i){var o=i.tickLine,n=i.axisLine.size;return t.map((function(t){return{coordinates:[{x:t.coord,y:0},{x:t.coord,y:n+o.length}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=i.tickText,n=i.axisLine.size,r=i.tickLine.length;return t.map((function(t){return{x:t.coord,y:n+r+o.marginStart,text:t.text,align:\\"center\\",baseline:\\"top\\"}}))},e}(Ne),$e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.coordinateToPointValueFlag=function(){return!1},i.prototype.getCompleteOverlays=function(t){return t.getInstances()},i.prototype.getProgressOverlay=function(t){return t.instance},i.prototype.getDefaultFigures=function(e,i,o,n,r,a,s,l,u,c){var h,d=[];if(e.needDefaultXAxisFigure&&e.id===(null===(h=c.instance)||void 0===h?void 0:h.id)){var p=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER;i.forEach((function(i,o){p=Math.min(p,i.x),v=Math.max(v,i.x);var n=e.points[o];if(void 0!==n.timestamp){var s=a.formatDate(r,n.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair);d.push({type:\\"text\\",attrs:{x:i.x,y:0,text:s,align:\\"center\\"},ignoreEvent:!0})}})),i.length>1&&d.unshift({type:\\"rect\\",attrs:{x:p,y:0,width:v-p,height:o.height},ignoreEvent:!0})}return d},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createXAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i}(Xe),Je=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.compare=function(t){return void 0!==t.kLineData&&t.dataIndex===t.realDataIndex},i.prototype.getDirectionStyles=function(t){return t.vertical},i.prototype.getText=function(e,i){var o,n=null===(o=e.kLineData)||void 0===o?void 0:o.timestamp;return i.getCustomApi().formatDate(i.getTimeScaleStore().getDateTimeFormat(),n,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair)},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s=i.realX,l=\\"center\\";return 0>s-e/2-r.paddingLeft?(a=0,l=\\"left\\"):s+e/2+r.paddingRight>o.width?(a=o.width,l=\\"right\\"):a=s,{x:a,y:0,text:t,align:l,baseline:\\"top\\"}},i}(He),Qe=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._xAxisView=new qe(o),o._overlayXAxisView=new $e(o),o._crosshairVerticalLabelView=new Je(o),o.getContainer().style.cursor=\\"ew-resize\\",o.addChild(o._overlayXAxisView),o}return P(e,t),e.prototype.getName=function(){return Yt},e.prototype.updateMain=function(t){this._xAxisView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayXAxisView.draw(t),this._crosshairVerticalLabelView.draw(t)},e}(ne),ti=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var t=this.getParent().getChart().getChartStore().getTimeScaleStore().getVisibleRange(),e=t.from,i=t.to,o=i-1,n=i-e;return{min:e,max:o,range:n,realMin:e,realMax:o,realRange:n}},i.prototype.optimalTicks=function(e){var i,o,n=this.getParent().getChart(),r=n.getChartStore(),a=r.getCustomApi().formatDate,s=[],l=e.length,u=r.getDataList();if(l>0){var c=r.getTimeScaleStore().getDateTimeFormat(),h=n.getStyles().xAxis.tickText,d=j(\\"00-00 00:00\\",h.size,h.weight,h.family),p=this.convertToPixel(parseInt(e[0].value,10)),v=1;if(l>1){var g=this.convertToPixel(parseInt(e[1].value,10)),f=Math.abs(g-p);d>f&&(v=Math.ceil(d/f))}for(var m=0;l>m;m+=v){var y=parseInt(e[m].value,10),_=u[y].timestamp,x=a(c,_,\\"HH:mm\\",t.FormatDateType.XAxis);if(0!==m)x=null!==(i=this._optimalTickLabel(a,c,_,u[parseInt(e[m-v].value,10)].timestamp))&&void 0!==i?i:x;var S=this.convertToPixel(y);s.push({text:x,coord:S,value:_})}if(1===s.length)s[0].text=a(c,s[0].value,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.XAxis);else{var C=s[0].value,b=s[1].value;if(void 0!==s[2]){var T=s[2].text;/^[0-9]{2}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"MM-DD\\",t.FormatDateType.XAxis):/^[0-9]{4}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"YYYY-MM\\",t.FormatDateType.XAxis):/^[0-9]{4}$/.test(T)&&(s[0].text=a(c,C,\\"YYYY\\",t.FormatDateType.XAxis))}else s[0].text=null!==(o=this._optimalTickLabel(a,c,C,b))&&void 0!==o?o:s[0].text}}return s},i.prototype._optimalTickLabel=function(e,i,o,n){var r=e(i,o,\\"YYYY\\",t.FormatDateType.XAxis),a=e(i,o,\\"YYYY-MM\\",t.FormatDateType.XAxis),s=e(i,o,\\"MM-DD\\",t.FormatDateType.XAxis);return r!==e(i,n,\\"YYYY\\",t.FormatDateType.XAxis)?r:a!==e(i,n,\\"YYYY-MM\\",t.FormatDateType.XAxis)?a:s!==e(i,n,\\"MM-DD\\",t.FormatDateType.XAxis)?s:null},i.prototype.getAutoSize=function(){var t=this.getParent().getChart().getStyles(),e=t.xAxis,i=e.size;if(\\"auto\\"!==i)return i;var o=t.crosshair,n=0;e.show&&(e.axisLine.show&&(n+=e.axisLine.size),e.tickLine.show&&(n+=e.tickLine.length),e.tickText.show&&(n+=e.tickText.marginStart+e.tickText.marginEnd+e.tickText.size));var r=0;return o.show&&o.vertical.show&&o.vertical.text.show&&(r+=o.vertical.text.paddingTop+o.vertical.text.paddingBottom+2*o.vertical.text.borderSize+o.vertical.text.size),Math.max(n,r)},i.prototype.convertTimestampFromPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.coordinateToDataIndex(t);return e.dataIndexToTimestamp(i)},i.prototype.convertTimestampToPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.timestampToDataIndex(t);return e.dataIndexToCoordinate(i)},i.prototype.convertFromPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().coordinateToDataIndex(t)},i.prototype.convertToPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().dataIndexToCoordinate(t)},i}(Ze),ei=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"xAxis\\"},e.prototype.createAxisComponent=function(){return new ti(this)},e.prototype.createMainWidget=function(t){return new Qe(t,this)},e}(Ut);function ii(){var t;return\\"undefined\\"!=typeof window&&(null!==(t=window.navigator.userAgent.toLowerCase().indexOf(\\"firefox\\"))&&void 0!==t?t:-1)>-1}function oi(){return\\"undefined\\"!=typeof window&&/iPhone|iPad|iPod/.test(window.navigator.platform)}var ni,ri=function(){function t(t,e,i){var o=this;this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0},this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0},this._longTapTimeoutId=null,this._longTapActive=!1,this._mouseMoveStartCoordinate=null,this._touchMoveStartCoordinate=null,this._touchMoveExceededManhattanDistance=!1,this._cancelClick=!1,this._cancelTap=!1,this._unsubscribeOutsideMouseEvents=null,this._unsubscribeOutsideTouchEvents=null,this._unsubscribeMobileSafariEvents=null,this._unsubscribeMousemove=null,this._unsubscribeMouseWheel=null,this._unsubscribeContextMenu=null,this._unsubscribeRootMouseEvents=null,this._unsubscribeRootTouchEvents=null,this._startPinchMiddleCoordinate=null,this._startPinchDistance=0,this._pinchPrevented=!1,this._preventTouchDragProcess=!1,this._mousePressed=!1,this._lastTouchEventTimeStamp=0,this._activeTouchId=null,this._acceptMouseLeave=!oi(),this._onFirefoxOutsideMouseUp=function(t){o._mouseUpHandler(t)},this._onMobileSafariDoubleClick=function(t){o._firesTouchEvents(t)?(++o._tapCount,null!==o._tapTimeoutId&&o._tapCount>1&&(30>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._tapCoordinate).manhattanDistance&&!o._cancelTap&&o._processEvent(o._makeCompatEvent(t),o._handler.doubleTapEvent),o._resetTapTimeout())):(++o._clickCount,null!==o._clickTimeoutId&&o._clickCount>1&&(5>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._clickCoordinate).manhattanDistance&&!o._cancelClick&&o._processEvent(o._makeCompatEvent(t),o._handler.mouseDoubleClickEvent),o._resetClickTimeout()))},this._target=t,this._handler=e,this._options=i,this._init()}return t.prototype.destroy=function(){null!==this._unsubscribeOutsideMouseEvents&&(this._unsubscribeOutsideMouseEvents(),this._unsubscribeOutsideMouseEvents=null),null!==this._unsubscribeOutsideTouchEvents&&(this._unsubscribeOutsideTouchEvents(),this._unsubscribeOutsideTouchEvents=null),null!==this._unsubscribeMousemove&&(this._unsubscribeMousemove(),this._unsubscribeMousemove=null),null!==this._unsubscribeMouseWheel&&(this._unsubscribeMouseWheel(),this._unsubscribeMouseWheel=null),null!==this._unsubscribeContextMenu&&(this._unsubscribeContextMenu(),this._unsubscribeContextMenu=null),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null),null!==this._unsubscribeMobileSafariEvents&&(this._unsubscribeMobileSafariEvents(),this._unsubscribeMobileSafariEvents=null),this._clearLongTapTimeout(),this._resetClickTimeout()},t.prototype._mouseEnterHandler=function(t){var e,i,o,n=this;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this);var r=this._mouseMoveHandler.bind(this);this._unsubscribeMousemove=function(){n._target.removeEventListener(\\"mousemove\\",r)},this._target.addEventListener(\\"mousemove\\",r);var a=this._mouseWheelHandler.bind(this);this._unsubscribeMouseWheel=function(){n._target.removeEventListener(\\"wheel\\",a)},this._target.addEventListener(\\"wheel\\",a,{passive:!1});var s=this._contextMenuHandler.bind(this);this._unsubscribeContextMenu=function(){n._target.removeEventListener(\\"contextmenu\\",s)},this._target.addEventListener(\\"contextmenu\\",s,{passive:!1}),this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseEnterEvent),this._acceptMouseLeave=!0)},t.prototype._resetClickTimeout=function(){null!==this._clickTimeoutId&&clearTimeout(this._clickTimeoutId),this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0}},t.prototype._resetTapTimeout=function(){null!==this._tapTimeoutId&&clearTimeout(this._tapTimeoutId),this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0}},t.prototype._mouseMoveHandler=function(t){this._mousePressed||null!==this._touchMoveStartCoordinate||this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseMoveEvent),this._acceptMouseLeave=!0)},t.prototype._mouseWheelHandler=function(t){if(Math.abs(t.deltaX)>Math.abs(t.deltaY)){if(void 0===this._handler.mouseWheelHortEvent)return;if(this._preventDefault(t),0===Math.abs(t.deltaX))return;this._handler.mouseWheelHortEvent(this._makeCompatEvent(t),-t.deltaX)}else{if(void 0===this._handler.mouseWheelVertEvent)return;var e=-t.deltaY/100;if(0===e)return;switch(this._preventDefault(t),t.deltaMode){case t.DOM_DELTA_PAGE:e*=120;break;case t.DOM_DELTA_LINE:e*=32}if(0!==e){var i=Math.sign(e)*Math.min(1,Math.abs(e));this._handler.mouseWheelVertEvent(this._makeCompatEvent(t),i)}}},t.prototype._contextMenuHandler=function(t){this._preventDefault(t)},t.prototype._touchMoveHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null!==e&&(this._lastTouchEventTimeStamp=this._eventTimeStamp(t),null===this._startPinchMiddleCoordinate&&!this._preventTouchDragProcess)){this._pinchPrevented=!0;var i=this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._touchMoveStartCoordinate),o=i.yOffset;if(this._touchMoveExceededManhattanDistance||i.manhattanDistance>=5){if(!this._touchMoveExceededManhattanDistance){var n=.5*i.xOffset,r=o>=n&&!this._options.treatVertDragAsPageScroll(),a=n>o&&!this._options.treatHorzDragAsPageScroll();r||a||(this._preventTouchDragProcess=!0),this._touchMoveExceededManhattanDistance=!0,this._cancelTap=!0,this._clearLongTapTimeout(),this._resetTapTimeout()}this._preventTouchDragProcess||this._processEvent(this._makeCompatEvent(t,e),this._handler.touchMoveEvent)}}},t.prototype._mouseMoveWithDownHandler=function(t){0===t.button&&(5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._mouseMoveStartCoordinate).manhattanDistance||(this._cancelClick=!0,this._resetClickTimeout()),this._cancelClick&&this._processEvent(this._makeCompatEvent(t),this._handler.pressedMouseMoveEvent))},t.prototype._mouseTouchMoveWithDownInfo=function(t,e){var i=Math.abs(e.x-t.x),o=Math.abs(e.y-t.y);return{xOffset:i,yOffset:o,manhattanDistance:i+o}},t.prototype._touchEndHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null===e&&0===t.touches.length&&(e=t.changedTouches[0]),null!==e){this._activeTouchId=null,this._lastTouchEventTimeStamp=this._eventTimeStamp(t),this._clearLongTapTimeout(),this._touchMoveStartCoordinate=null,null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var i=this._makeCompatEvent(t,e);if(this._processEvent(i,this._handler.touchEndEvent),++this._tapCount,null!==this._tapTimeoutId&&this._tapCount>1)30>this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._tapCoordinate).manhattanDistance&&!this._cancelTap&&this._processEvent(i,this._handler.doubleTapEvent),this._resetTapTimeout();else this._cancelTap||(this._processEvent(i,this._handler.tapEvent),void 0!==this._handler.tapEvent&&this._preventDefault(t));0===this._tapCount&&this._preventDefault(t),0===t.touches.length&&this._longTapActive&&(this._longTapActive=!1,this._preventDefault(t))}},t.prototype._mouseUpHandler=function(t){if(0===t.button){var e=this._makeCompatEvent(t);if(this._mouseMoveStartCoordinate=null,this._mousePressed=!1,null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),ii())this._target.ownerDocument.documentElement.removeEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp);if(!this._firesTouchEvents(t))if(this._processEvent(e,this._handler.mouseUpEvent),++this._clickCount,null!==this._clickTimeoutId&&this._clickCount>1)5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._clickCoordinate).manhattanDistance&&!this._cancelClick&&this._processEvent(e,this._handler.mouseDoubleClickEvent),this._resetClickTimeout();else this._cancelClick||this._processEvent(e,this._handler.mouseClickEvent)}},t.prototype._clearLongTapTimeout=function(){null!==this._longTapTimeoutId&&(clearTimeout(this._longTapTimeoutId),this._longTapTimeoutId=null)},t.prototype._touchStartHandler=function(t){if(null===this._activeTouchId){var e=t.changedTouches[0];this._activeTouchId=e.identifier,this._lastTouchEventTimeStamp=this._eventTimeStamp(t);var i=this._target.ownerDocument.documentElement;this._cancelTap=!1,this._touchMoveExceededManhattanDistance=!1,this._preventTouchDragProcess=!1,this._touchMoveStartCoordinate=this._getCoordinate(e),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var o=this._touchMoveHandler.bind(this),n=this._touchEndHandler.bind(this);this._unsubscribeRootTouchEvents=function(){i.removeEventListener(\\"touchmove\\",o),i.removeEventListener(\\"touchend\\",n)},i.addEventListener(\\"touchmove\\",o,{passive:!1}),i.addEventListener(\\"touchend\\",n,{passive:!1}),this._clearLongTapTimeout(),this._longTapTimeoutId=setTimeout(this._longTapHandler.bind(this,t),500),this._processEvent(this._makeCompatEvent(t,e),this._handler.touchStartEvent),null===this._tapTimeoutId&&(this._tapCount=0,this._tapTimeoutId=setTimeout(this._resetTapTimeout.bind(this),500),this._tapCoordinate=this._getCoordinate(e))}},t.prototype._mouseDownHandler=function(t){if(2===t.button)return this._preventDefault(t),void this._processEvent(this._makeCompatEvent(t),this._handler.mouseRightClickEvent);if(0===t.button){var e=this._target.ownerDocument.documentElement;ii()&&e.addEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp),this._cancelClick=!1,this._mouseMoveStartCoordinate=this._getCoordinate(t),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null);var i=this._mouseMoveWithDownHandler.bind(this),o=this._mouseUpHandler.bind(this);this._unsubscribeRootMouseEvents=function(){e.removeEventListener(\\"mousemove\\",i),e.removeEventListener(\\"mouseup\\",o)},e.addEventListener(\\"mousemove\\",i),e.addEventListener(\\"mouseup\\",o),this._mousePressed=!0,this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseDownEvent),null===this._clickTimeoutId&&(this._clickCount=0,this._clickTimeoutId=setTimeout(this._resetClickTimeout.bind(this),500),this._clickCoordinate=this._getCoordinate(t)))}},t.prototype._init=function(){var t=this;this._target.addEventListener(\\"mouseenter\\",this._mouseEnterHandler.bind(this)),this._target.addEventListener(\\"touchcancel\\",this._clearLongTapTimeout.bind(this));var e=this._target.ownerDocument,i=function(e){null!=t._handler.mouseDownOutsideEvent&&(e.composed&&t._target.contains(e.composedPath()[0])||null!==e.target&&t._target.contains(e.target)||t._handler.mouseDownOutsideEvent({x:0,y:0,pageX:0,pageY:0}))};this._unsubscribeOutsideTouchEvents=function(){e.removeEventListener(\\"touchstart\\",i)},this._unsubscribeOutsideMouseEvents=function(){e.removeEventListener(\\"mousedown\\",i)},e.addEventListener(\\"mousedown\\",i),e.addEventListener(\\"touchstart\\",i,{passive:!0}),oi()&&(this._unsubscribeMobileSafariEvents=function(){t._target.removeEventListener(\\"dblclick\\",t._onMobileSafariDoubleClick)},this._target.addEventListener(\\"dblclick\\",this._onMobileSafariDoubleClick)),this._target.addEventListener(\\"mouseleave\\",this._mouseLeaveHandler.bind(this)),this._target.addEventListener(\\"touchstart\\",this._touchStartHandler.bind(this),{passive:!0}),this._target.addEventListener(\\"mousedown\\",(function(t){if(1===t.button)return t.preventDefault(),!1})),this._target.addEventListener(\\"mousedown\\",this._mouseDownHandler.bind(this)),this._initPinch(),this._target.addEventListener(\\"touchmove\\",(function(){}),{passive:!1})},t.prototype._initPinch=function(){var t=this;void 0===this._handler.pinchStartEvent&&void 0===this._handler.pinchEvent&&void 0===this._handler.pinchEndEvent||(this._target.addEventListener(\\"touchstart\\",(function(e){return t._checkPinchState(e.touches)}),{passive:!0}),this._target.addEventListener(\\"touchmove\\",(function(e){if(2===e.touches.length&&null!==t._startPinchMiddleCoordinate&&void 0!==t._handler.pinchEvent){var i=t._getTouchDistance(e.touches[0],e.touches[1])/t._startPinchDistance;t._handler.pinchEvent(k(k({},t._startPinchMiddleCoordinate),{pageX:0,pageY:0}),i),t._preventDefault(e)}}),{passive:!1}),this._target.addEventListener(\\"touchend\\",(function(e){t._checkPinchState(e.touches)})))},t.prototype._checkPinchState=function(t){1===t.length&&(this._pinchPrevented=!1),2!==t.length||this._pinchPrevented||this._longTapActive?this._stopPinch():this._startPinch(t)},t.prototype._startPinch=function(t){var e,i=null!==(e=this._target.getBoundingClientRect())&&void 0!==e?e:{left:0,top:0};this._startPinchMiddleCoordinate={x:(t[0].clientX-i.left+(t[1].clientX-i.left))/2,y:(t[0].clientY-i.top+(t[1].clientY-i.top))/2},this._startPinchDistance=this._getTouchDistance(t[0],t[1]),void 0!==this._handler.pinchStartEvent&&this._handler.pinchStartEvent({x:0,y:0,pageX:0,pageY:0}),this._clearLongTapTimeout()},t.prototype._stopPinch=function(){null!==this._startPinchMiddleCoordinate&&(this._startPinchMiddleCoordinate=null,void 0!==this._handler.pinchEndEvent&&this._handler.pinchEndEvent({x:0,y:0,pageX:0,pageY:0}))},t.prototype._mouseLeaveHandler=function(t){var e,i,o;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this),this._firesTouchEvents(t)||this._acceptMouseLeave&&(this._processEvent(this._makeCompatEvent(t),this._handler.mouseLeaveEvent),this._acceptMouseLeave=!oi())},t.prototype._longTapHandler=function(t){var e=this._touchWithId(t.touches,this._activeTouchId);null!==e&&(this._processEvent(this._makeCompatEvent(t,e),this._handler.longTapEvent),this._cancelTap=!0,this._longTapActive=!0)},t.prototype._firesTouchEvents=function(t){var e;return void 0!==(null===(e=t.sourceCapabilities)||void 0===e?void 0:e.firesTouchEvents)?t.sourceCapabilities.firesTouchEvents:this._eventTimeStamp(t)i;++i)if(t[i].identifier===e)return t[i];return null},t}(),ai=function(){function t(t,e){var i=this;this._flingStartTime=(new Date).getTime(),this._flingScrollRequestId=null,this._startScrollCoordinate=null,this._touchCoordinate=null,this._touchCancelCrosshair=!1,this._touchZoomed=!1,this._pinchScale=1,this._mouseDownWidget=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,this._mouseMoveTriggerWidgetInfo={pane:null,widget:null},this._boundKeyBoardDownEvent=function(t){if(t.shiftKey)switch(t.code){case\\"Equal\\":i._chart.getChartStore().getTimeScaleStore().zoom(.5);break;case\\"Minus\\":i._chart.getChartStore().getTimeScaleStore().zoom(-.5);break;case\\"ArrowLeft\\":(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(-3*e.getBarSpace().bar);break;case\\"ArrowRight\\":var e;(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(3*e.getBarSpace().bar)}},this._container=t,this._chart=e,this._event=new ri(t,this,{treatVertDragAsPageScroll:function(){return!1},treatHorzDragAsPageScroll:function(){return!1}}),t.addEventListener(\\"keydown\\",this._boundKeyBoardDownEvent)}return t.prototype.pinchStartEvent=function(){return this._touchZoomed=!0,this._pinchScale=1,!0},t.prototype.pinchEvent=function(t,e){var i=this._findWidgetByEvent(t),o=i.pane,n=i.widget;if((null==o?void 0:o.getId())!==Kt.XAXIS&&(null==n?void 0:n.getName())===zt){var r=this._makeWidgetEvent(t,n),a=5*(e-this._pinchScale);return this._pinchScale=e,this._chart.getChartStore().getTimeScaleStore().zoom(a,{x:r.x,y:r.y}),!0}return!1},t.prototype.mouseWheelHortEvent=function(t,e){var i=this._chart.getChartStore().getTimeScaleStore();return i.startScroll(),i.scroll(e),!0},t.prototype.mouseWheelVertEvent=function(t,e){var i,o,n=this._findWidgetByEvent(t).widget,r=null!==(i=t.isTouch)&&void 0!==i&&i,a=this._makeWidgetEvent(t,n),s=null,l=null==n?void 0:n.getName();if(r)if(l===zt||l===Yt)s={x:a.x,y:a.y};else{var u=null===(o=this._chart.getPaneById(Kt.CANDLE))||void 0===o?void 0:o.getBounding();s={x:u.width/2,y:u.height/2}}else l===zt&&(s={x:a.x,y:a.y});return null!==s&&(this._chart.getChartStore().getTimeScaleStore().zoom(e,{x:a.x,y:a.y}),!0)},t.prototype.mouseDownEvent=function(t){var e,i,o=this._findWidgetByEvent(t),n=o.pane,r=o.widget;if(this._mouseDownWidget=r,null!==r){var a=this._makeWidgetEvent(t,r);switch(r.getName()){case Ht:return r.dispatchEvent(\\"mouseDownEvent\\",a);case zt:var s=null!==(e=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==e?e:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._startScrollCoordinate={x:a.x,y:a.y},this._chart.getChartStore().getTimeScaleStore().startScroll(),r.dispatchEvent(\\"mouseDownEvent\\",a);case Yt:return(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1),this._xAxisStartScaleCoordinate={x:a.x,y:a.y},this._xAxisStartScaleDistance=a.pageX,l;case Xt:var l;(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1);s=null!==(i=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==i?i:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._yAxisStartScaleDistance=a.pageY,l}}return!1},t.prototype.mouseMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget,s=this._makeWidgetEvent(t,a);if((null===(e=this._mouseMoveTriggerWidgetInfo.pane)||void 0===e?void 0:e.getId())===(null==r?void 0:r.getId())&&(null===(i=this._mouseMoveTriggerWidgetInfo.widget)||void 0===i?void 0:i.getName())===(null==a?void 0:a.getName())||(null==a||a.dispatchEvent(\\"mouseEnterEvent\\",s),null===(o=this._mouseMoveTriggerWidgetInfo.widget)||void 0===o||o.dispatchEvent(\\"mouseLeaveEvent\\",s),this._mouseMoveTriggerWidgetInfo={pane:r,widget:a}),null!==a)switch(a.getName()){case zt:var l=a.dispatchEvent(\\"mouseMoveEvent\\",s),u=this._chart.getChartStore(),c={x:s.x,y:s.y,paneId:null==r?void 0:r.getId()};return l&&null!==u.getTooltipStore().getActiveIcon()&&(c=void 0,null!==a&&(a.getContainer().style.cursor=\\"pointer\\")),this._chart.getChartStore().getTooltipStore().setCrosshair(c),l;case Ht:case Yt:case Xt:l=a.dispatchEvent(\\"mouseMoveEvent\\",s);return this._chart.getChartStore().getTooltipStore().setCrosshair(),l}return!1},t.prototype.pressedMouseMoveEvent=function(t){var e,i,o,n,r;if(null!==this._mouseDownWidget&&this._mouseDownWidget.getName()===Ht)return this._mouseDownWidget.dispatchEvent(\\"pressedMouseMoveEvent\\",t);var a=this._findWidgetByEvent(t),s=a.pane,l=a.widget;if(null!==l&&(null===(e=this._mouseDownWidget)||void 0===e?void 0:e.getPane().getId())===(null==s?void 0:s.getId())&&(null===(i=this._mouseDownWidget)||void 0===i?void 0:i.getName())===l.getName()){var u=this._makeWidgetEvent(t,l);switch(l.getName()){case zt:var c=l.getBounding();if(!(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))&&null!==this._startScrollCoordinate){var h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&!h.getAutoCalcTickFlag()&&h.getScrollZoomEnabled()){var d=this._prevYAxisExtremum,p=d.min,v=d.max+(b=(S=d.range)*(C=(null!==(o=null==h?void 0:h.isReverse())&&void 0!==o&&o?this._startScrollCoordinate.y-u.y:u.y-this._startScrollCoordinate.y)/c.height)),g=h.convertToRealValue(E=p+b),f=h.convertToRealValue(v);h.setExtremum({min:E,max:v,range:v-E,realMin:g,realMax:f,realRange:f-g})}var m=u.x-this._startScrollCoordinate.x;this._chart.getChartStore().getTimeScaleStore().scroll(m)}return this._chart.getChartStore().getTooltipStore().setCrosshair({x:u.x,y:u.y,paneId:null==s?void 0:s.getId()}),x;case Yt:if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{var y=null==s?void 0:s.getAxisComponent();if(null===(n=null==y?void 0:y.getScrollZoomEnabled())||void 0===n||n){var _=10*((C=this._xAxisStartScaleDistance/u.pageX)-this._xAxisScale);this._xAxisScale=C,this._chart.getChartStore().getTimeScaleStore().zoom(_,null!==(r=this._xAxisStartScaleCoordinate)&&void 0!==r?r:void 0)}}return x;case Xt:var x;if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&h.getScrollZoomEnabled()){var S,C,b,T=this._prevYAxisExtremum,w=(S=T.range)*(C=u.pageY/this._yAxisStartScaleDistance),E=(p=T.min)-(b=(w-S)/2),I=(v=T.max+b,null==s?void 0:s.getAxisComponent());g=I.convertToRealValue(E),f=I.convertToRealValue(v);I.setExtremum({min:E,max:v,range:w,realMin:g,realMax:f,realRange:f-g}),this._chart.adjustPaneViewport(!1,!0,!0,!0)}}return x}}return!1},t.prototype.mouseUpEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Ht:case Yt:case Xt:i=e.dispatchEvent(\\"mouseUpEvent\\",o)}i&&this._chart.updatePane(1)}return this._mouseDownWidget=null,this._startScrollCoordinate=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,i},t.prototype.mouseClickEvent=function(t){var e=this._findWidgetByEvent(t).widget;if(null!==e){var i=this._makeWidgetEvent(t,e);return e.dispatchEvent(\\"mouseClickEvent\\",i)}return!1},t.prototype.mouseRightClickEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Yt:case Xt:i=e.dispatchEvent(\\"mouseRightClickEvent\\",o)}i&&this._chart.updatePane(1)}return!1},t.prototype.mouseDoubleClickEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o)switch(o.getName()){case zt:var n=this._makeWidgetEvent(t,o);return o.dispatchEvent(\\"mouseDoubleClickEvent\\",n);case Xt:var r=null==i?void 0:i.getAxisComponent();if(!r.getAutoCalcTickFlag())return r.setAutoCalcTickFlag(!0),this._chart.adjustPaneViewport(!1,!0,!0,!0),!0}return!1},t.prototype.mouseLeaveEvent=function(){return this._chart.getChartStore().getTooltipStore().setCrosshair(),!0},t.prototype.touchStartEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o){var n=this._makeWidgetEvent(t,o);switch(o.getName()){case zt:var r=this._chart.getChartStore(),a=r.getTooltipStore();if(o.dispatchEvent(\\"mouseDownEvent\\",n))return this._touchCancelCrosshair=!0,this._touchCoordinate=null,a.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._flingScrollRequestId&&(ie(this._flingScrollRequestId),this._flingScrollRequestId=null),this._flingStartTime=(new Date).getTime(),this._startScrollCoordinate={x:n.x,y:n.y},r.getTimeScaleStore().startScroll(),this._touchZoomed=!1,null!==this._touchCoordinate){var s=n.x-this._touchCoordinate.x,l=n.y-this._touchCoordinate.y;10>Math.sqrt(s*s+l*l)?(this._touchCoordinate={x:n.x,y:n.y},a.setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()})):(this._touchCoordinate=null,this._touchCancelCrosshair=!0,a.setCrosshair())}return!0;case Yt:case Xt:var u=o.dispatchEvent(\\"mouseDownEvent\\",n);return u&&this._chart.updatePane(1),u}}return!1},t.prototype.touchMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget;if(null!==a){var s=this._makeWidgetEvent(t,a),l=a.getName(),u=this._chart.getChartStore(),c=u.getTooltipStore();switch(l){case zt:if(a.dispatchEvent(\\"pressedMouseMoveEvent\\",s))return null===(e=s.preventDefault)||void 0===e||e.call(s),c.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._touchCoordinate)null===(i=s.preventDefault)||void 0===i||i.call(s),c.setCrosshair({x:s.x,y:s.y,paneId:null==r?void 0:r.getId()});else if(null!==this._startScrollCoordinate&&Math.abs(this._startScrollCoordinate.x-s.x)>this._startScrollCoordinate.y-s.y){var h=s.x-this._startScrollCoordinate.x;u.getTimeScaleStore().scroll(h)}return!0;case Yt:case Xt:var d=a.dispatchEvent(\\"pressedMouseMoveEvent\\",s);return d&&(null===(o=s.preventDefault)||void 0===o||o.call(s),this._chart.updatePane(1)),d}}return!1},t.prototype.touchEndEvent=function(t){var e=this,i=this._findWidgetByEvent(t).widget;if(null!==i){var o=this._makeWidgetEvent(t,i);switch(i.getName()){case zt:if(i.dispatchEvent(\\"mouseUpEvent\\",o),null!==this._startScrollCoordinate){var n=(new Date).getTime()-this._flingStartTime,r=(o.x-this._startScrollCoordinate.x)/(n>0?n:1)*20;if(200>n&&Math.abs(r)>0){var a=this._chart.getChartStore().getTimeScaleStore(),s=function(){e._flingScrollRequestId=ee((function(){a.startScroll(),a.scroll(r),1>Math.abs(r*=.975)?null!==e._flingScrollRequestId&&(ie(e._flingScrollRequestId),e._flingScrollRequestId=null):s()}))};s()}}return!0;case Yt:case Xt:i.dispatchEvent(\\"mouseUpEvent\\",o)&&this._chart.updatePane(1)}}return!1},t.prototype.tapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget,n=!1;if(null!==o){var r=this._makeWidgetEvent(t,o),a=o.dispatchEvent(\\"mouseClickEvent\\",r);if(o.getName()===zt){var s=this._makeWidgetEvent(t,o),l=this._chart.getChartStore().getTooltipStore();a?(this._touchCancelCrosshair=!0,this._touchCoordinate=null,l.setCrosshair(void 0,!0),n=!0):(this._touchCancelCrosshair||this._touchZoomed||(this._touchCoordinate={x:s.x,y:s.y},l.setCrosshair({x:s.x,y:s.y,paneId:null==i?void 0:i.getId()},!0),n=!0),this._touchCancelCrosshair=!1)}(n||a)&&this._chart.updatePane(1)}return n},t.prototype.doubleTapEvent=function(t){return this.mouseDoubleClickEvent(t)},t.prototype.longTapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o&&o.getName()===zt){var n=this._makeWidgetEvent(t,o);return this._touchCoordinate={x:n.x,y:n.y},this._chart.getChartStore().getTooltipStore().setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()}),!0}return!1},t.prototype._findWidgetByEvent=function(t){var e,i,o=this._chart.getAllPanes(),n=t.x,r=t.y,a=null;try{for(var s=L(o),l=s.next();!l.done;l=s.next()){var u=R(l.value,2)[1],c=u.getBounding();if(!(c.left>n||n>c.left+c.width||c.top>r||r>c.top+c.height)){a=u;break}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}null===a&&(a=this._chart.getPaneById(Kt.XAXIS));var h=null;if(null!==a){var d=a.getSeparatorWidget();if(null!==d){var p=d.getBounding();p.left>n||n>p.left+p.width||p.top>r||r>p.top+7||(h=d)}if(null===h){var v=a.getMainWidget(),g=v.getBounding();g.left>n||n>g.left+g.width||g.top>r||r>g.top+g.height||(h=v)}if(null===h){var f=a.getYAxisWidget();if(null!==f){var m=f.getBounding();m.left>n||n>m.left+m.width||m.top>r||r>m.top+m.height||(h=f)}}}return{pane:a,widget:h}},t.prototype._makeWidgetEvent=function(t,e){var i,o,n,r=null!==(i=null==e?void 0:e.getBounding())&&void 0!==i?i:null;return k(k({},t),{x:t.x-(null!==(o=null==r?void 0:r.left)&&void 0!==o?o:0),y:t.y-(null!==(n=null==r?void 0:r.top)&&void 0!==n?n:0)})},t.prototype.destroy=function(){this._container.removeEventListener(\\"keydown\\",this._boundKeyBoardDownEvent),this._event.destroy()},t}();t.DomPosition=void 0,(ni=t.DomPosition||(t.DomPosition={})).Root=\\"root\\",ni.Main=\\"main\\",ni.YAxis=\\"yAxis\\";var si=function(){function e(t,e){this._panes=new Map,this._initContainer(t),this._chartEvent=new ai(this._chartContainer,this),this._chartStore=new te(this,e),this._xAxisPane=new ei(this._chartContainer,this,Kt.XAXIS),this._panes.set(Kt.CANDLE,new Ue(this._chartContainer,this,Kt.CANDLE)),this.adjustPaneViewport(!0,!0,!0)}return e.prototype._initContainer=function(t){this._container=t,this._chartContainer=Y(\\"div\\",{position:\\"relative\\",width:\\"100%\\",outline:\\"none\\",borderStyle:\\"none\\",cursor:\\"crosshair\\",boxSizing:\\"border-box\\",userSelect:\\"none\\",webkitUserSelect:\\"none\\",msUserSelect:\\"none\\",MozUserSelect:\\"none\\",webkitTapHighlightColor:\\"transparent\\"}),this._chartContainer.tabIndex=1,t.appendChild(this._chartContainer)},e.prototype._measurePaneHeight=function(){var t,e=this._container.offsetHeight,i=this._xAxisPane.getAxisComponent().getAutoSize(),o=e-i;0>o&&(o=0);var n=0;this._panes.forEach((function(t){if(t.getId()!==Kt.CANDLE){var e=t.getBounding().height,i=t.getOptions().minHeight;i>e&&(e=i),n+e>o?e=Math.max(o-(n=o),0):n+=e,t.setBounding({height:e})}}));var r=o-n;null===(t=this._panes.get(Kt.CANDLE))||void 0===t||t.setBounding({height:r});var a=0;this._panes.forEach((function(t){t.setBounding({top:a}),a+=t.getBounding().height})),this._xAxisPane.setBounding({height:i,top:a})},e.prototype._measurePaneWidth=function(){var e=this._chartStore.getStyles().yAxis,i=e.position===t.YAxisPosition.Left,o=!e.inside,n=this._container.offsetWidth,r=0,a=Number.MIN_SAFE_INTEGER,s=0,l=0;this._panes.forEach((function(t){a=Math.max(a,t.getAxisComponent().getAutoSize())})),a>n&&(a=n),o?(r=n-a,i?(s=0,l=a):(s=n-a,l=0)):(r=n,l=0,s=i?0:n-a),this._chartStore.getTimeScaleStore().setTotalBarSpace(r);var u={width:n},c={width:r,left:l},h={width:a,left:s};this._panes.forEach((function(t){t.setBounding(u,c,h)})),this._xAxisPane.setBounding(u,c,h)},e.prototype._setPaneOptions=function(t,e){var i,o,n=this._panes.get(null!==(i=null==t?void 0:t.id)&&void 0!==i?i:\\"\\"),r=!1;if(void 0!==n){var a=e;if(t.id!==Kt.CANDLE&&void 0!==t.height&&t.height>0){var s=Math.max(null!==(o=t.minHeight)&&void 0!==o?o:n.getOptions().minHeight,0);n.setBounding({height:Math.max(s,t.height)}),a=!0,r=!0}n.setOptions(t),a&&this.adjustPaneViewport(r,!0,!0,!0,!0)}},e.prototype.getContainer=function(){return this._container},e.prototype.getChartStore=function(){return this._chartStore},e.prototype.getAllPanes=function(){return this._panes},e.prototype.adjustPaneViewport=function(t,e,i,o,n){t&&this._measurePaneHeight();var r=e,a=null!=n&&n;(null!=o&&o||a)&&this._panes.forEach((function(t){var e=t.getAxisComponent().buildTicks(a);r||(r=e)})),r&&this._measurePaneWidth(),null!=i&&i&&(this._xAxisPane.getAxisComponent().buildTicks(!0),this.updatePane(4))},e.prototype.updatePane=function(t,e){var i;void 0!==e?null===(i=this.getPaneById(e))||void 0===i||i.update(t):(this._xAxisPane.update(t),this._panes.forEach((function(e){e.update(t)})))},e.prototype.getPaneById=function(t){var e;return t===Kt.XAXIS?this._xAxisPane:null!==(e=this._panes.get(t))&&void 0!==e?e:null},e.prototype.crosshairChange=function(e){var i=this,o=this._chartStore.getActionStore();if(o.has(t.ActionType.OnCrosshairChange)){var n={};this._panes.forEach((function(t,o){var r={};i._chartStore.getIndicatorStore().getInstances(o).forEach((function(t){var i,o=t.result;r[t.name]=o[null!==(i=e.dataIndex)&&void 0!==i?i:o.length-1]})),n[o]=r})),void 0!==e.paneId&&o.execute(t.ActionType.OnCrosshairChange,k(k({},e),{indicatorData:n}))}},e.prototype.getDom=function(e,i){var o,n;if(void 0===e)return this._chartContainer;var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getContainer();case t.DomPosition.Main:return r.getMainWidget().getContainer();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getContainer())&&void 0!==n?n:null}return null},e.prototype.getSize=function(e,i){var o,n;if(void 0===e)return{width:this._chartContainer.offsetWidth,height:this._chartContainer.offsetHeight,left:0,top:0,right:0,bottom:0};var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getBounding();case t.DomPosition.Main:return r.getMainWidget().getBounding();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getBounding())&&void 0!==n?n:null}return null},e.prototype.setStyles=function(t){var e,i,o;this._chartStore.setOptions({styles:t}),void 0!==(null===(e=null==(o=u(t)?Qt(t):t)?void 0:o.yAxis)||void 0===e?void 0:e.type)&&(null===(i=this.getPaneById(Kt.CANDLE))||void 0===i||i.getAxisComponent().setAutoCalcTickFlag(!0)),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getStyles=function(){return this._chartStore.getStyles()},e.prototype.setLocale=function(t){this._chartStore.setOptions({locale:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getLocale=function(){return this._chartStore.getLocale()},e.prototype.setCustomApi=function(t){this._chartStore.setOptions({customApi:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.setPriceVolumePrecision=function(t,e){this._chartStore.setPrecision({price:t,volume:e})},e.prototype.getPriceVolumePrecision=function(){return this._chartStore.getPrecision()},e.prototype.setTimezone=function(t){this._chartStore.setOptions({timezone:t}),this._xAxisPane.getAxisComponent().buildTicks(!0),this._xAxisPane.update(3)},e.prototype.getTimezone=function(){return this._chartStore.getTimeScaleStore().getTimezone()},e.prototype.setOffsetRightDistance=function(t){this._chartStore.getTimeScaleStore().setOffsetRightDistance(t,!0)},e.prototype.getOffsetRightDistance=function(){return this._chartStore.getTimeScaleStore().getOffsetRightDistance()},e.prototype.setLeftMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setLeftMinVisibleBarCount(Math.ceil(t))},e.prototype.setRightMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setRightMinVisibleBarCount(Math.ceil(t))},e.prototype.setBarSpace=function(t){this._chartStore.getTimeScaleStore().setBarSpace(t)},e.prototype.getBarSpace=function(){return this._chartStore.getTimeScaleStore().getBarSpace().bar},e.prototype.getVisibleRange=function(){return this._chartStore.getTimeScaleStore().getVisibleRange()},e.prototype.clearData=function(){this._chartStore.clear()},e.prototype.getDataList=function(){return this._chartStore.getDataList()},e.prototype.applyNewData=function(t,e,i){this._chartStore.clear(),0===t.length?this.adjustPaneViewport(!1,!0,!0,!0):this.applyMoreData(t,e,i)},e.prototype.applyMoreData=function(t,e,i){var o=this;this._chartStore.addData(t,0,e),t.length>0&&this._chartStore.getIndicatorStore().calcInstance().then((function(t){o.adjustPaneViewport(!1,!0,!0,!0),null==i||i()})).catch((function(t){}))},e.prototype.updateData=function(t,e){var i=this,o=this._chartStore.getDataList(),n=o.length,r=t.timestamp,a=C(o[n-1],\\"timestamp\\",0);if(r>=a){var s=n;r===a&&(s=n-1),this._chartStore.addData(t,s),this._chartStore.getIndicatorStore().calcInstance().then((function(t){i.adjustPaneViewport(!1,!0,!0,!0),null==e||e()})).catch((function(t){}))}},e.prototype.loadMore=function(t){this._chartStore.getTimeScaleStore().setLoadMoreCallback(t)},e.prototype.createIndicator=function(t,e,i,o){var n,r,a,l=this,c=u(t)?{name:t}:t;if(null===pt(c.name))return null;if(s(i)&&u(null==i?void 0:i.id)&&this._panes.has(i.id))a=i.id,this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).then((function(t){var e,o;l._setPaneOptions(i,null!==(o=null===(e=l._panes.get(a))||void 0===e?void 0:e.getAxisComponent().buildTicks(!0))&&void 0!==o&&o)})).catch((function(t){}));else{a=null!==(n=null==i?void 0:i.id)&&void 0!==n?n:z(Kt.INDICATOR);var h=Array.from(this._panes.values()).pop(),d=new Ke(this._chartContainer,this,a,h);h.setBottomPane(d);var p=null!==(r=null==i?void 0:i.height)&&void 0!==r?r:100;d.setBounding({height:p}),s(i)&&d.setOptions(i),this._panes.set(a,d),this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).finally((function(){l.adjustPaneViewport(!0,!0,!0,!0,!0),null==o||o()}))}return a},e.prototype.overrideIndicator=function(t,e,i){var o=this;this._chartStore.getIndicatorStore().override(t,null!=e?e:null).then((function(t){var e=R(t,2),n=e[1];(e[0]||n)&&(o.adjustPaneViewport(!1,n,!0,n),null==i||i())})).catch((function(){}))},e.prototype.getIndicatorByPaneId=function(t,e){return this._chartStore.getIndicatorStore().getInstanceByPaneId(t,e)},e.prototype.removeIndicator=function(t,e){var i=this._chartStore.getIndicatorStore();if(i.removeInstance(t,e)){var o=!1;if(t!==Kt.CANDLE&&!i.hasInstances(t)){var n=this._panes.get(t);if(void 0!==n){o=!0;var r=n.getTopPane(),a=n.getBottomPane();null==a||a.setTopPane(r),null==r||r.setBottomPane(a),null==n||n.destroy(),this._panes.delete(t)}}this.adjustPaneViewport(o,!0,!0,!0,!0)}},e.prototype.createOverlay=function(t,e){var i=[];if(u(t))i=[{name:t}];else if(o(t))i=t.map((function(t){return u(t)?{name:t}:t}));else{i=[t]}var n=!0;void 0!==e&&null!==this.getPaneById(e)||(e=Kt.CANDLE,n=!1);var r=this._chartStore.getOverlayStore().addInstances(i,e,n);return o(t)?r:r[0]},e.prototype.getOverlayById=function(t){return this._chartStore.getOverlayStore().getInstanceById(t)},e.prototype.overrideOverlay=function(t){this._chartStore.getOverlayStore().override(t)},e.prototype.removeOverlay=function(t){var e;void 0!==t&&(e=u(t)?{id:t}:t),this._chartStore.getOverlayStore().removeInstance(e)},e.prototype.setPaneOptions=function(t){this._setPaneOptions(t,!1)},e.prototype.setZoomEnabled=function(t){this._chartStore.getTimeScaleStore().setZoomEnabled(t)},e.prototype.isZoomEnabled=function(){return this._chartStore.getTimeScaleStore().getZoomEnabled()},e.prototype.setScrollEnabled=function(t){this._chartStore.getTimeScaleStore().setScrollEnabled(t)},e.prototype.isScrollEnabled=function(){return this._chartStore.getTimeScaleStore().getScrollEnabled()},e.prototype.scrollByDistance=function(t,e){var i=void 0===e||0>e?0:e,o=this._chartStore.getTimeScaleStore();if(i>0){o.startScroll();var n=(new Date).getTime(),r=function(){var e=((new Date).getTime()-n)/i,a=e>=1;o.scroll(a?t:t*e),a||requestAnimationFrame(r)};r()}else o.startScroll(),o.scroll(t)},e.prototype.scrollToRealTime=function(t){var e=this._chartStore.getTimeScaleStore(),i=e.getBarSpace().bar,o=e.getOffsetRightBarCount()-e.getInitialOffsetRightDistance()/i;this.scrollByDistance(o*i,t)},e.prototype.scrollToDataIndex=function(t,e){var i=this._chartStore.getTimeScaleStore(),o=(i.getOffsetRightBarCount()+(this.getDataList().length-1-t))*i.getBarSpace().bar;this.scrollByDistance(o,e)},e.prototype.scrollToTimestamp=function(t,e){var i=Z(this.getDataList(),\\"timestamp\\",t);this.scrollToDataIndex(i,e)},e.prototype.zoomAtCoordinate=function(t,e,i){var o=void 0===i||0>i?0:i,n=this._chartStore.getTimeScaleStore();if(o>0){var r=n.getBarSpace().bar,a=r*t-r,s=(new Date).getTime(),l=function(){var t=((new Date).getTime()-s)/o,i=t>=1;n.zoom((i?a:a*t)/r,e),i||requestAnimationFrame(l)};l()}else n.zoom(t,e)},e.prototype.zoomAtDataIndex=function(t,e,i){var o=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(e);this.zoomAtCoordinate(t,{x:o,y:0},i)},e.prototype.zoomAtTimestamp=function(t,e,i){var o=Z(this.getDataList(),\\"timestamp\\",e);this.zoomAtDataIndex(t,o,i)},e.prototype.convertToPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e={},i=t.dataIndex;if(void 0!==t.timestamp&&(i=c.timestampToDataIndex(t.timestamp)),void 0!==i&&(e.x=null==p?void 0:p.convertToPixel(i)),void 0!==t.value){var o=null==v?void 0:v.convertToPixel(t.value);e.y=s?h.top+o:o}return e}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.convertFromPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e,i={};if(void 0!==t.x){var o=p.convertFromPixel(t.x);i.dataIndex=o,i.timestamp=null!==(e=c.dataIndexToTimestamp(o))&&void 0!==e?e:void 0}void 0!==t.y&&(i.value=v.convertFromPixel(s?t.y-h.top:t.y));return i}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.executeAction=function(e,i){var o;if(e===t.ActionType.OnCrosshairChange){var n=k({},i);n.paneId=null!==(o=n.paneId)&&void 0!==o?o:Kt.CANDLE,this._chartStore.getTooltipStore().setCrosshair(n)}},e.prototype.subscribeAction=function(t,e){this._chartStore.getActionStore().subscribe(t,e)},e.prototype.unsubscribeAction=function(t,e){this._chartStore.getActionStore().unsubscribe(t,e)},e.prototype.getConvertPictureUrl=function(t,e,i){var o=this._chartContainer.offsetWidth,n=this._chartContainer.offsetHeight,r=Y(\\"canvas\\",{width:\\"\\".concat(o,\\"px\\"),height:\\"\\".concat(n,\\"px\\"),boxSizing:\\"border-box\\"}),a=r.getContext(\\"2d\\"),s=X(r);r.width=o*s,r.height=n*s,a.scale(s,s),a.fillStyle=null!=i?i:\\"#FFFFFF\\",a.fillRect(0,0,o,n);var l=null!=t&&t;this._panes.forEach((function(t){var e=t.getBounding();a.drawImage(t.getImage(l),0,e.top,o,e.height)}));var u=this._xAxisPane.getBounding();return a.drawImage(this._xAxisPane.getImage(l),0,u.top,o,u.height),r.toDataURL(\\"image/\\".concat(null!=e?e:\\"jpeg\\"))},e.prototype.resize=function(){this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.destroy=function(){this._chartEvent.destroy(),this._panes.forEach((function(t){t.destroy()})),this._panes.clear(),this._xAxisPane.destroy(),this._container.removeChild(this._chartContainer)},e}(),li=new Map,ui=1;var ci={clone:i,merge:e,isString:u,isNumber:a,isValid:s,isObject:r,isArray:o,isFunction:n,isBoolean:l,formatValue:C,formatPrecision:T,formatBigNumber:w,formatDate:b,formatThousands:E,calcTextWidth:j,getLinearSlopeIntercept:kt,getLinearYFromSlopeIntercept:Pt,getLinearYFromCoordinates:Mt,checkCoordinateOnArc:xe,checkCoordinateOnCircle:re,checkCoordinateOnLine:Dt,checkCoordinateOnPolygon:le,checkCoordinateOnRect:de,checkCoordinateOnText:fe,drawArc:Se,drawCircle:ae,drawLine:At,drawPolygon:ue,drawRect:pe,drawText:me,drawRectText:_e};t.dispose=function(t){var e,i,o;if(t instanceof si)o=t.id;else{var n=void 0;o=null!==(e=null==(n=u(t)?document.getElementById(t):t)?void 0:n.getAttribute(\\"k-line-chart-id\\"))&&void 0!==e?e:null}null!==o&&(null===(i=li.get(o))||void 0===i||i.destroy(),li.delete(o))},t.getFigureClass=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null},t.getOverlayClass=function(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null},t.getSupportedFigures=function(){return Object.keys(be)},t.getSupportedIndicators=function(){return Object.keys(ht)},t.getSupportedLocales=function(){return Object.keys(Be)},t.getSupportedOverlays=function(){return Object.keys(Vt)},t.init=function(t,e){var i;if(null===(i=u(t)?document.getElementById(t):t))return null;var o=li.get(i.id);if(void 0!==o)return o;var n=\\"k_line_chart_\\".concat(ui++);return(o=new si(i,e)).id=n,i.setAttribute(\\"k-line-chart-id\\",n),li.set(n,o),o},t.registerFigure=function(t){be[t.name]=wt.extend(t)},t.registerIndicator=function(t){ht[t.name]=nt.extend(t)},t.registerLocale=function(t,e){Be[t]=k(k({},Be[t]),e)},t.registerOverlay=function(t){Vt[t.name]=xt.extend(t)},t.registerStyles=function(t,e){Jt[t]=e},t.utils=ci,t.version=function(){return\\"9.5.4\\"}}));\\n"]]},"headers":[],"relativePath":"en-US/sample/timezone.md","filePath":"en-US/sample/timezone.md","lastUpdated":1698784282000}`),d={name:"en-US/sample/timezone.md"},D=Object.assign(d,{setup(y){return(v,g)=>(i(),r("div",null,[u,l(n,{js:t(o),html:t(s),css:t(a),title:"Timezone"},null,8,["js","html","css"]),h]))}});export{x as __pageData,D as default}; +import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.d021247c.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"timezone",tabindex:"-1"},[c("Timezone "),e("a",{class:"header-anchor",href:"#timezone","aria-label":'Permalink to "Timezone"'},"​")],-1),h=p("",1),D=JSON.parse(`{"title":"Timezone","description":"","frontmatter":{"aside":false,"editLink":false,"head":[["script",{},"/**\\n * @license\\n * KLineChart v9.5.4\\n * Copyright (c) 2019 lihu.\\n * Licensed under Apache License 2.0 https://www.apache.org/licenses/LICENSE-2.0\\n */\\n!function(t,e){\\"object\\"==typeof exports&&\\"undefined\\"!=typeof module?e(exports):\\"function\\"==typeof define&&define.amd?define([\\"exports\\"],e):e((t=\\"undefined\\"!=typeof globalThis?globalThis:t||self).klinecharts={})}(this,(function(t){\\"use strict\\";function e(t,i){if(r(t)||r(i))for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var a=t[n],l=i[n];r(l)&&r(a)&&!o(l)&&!o(a)?e(a,l):s(i[n])&&(t[n]=i[n])}}function i(t){if(!r(t)||!o(t))return t;var e;for(var n in e=o(t)?[]:{},t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=t[n];e[n]=r(a)?i(a):a}return e}function o(t){return\\"[object Array]\\"===Object.prototype.toString.call(t)}function n(t){return\\"function\\"==typeof t}function r(t){return\\"object\\"==typeof t}function a(t){return\\"number\\"==typeof t&&!isNaN(t)}function s(t){return null!=t}function l(t){return\\"boolean\\"==typeof t}function u(t){return\\"string\\"==typeof t}var c,h,d,p,v,g,f,m,y,_,x=/\\\\\\\\(\\\\\\\\)?/g,S=RegExp(\\"[^.[\\\\\\\\]]+|\\\\\\\\[(?:([^\\\\\\"'][^[]*)|([\\\\\\"'])((?:(?!\\\\\\\\2)[^\\\\\\\\\\\\\\\\]|\\\\\\\\\\\\\\\\.)*?)\\\\\\\\2)\\\\\\\\]|(?=(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\])(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\]|$))\\",\\"g\\");function C(t,e,i){if(s(t)){var o=[];e.replace(S,(function(t){for(var e=[],i=1;arguments.length>i;i++)e[i-1]=arguments[i];var n=t;return s(e[1])?n=e[2].replace(x,\\"$1\\"):s(e[0])&&(n=e[0].trim()),o.push(n),\\"\\"}));for(var n=t,r=0,a=o.length;s(n)&&a>r;)n=null==n?void 0:n[o[r++]];return s(n)?n:null!=i?i:\\"--\\"}return null!=i?i:\\"--\\"}function b(t,e,i){var o=t.format(new Date(e)).split(\\", \\"),n=o[0].split(\\"/\\"),r=o[1].split(\\":\\"),a={YYYY:n[2],MM:n[0],DD:n[1],HH:\\"24\\"===r[0]?\\"00\\":r[0],mm:r[1],ss:r[2]};return i.replace(/YYYY|MM|DD|HH|mm|ss/g,(function(t){return a[t]}))}function T(t,e){var i=+t;return a(i)?i.toFixed(null!=e?e:2):\\"\\".concat(t)}function w(t){var e=+t;if(a(e)){if(e>1e9)return\\"\\".concat(+(e/1e9).toFixed(3),\\"B\\");if(e>1e6)return\\"\\".concat(+(e/1e6).toFixed(3),\\"M\\");if(e>1e3)return\\"\\".concat(+(e/1e3).toFixed(3),\\"K\\")}return\\"\\".concat(t)}function E(t,e){var i=\\"\\".concat(t);if(0===e.length)return i;if(i.includes(\\".\\")){var o=i.split(\\".\\");return\\"\\".concat(o[0].replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)})),\\".\\").concat(o[1])}return i.replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)}))}t.LineType=void 0,(c=t.LineType||(t.LineType={})).Dashed=\\"dashed\\",c.Solid=\\"solid\\",t.PolygonType=void 0,(h=t.PolygonType||(t.PolygonType={})).Stroke=\\"stroke\\",h.Fill=\\"fill\\",h.StrokeFill=\\"stroke_fill\\",t.TooltipShowRule=void 0,(d=t.TooltipShowRule||(t.TooltipShowRule={})).Always=\\"always\\",d.FollowCross=\\"follow_cross\\",d.None=\\"none\\",t.TooltipShowType=void 0,(p=t.TooltipShowType||(t.TooltipShowType={})).Standard=\\"standard\\",p.Rect=\\"rect\\",t.TooltipIconPosition=void 0,(v=t.TooltipIconPosition||(t.TooltipIconPosition={})).Left=\\"left\\",v.Middle=\\"middle\\",v.Right=\\"right\\",function(t){t.Fixed=\\"fixed\\",t.Pointer=\\"pointer\\"}(g||(g={})),t.CandleType=void 0,(f=t.CandleType||(t.CandleType={})).CandleSolid=\\"candle_solid\\",f.CandleStroke=\\"candle_stroke\\",f.CandleUpStroke=\\"candle_up_stroke\\",f.CandleDownStroke=\\"candle_down_stroke\\",f.Ohlc=\\"ohlc\\",f.Area=\\"area\\",t.YAxisPosition=void 0,(m=t.YAxisPosition||(t.YAxisPosition={})).Left=\\"left\\",m.Right=\\"right\\",t.YAxisType=void 0,(y=t.YAxisType||(t.YAxisType={})).Normal=\\"normal\\",y.Percentage=\\"percentage\\",y.Log=\\"log\\",t.FormatDateType=void 0,(_=t.FormatDateType||(t.FormatDateType={}))[_.Tooltip=0]=\\"Tooltip\\",_[_.Crosshair=1]=\\"Crosshair\\",_[_.XAxis=2]=\\"XAxis\\";var I=\\"en-US\\",D=function(t,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},D(t,e)};function P(t,e){if(\\"function\\"!=typeof e&&null!==e)throw new TypeError(\\"Class extends value \\"+e+\\" is not a constructor or null\\");function i(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var M,k=function(){return k=Object.assign||function(t){for(var e,i=1,o=arguments.length;o>i;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},k.apply(this,arguments)};function A(t,e,i,o){return new(i||(i=Promise))((function(n,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function s(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))}function F(t,e){var i,o,n,r,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},\\"function\\"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(l){return function(s){if(i)throw new TypeError(\\"Generator is already executing.\\");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(i=1,o&&(n=2&s[0]?o.return:s[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&n[3]>s[1])){a.label=s[1];break}if(6===s[0]&&n[1]>a.label){a.label=n[1],n=s;break}if(n&&n[2]>a.label){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],o=0}finally{i=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function L(t){var e=\\"function\\"==typeof Symbol&&Symbol.iterator,i=e&&t[e],o=0;if(i)return i.call(t);if(t&&\\"number\\"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?\\"Object is not iterable.\\":\\"Symbol.iterator is not defined.\\")}function R(t,e){var i=\\"function\\"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,n,r=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return a}function B(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;r>n;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}t.ActionType=void 0,(M=t.ActionType||(t.ActionType={})).OnZoom=\\"onZoom\\",M.OnScroll=\\"onScroll\\",M.OnVisibleRangeChange=\\"onVisibleRangeChange\\",M.OnTooltipIconClick=\\"onTooltipIconClick\\",M.OnCrosshairChange=\\"onCrosshairChange\\",M.OnCandleBarClick=\\"onCandleBarClick\\",M.OnPaneDrag=\\"onPaneDrag\\";var O,V=function(){function t(){this._callbacks=[]}return t.prototype.subscribe=function(t){var e;0>(null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1)&&this._callbacks.push(t)},t.prototype.unsubscribe=function(t){var e;if(void 0!==t){var i=null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1;i>-1&&this._callbacks.splice(i,1)}else this._callbacks=[]},t.prototype.execute=function(t){this._callbacks.forEach((function(e){e(t)}))},t.prototype.isEmpty=function(){return 0===this._callbacks.length},t}(),N=1,W=(new Date).getTime();function z(t){var e=(new Date).getTime();return e===W?++N:N=1,W=e,\\"\\".concat(null!=t?t:\\"\\").concat(e,\\"_\\").concat(N)}function Y(t,e){var i,o=document.createElement(t),n=null!=e?e:{};for(var r in n)o.style[r]=null!==(i=n[r])&&void 0!==i?i:\\"\\";return o}function X(t){var e,i,o;return Math.ceil(null!==(o=null===(i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0===i?void 0:i.devicePixelRatio)&&void 0!==o?o:2)}function H(t,e,i){return\\"\\".concat(null!=e?e:\\"normal\\",\\" \\").concat(null!=t?t:12,\\"px \\").concat(null!=i?i:\\"Helvetica Neue\\")}function j(t,e,i,o){if(void 0===O){var n=document.createElement(\\"canvas\\"),r=X(n);(O=n.getContext(\\"2d\\")).scale(r,r)}return O.font=H(e,i,o),Math.round(O.measureText(t).width)}function Z(t,e,i){var o=0,n=0;for(n=t.length-1;o!==n;){var r=Math.floor((n+o)/2),a=n-o,s=t[r][e];if(i===t[o][e])return o;if(i===t[n][e])return n;if(i===s)return r;if(i>s?o=r:n=r,2>=a)break}return o}function G(t,e){return null==e&&(e=10),+(+t).toFixed(e=Math.min(Math.max(0,e),20))}function K(t,e,i){var o=[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER];return t.forEach((function(t){var n,r;o[0]=Math.max(null!==(n=t[e])&&void 0!==n?n:t,o[0]),o[1]=Math.min(null!==(r=t[i])&&void 0!==r?r:t,o[1])})),o}function U(t){return Math.log(t)/Math.log(10)}function q(t){return Math.pow(10,t)}var $,J=1,Q=50,tt=6,et=50,it=function(){function e(t){this._dateTimeFormat=this._buildDateTimeFormat(),this._zoomEnabled=!0,this._scrollEnabled=!0,this._loading=!0,this._loadMoreCallback=null,this._more=!0,this._totalBarSpace=0,this._barSpace=tt,this._offsetRightDistance=et,this._startScrollOffsetRightBarCount=0,this._minVisibleBarCount={left:2,right:2},this._visibleRange={from:0,to:0,realFrom:0,realTo:0},this._chartStore=t,this._gapBarSpace=this._calcGapBarSpace(),this._offsetRightBarCount=this._offsetRightDistance/this._barSpace}return e.prototype._calcGapBarSpace=function(){return Math.max(1,Math.min(Math.floor(.82*this._barSpace),Math.floor(this._barSpace)-1))},e.prototype.adjustVisibleRange=function(){var e,i=this._chartStore.getDataList(),o=i.length,n=this._totalBarSpace/this._barSpace,r=n-Math.min(this._minVisibleBarCount.left,o);this._offsetRightBarCount>r&&(this._offsetRightBarCount=r);var a=-o+Math.min(this._minVisibleBarCount.right,o);a>this._offsetRightBarCount&&(this._offsetRightBarCount=a);var s=Math.round(this._offsetRightBarCount+o+.5);s>o&&(s=o);var l=Math.round(s-n)-1;if(0>l&&(l=0),this._visibleRange={from:l,to:s,realFrom:this._offsetRightBarCount>0?Math.round(o+this._offsetRightBarCount-n)-1:l,realTo:s},this._chartStore.getActionStore().execute(t.ActionType.OnVisibleRangeChange,this._visibleRange),this._chartStore.adjustVisibleDataList(),0===l&&this._more&&!this._loading&&null!==this._loadMoreCallback){this._loading=!0;var u=i[0];this._loadMoreCallback(null!==(e=null==u?void 0:u.timestamp)&&void 0!==e?e:null)}},e.prototype.setMore=function(t){return this._more=t,this},e.prototype.setLoading=function(t){return this._loading=t,this},e.prototype.getDateTimeFormat=function(){return this._dateTimeFormat},e.prototype._buildDateTimeFormat=function(t){var e={hour12:!1,year:\\"numeric\\",month:\\"2-digit\\",day:\\"2-digit\\",hour:\\"2-digit\\",minute:\\"2-digit\\",second:\\"2-digit\\"};void 0!==t&&(e.timeZone=t);var i=null;try{i=new Intl.DateTimeFormat(\\"en\\",e)}catch(t){}return i},e.prototype.setTimezone=function(t){var e=this._buildDateTimeFormat(t);null!==e&&(this._dateTimeFormat=e)},e.prototype.getTimezone=function(){return this._dateTimeFormat.resolvedOptions().timeZone},e.prototype.getBarSpace=function(){return{bar:this._barSpace,halfBar:this._barSpace/2,gapBar:this._gapBarSpace,halfGapBar:this._gapBarSpace/2}},e.prototype.setBarSpace=function(t,e){J>t||t>Q||this._barSpace===t||(this._barSpace=t,this._gapBarSpace=this._calcGapBarSpace(),null==e||e(),this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0))},e.prototype.setTotalBarSpace=function(t){return this._totalBarSpace!==t&&(this._totalBarSpace=t,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0)),this},e.prototype.setOffsetRightDistance=function(t,e){return this._offsetRightDistance=t,this._offsetRightBarCount=t/this._barSpace,null!=e&&e&&(this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)),this},e.prototype.resetOffsetRightDistance=function(){this.setOffsetRightDistance(this._offsetRightDistance)},e.prototype.getInitialOffsetRightDistance=function(){return this._offsetRightDistance},e.prototype.getOffsetRightDistance=function(){return Math.max(0,this._offsetRightBarCount*this._barSpace)},e.prototype.getOffsetRightBarCount=function(){return this._offsetRightBarCount},e.prototype.setOffsetRightBarCount=function(t){return this._offsetRightBarCount=t,this},e.prototype.setLeftMinVisibleBarCount=function(t){return this._minVisibleBarCount.left=t,this},e.prototype.setRightMinVisibleBarCount=function(t){return this._minVisibleBarCount.right=t,this},e.prototype.getVisibleRange=function(){return this._visibleRange},e.prototype.startScroll=function(){this._startScrollOffsetRightBarCount=this._offsetRightBarCount},e.prototype.scroll=function(e){if(this._scrollEnabled){var i=e/this._barSpace;this._chartStore.getActionStore().execute(t.ActionType.OnScroll),this._offsetRightBarCount=this._startScrollOffsetRightBarCount-i,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)}},e.prototype.getDataByDataIndex=function(t){var e;return null!==(e=this._chartStore.getDataList()[t])&&void 0!==e?e:null},e.prototype.coordinateToFloatIndex=function(t){var e=this._chartStore.getDataList().length;return Math.round(1e6*(e+this._offsetRightBarCount-(this._totalBarSpace-t)/this._barSpace))/1e6},e.prototype.dataIndexToTimestamp=function(t){var e,i=this.getDataByDataIndex(t);return null!==(e=null==i?void 0:i.timestamp)&&void 0!==e?e:null},e.prototype.timestampToDataIndex=function(t){var e=this._chartStore.getDataList();return 0===e.length?0:Z(e,\\"timestamp\\",t)},e.prototype.dataIndexToCoordinate=function(t){var e=this._chartStore.getDataList().length;return this._totalBarSpace-(e+this._offsetRightBarCount-t-.5)*this._barSpace},e.prototype.coordinateToDataIndex=function(t){return Math.ceil(this.coordinateToFloatIndex(t))-1},e.prototype.zoom=function(e,i){var o,n=this;if(this._zoomEnabled){if(void 0===(null==i?void 0:i.x)){var r=this._chartStore.getTooltipStore().getCrosshair();i={x:null!==(o=null==r?void 0:r.x)&&void 0!==o?o:this._totalBarSpace/2}}this._chartStore.getActionStore().execute(t.ActionType.OnZoom);var a=this.coordinateToFloatIndex(i.x);this.setBarSpace(this._barSpace+e*(this._barSpace/10),(function(){n._offsetRightBarCount+=a-n.coordinateToFloatIndex(null==i?void 0:i.x)}))}},e.prototype.setZoomEnabled=function(t){return this._zoomEnabled=t,this},e.prototype.getZoomEnabled=function(){return this._zoomEnabled},e.prototype.setScrollEnabled=function(t){return this._scrollEnabled=t,this},e.prototype.getScrollEnabled=function(){return this._scrollEnabled},e.prototype.setLoadMoreCallback=function(t){return this._loadMoreCallback=t,this},e.prototype.clear=function(){this._more=!0,this._loading=!0,this._visibleRange={from:0,to:0,realFrom:0,realTo:0}},e}();function ot(t,e,i,o,n){var r,a=e.result,l=e.figures,u=e.styles,c=C(u,\\"circles\\",o.circles),h=c.length,d=C(u,\\"bars\\",o.bars),p=d.length,v=C(u,\\"lines\\",o.lines),g=v.length,f=0,m=0,y=0;l.forEach((function(l){var u;switch(l.type){case\\"circle\\":var _=c[f%h];r=k(k({},_),{color:_.noChangeColor}),f++;break;case\\"bar\\":var x=d[m%p];r=k(k({},x),{color:x.noChangeColor}),m++;break;case\\"line\\":r=v[y%g],y++}if(s(r)){var S=null===(u=l.styles)||void 0===u?void 0:u.call(l,{prev:{kLineData:t[i-1],indicatorData:a[i-1]},current:{kLineData:t[i],indicatorData:a[i]},next:{kLineData:t[i+1],indicatorData:a[i+1]}},e,o);n(l,k(k({},r),S))}}))}t.IndicatorSeries=void 0,($=t.IndicatorSeries||(t.IndicatorSeries={})).Normal=\\"normal\\",$.Price=\\"price\\",$.Volume=\\"volume\\";var nt=function(){function i(e){this.result=[],this._precisionFlag=!1;var i=e.name,o=e.shortName,n=e.series,r=e.calcParams,a=e.figures,s=e.precision,l=e.shouldOhlc,u=e.shouldFormatBigNumber,c=e.visible,h=e.minValue,d=e.maxValue,p=e.styles,v=e.extendData,g=e.regenerateFigures,f=e.createTooltipDataSource,m=e.draw;this.name=i,this.shortName=null!=o?o:i,this.series=null!=n?n:t.IndicatorSeries.Normal,this.precision=null!=s?s:4,this.calcParams=null!=r?r:[],this.figures=null!=a?a:[],this.shouldOhlc=null!=l&&l,this.shouldFormatBigNumber=null!=u&&u,this.visible=null==c||c,this.minValue=null!=h?h:null,this.maxValue=null!=d?d:null,this.styles=null!=p?p:{},this.extendData=v,this.regenerateFigures=null!=g?g:null,this.createTooltipDataSource=null!=f?f:null,this.draw=null!=m?m:null}return i.prototype.setShortName=function(t){return this.shortName!==t&&(this.shortName=t,!0)},i.prototype.setSeries=function(t){return this.series!==t&&(this.series=t,!0)},i.prototype.setPrecision=function(t,e){var i=null!=e&&e,o=Math.floor(t);return!(o===this.precision||0>t||i&&(!i||this._precisionFlag))&&(this.precision=o,i||(this._precisionFlag=!0),!0)},i.prototype.setCalcParams=function(t){var e,i;return this.calcParams=t,this.figures=null!==(i=null===(e=this.regenerateFigures)||void 0===e?void 0:e.call(this,t))&&void 0!==i?i:this.figures,!0},i.prototype.setShouldOhlc=function(t){return this.shouldOhlc!==t&&(this.shouldOhlc=t,!0)},i.prototype.setShouldFormatBigNumber=function(t){return this.shouldFormatBigNumber!==t&&(this.shouldFormatBigNumber=t,!0)},i.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},i.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},i.prototype.setExtendData=function(t){return this.extendData!==t&&(this.extendData=t,!0)},i.prototype.setFigures=function(t){return this.figures!==t&&(this.figures=t,!0)},i.prototype.setMinValue=function(t){return this.minValue!==t&&(this.minValue=t,!0)},i.prototype.setMaxValue=function(t){return this.maxValue!==t&&(this.maxValue=t,!0)},i.prototype.setRegenerateFigures=function(t){return this.regenerateFigures!==t&&(this.regenerateFigures=t,!0)},i.prototype.setCreateTooltipDataSource=function(t){return this.createTooltipDataSource!==t&&(this.createTooltipDataSource=t,!0)},i.prototype.setDraw=function(t){return this.draw!==t&&(this.draw=t,!0)},i.prototype.calcIndicator=function(t){return A(this,void 0,void 0,(function(){var e;return F(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.calc(t,this)];case 1:return e=i.sent(),this.result=e,[2,!0];case 2:return i.sent(),[2,!1];case 3:return[2]}}))}))},i.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i.prototype.calc=function(e,i){return t.calc(e,i)},i}(i)},i}(),rt={name:\\"AVP\\",shortName:\\"AVP\\",series:t.IndicatorSeries.Price,precision:2,figures:[{key:\\"avp\\",title:\\"AVP: \\",type:\\"line\\"}],calc:function(t){var e=0,i=0;return t.map((function(t){var o,n,r={},a=null!==(o=null==t?void 0:t.turnover)&&void 0!==o?o:0,s=null!==(n=null==t?void 0:t.volume)&&void 0!==n?n:0;return e+=a,0!==(i+=s)&&(r.avp=e/i),r}))}};var at={name:\\"EMA\\",shortName:\\"EMA\\",series:t.IndicatorSeries.Price,calcParams:[6,12,20],precision:2,shouldOhlc:!0,figures:[{key:\\"ema1\\",title:\\"EMA6: \\",type:\\"line\\"},{key:\\"ema2\\",title:\\"EMA12: \\",type:\\"line\\"},{key:\\"ema3\\",title:\\"EMA20: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ema\\".concat(e+1),title:\\"EMA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=0,r=[];return t.map((function(t,e){var a={},s=t.close;return n+=s,i.forEach((function(t,i){t-1>e||(r[i]=e>t-1?(2*s+(t-1)*r[i])/(t+1):n/t,a[o[i].key]=r[i])})),a}))}},st={name:\\"MA\\",shortName:\\"MA\\",series:t.IndicatorSeries.Price,calcParams:[5,10,30,60],precision:2,shouldOhlc:!0,figures:[{key:\\"ma5\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma10\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma30\\",title:\\"MA30: \\",type:\\"line\\"},{key:\\"ma60\\",title:\\"MA60: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,i){var l;n[i]=(null!==(l=n[i])&&void 0!==l?l:0)+s,e-1>r||(a[o[i].key]=n[i]/e,n[i]-=t[r-(e-1)].close)})),a}))}},lt={name:\\"RSI\\",shortName:\\"RSI\\",calcParams:[6,12,24],figures:[{key:\\"rsi1\\",title:\\"RSI1: \\",type:\\"line\\"},{key:\\"rsi2\\",title:\\"RSI2: \\",type:\\"line\\"},{key:\\"rsi3\\",title:\\"RSI3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){var i=e+1;return{key:\\"rsi\\".concat(i),title:\\"RSI\\".concat(i,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[],r=[];return t.map((function(e,a){var s,l={},u=(null!==(s=t[a-1])&&void 0!==s?s:e).close,c=e.close-u;return i.forEach((function(e,i){var s,u,h;if(c>0?n[i]=(null!==(s=n[i])&&void 0!==s?s:0)+c:r[i]=(null!==(u=r[i])&&void 0!==u?u:0)+Math.abs(c),a>=e-1){l[o[i].key]=0!==r[i]?100-100/(1+n[i]/r[i]):0;var d=t[a-(e-1)],p=null!==(h=t[a-e])&&void 0!==h?h:d,v=d.close-p.close;v>0?n[i]-=v:r[i]-=Math.abs(v)}})),l}))}},ut={name:\\"VOL\\",shortName:\\"VOL\\",series:t.IndicatorSeries.Volume,calcParams:[5,10,20],shouldFormatBigNumber:!0,precision:0,minValue:0,figures:[{key:\\"ma1\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA20: \\",type:\\"line\\"},{key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}],regenerateFigures:function(t){var e=t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}));return e.push({key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}),e},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a,s=null!==(a=e.volume)&&void 0!==a?a:0,l={volume:s};return i.forEach((function(e,i){var a,u;n[i]=(null!==(a=n[i])&&void 0!==a?a:0)+s,e-1>r||(l[o[i].key]=n[i]/e,n[i]-=null!==(u=t[r-(e-1)].volume)&&void 0!==u?u:0)})),l}))}},ct={name:\\"WR\\",shortName:\\"WR\\",calcParams:[6,10,14],figures:[{key:\\"wr1\\",title:\\"WR1: \\",type:\\"line\\"},{key:\\"wr2\\",title:\\"WR2: \\",type:\\"line\\"},{key:\\"wr3\\",title:\\"WR3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"wr\\".concat(e+1),title:\\"WR\\".concat(e+1,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures;return t.map((function(e,n){var r={},a=e.close;return i.forEach((function(e,i){var s=e-1;if(n>=s){var l=K(t.slice(n-s,n+1),\\"high\\",\\"low\\"),u=l[0],c=u-l[1];r[o[i].key]=0===c?0:(a-u)/c*100}})),r}))}},ht={},dt=[rt,{name:\\"AO\\",shortName:\\"AO\\",calcParams:[5,34],figures:[{key:\\"ao\\",title:\\"AO: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.ao)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.ao)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return{color:l=c>u?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor),style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,borderColor:l}}}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=0;return t.map((function(e,l){var u,c={},h=(e.low+e.high)/2;(n+=h,r+=h,ll||(c.ao=a-s),c}))}},{name:\\"BIAS\\",shortName:\\"BIAS\\",calcParams:[6,12,24],figures:[{key:\\"bias1\\",title:\\"BIAS6: \\",type:\\"line\\"},{key:\\"bias2\\",title:\\"BIAS12: \\",type:\\"line\\"},{key:\\"bias3\\",title:\\"BIAS24: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"bias\\".concat(e+1),title:\\"BIAS\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,l){var u;if(n[l]=(null!==(u=n[l])&&void 0!==u?u:0)+s,r>=e-1){var c=n[l]/i[l];a[o[l].key]=(s-c)/c*100,n[l]-=t[r-(e-1)].close}})),a}))}},{name:\\"BOLL\\",shortName:\\"BOLL\\",series:t.IndicatorSeries.Price,calcParams:[20,2],precision:2,shouldOhlc:!0,figures:[{key:\\"up\\",title:\\"UP: \\",type:\\"line\\"},{key:\\"mid\\",title:\\"MID: \\",type:\\"line\\"},{key:\\"dn\\",title:\\"DN: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0;return t.map((function(e,r){var a={};if(n+=e.close,r>=o){a.mid=n/i[0];var s=function(t,e){var i=t.length,o=0;return t.forEach((function(t){var i=t.close-e;o+=i*i})),Math.sqrt((o=Math.abs(o))/i)}(t.slice(r-o,r+1),a.mid);a.up=a.mid+i[1]*s,a.dn=a.mid-i[1]*s,n-=t[r-o].close}return a}))}},{name:\\"BRAR\\",shortName:\\"BRAR\\",calcParams:[26],figures:[{key:\\"br\\",title:\\"BR: \\",type:\\"line\\"},{key:\\"ar\\",title:\\"AR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0;return t.map((function(e,s){var l,u,c={},h=e.high,d=e.low,p=e.open,v=(null!==(l=t[s-1])&&void 0!==l?l:e).close;if(r+=h-p,a+=p-d,o+=h-v,n+=v-d,s>=i[0]-1){c.ar=0!==a?r/a*100:0,c.br=0!==n?o/n*100:0;var g=t[s-(i[0]-1)],f=g.high,m=g.low,y=g.open,_=(null!==(u=t[s-i[0]])&&void 0!==u?u:t[s-(i[0]-1)]).close;o-=f-_,n-=_-m,r-=f-y,a-=y-m}return c}))}},{name:\\"BBI\\",shortName:\\"BBI\\",series:t.IndicatorSeries.Price,precision:2,calcParams:[3,6,12,24],shouldOhlc:!0,figures:[{key:\\"bbi\\",title:\\"BBI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max.apply(Math,B([],R(i),!1)),n=[],r=[];return t.map((function(e,a){var s={},l=e.close;if(i.forEach((function(e,i){var o;n[i]=(null!==(o=n[i])&&void 0!==o?o:0)+l,e-1>a||(r[i]=n[i]/e,n[i]-=t[a-(e-1)].close)})),a>=o-1){var u=0;r.forEach((function(t){u+=t})),s.bbi=u/4}return s}))}},{name:\\"CCI\\",shortName:\\"CCI\\",calcParams:[20],figures:[{key:\\"cci\\",title:\\"CCI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0,r=[];return t.map((function(e,a){var s={},l=(e.high+e.low+e.close)/3;if(n+=l,r.push(l),a>=o){var u=n/i[0],c=r.slice(a-o,a+1),h=0;c.forEach((function(t){h+=Math.abs(t-u)}));var d=h/i[0];s.cci=0!==d?(l-u)/d/.015:0,n-=(t[a-o].high+t[a-o].low+t[a-o].close)/3}return s}))}},{name:\\"CR\\",shortName:\\"CR\\",calcParams:[26,10,20,40,60],figures:[{key:\\"cr\\",title:\\"CR: \\",type:\\"line\\"},{key:\\"ma1\\",title:\\"MA1: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA2: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA3: \\",type:\\"line\\"},{key:\\"ma4\\",title:\\"MA4: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.ceil(i[1]/2.5+1),n=Math.ceil(i[2]/2.5+1),r=Math.ceil(i[3]/2.5+1),a=Math.ceil(i[4]/2.5+1),s=0,l=[],u=0,c=[],h=0,d=[],p=0,v=[],g=[];return t.forEach((function(e,f){var m,y,_,x,S,C={},b=null!==(m=t[f-1])&&void 0!==m?m:e,T=(b.high+b.close+b.low+b.open)/4,w=Math.max(0,e.high-T),E=Math.max(0,T-e.low);i[0]-1>f||(C.cr=0!==E?w/E*100:0,s+=C.cr,u+=C.cr,h+=C.cr,p+=C.cr,i[0]+i[1]-2>f||(l.push(s/i[1]),i[0]+i[1]+o-3>f||(C.ma1=l[l.length-1-o]),s-=null!==(y=g[f-(i[1]-1)].cr)&&void 0!==y?y:0),i[0]+i[2]-2>f||(c.push(u/i[2]),i[0]+i[2]+n-3>f||(C.ma2=c[c.length-1-n]),u-=null!==(_=g[f-(i[2]-1)].cr)&&void 0!==_?_:0),i[0]+i[3]-2>f||(d.push(h/i[3]),i[0]+i[3]+r-3>f||(C.ma3=d[d.length-1-r]),h-=null!==(x=g[f-(i[3]-1)].cr)&&void 0!==x?x:0),i[0]+i[4]-2>f||(v.push(p/i[4]),i[0]+i[4]+a-3>f||(C.ma4=v[v.length-1-a]),p-=null!==(S=g[f-(i[4]-1)].cr)&&void 0!==S?S:0)),g.push(C)})),g}},{name:\\"DMA\\",shortName:\\"DMA\\",calcParams:[10,50,10],figures:[{key:\\"dma\\",title:\\"DMA: \\",type:\\"line\\"},{key:\\"ama\\",title:\\"AMA: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c={},h=e.close;n+=h,r+=h;var d=0,p=0;if(i[0]-1>l||(d=n/i[0],n-=t[l-(i[0]-1)].close),i[1]-1>l||(p=r/i[1],r-=t[l-(i[1]-1)].close),l>=o-1){var v=d-p;c.dma=v,a+=v,o+i[2]-2>l||(c.ama=a/i[2],a-=null!==(u=s[l-(i[2]-1)].dma)&&void 0!==u?u:0)}s.push(c)})),s}},{name:\\"DMI\\",shortName:\\"DMI\\",calcParams:[14,6],figures:[{key:\\"pdi\\",title:\\"PDI: \\",type:\\"line\\"},{key:\\"mdi\\",title:\\"MDI: \\",type:\\"line\\"},{key:\\"adx\\",title:\\"ADX: \\",type:\\"line\\"},{key:\\"adxr\\",title:\\"ADXR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=0,l=0,u=0,c=0,h=[];return t.forEach((function(e,d){var p,v,g={},f=null!==(p=t[d-1])&&void 0!==p?p:e,m=f.close,y=e.high,_=e.low,x=y-_,S=Math.abs(y-m),C=Math.abs(m-_),b=y-f.high,T=f.low-_,w=Math.max(Math.max(x,S),C),E=b>0&&b>T?b:0,I=T>0&&T>b?T:0;if(o+=w,n+=E,r+=I,d>=i[0]-1){d>i[0]-1?(a=a-a/i[0]+w,s=s-s/i[0]+E,l=l-l/i[0]+I):(a=o,s=n,l=r);var D=0,P=0;0!==a&&(D=100*s/a,P=100*l/a),g.pdi=D,g.mdi=P;var M=0;P+D!==0&&(M=Math.abs(P-D)/(P+D)*100),u+=M,2*i[0]-2>d||(g.adx=c=d>2*i[0]-2?(c*(i[0]-1)+M)/i[0]:u/i[0],2*i[0]+i[1]-3>d||(g.adxr=((null!==(v=h[d-(i[1]-1)].adx)&&void 0!==v?v:0)+c)/2))}h.push(g)})),h}},{name:\\"EMV\\",shortName:\\"EMV\\",calcParams:[14,9],figures:[{key:\\"emv\\",title:\\"EMV: \\",type:\\"line\\"},{key:\\"maEmv\\",title:\\"MAEMV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.map((function(e,r){var a,s={};if(r>0){var l=t[r-1],u=e.high,c=e.low,h=null!==(a=e.volume)&&void 0!==a?a:0,d=(u+c)/2-(l.high+l.low)/2;if(0===h||u-c==0)s.emv=0;else s.emv=d/(h/1e8/(u-c));o+=s.emv,n.push(s.emv),i[0]>r||(s.maEmv=o/i[0],o-=n[r-i[0]])}return s}))}},at,{name:\\"MTM\\",shortName:\\"MTM\\",calcParams:[12,6],figures:[{key:\\"mtm\\",title:\\"MTM: \\",type:\\"line\\"},{key:\\"maMtm\\",title:\\"MAMTM: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.forEach((function(e,r){var a,s={};rr||(s.maMtm=o/i[1],o-=null!==(a=n[r-(i[1]-1)].mtm)&&void 0!==a?a:0));n.push(s)})),n}},st,{name:\\"MACD\\",shortName:\\"MACD\\",calcParams:[12,26,9],figures:[{key:\\"dif\\",title:\\"DIF: \\",type:\\"line\\"},{key:\\"dea\\",title:\\"DEA: \\",type:\\"line\\"},{key:\\"macd\\",title:\\"MACD: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.macd)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.macd)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return l=c>0?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):0>c?C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor):C(i.styles,\\"bars[0].noChangeColor\\",o.bars[0].noChangeColor),{style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,color:l,borderColor:l}}}],calc:function(t,e){var i,o,n=e.calcParams,r=0,a=0,s=0,l=0,u=Math.max(n[0],n[1]);return t.map((function(t,e){var c={},h=t.close;return r+=h,n[0]-1>e||(i=e>n[0]-1?(2*h+(n[0]-1)*i)/(n[0]+1):r/n[0]),n[1]-1>e||(o=e>n[1]-1?(2*h+(n[1]-1)*o)/(n[1]+1):r/n[1]),u-1>e||(c.dif=a=i-o,s+=a,u+n[2]-2>e||(c.macd=2*(a-(l=e>u+n[2]-2?(2*a+l*(n[2]-1))/(n[2]+1):s/n[2])),c.dea=l)),c}))}},{name:\\"OBV\\",shortName:\\"OBV\\",calcParams:[30],figures:[{key:\\"obv\\",title:\\"OBV: \\",type:\\"line\\"},{key:\\"maObv\\",title:\\"MAOBV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[];return t.forEach((function(e,a){var s,l,u,c,h=null!==(s=t[a-1])&&void 0!==s?s:e;h.close>e.close?n-=null!==(l=e.volume)&&void 0!==l?l:0:e.close>h.close&&(n+=null!==(u=e.volume)&&void 0!==u?u:0);var d={obv:n};o+=n,i[0]-1>a||(d.maObv=o/i[0],o-=null!==(c=r[a-(i[0]-1)].obv)&&void 0!==c?c:0),r.push(d)})),r}},{name:\\"PVT\\",shortName:\\"PVT\\",figures:[{key:\\"pvt\\",title:\\"PVT: \\",type:\\"line\\"}],calc:function(t){var e=0;return t.map((function(i,o){var n,r,a={},s=null!==(n=i.volume)&&void 0!==n?n:1,l=(null!==(r=t[o-1])&&void 0!==r?r:i).close,u=0,c=l*s;return 0!==c&&(u=(i.close-l)/c),a.pvt=e+=u,a}))}},{name:\\"PSY\\",shortName:\\"PSY\\",calcParams:[12,6],figures:[{key:\\"psy\\",title:\\"PSY: \\",type:\\"line\\"},{key:\\"maPsy\\",title:\\"MAPSY: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[],a=[];return t.forEach((function(e,s){var l,u,c={},h=(null!==(l=t[s-1])&&void 0!==l?l:e).close,d=e.close-h>0?1:0;r.push(d),o+=d,i[0]-1>s||(c.psy=o/i[0]*100,n+=c.psy,i[0]+i[1]-2>s||(c.maPsy=n/i[1],n-=null!==(u=a[s-(i[1]-1)].psy)&&void 0!==u?u:0),o-=r[s-(i[0]-1)]),a.push(c)})),a}},{name:\\"ROC\\",shortName:\\"ROC\\",calcParams:[12,6],figures:[{key:\\"roc\\",title:\\"ROC: \\",type:\\"line\\"},{key:\\"maRoc\\",title:\\"MAROC: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[],n=0;return t.forEach((function(e,r){var a,s,l={};if(r>=i[0]-1){var u=(null!==(a=t[r-i[0]])&&void 0!==a?a:t[r-(i[0]-1)]).close;l.roc=0!==u?(e.close-u)/u*100:0,n+=l.roc,i[0]-1+i[1]-1>r||(l.maRoc=n/i[1],n-=null!==(s=o[r-(i[1]-1)].roc)&&void 0!==s?s:0)}o.push(l)})),o}},lt,{name:\\"SMA\\",shortName:\\"SMA\\",series:t.IndicatorSeries.Price,calcParams:[12,2],precision:2,figures:[{key:\\"sma\\",title:\\"SMA: \\",type:\\"line\\"}],shouldOhlc:!0,calc:function(t,e){var i=e.calcParams,o=0,n=0;return t.map((function(t,e){var r={},a=t.close;return o+=a,i[0]-1>e||(r.sma=n=e>i[0]-1?(a*i[1]+n*(i[0]-i[1]+1))/(i[0]+1):o/i[0]),r}))}},{name:\\"KDJ\\",shortName:\\"KDJ\\",calcParams:[9,3,3],figures:[{key:\\"k\\",title:\\"K: \\",type:\\"line\\"},{key:\\"d\\",title:\\"D: \\",type:\\"line\\"},{key:\\"j\\",title:\\"J: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[];return t.forEach((function(e,n){var r,a,s,l,u={},c=e.close;if(n>=i[0]-1){var h=K(t.slice(n-(i[0]-1),n+1),\\"high\\",\\"low\\"),d=h[1],p=h[0]-d;u.k=((i[1]-1)*(null!==(a=null===(r=o[n-1])||void 0===r?void 0:r.k)&&void 0!==a?a:50)+(c-d)/(0===p?1:p)*100)/i[1],u.d=((i[2]-1)*(null!==(l=null===(s=o[n-1])||void 0===s?void 0:s.d)&&void 0!==l?l:50)+u.k)/i[2],u.j=3*u.k-2*u.d}o.push(u)})),o}},{name:\\"SAR\\",shortName:\\"SAR\\",series:t.IndicatorSeries.Price,calcParams:[2,2,20],precision:2,shouldOhlc:!0,figures:[{key:\\"sar\\",title:\\"SAR: \\",type:\\"circle\\",styles:function(t,e,i){var o,n,r=t.current,a=null!==(n=null===(o=r.indicatorData)||void 0===o?void 0:o.sar)&&void 0!==n?n:Number.MIN_SAFE_INTEGER,s=r.kLineData;return{color:((null==s?void 0:s.high)+(null==s?void 0:s.low))/2>a?C(e.styles,\\"circles[0].upColor\\",i.circles[0].upColor):C(e.styles,\\"circles[0].downColor\\",i.circles[0].downColor)}}}],calc:function(t,e){var i=e.calcParams,o=i[0]/100,n=i[1]/100,r=i[2]/100,a=o,s=-100,l=!1,u=0;return t.map((function(e,i){var c=u,h=e.high,d=e.low;if(l){(-100===s||h>s)&&(s=h,a=Math.min(a+n,r)),u=c+a*(s-c);var p=Math.min(t[Math.max(1,i)-1].low,d);u>e.low?(u=s,a=o,s=-100,l=!l):u>p&&(u=p)}else{(-100===s||s>d)&&(s=d,a=Math.min(a+n,r)),u=c+a*(s-c);var v=Math.max(t[Math.max(1,i)-1].high,h);e.high>u?(u=s,a=0,s=-100,l=!l):v>u&&(u=v)}return{sar:u}}))}},{name:\\"TRIX\\",shortName:\\"TRIX\\",calcParams:[12,9],figures:[{key:\\"trix\\",title:\\"TRIX: \\",type:\\"line\\"},{key:\\"maTrix\\",title:\\"MATRIX: \\",type:\\"line\\"}],calc:function(t,e){var i,o,n,r=e.calcParams,a=0,s=0,l=0,u=0,c=[];return t.forEach((function(t,e){var h,d={},p=t.close;if(a+=p,e>=r[0]-1&&(s+=i=e>r[0]-1?(2*p+(r[0]-1)*i)/(r[0]+1):a/r[0],e>=2*r[0]-2&&(l+=o=e>2*r[0]-2?(2*i+(r[0]-1)*o)/(r[0]+1):s/r[0],e>=3*r[0]-3))){var v=void 0,g=0;e>3*r[0]-3?g=((v=(2*o+(r[0]-1)*n)/(r[0]+1))-n)/n*100:v=l/r[0],n=v,d.trix=g,u+=g,3*r[0]+r[1]-4>e||(d.maTrix=u/r[1],u-=null!==(h=c[e-(r[1]-1)].trix)&&void 0!==h?h:0)}c.push(d)})),c}},ut,{name:\\"VR\\",shortName:\\"VR\\",calcParams:[26,6],figures:[{key:\\"vr\\",title:\\"VR: \\",type:\\"line\\"},{key:\\"maVr\\",title:\\"MAVR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c,h,d,p,v={},g=e.close,f=(null!==(u=t[l-1])&&void 0!==u?u:e).close,m=null!==(c=e.volume)&&void 0!==c?c:0;if(g>f?o+=m:f>g?n+=m:r+=m,l>=i[0]-1){var y=r/2;v.vr=n+y===0?0:(o+y)/(n+y)*100,a+=v.vr,i[0]+i[1]-2>l||(v.maVr=a/i[1],a-=null!==(h=s[l-(i[1]-1)].vr)&&void 0!==h?h:0);var _=t[l-(i[0]-1)],x=null!==(d=t[l-i[0]])&&void 0!==d?d:_,S=_.close,C=null!==(p=_.volume)&&void 0!==p?p:0;S>x.close?o-=C:x.close>S?n-=C:r-=C}s.push(v)})),s}},ct];function pt(t){var e;return null!==(e=ht[t])&&void 0!==e?e:null}dt.forEach((function(t){ht[t.name]=nt.extend(t)}));var vt,gt=function(){function e(t){this._instances=new Map,this._chartStore=t}return e.prototype._overrideInstance=function(t,e){var i=e.shortName,o=e.series,n=e.calcParams,r=e.precision,a=e.figures,s=e.minValue,l=e.maxValue,u=e.shouldOhlc,c=e.shouldFormatBigNumber,h=e.visible,d=e.styles,p=e.extendData,v=e.regenerateFigures,g=e.createTooltipDataSource,f=e.draw,m=e.calc,y=!1;void 0!==i&&t.setShortName(i)&&(y=!0),void 0!==o&&t.setSeries(o)&&(y=!0);var _=!1;return void 0!==n&&t.setCalcParams(n)&&(y=!0,_=!0),void 0!==a&&t.setFigures(a)&&(y=!0,_=!0),void 0!==s&&t.setMinValue(s)&&(y=!0),void 0!==l&&t.setMinValue(l)&&(y=!0),void 0!==r&&t.setPrecision(r)&&(y=!0),void 0!==u&&t.setShouldOhlc(u)&&(y=!0),void 0!==c&&t.setShouldFormatBigNumber(c)&&(y=!0),void 0!==h&&t.setVisible(h)&&(y=!0),void 0!==d&&t.setStyles(d)&&(y=!0),void 0!==p&&t.setExtendData(p)&&(y=!0,_=!0),void 0!==v&&t.setRegenerateFigures(v)&&(y=!0),void 0!==g&&t.setCreateTooltipDataSource(g)&&(y=!0),void 0!==f&&t.setDraw(f)&&(y=!0),void 0!==m&&(t.calc=m,_=!0),[y,_]},e.prototype.addInstance=function(t,e,i){var o;return A(this,void 0,void 0,(function(){var n,r,a,s;return F(this,(function(l){switch(l.label){case 0:return n=t.name,r=this._instances.get(e),null!==(o=null==r?void 0:r.has(n))&&void 0!==o&&o?[4,Promise.reject(Error(\\"Duplicate indicators.\\"))]:[3,2];case 1:case 3:return[2,l.sent()];case 2:return void 0===r&&(r=new Map,this._instances.set(e,r)),a=pt(n),s=new a,this._overrideInstance(s,t),i||r.clear(),r.set(n,s),[4,s.calcIndicator(this._chartStore.getDataList())]}}))}))},e.prototype.getInstances=function(t){var e;return null!==(e=this._instances.get(t))&&void 0!==e?e:new Map},e.prototype.removeInstance=function(t,e){var i=!1,o=this._instances.get(t);return void 0!==o&&(void 0!==e?o.has(e)&&(o.delete(e),i=!0):(o.clear(),i=!0),0===o.size&&this._instances.delete(t)),i},e.prototype.hasInstances=function(t){return this._instances.has(t)},e.prototype.calcInstance=function(t,e){var i;return A(this,void 0,void 0,(function(){var o,n,r,a=this;return F(this,(function(s){switch(s.label){case 0:return o=[],void 0!==t?void 0!==e?(n=this._instances.get(e),null!==(i=null==n?void 0:n.has(t))&&void 0!==i&&i&&(r=null==n?void 0:n.get(t),o.push(r.calcIndicator(this._chartStore.getDataList())))):this._instances.forEach((function(e){if(e.has(t)){var i=null==e?void 0:e.get(t);o.push(i.calcIndicator(a._chartStore.getDataList()))}})):this._instances.forEach((function(t){t.forEach((function(t){o.push(t.calcIndicator(a._chartStore.getDataList()))}))})),[4,Promise.all(o)];case 1:return[2,s.sent().includes(!0)]}}))}))},e.prototype.getInstanceByPaneId=function(t,e){var i;if(void 0!==t){var o=this._instances.get(t);return void 0!==e?null!==(i=null==o?void 0:o.get(e))&&void 0!==i?i:null:null!=o?o:null}return this._instances},e.prototype.setSeriesPrecision=function(e){this._instances.forEach((function(i){i.forEach((function(i){i.series===t.IndicatorSeries.Price&&i.setPrecision(e.price,!0),i.series===t.IndicatorSeries.Volume&&i.setPrecision(e.volume,!0)}))}))},e.prototype.override=function(t,e){return A(this,void 0,void 0,(function(){var i,o,n,r,a,s,l=this;return F(this,(function(u){switch(u.label){case 0:return i=t.name,o=new Map,null!==e?void 0!==(n=this._instances.get(e))&&o.set(e,n):o=this._instances,r=!1,a=[],o.forEach((function(e){var o=e.get(i);if(void 0!==o){var n=l._overrideInstance(o,t);n[1]?a.push(o.calcIndicator(l._chartStore.getDataList())):n[0]&&(r=!0)}})),[4,Promise.all(a)];case 1:return s=u.sent(),[2,[r,s.includes(!0)]]}}))}))},e}(),ft=function(){function t(t){this._crosshair={},this._activeIcon=null,this._chartStore=t}return t.prototype.setCrosshair=function(t,e){var i,o,n=this._chartStore.getDataList(),r=null!=t?t:{},a=n[o=void 0!==r.x?0>(i=this._chartStore.getTimeScaleStore().coordinateToDataIndex(r.x))?0:i>n.length-1?n.length-1:i:i=n.length-1],s=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(i),l=this._crosshair.x,u=this._crosshair.y,c=this._crosshair.paneId;this._crosshair=k(k({},r),{realX:s,kLineData:a,realDataIndex:i,dataIndex:o}),l===r.x&&u===r.y&&c===r.paneId||(null!==a&&this._chartStore.getChart().crosshairChange(this._crosshair),null!=e&&e||this._chartStore.getChart().updatePane(1))},t.prototype.recalculateCrosshair=function(t){this.setCrosshair(this._crosshair,t)},t.prototype.getCrosshair=function(){return this._crosshair},t.prototype.setActiveIcon=function(t){this._activeIcon=null!=t?t:null},t.prototype.getActiveIcon=function(){return this._activeIcon},t.prototype.clear=function(){this.setCrosshair({},!0),this.setActiveIcon()},t}();t.OverlayMode=void 0,(vt=t.OverlayMode||(t.OverlayMode={})).Normal=\\"normal\\",vt.WeakMagnet=\\"weak_magnet\\",vt.StrongMagnet=\\"strong_magnet\\";var mt=1,yt=\\"overlay_figure_\\",_t=Number.MAX_SAFE_INTEGER,xt=function(){function o(e){this.currentStep=mt,this.points=[],this._prevPressedPoint=null,this._prevPressedPoints=[];var i=e.mode,o=e.modeSensitivity,n=e.extendData,r=e.styles,a=e.totalStep,s=e.lock,l=e.visible,u=e.zLevel,c=e.needDefaultPointFigure,h=e.needDefaultXAxisFigure,d=e.needDefaultYAxisFigure,p=e.createPointFigures,v=e.createXAxisFigures,g=e.createYAxisFigures,f=e.performEventPressedMove,m=e.performEventMoveForDrawing,y=e.onDrawStart,_=e.onDrawing,x=e.onDrawEnd,S=e.onClick,C=e.onDoubleClick,b=e.onRightClick,T=e.onPressedMoveStart,w=e.onPressedMoving,E=e.onPressedMoveEnd,I=e.onMouseEnter,D=e.onMouseLeave,P=e.onRemoved,M=e.onSelected,k=e.onDeselected;this.name=e.name,this.totalStep=void 0===a||2>a?1:a,this.lock=null!=s&&s,this.visible=null==l||l,this.zLevel=null!=u?u:0,this.needDefaultPointFigure=null!=c&&c,this.needDefaultXAxisFigure=null!=h&&h,this.needDefaultYAxisFigure=null!=d&&d,this.mode=null!=i?i:t.OverlayMode.Normal,this.modeSensitivity=null!=o?o:8,this.extendData=n,this.styles=null!=r?r:{},this.createPointFigures=null!=p?p:null,this.createXAxisFigures=null!=v?v:null,this.createYAxisFigures=null!=g?g:null,this.performEventPressedMove=null!=f?f:null,this.performEventMoveForDrawing=null!=m?m:null,this.onDrawStart=null!=y?y:null,this.onDrawing=null!=_?_:null,this.onDrawEnd=null!=x?x:null,this.onClick=null!=S?S:null,this.onDoubleClick=null!=C?C:null,this.onRightClick=null!=b?b:null,this.onPressedMoveStart=null!=T?T:null,this.onPressedMoving=null!=w?w:null,this.onPressedMoveEnd=null!=E?E:null,this.onMouseEnter=null!=I?I:null,this.onMouseLeave=null!=D?D:null,this.onRemoved=null!=P?P:null,this.onSelected=null!=M?M:null,this.onDeselected=null!=k?k:null}return o.prototype.setId=function(t){return void 0===this.id&&(this.id=t,!0)},o.prototype.setGroupId=function(t){return void 0===this.groupId&&(this.groupId=t,!0)},o.prototype.setDefaultZLevel=function(t){return void 0===this.defaultZLevel&&(this.defaultZLevel=t,!0)},o.prototype.setPaneId=function(t){this.paneId=t},o.prototype.setExtendData=function(t){return t!==this.extendData&&(this.extendData=t,!0)},o.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},o.prototype.setPoints=function(t){if(t.length>0){var e=void 0;if(this.points=B([],R(t),!1),this.totalStep-1>t.length?(this.currentStep=t.length+1,e=t.length):(this.currentStep=-1,e=this.totalStep-1),null!==this.performEventMoveForDrawing)for(var i=0;e>i;i++)this.performEventMoveForDrawing({currentStep:i+2,mode:this.mode,points:this.points,performPointIndex:i,performPoint:this.points[i]});return-1===this.currentStep&&null!==this.performEventPressedMove&&this.performEventPressedMove({currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:this.points.length-1,performPoint:this.points[this.points.length-1]}),!0}return!1},o.prototype.setLock=function(t){return this.lock!==t&&(this.lock=t,!0)},o.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},o.prototype.resetZLevel=function(){this.zLevel=this.defaultZLevel},o.prototype.setZLevel=function(t){return this.zLevel!==t&&(this.zLevel=t,!0)},o.prototype.setMode=function(t){return this.mode!==t&&(this.mode=t,!0)},o.prototype.setModeSensitivity=function(t){return this.modeSensitivity!==t&&(this.modeSensitivity=t,!0)},o.prototype.setOnDrawStartCallback=function(t){return this.onDrawStart!==t&&(this.onDrawStart=t,!0)},o.prototype.setOnDrawingCallback=function(t){return this.onDrawing!==t&&(this.onDrawing=t,!0)},o.prototype.setOnDrawEndCallback=function(t){return this.onDrawEnd!==t&&(this.onDrawEnd=t,!0)},o.prototype.setOnClickCallback=function(t){return this.onClick!==t&&(this.onClick=t,!0)},o.prototype.setOnDoubleClickCallback=function(t){return this.onDoubleClick!==t&&(this.onDoubleClick=t,!0)},o.prototype.setOnRightClickCallback=function(t){return this.onRightClick!==t&&(this.onRightClick=t,!0)},o.prototype.setOnPressedMoveStartCallback=function(t){return this.onPressedMoveStart!==t&&(this.onPressedMoveStart=t,!0)},o.prototype.setOnPressedMovingCallback=function(t){return this.onPressedMoving!==t&&(this.onPressedMoving=t,!0)},o.prototype.setOnPressedMoveEndCallback=function(t){return this.onPressedMoveEnd!==t&&(this.onPressedMoveEnd=t,!0)},o.prototype.setOnMouseEnterCallback=function(t){return this.onMouseEnter!==t&&(this.onMouseEnter=t,!0)},o.prototype.setOnMouseLeaveCallback=function(t){return this.onMouseLeave!==t&&(this.onMouseLeave=t,!0)},o.prototype.setOnRemovedCallback=function(t){return this.onRemoved!==t&&(this.onRemoved=t,!0)},o.prototype.setOnSelectedCallback=function(t){return this.onSelected!==t&&(this.onSelected=t,!0)},o.prototype.setOnDeselectedCallback=function(t){return this.onDeselected!==t&&(this.onDeselected=t,!0)},o.prototype.nextStep=function(){this.currentStep===this.totalStep-1?this.currentStep=-1:this.currentStep++},o.prototype.forceComplete=function(){this.currentStep=-1},o.prototype.isDrawing=function(){return-1!==this.currentStep},o.prototype.isStart=function(){return this.currentStep===mt},o.prototype.eventMoveForDrawing=function(t){var e,i=this.currentStep-1,o={};void 0!==t.timestamp&&(o.timestamp=t.timestamp),void 0!==t.dataIndex&&(o.dataIndex=t.dataIndex),void 0!==t.value&&(o.value=t.value),this.points[i]=o,null===(e=this.performEventMoveForDrawing)||void 0===e||e.call(this,{currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:i,performPoint:o})},o.prototype.eventPressedPointMove=function(t,e){var i;void 0!==t.dataIndex&&(this.points[e].dataIndex=t.dataIndex,this.points[e].timestamp=t.timestamp),void 0!==t.value&&(this.points[e].value=t.value),null===(i=this.performEventPressedMove)||void 0===i||i.call(this,{currentStep:this.currentStep,points:this.points,mode:this.mode,performPointIndex:e,performPoint:this.points[e]})},o.prototype.startPressedMove=function(t){this._prevPressedPoint=k({},t),this._prevPressedPoints=i(this.points)},o.prototype.eventPressedOtherMove=function(t,e){var i,o;null!==this._prevPressedPoint&&(void 0!==t.dataIndex&&void 0!==this._prevPressedPoint.dataIndex&&(i=t.dataIndex-this._prevPressedPoint.dataIndex),void 0!==t.value&&void 0!==this._prevPressedPoint.value&&(o=t.value-this._prevPressedPoint.value),this.points=this._prevPressedPoints.map((function(t){var n;void 0===t.dataIndex&&void 0!==t.timestamp&&(t.dataIndex=e.timestampToDataIndex(t.timestamp));var r=k({},t);return void 0!==i&&void 0!==t.dataIndex&&(r.dataIndex=t.dataIndex+i,r.timestamp=null!==(n=e.dataIndexToTimestamp(r.dataIndex))&&void 0!==n?n:void 0),void 0!==o&&void 0!==t.value&&(r.value=t.value+o),r})))},o.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i}(o)},o}(),St={name:\\"fibonacciLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.precision,o=t.thousandsSeparator,n=t.overlay.points;if(e.length>0){var r=[],a=[],s=t.bounding.width;if(e.length>1&&void 0!==n[0].value&&void 0!==n[1].value){var l=e[0].y-e[1].y,u=n[0].value-n[1].value;[1,.786,.618,.5,.382,.236,0].forEach((function(t){var c,h=e[1].y+l*t,d=E(((null!==(c=n[1].value)&&void 0!==c?c:0)+u*t).toFixed(i.price),o);r.push({coordinates:[{x:0,y:h},{x:s,y:h}]}),a.push({x:0,y:h,text:\\"\\".concat(d,\\" (\\").concat((100*t).toFixed(1),\\"%)\\"),baseline:\\"bottom\\"})}))}return[{type:\\"line\\",attrs:r},{type:\\"text\\",isCheckEvent:!1,attrs:a}]}return[]}},Ct={name:\\"horizontalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i={x:0,y:e[0].y};return void 0!==e[1]&&e[1].x>e[0].x&&(i.x=t.bounding.width),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},bt=function(){function t(){this._children=[],this._callbacks=new Map}return t.prototype.registerEvent=function(t,e){return this._callbacks.set(t,e),this},t.prototype.onEvent=function(t,e,i){var o=this._callbacks.get(t);return!(void 0===o||!this.checkEventOn(e))&&o(e,i)},t.prototype.checkEventOn=function(t){var e,i;try{for(var o=L(this._children),n=o.next();!n.done;n=o.next()){if(n.value.checkEventOn(t))return!0}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return!1},t.prototype.dispatchEvent=function(t,e,i){var o=this._children.length-1;if(o>-1)for(var n=o;n>-1;n--)if(this._children[n].dispatchEvent(t,e,i))return!0;return this.onEvent(t,e,i)},t.prototype.addChild=function(t){return this._children.push(t),this},t.prototype.clear=function(){this._children=[]},t}(),Tt=2,wt=function(t){function e(e){var i=t.call(this)||this;return i.attrs=e.attrs,i.styles=e.styles,i}return P(e,t),e.prototype.checkEventOn=function(t){return this.checkEventOnImp(t,this.attrs,this.styles)},e.prototype.draw=function(t){this.drawImp(t,this.attrs,this.styles)},e.extend=function(t){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.checkEventOnImp=function(e,i,o){return t.checkEventOn(e,i,o)},i.prototype.drawImp=function(e,i,o){t.draw(e,i,o)},i}(e);return i},e}(bt);function Et(t,e){return Math.sqrt(Math.pow(t.x+e.x,2)+Math.pow(t.y+e.y,2))}function It(t){var e=Et(t[0],t[1]),i=e+Et(t[1],t[2]),o=[t[2].x-t[0].x,t[2].y-t[0].y];return[{x:t[1].x-.5*o[0]*e/i,y:t[1].y-.5*o[1]*e/i},{x:t[1].x+.5*o[0]*e/i,y:t[1].y+.5*o[1]*e/i}]}function Dt(t,e){var i=e.coordinates;if(i.length>1)for(var o=1;i.length>o;o++){var n=i[o-1],r=i[o];if(n.x===r.x){if(Tt+Tt>Math.abs(n.y-t.y)+Math.abs(r.y-t.y)-Math.abs(n.y-r.y)&&Tt>Math.abs(t.x-n.x))return!0}else{var a=kt(n,r),s=Pt(a,t),l=Math.abs(s-t.y);if(Tt+Tt>Math.abs(n.x-t.x)+Math.abs(r.x-t.x)-Math.abs(n.x-r.x)&&Tt*Tt>l*l/(a[0]*a[0]+1))return!0}}return!1}function Pt(t,e){return null!=t?e.x*t[0]+t[1]:e.y}function Mt(t,e,i){return Pt(kt(t,e),i)}function kt(t,e){var i=t.x-e.x;if(0!==i){var o=(t.y-e.y)/i;return[o,t.y-o*t.x]}return null}function At(e,i,o){var n=i.coordinates,r=n.length;if(r>1){var a=o.style,s=void 0===a?t.LineType.Solid:a,l=o.smooth,u=o.size,c=o.color,h=void 0===c?\\"currentColor\\":c,d=o.dashedValue,p=void 0===d?[2,2]:d;if(e.lineWidth=void 0===u?1:u,e.strokeStyle=h,e.setLineDash(s===t.LineType.Dashed?p:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y),null!=l&&l){for(var v=[],g=1;r-1>g;g++)v=v.concat(It([n[g-1],n[g],n[g+1]]));e.quadraticCurveTo(v[0].x,v[0].y,n[1].x,n[1].y);for(var f=2;r-1>f;f++)e.bezierCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,v[2*(f-1)].x,v[2*(f-1)].y,n[f].x,n[f].y);e.quadraticCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,n[f].x,n[f].y)}else for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.stroke(),e.closePath()}}var Ft={name:\\"line\\",checkEventOn:Dt,draw:function(t,e,i){At(t,e,i)}};function Lt(t,e,i){var o=null!=i?i:0,n=[];if(t.length>1)if(t[0].x===t[1].x){var r=e.height;if(n.push({coordinates:[{x:t[0].x,y:0},{x:t[0].x,y:r}]}),t.length>2){n.push({coordinates:[{x:t[2].x,y:0},{x:t[2].x,y:r}]});for(var a=t[0].x-t[2].x,s=0;o>s;s++){var l=a*(s+1);n.push({coordinates:[{x:t[0].x+l,y:0},{x:t[0].x+l,y:r}]})}}}else{var u=e.width,c=kt(t[0],t[1]),h=c[0],d=c[1];if(n.push({coordinates:[{x:0,y:0*h+d},{x:u,y:u*h+d}]}),t.length>2){var p=t[2].y-h*t[2].x;n.push({coordinates:[{x:0,y:0*h+p},{x:u,y:u*h+p}]});for(a=d-p,s=0;o>s;s++){var v=d+a*(s+1);n.push({coordinates:[{x:0,y:0*h+v},{x:u,y:u*h+v}]})}}}return n}function Rt(t,e){if(t.length>1){var i=void 0;return i=t[0].x===t[1].x&&t[0].y!==t[1].y?t[1].y>t[0].y?{x:t[0].x,y:e.height}:{x:t[0].x,y:0}:t[0].x>t[1].x?{x:0,y:Mt(t[0],t[1],{x:0,y:t[0].y})}:{x:e.width,y:Mt(t[0],t[1],{x:e.width,y:t[0].y})},{coordinates:[t[0],i]}}return[]}var Bt={name:\\"simpleAnnotation\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"},line:{style:t.LineType.Dashed}},createPointFigures:function(t){var e,i,o=t.overlay,r=t.coordinates;s(o.extendData)&&(i=n(o.extendData)?o.extendData(o):null!==(e=o.extendData)&&void 0!==e?e:\\"\\");var a=r[0].x,l=r[0].y-6,u=l-50,c=u-5;return[{type:\\"line\\",attrs:{coordinates:[{x:a,y:l},{x:a,y:u}]},ignoreEvent:!0},{type:\\"polygon\\",attrs:{coordinates:[{x:a,y:u},{x:a-4,y:c},{x:a+4,y:c}]},ignoreEvent:!0},{type:\\"text\\",attrs:{x:a,y:c,text:null!=i?i:\\"\\",align:\\"center\\",baseline:\\"bottom\\"},ignoreEvent:!0}]}},Ot={name:\\"simpleTag\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}},createPointFigures:function(t){var e=t.coordinates;return{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]},ignoreEvent:!0}},createYAxisFigures:function(t){var e,i,o,r,a,l=t.overlay,u=t.coordinates,c=t.bounding,h=t.yAxis,d=t.precision;return null!==(e=null==h?void 0:h.isFromZero())&&void 0!==e&&e?(o=\\"left\\",r=0):(o=\\"right\\",r=c.width),s(l.extendData)&&(a=n(l.extendData)?l.extendData(l):null!==(i=l.extendData)&&void 0!==i?i:\\"\\"),s(a)||void 0===l.points[0].value||(a=T(l.points[0].value,d.price)),{type:\\"text\\",attrs:{x:r,y:u[0].y,text:null!=a?a:\\"\\",align:o,baseline:\\"middle\\"}}}},Vt={};function Nt(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null}function Wt(t){var i={width:0,height:0,left:0,right:0,top:0,bottom:0};return void 0!==t&&e(i,t),i}[St,Ct,{name:\\"horizontalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=[];return 2===e.length&&i.push({coordinates:e}),[{type:\\"line\\",attrs:i}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},{name:\\"horizontalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]}}]}},{name:\\"parallelStraightLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding)}]}},{name:\\"priceChannelLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding,1)}]}},{name:\\"priceLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.thousandsSeparator,o=t.overlay.points[0].value;return[{type:\\"line\\",attrs:{coordinates:[e[0],{x:t.bounding.width,y:e[0].y}]}},{type:\\"text\\",ignoreEvent:!0,attrs:{x:e[0].x,y:e[0].y,text:E((void 0===o?0:o).toFixed(t.precision.price),i),baseline:\\"bottom\\"}}]}},{name:\\"rayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Rt(t.coordinates,t.bounding)}]}},{name:\\"segment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]}},{name:\\"straightLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.bounding;return 2===e.length?e[0].x===e[1].x?[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:i.height}]}}]:[{type:\\"line\\",attrs:{coordinates:[{x:0,y:Mt(e[0],e[1],{x:0,y:e[0].y})},{x:i.width,y:Mt(e[0],e[1],{x:i.width,y:e[0].y})}]}}]:[]}},{name:\\"verticalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;if(2===e.length){var i={x:e[0].x,y:0};return e[1].y>e[0].y&&(i.y=t.bounding.height),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]}return[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:t.bounding.height}]}}]}},Bt,Ot].forEach((function(t){Vt[t.name]=xt.extend(t)}));var zt=\\"main\\",Yt=\\"xAxis\\",Xt=\\"yAxis\\",Ht=\\"separator\\",jt=function(t){function i(e,i){var o=t.call(this)||this;return o._bounding=Wt(),o._pane=i,o._init(e),o}return P(i,t),i.prototype._init=function(t){if(this._container=Y(\\"div\\",this.getContainerStyle()),this.insertBefore()){var e=t.lastChild;null!==e?t.insertBefore(this._container,e):t.appendChild(this._container)}else t.appendChild(this._container);this.initDom(this._container)},i.prototype.setBounding=function(t){return e(this._bounding,t),this},i.prototype.getContainer=function(){return this._container},i.prototype.getBounding=function(){return this._bounding},i.prototype.getPane=function(){return this._pane},i.prototype.update=function(t){this.updateImp(this._container,this._bounding,null!=t?t:3)},i.prototype.insertBefore=function(){return!1},i}(bt);var Zt=function(e){function i(t,i){var o,n,r,a=e.call(this,t,i)||this;return a._dragFlag=!1,a._dragStartY=0,a._topPaneHeight=0,a._currentPaneHeight=0,a._pressedMouseMoveEvent=(o=a._pressedTouchMouseMoveEvent,n=20,r=0,function(){var t=Date.now();t-r>(null!=n?n:20)&&(o.apply(this,arguments),r=t)}),a.registerEvent(\\"touchStartEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"touchMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"touchEndEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"mouseDownEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"mouseUpEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"pressedMouseMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"mouseEnterEvent\\",a._mouseEnterEvent.bind(a)).registerEvent(\\"mouseLeaveEvent\\",a._mouseLeaveEvent.bind(a)),a}return P(i,e),i.prototype.getName=function(){return Ht},i.prototype.checkEventOn=function(){return!0},i.prototype._mouseDownEvent=function(t){var e,i;this._dragFlag=!0,this._dragStartY=t.pageY;var o=this.getPane();return this._topPaneHeight=null!==(i=null===(e=o.getTopPane())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,this._currentPaneHeight=o.getBounding().height,!0},i.prototype._mouseUpEvent=function(){return this._dragFlag=!1,this._mouseLeaveEvent()},i.prototype._pressedTouchMouseMoveEvent=function(e){var i=e.pageY-this._dragStartY,o=this.getPane(),n=o.getTopPane(),r=0>i;if(null!==n&&o.getOptions().dragEnabled){var a=void 0,s=void 0,l=void 0,u=void 0;r?(a=n,s=o,l=this._topPaneHeight,u=this._currentPaneHeight):(a=o,s=n,l=this._currentPaneHeight,u=this._topPaneHeight);var c=a.getOptions().minHeight;if(l>c){var h=Math.max(l-Math.abs(i),c),d=l-h;a.setBounding({height:h}),s.setBounding({height:u+d});var p=o.getChart();p.getChartStore().getActionStore().execute(t.ActionType.OnPaneDrag,{paneId:o.getId}),p.adjustPaneViewport(!0,!0,!0,!0,!0)}}return!0},i.prototype._mouseEnterEvent=function(){var t=this.getPane();if(t.getOptions().dragEnabled){var e=t.getChart().getStyles().separator;return this._moveDom.style.background=e.activeBackgroundColor,!0}return!1},i.prototype._mouseLeaveEvent=function(){return!this._dragFlag&&(this._moveDom.style.background=\\"\\",!0)},i.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",boxSizing:\\"border-box\\"}},i.prototype.insertBefore=function(){return!0},i.prototype.initDom=function(t){this._moveDom=Y(\\"div\\",{width:\\"100%\\",height:\\"\\".concat(7,\\"px\\"),margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"-3px\\",zIndex:\\"20\\",boxSizing:\\"border-box\\",cursor:\\"ns-resize\\"}),t.appendChild(this._moveDom)},i.prototype.updateImp=function(t,e,i){if(4===i||2===i){var o=this.getPane().getChart().getStyles().separator;this._moveDom.style.top=\\"\\".concat(-Math.floor((7-o.size)/2),\\"px\\"),this._moveDom.style.height=\\"\\".concat(7,\\"px\\");var n=o.fill;t.style.backgroundColor=o.color,t.style.height=\\"\\".concat(o.size,\\"px\\"),t.style.marginLeft=\\"\\".concat(n?0:e.left,\\"px\\"),t.style.width=n?\\"100%\\":\\"\\".concat(e.width,\\"px\\")}},i.prototype.getImage=function(){var t=this.getPane().getChart().getStyles().separator,e=this.getContainer().offsetWidth,i=t.size,o=Y(\\"canvas\\",{width:\\"\\".concat(e,\\"px\\"),height:\\"\\".concat(i,\\"px\\"),boxSizing:\\"border-box\\"}),n=o.getContext(\\"2d\\"),r=X(o);return o.width=e*r,o.height=i*r,n.scale(r,r),n.fillStyle=t.color,n.fillRect(this.getBounding().left,0,e,i),o},i}(jt),Gt=30,Kt={CANDLE:\\"candle_pane\\",INDICATOR:\\"indicator_pane_\\",XAXIS:\\"xaxis_pane\\"},Ut=function(){function t(t,e,i,o,n){this._yAxisWidget=null,this._separatorWidget=null,this._axis=this.createAxisComponent(),this._bounding=Wt(),this._options={minHeight:Gt,dragEnabled:!0,gap:{top:.2,bottom:.1},axisOptions:{scrollZoomEnabled:!0}},this._chart=e,this._id=i,this._topPane=null!=o?o:null,this._bottomPane=null!=n?n:null,this._init(t)}return t.prototype._init=function(t){this._container=t,this._seriesContainer=Y(\\"div\\",{width:\\"100%\\",margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}),this._separatorWidget=this.createSeparatorWidget(t);var e=t.lastChild;null!==e?t.insertBefore(this._seriesContainer,e):t.appendChild(this._seriesContainer),this._mainWidget=this.createMainWidget(this._seriesContainer),this._yAxisWidget=this.createYAxisWidget(this._seriesContainer)},t.prototype.getContainer=function(){return this._seriesContainer},t.prototype.getId=function(){return this._id},t.prototype.setOptions=function(t){var i,o,n,r,a;return e(this._options,t),this.getId()===Kt.XAXIS?(r=this.getMainWidget().getContainer(),a=\\"ew-resize\\"):(r=null===(i=this.getYAxisWidget())||void 0===i?void 0:i.getContainer(),a=\\"ns-resize\\"),r.style.cursor=null===(n=null===(o=t.axisOptions)||void 0===o?void 0:o.scrollZoomEnabled)||void 0===n||n?a:\\"default\\",this},t.prototype.getOptions=function(){return this._options},t.prototype.getChart=function(){return this._chart},t.prototype.getAxisComponent=function(){return this._axis},t.prototype.setBounding=function(t,i,o){var n,r,a;e(this._bounding,t);var s=0;if(null!==this._separatorWidget){s=this._chart.getStyles().separator.size;var l=k(k({},t),{height:7});void 0!==t.top&&(l.top=t.top-Math.floor((7-s)/2)),this._separatorWidget.setBounding(l)}var u={};return void 0!==t.height&&(u.height=t.height-s),void 0!==t.top&&(u.top=t.top+s),this._mainWidget.setBounding(u),null===(n=this._yAxisWidget)||void 0===n||n.setBounding(u),void 0!==i&&(this._mainWidget.setBounding(i),null===(r=this._separatorWidget)||void 0===r||r.setBounding(i)),void 0!==o&&(null===(a=this._yAxisWidget)||void 0===a||a.setBounding(o)),this},t.prototype.getTopPane=function(){return this._topPane},t.prototype.setTopPane=function(t){return this._topPane=t,this},t.prototype.getBottomPane=function(){return this._bottomPane},t.prototype.setBottomPane=function(t){return this._bottomPane=t,this},t.prototype.getBounding=function(){return this._bounding},t.prototype.getMainWidget=function(){return this._mainWidget},t.prototype.getYAxisWidget=function(){return this._yAxisWidget},t.prototype.getSeparatorWidget=function(){return this._separatorWidget},t.prototype.update=function(t){var e,i;this._bounding.width!==this._seriesContainer.offsetWidth&&(this._seriesContainer.style.width=\\"\\".concat(this._bounding.width,\\"px\\"));var o=this._mainWidget.getBounding().height;o!==this._seriesContainer.offsetHeight&&(this._seriesContainer.style.height=\\"\\".concat(o,\\"px\\"));var n=null!=t?t:3;this._mainWidget.update(n),null===(e=this._yAxisWidget)||void 0===e||e.update(n),null===(i=this._separatorWidget)||void 0===i||i.update(n)},t.prototype.getImage=function(t){var e=this._bounding,i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);n.width=i*a,n.height=o*a,r.scale(a,a);var s=0;if(null!=this._separatorWidget){var l=this.getChart().getStyles().separator.size;s=l,r.drawImage(this._separatorWidget.getImage(),0,0,i,l)}var u=this._mainWidget.getBounding();if(r.drawImage(this._mainWidget.getImage(t),u.left,s,u.width,u.height),null!==this._yAxisWidget){var c=this._yAxisWidget.getBounding();r.drawImage(this._yAxisWidget.getImage(t),c.left,s,c.width,c.height)}return n},t.prototype.destroy=function(){this._container.removeChild(this._seriesContainer),null!==this._separatorWidget&&this._container.removeChild(this._separatorWidget.getContainer())},t.prototype.createSeparatorWidget=function(t){return null},t.prototype.createYAxisWidget=function(t){return null},t}(),qt=function(){function t(t){this._instances=new Map,this._counter=new Map,this._progressInstanceInfo=null,this._pressedInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._hoverInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._clickInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._chartStore=t}return t.prototype._overrideInstance=function(t,e){var i=e.id,o=e.groupId,n=e.points,r=e.styles,a=e.lock,s=e.visible,l=e.zLevel,u=e.mode,c=e.modeSensitivity,h=e.extendData,d=e.onDrawStart,p=e.onDrawing,v=e.onDrawEnd,g=e.onClick,f=e.onDoubleClick,m=e.onRightClick,y=e.onPressedMoveStart,_=e.onPressedMoving,x=e.onPressedMoveEnd,S=e.onMouseEnter,C=e.onMouseLeave,b=e.onRemoved,T=e.onSelected,w=e.onDeselected,E=!1,I=!1;return void 0!==i&&t.setId(i),void 0!==o&&t.setGroupId(o),void 0!==n&&t.setPoints(n)&&(E=!0),void 0!==r&&t.setStyles(r)&&(E=!0),void 0!==a&&t.setLock(a),void 0!==s&&t.setVisible(s)&&(E=!0),void 0!==l&&t.setZLevel(l)&&(E=!0,I=!0),void 0!==u&&t.setMode(u),void 0!==c&&t.setModeSensitivity(c),void 0!==h&&t.setExtendData(h)&&(E=!0),void 0!==d&&t.setOnDrawStartCallback(d),void 0!==p&&t.setOnDrawingCallback(p),void 0!==v&&t.setOnDrawEndCallback(v),void 0!==g&&t.setOnClickCallback(g),void 0!==f&&t.setOnDoubleClickCallback(f),void 0!==m&&t.setOnRightClickCallback(m),void 0!==y&&t.setOnPressedMoveStartCallback(y),void 0!==_&&t.setOnPressedMovingCallback(_),void 0!==x&&t.setOnPressedMoveEndCallback(x),void 0!==S&&t.setOnMouseEnterCallback(S),void 0!==C&&t.setOnMouseLeaveCallback(C),void 0!==b&&t.setOnRemovedCallback(b),void 0!==T&&t.setOnSelectedCallback(T),void 0!==w&&t.setOnDeselectedCallback(w),[E,I]},t.prototype.getInstanceById=function(t){var e,i;try{for(var o=L(this._instances),n=o.next();!n.done;n=o.next()){var r=n.value[1].find((function(e){return e.id===t}));if(void 0!==r)return r}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return null!==this._progressInstanceInfo&&this._progressInstanceInfo.instance.id===t?this._progressInstanceInfo.instance:null},t.prototype._sort=function(t){var e;void 0!==t?null===(e=this._instances.get(t))||void 0===e||e.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel})):this._instances.forEach((function(t){t.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel}))}))},t.prototype.addInstances=function(t,e,i){var o=this,n=t.map((function(t){var n,r,a,s,l,u=null!==(n=t.id)&&void 0!==n?n:z(\\"overlay_\\");if(null===o.getInstanceById(u)){var c=Nt(t.name);if(null!==c){var h=new c,d=(null!==(r=o._counter.get(e))&&void 0!==r?r:0)+1;o._counter.set(e,d),h.setDefaultZLevel(d),h.setPaneId(e);var p=null!==(a=t.groupId)&&void 0!==a?a:u;return t.id=u,t.groupId=p,o._overrideInstance(h,t),h.isDrawing()?o._progressInstanceInfo={paneId:e,instance:h,appointPaneFlag:i}:(o._instances.has(e)||o._instances.set(e,[]),null===(s=o._instances.get(e))||void 0===s||s.push(h)),h.isStart()&&(null===(l=h.onDrawStart)||void 0===l||l.call(h,{overlay:h})),u}}return null}));return n.some((function(t){return null!==t}))&&(this._sort(),this._chartStore.getChart().updatePane(1,e)),n},t.prototype.getProgressInstanceInfo=function(){return this._progressInstanceInfo},t.prototype.progressInstanceComplete=function(){var t;if(null!==this._progressInstanceInfo){var e=this._progressInstanceInfo,i=e.instance,o=e.paneId;i.isDrawing()||(this._instances.has(o)||this._instances.set(o,[]),null===(t=this._instances.get(o))||void 0===t||t.push(i),this._sort(o),this._progressInstanceInfo=null)}},t.prototype.updateProgressInstanceInfo=function(t,e){null!==this._progressInstanceInfo&&(void 0!==e&&e&&(this._progressInstanceInfo.appointPaneFlag=e),this._progressInstanceInfo.paneId=t,this._progressInstanceInfo.instance.setPaneId(t))},t.prototype.getInstances=function(t){var e;if(void 0===t){var i=[];return this._instances.forEach((function(t){i=i.concat(t)})),i}return null!==(e=this._instances.get(t))&&void 0!==e?e:[]},t.prototype.override=function(t){var e=this,i=t.id,o=t.groupId,n=t.name,r=!1,a=!1,s=function(i){var o=e._overrideInstance(i,t);o[0]&&(r=!0),o[1]&&(a=!0)};if(void 0!==i){var l=this.getInstanceById(i);null!==l&&s(l)}else if(this._instances.forEach((function(t){t.forEach((function(t){(void 0!==n&&t.name===n||void 0!==o&&t.groupId===o||void 0===n&&void 0===o)&&s(t)}))})),null!==this._progressInstanceInfo){var u=this._progressInstanceInfo.instance;(void 0!==n&&u.name===n||void 0!==o&&u.groupId===o||void 0===n&&void 0===o)&&s(u)}a&&this._sort(),r&&this._chartStore.getChart().updatePane(1)},t.prototype.removeInstance=function(t){var e,i,o,n=function(t,e){if(void 0!==t.id){if(e.id!==t.id)return!1}else if(void 0!==t.groupId){if(e.groupId!==t.groupId)return!1}else if(void 0!==t.name&&e.name!==t.name)return!1;return!0},r=[];if(null!==this._progressInstanceInfo){var a=this._progressInstanceInfo.instance;(void 0===t||void 0!==t&&n(t,a))&&(r.push(this._progressInstanceInfo.paneId),null===(o=a.onRemoved)||void 0===o||o.call(a,{overlay:a}),this._progressInstanceInfo=null)}if(void 0!==t){var s=new Map,l=function(e){var i=e[1].filter((function(i){var o;return!n(t,i)||(r.includes(e[0])||r.push(e[0]),null===(o=i.onRemoved)||void 0===o||o.call(i,{overlay:i}),!1)}));i.length>0&&s.set(e[0],i)};try{for(var u=L(this._instances),c=u.next();!c.done;c=u.next()){l(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}this._instances=s}else this._instances.forEach((function(t,e){r.push(e),t.forEach((function(t){var e;null===(e=t.onRemoved)||void 0===e||e.call(t,{overlay:t})}))})),this._instances.clear();if(r.length>0){var h=this._chartStore.getChart();r.forEach((function(t){h.updatePane(1,t)})),h.updatePane(1,Kt.XAXIS)}},t.prototype.setPressedInstanceInfo=function(t){this._pressedInstanceInfo=t},t.prototype.getPressedInstanceInfo=function(){return this._pressedInstanceInfo},t.prototype.setHoverInstanceInfo=function(t,e){var i,o,r=this._hoverInstanceInfo,a=r.instance,s=r.figureKey,l=r.figureIndex;if(((null==a?void 0:a.id)!==(null===(i=t.instance)||void 0===i?void 0:i.id)||r.figureType!==t.figureType||l!==t.figureIndex)&&(this._hoverInstanceInfo=t,(null==a?void 0:a.id)!==(null===(o=t.instance)||void 0===o?void 0:o.id))){var u=!1,c=!1;null!==a&&(c=!0,a.resetZLevel(),n(a.onMouseLeave)&&(a.onMouseLeave(k({overlay:a,figureKey:s,figureIndex:l},e)),u=!0)),null!==t.instance&&(c=!0,t.instance.setZLevel(_t),n(t.instance.onMouseEnter)&&(t.instance.onMouseEnter(k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),u=!0)),c&&this._sort(),u||this._chartStore.getChart().updatePane(1)}},t.prototype.getHoverInstanceInfo=function(){return this._hoverInstanceInfo},t.prototype.setClickInstanceInfo=function(t,e){var i,o,n,r,a,s,l,u,c,h=this._clickInstanceInfo,d=h.paneId,p=h.instance,v=h.figureType,g=h.figureKey,f=h.figureIndex;if(null!==(o=null===(i=t.instance)||void 0===i?void 0:i.isDrawing())&&void 0!==o&&o||null===(r=null===(n=t.instance)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),((null==p?void 0:p.id)!==(null===(a=t.instance)||void 0===a?void 0:a.id)||v!==t.figureType||f!==t.figureIndex)&&(this._clickInstanceInfo=t,(null==p?void 0:p.id)!==(null===(s=t.instance)||void 0===s?void 0:s.id))){null===(l=null==p?void 0:p.onDeselected)||void 0===l||l.call(p,k({overlay:p,figureKey:g,figureIndex:f},e)),null===(c=null===(u=t.instance)||void 0===u?void 0:u.onSelected)||void 0===c||c.call(u,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e));var m=this._chartStore.getChart();m.updatePane(1,t.paneId),d!==t.paneId&&m.updatePane(1,d),m.updatePane(1,Kt.XAXIS)}},t.prototype.getClickInstanceInfo=function(){return this._clickInstanceInfo},t.prototype.isEmpty=function(){return 0===this._instances.size&&null===this._progressInstanceInfo},t.prototype.isDrawing=function(){var t,e;return null!==this._progressInstanceInfo&&null!==(e=null===(t=this._progressInstanceInfo)||void 0===t?void 0:t.instance.isDrawing())&&void 0!==e&&e},t}(),$t=function(){function t(){this._actions=new Map}return t.prototype.execute=function(t,e){var i;null===(i=this._actions.get(t))||void 0===i||i.execute(e)},t.prototype.subscribe=function(t,e){var i;this._actions.has(t)||this._actions.set(t,new V),null===(i=this._actions.get(t))||void 0===i||i.subscribe(e)},t.prototype.unsubscribe=function(t,e){var i=this._actions.get(t);void 0!==i&&(i.unsubscribe(e),i.isEmpty()&&this._actions.delete(t))},t.prototype.has=function(t){var e=this._actions.get(t);return void 0!==e&&!e.isEmpty()},t}(),Jt={light:{grid:{horizontal:{color:\\"#EDEDED\\"},vertical:{color:\\"#EDEDED\\"}},candle:{priceMark:{high:{color:\\"#76808F\\"},low:{color:\\"#76808F\\"}},tooltip:{rect:{color:\\"#FEFEFE\\",borderColor:\\"#F2F3F5\\"},text:{color:\\"#76808F\\"}}},indicator:{tooltip:{text:{color:\\"#76808F\\"}}},xAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},yAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},separator:{color:\\"#DDDDDD\\"},crosshair:{horizontal:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}},vertical:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}}}},dark:{grid:{horizontal:{color:\\"#292929\\"},vertical:{color:\\"#292929\\"}},candle:{priceMark:{high:{color:\\"#929AA5\\"},low:{color:\\"#929AA5\\"}},tooltip:{rect:{color:\\"rgba(10, 10, 10, .6)\\",borderColor:\\"rgba(10, 10, 10, .6)\\"},text:{color:\\"#929AA5\\"}}},indicator:{tooltip:{text:{color:\\"#929AA5\\"}}},xAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},yAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},separator:{color:\\"#333333\\"},crosshair:{horizontal:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}},vertical:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}}}}};function Qt(t){var e;return null!==(e=Jt[t])&&void 0!==e?e:null}var te=function(){function i(e,i){this._styles={grid:{show:!0,horizontal:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]},vertical:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]}},candle:{type:t.CandleType.CandleSolid,bar:{upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",upBorderColor:\\"#2DC08E\\",downBorderColor:\\"#F92855\\",noChangeBorderColor:\\"#888888\\",upWickColor:\\"#2DC08E\\",downWickColor:\\"#F92855\\",noChangeWickColor:\\"#888888\\"},area:{lineSize:2,lineColor:\\"#1677FF\\",value:\\"close\\",backgroundColor:[{offset:0,color:\\"rgba(22, 119, 255, 0.01)\\"},{offset:1,color:\\"rgba(22, 119, 255, 0.2)\\"}]},priceMark:{show:!0,high:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},low:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},last:{show:!0,upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,4],size:1},text:{show:!0,style:t.PolygonType.Fill,size:12,paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderColor:\\"transparent\\",borderStyle:t.LineType.Solid,borderSize:0,borderDashedValue:[2,2],color:\\"#FFFFFF\\",family:\\"Helvetica Neue\\",weight:\\"normal\\",borderRadius:2}}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,custom:null,defaultValue:\\"n/a\\",rect:{position:g.Fixed,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:8,offsetLeft:10,offsetTop:8,offsetRight:10,offsetBottom:8,borderRadius:4,borderSize:1,borderColor:\\"#F2F3F5\\",color:\\"#FEFEFE\\"},text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},indicator:{ohlc:{upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"},bars:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lines:[{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#FF9600\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#935EBD\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#1677FF\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#E11D74\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#01C5C4\\"}],circles:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lastValueMark:{show:!1,text:{show:!1,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderColor:\\"transparent\\",borderSize:1,borderDashedValue:[2,2],paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderRadius:2}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,showName:!0,showParams:!0,defaultValue:\\"n/a\\",text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},xAxis:{show:!0,size:\\"auto\\",axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},yAxis:{show:!0,size:\\"auto\\",type:t.YAxisType.Normal,position:t.YAxisPosition.Right,inside:!1,reverse:!1,axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},separator:{size:1,color:\\"#DDDDDD\\",fill:!0,activeBackgroundColor:\\"rgba(33, 150, 243, 0.08)\\"},crosshair:{show:!0,horizontal:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderColor:\\"#686D76\\",borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}},vertical:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#686D76\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}}},overlay:{point:{color:\\"#1677FF\\",borderColor:\\"rgba(22, 119, 255, 0.35)\\",borderSize:1,radius:5,activeColor:\\"#1677FF\\",activeBorderColor:\\"rgba(22, 119, 255, 0.35)\\",activeBorderSize:3,activeRadius:5},line:{style:t.LineType.Solid,smooth:!1,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},rect:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderRadius:0,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},polygon:{style:t.PolygonType.Fill,color:\\"#1677FF\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},circle:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},arc:{style:t.LineType.Solid,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},text:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:0,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,backgroundColor:\\"transparent\\"},rectText:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}}},this._customApi={formatDate:b,formatBigNumber:w},this._locale=I,this._precision={price:2,volume:0},this._thousandsSeparator=\\",\\",this._dataList=[],this._timeScaleStore=new it(this),this._indicatorStore=new gt(this),this._overlayStore=new qt(this),this._tooltipStore=new ft(this),this._actionStore=new $t,this._visibleDataList=[],this._chart=e,this.setOptions(i)}return i.prototype.adjustVisibleDataList=function(){this._visibleDataList=[];for(var t=this._timeScaleStore.getVisibleRange(),e=t.to,i=t.from;e>i;i++){var o=this._dataList[i],n=this._timeScaleStore.dataIndexToCoordinate(i);this._visibleDataList.push({dataIndex:i,x:n,data:o})}},i.prototype.setOptions=function(t){if(void 0!==t){var i=t.locale,o=t.timezone,n=t.styles,r=t.customApi;void 0!==i&&(this._locale=i),void 0!==o&&this._timeScaleStore.setTimezone(o),void 0!==n&&(u(n)?e(this._styles,Qt(n)):e(this._styles,n)),void 0!==r&&e(this._customApi,r),void 0!==t.thousandsSeparator&&(this._thousandsSeparator=t.thousandsSeparator)}return this},i.prototype.getStyles=function(){return this._styles},i.prototype.getLocale=function(){return this._locale},i.prototype.getCustomApi=function(){return this._customApi},i.prototype.getThousandsSeparator=function(){return this._thousandsSeparator},i.prototype.getPrecision=function(){return this._precision},i.prototype.setPrecision=function(t){return this._precision=t,this._indicatorStore.setSeriesPrecision(t),this},i.prototype.getDataList=function(){return this._dataList},i.prototype.getVisibleDataList=function(){return this._visibleDataList},i.prototype.addData=function(t,e,i){if(o(t)){this._timeScaleStore.setLoading(!1),this._timeScaleStore.setMore(null==i||i);var n=0===this._dataList.length;this._dataList=t.concat(this._dataList),n&&this._timeScaleStore.resetOffsetRightDistance(),this._timeScaleStore.adjustVisibleRange()}else{if(er&&this._timeScaleStore.setOffsetRightBarCount(--r),this._timeScaleStore.adjustVisibleRange()}}this._tooltipStore.recalculateCrosshair(!0)},i.prototype.clear=function(){this._dataList=[],this._visibleDataList=[],this._timeScaleStore.clear(),this._tooltipStore.clear()},i.prototype.getTimeScaleStore=function(){return this._timeScaleStore},i.prototype.getIndicatorStore=function(){return this._indicatorStore},i.prototype.getOverlayStore=function(){return this._overlayStore},i.prototype.getTooltipStore=function(){return this._tooltipStore},i.prototype.getActionStore=function(){return this._actionStore},i.prototype.getChart=function(){return this._chart},i}();function ee(t){return null==window.requestAnimationFrame?window.setTimeout(t,20):window.requestAnimationFrame(t)}function ie(t){null==window.cancelAnimationFrame&&window.clearTimeout(t),window.cancelAnimationFrame(t)}var oe=-1,ne=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._mainRequestAnimationId=oe,e._overlayRequestAnimationId=oe,e}return P(e,t),e.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"0\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}},e.prototype.initDom=function(t){this._mainCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._mainCtx=this._mainCanvas.getContext(\\"2d\\"),this._overlayCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._overlayCtx=this._overlayCanvas.getContext(\\"2d\\"),t.appendChild(this._mainCanvas),t.appendChild(this._overlayCanvas)},e.prototype._optimalUpdateMain=function(t,e){var i=this;this._mainRequestAnimationId!==oe&&(ie(this._mainRequestAnimationId),this._mainRequestAnimationId=oe),this._mainRequestAnimationId=ee((function(){if(t!==i._mainCanvas.offsetWidth||e!==i._mainCanvas.offsetHeight){i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);var o=X(i._mainCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._mainCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._mainCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._mainCanvas.width=n,i._mainCanvas.height=r,i._mainCtx.scale(o,o)}else i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);i.updateMain(i._mainCtx)}))},e.prototype._optimalUpdateOverlay=function(t,e){var i=this;this._overlayRequestAnimationId!==oe&&(ie(this._overlayRequestAnimationId),this._overlayRequestAnimationId=oe),this._overlayRequestAnimationId=ee((function(){if(t!==i._overlayCanvas.offsetWidth||e!==i._overlayCanvas.offsetHeight){i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);var o=X(i._overlayCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._overlayCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._overlayCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._overlayCanvas.width=n,i._overlayCanvas.height=r,i._overlayCtx.scale(o,o)}else i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);i.updateOverlay(i._overlayCtx)}))},e.prototype.updateImp=function(t,e,i){var o=e.width,n=e.height;t.style.left=\\"\\".concat(e.left,\\"px\\");var r=i;switch(o===t.offsetWidth&&n===t.offsetHeight||(t.style.width=\\"\\".concat(o,\\"px\\"),t.style.height=\\"\\".concat(n,\\"px\\"),r=3),r){case 0:this._optimalUpdateMain(o,n);break;case 1:this._optimalUpdateOverlay(o,n);break;case 3:case 4:this._optimalUpdateMain(o,n),this._optimalUpdateOverlay(o,n)}},e.prototype.getImage=function(t){var e=this.getBounding(),i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);return n.width=i*a,n.height=o*a,r.scale(a,a),r.drawImage(this._mainCanvas,0,0,i,o),t&&r.drawImage(this._overlayCanvas,0,0,i,o),n},e}(jt);function re(t,e){var i=t.x-e.x,o=t.y-e.y,n=e.r;return!(i*i+o*o>n*n)}function ae(e,i,o){var n=i.x,r=i.y,a=i.r,s=o.style,l=void 0===s?t.PolygonType.Fill:s,u=o.color,c=o.borderSize,h=void 0===c?1:c,d=o.borderColor,p=void 0===d?\\"currentColor\\":d,v=o.borderStyle,g=void 0===v?t.LineType.Solid:v,f=o.borderDashedValue,m=void 0===f?[2,2]:f;l!==t.PolygonType.Fill&&o.style!==t.PolygonType.StrokeFill||(e.fillStyle=void 0===u?\\"currentColor\\":u,e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.fill()),l!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||(e.strokeStyle=p,e.lineWidth=h,e.setLineDash(g===t.LineType.Dashed?m:[]),e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.stroke())}var se={name:\\"circle\\",checkEventOn:re,draw:function(t,e,i){ae(t,e,i)}};function le(t,e){for(var i=!1,o=e.coordinates,n=0,r=o.length-1;o.length>n;r=n++)o[n].y>t.y!=o[r].y>t.y&&(o[r].x-o[n].x)*(t.y-o[n].y)/(o[r].y-o[n].y)+o[n].x>t.x&&(i=!i);return i}function ue(e,i,o){var n=i.coordinates,r=o.style,a=void 0===r?t.PolygonType.Fill:r,s=o.color,l=o.borderSize,u=void 0===l?1:l,c=o.borderColor,h=void 0===c?\\"currentColor\\":c,d=o.borderStyle,p=void 0===d?t.LineType.Solid:d,v=o.borderDashedValue,g=void 0===v?[2,2]:v;if(a===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){e.fillStyle=void 0===s?\\"currentColor\\":s,e.beginPath(),e.moveTo(n[0].x,n[0].y);for(var f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.fill()}if(a===t.PolygonType.Stroke||o.style===t.PolygonType.StrokeFill){e.strokeStyle=h,e.lineWidth=u,e.setLineDash(p===t.LineType.Dashed?g:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y);for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.stroke()}}var ce={name:\\"polygon\\",checkEventOn:le,draw:function(t,e,i){ue(t,e,i)}};function he(t){return\\"transparent\\"===t}function de(t,e){var i=e.x,o=e.width;2*Tt>o&&(i-=Tt,o=2*Tt);var n=e.y,r=e.height;return 2*Tt>r&&(n-=Tt,r=2*Tt),!(i>t.x||t.x>i+o||n>t.y||t.y>n+r)}function pe(e,i,o){var n=i.x,r=i.y,a=i.width,s=i.height,l=o.style,c=void 0===l?t.PolygonType.Fill:l,h=o.color,d=void 0===h?\\"transparent\\":h,p=o.borderSize,v=void 0===p?1:p,g=o.borderColor,f=void 0===g?\\"transparent\\":g,m=o.borderStyle,y=void 0===m?t.LineType.Solid:m,_=o.borderRadius,x=void 0===_?0:_,S=o.borderDashedValue,C=void 0===S?[2,2]:S;if(c===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){var b=!0;u(d)&&(b=!he(d)),b&&(e.fillStyle=d,e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.fill())}c!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||he(f)||0>v||(e.strokeStyle=f,e.lineWidth=v,e.setLineDash(y===t.LineType.Dashed?C:[]),e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.stroke())}var ve={name:\\"rect\\",checkEventOn:de,draw:function(t,e,i){pe(t,e,i)}};function ge(t,e){var i,o,n=e.size,r=void 0===n?12:n,a=e.paddingLeft,s=e.paddingTop,l=void 0===s?0:s,u=e.paddingRight,c=void 0===u?0:u,h=e.paddingBottom,d=void 0===h?0:h,p=e.weight,v=t.x,g=t.y,f=t.align,m=void 0===f?\\"left\\":f,y=t.baseline,_=void 0===y?\\"top\\":y,x=t.width,S=t.height,C=null!=x?x:(void 0===a?0:a)+j(t.text,r,void 0===p?\\"normal\\":p,e.family)+c,b=null!=S?S:l+r+d;switch(m){case\\"left\\":case\\"start\\":i=v;break;case\\"right\\":case\\"end\\":i=v-C;break;default:i=v-C/2}switch(_){case\\"top\\":case\\"hanging\\":o=g;break;case\\"bottom\\":case\\"ideographic\\":case\\"alphabetic\\":o=g-b;break;default:o=g-b/2}return{x:i,y:o,width:C,height:b}}function fe(t,e,i){var o=ge(e,i),n=o.x,r=o.y;return!(n>t.x||t.x>n+o.width||r>t.y||t.y>r+o.height)}function me(t,e,i){var o=e.text,n=i.color,r=void 0===n?\\"currentColor\\":n,a=i.size,s=void 0===a?12:a,l=i.family,u=i.weight,c=i.paddingLeft,h=void 0===c?0:c,d=i.paddingTop,p=void 0===d?0:d,v=i.paddingRight,g=void 0===v?0:v,f=ge(e,i);pe(t,f,k(k({},i),{color:i.backgroundColor})),t.textAlign=\\"left\\",t.textBaseline=\\"top\\",t.font=H(s,u,l),t.fillStyle=r,t.fillText(o,f.x+h,f.y+p,f.width-h-g)}var ye={name:\\"text\\",checkEventOn:function(t,e,i){return fe(t,e,i)},draw:function(t,e,i){me(t,e,i)}},_e=me;function xe(t,e){if(Math.abs(Math.sqrt((h=(u=t).x-(c=e).x)*h+(d=u.y-c.y)*d)-e.r)Math.max(r,s)+Tt||Math.min(r,s)-Tt>t.x||t.y>Math.max(a,l)+Tt||Math.min(a,l)-Tt>t.y)}var u,c,h,d;return!1}function Se(e,i,o){var n=i.x,r=i.y,a=i.r,s=i.startAngle,l=i.endAngle,u=o.style,c=void 0===u?t.LineType.Solid:u,h=o.size,d=o.color,p=void 0===d?\\"currentColor\\":d,v=o.dashedValue,g=void 0===v?[2,2]:v;e.lineWidth=void 0===h?1:h,e.strokeStyle=p,e.setLineDash(c===t.LineType.Dashed?g:[]),e.beginPath(),e.arc(n,r,a,s,l),e.stroke(),e.closePath()}var Ce={name:\\"arc\\",checkEventOn:xe,draw:function(t,e,i){Se(t,e,i)}},be={};[se,Ft,ce,ve,ye,ye,Ce].forEach((function(t){be[t.name]=wt.extend(t)}));var Te=function(t){function e(e){var i=t.call(this)||this;return i._widget=e,i}return P(e,t),e.prototype.getWidget=function(){return this._widget},e.prototype.createFigure=function(t,e,i,o){var n=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null}(t);if(null!==n){var r=new n({name:t,attrs:e,styles:i});if(void 0!==o){for(var a in o)o.hasOwnProperty(a)&&r.registerEvent(a,o[a]);this.addChild(r)}return r}return null},e.prototype.draw=function(t){this.clear(),this.drawImp(t)},e}(bt),we=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=this.getWidget().getPane(),r=n.getChart(),a=o.getBounding(),s=r.getStyles().grid;if(s.show){t.save(),t.globalCompositeOperation=\\"destination-over\\";var l=s.horizontal;if(l.show)n.getAxisComponent().getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:0,y:e.coord},{x:a.width,y:e.coord}]},l))||void 0===o||o.draw(t)}));var u=s.vertical;if(u.show)(null===(e=r.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent()).getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:e.coord,y:0},{x:e.coord,y:a.height}]},u))||void 0===o||o.draw(t)}));t.restore()}},e}(Te),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.eachChildren=function(t){var e=this.getWidget().getPane().getChart().getChartStore(),i=e.getVisibleDataList(),o=e.getTimeScaleStore().getBarSpace();i.forEach((function(e,i){t(e,o,i)}))},e}(Te),Ie=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundCandleBarClickEvent=function(e){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnCandleBarClick,e),!1}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this,i=this.getWidget().getPane(),o=i.getId()===Kt.CANDLE,n=i.getChart().getChartStore(),r=this.getCandleBarOptions(n);if(null!==r){var a=i.getAxisComponent();this.eachChildren((function(i,n){e._drawCandleBar(t,a,i,n,r,o)}))}},i.prototype.getCandleBarOptions=function(t){var e=t.getStyles().candle;return{type:e.type,styles:e.bar}},i.prototype._drawCandleBar=function(e,i,o,n,r,a){var s,l,u,c=this,h=o.data,d=o.x,p=h.open,v=h.high,g=h.low,f=h.close,m=n.halfGapBar,y=n.gapBar,_=r.type,x=r.styles;f>p?(s=x.upColor,l=x.upBorderColor,u=x.upWickColor):p>f?(s=x.downColor,l=x.downBorderColor,u=x.downWickColor):(s=x.noChangeColor,l=x.noChangeBorderColor,u=x.noChangeWickColor);var S=i.convertToPixel(p),C=i.convertToPixel(f),b=[S,C,i.convertToPixel(v),i.convertToPixel(g)];b.sort((function(t,e){return t-e}));var T=Math.max(1,b[2]-b[1]),w=[];_!==t.CandleType.Ohlc?(w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[1]-b[0]},styles:{color:u}}),w.push(_===t.CandleType.CandleStroke||_===t.CandleType.CandleUpStroke&&f>p||_===t.CandleType.CandleDownStroke&&p>f?{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.Stroke,borderColor:l}}:{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.StrokeFill,color:s,borderColor:l}}),w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[2],width:1,height:b[3]-b[2]},styles:{color:u}})):w=[{name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[3]-b[0]},styles:{color:s}},{name:\\"rect\\",attrs:{x:d-m,y:S,width:m,height:1},styles:{color:s}},{name:\\"rect\\",attrs:{x:d,y:C,width:m,height:1},styles:{color:s}}],w.forEach((function(t){var i,n,r=t.attrs,s=t.styles;a&&(n={mouseClickEvent:c._boundCandleBarClickEvent(o)}),null===(i=c.createFigure(\\"rect\\",r,s,n))||void 0===i||i.draw(e)}))},i}(Ee),De=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.getCandleBarOptions=function(e){var i,o,n=this.getWidget().getPane();if(!n.getAxisComponent().isInCandle()){var r=e.getIndicatorStore().getInstances(n.getId());try{for(var a=L(r),s=a.next();!s.done;s=a.next()){var l=s.value[1];if(l.shouldOhlc&&l.visible){var u=l.styles,c=e.getStyles().indicator,h=C(u,\\"ohlc.upColor\\",c.ohlc.upColor),d=C(u,\\"ohlc.downColor\\",c.ohlc.downColor),p=C(u,\\"ohlc.noChangeColor\\",c.ohlc.noChangeColor);return{type:t.CandleType.Ohlc,styles:{upColor:h,downColor:d,noChangeColor:p,upBorderColor:h,downBorderColor:d,noChangeBorderColor:p,upWickColor:h,downWickColor:d,noChangeWickColor:p}}}}}catch(t){i={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}return null},i.prototype.drawImp=function(t){var i,o=this;e.prototype.drawImp.call(this,t);var n=this.getWidget(),r=n.getPane(),l=r.getChart(),u=n.getBounding(),c=null===(i=l.getPaneById(Kt.XAXIS))||void 0===i?void 0:i.getAxisComponent(),h=r.getAxisComponent(),d=l.getChartStore(),p=d.getDataList(),v=d.getTimeScaleStore(),g=v.getVisibleRange(),f=d.getIndicatorStore().getInstances(r.getId()),m=d.getStyles().indicator;f.forEach((function(e){var i;if(e.visible){var n=!1;if(null!==e.draw&&(t.save(),n=null!==(i=e.draw({ctx:t,kLineDataList:p,indicator:e,visibleRange:g,bounding:u,barSpace:v.getBarSpace(),defaultStyles:m,xAxis:c,yAxis:h}))&&void 0!==i&&i,t.restore()),!n){var r=e.result;o.eachChildren((function(i,n){var l,d,v,g=n.halfGapBar,f=n.gapBar,y=i.dataIndex,_=i.x,x=c.convertToPixel(y-1),S=c.convertToPixel(y+1),C=null!==(l=r[y-1])&&void 0!==l?l:{},b=null!==(d=r[y])&&void 0!==d?d:{},T=null!==(v=r[y+1])&&void 0!==v?v:{},w={x:x},E={x:_},I={x:S};e.figures.forEach((function(t){var e=t.key;w[e]=h.convertToPixel(C[e]),E[e]=h.convertToPixel(b[e]),I[e]=h.convertToPixel(T[e])})),ot(p,e,y,m,(function(e,i){var r,l,d;if(s(b[e.key])){var p=E[e.key],v=null===(r=e.attrs)||void 0===r?void 0:r.call(e,{coordinate:{prev:w,current:E,next:I},bounding:u,barSpace:n,xAxis:c,yAxis:h});if(!s(v))switch(e.type){case\\"circle\\":v={x:_,y:p,r:g};break;case\\"rect\\":case\\"bar\\":var m=null!==(l=e.baseValue)&&void 0!==l?l:h.getExtremum().min,y=h.convertToPixel(m),x=Math.abs(y-p);m!==b[e.key]&&(x=Math.max(1,x));v={x:_-g,y:p>y?y:p,width:f,height:x};break;case\\"line\\":a(E[e.key])&&a(I[e.key])&&(v={coordinates:[{x:E.x,y:E[e.key]},{x:I.x,y:I[e.key]}]})}if(s(v)){var S=e.type;null===(d=o.createFigure(\\"bar\\"===S?\\"rect\\":S,v,i))||void 0===d||d.draw(t)}}}))}))}}}))},i}(Ie),Pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=e.getBounding(),n=e.getPane().getChart().getChartStore(),r=n.getTooltipStore().getCrosshair(),a=n.getStyles().crosshair;if(void 0!==r.paneId&&a.show){if(r.paneId===i.getId()){var s=r.y;this._drawLine(t,[{x:0,y:s},{x:o.width,y:s}],a.horizontal)}var l=r.realX;this._drawLine(t,[{x:l,y:0},{x:l,y:o.height}],a.vertical)}},e.prototype._drawLine=function(t,e,i){var o;if(i.show){var n=i.line;n.show&&(null===(o=this.createFigure(\\"line\\",{coordinates:e},n))||void 0===o||o.draw(t))}},e}(Te),Me=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundIconClickEvent=function(e,o){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnTooltipIconClick,k(k({},e),{iconId:o})),!0}},i._boundIconMouseMoveEvent=function(t,e){return function(){return i.getWidget().getPane().getChart().getChartStore().getTooltipStore().setActiveIcon(k(k({},t),{iconId:e})),!0}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=i.getChart().getChartStore(),n=o.getTooltipStore().getCrosshair();if(void 0!==n.kLineData){var r=e.getBounding(),a=o.getCustomApi(),s=o.getThousandsSeparator(),l=o.getIndicatorStore().getInstances(i.getId()),u=o.getTooltipStore().getActiveIcon(),c=o.getStyles().indicator;this.drawIndicatorTooltip(t,i.getId(),o.getDataList(),n,u,l,a,s,r,c)}},i.prototype.drawIndicatorTooltip=function(t,e,i,o,n,r,a,s,l,u,c){var h=this,d=u.tooltip,p=0;if(this.isDrawTooltip(o,d)){var v=d.text,g=0,f=null!=c?c:0,m=0;r.forEach((function(r){var c=h.getIndicatorTooltipData(i,o,r,a,s,u),d=c.name,y=c.calcParamsText,_=c.values,x=d.length>0,S=_.length>0;if(x||S){var C=R(h.classifyTooltipIcons(c.icons),3),b=C[1],T=C[2],w=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,C[0],g,f,m),4);if(g=w[0],f=w[1],p+=w[3],m=w[2],x){var E=d;y.length>0&&(E=\\"\\".concat(E).concat(y));var I=R(h.drawStandardTooltipLabels(t,l,[{title:{text:\\"\\",color:v.color},value:{text:E,color:v.color}}],g,f,m,v),4);g=I[0],f=I[1],p+=I[3],m=I[2]}var D=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,b,g,f,m),4);if(g=D[0],f=D[1],p+=D[3],m=D[2],S){var P=R(h.drawStandardTooltipLabels(t,l,_,g,f,m,v),4);g=P[0],f=P[1],p+=P[3],m=P[2]}var M=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,T,g,f,m),4);g=0,p+=M[3],f=M[1]+M[2],m=0}}))}return p},i.prototype.drawStandardTooltipIcons=function(t,e,i,o,n,r,a,s){var l=this,u=r,c=a,h=0,d=0,p=0;return n.length>0&&(n.forEach((function(e){var i=e.marginLeft,o=e.marginTop,n=e.marginRight,r=e.marginBottom,a=e.paddingLeft,s=e.paddingTop,l=e.paddingRight,u=e.paddingBottom,c=e.size,p=e.icon;t.font=H(c,\\"normal\\",e.fontFamily),h+=i+a+t.measureText(p).width+l+n,d=Math.max(d,o+s+c+u+r)})),u+h>e.width?(u=n[0].marginLeft,c+=s,p=d):p=Math.max(0,d-s),n.forEach((function(e){var n,r=e.marginRight,a=e.paddingLeft,s=e.paddingRight,h=e.icon,d=(null==o?void 0:o.paneId)===i.paneId&&(null==o?void 0:o.indicatorName)===i.indicatorName&&(null==o?void 0:o.iconId)===e.id;null===(n=l.createFigure(\\"text\\",{text:h,x:u+=e.marginLeft,y:c+e.marginTop},{paddingLeft:a,paddingTop:e.paddingTop,paddingRight:s,paddingBottom:e.paddingBottom,color:d?e.activeColor:e.color,size:e.size,family:e.fontFamily,backgroundColor:d?e.activeBackgroundColor:e.backgroundColor},{mouseClickEvent:l._boundIconClickEvent(i,e.id),mouseMoveEvent:l._boundIconMouseMoveEvent(i,e.id)}))||void 0===n||n.draw(t),u+=a+t.measureText(h).width+s+r}))),[u,c,Math.max(s,d),p]},i.prototype.drawStandardTooltipLabels=function(t,e,i,o,n,r,a){var s=this,l=o,u=n,c=0,h=0,d=r;if(i.length>0){var p=a.marginLeft,v=a.marginTop,g=a.marginRight,f=a.marginBottom,m=a.size,y=a.family,_=a.weight;t.font=H(m,_,y),i.forEach((function(i){var o,n,r=i.title,a=i.value,x=t.measureText(r.text).width,S=t.measureText(a.text).width,C=m+v+f;l+p+(x+S)+g>e.width?(l=p,u+=C,h+=C):(l+=p,h+=Math.max(0,C-d)),d=c=Math.max(d,C),r.text.length>0&&(null===(o=s.createFigure(\\"text\\",{x:l,y:u+v,text:r.text},{color:r.color,size:m,family:y,weight:_}))||void 0===o||o.draw(t),l+=x),null===(n=s.createFigure(\\"text\\",{x:l,y:u+v,text:a.text},{color:a.color,size:m,family:y,weight:_}))||void 0===n||n.draw(t),l+=S+g}))}return[l,u,c,h]},i.prototype.isDrawTooltip=function(e,i){var o=i.showRule;return o===t.TooltipShowRule.Always||o===t.TooltipShowRule.FollowCross&&void 0!==e.paneId},i.prototype.getIndicatorTooltipData=function(t,e,i,o,n,a){var l,u,c,h=a.tooltip,d=h.showName?i.shortName:\\"\\",p=\\"\\",v=i.calcParams;v.length>0&&h.showParams&&(p=\\"(\\".concat(v.join(\\",\\"),\\")\\"));var g={name:d,calcParamsText:p,values:[],icons:h.icons},f=e.dataIndex,m=null!==(l=i.result)&&void 0!==l?l:[],y=[];if(i.visible){var _=null!==(u=m[f])&&void 0!==u?u:{};ot(t,i,f,a,(function(t,e){if(void 0!==t.title){var r=e.color,a=_[t.key];s(a)&&(a=T(a,i.precision),i.shouldFormatBigNumber&&(a=o.formatBigNumber(a))),y.push({title:{text:t.title,color:r},value:{text:E(null!=a?a:h.defaultValue,n),color:r}})}})),g.values=y}if(null!==i.createTooltipDataSource){var x=this.getWidget(),S=x.getPane(),C=S.getChart().getChartStore(),b=i.createTooltipDataSource({kLineDataList:t,indicator:i,visibleRange:C.getTimeScaleStore().getVisibleRange(),bounding:x.getBounding(),crosshair:e,defaultStyles:a,xAxis:null===(c=S.getChart().getPaneById(Kt.XAXIS))||void 0===c?void 0:c.getAxisComponent(),yAxis:S.getAxisComponent()}),w=b.name,I=b.calcParamsText,D=b.values,P=b.icons;if(void 0!==w&&h.showName&&(g.name=w),void 0!==I&&h.showParams&&(g.calcParamsText=I),void 0!==P&&(g.icons=P),void 0!==D&&i.visible){var M=[],k=a.tooltip.text.color;D.forEach((function(t){var e={text:\\"\\",color:k};r(t.title)?e=t.title:e.text=t.title;var i={text:\\"\\",color:k};r(t.value)?i=t.value:i.text=t.value,i.text=E(i.text,n),M.push({title:e,value:i})})),g.values=M}}return g},i.prototype.classifyTooltipIcons=function(e){var i=[],o=[],n=[];return e.forEach((function(e){switch(e.position){case t.TooltipIconPosition.Left:i.push(e);break;case t.TooltipIconPosition.Middle:o.push(e);break;case t.TooltipIconPosition.Right:n.push(e)}})),[i,o,n]},i}(Te),ke=function(e){function i(t){var i=e.call(this,t)||this;return i._initEvent(),i}return P(i,e),i.prototype._initEvent=function(){var t=this,e=this.getWidget().getPane(),i=e.getId(),o=e.getChart().getChartStore().getOverlayStore();this.registerEvent(\\"mouseMoveEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;a.isStart()&&(o.updateProgressInstanceInfo(i),s=i);var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);return a.isDrawing()&&s===i&&(a.eventMoveForDrawing(t._coordinateToPoint(r.instance,e)),null===(n=a.onDrawing)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))),t._figureMouseMoveEvent(a,1,u,l,0)(e)}return o.setHoverInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseClickEvent\\",(function(e){var n,r,a=o.getProgressInstanceInfo();if(null!==a){var s=a.instance,l=a.paneId;s.isStart()&&(o.updateProgressInstanceInfo(i,!0),l=i);var u=s.points.length-1,c=\\"\\".concat(yt,\\"point_\\").concat(u);return s.isDrawing()&&l===i&&(s.eventMoveForDrawing(t._coordinateToPoint(s,e)),null===(n=s.onDrawing)||void 0===n||n.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)),s.nextStep(),s.isDrawing()||(o.progressInstanceComplete(),null===(r=s.onDrawEnd)||void 0===r||r.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)))),t._figureMouseClickEvent(s,1,c,u,0)(e)}return o.setClickInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseDoubleClickEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;if(a.isDrawing()&&s===i&&(a.forceComplete(),!a.isDrawing())){o.progressInstanceComplete();var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);null===(n=a.onDrawEnd)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))}var c=a.points.length-1;return t._figureMouseClickEvent(a,1,\\"\\".concat(yt,\\"point_\\").concat(c),c,0)(e)}return!1})).registerEvent(\\"mouseRightClickEvent\\",(function(e){var i=o.getProgressInstanceInfo();if(null!==i){var n=i.instance;if(n.isDrawing()){var r=n.points.length-1;return t._figureMouseRightClickEvent(n,1,\\"\\".concat(yt,\\"point_\\").concat(r),r,0)(e)}}return!1})).registerEvent(\\"mouseUpEvent\\",(function(t){var e,n=o.getPressedInstanceInfo(),r=n.instance;return null!==r&&(null===(e=r.onPressedMoveEnd)||void 0===e||e.call(r,k({overlay:r,figureKey:n.figureKey,figureIndex:n.figureIndex},t))),o.setPressedInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1}),!1})).registerEvent(\\"pressedMouseMoveEvent\\",(function(e){var i,n,r=o.getPressedInstanceInfo(),a=r.instance,s=r.figureType,l=r.figureIndex;if(null!==a){if(!(a.lock||null!==(n=null===(i=a.onPressedMoving)||void 0===i?void 0:i.call(a,k({overlay:a,figureIndex:l,figureKey:r.figureKey},e)))&&void 0!==n&&n)){var u=t._coordinateToPoint(a,e);1===s?a.eventPressedPointMove(u,l):a.eventPressedOtherMove(u,t.getWidget().getPane().getChart().getChartStore().getTimeScaleStore())}return!0}return!1}))},i.prototype._createFigureEvents=function(t,e,i,o,n,r){var a;if(!t.isDrawing()){var s=[];if(void 0!==r&&(l(r)?r&&(s=[\\"mouseClickEvent\\",\\"mouseDoubleClickEvent\\",\\"mouseRightClickEvent\\",\\"tapEvent\\",\\"doubleTapEvent\\",\\"mouseDownEvent\\",\\"touchStartEvent\\",\\"mouseMoveEvent\\",\\"touchMoveEvent\\"]):s=r),0===s.length)return{mouseMoveEvent:this._figureMouseMoveEvent(t,e,i,o,n),mouseDownEvent:this._figureMouseDownEvent(t,e,i,o,n),mouseClickEvent:this._figureMouseClickEvent(t,e,i,o,n),mouseRightClickEvent:this._figureMouseRightClickEvent(t,e,i,o,n),mouseDoubleClickEvent:this._figureMouseDoubleClickEvent(t,e,i,o,n)};a={},s.includes(\\"mouseMoveEvent\\")||s.includes(\\"touchMoveEvent\\")||(a.mouseMoveEvent=this._figureMouseMoveEvent(t,e,i,o,n)),s.includes(\\"mouseDownEvent\\")||s.includes(\\"touchStartEvent\\")||(a.mouseDownEvent=this._figureMouseDownEvent(t,e,i,o,n)),s.includes(\\"mouseClickEvent\\")||s.includes(\\"tapEvent\\")||(a.mouseClickEvent=this._figureMouseClickEvent(t,e,i,o,n)),s.includes(\\"mouseDoubleClickEvent\\")||s.includes(\\"doubleTapEvent\\")||(a.mouseDoubleClickEvent=this._figureMouseDoubleClickEvent(t,e,i,o,n)),s.includes(\\"mouseRightClickEvent\\")||(a.mouseRightClickEvent=this._figureMouseRightClickEvent(t,e,i,o,n))}return a},i.prototype._figureMouseMoveEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane();return s.getChart().getChartStore().getOverlayStore().setHoverInstanceInfo({paneId:s.getId(),instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDownEvent=function(t,e,i,o,n){var r=this;return function(a){var s,l=r.getWidget().getPane(),u=l.getId(),c=l.getChart().getChartStore().getOverlayStore();return t.startPressedMove(r._coordinateToPoint(t,a)),null===(s=t.onPressedMoveStart)||void 0===s||s.call(t,k({overlay:t,figureIndex:o,figureKey:i},a)),c.setPressedInstanceInfo({paneId:u,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n}),!0}},i.prototype._figureMouseClickEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane(),l=s.getId();return s.getChart().getChartStore().getOverlayStore().setClickInstanceInfo({paneId:l,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDoubleClickEvent=function(t,e,i,o,n){return function(e){var n;return null===(n=t.onDoubleClick)||void 0===n||n.call(t,k(k({},e),{figureIndex:o,figureKey:i,overlay:t})),!0}},i.prototype._figureMouseRightClickEvent=function(t,e,i,o,n){var r=this;return function(e){var n,a;null!==(a=null===(n=t.onRightClick)||void 0===n?void 0:n.call(t,k({overlay:t,figureIndex:o,figureKey:i},e)))&&void 0!==a&&a||r.getWidget().getPane().getChart().getChartStore().getOverlayStore().removeInstance(t);return!0}},i.prototype._coordinateToPoint=function(e,i){var o,n,r={},a=this.getWidget().getPane(),s=a.getChart(),l=a.getId(),u=s.getChartStore().getTimeScaleStore();if(this.coordinateToPointTimestampDataIndexFlag()){var c=(null===(o=s.getPaneById(Kt.XAXIS))||void 0===o?void 0:o.getAxisComponent()).convertFromPixel(i.x),h=null!==(n=u.dataIndexToTimestamp(c))&&void 0!==n?n:void 0;r.dataIndex=c,r.timestamp=h}if(this.coordinateToPointValueFlag()){var d=a.getAxisComponent(),p=d.convertFromPixel(i.y);if(e.mode!==t.OverlayMode.Normal&&l===Kt.CANDLE&&void 0!==r.dataIndex){var v=u.getDataByDataIndex(r.dataIndex);if(null!==v){var g=e.modeSensitivity;if(p>v.high)if(e.mode===t.OverlayMode.WeakMagnet){var f=d.convertToPixel(v.high);d.convertFromPixel(f-g)>p&&(p=v.high)}else p=v.high;else if(v.low>p)if(e.mode===t.OverlayMode.WeakMagnet){var m=d.convertToPixel(v.low);p>d.convertFromPixel(m-g)&&(p=v.low)}else p=v.low;else{var y=Math.max(v.open,v.close),_=Math.min(v.open,v.close);p=p>y?v.high-p>p-y?y:v.high:_>p?_-p>p-v.low?v.low:_:p-_>y-p?y:_}}}r.value=p}return r},i.prototype.coordinateToPointValueFlag=function(){return!0},i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.dispatchEvent=function(t,i,o){return this.getWidget().getPane().getChart().getChartStore().getOverlayStore().isDrawing()?this.onEvent(t,i,o):e.prototype.dispatchEvent.call(this,t,i,o)},i.prototype.checkEventOn=function(){return!0},i.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart(),s=n.getAxisComponent(),l=null===(e=a.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent(),u=o.getBounding(),c=a.getChartStore(),h=c.getCustomApi(),d=c.getThousandsSeparator(),p=c.getTimeScaleStore(),v=p.getDateTimeFormat(),g=p.getBarSpace(),f=c.getPrecision(),m=c.getStyles().overlay,y=c.getOverlayStore(),_=y.getHoverInstanceInfo(),x=y.getClickInstanceInfo();this.getCompleteOverlays(y,r).forEach((function(e){e.visible&&i._drawOverlay(t,e,u,g,f,v,h,d,m,l,s,_,x,p)}));var S=y.getProgressInstanceInfo();if(null!==S){var C=this.getProgressOverlay(S,r);null!==C&&C.visible&&this._drawOverlay(t,C,u,g,f,v,h,d,m,l,s,_,x,p)}},i.prototype._drawOverlay=function(t,e,i,o,n,r,a,s,l,u,c,h,d,p){var v=e.points.map((function(t){var e,i,o=t.dataIndex;void 0!==t.timestamp&&(o=p.timestampToDataIndex(t.timestamp));var n={x:0,y:0};return void 0!==o&&(n.x=null!==(e=null==u?void 0:u.convertToPixel(o))&&void 0!==e?e:0),void 0!==t.value&&(n.y=null!==(i=null==c?void 0:c.convertToPixel(t.value))&&void 0!==i?i:0),n}));if(v.length>0){var g=[].concat(this.getFigures(e,v,i,o,n,s,r,l,u,c));this.drawFigures(t,e,g,l)}this.drawDefaultFigures(t,e,v,i,n,r,a,s,l,u,c,h,d)},i.prototype.drawFigures=function(t,e,i,o){var n=this;i.forEach((function(i,r){var a=i.type,s=i.styles,l=i.ignoreEvent;[].concat(i.attrs).forEach((function(u,c){var h,d,p,v=n._createFigureEvents(e,2,null!==(h=i.key)&&void 0!==h?h:\\"\\",r,c,l),g=k(k(k({},o[a]),null===(d=e.styles)||void 0===d?void 0:d[a]),s);null===(p=n.createFigure(a,u,g,v))||void 0===p||p.draw(t)}))}))},i.prototype.getCompleteOverlays=function(t,e){return t.getInstances(e)},i.prototype.getProgressOverlay=function(t,e){return t.paneId===e?t.instance:null},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createPointFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){var p,v,g=this;if(e.needDefaultPointFigure&&((null===(p=h.instance)||void 0===p?void 0:p.id)===e.id&&0!==h.figureType||(null===(v=d.instance)||void 0===v?void 0:v.id)===e.id&&0!==d.figureType)){var f=e.styles,m=k(k({},l.point),null==f?void 0:f.point);i.forEach((function(i,o){var n,r,a,s=i.x,l=i.y,u=m.radius,c=m.color,d=m.borderColor,p=m.borderSize;(null===(n=h.instance)||void 0===n?void 0:n.id)===e.id&&1===h.figureType&&h.figureIndex===o&&(u=m.activeRadius,c=m.activeColor,d=m.activeBorderColor,p=m.activeBorderSize),null===(r=g.createFigure(\\"circle\\",{x:s,y:l,r:u+p},{color:d},g._createFigureEvents(e,1,\\"\\".concat(yt,\\"point_\\").concat(o),o,0)))||void 0===r||r.draw(t),null===(a=g.createFigure(\\"circle\\",{x:s,y:l,r:u},{color:c}))||void 0===a||a.draw(t)}))}},i}(Te),Ae=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._gridView=new we(o),o._indicatorView=new De(o),o._crosshairLineView=new Pe(o),o._tooltipView=o.createTooltipView(),o._overlayView=new ke(o),o.addChild(o._tooltipView),o.addChild(o._overlayView),o.getContainer().style.cursor=\\"crosshair\\",o.registerEvent(\\"mouseMoveEvent\\",(function(){return i.getChart().getChartStore().getTooltipStore().setActiveIcon(),!1})),o}return P(e,t),e.prototype.getName=function(){return zt},e.prototype.updateMain=function(t){this.updateMainContent(t),this._indicatorView.draw(t),this._gridView.draw(t)},e.prototype.createTooltipView=function(){return new Me(this)},e.prototype.updateMainContent=function(t){},e.prototype.updateOverlay=function(t){this._overlayView.draw(t),this._crosshairLineView.draw(t),this._tooltipView.draw(t)},e}(ne),Fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i,n=this.getWidget(),r=n.getPane(),s=r.getChart(),l=n.getBounding(),u=r.getAxisComponent(),c=s.getStyles().candle.area,h=[],d=[],p=Number.MAX_SAFE_INTEGER;this.eachChildren((function(t,e,i){var o=t.x,n=e.halfGapBar,r=t.data[c.value];if(a(r)){var s=u.convertToPixel(r);if(0===i){var v=o-n;d.push({x:v,y:l.height}),d.push({x:v,y:s}),h.push({x:v,y:s})}h.push({x:o,y:s}),d.push({x:o,y:s}),p=Math.min(p,s)}}));var v=d.length;if(v>0){var g=d[v-1],f=g.x;h.push({x:f,y:g.y}),d.push({x:f,y:g.y}),d.push({x:f,y:l.height})}if(h.length>0&&(null===(e=this.createFigure(\\"line\\",{coordinates:h},{color:c.lineColor,size:c.lineSize}))||void 0===e||e.draw(t)),d.length>0){var m=c.backgroundColor,y=void 0;if(o(m)){var _=t.createLinearGradient(0,l.height,0,p);try{m.forEach((function(t){_.addColorStop(t.offset,t.color)}))}catch(t){}y=_}else y=m;null===(i=this.createFigure(\\"polygon\\",{coordinates:d},{color:y}))||void 0===i||i.draw(t)}},e}(Ee),Le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget().getPane(),i=e.getChart().getChartStore(),o=i.getStyles().candle.priceMark,n=o.high,r=o.low;if(o.show&&(n.show||r.show)){var a=i.getThousandsSeparator(),s=i.getPrecision(),l=e.getAxisComponent(),u=Number.MIN_SAFE_INTEGER,c=0,h=Number.MAX_SAFE_INTEGER,d=0;this.eachChildren((function(t){var e=t.data,i=t.x;e.high>u&&(u=e.high,c=i),h>e.low&&(h=e.low,d=i)}));var p=l.convertToPixel(u),v=l.convertToPixel(h);n.show&&u!==Number.MIN_SAFE_INTEGER&&this._drawMark(t,E(T(u,s.price),a),{x:c,y:p},v>p?[-2,-5]:[2,5],n),r.show&&h!==Number.MAX_SAFE_INTEGER&&this._drawMark(t,E(T(h,s.price),a),{x:d,y:v},v>p?[2,5]:[-2,-5],r)}},e.prototype._drawMark=function(t,e,i,o,n){var r,a,s,l,u,c,h=i.x,d=i.y+o[0];null===(r=this.createFigure(\\"line\\",{coordinates:[{x:h-2,y:d+o[0]},{x:h,y:d},{x:h+2,y:d+o[0]}]},{color:n.color}))||void 0===r||r.draw(t),h>this.getWidget().getBounding().width/2?(u=(l=h-5)-n.textOffset,c=\\"right\\"):(c=\\"left\\",u=(l=h+5)+n.textOffset);var p=d+o[1];null===(a=this.createFigure(\\"line\\",{coordinates:[{x:h,y:d},{x:h,y:p},{x:l,y:p}]},{color:n.color}))||void 0===a||a.draw(t),null===(s=this.createFigure(\\"text\\",{x:u,y:p,text:e,align:c,baseline:\\"middle\\"},{color:n.color,size:n.textSize,family:n.textFamily,weight:n.textWeight}))||void 0===s||s.draw(t)},e}(Ee),Re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getStyles().candle.priceMark,s=a.last,l=s.line;if(a.show&&s.show&&l.show){var u=o.getAxisComponent(),c=r.getDataList(),h=c[c.length-1];if(null!=h){var d=h.close,p=h.open,v=u.convertToNicePixel(d);null===(e=this.createFigure(\\"line\\",{coordinates:[{x:0,y:v},{x:n.width,y:v}]},{style:l.style,color:d>p?s.upColor:p>d?s.downColor:s.noChangeColor,size:l.size,dashedValue:l.dashedValue}))||void 0===e||e.draw(t)}}},e}(Te),Be={\\"zh-CN\\":{time:\\"时间:\\",open:\\"开:\\",high:\\"高:\\",low:\\"低:\\",close:\\"收:\\",volume:\\"成交量:\\",change:\\"涨幅:\\"},\\"en-US\\":{time:\\"Time: \\",open:\\"Open: \\",high:\\"High: \\",low:\\"Low: \\",close:\\"Close: \\",volume:\\"Volume: \\",change:\\"Change: \\"}};var Oe=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart().getChartStore(),s=a.getTooltipStore().getCrosshair();if(void 0!==s.kLineData){var l=o.getBounding(),u=null===(i=n.getYAxisWidget())||void 0===i?void 0:i.getBounding(),c=a.getDataList(),h=a.getPrecision(),d=a.getLocale(),p=a.getCustomApi(),v=a.getThousandsSeparator(),g=a.getTooltipStore().getActiveIcon(),f=a.getIndicatorStore().getInstances(n.getId()),m=a.getTimeScaleStore().getDateTimeFormat(),y=a.getStyles(),_=y.candle,x=y.indicator;if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Rect){var S=this.isDrawTooltip(s,_.tooltip),C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,C,y,0)}else if(_.tooltip.showType===t.TooltipShowType.Standard&&x.tooltip.showType===t.TooltipShowType.Standard){var b=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,b)}else if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Standard){var T=this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,0);S=this.isDrawTooltip(s,_.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,!1,y,T)}else{var w=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,!1,C,y,w)}}},i.prototype._drawCandleStandardTooltip=function(t,e,i,o,n,r,a,s,l,u,c,h){var d,p,v,g=h.tooltip,f=g.text,m=0;if(this.isDrawTooltip(n,g)){var y=null!==(d=n.dataIndex)&&void 0!==d?d:0,_=this._getCandleTooltipData({prev:null!==(p=e[y-1])&&void 0!==p?p:null,current:n.kLineData,next:null!==(v=e[y+1])&&void 0!==v?v:null},a,s,l,u,c,h),x=0,S=0,C=0,b=R(this.classifyTooltipIcons(g.icons),3),T=b[1],w=b[2],E=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,b[0],x,S,0),4);m+=E[3];var I=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,T,x=E[0],S=E[1],C=E[2]),4);if(x=I[0],S=I[1],m+=I[3],C=I[2],_.length>0){var D=R(this.drawStandardTooltipLabels(t,o,_,x,S,C,f),4);x=D[0],S=D[1],m+=D[3],C=D[2]}var P=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,w,x,S,C),4);x=P[0],S=P[1],m+=P[3],C=P[2]}return m},i.prototype._drawRectTooltip=function(e,i,o,n,r,a,s,l,u,c,h,d,p,v,f){var m,y,_,x,S,C=this,b=v.candle,T=v.indicator,w=b.tooltip,E=T.tooltip;if(d||p){var I=null!==(m=a.dataIndex)&&void 0!==m?m:0,D=this._getCandleTooltipData({prev:null!==(y=i[I-1])&&void 0!==y?y:null,current:a.kLineData,next:null!==(_=i[I+1])&&void 0!==_?_:null},s,l,u,c,h,b),P=w.text,M=P.marginLeft,k=P.marginRight,A=P.marginTop,F=P.marginBottom,L=P.size,R=P.weight,B=P.family,O=w.rect,V=O.position,N=O.paddingLeft,W=O.paddingRight,z=O.paddingTop,Y=O.paddingBottom,X=O.offsetLeft,j=O.offsetRight,Z=O.offsetTop,G=O.offsetBottom,K=O.borderSize,U=O.borderRadius,q=O.borderColor,$=O.color,J=0,Q=0,tt=0;d&&(e.font=H(L,R,B),D.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+M+k;J=Math.max(J,n)})),tt+=(F+A+L)*D.length);var et=E.text,it=et.marginLeft,ot=et.marginRight,nt=et.marginTop,rt=et.marginBottom,at=et.size,st=et.weight,lt=et.family,ut=[];if(p&&(e.font=H(at,st,lt),o.forEach((function(t){var o,n=null!==(o=C.getIndicatorTooltipData(i,a,t,c,h,T).values)&&void 0!==o?o:[];ut.push(n),n.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+it+ot;J=Math.max(J,n),tt+=nt+rt+at}))}))),0!==(Q+=J)&&0!==tt){Q+=2*K+N+W,tt+=2*K+z+Y;var ct=V===g.Pointer&&a.paneId===Kt.CANDLE,ht=(null!==(x=a.realX)&&void 0!==x?x:0)>n.width/2,dt=0;if(ct){var pt=a.realX;dt=ht?pt-j-Q:pt+X}else ht?(dt=X,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Left&&(dt+=r.width)):(dt=n.width-j-Q,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Right&&(dt-=r.width));var vt=f+Z;if(ct)(vt=a.y-tt/2)+tt>n.height-G&&(vt=n.height-G-tt),f+Z>vt&&(vt=f+Z);null===(S=this.createFigure(\\"rect\\",{x:dt,y:vt,width:Q,height:tt},{style:t.PolygonType.StrokeFill,color:$,borderColor:q,borderSize:K,borderRadius:U}))||void 0===S||S.draw(e);var gt=dt+K+N+M,ft=vt+K+z;if(d&&D.forEach((function(t){var i,o,n=t.title;null===(i=C.createFigure(\\"text\\",{x:gt,y:ft+=A,text:n.text},{color:n.color,size:L,family:B,weight:R}))||void 0===i||i.draw(e);var r=t.value;null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-k-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:L,family:B,weight:R}))||void 0===o||o.draw(e),ft+=L+F})),p){var mt=dt+K+N+it;ut.forEach((function(t){t.forEach((function(t){var i,o,n=t.title,r=t.value;null===(i=C.createFigure(\\"text\\",{x:mt,y:ft+=nt,text:n.text},{color:n.color,size:at,family:lt,weight:st}))||void 0===i||i.draw(e),null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-ot-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:at,family:lt,weight:st}))||void 0===o||o.draw(e),ft+=at+rt}))}))}}}},i.prototype._getCandleTooltipData=function(e,i,o,a,s,l,u){var c,h,d,p,v,g=u.tooltip,f=g.text.color,m=e.current,y=null!==(h=null===(c=e.prev)||void 0===c?void 0:c.close)&&void 0!==h?h:m.close,_=m.close-y,x=i.price,S=i.volume,C={\\"{time}\\":s.formatDate(o,m.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Tooltip),\\"{open}\\":E(T(m.open,x),l),\\"{high}\\":E(T(m.high,x),l),\\"{low}\\":E(T(m.low,x),l),\\"{close}\\":E(T(m.close,x),l),\\"{volume}\\":E(s.formatBigNumber(T(null!==(d=m.volume)&&void 0!==d?d:g.defaultValue,S)),l),\\"{change}\\":0===y?g.defaultValue:\\"\\".concat(T(_/y*100),\\"%\\")};return(null!==(v=n(g.custom)?null===(p=g.custom)||void 0===p?void 0:p.call(g,e,u):g.custom)&&void 0!==v?v:[{title:\\"time\\",value:\\"{time}\\"},{title:\\"open\\",value:\\"{open}\\"},{title:\\"high\\",value:\\"{high}\\"},{title:\\"low\\",value:\\"{low}\\"},{title:\\"close\\",value:\\"{close}\\"},{title:\\"volume\\",value:\\"{volume}\\"}]).map((function(t){var e,i=t.title,o=t.value,n={text:\\"\\",color:\\"\\"};r(i)?n=k({},i):(n.text=i,n.color=f),n.text=function(t,e){var i,o;return null!==(o=null===(i=Be[e])||void 0===i?void 0:i[t])&&void 0!==o?o:t}(n.text,a);var s={text:g.defaultValue,color:\\"\\"};r(o)?s=k({},o):(s.text=o,s.color=f);var l=s.text.match(/{(\\\\S*)}/);if(null!==l&&l.length>1){var c=\\"{\\".concat(l[1],\\"}\\");s.text=s.text.replace(c,null!==(e=C[c])&&void 0!==e?e:g.defaultValue),\\"{change}\\"===c&&(s.color=0===_?u.priceMark.last.noChangeColor:_>0?u.priceMark.last.upColor:u.priceMark.last.downColor)}return{title:n,value:s}}))},i}(Me),Ve=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o._candleBarView=new Ie(o),o._candleAreaView=new Fe(o),o._candleHighLowPriceView=new Le(o),o._candleLastPriceLineView=new Re(o),o.addChild(o._candleBarView),o}return P(i,e),i.prototype.updateMainContent=function(e){this.getPane().getChart().getStyles().candle.type!==t.CandleType.Area?(this._candleBarView.draw(e),this._candleHighLowPriceView.draw(e)):this._candleAreaView.draw(e),this._candleLastPriceLineView.draw(e)},i.prototype.createTooltipView=function(){return new Oe(this)},i}(Ae),Ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getAxisComponent(),s=this.getAxisStyles(n.getChart().getStyles());if(s.show){s.axisLine.show&&(null===(e=this.createFigure(\\"line\\",this.createAxisLine(r,s),s.axisLine))||void 0===e||e.draw(t));var l=a.getTicks();if(s.tickLine.show)this.createTickLines(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",e,s.tickLine))||void 0===o||o.draw(t)}));if(s.tickText.show)this.createTickTexts(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"text\\",e,s.tickText))||void 0===o||o.draw(t)}))}},e}(Te),We=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.yAxis},e.prototype.createAxisLine=function(t,e){var i,o=this.getWidget().getPane().getAxisComponent(),n=e.axisLine.size;return{coordinates:[{x:i=o.isFromZero()?n/2:t.width-n,y:0},{x:i,y:t.height}]}},e.prototype.createTickLines=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=0,s=0;return o.isFromZero()?(a=0,n.show&&(a+=n.size),s=a+r.length):(a=e.width,n.show&&(a-=n.size),s=a-r.length),t.map((function(t){return{coordinates:[{x:a,y:t.coord},{x:s,y:t.coord}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=i.tickText,s=0;o.isFromZero()?(s=a.marginStart,n.show&&(s+=n.size),r.show&&(s+=r.length)):(s=e.width-a.marginEnd,n.show&&(s-=n.size),r.show&&(s-=r.length));var l=this.getWidget().getPane().getAxisComponent().isFromZero()?\\"left\\":\\"right\\";return t.map((function(t){return{x:s,y:t.coord,text:t.text,align:l,baseline:\\"middle\\"}}))},e}(Ne),ze=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getChart().getChartStore(),s=a.getStyles().candle.priceMark,l=s.last,u=l.text;if(s.show&&l.show&&u.show){var c=a.getPrecision(),h=n.getAxisComponent(),d=a.getDataList(),p=a.getVisibleDataList(),v=d[d.length-1];if(void 0!==v){var g=v.close,f=v.open,m=h.convertToNicePixel(g),y=void 0;y=g>f?l.upColor:f>g?l.downColor:l.noChangeColor;var _=void 0;if(h.getType()===t.YAxisType.Percentage){var x=p[0].data.close;_=\\"\\".concat(((g-x)/x*100).toFixed(2),\\"%\\")}else _=T(g,c.price);_=E(_,a.getThousandsSeparator());var S=void 0,C=void 0;h.isFromZero()?(S=0,C=\\"left\\"):(S=r.width,C=\\"right\\"),null===(i=this.createFigure(\\"text\\",{x:S,y:m,text:_,align:C,baseline:\\"middle\\"},k(k({},u),{backgroundColor:y})))||void 0===i||i.draw(e)}}},i}(Te),Ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getCustomApi(),l=r.getStyles().indicator,u=l.lastValueMark,c=u.text;if(u.show){var h=o.getAxisComponent(),d=r.getDataList(),p=d.length-1,v=r.getIndicatorStore().getInstances(o.getId()),g=r.getThousandsSeparator();v.forEach((function(i){var o=i.result[p];if(void 0!==o&&i.visible){var r=i.precision;ot(d,i,p,l,(function(l,u){var d,p=o[l.key];if(s(p)){var v=h.convertToNicePixel(p),f=T(p,r);i.shouldFormatBigNumber&&(f=a.formatBigNumber(f)),f=E(f,g);var m=void 0,y=void 0;h.isFromZero()?(m=0,y=\\"left\\"):(m=n.width,y=\\"right\\"),null===(d=e.createFigure(\\"text\\",{x:m,y:v,text:f,align:y,baseline:\\"middle\\"},k(k({},c),{backgroundColor:u.color})))||void 0===d||d.draw(t)}}))}}))}},e}(Te),Xe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!1},e.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){this.drawFigures(t,e,this.getDefaultFigures(e,i,o,n,r,a,s,u,c,d),l)},e.prototype.getDefaultFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h,d=[];if(t.needDefaultYAxisFigure&&t.id===(null===(c=u.instance)||void 0===c?void 0:c.id)&&u.paneId===this.getWidget().getPane().getId()){var p,v,g=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;null!==(h=null==l?void 0:l.isFromZero())&&void 0!==h&&h?(p=\\"left\\",v=0):(p=\\"right\\",v=i.width),e.forEach((function(e,i){var n=t.points[i];if(void 0!==n.value){g=Math.min(g,e.y),f=Math.max(f,e.y);var r=E(T(n.value,o.price),a);d.push({type:\\"text\\",attrs:{x:v,y:e.y,text:r,align:p,baseline:\\"middle\\"},ignoreEvent:!0})}})),e.length>1&&d.unshift({type:\\"rect\\",attrs:{x:0,y:g,width:i.width,height:f-g},ignoreEvent:!0})}return d},e.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createYAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},e}(ke),He=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=i.getPane().getChart().getChartStore(),a=r.getTooltipStore().getCrosshair(),s=r.getStyles().crosshair;if(void 0!==a.paneId&&this.compare(a,o.getId())&&s.show){var l=this.getDirectionStyles(s),u=l.text;if(l.show&&u.show){var c=o.getAxisComponent(),h=this.getText(a,r,c);t.font=H(u.size,u.weight,u.family),null===(e=this.createFigure(\\"text\\",this.getTextAttrs(h,t.measureText(h).width,a,n,c,u),u))||void 0===e||e.draw(t)}}},i.prototype.compare=function(t,e){return t.paneId===e},i.prototype.getDirectionStyles=function(t){return t.horizontal},i.prototype.getText=function(e,i,o){var n,r,a,s=o,l=o.convertFromPixel(e.y);if(s.getType()===t.YAxisType.Percentage){var u=null!==(r=null===(n=i.getVisibleDataList()[0])||void 0===n?void 0:n.data)&&void 0!==r?r:{};a=\\"\\".concat(((l-u.close)/u.close*100).toFixed(2),\\"%\\")}else{var c=i.getIndicatorStore().getInstances(e.paneId),h=0,d=!1;s.isInCandle()?h=i.getPrecision().price:c.forEach((function(t){h=Math.max(t.precision,h),d||(d=t.shouldFormatBigNumber)})),a=T(l,h),d&&(a=i.getCustomApi().formatBigNumber(a))}return E(a,i.getThousandsSeparator())},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s;return n.isFromZero()?(a=0,s=\\"left\\"):(a=o.width,s=\\"right\\"),{x:a,y:i.y,text:t,align:s,baseline:\\"middle\\"}},i}(Te),je=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._yAxisView=new We(o),o._candleLastPriceLabelView=new ze(o),o._indicatorLastValueView=new Ye(o),o._overlayYAxisView=new Xe(o),o._crosshairHorizontalLabelView=new He(o),o.getContainer().style.cursor=\\"ns-resize\\",o.addChild(o._overlayYAxisView),o}return P(e,t),e.prototype.getName=function(){return Xt},e.prototype.updateMain=function(t){this._yAxisView.draw(t),this.getPane().getAxisComponent().isInCandle()&&this._candleLastPriceLabelView.draw(t),this._indicatorLastValueView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayYAxisView.draw(t),this._crosshairHorizontalLabelView.draw(t)},e}(ne),Ze=function(){function t(t){this._extremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._prevExtremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._ticks=[],this._autoCalcTickFlag=!0,this._parent=t}return t.prototype.getParent=function(){return this._parent},t.prototype.buildTicks=function(t){return this._autoCalcTickFlag&&(this._extremum=this.calcExtremum()),!(this._prevExtremum.min===this._extremum.min&&this._prevExtremum.max===this._extremum.max&&!t)&&(this._prevExtremum=this._extremum,this._ticks=this.optimalTicks(this._calcTicks()),!0)},t.prototype.getTicks=function(){return this._ticks},t.prototype.getScrollZoomEnabled=function(){var t;return null===(t=this.getParent().getOptions().axisOptions.scrollZoomEnabled)||void 0===t||t},t.prototype.setExtremum=function(t){this._autoCalcTickFlag=!1,this._extremum=t},t.prototype.getExtremum=function(){return this._extremum},t.prototype.setAutoCalcTickFlag=function(t){this._autoCalcTickFlag=t},t.prototype.getAutoCalcTickFlag=function(){return this._autoCalcTickFlag},t.prototype._calcTicks=function(){var t=this._extremum,e=t.realMin,i=t.realMax,o=t.realRange,n=[];if(o>=0){var r=R(this._calcTickInterval(o),2),a=r[0],s=r[1],l=G(Math.ceil(e/a)*a,s),u=G(Math.floor(i/a)*a,s),c=0,h=l;if(0!==a)for(;u>=h;){var d=h.toFixed(s);n[c]={text:d,coord:0,value:d},++c,h+=a}}return n},t.prototype._calcTickInterval=function(t){var e,i,o,n,r=(i=Math.floor(U(e=t/8)),o=q(i),e=(1.5>(n=e/o)?1:2.5>n?2:3.5>n?3:4.5>n?4:5.5>n?5:6.5>n?6:8)*o,-20>i?e:+e.toFixed(0>i?-i:0)),a=function(t){var e=\\"\\"+t,i=e.indexOf(\\"e\\");if(i>0){var o=+e.slice(i+1);return 0>o?-o:0}var n=e.indexOf(\\".\\");return 0>n?0:e.length-1-n}(r);return[r,a]},t}(),Ge=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var e,i,o,n,r,a=this.getParent(),l=a.getChart(),u=l.getChartStore(),c=Number.MAX_SAFE_INTEGER,h=Number.MIN_SAFE_INTEGER,d=[],p=!1,v=Number.MAX_SAFE_INTEGER,g=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER;u.getIndicatorStore().getInstances(a.getId()).forEach((function(t){var e,i,o;p||(p=null!==(e=t.shouldOhlc)&&void 0!==e&&e),f=Math.min(f,t.precision),null!==t.minValue&&(v=Math.min(v,t.minValue)),null!==t.maxValue&&(g=Math.max(g,t.maxValue)),d.push({figures:null!==(i=t.figures)&&void 0!==i?i:[],result:null!==(o=t.result)&&void 0!==o?o:[]})}));var m=4,y=this.isInCandle();if(y){var _=u.getPrecision().price;m=f!==Number.MAX_SAFE_INTEGER?Math.min(f,_):_}else f!==Number.MAX_SAFE_INTEGER&&(m=f);var x=u.getVisibleDataList(),S=l.getStyles().candle,C=S.type===t.CandleType.Area,b=S.area.value,T=y&&!C||!y&&p;x.forEach((function(t){var e=t.dataIndex,i=t.data;if(T&&(c=Math.min(c,i.low),h=Math.max(h,i.high)),y&&C){var o=i[b];c=Math.min(c,o),h=Math.max(h,o)}d.forEach((function(t){var i,o=null!==(i=t.result[e])&&void 0!==i?i:{};t.figures.forEach((function(t){var e=o[t.key];s(e)&&(c=Math.min(c,e),h=Math.max(h,e))}))}))})),c!==Number.MAX_SAFE_INTEGER&&h!==Number.MIN_SAFE_INTEGER?(c=Math.min(v,c),h=Math.max(g,h)):(c=0,h=10);var w,E=this.getType();switch(E){case t.YAxisType.Percentage:var I=null===(e=x[0])||void 0===e?void 0:e.data;void 0!==(null==I?void 0:I.close)&&(c=(c-I.close)/I.close*100,h=(h-I.close)/I.close*100),w=.01;break;case t.YAxisType.Log:c=U(c),h=U(h),w=.05*q(-m);break;default:w=q(-m)}if(c===h||w>Math.abs(c-h)){var D=v===c,P=g===h;c=D?c:P?c-8*w:c-4*w,h=P?h:D?h+8*w:h+4*w}var M=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,k=a.getOptions().gap,A=null!==(n=null==k?void 0:k.top)&&void 0!==n?n:.2;1>A||(A/=M);var F=null!==(r=null==k?void 0:k.bottom)&&void 0!==r?r:.1;1>F||(F/=M);var L,R,B,O=Math.abs(h-c);return O=Math.abs((h+=O*A)-(c-=O*F)),E===t.YAxisType.Log?(L=q(c),R=q(h),B=Math.abs(R-L)):(L=c,R=h,B=O),{min:c,max:h,range:O,realMin:L,realMax:R,realRange:B}},i.prototype._innerConvertToPixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.getExtremum(),r=(t-n.min)/n.range;return this.isReverse()?Math.round(r*o):Math.round((1-r)*o)},i.prototype.isInCandle=function(){return\\"candle\\"===this.getParent().getName()},i.prototype.getType=function(){return this.isInCandle()?this.getParent().getChart().getStyles().yAxis.type:t.YAxisType.Normal},i.prototype.getPosition=function(){return this.getParent().getChart().getStyles().yAxis.position},i.prototype.isReverse=function(){return!!this.isInCandle()&&this.getParent().getChart().getStyles().yAxis.reverse},i.prototype.isFromZero=function(){var e=this.getParent().getChart().getStyles().yAxis,i=e.inside;return e.position===t.YAxisPosition.Left&&i||e.position===t.YAxisPosition.Right&&!i},i.prototype.optimalTicks=function(e){var i,o,n=this,r=this.getParent(),a=null!==(o=null===(i=r.getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,s=r.getChart().getChartStore(),l=s.getCustomApi(),u=[],c=this.getType(),h=s.getIndicatorStore().getInstances(r.getId()),d=s.getThousandsSeparator(),p=0,v=!1;this.isInCandle()?p=s.getPrecision().price:h.forEach((function(t){p=Math.max(p,t.precision),v||(v=t.shouldFormatBigNumber)}));var g,f=s.getStyles().xAxis.tickText.size;return e.forEach((function(e){var i,o=e.value,r=n._innerConvertToPixel(+o);switch(c){case t.YAxisType.Percentage:i=\\"\\".concat(T(o,2),\\"%\\");break;case t.YAxisType.Log:r=n._innerConvertToPixel(U(+o)),i=T(o,p);break;default:i=T(o,p),v&&(i=l.formatBigNumber(o))}i=E(i,d),r>f&&a-f>r&&(void 0!==g&&Math.abs(g-r)>2*f||void 0===g)&&(u.push({text:i,coord:r,value:o}),g=r)})),u},i.prototype.getAutoSize=function(){var e=this.getParent(),i=e.getChart(),o=i.getStyles(),n=o.yAxis,r=n.size;if(\\"auto\\"!==r)return r;var a=i.getChartStore(),s=a.getCustomApi(),l=0;if(n.show&&(n.axisLine.show&&(l+=n.axisLine.size),n.tickLine.show&&(l+=n.tickLine.length),n.tickText.show)){var u=0;this.getTicks().forEach((function(t){u=Math.max(u,j(t.text,n.tickText.size,n.tickText.weight,n.tickText.family))})),l+=n.tickText.marginStart+n.tickText.marginEnd+u}var c=o.crosshair,h=0;if(c.show&&c.horizontal.show&&c.horizontal.text.show){var d=a.getIndicatorStore().getInstances(e.getId()),p=0,v=!1;d.forEach((function(t){p=Math.max(t.precision,p),v||(v=t.shouldFormatBigNumber)}));var g=2;if(this.getType()!==t.YAxisType.Percentage)if(this.isInCandle()){var f=a.getPrecision().price,m=o.indicator.lastValueMark;g=m.show&&m.text.show?Math.max(p,f):f}else g=p;var y=T(this.getExtremum().max,g);v&&(y=s.formatBigNumber(y)),h+=c.horizontal.text.paddingLeft+c.horizontal.text.paddingRight+2*c.horizontal.text.borderSize+j(y,c.horizontal.text.size,c.horizontal.text.weight,c.horizontal.text.family)}return Math.max(l,h)},i.prototype.convertFromPixel=function(e){var i,o,n,r=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,a=this.getExtremum(),s=a.min,l=a.range,u=(this.isReverse()?e/r:1-e/r)*l+s;switch(this.getType()){case t.YAxisType.Percentage:var c=null===(n=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===n?void 0:n.data;return void 0!==(null==c?void 0:c.close)?c.close*u/100+c.close:0;case t.YAxisType.Log:return q(u);default:return u}},i.prototype.convertToRealValue=function(e){var i=e;return this.getType()===t.YAxisType.Log&&(i=q(e)),i},i.prototype.convertToPixel=function(e){var i,o=e;switch(this.getType()){case t.YAxisType.Percentage:var n=null===(i=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===i?void 0:i.data;void 0!==(null==n?void 0:n.close)&&(o=(e-n.close)/n.close*100);break;case t.YAxisType.Log:o=U(e);break;default:o=e}return this._innerConvertToPixel(o)},i.prototype.convertToNicePixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.convertToPixel(t);return Math.round(Math.max(.05*o,Math.min(n,.98*o)))},i}(Ze),Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"indicator\\"},e.prototype.createAxisComponent=function(){return new Ge(this)},e.prototype.createMainWidget=function(t){return new Ae(t,this)},e.prototype.createSeparatorWidget=function(t){return new Zt(t,this)},e.prototype.createYAxisWidget=function(t){return new je(t,this)},e}(Ut),Ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"candle\\"},e.prototype.createMainWidget=function(t){return new Ve(t,this)},e.prototype.createSeparatorWidget=function(){return null},e}(Ke),qe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.xAxis},e.prototype.createAxisLine=function(t,e){var i=e.axisLine.size/2;return{coordinates:[{x:0,y:i},{x:t.width,y:i}]}},e.prototype.createTickLines=function(t,e,i){var o=i.tickLine,n=i.axisLine.size;return t.map((function(t){return{coordinates:[{x:t.coord,y:0},{x:t.coord,y:n+o.length}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=i.tickText,n=i.axisLine.size,r=i.tickLine.length;return t.map((function(t){return{x:t.coord,y:n+r+o.marginStart,text:t.text,align:\\"center\\",baseline:\\"top\\"}}))},e}(Ne),$e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.coordinateToPointValueFlag=function(){return!1},i.prototype.getCompleteOverlays=function(t){return t.getInstances()},i.prototype.getProgressOverlay=function(t){return t.instance},i.prototype.getDefaultFigures=function(e,i,o,n,r,a,s,l,u,c){var h,d=[];if(e.needDefaultXAxisFigure&&e.id===(null===(h=c.instance)||void 0===h?void 0:h.id)){var p=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER;i.forEach((function(i,o){p=Math.min(p,i.x),v=Math.max(v,i.x);var n=e.points[o];if(void 0!==n.timestamp){var s=a.formatDate(r,n.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair);d.push({type:\\"text\\",attrs:{x:i.x,y:0,text:s,align:\\"center\\"},ignoreEvent:!0})}})),i.length>1&&d.unshift({type:\\"rect\\",attrs:{x:p,y:0,width:v-p,height:o.height},ignoreEvent:!0})}return d},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createXAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i}(Xe),Je=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.compare=function(t){return void 0!==t.kLineData&&t.dataIndex===t.realDataIndex},i.prototype.getDirectionStyles=function(t){return t.vertical},i.prototype.getText=function(e,i){var o,n=null===(o=e.kLineData)||void 0===o?void 0:o.timestamp;return i.getCustomApi().formatDate(i.getTimeScaleStore().getDateTimeFormat(),n,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair)},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s=i.realX,l=\\"center\\";return 0>s-e/2-r.paddingLeft?(a=0,l=\\"left\\"):s+e/2+r.paddingRight>o.width?(a=o.width,l=\\"right\\"):a=s,{x:a,y:0,text:t,align:l,baseline:\\"top\\"}},i}(He),Qe=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._xAxisView=new qe(o),o._overlayXAxisView=new $e(o),o._crosshairVerticalLabelView=new Je(o),o.getContainer().style.cursor=\\"ew-resize\\",o.addChild(o._overlayXAxisView),o}return P(e,t),e.prototype.getName=function(){return Yt},e.prototype.updateMain=function(t){this._xAxisView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayXAxisView.draw(t),this._crosshairVerticalLabelView.draw(t)},e}(ne),ti=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var t=this.getParent().getChart().getChartStore().getTimeScaleStore().getVisibleRange(),e=t.from,i=t.to,o=i-1,n=i-e;return{min:e,max:o,range:n,realMin:e,realMax:o,realRange:n}},i.prototype.optimalTicks=function(e){var i,o,n=this.getParent().getChart(),r=n.getChartStore(),a=r.getCustomApi().formatDate,s=[],l=e.length,u=r.getDataList();if(l>0){var c=r.getTimeScaleStore().getDateTimeFormat(),h=n.getStyles().xAxis.tickText,d=j(\\"00-00 00:00\\",h.size,h.weight,h.family),p=this.convertToPixel(parseInt(e[0].value,10)),v=1;if(l>1){var g=this.convertToPixel(parseInt(e[1].value,10)),f=Math.abs(g-p);d>f&&(v=Math.ceil(d/f))}for(var m=0;l>m;m+=v){var y=parseInt(e[m].value,10),_=u[y].timestamp,x=a(c,_,\\"HH:mm\\",t.FormatDateType.XAxis);if(0!==m)x=null!==(i=this._optimalTickLabel(a,c,_,u[parseInt(e[m-v].value,10)].timestamp))&&void 0!==i?i:x;var S=this.convertToPixel(y);s.push({text:x,coord:S,value:_})}if(1===s.length)s[0].text=a(c,s[0].value,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.XAxis);else{var C=s[0].value,b=s[1].value;if(void 0!==s[2]){var T=s[2].text;/^[0-9]{2}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"MM-DD\\",t.FormatDateType.XAxis):/^[0-9]{4}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"YYYY-MM\\",t.FormatDateType.XAxis):/^[0-9]{4}$/.test(T)&&(s[0].text=a(c,C,\\"YYYY\\",t.FormatDateType.XAxis))}else s[0].text=null!==(o=this._optimalTickLabel(a,c,C,b))&&void 0!==o?o:s[0].text}}return s},i.prototype._optimalTickLabel=function(e,i,o,n){var r=e(i,o,\\"YYYY\\",t.FormatDateType.XAxis),a=e(i,o,\\"YYYY-MM\\",t.FormatDateType.XAxis),s=e(i,o,\\"MM-DD\\",t.FormatDateType.XAxis);return r!==e(i,n,\\"YYYY\\",t.FormatDateType.XAxis)?r:a!==e(i,n,\\"YYYY-MM\\",t.FormatDateType.XAxis)?a:s!==e(i,n,\\"MM-DD\\",t.FormatDateType.XAxis)?s:null},i.prototype.getAutoSize=function(){var t=this.getParent().getChart().getStyles(),e=t.xAxis,i=e.size;if(\\"auto\\"!==i)return i;var o=t.crosshair,n=0;e.show&&(e.axisLine.show&&(n+=e.axisLine.size),e.tickLine.show&&(n+=e.tickLine.length),e.tickText.show&&(n+=e.tickText.marginStart+e.tickText.marginEnd+e.tickText.size));var r=0;return o.show&&o.vertical.show&&o.vertical.text.show&&(r+=o.vertical.text.paddingTop+o.vertical.text.paddingBottom+2*o.vertical.text.borderSize+o.vertical.text.size),Math.max(n,r)},i.prototype.convertTimestampFromPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.coordinateToDataIndex(t);return e.dataIndexToTimestamp(i)},i.prototype.convertTimestampToPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.timestampToDataIndex(t);return e.dataIndexToCoordinate(i)},i.prototype.convertFromPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().coordinateToDataIndex(t)},i.prototype.convertToPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().dataIndexToCoordinate(t)},i}(Ze),ei=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"xAxis\\"},e.prototype.createAxisComponent=function(){return new ti(this)},e.prototype.createMainWidget=function(t){return new Qe(t,this)},e}(Ut);function ii(){var t;return\\"undefined\\"!=typeof window&&(null!==(t=window.navigator.userAgent.toLowerCase().indexOf(\\"firefox\\"))&&void 0!==t?t:-1)>-1}function oi(){return\\"undefined\\"!=typeof window&&/iPhone|iPad|iPod/.test(window.navigator.platform)}var ni,ri=function(){function t(t,e,i){var o=this;this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0},this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0},this._longTapTimeoutId=null,this._longTapActive=!1,this._mouseMoveStartCoordinate=null,this._touchMoveStartCoordinate=null,this._touchMoveExceededManhattanDistance=!1,this._cancelClick=!1,this._cancelTap=!1,this._unsubscribeOutsideMouseEvents=null,this._unsubscribeOutsideTouchEvents=null,this._unsubscribeMobileSafariEvents=null,this._unsubscribeMousemove=null,this._unsubscribeMouseWheel=null,this._unsubscribeContextMenu=null,this._unsubscribeRootMouseEvents=null,this._unsubscribeRootTouchEvents=null,this._startPinchMiddleCoordinate=null,this._startPinchDistance=0,this._pinchPrevented=!1,this._preventTouchDragProcess=!1,this._mousePressed=!1,this._lastTouchEventTimeStamp=0,this._activeTouchId=null,this._acceptMouseLeave=!oi(),this._onFirefoxOutsideMouseUp=function(t){o._mouseUpHandler(t)},this._onMobileSafariDoubleClick=function(t){o._firesTouchEvents(t)?(++o._tapCount,null!==o._tapTimeoutId&&o._tapCount>1&&(30>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._tapCoordinate).manhattanDistance&&!o._cancelTap&&o._processEvent(o._makeCompatEvent(t),o._handler.doubleTapEvent),o._resetTapTimeout())):(++o._clickCount,null!==o._clickTimeoutId&&o._clickCount>1&&(5>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._clickCoordinate).manhattanDistance&&!o._cancelClick&&o._processEvent(o._makeCompatEvent(t),o._handler.mouseDoubleClickEvent),o._resetClickTimeout()))},this._target=t,this._handler=e,this._options=i,this._init()}return t.prototype.destroy=function(){null!==this._unsubscribeOutsideMouseEvents&&(this._unsubscribeOutsideMouseEvents(),this._unsubscribeOutsideMouseEvents=null),null!==this._unsubscribeOutsideTouchEvents&&(this._unsubscribeOutsideTouchEvents(),this._unsubscribeOutsideTouchEvents=null),null!==this._unsubscribeMousemove&&(this._unsubscribeMousemove(),this._unsubscribeMousemove=null),null!==this._unsubscribeMouseWheel&&(this._unsubscribeMouseWheel(),this._unsubscribeMouseWheel=null),null!==this._unsubscribeContextMenu&&(this._unsubscribeContextMenu(),this._unsubscribeContextMenu=null),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null),null!==this._unsubscribeMobileSafariEvents&&(this._unsubscribeMobileSafariEvents(),this._unsubscribeMobileSafariEvents=null),this._clearLongTapTimeout(),this._resetClickTimeout()},t.prototype._mouseEnterHandler=function(t){var e,i,o,n=this;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this);var r=this._mouseMoveHandler.bind(this);this._unsubscribeMousemove=function(){n._target.removeEventListener(\\"mousemove\\",r)},this._target.addEventListener(\\"mousemove\\",r);var a=this._mouseWheelHandler.bind(this);this._unsubscribeMouseWheel=function(){n._target.removeEventListener(\\"wheel\\",a)},this._target.addEventListener(\\"wheel\\",a,{passive:!1});var s=this._contextMenuHandler.bind(this);this._unsubscribeContextMenu=function(){n._target.removeEventListener(\\"contextmenu\\",s)},this._target.addEventListener(\\"contextmenu\\",s,{passive:!1}),this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseEnterEvent),this._acceptMouseLeave=!0)},t.prototype._resetClickTimeout=function(){null!==this._clickTimeoutId&&clearTimeout(this._clickTimeoutId),this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0}},t.prototype._resetTapTimeout=function(){null!==this._tapTimeoutId&&clearTimeout(this._tapTimeoutId),this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0}},t.prototype._mouseMoveHandler=function(t){this._mousePressed||null!==this._touchMoveStartCoordinate||this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseMoveEvent),this._acceptMouseLeave=!0)},t.prototype._mouseWheelHandler=function(t){if(Math.abs(t.deltaX)>Math.abs(t.deltaY)){if(void 0===this._handler.mouseWheelHortEvent)return;if(this._preventDefault(t),0===Math.abs(t.deltaX))return;this._handler.mouseWheelHortEvent(this._makeCompatEvent(t),-t.deltaX)}else{if(void 0===this._handler.mouseWheelVertEvent)return;var e=-t.deltaY/100;if(0===e)return;switch(this._preventDefault(t),t.deltaMode){case t.DOM_DELTA_PAGE:e*=120;break;case t.DOM_DELTA_LINE:e*=32}if(0!==e){var i=Math.sign(e)*Math.min(1,Math.abs(e));this._handler.mouseWheelVertEvent(this._makeCompatEvent(t),i)}}},t.prototype._contextMenuHandler=function(t){this._preventDefault(t)},t.prototype._touchMoveHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null!==e&&(this._lastTouchEventTimeStamp=this._eventTimeStamp(t),null===this._startPinchMiddleCoordinate&&!this._preventTouchDragProcess)){this._pinchPrevented=!0;var i=this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._touchMoveStartCoordinate),o=i.yOffset;if(this._touchMoveExceededManhattanDistance||i.manhattanDistance>=5){if(!this._touchMoveExceededManhattanDistance){var n=.5*i.xOffset,r=o>=n&&!this._options.treatVertDragAsPageScroll(),a=n>o&&!this._options.treatHorzDragAsPageScroll();r||a||(this._preventTouchDragProcess=!0),this._touchMoveExceededManhattanDistance=!0,this._cancelTap=!0,this._clearLongTapTimeout(),this._resetTapTimeout()}this._preventTouchDragProcess||this._processEvent(this._makeCompatEvent(t,e),this._handler.touchMoveEvent)}}},t.prototype._mouseMoveWithDownHandler=function(t){0===t.button&&(5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._mouseMoveStartCoordinate).manhattanDistance||(this._cancelClick=!0,this._resetClickTimeout()),this._cancelClick&&this._processEvent(this._makeCompatEvent(t),this._handler.pressedMouseMoveEvent))},t.prototype._mouseTouchMoveWithDownInfo=function(t,e){var i=Math.abs(e.x-t.x),o=Math.abs(e.y-t.y);return{xOffset:i,yOffset:o,manhattanDistance:i+o}},t.prototype._touchEndHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null===e&&0===t.touches.length&&(e=t.changedTouches[0]),null!==e){this._activeTouchId=null,this._lastTouchEventTimeStamp=this._eventTimeStamp(t),this._clearLongTapTimeout(),this._touchMoveStartCoordinate=null,null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var i=this._makeCompatEvent(t,e);if(this._processEvent(i,this._handler.touchEndEvent),++this._tapCount,null!==this._tapTimeoutId&&this._tapCount>1)30>this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._tapCoordinate).manhattanDistance&&!this._cancelTap&&this._processEvent(i,this._handler.doubleTapEvent),this._resetTapTimeout();else this._cancelTap||(this._processEvent(i,this._handler.tapEvent),void 0!==this._handler.tapEvent&&this._preventDefault(t));0===this._tapCount&&this._preventDefault(t),0===t.touches.length&&this._longTapActive&&(this._longTapActive=!1,this._preventDefault(t))}},t.prototype._mouseUpHandler=function(t){if(0===t.button){var e=this._makeCompatEvent(t);if(this._mouseMoveStartCoordinate=null,this._mousePressed=!1,null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),ii())this._target.ownerDocument.documentElement.removeEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp);if(!this._firesTouchEvents(t))if(this._processEvent(e,this._handler.mouseUpEvent),++this._clickCount,null!==this._clickTimeoutId&&this._clickCount>1)5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._clickCoordinate).manhattanDistance&&!this._cancelClick&&this._processEvent(e,this._handler.mouseDoubleClickEvent),this._resetClickTimeout();else this._cancelClick||this._processEvent(e,this._handler.mouseClickEvent)}},t.prototype._clearLongTapTimeout=function(){null!==this._longTapTimeoutId&&(clearTimeout(this._longTapTimeoutId),this._longTapTimeoutId=null)},t.prototype._touchStartHandler=function(t){if(null===this._activeTouchId){var e=t.changedTouches[0];this._activeTouchId=e.identifier,this._lastTouchEventTimeStamp=this._eventTimeStamp(t);var i=this._target.ownerDocument.documentElement;this._cancelTap=!1,this._touchMoveExceededManhattanDistance=!1,this._preventTouchDragProcess=!1,this._touchMoveStartCoordinate=this._getCoordinate(e),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var o=this._touchMoveHandler.bind(this),n=this._touchEndHandler.bind(this);this._unsubscribeRootTouchEvents=function(){i.removeEventListener(\\"touchmove\\",o),i.removeEventListener(\\"touchend\\",n)},i.addEventListener(\\"touchmove\\",o,{passive:!1}),i.addEventListener(\\"touchend\\",n,{passive:!1}),this._clearLongTapTimeout(),this._longTapTimeoutId=setTimeout(this._longTapHandler.bind(this,t),500),this._processEvent(this._makeCompatEvent(t,e),this._handler.touchStartEvent),null===this._tapTimeoutId&&(this._tapCount=0,this._tapTimeoutId=setTimeout(this._resetTapTimeout.bind(this),500),this._tapCoordinate=this._getCoordinate(e))}},t.prototype._mouseDownHandler=function(t){if(2===t.button)return this._preventDefault(t),void this._processEvent(this._makeCompatEvent(t),this._handler.mouseRightClickEvent);if(0===t.button){var e=this._target.ownerDocument.documentElement;ii()&&e.addEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp),this._cancelClick=!1,this._mouseMoveStartCoordinate=this._getCoordinate(t),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null);var i=this._mouseMoveWithDownHandler.bind(this),o=this._mouseUpHandler.bind(this);this._unsubscribeRootMouseEvents=function(){e.removeEventListener(\\"mousemove\\",i),e.removeEventListener(\\"mouseup\\",o)},e.addEventListener(\\"mousemove\\",i),e.addEventListener(\\"mouseup\\",o),this._mousePressed=!0,this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseDownEvent),null===this._clickTimeoutId&&(this._clickCount=0,this._clickTimeoutId=setTimeout(this._resetClickTimeout.bind(this),500),this._clickCoordinate=this._getCoordinate(t)))}},t.prototype._init=function(){var t=this;this._target.addEventListener(\\"mouseenter\\",this._mouseEnterHandler.bind(this)),this._target.addEventListener(\\"touchcancel\\",this._clearLongTapTimeout.bind(this));var e=this._target.ownerDocument,i=function(e){null!=t._handler.mouseDownOutsideEvent&&(e.composed&&t._target.contains(e.composedPath()[0])||null!==e.target&&t._target.contains(e.target)||t._handler.mouseDownOutsideEvent({x:0,y:0,pageX:0,pageY:0}))};this._unsubscribeOutsideTouchEvents=function(){e.removeEventListener(\\"touchstart\\",i)},this._unsubscribeOutsideMouseEvents=function(){e.removeEventListener(\\"mousedown\\",i)},e.addEventListener(\\"mousedown\\",i),e.addEventListener(\\"touchstart\\",i,{passive:!0}),oi()&&(this._unsubscribeMobileSafariEvents=function(){t._target.removeEventListener(\\"dblclick\\",t._onMobileSafariDoubleClick)},this._target.addEventListener(\\"dblclick\\",this._onMobileSafariDoubleClick)),this._target.addEventListener(\\"mouseleave\\",this._mouseLeaveHandler.bind(this)),this._target.addEventListener(\\"touchstart\\",this._touchStartHandler.bind(this),{passive:!0}),this._target.addEventListener(\\"mousedown\\",(function(t){if(1===t.button)return t.preventDefault(),!1})),this._target.addEventListener(\\"mousedown\\",this._mouseDownHandler.bind(this)),this._initPinch(),this._target.addEventListener(\\"touchmove\\",(function(){}),{passive:!1})},t.prototype._initPinch=function(){var t=this;void 0===this._handler.pinchStartEvent&&void 0===this._handler.pinchEvent&&void 0===this._handler.pinchEndEvent||(this._target.addEventListener(\\"touchstart\\",(function(e){return t._checkPinchState(e.touches)}),{passive:!0}),this._target.addEventListener(\\"touchmove\\",(function(e){if(2===e.touches.length&&null!==t._startPinchMiddleCoordinate&&void 0!==t._handler.pinchEvent){var i=t._getTouchDistance(e.touches[0],e.touches[1])/t._startPinchDistance;t._handler.pinchEvent(k(k({},t._startPinchMiddleCoordinate),{pageX:0,pageY:0}),i),t._preventDefault(e)}}),{passive:!1}),this._target.addEventListener(\\"touchend\\",(function(e){t._checkPinchState(e.touches)})))},t.prototype._checkPinchState=function(t){1===t.length&&(this._pinchPrevented=!1),2!==t.length||this._pinchPrevented||this._longTapActive?this._stopPinch():this._startPinch(t)},t.prototype._startPinch=function(t){var e,i=null!==(e=this._target.getBoundingClientRect())&&void 0!==e?e:{left:0,top:0};this._startPinchMiddleCoordinate={x:(t[0].clientX-i.left+(t[1].clientX-i.left))/2,y:(t[0].clientY-i.top+(t[1].clientY-i.top))/2},this._startPinchDistance=this._getTouchDistance(t[0],t[1]),void 0!==this._handler.pinchStartEvent&&this._handler.pinchStartEvent({x:0,y:0,pageX:0,pageY:0}),this._clearLongTapTimeout()},t.prototype._stopPinch=function(){null!==this._startPinchMiddleCoordinate&&(this._startPinchMiddleCoordinate=null,void 0!==this._handler.pinchEndEvent&&this._handler.pinchEndEvent({x:0,y:0,pageX:0,pageY:0}))},t.prototype._mouseLeaveHandler=function(t){var e,i,o;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this),this._firesTouchEvents(t)||this._acceptMouseLeave&&(this._processEvent(this._makeCompatEvent(t),this._handler.mouseLeaveEvent),this._acceptMouseLeave=!oi())},t.prototype._longTapHandler=function(t){var e=this._touchWithId(t.touches,this._activeTouchId);null!==e&&(this._processEvent(this._makeCompatEvent(t,e),this._handler.longTapEvent),this._cancelTap=!0,this._longTapActive=!0)},t.prototype._firesTouchEvents=function(t){var e;return void 0!==(null===(e=t.sourceCapabilities)||void 0===e?void 0:e.firesTouchEvents)?t.sourceCapabilities.firesTouchEvents:this._eventTimeStamp(t)i;++i)if(t[i].identifier===e)return t[i];return null},t}(),ai=function(){function t(t,e){var i=this;this._flingStartTime=(new Date).getTime(),this._flingScrollRequestId=null,this._startScrollCoordinate=null,this._touchCoordinate=null,this._touchCancelCrosshair=!1,this._touchZoomed=!1,this._pinchScale=1,this._mouseDownWidget=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,this._mouseMoveTriggerWidgetInfo={pane:null,widget:null},this._boundKeyBoardDownEvent=function(t){if(t.shiftKey)switch(t.code){case\\"Equal\\":i._chart.getChartStore().getTimeScaleStore().zoom(.5);break;case\\"Minus\\":i._chart.getChartStore().getTimeScaleStore().zoom(-.5);break;case\\"ArrowLeft\\":(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(-3*e.getBarSpace().bar);break;case\\"ArrowRight\\":var e;(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(3*e.getBarSpace().bar)}},this._container=t,this._chart=e,this._event=new ri(t,this,{treatVertDragAsPageScroll:function(){return!1},treatHorzDragAsPageScroll:function(){return!1}}),t.addEventListener(\\"keydown\\",this._boundKeyBoardDownEvent)}return t.prototype.pinchStartEvent=function(){return this._touchZoomed=!0,this._pinchScale=1,!0},t.prototype.pinchEvent=function(t,e){var i=this._findWidgetByEvent(t),o=i.pane,n=i.widget;if((null==o?void 0:o.getId())!==Kt.XAXIS&&(null==n?void 0:n.getName())===zt){var r=this._makeWidgetEvent(t,n),a=5*(e-this._pinchScale);return this._pinchScale=e,this._chart.getChartStore().getTimeScaleStore().zoom(a,{x:r.x,y:r.y}),!0}return!1},t.prototype.mouseWheelHortEvent=function(t,e){var i=this._chart.getChartStore().getTimeScaleStore();return i.startScroll(),i.scroll(e),!0},t.prototype.mouseWheelVertEvent=function(t,e){var i,o,n=this._findWidgetByEvent(t).widget,r=null!==(i=t.isTouch)&&void 0!==i&&i,a=this._makeWidgetEvent(t,n),s=null,l=null==n?void 0:n.getName();if(r)if(l===zt||l===Yt)s={x:a.x,y:a.y};else{var u=null===(o=this._chart.getPaneById(Kt.CANDLE))||void 0===o?void 0:o.getBounding();s={x:u.width/2,y:u.height/2}}else l===zt&&(s={x:a.x,y:a.y});return null!==s&&(this._chart.getChartStore().getTimeScaleStore().zoom(e,{x:a.x,y:a.y}),!0)},t.prototype.mouseDownEvent=function(t){var e,i,o=this._findWidgetByEvent(t),n=o.pane,r=o.widget;if(this._mouseDownWidget=r,null!==r){var a=this._makeWidgetEvent(t,r);switch(r.getName()){case Ht:return r.dispatchEvent(\\"mouseDownEvent\\",a);case zt:var s=null!==(e=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==e?e:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._startScrollCoordinate={x:a.x,y:a.y},this._chart.getChartStore().getTimeScaleStore().startScroll(),r.dispatchEvent(\\"mouseDownEvent\\",a);case Yt:return(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1),this._xAxisStartScaleCoordinate={x:a.x,y:a.y},this._xAxisStartScaleDistance=a.pageX,l;case Xt:var l;(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1);s=null!==(i=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==i?i:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._yAxisStartScaleDistance=a.pageY,l}}return!1},t.prototype.mouseMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget,s=this._makeWidgetEvent(t,a);if((null===(e=this._mouseMoveTriggerWidgetInfo.pane)||void 0===e?void 0:e.getId())===(null==r?void 0:r.getId())&&(null===(i=this._mouseMoveTriggerWidgetInfo.widget)||void 0===i?void 0:i.getName())===(null==a?void 0:a.getName())||(null==a||a.dispatchEvent(\\"mouseEnterEvent\\",s),null===(o=this._mouseMoveTriggerWidgetInfo.widget)||void 0===o||o.dispatchEvent(\\"mouseLeaveEvent\\",s),this._mouseMoveTriggerWidgetInfo={pane:r,widget:a}),null!==a)switch(a.getName()){case zt:var l=a.dispatchEvent(\\"mouseMoveEvent\\",s),u=this._chart.getChartStore(),c={x:s.x,y:s.y,paneId:null==r?void 0:r.getId()};return l&&null!==u.getTooltipStore().getActiveIcon()&&(c=void 0,null!==a&&(a.getContainer().style.cursor=\\"pointer\\")),this._chart.getChartStore().getTooltipStore().setCrosshair(c),l;case Ht:case Yt:case Xt:l=a.dispatchEvent(\\"mouseMoveEvent\\",s);return this._chart.getChartStore().getTooltipStore().setCrosshair(),l}return!1},t.prototype.pressedMouseMoveEvent=function(t){var e,i,o,n,r;if(null!==this._mouseDownWidget&&this._mouseDownWidget.getName()===Ht)return this._mouseDownWidget.dispatchEvent(\\"pressedMouseMoveEvent\\",t);var a=this._findWidgetByEvent(t),s=a.pane,l=a.widget;if(null!==l&&(null===(e=this._mouseDownWidget)||void 0===e?void 0:e.getPane().getId())===(null==s?void 0:s.getId())&&(null===(i=this._mouseDownWidget)||void 0===i?void 0:i.getName())===l.getName()){var u=this._makeWidgetEvent(t,l);switch(l.getName()){case zt:var c=l.getBounding();if(!(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))&&null!==this._startScrollCoordinate){var h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&!h.getAutoCalcTickFlag()&&h.getScrollZoomEnabled()){var d=this._prevYAxisExtremum,p=d.min,v=d.max+(b=(S=d.range)*(C=(null!==(o=null==h?void 0:h.isReverse())&&void 0!==o&&o?this._startScrollCoordinate.y-u.y:u.y-this._startScrollCoordinate.y)/c.height)),g=h.convertToRealValue(E=p+b),f=h.convertToRealValue(v);h.setExtremum({min:E,max:v,range:v-E,realMin:g,realMax:f,realRange:f-g})}var m=u.x-this._startScrollCoordinate.x;this._chart.getChartStore().getTimeScaleStore().scroll(m)}return this._chart.getChartStore().getTooltipStore().setCrosshair({x:u.x,y:u.y,paneId:null==s?void 0:s.getId()}),x;case Yt:if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{var y=null==s?void 0:s.getAxisComponent();if(null===(n=null==y?void 0:y.getScrollZoomEnabled())||void 0===n||n){var _=10*((C=this._xAxisStartScaleDistance/u.pageX)-this._xAxisScale);this._xAxisScale=C,this._chart.getChartStore().getTimeScaleStore().zoom(_,null!==(r=this._xAxisStartScaleCoordinate)&&void 0!==r?r:void 0)}}return x;case Xt:var x;if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&h.getScrollZoomEnabled()){var S,C,b,T=this._prevYAxisExtremum,w=(S=T.range)*(C=u.pageY/this._yAxisStartScaleDistance),E=(p=T.min)-(b=(w-S)/2),I=(v=T.max+b,null==s?void 0:s.getAxisComponent());g=I.convertToRealValue(E),f=I.convertToRealValue(v);I.setExtremum({min:E,max:v,range:w,realMin:g,realMax:f,realRange:f-g}),this._chart.adjustPaneViewport(!1,!0,!0,!0)}}return x}}return!1},t.prototype.mouseUpEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Ht:case Yt:case Xt:i=e.dispatchEvent(\\"mouseUpEvent\\",o)}i&&this._chart.updatePane(1)}return this._mouseDownWidget=null,this._startScrollCoordinate=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,i},t.prototype.mouseClickEvent=function(t){var e=this._findWidgetByEvent(t).widget;if(null!==e){var i=this._makeWidgetEvent(t,e);return e.dispatchEvent(\\"mouseClickEvent\\",i)}return!1},t.prototype.mouseRightClickEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Yt:case Xt:i=e.dispatchEvent(\\"mouseRightClickEvent\\",o)}i&&this._chart.updatePane(1)}return!1},t.prototype.mouseDoubleClickEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o)switch(o.getName()){case zt:var n=this._makeWidgetEvent(t,o);return o.dispatchEvent(\\"mouseDoubleClickEvent\\",n);case Xt:var r=null==i?void 0:i.getAxisComponent();if(!r.getAutoCalcTickFlag())return r.setAutoCalcTickFlag(!0),this._chart.adjustPaneViewport(!1,!0,!0,!0),!0}return!1},t.prototype.mouseLeaveEvent=function(){return this._chart.getChartStore().getTooltipStore().setCrosshair(),!0},t.prototype.touchStartEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o){var n=this._makeWidgetEvent(t,o);switch(o.getName()){case zt:var r=this._chart.getChartStore(),a=r.getTooltipStore();if(o.dispatchEvent(\\"mouseDownEvent\\",n))return this._touchCancelCrosshair=!0,this._touchCoordinate=null,a.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._flingScrollRequestId&&(ie(this._flingScrollRequestId),this._flingScrollRequestId=null),this._flingStartTime=(new Date).getTime(),this._startScrollCoordinate={x:n.x,y:n.y},r.getTimeScaleStore().startScroll(),this._touchZoomed=!1,null!==this._touchCoordinate){var s=n.x-this._touchCoordinate.x,l=n.y-this._touchCoordinate.y;10>Math.sqrt(s*s+l*l)?(this._touchCoordinate={x:n.x,y:n.y},a.setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()})):(this._touchCoordinate=null,this._touchCancelCrosshair=!0,a.setCrosshair())}return!0;case Yt:case Xt:var u=o.dispatchEvent(\\"mouseDownEvent\\",n);return u&&this._chart.updatePane(1),u}}return!1},t.prototype.touchMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget;if(null!==a){var s=this._makeWidgetEvent(t,a),l=a.getName(),u=this._chart.getChartStore(),c=u.getTooltipStore();switch(l){case zt:if(a.dispatchEvent(\\"pressedMouseMoveEvent\\",s))return null===(e=s.preventDefault)||void 0===e||e.call(s),c.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._touchCoordinate)null===(i=s.preventDefault)||void 0===i||i.call(s),c.setCrosshair({x:s.x,y:s.y,paneId:null==r?void 0:r.getId()});else if(null!==this._startScrollCoordinate&&Math.abs(this._startScrollCoordinate.x-s.x)>this._startScrollCoordinate.y-s.y){var h=s.x-this._startScrollCoordinate.x;u.getTimeScaleStore().scroll(h)}return!0;case Yt:case Xt:var d=a.dispatchEvent(\\"pressedMouseMoveEvent\\",s);return d&&(null===(o=s.preventDefault)||void 0===o||o.call(s),this._chart.updatePane(1)),d}}return!1},t.prototype.touchEndEvent=function(t){var e=this,i=this._findWidgetByEvent(t).widget;if(null!==i){var o=this._makeWidgetEvent(t,i);switch(i.getName()){case zt:if(i.dispatchEvent(\\"mouseUpEvent\\",o),null!==this._startScrollCoordinate){var n=(new Date).getTime()-this._flingStartTime,r=(o.x-this._startScrollCoordinate.x)/(n>0?n:1)*20;if(200>n&&Math.abs(r)>0){var a=this._chart.getChartStore().getTimeScaleStore(),s=function(){e._flingScrollRequestId=ee((function(){a.startScroll(),a.scroll(r),1>Math.abs(r*=.975)?null!==e._flingScrollRequestId&&(ie(e._flingScrollRequestId),e._flingScrollRequestId=null):s()}))};s()}}return!0;case Yt:case Xt:i.dispatchEvent(\\"mouseUpEvent\\",o)&&this._chart.updatePane(1)}}return!1},t.prototype.tapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget,n=!1;if(null!==o){var r=this._makeWidgetEvent(t,o),a=o.dispatchEvent(\\"mouseClickEvent\\",r);if(o.getName()===zt){var s=this._makeWidgetEvent(t,o),l=this._chart.getChartStore().getTooltipStore();a?(this._touchCancelCrosshair=!0,this._touchCoordinate=null,l.setCrosshair(void 0,!0),n=!0):(this._touchCancelCrosshair||this._touchZoomed||(this._touchCoordinate={x:s.x,y:s.y},l.setCrosshair({x:s.x,y:s.y,paneId:null==i?void 0:i.getId()},!0),n=!0),this._touchCancelCrosshair=!1)}(n||a)&&this._chart.updatePane(1)}return n},t.prototype.doubleTapEvent=function(t){return this.mouseDoubleClickEvent(t)},t.prototype.longTapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o&&o.getName()===zt){var n=this._makeWidgetEvent(t,o);return this._touchCoordinate={x:n.x,y:n.y},this._chart.getChartStore().getTooltipStore().setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()}),!0}return!1},t.prototype._findWidgetByEvent=function(t){var e,i,o=this._chart.getAllPanes(),n=t.x,r=t.y,a=null;try{for(var s=L(o),l=s.next();!l.done;l=s.next()){var u=R(l.value,2)[1],c=u.getBounding();if(!(c.left>n||n>c.left+c.width||c.top>r||r>c.top+c.height)){a=u;break}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}null===a&&(a=this._chart.getPaneById(Kt.XAXIS));var h=null;if(null!==a){var d=a.getSeparatorWidget();if(null!==d){var p=d.getBounding();p.left>n||n>p.left+p.width||p.top>r||r>p.top+7||(h=d)}if(null===h){var v=a.getMainWidget(),g=v.getBounding();g.left>n||n>g.left+g.width||g.top>r||r>g.top+g.height||(h=v)}if(null===h){var f=a.getYAxisWidget();if(null!==f){var m=f.getBounding();m.left>n||n>m.left+m.width||m.top>r||r>m.top+m.height||(h=f)}}}return{pane:a,widget:h}},t.prototype._makeWidgetEvent=function(t,e){var i,o,n,r=null!==(i=null==e?void 0:e.getBounding())&&void 0!==i?i:null;return k(k({},t),{x:t.x-(null!==(o=null==r?void 0:r.left)&&void 0!==o?o:0),y:t.y-(null!==(n=null==r?void 0:r.top)&&void 0!==n?n:0)})},t.prototype.destroy=function(){this._container.removeEventListener(\\"keydown\\",this._boundKeyBoardDownEvent),this._event.destroy()},t}();t.DomPosition=void 0,(ni=t.DomPosition||(t.DomPosition={})).Root=\\"root\\",ni.Main=\\"main\\",ni.YAxis=\\"yAxis\\";var si=function(){function e(t,e){this._panes=new Map,this._initContainer(t),this._chartEvent=new ai(this._chartContainer,this),this._chartStore=new te(this,e),this._xAxisPane=new ei(this._chartContainer,this,Kt.XAXIS),this._panes.set(Kt.CANDLE,new Ue(this._chartContainer,this,Kt.CANDLE)),this.adjustPaneViewport(!0,!0,!0)}return e.prototype._initContainer=function(t){this._container=t,this._chartContainer=Y(\\"div\\",{position:\\"relative\\",width:\\"100%\\",outline:\\"none\\",borderStyle:\\"none\\",cursor:\\"crosshair\\",boxSizing:\\"border-box\\",userSelect:\\"none\\",webkitUserSelect:\\"none\\",msUserSelect:\\"none\\",MozUserSelect:\\"none\\",webkitTapHighlightColor:\\"transparent\\"}),this._chartContainer.tabIndex=1,t.appendChild(this._chartContainer)},e.prototype._measurePaneHeight=function(){var t,e=this._container.offsetHeight,i=this._xAxisPane.getAxisComponent().getAutoSize(),o=e-i;0>o&&(o=0);var n=0;this._panes.forEach((function(t){if(t.getId()!==Kt.CANDLE){var e=t.getBounding().height,i=t.getOptions().minHeight;i>e&&(e=i),n+e>o?e=Math.max(o-(n=o),0):n+=e,t.setBounding({height:e})}}));var r=o-n;null===(t=this._panes.get(Kt.CANDLE))||void 0===t||t.setBounding({height:r});var a=0;this._panes.forEach((function(t){t.setBounding({top:a}),a+=t.getBounding().height})),this._xAxisPane.setBounding({height:i,top:a})},e.prototype._measurePaneWidth=function(){var e=this._chartStore.getStyles().yAxis,i=e.position===t.YAxisPosition.Left,o=!e.inside,n=this._container.offsetWidth,r=0,a=Number.MIN_SAFE_INTEGER,s=0,l=0;this._panes.forEach((function(t){a=Math.max(a,t.getAxisComponent().getAutoSize())})),a>n&&(a=n),o?(r=n-a,i?(s=0,l=a):(s=n-a,l=0)):(r=n,l=0,s=i?0:n-a),this._chartStore.getTimeScaleStore().setTotalBarSpace(r);var u={width:n},c={width:r,left:l},h={width:a,left:s};this._panes.forEach((function(t){t.setBounding(u,c,h)})),this._xAxisPane.setBounding(u,c,h)},e.prototype._setPaneOptions=function(t,e){var i,o,n=this._panes.get(null!==(i=null==t?void 0:t.id)&&void 0!==i?i:\\"\\"),r=!1;if(void 0!==n){var a=e;if(t.id!==Kt.CANDLE&&void 0!==t.height&&t.height>0){var s=Math.max(null!==(o=t.minHeight)&&void 0!==o?o:n.getOptions().minHeight,0);n.setBounding({height:Math.max(s,t.height)}),a=!0,r=!0}n.setOptions(t),a&&this.adjustPaneViewport(r,!0,!0,!0,!0)}},e.prototype.getContainer=function(){return this._container},e.prototype.getChartStore=function(){return this._chartStore},e.prototype.getAllPanes=function(){return this._panes},e.prototype.adjustPaneViewport=function(t,e,i,o,n){t&&this._measurePaneHeight();var r=e,a=null!=n&&n;(null!=o&&o||a)&&this._panes.forEach((function(t){var e=t.getAxisComponent().buildTicks(a);r||(r=e)})),r&&this._measurePaneWidth(),null!=i&&i&&(this._xAxisPane.getAxisComponent().buildTicks(!0),this.updatePane(4))},e.prototype.updatePane=function(t,e){var i;void 0!==e?null===(i=this.getPaneById(e))||void 0===i||i.update(t):(this._xAxisPane.update(t),this._panes.forEach((function(e){e.update(t)})))},e.prototype.getPaneById=function(t){var e;return t===Kt.XAXIS?this._xAxisPane:null!==(e=this._panes.get(t))&&void 0!==e?e:null},e.prototype.crosshairChange=function(e){var i=this,o=this._chartStore.getActionStore();if(o.has(t.ActionType.OnCrosshairChange)){var n={};this._panes.forEach((function(t,o){var r={};i._chartStore.getIndicatorStore().getInstances(o).forEach((function(t){var i,o=t.result;r[t.name]=o[null!==(i=e.dataIndex)&&void 0!==i?i:o.length-1]})),n[o]=r})),void 0!==e.paneId&&o.execute(t.ActionType.OnCrosshairChange,k(k({},e),{indicatorData:n}))}},e.prototype.getDom=function(e,i){var o,n;if(void 0===e)return this._chartContainer;var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getContainer();case t.DomPosition.Main:return r.getMainWidget().getContainer();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getContainer())&&void 0!==n?n:null}return null},e.prototype.getSize=function(e,i){var o,n;if(void 0===e)return{width:this._chartContainer.offsetWidth,height:this._chartContainer.offsetHeight,left:0,top:0,right:0,bottom:0};var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getBounding();case t.DomPosition.Main:return r.getMainWidget().getBounding();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getBounding())&&void 0!==n?n:null}return null},e.prototype.setStyles=function(t){var e,i,o;this._chartStore.setOptions({styles:t}),void 0!==(null===(e=null==(o=u(t)?Qt(t):t)?void 0:o.yAxis)||void 0===e?void 0:e.type)&&(null===(i=this.getPaneById(Kt.CANDLE))||void 0===i||i.getAxisComponent().setAutoCalcTickFlag(!0)),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getStyles=function(){return this._chartStore.getStyles()},e.prototype.setLocale=function(t){this._chartStore.setOptions({locale:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getLocale=function(){return this._chartStore.getLocale()},e.prototype.setCustomApi=function(t){this._chartStore.setOptions({customApi:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.setPriceVolumePrecision=function(t,e){this._chartStore.setPrecision({price:t,volume:e})},e.prototype.getPriceVolumePrecision=function(){return this._chartStore.getPrecision()},e.prototype.setTimezone=function(t){this._chartStore.setOptions({timezone:t}),this._xAxisPane.getAxisComponent().buildTicks(!0),this._xAxisPane.update(3)},e.prototype.getTimezone=function(){return this._chartStore.getTimeScaleStore().getTimezone()},e.prototype.setOffsetRightDistance=function(t){this._chartStore.getTimeScaleStore().setOffsetRightDistance(t,!0)},e.prototype.getOffsetRightDistance=function(){return this._chartStore.getTimeScaleStore().getOffsetRightDistance()},e.prototype.setLeftMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setLeftMinVisibleBarCount(Math.ceil(t))},e.prototype.setRightMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setRightMinVisibleBarCount(Math.ceil(t))},e.prototype.setBarSpace=function(t){this._chartStore.getTimeScaleStore().setBarSpace(t)},e.prototype.getBarSpace=function(){return this._chartStore.getTimeScaleStore().getBarSpace().bar},e.prototype.getVisibleRange=function(){return this._chartStore.getTimeScaleStore().getVisibleRange()},e.prototype.clearData=function(){this._chartStore.clear()},e.prototype.getDataList=function(){return this._chartStore.getDataList()},e.prototype.applyNewData=function(t,e,i){this._chartStore.clear(),0===t.length?this.adjustPaneViewport(!1,!0,!0,!0):this.applyMoreData(t,e,i)},e.prototype.applyMoreData=function(t,e,i){var o=this;this._chartStore.addData(t,0,e),t.length>0&&this._chartStore.getIndicatorStore().calcInstance().then((function(t){o.adjustPaneViewport(!1,!0,!0,!0),null==i||i()})).catch((function(t){}))},e.prototype.updateData=function(t,e){var i=this,o=this._chartStore.getDataList(),n=o.length,r=t.timestamp,a=C(o[n-1],\\"timestamp\\",0);if(r>=a){var s=n;r===a&&(s=n-1),this._chartStore.addData(t,s),this._chartStore.getIndicatorStore().calcInstance().then((function(t){i.adjustPaneViewport(!1,!0,!0,!0),null==e||e()})).catch((function(t){}))}},e.prototype.loadMore=function(t){this._chartStore.getTimeScaleStore().setLoadMoreCallback(t)},e.prototype.createIndicator=function(t,e,i,o){var n,r,a,l=this,c=u(t)?{name:t}:t;if(null===pt(c.name))return null;if(s(i)&&u(null==i?void 0:i.id)&&this._panes.has(i.id))a=i.id,this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).then((function(t){var e,o;l._setPaneOptions(i,null!==(o=null===(e=l._panes.get(a))||void 0===e?void 0:e.getAxisComponent().buildTicks(!0))&&void 0!==o&&o)})).catch((function(t){}));else{a=null!==(n=null==i?void 0:i.id)&&void 0!==n?n:z(Kt.INDICATOR);var h=Array.from(this._panes.values()).pop(),d=new Ke(this._chartContainer,this,a,h);h.setBottomPane(d);var p=null!==(r=null==i?void 0:i.height)&&void 0!==r?r:100;d.setBounding({height:p}),s(i)&&d.setOptions(i),this._panes.set(a,d),this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).finally((function(){l.adjustPaneViewport(!0,!0,!0,!0,!0),null==o||o()}))}return a},e.prototype.overrideIndicator=function(t,e,i){var o=this;this._chartStore.getIndicatorStore().override(t,null!=e?e:null).then((function(t){var e=R(t,2),n=e[1];(e[0]||n)&&(o.adjustPaneViewport(!1,n,!0,n),null==i||i())})).catch((function(){}))},e.prototype.getIndicatorByPaneId=function(t,e){return this._chartStore.getIndicatorStore().getInstanceByPaneId(t,e)},e.prototype.removeIndicator=function(t,e){var i=this._chartStore.getIndicatorStore();if(i.removeInstance(t,e)){var o=!1;if(t!==Kt.CANDLE&&!i.hasInstances(t)){var n=this._panes.get(t);if(void 0!==n){o=!0;var r=n.getTopPane(),a=n.getBottomPane();null==a||a.setTopPane(r),null==r||r.setBottomPane(a),null==n||n.destroy(),this._panes.delete(t)}}this.adjustPaneViewport(o,!0,!0,!0,!0)}},e.prototype.createOverlay=function(t,e){var i=[];if(u(t))i=[{name:t}];else if(o(t))i=t.map((function(t){return u(t)?{name:t}:t}));else{i=[t]}var n=!0;void 0!==e&&null!==this.getPaneById(e)||(e=Kt.CANDLE,n=!1);var r=this._chartStore.getOverlayStore().addInstances(i,e,n);return o(t)?r:r[0]},e.prototype.getOverlayById=function(t){return this._chartStore.getOverlayStore().getInstanceById(t)},e.prototype.overrideOverlay=function(t){this._chartStore.getOverlayStore().override(t)},e.prototype.removeOverlay=function(t){var e;void 0!==t&&(e=u(t)?{id:t}:t),this._chartStore.getOverlayStore().removeInstance(e)},e.prototype.setPaneOptions=function(t){this._setPaneOptions(t,!1)},e.prototype.setZoomEnabled=function(t){this._chartStore.getTimeScaleStore().setZoomEnabled(t)},e.prototype.isZoomEnabled=function(){return this._chartStore.getTimeScaleStore().getZoomEnabled()},e.prototype.setScrollEnabled=function(t){this._chartStore.getTimeScaleStore().setScrollEnabled(t)},e.prototype.isScrollEnabled=function(){return this._chartStore.getTimeScaleStore().getScrollEnabled()},e.prototype.scrollByDistance=function(t,e){var i=void 0===e||0>e?0:e,o=this._chartStore.getTimeScaleStore();if(i>0){o.startScroll();var n=(new Date).getTime(),r=function(){var e=((new Date).getTime()-n)/i,a=e>=1;o.scroll(a?t:t*e),a||requestAnimationFrame(r)};r()}else o.startScroll(),o.scroll(t)},e.prototype.scrollToRealTime=function(t){var e=this._chartStore.getTimeScaleStore(),i=e.getBarSpace().bar,o=e.getOffsetRightBarCount()-e.getInitialOffsetRightDistance()/i;this.scrollByDistance(o*i,t)},e.prototype.scrollToDataIndex=function(t,e){var i=this._chartStore.getTimeScaleStore(),o=(i.getOffsetRightBarCount()+(this.getDataList().length-1-t))*i.getBarSpace().bar;this.scrollByDistance(o,e)},e.prototype.scrollToTimestamp=function(t,e){var i=Z(this.getDataList(),\\"timestamp\\",t);this.scrollToDataIndex(i,e)},e.prototype.zoomAtCoordinate=function(t,e,i){var o=void 0===i||0>i?0:i,n=this._chartStore.getTimeScaleStore();if(o>0){var r=n.getBarSpace().bar,a=r*t-r,s=(new Date).getTime(),l=function(){var t=((new Date).getTime()-s)/o,i=t>=1;n.zoom((i?a:a*t)/r,e),i||requestAnimationFrame(l)};l()}else n.zoom(t,e)},e.prototype.zoomAtDataIndex=function(t,e,i){var o=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(e);this.zoomAtCoordinate(t,{x:o,y:0},i)},e.prototype.zoomAtTimestamp=function(t,e,i){var o=Z(this.getDataList(),\\"timestamp\\",e);this.zoomAtDataIndex(t,o,i)},e.prototype.convertToPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e={},i=t.dataIndex;if(void 0!==t.timestamp&&(i=c.timestampToDataIndex(t.timestamp)),void 0!==i&&(e.x=null==p?void 0:p.convertToPixel(i)),void 0!==t.value){var o=null==v?void 0:v.convertToPixel(t.value);e.y=s?h.top+o:o}return e}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.convertFromPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e,i={};if(void 0!==t.x){var o=p.convertFromPixel(t.x);i.dataIndex=o,i.timestamp=null!==(e=c.dataIndexToTimestamp(o))&&void 0!==e?e:void 0}void 0!==t.y&&(i.value=v.convertFromPixel(s?t.y-h.top:t.y));return i}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.executeAction=function(e,i){var o;if(e===t.ActionType.OnCrosshairChange){var n=k({},i);n.paneId=null!==(o=n.paneId)&&void 0!==o?o:Kt.CANDLE,this._chartStore.getTooltipStore().setCrosshair(n)}},e.prototype.subscribeAction=function(t,e){this._chartStore.getActionStore().subscribe(t,e)},e.prototype.unsubscribeAction=function(t,e){this._chartStore.getActionStore().unsubscribe(t,e)},e.prototype.getConvertPictureUrl=function(t,e,i){var o=this._chartContainer.offsetWidth,n=this._chartContainer.offsetHeight,r=Y(\\"canvas\\",{width:\\"\\".concat(o,\\"px\\"),height:\\"\\".concat(n,\\"px\\"),boxSizing:\\"border-box\\"}),a=r.getContext(\\"2d\\"),s=X(r);r.width=o*s,r.height=n*s,a.scale(s,s),a.fillStyle=null!=i?i:\\"#FFFFFF\\",a.fillRect(0,0,o,n);var l=null!=t&&t;this._panes.forEach((function(t){var e=t.getBounding();a.drawImage(t.getImage(l),0,e.top,o,e.height)}));var u=this._xAxisPane.getBounding();return a.drawImage(this._xAxisPane.getImage(l),0,u.top,o,u.height),r.toDataURL(\\"image/\\".concat(null!=e?e:\\"jpeg\\"))},e.prototype.resize=function(){this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.destroy=function(){this._chartEvent.destroy(),this._panes.forEach((function(t){t.destroy()})),this._panes.clear(),this._xAxisPane.destroy(),this._container.removeChild(this._chartContainer)},e}(),li=new Map,ui=1;var ci={clone:i,merge:e,isString:u,isNumber:a,isValid:s,isObject:r,isArray:o,isFunction:n,isBoolean:l,formatValue:C,formatPrecision:T,formatBigNumber:w,formatDate:b,formatThousands:E,calcTextWidth:j,getLinearSlopeIntercept:kt,getLinearYFromSlopeIntercept:Pt,getLinearYFromCoordinates:Mt,checkCoordinateOnArc:xe,checkCoordinateOnCircle:re,checkCoordinateOnLine:Dt,checkCoordinateOnPolygon:le,checkCoordinateOnRect:de,checkCoordinateOnText:fe,drawArc:Se,drawCircle:ae,drawLine:At,drawPolygon:ue,drawRect:pe,drawText:me,drawRectText:_e};t.dispose=function(t){var e,i,o;if(t instanceof si)o=t.id;else{var n=void 0;o=null!==(e=null==(n=u(t)?document.getElementById(t):t)?void 0:n.getAttribute(\\"k-line-chart-id\\"))&&void 0!==e?e:null}null!==o&&(null===(i=li.get(o))||void 0===i||i.destroy(),li.delete(o))},t.getFigureClass=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null},t.getOverlayClass=function(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null},t.getSupportedFigures=function(){return Object.keys(be)},t.getSupportedIndicators=function(){return Object.keys(ht)},t.getSupportedLocales=function(){return Object.keys(Be)},t.getSupportedOverlays=function(){return Object.keys(Vt)},t.init=function(t,e){var i;if(null===(i=u(t)?document.getElementById(t):t))return null;var o=li.get(i.id);if(void 0!==o)return o;var n=\\"k_line_chart_\\".concat(ui++);return(o=new si(i,e)).id=n,i.setAttribute(\\"k-line-chart-id\\",n),li.set(n,o),o},t.registerFigure=function(t){be[t.name]=wt.extend(t)},t.registerIndicator=function(t){ht[t.name]=nt.extend(t)},t.registerLocale=function(t,e){Be[t]=k(k({},Be[t]),e)},t.registerOverlay=function(t){Vt[t.name]=xt.extend(t)},t.registerStyles=function(t,e){Jt[t]=e},t.utils=ci,t.version=function(){return\\"9.5.4\\"}}));\\n"]]},"headers":[],"relativePath":"en-US/sample/timezone.md","filePath":"en-US/sample/timezone.md","lastUpdated":1698784282000}`),d={name:"en-US/sample/timezone.md"},x=Object.assign(d,{setup(y){return(v,g)=>(i(),r("div",null,[u,l(n,{js:t(o),html:t(s),css:t(a),title:"Timezone"},null,8,["js","html","css"]),h]))}});export{D as __pageData,x as default}; diff --git a/assets/en-US_sample_tooltip.md.85673bd2.js b/assets/en-US_sample_tooltip.md.f745fdf1.js similarity index 99% rename from assets/en-US_sample_tooltip.md.85673bd2.js rename to assets/en-US_sample_tooltip.md.f745fdf1.js index c9cb66aad..7fdcb17bb 100644 --- a/assets/en-US_sample_tooltip.md.85673bd2.js +++ b/assets/en-US_sample_tooltip.md.f745fdf1.js @@ -1,4 +1,4 @@ -import{C as n}from"./chunks/Chart.68e0a929.js";import{j as s,h as o,c as a}from"./chunks/index.d5980486.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"tooltip",tabindex:"-1"},[p("Tooltip "),e("a",{class:"header-anchor",href:"#tooltip","aria-label":'Permalink to "Tooltip"'},"​")],-1),h=c(`
js
import { init } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as s,h as o,c as a}from"./chunks/index.d5980486.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"tooltip",tabindex:"-1"},[p("Tooltip "),e("a",{class:"header-anchor",href:"#tooltip","aria-label":'Permalink to "Tooltip"'},"​")],-1),h=c(`
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/en-US_sample_tooltip.md.85673bd2.lean.js b/assets/en-US_sample_tooltip.md.f745fdf1.lean.js
similarity index 100%
rename from assets/en-US_sample_tooltip.md.85673bd2.lean.js
rename to assets/en-US_sample_tooltip.md.f745fdf1.lean.js
diff --git a/assets/guide_getting-started.md.bd134052.js b/assets/guide_getting-started.md.7021aecf.js
similarity index 99%
rename from assets/guide_getting-started.md.bd134052.js
rename to assets/guide_getting-started.md.7021aecf.js
index 123f1cf50..dd1bc189c 100644
--- a/assets/guide_getting-started.md.bd134052.js
+++ b/assets/guide_getting-started.md.7021aecf.js
@@ -1,4 +1,4 @@
-import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const E=JSON.parse('{"title":"🚀 快速开始","description":"","frontmatter":{},"headers":[],"relativePath":"guide/getting-started.md","filePath":"guide/getting-started.md","lastUpdated":1698528706000}'),p={name:"guide/getting-started.md"},o=l(`

🚀 快速开始

获取KLineChart

KLineChart 支持多种下载方式,你可以通过npmyarn等包管理工具,也可以通过CDN获取。

bash
npm install klinecharts
npm install klinecharts
bash
yarn add klinecharts
yarn add klinecharts
html
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>

创建第一个图表

KLineChart 不受前端框架限制,所以你可以在任何一个前端框架中使用。

jsx
import { useEffect } from 'react'
+import{_ as s,o as n,c as a,Q as l}from"./chunks/framework.c401375a.js";const E=JSON.parse('{"title":"🚀 快速开始","description":"","frontmatter":{},"headers":[],"relativePath":"guide/getting-started.md","filePath":"guide/getting-started.md","lastUpdated":1698528706000}'),p={name:"guide/getting-started.md"},o=l(`

🚀 快速开始

获取KLineChart

KLineChart 支持多种下载方式,你可以通过npmyarn等包管理工具,也可以通过CDN获取。

bash
npm install klinecharts
npm install klinecharts
bash
yarn add klinecharts
yarn add klinecharts
html
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>

创建第一个图表

KLineChart 不受前端框架限制,所以你可以在任何一个前端框架中使用。

jsx
import { useEffect } from 'react'
 import { init, dispose } from 'klinecharts'
 
 export default () => {
diff --git a/assets/guide_getting-started.md.bd134052.lean.js b/assets/guide_getting-started.md.7021aecf.lean.js
similarity index 100%
rename from assets/guide_getting-started.md.bd134052.lean.js
rename to assets/guide_getting-started.md.7021aecf.lean.js
diff --git a/assets/sample_axis.md.339486a1.js b/assets/sample_axis.md.339486a1.js
deleted file mode 100644
index 505ee7daf..000000000
--- a/assets/sample_axis.md.339486a1.js
+++ /dev/null
@@ -1,45 +0,0 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as r,c as a}from"./chunks/index.3fa44176.js";import{o as s,c as l,k as e,H as c,l as t,a as i,Q as u}from"./chunks/framework.c401375a.js";const h=e("h1",{id:"坐标轴",tabindex:"-1"},[i("坐标轴 "),e("a",{class:"header-anchor",href:"#坐标轴","aria-label":'Permalink to "坐标轴"'},"​")],-1),d=u(`

function genData (timestamp = new Date().getTime(), length = 800) { let basePrice = 5000 timestamp = Math.floor(timestamp / 1000 / 60) * 60 * 1000 - length * 60 * 1000 const dataList = [] for (let i = 0; i < length; i++) { const prices = [] for (let j = 0; j < 4; j++) { prices.push(basePrice + Math.random() * 60 - 30) } prices.sort() const open = +(prices[Math.round(Math.random() * 3)].toFixed(2)) const high = +(prices[3].toFixed(2)) const low = +(prices[0].toFixed(2)) const close = +(prices[Math.round(Math.random() * 3)].toFixed(2)) const volume = Math.round(Math.random() * 100) + 10 const turnover = (open + high + low + close) / 4 * volume dataList.push({ timestamp, open, high,low, close, volume, turnover })

basePrice = close
-timestamp += 60 * 1000
-

} return dataList }

const chart = init('k-line-chart') chart.applyNewData(genData())

function setPosition (position) { chart.setStyles({ yAxis: { position } }) }

function setInside (inside) { chart.setStyles({ yAxis: { inside } }) }

function setType (type) { chart.setStyles({ yAxis: { type } }) }

function setReverse (reverse) { chart.setStyles({ yAxis: { reverse } }) }

// 以下仅仅是为了协助代码演示,在实际项目中根据情况进行调整。 // The following is only for the purpose of assisting in code demonstration, and adjustments will be made according to the actual situation in the project. const container = document.getElementById('container') const buttonContainer = document.createElement('div') buttonContainer.className = 'button-container'

const positions = [ { key: 'right', text: '右侧-Right' }, { key: 'left', text: '左侧-Left' } ] const insideOutside = [ { key: false, text: '外部-Outside' }, { key: true, text: '内部-Inside' } ] const types = [ { key: 'normal', text: '线性轴-Liner Axis' }, { key: 'percentage', text: '百分比轴-Percentage axis' }, { key: 'log', text: '对数轴-Logarithm axis' }, ] const reverse = [ { key: false, text: '正向-Regularity' }, { key: true, text: '反向-Reverse' } ] positions.forEach(({ key, text }) => { const button = document.createElement('button') button.innerText = text button.addEventListener('click', () => { setPosition(key) }) buttonContainer.appendChild(button) }) insideOutside.forEach(({ key, text }) => { const button = document.createElement('button') button.innerText = text button.addEventListener('click', () => { setInside(key) }) buttonContainer.appendChild(button) }) types.forEach(({ key, text }) => { const button = document.createElement('button') button.innerText = text button.addEventListener('click', () => { setType(key) }) buttonContainer.appendChild(button) }) reverse.forEach(({ key, text }) => { const button = document.createElement('button') button.innerText = text button.addEventListener('click', () => { setReverse(key) }) buttonContainer.appendChild(button) }) container.appendChild(buttonContainer) \`


-\`\`\`html:line-numbers [HTML]
-  <div id="k-line-chart" style="height:430px">
-</div>
-\`

-\`\`\`html:line-numbers [HTML]
-  <div id="k-line-chart" style="height:430px">
-</div>
-\`
css
  display: flex;
-  flex-wrap: wrap;
-  align-items: center;
-  gap: 8px;
-  margin-top: 10px;
-  padding: 10px 22px;
-}
-
-.button-container button {
-  padding: 2px 6px;
-  background-color: #1677FF;
-  border-radius: 4px;
-  font-size: 12px;
-  color: #fff;
-  outline: none;
-  border: none;
-}
-\`
  display: flex;
-  flex-wrap: wrap;
-  align-items: center;
-  gap: 8px;
-  margin-top: 10px;
-  padding: 10px 22px;
-}
-
-.button-container button {
-  padding: 2px 6px;
-  background-color: #1677FF;
-  border-radius: 4px;
-  font-size: 12px;
-  color: #fff;
-  outline: none;
-  border: none;
-}
-\`

:::

`,13),x=JSON.parse(`{"title":"坐标轴","description":"","frontmatter":{"aside":false,"editLink":false,"head":[["script",{},"/**\\n * @license\\n * KLineChart v9.5.4\\n * Copyright (c) 2019 lihu.\\n * Licensed under Apache License 2.0 https://www.apache.org/licenses/LICENSE-2.0\\n */\\n!function(t,e){\\"object\\"==typeof exports&&\\"undefined\\"!=typeof module?e(exports):\\"function\\"==typeof define&&define.amd?define([\\"exports\\"],e):e((t=\\"undefined\\"!=typeof globalThis?globalThis:t||self).klinecharts={})}(this,(function(t){\\"use strict\\";function e(t,i){if(r(t)||r(i))for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var a=t[n],l=i[n];r(l)&&r(a)&&!o(l)&&!o(a)?e(a,l):s(i[n])&&(t[n]=i[n])}}function i(t){if(!r(t)||!o(t))return t;var e;for(var n in e=o(t)?[]:{},t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=t[n];e[n]=r(a)?i(a):a}return e}function o(t){return\\"[object Array]\\"===Object.prototype.toString.call(t)}function n(t){return\\"function\\"==typeof t}function r(t){return\\"object\\"==typeof t}function a(t){return\\"number\\"==typeof t&&!isNaN(t)}function s(t){return null!=t}function l(t){return\\"boolean\\"==typeof t}function u(t){return\\"string\\"==typeof t}var c,h,d,p,v,g,f,m,y,_,x=/\\\\\\\\(\\\\\\\\)?/g,S=RegExp(\\"[^.[\\\\\\\\]]+|\\\\\\\\[(?:([^\\\\\\"'][^[]*)|([\\\\\\"'])((?:(?!\\\\\\\\2)[^\\\\\\\\\\\\\\\\]|\\\\\\\\\\\\\\\\.)*?)\\\\\\\\2)\\\\\\\\]|(?=(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\])(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\]|$))\\",\\"g\\");function C(t,e,i){if(s(t)){var o=[];e.replace(S,(function(t){for(var e=[],i=1;arguments.length>i;i++)e[i-1]=arguments[i];var n=t;return s(e[1])?n=e[2].replace(x,\\"$1\\"):s(e[0])&&(n=e[0].trim()),o.push(n),\\"\\"}));for(var n=t,r=0,a=o.length;s(n)&&a>r;)n=null==n?void 0:n[o[r++]];return s(n)?n:null!=i?i:\\"--\\"}return null!=i?i:\\"--\\"}function b(t,e,i){var o=t.format(new Date(e)).split(\\", \\"),n=o[0].split(\\"/\\"),r=o[1].split(\\":\\"),a={YYYY:n[2],MM:n[0],DD:n[1],HH:\\"24\\"===r[0]?\\"00\\":r[0],mm:r[1],ss:r[2]};return i.replace(/YYYY|MM|DD|HH|mm|ss/g,(function(t){return a[t]}))}function T(t,e){var i=+t;return a(i)?i.toFixed(null!=e?e:2):\\"\\".concat(t)}function w(t){var e=+t;if(a(e)){if(e>1e9)return\\"\\".concat(+(e/1e9).toFixed(3),\\"B\\");if(e>1e6)return\\"\\".concat(+(e/1e6).toFixed(3),\\"M\\");if(e>1e3)return\\"\\".concat(+(e/1e3).toFixed(3),\\"K\\")}return\\"\\".concat(t)}function E(t,e){var i=\\"\\".concat(t);if(0===e.length)return i;if(i.includes(\\".\\")){var o=i.split(\\".\\");return\\"\\".concat(o[0].replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)})),\\".\\").concat(o[1])}return i.replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)}))}t.LineType=void 0,(c=t.LineType||(t.LineType={})).Dashed=\\"dashed\\",c.Solid=\\"solid\\",t.PolygonType=void 0,(h=t.PolygonType||(t.PolygonType={})).Stroke=\\"stroke\\",h.Fill=\\"fill\\",h.StrokeFill=\\"stroke_fill\\",t.TooltipShowRule=void 0,(d=t.TooltipShowRule||(t.TooltipShowRule={})).Always=\\"always\\",d.FollowCross=\\"follow_cross\\",d.None=\\"none\\",t.TooltipShowType=void 0,(p=t.TooltipShowType||(t.TooltipShowType={})).Standard=\\"standard\\",p.Rect=\\"rect\\",t.TooltipIconPosition=void 0,(v=t.TooltipIconPosition||(t.TooltipIconPosition={})).Left=\\"left\\",v.Middle=\\"middle\\",v.Right=\\"right\\",function(t){t.Fixed=\\"fixed\\",t.Pointer=\\"pointer\\"}(g||(g={})),t.CandleType=void 0,(f=t.CandleType||(t.CandleType={})).CandleSolid=\\"candle_solid\\",f.CandleStroke=\\"candle_stroke\\",f.CandleUpStroke=\\"candle_up_stroke\\",f.CandleDownStroke=\\"candle_down_stroke\\",f.Ohlc=\\"ohlc\\",f.Area=\\"area\\",t.YAxisPosition=void 0,(m=t.YAxisPosition||(t.YAxisPosition={})).Left=\\"left\\",m.Right=\\"right\\",t.YAxisType=void 0,(y=t.YAxisType||(t.YAxisType={})).Normal=\\"normal\\",y.Percentage=\\"percentage\\",y.Log=\\"log\\",t.FormatDateType=void 0,(_=t.FormatDateType||(t.FormatDateType={}))[_.Tooltip=0]=\\"Tooltip\\",_[_.Crosshair=1]=\\"Crosshair\\",_[_.XAxis=2]=\\"XAxis\\";var I=\\"en-US\\",D=function(t,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},D(t,e)};function P(t,e){if(\\"function\\"!=typeof e&&null!==e)throw new TypeError(\\"Class extends value \\"+e+\\" is not a constructor or null\\");function i(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var M,k=function(){return k=Object.assign||function(t){for(var e,i=1,o=arguments.length;o>i;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},k.apply(this,arguments)};function A(t,e,i,o){return new(i||(i=Promise))((function(n,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function s(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))}function F(t,e){var i,o,n,r,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},\\"function\\"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(l){return function(s){if(i)throw new TypeError(\\"Generator is already executing.\\");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(i=1,o&&(n=2&s[0]?o.return:s[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&n[3]>s[1])){a.label=s[1];break}if(6===s[0]&&n[1]>a.label){a.label=n[1],n=s;break}if(n&&n[2]>a.label){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],o=0}finally{i=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function L(t){var e=\\"function\\"==typeof Symbol&&Symbol.iterator,i=e&&t[e],o=0;if(i)return i.call(t);if(t&&\\"number\\"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?\\"Object is not iterable.\\":\\"Symbol.iterator is not defined.\\")}function R(t,e){var i=\\"function\\"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,n,r=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return a}function B(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;r>n;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}t.ActionType=void 0,(M=t.ActionType||(t.ActionType={})).OnZoom=\\"onZoom\\",M.OnScroll=\\"onScroll\\",M.OnVisibleRangeChange=\\"onVisibleRangeChange\\",M.OnTooltipIconClick=\\"onTooltipIconClick\\",M.OnCrosshairChange=\\"onCrosshairChange\\",M.OnCandleBarClick=\\"onCandleBarClick\\",M.OnPaneDrag=\\"onPaneDrag\\";var O,V=function(){function t(){this._callbacks=[]}return t.prototype.subscribe=function(t){var e;0>(null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1)&&this._callbacks.push(t)},t.prototype.unsubscribe=function(t){var e;if(void 0!==t){var i=null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1;i>-1&&this._callbacks.splice(i,1)}else this._callbacks=[]},t.prototype.execute=function(t){this._callbacks.forEach((function(e){e(t)}))},t.prototype.isEmpty=function(){return 0===this._callbacks.length},t}(),N=1,W=(new Date).getTime();function z(t){var e=(new Date).getTime();return e===W?++N:N=1,W=e,\\"\\".concat(null!=t?t:\\"\\").concat(e,\\"_\\").concat(N)}function Y(t,e){var i,o=document.createElement(t),n=null!=e?e:{};for(var r in n)o.style[r]=null!==(i=n[r])&&void 0!==i?i:\\"\\";return o}function X(t){var e,i,o;return Math.ceil(null!==(o=null===(i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0===i?void 0:i.devicePixelRatio)&&void 0!==o?o:2)}function H(t,e,i){return\\"\\".concat(null!=e?e:\\"normal\\",\\" \\").concat(null!=t?t:12,\\"px \\").concat(null!=i?i:\\"Helvetica Neue\\")}function j(t,e,i,o){if(void 0===O){var n=document.createElement(\\"canvas\\"),r=X(n);(O=n.getContext(\\"2d\\")).scale(r,r)}return O.font=H(e,i,o),Math.round(O.measureText(t).width)}function Z(t,e,i){var o=0,n=0;for(n=t.length-1;o!==n;){var r=Math.floor((n+o)/2),a=n-o,s=t[r][e];if(i===t[o][e])return o;if(i===t[n][e])return n;if(i===s)return r;if(i>s?o=r:n=r,2>=a)break}return o}function G(t,e){return null==e&&(e=10),+(+t).toFixed(e=Math.min(Math.max(0,e),20))}function K(t,e,i){var o=[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER];return t.forEach((function(t){var n,r;o[0]=Math.max(null!==(n=t[e])&&void 0!==n?n:t,o[0]),o[1]=Math.min(null!==(r=t[i])&&void 0!==r?r:t,o[1])})),o}function U(t){return Math.log(t)/Math.log(10)}function q(t){return Math.pow(10,t)}var $,J=1,Q=50,tt=6,et=50,it=function(){function e(t){this._dateTimeFormat=this._buildDateTimeFormat(),this._zoomEnabled=!0,this._scrollEnabled=!0,this._loading=!0,this._loadMoreCallback=null,this._more=!0,this._totalBarSpace=0,this._barSpace=tt,this._offsetRightDistance=et,this._startScrollOffsetRightBarCount=0,this._minVisibleBarCount={left:2,right:2},this._visibleRange={from:0,to:0,realFrom:0,realTo:0},this._chartStore=t,this._gapBarSpace=this._calcGapBarSpace(),this._offsetRightBarCount=this._offsetRightDistance/this._barSpace}return e.prototype._calcGapBarSpace=function(){return Math.max(1,Math.min(Math.floor(.82*this._barSpace),Math.floor(this._barSpace)-1))},e.prototype.adjustVisibleRange=function(){var e,i=this._chartStore.getDataList(),o=i.length,n=this._totalBarSpace/this._barSpace,r=n-Math.min(this._minVisibleBarCount.left,o);this._offsetRightBarCount>r&&(this._offsetRightBarCount=r);var a=-o+Math.min(this._minVisibleBarCount.right,o);a>this._offsetRightBarCount&&(this._offsetRightBarCount=a);var s=Math.round(this._offsetRightBarCount+o+.5);s>o&&(s=o);var l=Math.round(s-n)-1;if(0>l&&(l=0),this._visibleRange={from:l,to:s,realFrom:this._offsetRightBarCount>0?Math.round(o+this._offsetRightBarCount-n)-1:l,realTo:s},this._chartStore.getActionStore().execute(t.ActionType.OnVisibleRangeChange,this._visibleRange),this._chartStore.adjustVisibleDataList(),0===l&&this._more&&!this._loading&&null!==this._loadMoreCallback){this._loading=!0;var u=i[0];this._loadMoreCallback(null!==(e=null==u?void 0:u.timestamp)&&void 0!==e?e:null)}},e.prototype.setMore=function(t){return this._more=t,this},e.prototype.setLoading=function(t){return this._loading=t,this},e.prototype.getDateTimeFormat=function(){return this._dateTimeFormat},e.prototype._buildDateTimeFormat=function(t){var e={hour12:!1,year:\\"numeric\\",month:\\"2-digit\\",day:\\"2-digit\\",hour:\\"2-digit\\",minute:\\"2-digit\\",second:\\"2-digit\\"};void 0!==t&&(e.timeZone=t);var i=null;try{i=new Intl.DateTimeFormat(\\"en\\",e)}catch(t){}return i},e.prototype.setTimezone=function(t){var e=this._buildDateTimeFormat(t);null!==e&&(this._dateTimeFormat=e)},e.prototype.getTimezone=function(){return this._dateTimeFormat.resolvedOptions().timeZone},e.prototype.getBarSpace=function(){return{bar:this._barSpace,halfBar:this._barSpace/2,gapBar:this._gapBarSpace,halfGapBar:this._gapBarSpace/2}},e.prototype.setBarSpace=function(t,e){J>t||t>Q||this._barSpace===t||(this._barSpace=t,this._gapBarSpace=this._calcGapBarSpace(),null==e||e(),this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0))},e.prototype.setTotalBarSpace=function(t){return this._totalBarSpace!==t&&(this._totalBarSpace=t,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0)),this},e.prototype.setOffsetRightDistance=function(t,e){return this._offsetRightDistance=t,this._offsetRightBarCount=t/this._barSpace,null!=e&&e&&(this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)),this},e.prototype.resetOffsetRightDistance=function(){this.setOffsetRightDistance(this._offsetRightDistance)},e.prototype.getInitialOffsetRightDistance=function(){return this._offsetRightDistance},e.prototype.getOffsetRightDistance=function(){return Math.max(0,this._offsetRightBarCount*this._barSpace)},e.prototype.getOffsetRightBarCount=function(){return this._offsetRightBarCount},e.prototype.setOffsetRightBarCount=function(t){return this._offsetRightBarCount=t,this},e.prototype.setLeftMinVisibleBarCount=function(t){return this._minVisibleBarCount.left=t,this},e.prototype.setRightMinVisibleBarCount=function(t){return this._minVisibleBarCount.right=t,this},e.prototype.getVisibleRange=function(){return this._visibleRange},e.prototype.startScroll=function(){this._startScrollOffsetRightBarCount=this._offsetRightBarCount},e.prototype.scroll=function(e){if(this._scrollEnabled){var i=e/this._barSpace;this._chartStore.getActionStore().execute(t.ActionType.OnScroll),this._offsetRightBarCount=this._startScrollOffsetRightBarCount-i,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)}},e.prototype.getDataByDataIndex=function(t){var e;return null!==(e=this._chartStore.getDataList()[t])&&void 0!==e?e:null},e.prototype.coordinateToFloatIndex=function(t){var e=this._chartStore.getDataList().length;return Math.round(1e6*(e+this._offsetRightBarCount-(this._totalBarSpace-t)/this._barSpace))/1e6},e.prototype.dataIndexToTimestamp=function(t){var e,i=this.getDataByDataIndex(t);return null!==(e=null==i?void 0:i.timestamp)&&void 0!==e?e:null},e.prototype.timestampToDataIndex=function(t){var e=this._chartStore.getDataList();return 0===e.length?0:Z(e,\\"timestamp\\",t)},e.prototype.dataIndexToCoordinate=function(t){var e=this._chartStore.getDataList().length;return this._totalBarSpace-(e+this._offsetRightBarCount-t-.5)*this._barSpace},e.prototype.coordinateToDataIndex=function(t){return Math.ceil(this.coordinateToFloatIndex(t))-1},e.prototype.zoom=function(e,i){var o,n=this;if(this._zoomEnabled){if(void 0===(null==i?void 0:i.x)){var r=this._chartStore.getTooltipStore().getCrosshair();i={x:null!==(o=null==r?void 0:r.x)&&void 0!==o?o:this._totalBarSpace/2}}this._chartStore.getActionStore().execute(t.ActionType.OnZoom);var a=this.coordinateToFloatIndex(i.x);this.setBarSpace(this._barSpace+e*(this._barSpace/10),(function(){n._offsetRightBarCount+=a-n.coordinateToFloatIndex(null==i?void 0:i.x)}))}},e.prototype.setZoomEnabled=function(t){return this._zoomEnabled=t,this},e.prototype.getZoomEnabled=function(){return this._zoomEnabled},e.prototype.setScrollEnabled=function(t){return this._scrollEnabled=t,this},e.prototype.getScrollEnabled=function(){return this._scrollEnabled},e.prototype.setLoadMoreCallback=function(t){return this._loadMoreCallback=t,this},e.prototype.clear=function(){this._more=!0,this._loading=!0,this._visibleRange={from:0,to:0,realFrom:0,realTo:0}},e}();function ot(t,e,i,o,n){var r,a=e.result,l=e.figures,u=e.styles,c=C(u,\\"circles\\",o.circles),h=c.length,d=C(u,\\"bars\\",o.bars),p=d.length,v=C(u,\\"lines\\",o.lines),g=v.length,f=0,m=0,y=0;l.forEach((function(l){var u;switch(l.type){case\\"circle\\":var _=c[f%h];r=k(k({},_),{color:_.noChangeColor}),f++;break;case\\"bar\\":var x=d[m%p];r=k(k({},x),{color:x.noChangeColor}),m++;break;case\\"line\\":r=v[y%g],y++}if(s(r)){var S=null===(u=l.styles)||void 0===u?void 0:u.call(l,{prev:{kLineData:t[i-1],indicatorData:a[i-1]},current:{kLineData:t[i],indicatorData:a[i]},next:{kLineData:t[i+1],indicatorData:a[i+1]}},e,o);n(l,k(k({},r),S))}}))}t.IndicatorSeries=void 0,($=t.IndicatorSeries||(t.IndicatorSeries={})).Normal=\\"normal\\",$.Price=\\"price\\",$.Volume=\\"volume\\";var nt=function(){function i(e){this.result=[],this._precisionFlag=!1;var i=e.name,o=e.shortName,n=e.series,r=e.calcParams,a=e.figures,s=e.precision,l=e.shouldOhlc,u=e.shouldFormatBigNumber,c=e.visible,h=e.minValue,d=e.maxValue,p=e.styles,v=e.extendData,g=e.regenerateFigures,f=e.createTooltipDataSource,m=e.draw;this.name=i,this.shortName=null!=o?o:i,this.series=null!=n?n:t.IndicatorSeries.Normal,this.precision=null!=s?s:4,this.calcParams=null!=r?r:[],this.figures=null!=a?a:[],this.shouldOhlc=null!=l&&l,this.shouldFormatBigNumber=null!=u&&u,this.visible=null==c||c,this.minValue=null!=h?h:null,this.maxValue=null!=d?d:null,this.styles=null!=p?p:{},this.extendData=v,this.regenerateFigures=null!=g?g:null,this.createTooltipDataSource=null!=f?f:null,this.draw=null!=m?m:null}return i.prototype.setShortName=function(t){return this.shortName!==t&&(this.shortName=t,!0)},i.prototype.setSeries=function(t){return this.series!==t&&(this.series=t,!0)},i.prototype.setPrecision=function(t,e){var i=null!=e&&e,o=Math.floor(t);return!(o===this.precision||0>t||i&&(!i||this._precisionFlag))&&(this.precision=o,i||(this._precisionFlag=!0),!0)},i.prototype.setCalcParams=function(t){var e,i;return this.calcParams=t,this.figures=null!==(i=null===(e=this.regenerateFigures)||void 0===e?void 0:e.call(this,t))&&void 0!==i?i:this.figures,!0},i.prototype.setShouldOhlc=function(t){return this.shouldOhlc!==t&&(this.shouldOhlc=t,!0)},i.prototype.setShouldFormatBigNumber=function(t){return this.shouldFormatBigNumber!==t&&(this.shouldFormatBigNumber=t,!0)},i.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},i.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},i.prototype.setExtendData=function(t){return this.extendData!==t&&(this.extendData=t,!0)},i.prototype.setFigures=function(t){return this.figures!==t&&(this.figures=t,!0)},i.prototype.setMinValue=function(t){return this.minValue!==t&&(this.minValue=t,!0)},i.prototype.setMaxValue=function(t){return this.maxValue!==t&&(this.maxValue=t,!0)},i.prototype.setRegenerateFigures=function(t){return this.regenerateFigures!==t&&(this.regenerateFigures=t,!0)},i.prototype.setCreateTooltipDataSource=function(t){return this.createTooltipDataSource!==t&&(this.createTooltipDataSource=t,!0)},i.prototype.setDraw=function(t){return this.draw!==t&&(this.draw=t,!0)},i.prototype.calcIndicator=function(t){return A(this,void 0,void 0,(function(){var e;return F(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.calc(t,this)];case 1:return e=i.sent(),this.result=e,[2,!0];case 2:return i.sent(),[2,!1];case 3:return[2]}}))}))},i.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i.prototype.calc=function(e,i){return t.calc(e,i)},i}(i)},i}(),rt={name:\\"AVP\\",shortName:\\"AVP\\",series:t.IndicatorSeries.Price,precision:2,figures:[{key:\\"avp\\",title:\\"AVP: \\",type:\\"line\\"}],calc:function(t){var e=0,i=0;return t.map((function(t){var o,n,r={},a=null!==(o=null==t?void 0:t.turnover)&&void 0!==o?o:0,s=null!==(n=null==t?void 0:t.volume)&&void 0!==n?n:0;return e+=a,0!==(i+=s)&&(r.avp=e/i),r}))}};var at={name:\\"EMA\\",shortName:\\"EMA\\",series:t.IndicatorSeries.Price,calcParams:[6,12,20],precision:2,shouldOhlc:!0,figures:[{key:\\"ema1\\",title:\\"EMA6: \\",type:\\"line\\"},{key:\\"ema2\\",title:\\"EMA12: \\",type:\\"line\\"},{key:\\"ema3\\",title:\\"EMA20: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ema\\".concat(e+1),title:\\"EMA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=0,r=[];return t.map((function(t,e){var a={},s=t.close;return n+=s,i.forEach((function(t,i){t-1>e||(r[i]=e>t-1?(2*s+(t-1)*r[i])/(t+1):n/t,a[o[i].key]=r[i])})),a}))}},st={name:\\"MA\\",shortName:\\"MA\\",series:t.IndicatorSeries.Price,calcParams:[5,10,30,60],precision:2,shouldOhlc:!0,figures:[{key:\\"ma5\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma10\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma30\\",title:\\"MA30: \\",type:\\"line\\"},{key:\\"ma60\\",title:\\"MA60: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,i){var l;n[i]=(null!==(l=n[i])&&void 0!==l?l:0)+s,e-1>r||(a[o[i].key]=n[i]/e,n[i]-=t[r-(e-1)].close)})),a}))}},lt={name:\\"RSI\\",shortName:\\"RSI\\",calcParams:[6,12,24],figures:[{key:\\"rsi1\\",title:\\"RSI1: \\",type:\\"line\\"},{key:\\"rsi2\\",title:\\"RSI2: \\",type:\\"line\\"},{key:\\"rsi3\\",title:\\"RSI3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){var i=e+1;return{key:\\"rsi\\".concat(i),title:\\"RSI\\".concat(i,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[],r=[];return t.map((function(e,a){var s,l={},u=(null!==(s=t[a-1])&&void 0!==s?s:e).close,c=e.close-u;return i.forEach((function(e,i){var s,u,h;if(c>0?n[i]=(null!==(s=n[i])&&void 0!==s?s:0)+c:r[i]=(null!==(u=r[i])&&void 0!==u?u:0)+Math.abs(c),a>=e-1){l[o[i].key]=0!==r[i]?100-100/(1+n[i]/r[i]):0;var d=t[a-(e-1)],p=null!==(h=t[a-e])&&void 0!==h?h:d,v=d.close-p.close;v>0?n[i]-=v:r[i]-=Math.abs(v)}})),l}))}},ut={name:\\"VOL\\",shortName:\\"VOL\\",series:t.IndicatorSeries.Volume,calcParams:[5,10,20],shouldFormatBigNumber:!0,precision:0,minValue:0,figures:[{key:\\"ma1\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA20: \\",type:\\"line\\"},{key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}],regenerateFigures:function(t){var e=t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}));return e.push({key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}),e},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a,s=null!==(a=e.volume)&&void 0!==a?a:0,l={volume:s};return i.forEach((function(e,i){var a,u;n[i]=(null!==(a=n[i])&&void 0!==a?a:0)+s,e-1>r||(l[o[i].key]=n[i]/e,n[i]-=null!==(u=t[r-(e-1)].volume)&&void 0!==u?u:0)})),l}))}},ct={name:\\"WR\\",shortName:\\"WR\\",calcParams:[6,10,14],figures:[{key:\\"wr1\\",title:\\"WR1: \\",type:\\"line\\"},{key:\\"wr2\\",title:\\"WR2: \\",type:\\"line\\"},{key:\\"wr3\\",title:\\"WR3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"wr\\".concat(e+1),title:\\"WR\\".concat(e+1,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures;return t.map((function(e,n){var r={},a=e.close;return i.forEach((function(e,i){var s=e-1;if(n>=s){var l=K(t.slice(n-s,n+1),\\"high\\",\\"low\\"),u=l[0],c=u-l[1];r[o[i].key]=0===c?0:(a-u)/c*100}})),r}))}},ht={},dt=[rt,{name:\\"AO\\",shortName:\\"AO\\",calcParams:[5,34],figures:[{key:\\"ao\\",title:\\"AO: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.ao)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.ao)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return{color:l=c>u?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor),style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,borderColor:l}}}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=0;return t.map((function(e,l){var u,c={},h=(e.low+e.high)/2;(n+=h,r+=h,ll||(c.ao=a-s),c}))}},{name:\\"BIAS\\",shortName:\\"BIAS\\",calcParams:[6,12,24],figures:[{key:\\"bias1\\",title:\\"BIAS6: \\",type:\\"line\\"},{key:\\"bias2\\",title:\\"BIAS12: \\",type:\\"line\\"},{key:\\"bias3\\",title:\\"BIAS24: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"bias\\".concat(e+1),title:\\"BIAS\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,l){var u;if(n[l]=(null!==(u=n[l])&&void 0!==u?u:0)+s,r>=e-1){var c=n[l]/i[l];a[o[l].key]=(s-c)/c*100,n[l]-=t[r-(e-1)].close}})),a}))}},{name:\\"BOLL\\",shortName:\\"BOLL\\",series:t.IndicatorSeries.Price,calcParams:[20,2],precision:2,shouldOhlc:!0,figures:[{key:\\"up\\",title:\\"UP: \\",type:\\"line\\"},{key:\\"mid\\",title:\\"MID: \\",type:\\"line\\"},{key:\\"dn\\",title:\\"DN: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0;return t.map((function(e,r){var a={};if(n+=e.close,r>=o){a.mid=n/i[0];var s=function(t,e){var i=t.length,o=0;return t.forEach((function(t){var i=t.close-e;o+=i*i})),Math.sqrt((o=Math.abs(o))/i)}(t.slice(r-o,r+1),a.mid);a.up=a.mid+i[1]*s,a.dn=a.mid-i[1]*s,n-=t[r-o].close}return a}))}},{name:\\"BRAR\\",shortName:\\"BRAR\\",calcParams:[26],figures:[{key:\\"br\\",title:\\"BR: \\",type:\\"line\\"},{key:\\"ar\\",title:\\"AR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0;return t.map((function(e,s){var l,u,c={},h=e.high,d=e.low,p=e.open,v=(null!==(l=t[s-1])&&void 0!==l?l:e).close;if(r+=h-p,a+=p-d,o+=h-v,n+=v-d,s>=i[0]-1){c.ar=0!==a?r/a*100:0,c.br=0!==n?o/n*100:0;var g=t[s-(i[0]-1)],f=g.high,m=g.low,y=g.open,_=(null!==(u=t[s-i[0]])&&void 0!==u?u:t[s-(i[0]-1)]).close;o-=f-_,n-=_-m,r-=f-y,a-=y-m}return c}))}},{name:\\"BBI\\",shortName:\\"BBI\\",series:t.IndicatorSeries.Price,precision:2,calcParams:[3,6,12,24],shouldOhlc:!0,figures:[{key:\\"bbi\\",title:\\"BBI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max.apply(Math,B([],R(i),!1)),n=[],r=[];return t.map((function(e,a){var s={},l=e.close;if(i.forEach((function(e,i){var o;n[i]=(null!==(o=n[i])&&void 0!==o?o:0)+l,e-1>a||(r[i]=n[i]/e,n[i]-=t[a-(e-1)].close)})),a>=o-1){var u=0;r.forEach((function(t){u+=t})),s.bbi=u/4}return s}))}},{name:\\"CCI\\",shortName:\\"CCI\\",calcParams:[20],figures:[{key:\\"cci\\",title:\\"CCI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0,r=[];return t.map((function(e,a){var s={},l=(e.high+e.low+e.close)/3;if(n+=l,r.push(l),a>=o){var u=n/i[0],c=r.slice(a-o,a+1),h=0;c.forEach((function(t){h+=Math.abs(t-u)}));var d=h/i[0];s.cci=0!==d?(l-u)/d/.015:0,n-=(t[a-o].high+t[a-o].low+t[a-o].close)/3}return s}))}},{name:\\"CR\\",shortName:\\"CR\\",calcParams:[26,10,20,40,60],figures:[{key:\\"cr\\",title:\\"CR: \\",type:\\"line\\"},{key:\\"ma1\\",title:\\"MA1: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA2: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA3: \\",type:\\"line\\"},{key:\\"ma4\\",title:\\"MA4: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.ceil(i[1]/2.5+1),n=Math.ceil(i[2]/2.5+1),r=Math.ceil(i[3]/2.5+1),a=Math.ceil(i[4]/2.5+1),s=0,l=[],u=0,c=[],h=0,d=[],p=0,v=[],g=[];return t.forEach((function(e,f){var m,y,_,x,S,C={},b=null!==(m=t[f-1])&&void 0!==m?m:e,T=(b.high+b.close+b.low+b.open)/4,w=Math.max(0,e.high-T),E=Math.max(0,T-e.low);i[0]-1>f||(C.cr=0!==E?w/E*100:0,s+=C.cr,u+=C.cr,h+=C.cr,p+=C.cr,i[0]+i[1]-2>f||(l.push(s/i[1]),i[0]+i[1]+o-3>f||(C.ma1=l[l.length-1-o]),s-=null!==(y=g[f-(i[1]-1)].cr)&&void 0!==y?y:0),i[0]+i[2]-2>f||(c.push(u/i[2]),i[0]+i[2]+n-3>f||(C.ma2=c[c.length-1-n]),u-=null!==(_=g[f-(i[2]-1)].cr)&&void 0!==_?_:0),i[0]+i[3]-2>f||(d.push(h/i[3]),i[0]+i[3]+r-3>f||(C.ma3=d[d.length-1-r]),h-=null!==(x=g[f-(i[3]-1)].cr)&&void 0!==x?x:0),i[0]+i[4]-2>f||(v.push(p/i[4]),i[0]+i[4]+a-3>f||(C.ma4=v[v.length-1-a]),p-=null!==(S=g[f-(i[4]-1)].cr)&&void 0!==S?S:0)),g.push(C)})),g}},{name:\\"DMA\\",shortName:\\"DMA\\",calcParams:[10,50,10],figures:[{key:\\"dma\\",title:\\"DMA: \\",type:\\"line\\"},{key:\\"ama\\",title:\\"AMA: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c={},h=e.close;n+=h,r+=h;var d=0,p=0;if(i[0]-1>l||(d=n/i[0],n-=t[l-(i[0]-1)].close),i[1]-1>l||(p=r/i[1],r-=t[l-(i[1]-1)].close),l>=o-1){var v=d-p;c.dma=v,a+=v,o+i[2]-2>l||(c.ama=a/i[2],a-=null!==(u=s[l-(i[2]-1)].dma)&&void 0!==u?u:0)}s.push(c)})),s}},{name:\\"DMI\\",shortName:\\"DMI\\",calcParams:[14,6],figures:[{key:\\"pdi\\",title:\\"PDI: \\",type:\\"line\\"},{key:\\"mdi\\",title:\\"MDI: \\",type:\\"line\\"},{key:\\"adx\\",title:\\"ADX: \\",type:\\"line\\"},{key:\\"adxr\\",title:\\"ADXR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=0,l=0,u=0,c=0,h=[];return t.forEach((function(e,d){var p,v,g={},f=null!==(p=t[d-1])&&void 0!==p?p:e,m=f.close,y=e.high,_=e.low,x=y-_,S=Math.abs(y-m),C=Math.abs(m-_),b=y-f.high,T=f.low-_,w=Math.max(Math.max(x,S),C),E=b>0&&b>T?b:0,I=T>0&&T>b?T:0;if(o+=w,n+=E,r+=I,d>=i[0]-1){d>i[0]-1?(a=a-a/i[0]+w,s=s-s/i[0]+E,l=l-l/i[0]+I):(a=o,s=n,l=r);var D=0,P=0;0!==a&&(D=100*s/a,P=100*l/a),g.pdi=D,g.mdi=P;var M=0;P+D!==0&&(M=Math.abs(P-D)/(P+D)*100),u+=M,2*i[0]-2>d||(g.adx=c=d>2*i[0]-2?(c*(i[0]-1)+M)/i[0]:u/i[0],2*i[0]+i[1]-3>d||(g.adxr=((null!==(v=h[d-(i[1]-1)].adx)&&void 0!==v?v:0)+c)/2))}h.push(g)})),h}},{name:\\"EMV\\",shortName:\\"EMV\\",calcParams:[14,9],figures:[{key:\\"emv\\",title:\\"EMV: \\",type:\\"line\\"},{key:\\"maEmv\\",title:\\"MAEMV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.map((function(e,r){var a,s={};if(r>0){var l=t[r-1],u=e.high,c=e.low,h=null!==(a=e.volume)&&void 0!==a?a:0,d=(u+c)/2-(l.high+l.low)/2;if(0===h||u-c==0)s.emv=0;else s.emv=d/(h/1e8/(u-c));o+=s.emv,n.push(s.emv),i[0]>r||(s.maEmv=o/i[0],o-=n[r-i[0]])}return s}))}},at,{name:\\"MTM\\",shortName:\\"MTM\\",calcParams:[12,6],figures:[{key:\\"mtm\\",title:\\"MTM: \\",type:\\"line\\"},{key:\\"maMtm\\",title:\\"MAMTM: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.forEach((function(e,r){var a,s={};rr||(s.maMtm=o/i[1],o-=null!==(a=n[r-(i[1]-1)].mtm)&&void 0!==a?a:0));n.push(s)})),n}},st,{name:\\"MACD\\",shortName:\\"MACD\\",calcParams:[12,26,9],figures:[{key:\\"dif\\",title:\\"DIF: \\",type:\\"line\\"},{key:\\"dea\\",title:\\"DEA: \\",type:\\"line\\"},{key:\\"macd\\",title:\\"MACD: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.macd)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.macd)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return l=c>0?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):0>c?C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor):C(i.styles,\\"bars[0].noChangeColor\\",o.bars[0].noChangeColor),{style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,color:l,borderColor:l}}}],calc:function(t,e){var i,o,n=e.calcParams,r=0,a=0,s=0,l=0,u=Math.max(n[0],n[1]);return t.map((function(t,e){var c={},h=t.close;return r+=h,n[0]-1>e||(i=e>n[0]-1?(2*h+(n[0]-1)*i)/(n[0]+1):r/n[0]),n[1]-1>e||(o=e>n[1]-1?(2*h+(n[1]-1)*o)/(n[1]+1):r/n[1]),u-1>e||(c.dif=a=i-o,s+=a,u+n[2]-2>e||(c.macd=2*(a-(l=e>u+n[2]-2?(2*a+l*(n[2]-1))/(n[2]+1):s/n[2])),c.dea=l)),c}))}},{name:\\"OBV\\",shortName:\\"OBV\\",calcParams:[30],figures:[{key:\\"obv\\",title:\\"OBV: \\",type:\\"line\\"},{key:\\"maObv\\",title:\\"MAOBV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[];return t.forEach((function(e,a){var s,l,u,c,h=null!==(s=t[a-1])&&void 0!==s?s:e;h.close>e.close?n-=null!==(l=e.volume)&&void 0!==l?l:0:e.close>h.close&&(n+=null!==(u=e.volume)&&void 0!==u?u:0);var d={obv:n};o+=n,i[0]-1>a||(d.maObv=o/i[0],o-=null!==(c=r[a-(i[0]-1)].obv)&&void 0!==c?c:0),r.push(d)})),r}},{name:\\"PVT\\",shortName:\\"PVT\\",figures:[{key:\\"pvt\\",title:\\"PVT: \\",type:\\"line\\"}],calc:function(t){var e=0;return t.map((function(i,o){var n,r,a={},s=null!==(n=i.volume)&&void 0!==n?n:1,l=(null!==(r=t[o-1])&&void 0!==r?r:i).close,u=0,c=l*s;return 0!==c&&(u=(i.close-l)/c),a.pvt=e+=u,a}))}},{name:\\"PSY\\",shortName:\\"PSY\\",calcParams:[12,6],figures:[{key:\\"psy\\",title:\\"PSY: \\",type:\\"line\\"},{key:\\"maPsy\\",title:\\"MAPSY: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[],a=[];return t.forEach((function(e,s){var l,u,c={},h=(null!==(l=t[s-1])&&void 0!==l?l:e).close,d=e.close-h>0?1:0;r.push(d),o+=d,i[0]-1>s||(c.psy=o/i[0]*100,n+=c.psy,i[0]+i[1]-2>s||(c.maPsy=n/i[1],n-=null!==(u=a[s-(i[1]-1)].psy)&&void 0!==u?u:0),o-=r[s-(i[0]-1)]),a.push(c)})),a}},{name:\\"ROC\\",shortName:\\"ROC\\",calcParams:[12,6],figures:[{key:\\"roc\\",title:\\"ROC: \\",type:\\"line\\"},{key:\\"maRoc\\",title:\\"MAROC: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[],n=0;return t.forEach((function(e,r){var a,s,l={};if(r>=i[0]-1){var u=(null!==(a=t[r-i[0]])&&void 0!==a?a:t[r-(i[0]-1)]).close;l.roc=0!==u?(e.close-u)/u*100:0,n+=l.roc,i[0]-1+i[1]-1>r||(l.maRoc=n/i[1],n-=null!==(s=o[r-(i[1]-1)].roc)&&void 0!==s?s:0)}o.push(l)})),o}},lt,{name:\\"SMA\\",shortName:\\"SMA\\",series:t.IndicatorSeries.Price,calcParams:[12,2],precision:2,figures:[{key:\\"sma\\",title:\\"SMA: \\",type:\\"line\\"}],shouldOhlc:!0,calc:function(t,e){var i=e.calcParams,o=0,n=0;return t.map((function(t,e){var r={},a=t.close;return o+=a,i[0]-1>e||(r.sma=n=e>i[0]-1?(a*i[1]+n*(i[0]-i[1]+1))/(i[0]+1):o/i[0]),r}))}},{name:\\"KDJ\\",shortName:\\"KDJ\\",calcParams:[9,3,3],figures:[{key:\\"k\\",title:\\"K: \\",type:\\"line\\"},{key:\\"d\\",title:\\"D: \\",type:\\"line\\"},{key:\\"j\\",title:\\"J: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[];return t.forEach((function(e,n){var r,a,s,l,u={},c=e.close;if(n>=i[0]-1){var h=K(t.slice(n-(i[0]-1),n+1),\\"high\\",\\"low\\"),d=h[1],p=h[0]-d;u.k=((i[1]-1)*(null!==(a=null===(r=o[n-1])||void 0===r?void 0:r.k)&&void 0!==a?a:50)+(c-d)/(0===p?1:p)*100)/i[1],u.d=((i[2]-1)*(null!==(l=null===(s=o[n-1])||void 0===s?void 0:s.d)&&void 0!==l?l:50)+u.k)/i[2],u.j=3*u.k-2*u.d}o.push(u)})),o}},{name:\\"SAR\\",shortName:\\"SAR\\",series:t.IndicatorSeries.Price,calcParams:[2,2,20],precision:2,shouldOhlc:!0,figures:[{key:\\"sar\\",title:\\"SAR: \\",type:\\"circle\\",styles:function(t,e,i){var o,n,r=t.current,a=null!==(n=null===(o=r.indicatorData)||void 0===o?void 0:o.sar)&&void 0!==n?n:Number.MIN_SAFE_INTEGER,s=r.kLineData;return{color:((null==s?void 0:s.high)+(null==s?void 0:s.low))/2>a?C(e.styles,\\"circles[0].upColor\\",i.circles[0].upColor):C(e.styles,\\"circles[0].downColor\\",i.circles[0].downColor)}}}],calc:function(t,e){var i=e.calcParams,o=i[0]/100,n=i[1]/100,r=i[2]/100,a=o,s=-100,l=!1,u=0;return t.map((function(e,i){var c=u,h=e.high,d=e.low;if(l){(-100===s||h>s)&&(s=h,a=Math.min(a+n,r)),u=c+a*(s-c);var p=Math.min(t[Math.max(1,i)-1].low,d);u>e.low?(u=s,a=o,s=-100,l=!l):u>p&&(u=p)}else{(-100===s||s>d)&&(s=d,a=Math.min(a+n,r)),u=c+a*(s-c);var v=Math.max(t[Math.max(1,i)-1].high,h);e.high>u?(u=s,a=0,s=-100,l=!l):v>u&&(u=v)}return{sar:u}}))}},{name:\\"TRIX\\",shortName:\\"TRIX\\",calcParams:[12,9],figures:[{key:\\"trix\\",title:\\"TRIX: \\",type:\\"line\\"},{key:\\"maTrix\\",title:\\"MATRIX: \\",type:\\"line\\"}],calc:function(t,e){var i,o,n,r=e.calcParams,a=0,s=0,l=0,u=0,c=[];return t.forEach((function(t,e){var h,d={},p=t.close;if(a+=p,e>=r[0]-1&&(s+=i=e>r[0]-1?(2*p+(r[0]-1)*i)/(r[0]+1):a/r[0],e>=2*r[0]-2&&(l+=o=e>2*r[0]-2?(2*i+(r[0]-1)*o)/(r[0]+1):s/r[0],e>=3*r[0]-3))){var v=void 0,g=0;e>3*r[0]-3?g=((v=(2*o+(r[0]-1)*n)/(r[0]+1))-n)/n*100:v=l/r[0],n=v,d.trix=g,u+=g,3*r[0]+r[1]-4>e||(d.maTrix=u/r[1],u-=null!==(h=c[e-(r[1]-1)].trix)&&void 0!==h?h:0)}c.push(d)})),c}},ut,{name:\\"VR\\",shortName:\\"VR\\",calcParams:[26,6],figures:[{key:\\"vr\\",title:\\"VR: \\",type:\\"line\\"},{key:\\"maVr\\",title:\\"MAVR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c,h,d,p,v={},g=e.close,f=(null!==(u=t[l-1])&&void 0!==u?u:e).close,m=null!==(c=e.volume)&&void 0!==c?c:0;if(g>f?o+=m:f>g?n+=m:r+=m,l>=i[0]-1){var y=r/2;v.vr=n+y===0?0:(o+y)/(n+y)*100,a+=v.vr,i[0]+i[1]-2>l||(v.maVr=a/i[1],a-=null!==(h=s[l-(i[1]-1)].vr)&&void 0!==h?h:0);var _=t[l-(i[0]-1)],x=null!==(d=t[l-i[0]])&&void 0!==d?d:_,S=_.close,C=null!==(p=_.volume)&&void 0!==p?p:0;S>x.close?o-=C:x.close>S?n-=C:r-=C}s.push(v)})),s}},ct];function pt(t){var e;return null!==(e=ht[t])&&void 0!==e?e:null}dt.forEach((function(t){ht[t.name]=nt.extend(t)}));var vt,gt=function(){function e(t){this._instances=new Map,this._chartStore=t}return e.prototype._overrideInstance=function(t,e){var i=e.shortName,o=e.series,n=e.calcParams,r=e.precision,a=e.figures,s=e.minValue,l=e.maxValue,u=e.shouldOhlc,c=e.shouldFormatBigNumber,h=e.visible,d=e.styles,p=e.extendData,v=e.regenerateFigures,g=e.createTooltipDataSource,f=e.draw,m=e.calc,y=!1;void 0!==i&&t.setShortName(i)&&(y=!0),void 0!==o&&t.setSeries(o)&&(y=!0);var _=!1;return void 0!==n&&t.setCalcParams(n)&&(y=!0,_=!0),void 0!==a&&t.setFigures(a)&&(y=!0,_=!0),void 0!==s&&t.setMinValue(s)&&(y=!0),void 0!==l&&t.setMinValue(l)&&(y=!0),void 0!==r&&t.setPrecision(r)&&(y=!0),void 0!==u&&t.setShouldOhlc(u)&&(y=!0),void 0!==c&&t.setShouldFormatBigNumber(c)&&(y=!0),void 0!==h&&t.setVisible(h)&&(y=!0),void 0!==d&&t.setStyles(d)&&(y=!0),void 0!==p&&t.setExtendData(p)&&(y=!0,_=!0),void 0!==v&&t.setRegenerateFigures(v)&&(y=!0),void 0!==g&&t.setCreateTooltipDataSource(g)&&(y=!0),void 0!==f&&t.setDraw(f)&&(y=!0),void 0!==m&&(t.calc=m,_=!0),[y,_]},e.prototype.addInstance=function(t,e,i){var o;return A(this,void 0,void 0,(function(){var n,r,a,s;return F(this,(function(l){switch(l.label){case 0:return n=t.name,r=this._instances.get(e),null!==(o=null==r?void 0:r.has(n))&&void 0!==o&&o?[4,Promise.reject(Error(\\"Duplicate indicators.\\"))]:[3,2];case 1:case 3:return[2,l.sent()];case 2:return void 0===r&&(r=new Map,this._instances.set(e,r)),a=pt(n),s=new a,this._overrideInstance(s,t),i||r.clear(),r.set(n,s),[4,s.calcIndicator(this._chartStore.getDataList())]}}))}))},e.prototype.getInstances=function(t){var e;return null!==(e=this._instances.get(t))&&void 0!==e?e:new Map},e.prototype.removeInstance=function(t,e){var i=!1,o=this._instances.get(t);return void 0!==o&&(void 0!==e?o.has(e)&&(o.delete(e),i=!0):(o.clear(),i=!0),0===o.size&&this._instances.delete(t)),i},e.prototype.hasInstances=function(t){return this._instances.has(t)},e.prototype.calcInstance=function(t,e){var i;return A(this,void 0,void 0,(function(){var o,n,r,a=this;return F(this,(function(s){switch(s.label){case 0:return o=[],void 0!==t?void 0!==e?(n=this._instances.get(e),null!==(i=null==n?void 0:n.has(t))&&void 0!==i&&i&&(r=null==n?void 0:n.get(t),o.push(r.calcIndicator(this._chartStore.getDataList())))):this._instances.forEach((function(e){if(e.has(t)){var i=null==e?void 0:e.get(t);o.push(i.calcIndicator(a._chartStore.getDataList()))}})):this._instances.forEach((function(t){t.forEach((function(t){o.push(t.calcIndicator(a._chartStore.getDataList()))}))})),[4,Promise.all(o)];case 1:return[2,s.sent().includes(!0)]}}))}))},e.prototype.getInstanceByPaneId=function(t,e){var i;if(void 0!==t){var o=this._instances.get(t);return void 0!==e?null!==(i=null==o?void 0:o.get(e))&&void 0!==i?i:null:null!=o?o:null}return this._instances},e.prototype.setSeriesPrecision=function(e){this._instances.forEach((function(i){i.forEach((function(i){i.series===t.IndicatorSeries.Price&&i.setPrecision(e.price,!0),i.series===t.IndicatorSeries.Volume&&i.setPrecision(e.volume,!0)}))}))},e.prototype.override=function(t,e){return A(this,void 0,void 0,(function(){var i,o,n,r,a,s,l=this;return F(this,(function(u){switch(u.label){case 0:return i=t.name,o=new Map,null!==e?void 0!==(n=this._instances.get(e))&&o.set(e,n):o=this._instances,r=!1,a=[],o.forEach((function(e){var o=e.get(i);if(void 0!==o){var n=l._overrideInstance(o,t);n[1]?a.push(o.calcIndicator(l._chartStore.getDataList())):n[0]&&(r=!0)}})),[4,Promise.all(a)];case 1:return s=u.sent(),[2,[r,s.includes(!0)]]}}))}))},e}(),ft=function(){function t(t){this._crosshair={},this._activeIcon=null,this._chartStore=t}return t.prototype.setCrosshair=function(t,e){var i,o,n=this._chartStore.getDataList(),r=null!=t?t:{},a=n[o=void 0!==r.x?0>(i=this._chartStore.getTimeScaleStore().coordinateToDataIndex(r.x))?0:i>n.length-1?n.length-1:i:i=n.length-1],s=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(i),l=this._crosshair.x,u=this._crosshair.y,c=this._crosshair.paneId;this._crosshair=k(k({},r),{realX:s,kLineData:a,realDataIndex:i,dataIndex:o}),l===r.x&&u===r.y&&c===r.paneId||(null!==a&&this._chartStore.getChart().crosshairChange(this._crosshair),null!=e&&e||this._chartStore.getChart().updatePane(1))},t.prototype.recalculateCrosshair=function(t){this.setCrosshair(this._crosshair,t)},t.prototype.getCrosshair=function(){return this._crosshair},t.prototype.setActiveIcon=function(t){this._activeIcon=null!=t?t:null},t.prototype.getActiveIcon=function(){return this._activeIcon},t.prototype.clear=function(){this.setCrosshair({},!0),this.setActiveIcon()},t}();t.OverlayMode=void 0,(vt=t.OverlayMode||(t.OverlayMode={})).Normal=\\"normal\\",vt.WeakMagnet=\\"weak_magnet\\",vt.StrongMagnet=\\"strong_magnet\\";var mt=1,yt=\\"overlay_figure_\\",_t=Number.MAX_SAFE_INTEGER,xt=function(){function o(e){this.currentStep=mt,this.points=[],this._prevPressedPoint=null,this._prevPressedPoints=[];var i=e.mode,o=e.modeSensitivity,n=e.extendData,r=e.styles,a=e.totalStep,s=e.lock,l=e.visible,u=e.zLevel,c=e.needDefaultPointFigure,h=e.needDefaultXAxisFigure,d=e.needDefaultYAxisFigure,p=e.createPointFigures,v=e.createXAxisFigures,g=e.createYAxisFigures,f=e.performEventPressedMove,m=e.performEventMoveForDrawing,y=e.onDrawStart,_=e.onDrawing,x=e.onDrawEnd,S=e.onClick,C=e.onDoubleClick,b=e.onRightClick,T=e.onPressedMoveStart,w=e.onPressedMoving,E=e.onPressedMoveEnd,I=e.onMouseEnter,D=e.onMouseLeave,P=e.onRemoved,M=e.onSelected,k=e.onDeselected;this.name=e.name,this.totalStep=void 0===a||2>a?1:a,this.lock=null!=s&&s,this.visible=null==l||l,this.zLevel=null!=u?u:0,this.needDefaultPointFigure=null!=c&&c,this.needDefaultXAxisFigure=null!=h&&h,this.needDefaultYAxisFigure=null!=d&&d,this.mode=null!=i?i:t.OverlayMode.Normal,this.modeSensitivity=null!=o?o:8,this.extendData=n,this.styles=null!=r?r:{},this.createPointFigures=null!=p?p:null,this.createXAxisFigures=null!=v?v:null,this.createYAxisFigures=null!=g?g:null,this.performEventPressedMove=null!=f?f:null,this.performEventMoveForDrawing=null!=m?m:null,this.onDrawStart=null!=y?y:null,this.onDrawing=null!=_?_:null,this.onDrawEnd=null!=x?x:null,this.onClick=null!=S?S:null,this.onDoubleClick=null!=C?C:null,this.onRightClick=null!=b?b:null,this.onPressedMoveStart=null!=T?T:null,this.onPressedMoving=null!=w?w:null,this.onPressedMoveEnd=null!=E?E:null,this.onMouseEnter=null!=I?I:null,this.onMouseLeave=null!=D?D:null,this.onRemoved=null!=P?P:null,this.onSelected=null!=M?M:null,this.onDeselected=null!=k?k:null}return o.prototype.setId=function(t){return void 0===this.id&&(this.id=t,!0)},o.prototype.setGroupId=function(t){return void 0===this.groupId&&(this.groupId=t,!0)},o.prototype.setDefaultZLevel=function(t){return void 0===this.defaultZLevel&&(this.defaultZLevel=t,!0)},o.prototype.setPaneId=function(t){this.paneId=t},o.prototype.setExtendData=function(t){return t!==this.extendData&&(this.extendData=t,!0)},o.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},o.prototype.setPoints=function(t){if(t.length>0){var e=void 0;if(this.points=B([],R(t),!1),this.totalStep-1>t.length?(this.currentStep=t.length+1,e=t.length):(this.currentStep=-1,e=this.totalStep-1),null!==this.performEventMoveForDrawing)for(var i=0;e>i;i++)this.performEventMoveForDrawing({currentStep:i+2,mode:this.mode,points:this.points,performPointIndex:i,performPoint:this.points[i]});return-1===this.currentStep&&null!==this.performEventPressedMove&&this.performEventPressedMove({currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:this.points.length-1,performPoint:this.points[this.points.length-1]}),!0}return!1},o.prototype.setLock=function(t){return this.lock!==t&&(this.lock=t,!0)},o.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},o.prototype.resetZLevel=function(){this.zLevel=this.defaultZLevel},o.prototype.setZLevel=function(t){return this.zLevel!==t&&(this.zLevel=t,!0)},o.prototype.setMode=function(t){return this.mode!==t&&(this.mode=t,!0)},o.prototype.setModeSensitivity=function(t){return this.modeSensitivity!==t&&(this.modeSensitivity=t,!0)},o.prototype.setOnDrawStartCallback=function(t){return this.onDrawStart!==t&&(this.onDrawStart=t,!0)},o.prototype.setOnDrawingCallback=function(t){return this.onDrawing!==t&&(this.onDrawing=t,!0)},o.prototype.setOnDrawEndCallback=function(t){return this.onDrawEnd!==t&&(this.onDrawEnd=t,!0)},o.prototype.setOnClickCallback=function(t){return this.onClick!==t&&(this.onClick=t,!0)},o.prototype.setOnDoubleClickCallback=function(t){return this.onDoubleClick!==t&&(this.onDoubleClick=t,!0)},o.prototype.setOnRightClickCallback=function(t){return this.onRightClick!==t&&(this.onRightClick=t,!0)},o.prototype.setOnPressedMoveStartCallback=function(t){return this.onPressedMoveStart!==t&&(this.onPressedMoveStart=t,!0)},o.prototype.setOnPressedMovingCallback=function(t){return this.onPressedMoving!==t&&(this.onPressedMoving=t,!0)},o.prototype.setOnPressedMoveEndCallback=function(t){return this.onPressedMoveEnd!==t&&(this.onPressedMoveEnd=t,!0)},o.prototype.setOnMouseEnterCallback=function(t){return this.onMouseEnter!==t&&(this.onMouseEnter=t,!0)},o.prototype.setOnMouseLeaveCallback=function(t){return this.onMouseLeave!==t&&(this.onMouseLeave=t,!0)},o.prototype.setOnRemovedCallback=function(t){return this.onRemoved!==t&&(this.onRemoved=t,!0)},o.prototype.setOnSelectedCallback=function(t){return this.onSelected!==t&&(this.onSelected=t,!0)},o.prototype.setOnDeselectedCallback=function(t){return this.onDeselected!==t&&(this.onDeselected=t,!0)},o.prototype.nextStep=function(){this.currentStep===this.totalStep-1?this.currentStep=-1:this.currentStep++},o.prototype.forceComplete=function(){this.currentStep=-1},o.prototype.isDrawing=function(){return-1!==this.currentStep},o.prototype.isStart=function(){return this.currentStep===mt},o.prototype.eventMoveForDrawing=function(t){var e,i=this.currentStep-1,o={};void 0!==t.timestamp&&(o.timestamp=t.timestamp),void 0!==t.dataIndex&&(o.dataIndex=t.dataIndex),void 0!==t.value&&(o.value=t.value),this.points[i]=o,null===(e=this.performEventMoveForDrawing)||void 0===e||e.call(this,{currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:i,performPoint:o})},o.prototype.eventPressedPointMove=function(t,e){var i;void 0!==t.dataIndex&&(this.points[e].dataIndex=t.dataIndex,this.points[e].timestamp=t.timestamp),void 0!==t.value&&(this.points[e].value=t.value),null===(i=this.performEventPressedMove)||void 0===i||i.call(this,{currentStep:this.currentStep,points:this.points,mode:this.mode,performPointIndex:e,performPoint:this.points[e]})},o.prototype.startPressedMove=function(t){this._prevPressedPoint=k({},t),this._prevPressedPoints=i(this.points)},o.prototype.eventPressedOtherMove=function(t,e){var i,o;null!==this._prevPressedPoint&&(void 0!==t.dataIndex&&void 0!==this._prevPressedPoint.dataIndex&&(i=t.dataIndex-this._prevPressedPoint.dataIndex),void 0!==t.value&&void 0!==this._prevPressedPoint.value&&(o=t.value-this._prevPressedPoint.value),this.points=this._prevPressedPoints.map((function(t){var n;void 0===t.dataIndex&&void 0!==t.timestamp&&(t.dataIndex=e.timestampToDataIndex(t.timestamp));var r=k({},t);return void 0!==i&&void 0!==t.dataIndex&&(r.dataIndex=t.dataIndex+i,r.timestamp=null!==(n=e.dataIndexToTimestamp(r.dataIndex))&&void 0!==n?n:void 0),void 0!==o&&void 0!==t.value&&(r.value=t.value+o),r})))},o.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i}(o)},o}(),St={name:\\"fibonacciLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.precision,o=t.thousandsSeparator,n=t.overlay.points;if(e.length>0){var r=[],a=[],s=t.bounding.width;if(e.length>1&&void 0!==n[0].value&&void 0!==n[1].value){var l=e[0].y-e[1].y,u=n[0].value-n[1].value;[1,.786,.618,.5,.382,.236,0].forEach((function(t){var c,h=e[1].y+l*t,d=E(((null!==(c=n[1].value)&&void 0!==c?c:0)+u*t).toFixed(i.price),o);r.push({coordinates:[{x:0,y:h},{x:s,y:h}]}),a.push({x:0,y:h,text:\\"\\".concat(d,\\" (\\").concat((100*t).toFixed(1),\\"%)\\"),baseline:\\"bottom\\"})}))}return[{type:\\"line\\",attrs:r},{type:\\"text\\",isCheckEvent:!1,attrs:a}]}return[]}},Ct={name:\\"horizontalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i={x:0,y:e[0].y};return void 0!==e[1]&&e[1].x>e[0].x&&(i.x=t.bounding.width),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},bt=function(){function t(){this._children=[],this._callbacks=new Map}return t.prototype.registerEvent=function(t,e){return this._callbacks.set(t,e),this},t.prototype.onEvent=function(t,e,i){var o=this._callbacks.get(t);return!(void 0===o||!this.checkEventOn(e))&&o(e,i)},t.prototype.checkEventOn=function(t){var e,i;try{for(var o=L(this._children),n=o.next();!n.done;n=o.next()){if(n.value.checkEventOn(t))return!0}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return!1},t.prototype.dispatchEvent=function(t,e,i){var o=this._children.length-1;if(o>-1)for(var n=o;n>-1;n--)if(this._children[n].dispatchEvent(t,e,i))return!0;return this.onEvent(t,e,i)},t.prototype.addChild=function(t){return this._children.push(t),this},t.prototype.clear=function(){this._children=[]},t}(),Tt=2,wt=function(t){function e(e){var i=t.call(this)||this;return i.attrs=e.attrs,i.styles=e.styles,i}return P(e,t),e.prototype.checkEventOn=function(t){return this.checkEventOnImp(t,this.attrs,this.styles)},e.prototype.draw=function(t){this.drawImp(t,this.attrs,this.styles)},e.extend=function(t){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.checkEventOnImp=function(e,i,o){return t.checkEventOn(e,i,o)},i.prototype.drawImp=function(e,i,o){t.draw(e,i,o)},i}(e);return i},e}(bt);function Et(t,e){return Math.sqrt(Math.pow(t.x+e.x,2)+Math.pow(t.y+e.y,2))}function It(t){var e=Et(t[0],t[1]),i=e+Et(t[1],t[2]),o=[t[2].x-t[0].x,t[2].y-t[0].y];return[{x:t[1].x-.5*o[0]*e/i,y:t[1].y-.5*o[1]*e/i},{x:t[1].x+.5*o[0]*e/i,y:t[1].y+.5*o[1]*e/i}]}function Dt(t,e){var i=e.coordinates;if(i.length>1)for(var o=1;i.length>o;o++){var n=i[o-1],r=i[o];if(n.x===r.x){if(Tt+Tt>Math.abs(n.y-t.y)+Math.abs(r.y-t.y)-Math.abs(n.y-r.y)&&Tt>Math.abs(t.x-n.x))return!0}else{var a=kt(n,r),s=Pt(a,t),l=Math.abs(s-t.y);if(Tt+Tt>Math.abs(n.x-t.x)+Math.abs(r.x-t.x)-Math.abs(n.x-r.x)&&Tt*Tt>l*l/(a[0]*a[0]+1))return!0}}return!1}function Pt(t,e){return null!=t?e.x*t[0]+t[1]:e.y}function Mt(t,e,i){return Pt(kt(t,e),i)}function kt(t,e){var i=t.x-e.x;if(0!==i){var o=(t.y-e.y)/i;return[o,t.y-o*t.x]}return null}function At(e,i,o){var n=i.coordinates,r=n.length;if(r>1){var a=o.style,s=void 0===a?t.LineType.Solid:a,l=o.smooth,u=o.size,c=o.color,h=void 0===c?\\"currentColor\\":c,d=o.dashedValue,p=void 0===d?[2,2]:d;if(e.lineWidth=void 0===u?1:u,e.strokeStyle=h,e.setLineDash(s===t.LineType.Dashed?p:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y),null!=l&&l){for(var v=[],g=1;r-1>g;g++)v=v.concat(It([n[g-1],n[g],n[g+1]]));e.quadraticCurveTo(v[0].x,v[0].y,n[1].x,n[1].y);for(var f=2;r-1>f;f++)e.bezierCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,v[2*(f-1)].x,v[2*(f-1)].y,n[f].x,n[f].y);e.quadraticCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,n[f].x,n[f].y)}else for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.stroke(),e.closePath()}}var Ft={name:\\"line\\",checkEventOn:Dt,draw:function(t,e,i){At(t,e,i)}};function Lt(t,e,i){var o=null!=i?i:0,n=[];if(t.length>1)if(t[0].x===t[1].x){var r=e.height;if(n.push({coordinates:[{x:t[0].x,y:0},{x:t[0].x,y:r}]}),t.length>2){n.push({coordinates:[{x:t[2].x,y:0},{x:t[2].x,y:r}]});for(var a=t[0].x-t[2].x,s=0;o>s;s++){var l=a*(s+1);n.push({coordinates:[{x:t[0].x+l,y:0},{x:t[0].x+l,y:r}]})}}}else{var u=e.width,c=kt(t[0],t[1]),h=c[0],d=c[1];if(n.push({coordinates:[{x:0,y:0*h+d},{x:u,y:u*h+d}]}),t.length>2){var p=t[2].y-h*t[2].x;n.push({coordinates:[{x:0,y:0*h+p},{x:u,y:u*h+p}]});for(a=d-p,s=0;o>s;s++){var v=d+a*(s+1);n.push({coordinates:[{x:0,y:0*h+v},{x:u,y:u*h+v}]})}}}return n}function Rt(t,e){if(t.length>1){var i=void 0;return i=t[0].x===t[1].x&&t[0].y!==t[1].y?t[1].y>t[0].y?{x:t[0].x,y:e.height}:{x:t[0].x,y:0}:t[0].x>t[1].x?{x:0,y:Mt(t[0],t[1],{x:0,y:t[0].y})}:{x:e.width,y:Mt(t[0],t[1],{x:e.width,y:t[0].y})},{coordinates:[t[0],i]}}return[]}var Bt={name:\\"simpleAnnotation\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"},line:{style:t.LineType.Dashed}},createPointFigures:function(t){var e,i,o=t.overlay,r=t.coordinates;s(o.extendData)&&(i=n(o.extendData)?o.extendData(o):null!==(e=o.extendData)&&void 0!==e?e:\\"\\");var a=r[0].x,l=r[0].y-6,u=l-50,c=u-5;return[{type:\\"line\\",attrs:{coordinates:[{x:a,y:l},{x:a,y:u}]},ignoreEvent:!0},{type:\\"polygon\\",attrs:{coordinates:[{x:a,y:u},{x:a-4,y:c},{x:a+4,y:c}]},ignoreEvent:!0},{type:\\"text\\",attrs:{x:a,y:c,text:null!=i?i:\\"\\",align:\\"center\\",baseline:\\"bottom\\"},ignoreEvent:!0}]}},Ot={name:\\"simpleTag\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}},createPointFigures:function(t){var e=t.coordinates;return{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]},ignoreEvent:!0}},createYAxisFigures:function(t){var e,i,o,r,a,l=t.overlay,u=t.coordinates,c=t.bounding,h=t.yAxis,d=t.precision;return null!==(e=null==h?void 0:h.isFromZero())&&void 0!==e&&e?(o=\\"left\\",r=0):(o=\\"right\\",r=c.width),s(l.extendData)&&(a=n(l.extendData)?l.extendData(l):null!==(i=l.extendData)&&void 0!==i?i:\\"\\"),s(a)||void 0===l.points[0].value||(a=T(l.points[0].value,d.price)),{type:\\"text\\",attrs:{x:r,y:u[0].y,text:null!=a?a:\\"\\",align:o,baseline:\\"middle\\"}}}},Vt={};function Nt(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null}function Wt(t){var i={width:0,height:0,left:0,right:0,top:0,bottom:0};return void 0!==t&&e(i,t),i}[St,Ct,{name:\\"horizontalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=[];return 2===e.length&&i.push({coordinates:e}),[{type:\\"line\\",attrs:i}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},{name:\\"horizontalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]}}]}},{name:\\"parallelStraightLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding)}]}},{name:\\"priceChannelLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding,1)}]}},{name:\\"priceLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.thousandsSeparator,o=t.overlay.points[0].value;return[{type:\\"line\\",attrs:{coordinates:[e[0],{x:t.bounding.width,y:e[0].y}]}},{type:\\"text\\",ignoreEvent:!0,attrs:{x:e[0].x,y:e[0].y,text:E((void 0===o?0:o).toFixed(t.precision.price),i),baseline:\\"bottom\\"}}]}},{name:\\"rayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Rt(t.coordinates,t.bounding)}]}},{name:\\"segment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]}},{name:\\"straightLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.bounding;return 2===e.length?e[0].x===e[1].x?[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:i.height}]}}]:[{type:\\"line\\",attrs:{coordinates:[{x:0,y:Mt(e[0],e[1],{x:0,y:e[0].y})},{x:i.width,y:Mt(e[0],e[1],{x:i.width,y:e[0].y})}]}}]:[]}},{name:\\"verticalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;if(2===e.length){var i={x:e[0].x,y:0};return e[1].y>e[0].y&&(i.y=t.bounding.height),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]}return[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:t.bounding.height}]}}]}},Bt,Ot].forEach((function(t){Vt[t.name]=xt.extend(t)}));var zt=\\"main\\",Yt=\\"xAxis\\",Xt=\\"yAxis\\",Ht=\\"separator\\",jt=function(t){function i(e,i){var o=t.call(this)||this;return o._bounding=Wt(),o._pane=i,o._init(e),o}return P(i,t),i.prototype._init=function(t){if(this._container=Y(\\"div\\",this.getContainerStyle()),this.insertBefore()){var e=t.lastChild;null!==e?t.insertBefore(this._container,e):t.appendChild(this._container)}else t.appendChild(this._container);this.initDom(this._container)},i.prototype.setBounding=function(t){return e(this._bounding,t),this},i.prototype.getContainer=function(){return this._container},i.prototype.getBounding=function(){return this._bounding},i.prototype.getPane=function(){return this._pane},i.prototype.update=function(t){this.updateImp(this._container,this._bounding,null!=t?t:3)},i.prototype.insertBefore=function(){return!1},i}(bt);var Zt=function(e){function i(t,i){var o,n,r,a=e.call(this,t,i)||this;return a._dragFlag=!1,a._dragStartY=0,a._topPaneHeight=0,a._currentPaneHeight=0,a._pressedMouseMoveEvent=(o=a._pressedTouchMouseMoveEvent,n=20,r=0,function(){var t=Date.now();t-r>(null!=n?n:20)&&(o.apply(this,arguments),r=t)}),a.registerEvent(\\"touchStartEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"touchMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"touchEndEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"mouseDownEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"mouseUpEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"pressedMouseMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"mouseEnterEvent\\",a._mouseEnterEvent.bind(a)).registerEvent(\\"mouseLeaveEvent\\",a._mouseLeaveEvent.bind(a)),a}return P(i,e),i.prototype.getName=function(){return Ht},i.prototype.checkEventOn=function(){return!0},i.prototype._mouseDownEvent=function(t){var e,i;this._dragFlag=!0,this._dragStartY=t.pageY;var o=this.getPane();return this._topPaneHeight=null!==(i=null===(e=o.getTopPane())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,this._currentPaneHeight=o.getBounding().height,!0},i.prototype._mouseUpEvent=function(){return this._dragFlag=!1,this._mouseLeaveEvent()},i.prototype._pressedTouchMouseMoveEvent=function(e){var i=e.pageY-this._dragStartY,o=this.getPane(),n=o.getTopPane(),r=0>i;if(null!==n&&o.getOptions().dragEnabled){var a=void 0,s=void 0,l=void 0,u=void 0;r?(a=n,s=o,l=this._topPaneHeight,u=this._currentPaneHeight):(a=o,s=n,l=this._currentPaneHeight,u=this._topPaneHeight);var c=a.getOptions().minHeight;if(l>c){var h=Math.max(l-Math.abs(i),c),d=l-h;a.setBounding({height:h}),s.setBounding({height:u+d});var p=o.getChart();p.getChartStore().getActionStore().execute(t.ActionType.OnPaneDrag,{paneId:o.getId}),p.adjustPaneViewport(!0,!0,!0,!0,!0)}}return!0},i.prototype._mouseEnterEvent=function(){var t=this.getPane();if(t.getOptions().dragEnabled){var e=t.getChart().getStyles().separator;return this._moveDom.style.background=e.activeBackgroundColor,!0}return!1},i.prototype._mouseLeaveEvent=function(){return!this._dragFlag&&(this._moveDom.style.background=\\"\\",!0)},i.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",boxSizing:\\"border-box\\"}},i.prototype.insertBefore=function(){return!0},i.prototype.initDom=function(t){this._moveDom=Y(\\"div\\",{width:\\"100%\\",height:\\"\\".concat(7,\\"px\\"),margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"-3px\\",zIndex:\\"20\\",boxSizing:\\"border-box\\",cursor:\\"ns-resize\\"}),t.appendChild(this._moveDom)},i.prototype.updateImp=function(t,e,i){if(4===i||2===i){var o=this.getPane().getChart().getStyles().separator;this._moveDom.style.top=\\"\\".concat(-Math.floor((7-o.size)/2),\\"px\\"),this._moveDom.style.height=\\"\\".concat(7,\\"px\\");var n=o.fill;t.style.backgroundColor=o.color,t.style.height=\\"\\".concat(o.size,\\"px\\"),t.style.marginLeft=\\"\\".concat(n?0:e.left,\\"px\\"),t.style.width=n?\\"100%\\":\\"\\".concat(e.width,\\"px\\")}},i.prototype.getImage=function(){var t=this.getPane().getChart().getStyles().separator,e=this.getContainer().offsetWidth,i=t.size,o=Y(\\"canvas\\",{width:\\"\\".concat(e,\\"px\\"),height:\\"\\".concat(i,\\"px\\"),boxSizing:\\"border-box\\"}),n=o.getContext(\\"2d\\"),r=X(o);return o.width=e*r,o.height=i*r,n.scale(r,r),n.fillStyle=t.color,n.fillRect(this.getBounding().left,0,e,i),o},i}(jt),Gt=30,Kt={CANDLE:\\"candle_pane\\",INDICATOR:\\"indicator_pane_\\",XAXIS:\\"xaxis_pane\\"},Ut=function(){function t(t,e,i,o,n){this._yAxisWidget=null,this._separatorWidget=null,this._axis=this.createAxisComponent(),this._bounding=Wt(),this._options={minHeight:Gt,dragEnabled:!0,gap:{top:.2,bottom:.1},axisOptions:{scrollZoomEnabled:!0}},this._chart=e,this._id=i,this._topPane=null!=o?o:null,this._bottomPane=null!=n?n:null,this._init(t)}return t.prototype._init=function(t){this._container=t,this._seriesContainer=Y(\\"div\\",{width:\\"100%\\",margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}),this._separatorWidget=this.createSeparatorWidget(t);var e=t.lastChild;null!==e?t.insertBefore(this._seriesContainer,e):t.appendChild(this._seriesContainer),this._mainWidget=this.createMainWidget(this._seriesContainer),this._yAxisWidget=this.createYAxisWidget(this._seriesContainer)},t.prototype.getContainer=function(){return this._seriesContainer},t.prototype.getId=function(){return this._id},t.prototype.setOptions=function(t){var i,o,n,r,a;return e(this._options,t),this.getId()===Kt.XAXIS?(r=this.getMainWidget().getContainer(),a=\\"ew-resize\\"):(r=null===(i=this.getYAxisWidget())||void 0===i?void 0:i.getContainer(),a=\\"ns-resize\\"),r.style.cursor=null===(n=null===(o=t.axisOptions)||void 0===o?void 0:o.scrollZoomEnabled)||void 0===n||n?a:\\"default\\",this},t.prototype.getOptions=function(){return this._options},t.prototype.getChart=function(){return this._chart},t.prototype.getAxisComponent=function(){return this._axis},t.prototype.setBounding=function(t,i,o){var n,r,a;e(this._bounding,t);var s=0;if(null!==this._separatorWidget){s=this._chart.getStyles().separator.size;var l=k(k({},t),{height:7});void 0!==t.top&&(l.top=t.top-Math.floor((7-s)/2)),this._separatorWidget.setBounding(l)}var u={};return void 0!==t.height&&(u.height=t.height-s),void 0!==t.top&&(u.top=t.top+s),this._mainWidget.setBounding(u),null===(n=this._yAxisWidget)||void 0===n||n.setBounding(u),void 0!==i&&(this._mainWidget.setBounding(i),null===(r=this._separatorWidget)||void 0===r||r.setBounding(i)),void 0!==o&&(null===(a=this._yAxisWidget)||void 0===a||a.setBounding(o)),this},t.prototype.getTopPane=function(){return this._topPane},t.prototype.setTopPane=function(t){return this._topPane=t,this},t.prototype.getBottomPane=function(){return this._bottomPane},t.prototype.setBottomPane=function(t){return this._bottomPane=t,this},t.prototype.getBounding=function(){return this._bounding},t.prototype.getMainWidget=function(){return this._mainWidget},t.prototype.getYAxisWidget=function(){return this._yAxisWidget},t.prototype.getSeparatorWidget=function(){return this._separatorWidget},t.prototype.update=function(t){var e,i;this._bounding.width!==this._seriesContainer.offsetWidth&&(this._seriesContainer.style.width=\\"\\".concat(this._bounding.width,\\"px\\"));var o=this._mainWidget.getBounding().height;o!==this._seriesContainer.offsetHeight&&(this._seriesContainer.style.height=\\"\\".concat(o,\\"px\\"));var n=null!=t?t:3;this._mainWidget.update(n),null===(e=this._yAxisWidget)||void 0===e||e.update(n),null===(i=this._separatorWidget)||void 0===i||i.update(n)},t.prototype.getImage=function(t){var e=this._bounding,i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);n.width=i*a,n.height=o*a,r.scale(a,a);var s=0;if(null!=this._separatorWidget){var l=this.getChart().getStyles().separator.size;s=l,r.drawImage(this._separatorWidget.getImage(),0,0,i,l)}var u=this._mainWidget.getBounding();if(r.drawImage(this._mainWidget.getImage(t),u.left,s,u.width,u.height),null!==this._yAxisWidget){var c=this._yAxisWidget.getBounding();r.drawImage(this._yAxisWidget.getImage(t),c.left,s,c.width,c.height)}return n},t.prototype.destroy=function(){this._container.removeChild(this._seriesContainer),null!==this._separatorWidget&&this._container.removeChild(this._separatorWidget.getContainer())},t.prototype.createSeparatorWidget=function(t){return null},t.prototype.createYAxisWidget=function(t){return null},t}(),qt=function(){function t(t){this._instances=new Map,this._counter=new Map,this._progressInstanceInfo=null,this._pressedInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._hoverInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._clickInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._chartStore=t}return t.prototype._overrideInstance=function(t,e){var i=e.id,o=e.groupId,n=e.points,r=e.styles,a=e.lock,s=e.visible,l=e.zLevel,u=e.mode,c=e.modeSensitivity,h=e.extendData,d=e.onDrawStart,p=e.onDrawing,v=e.onDrawEnd,g=e.onClick,f=e.onDoubleClick,m=e.onRightClick,y=e.onPressedMoveStart,_=e.onPressedMoving,x=e.onPressedMoveEnd,S=e.onMouseEnter,C=e.onMouseLeave,b=e.onRemoved,T=e.onSelected,w=e.onDeselected,E=!1,I=!1;return void 0!==i&&t.setId(i),void 0!==o&&t.setGroupId(o),void 0!==n&&t.setPoints(n)&&(E=!0),void 0!==r&&t.setStyles(r)&&(E=!0),void 0!==a&&t.setLock(a),void 0!==s&&t.setVisible(s)&&(E=!0),void 0!==l&&t.setZLevel(l)&&(E=!0,I=!0),void 0!==u&&t.setMode(u),void 0!==c&&t.setModeSensitivity(c),void 0!==h&&t.setExtendData(h)&&(E=!0),void 0!==d&&t.setOnDrawStartCallback(d),void 0!==p&&t.setOnDrawingCallback(p),void 0!==v&&t.setOnDrawEndCallback(v),void 0!==g&&t.setOnClickCallback(g),void 0!==f&&t.setOnDoubleClickCallback(f),void 0!==m&&t.setOnRightClickCallback(m),void 0!==y&&t.setOnPressedMoveStartCallback(y),void 0!==_&&t.setOnPressedMovingCallback(_),void 0!==x&&t.setOnPressedMoveEndCallback(x),void 0!==S&&t.setOnMouseEnterCallback(S),void 0!==C&&t.setOnMouseLeaveCallback(C),void 0!==b&&t.setOnRemovedCallback(b),void 0!==T&&t.setOnSelectedCallback(T),void 0!==w&&t.setOnDeselectedCallback(w),[E,I]},t.prototype.getInstanceById=function(t){var e,i;try{for(var o=L(this._instances),n=o.next();!n.done;n=o.next()){var r=n.value[1].find((function(e){return e.id===t}));if(void 0!==r)return r}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return null!==this._progressInstanceInfo&&this._progressInstanceInfo.instance.id===t?this._progressInstanceInfo.instance:null},t.prototype._sort=function(t){var e;void 0!==t?null===(e=this._instances.get(t))||void 0===e||e.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel})):this._instances.forEach((function(t){t.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel}))}))},t.prototype.addInstances=function(t,e,i){var o=this,n=t.map((function(t){var n,r,a,s,l,u=null!==(n=t.id)&&void 0!==n?n:z(\\"overlay_\\");if(null===o.getInstanceById(u)){var c=Nt(t.name);if(null!==c){var h=new c,d=(null!==(r=o._counter.get(e))&&void 0!==r?r:0)+1;o._counter.set(e,d),h.setDefaultZLevel(d),h.setPaneId(e);var p=null!==(a=t.groupId)&&void 0!==a?a:u;return t.id=u,t.groupId=p,o._overrideInstance(h,t),h.isDrawing()?o._progressInstanceInfo={paneId:e,instance:h,appointPaneFlag:i}:(o._instances.has(e)||o._instances.set(e,[]),null===(s=o._instances.get(e))||void 0===s||s.push(h)),h.isStart()&&(null===(l=h.onDrawStart)||void 0===l||l.call(h,{overlay:h})),u}}return null}));return n.some((function(t){return null!==t}))&&(this._sort(),this._chartStore.getChart().updatePane(1,e)),n},t.prototype.getProgressInstanceInfo=function(){return this._progressInstanceInfo},t.prototype.progressInstanceComplete=function(){var t;if(null!==this._progressInstanceInfo){var e=this._progressInstanceInfo,i=e.instance,o=e.paneId;i.isDrawing()||(this._instances.has(o)||this._instances.set(o,[]),null===(t=this._instances.get(o))||void 0===t||t.push(i),this._sort(o),this._progressInstanceInfo=null)}},t.prototype.updateProgressInstanceInfo=function(t,e){null!==this._progressInstanceInfo&&(void 0!==e&&e&&(this._progressInstanceInfo.appointPaneFlag=e),this._progressInstanceInfo.paneId=t,this._progressInstanceInfo.instance.setPaneId(t))},t.prototype.getInstances=function(t){var e;if(void 0===t){var i=[];return this._instances.forEach((function(t){i=i.concat(t)})),i}return null!==(e=this._instances.get(t))&&void 0!==e?e:[]},t.prototype.override=function(t){var e=this,i=t.id,o=t.groupId,n=t.name,r=!1,a=!1,s=function(i){var o=e._overrideInstance(i,t);o[0]&&(r=!0),o[1]&&(a=!0)};if(void 0!==i){var l=this.getInstanceById(i);null!==l&&s(l)}else if(this._instances.forEach((function(t){t.forEach((function(t){(void 0!==n&&t.name===n||void 0!==o&&t.groupId===o||void 0===n&&void 0===o)&&s(t)}))})),null!==this._progressInstanceInfo){var u=this._progressInstanceInfo.instance;(void 0!==n&&u.name===n||void 0!==o&&u.groupId===o||void 0===n&&void 0===o)&&s(u)}a&&this._sort(),r&&this._chartStore.getChart().updatePane(1)},t.prototype.removeInstance=function(t){var e,i,o,n=function(t,e){if(void 0!==t.id){if(e.id!==t.id)return!1}else if(void 0!==t.groupId){if(e.groupId!==t.groupId)return!1}else if(void 0!==t.name&&e.name!==t.name)return!1;return!0},r=[];if(null!==this._progressInstanceInfo){var a=this._progressInstanceInfo.instance;(void 0===t||void 0!==t&&n(t,a))&&(r.push(this._progressInstanceInfo.paneId),null===(o=a.onRemoved)||void 0===o||o.call(a,{overlay:a}),this._progressInstanceInfo=null)}if(void 0!==t){var s=new Map,l=function(e){var i=e[1].filter((function(i){var o;return!n(t,i)||(r.includes(e[0])||r.push(e[0]),null===(o=i.onRemoved)||void 0===o||o.call(i,{overlay:i}),!1)}));i.length>0&&s.set(e[0],i)};try{for(var u=L(this._instances),c=u.next();!c.done;c=u.next()){l(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}this._instances=s}else this._instances.forEach((function(t,e){r.push(e),t.forEach((function(t){var e;null===(e=t.onRemoved)||void 0===e||e.call(t,{overlay:t})}))})),this._instances.clear();if(r.length>0){var h=this._chartStore.getChart();r.forEach((function(t){h.updatePane(1,t)})),h.updatePane(1,Kt.XAXIS)}},t.prototype.setPressedInstanceInfo=function(t){this._pressedInstanceInfo=t},t.prototype.getPressedInstanceInfo=function(){return this._pressedInstanceInfo},t.prototype.setHoverInstanceInfo=function(t,e){var i,o,r=this._hoverInstanceInfo,a=r.instance,s=r.figureKey,l=r.figureIndex;if(((null==a?void 0:a.id)!==(null===(i=t.instance)||void 0===i?void 0:i.id)||r.figureType!==t.figureType||l!==t.figureIndex)&&(this._hoverInstanceInfo=t,(null==a?void 0:a.id)!==(null===(o=t.instance)||void 0===o?void 0:o.id))){var u=!1,c=!1;null!==a&&(c=!0,a.resetZLevel(),n(a.onMouseLeave)&&(a.onMouseLeave(k({overlay:a,figureKey:s,figureIndex:l},e)),u=!0)),null!==t.instance&&(c=!0,t.instance.setZLevel(_t),n(t.instance.onMouseEnter)&&(t.instance.onMouseEnter(k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),u=!0)),c&&this._sort(),u||this._chartStore.getChart().updatePane(1)}},t.prototype.getHoverInstanceInfo=function(){return this._hoverInstanceInfo},t.prototype.setClickInstanceInfo=function(t,e){var i,o,n,r,a,s,l,u,c,h=this._clickInstanceInfo,d=h.paneId,p=h.instance,v=h.figureType,g=h.figureKey,f=h.figureIndex;if(null!==(o=null===(i=t.instance)||void 0===i?void 0:i.isDrawing())&&void 0!==o&&o||null===(r=null===(n=t.instance)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),((null==p?void 0:p.id)!==(null===(a=t.instance)||void 0===a?void 0:a.id)||v!==t.figureType||f!==t.figureIndex)&&(this._clickInstanceInfo=t,(null==p?void 0:p.id)!==(null===(s=t.instance)||void 0===s?void 0:s.id))){null===(l=null==p?void 0:p.onDeselected)||void 0===l||l.call(p,k({overlay:p,figureKey:g,figureIndex:f},e)),null===(c=null===(u=t.instance)||void 0===u?void 0:u.onSelected)||void 0===c||c.call(u,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e));var m=this._chartStore.getChart();m.updatePane(1,t.paneId),d!==t.paneId&&m.updatePane(1,d),m.updatePane(1,Kt.XAXIS)}},t.prototype.getClickInstanceInfo=function(){return this._clickInstanceInfo},t.prototype.isEmpty=function(){return 0===this._instances.size&&null===this._progressInstanceInfo},t.prototype.isDrawing=function(){var t,e;return null!==this._progressInstanceInfo&&null!==(e=null===(t=this._progressInstanceInfo)||void 0===t?void 0:t.instance.isDrawing())&&void 0!==e&&e},t}(),$t=function(){function t(){this._actions=new Map}return t.prototype.execute=function(t,e){var i;null===(i=this._actions.get(t))||void 0===i||i.execute(e)},t.prototype.subscribe=function(t,e){var i;this._actions.has(t)||this._actions.set(t,new V),null===(i=this._actions.get(t))||void 0===i||i.subscribe(e)},t.prototype.unsubscribe=function(t,e){var i=this._actions.get(t);void 0!==i&&(i.unsubscribe(e),i.isEmpty()&&this._actions.delete(t))},t.prototype.has=function(t){var e=this._actions.get(t);return void 0!==e&&!e.isEmpty()},t}(),Jt={light:{grid:{horizontal:{color:\\"#EDEDED\\"},vertical:{color:\\"#EDEDED\\"}},candle:{priceMark:{high:{color:\\"#76808F\\"},low:{color:\\"#76808F\\"}},tooltip:{rect:{color:\\"#FEFEFE\\",borderColor:\\"#F2F3F5\\"},text:{color:\\"#76808F\\"}}},indicator:{tooltip:{text:{color:\\"#76808F\\"}}},xAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},yAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},separator:{color:\\"#DDDDDD\\"},crosshair:{horizontal:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}},vertical:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}}}},dark:{grid:{horizontal:{color:\\"#292929\\"},vertical:{color:\\"#292929\\"}},candle:{priceMark:{high:{color:\\"#929AA5\\"},low:{color:\\"#929AA5\\"}},tooltip:{rect:{color:\\"rgba(10, 10, 10, .6)\\",borderColor:\\"rgba(10, 10, 10, .6)\\"},text:{color:\\"#929AA5\\"}}},indicator:{tooltip:{text:{color:\\"#929AA5\\"}}},xAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},yAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},separator:{color:\\"#333333\\"},crosshair:{horizontal:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}},vertical:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}}}}};function Qt(t){var e;return null!==(e=Jt[t])&&void 0!==e?e:null}var te=function(){function i(e,i){this._styles={grid:{show:!0,horizontal:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]},vertical:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]}},candle:{type:t.CandleType.CandleSolid,bar:{upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",upBorderColor:\\"#2DC08E\\",downBorderColor:\\"#F92855\\",noChangeBorderColor:\\"#888888\\",upWickColor:\\"#2DC08E\\",downWickColor:\\"#F92855\\",noChangeWickColor:\\"#888888\\"},area:{lineSize:2,lineColor:\\"#1677FF\\",value:\\"close\\",backgroundColor:[{offset:0,color:\\"rgba(22, 119, 255, 0.01)\\"},{offset:1,color:\\"rgba(22, 119, 255, 0.2)\\"}]},priceMark:{show:!0,high:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},low:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},last:{show:!0,upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,4],size:1},text:{show:!0,style:t.PolygonType.Fill,size:12,paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderColor:\\"transparent\\",borderStyle:t.LineType.Solid,borderSize:0,borderDashedValue:[2,2],color:\\"#FFFFFF\\",family:\\"Helvetica Neue\\",weight:\\"normal\\",borderRadius:2}}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,custom:null,defaultValue:\\"n/a\\",rect:{position:g.Fixed,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:8,offsetLeft:10,offsetTop:8,offsetRight:10,offsetBottom:8,borderRadius:4,borderSize:1,borderColor:\\"#F2F3F5\\",color:\\"#FEFEFE\\"},text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},indicator:{ohlc:{upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"},bars:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lines:[{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#FF9600\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#935EBD\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#1677FF\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#E11D74\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#01C5C4\\"}],circles:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lastValueMark:{show:!1,text:{show:!1,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderColor:\\"transparent\\",borderSize:1,borderDashedValue:[2,2],paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderRadius:2}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,showName:!0,showParams:!0,defaultValue:\\"n/a\\",text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},xAxis:{show:!0,size:\\"auto\\",axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},yAxis:{show:!0,size:\\"auto\\",type:t.YAxisType.Normal,position:t.YAxisPosition.Right,inside:!1,reverse:!1,axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},separator:{size:1,color:\\"#DDDDDD\\",fill:!0,activeBackgroundColor:\\"rgba(33, 150, 243, 0.08)\\"},crosshair:{show:!0,horizontal:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderColor:\\"#686D76\\",borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}},vertical:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#686D76\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}}},overlay:{point:{color:\\"#1677FF\\",borderColor:\\"rgba(22, 119, 255, 0.35)\\",borderSize:1,radius:5,activeColor:\\"#1677FF\\",activeBorderColor:\\"rgba(22, 119, 255, 0.35)\\",activeBorderSize:3,activeRadius:5},line:{style:t.LineType.Solid,smooth:!1,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},rect:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderRadius:0,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},polygon:{style:t.PolygonType.Fill,color:\\"#1677FF\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},circle:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},arc:{style:t.LineType.Solid,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},text:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:0,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,backgroundColor:\\"transparent\\"},rectText:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}}},this._customApi={formatDate:b,formatBigNumber:w},this._locale=I,this._precision={price:2,volume:0},this._thousandsSeparator=\\",\\",this._dataList=[],this._timeScaleStore=new it(this),this._indicatorStore=new gt(this),this._overlayStore=new qt(this),this._tooltipStore=new ft(this),this._actionStore=new $t,this._visibleDataList=[],this._chart=e,this.setOptions(i)}return i.prototype.adjustVisibleDataList=function(){this._visibleDataList=[];for(var t=this._timeScaleStore.getVisibleRange(),e=t.to,i=t.from;e>i;i++){var o=this._dataList[i],n=this._timeScaleStore.dataIndexToCoordinate(i);this._visibleDataList.push({dataIndex:i,x:n,data:o})}},i.prototype.setOptions=function(t){if(void 0!==t){var i=t.locale,o=t.timezone,n=t.styles,r=t.customApi;void 0!==i&&(this._locale=i),void 0!==o&&this._timeScaleStore.setTimezone(o),void 0!==n&&(u(n)?e(this._styles,Qt(n)):e(this._styles,n)),void 0!==r&&e(this._customApi,r),void 0!==t.thousandsSeparator&&(this._thousandsSeparator=t.thousandsSeparator)}return this},i.prototype.getStyles=function(){return this._styles},i.prototype.getLocale=function(){return this._locale},i.prototype.getCustomApi=function(){return this._customApi},i.prototype.getThousandsSeparator=function(){return this._thousandsSeparator},i.prototype.getPrecision=function(){return this._precision},i.prototype.setPrecision=function(t){return this._precision=t,this._indicatorStore.setSeriesPrecision(t),this},i.prototype.getDataList=function(){return this._dataList},i.prototype.getVisibleDataList=function(){return this._visibleDataList},i.prototype.addData=function(t,e,i){if(o(t)){this._timeScaleStore.setLoading(!1),this._timeScaleStore.setMore(null==i||i);var n=0===this._dataList.length;this._dataList=t.concat(this._dataList),n&&this._timeScaleStore.resetOffsetRightDistance(),this._timeScaleStore.adjustVisibleRange()}else{if(er&&this._timeScaleStore.setOffsetRightBarCount(--r),this._timeScaleStore.adjustVisibleRange()}}this._tooltipStore.recalculateCrosshair(!0)},i.prototype.clear=function(){this._dataList=[],this._visibleDataList=[],this._timeScaleStore.clear(),this._tooltipStore.clear()},i.prototype.getTimeScaleStore=function(){return this._timeScaleStore},i.prototype.getIndicatorStore=function(){return this._indicatorStore},i.prototype.getOverlayStore=function(){return this._overlayStore},i.prototype.getTooltipStore=function(){return this._tooltipStore},i.prototype.getActionStore=function(){return this._actionStore},i.prototype.getChart=function(){return this._chart},i}();function ee(t){return null==window.requestAnimationFrame?window.setTimeout(t,20):window.requestAnimationFrame(t)}function ie(t){null==window.cancelAnimationFrame&&window.clearTimeout(t),window.cancelAnimationFrame(t)}var oe=-1,ne=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._mainRequestAnimationId=oe,e._overlayRequestAnimationId=oe,e}return P(e,t),e.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"0\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}},e.prototype.initDom=function(t){this._mainCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._mainCtx=this._mainCanvas.getContext(\\"2d\\"),this._overlayCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._overlayCtx=this._overlayCanvas.getContext(\\"2d\\"),t.appendChild(this._mainCanvas),t.appendChild(this._overlayCanvas)},e.prototype._optimalUpdateMain=function(t,e){var i=this;this._mainRequestAnimationId!==oe&&(ie(this._mainRequestAnimationId),this._mainRequestAnimationId=oe),this._mainRequestAnimationId=ee((function(){if(t!==i._mainCanvas.offsetWidth||e!==i._mainCanvas.offsetHeight){i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);var o=X(i._mainCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._mainCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._mainCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._mainCanvas.width=n,i._mainCanvas.height=r,i._mainCtx.scale(o,o)}else i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);i.updateMain(i._mainCtx)}))},e.prototype._optimalUpdateOverlay=function(t,e){var i=this;this._overlayRequestAnimationId!==oe&&(ie(this._overlayRequestAnimationId),this._overlayRequestAnimationId=oe),this._overlayRequestAnimationId=ee((function(){if(t!==i._overlayCanvas.offsetWidth||e!==i._overlayCanvas.offsetHeight){i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);var o=X(i._overlayCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._overlayCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._overlayCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._overlayCanvas.width=n,i._overlayCanvas.height=r,i._overlayCtx.scale(o,o)}else i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);i.updateOverlay(i._overlayCtx)}))},e.prototype.updateImp=function(t,e,i){var o=e.width,n=e.height;t.style.left=\\"\\".concat(e.left,\\"px\\");var r=i;switch(o===t.offsetWidth&&n===t.offsetHeight||(t.style.width=\\"\\".concat(o,\\"px\\"),t.style.height=\\"\\".concat(n,\\"px\\"),r=3),r){case 0:this._optimalUpdateMain(o,n);break;case 1:this._optimalUpdateOverlay(o,n);break;case 3:case 4:this._optimalUpdateMain(o,n),this._optimalUpdateOverlay(o,n)}},e.prototype.getImage=function(t){var e=this.getBounding(),i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);return n.width=i*a,n.height=o*a,r.scale(a,a),r.drawImage(this._mainCanvas,0,0,i,o),t&&r.drawImage(this._overlayCanvas,0,0,i,o),n},e}(jt);function re(t,e){var i=t.x-e.x,o=t.y-e.y,n=e.r;return!(i*i+o*o>n*n)}function ae(e,i,o){var n=i.x,r=i.y,a=i.r,s=o.style,l=void 0===s?t.PolygonType.Fill:s,u=o.color,c=o.borderSize,h=void 0===c?1:c,d=o.borderColor,p=void 0===d?\\"currentColor\\":d,v=o.borderStyle,g=void 0===v?t.LineType.Solid:v,f=o.borderDashedValue,m=void 0===f?[2,2]:f;l!==t.PolygonType.Fill&&o.style!==t.PolygonType.StrokeFill||(e.fillStyle=void 0===u?\\"currentColor\\":u,e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.fill()),l!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||(e.strokeStyle=p,e.lineWidth=h,e.setLineDash(g===t.LineType.Dashed?m:[]),e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.stroke())}var se={name:\\"circle\\",checkEventOn:re,draw:function(t,e,i){ae(t,e,i)}};function le(t,e){for(var i=!1,o=e.coordinates,n=0,r=o.length-1;o.length>n;r=n++)o[n].y>t.y!=o[r].y>t.y&&(o[r].x-o[n].x)*(t.y-o[n].y)/(o[r].y-o[n].y)+o[n].x>t.x&&(i=!i);return i}function ue(e,i,o){var n=i.coordinates,r=o.style,a=void 0===r?t.PolygonType.Fill:r,s=o.color,l=o.borderSize,u=void 0===l?1:l,c=o.borderColor,h=void 0===c?\\"currentColor\\":c,d=o.borderStyle,p=void 0===d?t.LineType.Solid:d,v=o.borderDashedValue,g=void 0===v?[2,2]:v;if(a===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){e.fillStyle=void 0===s?\\"currentColor\\":s,e.beginPath(),e.moveTo(n[0].x,n[0].y);for(var f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.fill()}if(a===t.PolygonType.Stroke||o.style===t.PolygonType.StrokeFill){e.strokeStyle=h,e.lineWidth=u,e.setLineDash(p===t.LineType.Dashed?g:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y);for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.stroke()}}var ce={name:\\"polygon\\",checkEventOn:le,draw:function(t,e,i){ue(t,e,i)}};function he(t){return\\"transparent\\"===t}function de(t,e){var i=e.x,o=e.width;2*Tt>o&&(i-=Tt,o=2*Tt);var n=e.y,r=e.height;return 2*Tt>r&&(n-=Tt,r=2*Tt),!(i>t.x||t.x>i+o||n>t.y||t.y>n+r)}function pe(e,i,o){var n=i.x,r=i.y,a=i.width,s=i.height,l=o.style,c=void 0===l?t.PolygonType.Fill:l,h=o.color,d=void 0===h?\\"transparent\\":h,p=o.borderSize,v=void 0===p?1:p,g=o.borderColor,f=void 0===g?\\"transparent\\":g,m=o.borderStyle,y=void 0===m?t.LineType.Solid:m,_=o.borderRadius,x=void 0===_?0:_,S=o.borderDashedValue,C=void 0===S?[2,2]:S;if(c===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){var b=!0;u(d)&&(b=!he(d)),b&&(e.fillStyle=d,e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.fill())}c!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||he(f)||0>v||(e.strokeStyle=f,e.lineWidth=v,e.setLineDash(y===t.LineType.Dashed?C:[]),e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.stroke())}var ve={name:\\"rect\\",checkEventOn:de,draw:function(t,e,i){pe(t,e,i)}};function ge(t,e){var i,o,n=e.size,r=void 0===n?12:n,a=e.paddingLeft,s=e.paddingTop,l=void 0===s?0:s,u=e.paddingRight,c=void 0===u?0:u,h=e.paddingBottom,d=void 0===h?0:h,p=e.weight,v=t.x,g=t.y,f=t.align,m=void 0===f?\\"left\\":f,y=t.baseline,_=void 0===y?\\"top\\":y,x=t.width,S=t.height,C=null!=x?x:(void 0===a?0:a)+j(t.text,r,void 0===p?\\"normal\\":p,e.family)+c,b=null!=S?S:l+r+d;switch(m){case\\"left\\":case\\"start\\":i=v;break;case\\"right\\":case\\"end\\":i=v-C;break;default:i=v-C/2}switch(_){case\\"top\\":case\\"hanging\\":o=g;break;case\\"bottom\\":case\\"ideographic\\":case\\"alphabetic\\":o=g-b;break;default:o=g-b/2}return{x:i,y:o,width:C,height:b}}function fe(t,e,i){var o=ge(e,i),n=o.x,r=o.y;return!(n>t.x||t.x>n+o.width||r>t.y||t.y>r+o.height)}function me(t,e,i){var o=e.text,n=i.color,r=void 0===n?\\"currentColor\\":n,a=i.size,s=void 0===a?12:a,l=i.family,u=i.weight,c=i.paddingLeft,h=void 0===c?0:c,d=i.paddingTop,p=void 0===d?0:d,v=i.paddingRight,g=void 0===v?0:v,f=ge(e,i);pe(t,f,k(k({},i),{color:i.backgroundColor})),t.textAlign=\\"left\\",t.textBaseline=\\"top\\",t.font=H(s,u,l),t.fillStyle=r,t.fillText(o,f.x+h,f.y+p,f.width-h-g)}var ye={name:\\"text\\",checkEventOn:function(t,e,i){return fe(t,e,i)},draw:function(t,e,i){me(t,e,i)}},_e=me;function xe(t,e){if(Math.abs(Math.sqrt((h=(u=t).x-(c=e).x)*h+(d=u.y-c.y)*d)-e.r)Math.max(r,s)+Tt||Math.min(r,s)-Tt>t.x||t.y>Math.max(a,l)+Tt||Math.min(a,l)-Tt>t.y)}var u,c,h,d;return!1}function Se(e,i,o){var n=i.x,r=i.y,a=i.r,s=i.startAngle,l=i.endAngle,u=o.style,c=void 0===u?t.LineType.Solid:u,h=o.size,d=o.color,p=void 0===d?\\"currentColor\\":d,v=o.dashedValue,g=void 0===v?[2,2]:v;e.lineWidth=void 0===h?1:h,e.strokeStyle=p,e.setLineDash(c===t.LineType.Dashed?g:[]),e.beginPath(),e.arc(n,r,a,s,l),e.stroke(),e.closePath()}var Ce={name:\\"arc\\",checkEventOn:xe,draw:function(t,e,i){Se(t,e,i)}},be={};[se,Ft,ce,ve,ye,ye,Ce].forEach((function(t){be[t.name]=wt.extend(t)}));var Te=function(t){function e(e){var i=t.call(this)||this;return i._widget=e,i}return P(e,t),e.prototype.getWidget=function(){return this._widget},e.prototype.createFigure=function(t,e,i,o){var n=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null}(t);if(null!==n){var r=new n({name:t,attrs:e,styles:i});if(void 0!==o){for(var a in o)o.hasOwnProperty(a)&&r.registerEvent(a,o[a]);this.addChild(r)}return r}return null},e.prototype.draw=function(t){this.clear(),this.drawImp(t)},e}(bt),we=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=this.getWidget().getPane(),r=n.getChart(),a=o.getBounding(),s=r.getStyles().grid;if(s.show){t.save(),t.globalCompositeOperation=\\"destination-over\\";var l=s.horizontal;if(l.show)n.getAxisComponent().getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:0,y:e.coord},{x:a.width,y:e.coord}]},l))||void 0===o||o.draw(t)}));var u=s.vertical;if(u.show)(null===(e=r.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent()).getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:e.coord,y:0},{x:e.coord,y:a.height}]},u))||void 0===o||o.draw(t)}));t.restore()}},e}(Te),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.eachChildren=function(t){var e=this.getWidget().getPane().getChart().getChartStore(),i=e.getVisibleDataList(),o=e.getTimeScaleStore().getBarSpace();i.forEach((function(e,i){t(e,o,i)}))},e}(Te),Ie=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundCandleBarClickEvent=function(e){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnCandleBarClick,e),!1}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this,i=this.getWidget().getPane(),o=i.getId()===Kt.CANDLE,n=i.getChart().getChartStore(),r=this.getCandleBarOptions(n);if(null!==r){var a=i.getAxisComponent();this.eachChildren((function(i,n){e._drawCandleBar(t,a,i,n,r,o)}))}},i.prototype.getCandleBarOptions=function(t){var e=t.getStyles().candle;return{type:e.type,styles:e.bar}},i.prototype._drawCandleBar=function(e,i,o,n,r,a){var s,l,u,c=this,h=o.data,d=o.x,p=h.open,v=h.high,g=h.low,f=h.close,m=n.halfGapBar,y=n.gapBar,_=r.type,x=r.styles;f>p?(s=x.upColor,l=x.upBorderColor,u=x.upWickColor):p>f?(s=x.downColor,l=x.downBorderColor,u=x.downWickColor):(s=x.noChangeColor,l=x.noChangeBorderColor,u=x.noChangeWickColor);var S=i.convertToPixel(p),C=i.convertToPixel(f),b=[S,C,i.convertToPixel(v),i.convertToPixel(g)];b.sort((function(t,e){return t-e}));var T=Math.max(1,b[2]-b[1]),w=[];_!==t.CandleType.Ohlc?(w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[1]-b[0]},styles:{color:u}}),w.push(_===t.CandleType.CandleStroke||_===t.CandleType.CandleUpStroke&&f>p||_===t.CandleType.CandleDownStroke&&p>f?{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.Stroke,borderColor:l}}:{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.StrokeFill,color:s,borderColor:l}}),w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[2],width:1,height:b[3]-b[2]},styles:{color:u}})):w=[{name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[3]-b[0]},styles:{color:s}},{name:\\"rect\\",attrs:{x:d-m,y:S,width:m,height:1},styles:{color:s}},{name:\\"rect\\",attrs:{x:d,y:C,width:m,height:1},styles:{color:s}}],w.forEach((function(t){var i,n,r=t.attrs,s=t.styles;a&&(n={mouseClickEvent:c._boundCandleBarClickEvent(o)}),null===(i=c.createFigure(\\"rect\\",r,s,n))||void 0===i||i.draw(e)}))},i}(Ee),De=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.getCandleBarOptions=function(e){var i,o,n=this.getWidget().getPane();if(!n.getAxisComponent().isInCandle()){var r=e.getIndicatorStore().getInstances(n.getId());try{for(var a=L(r),s=a.next();!s.done;s=a.next()){var l=s.value[1];if(l.shouldOhlc&&l.visible){var u=l.styles,c=e.getStyles().indicator,h=C(u,\\"ohlc.upColor\\",c.ohlc.upColor),d=C(u,\\"ohlc.downColor\\",c.ohlc.downColor),p=C(u,\\"ohlc.noChangeColor\\",c.ohlc.noChangeColor);return{type:t.CandleType.Ohlc,styles:{upColor:h,downColor:d,noChangeColor:p,upBorderColor:h,downBorderColor:d,noChangeBorderColor:p,upWickColor:h,downWickColor:d,noChangeWickColor:p}}}}}catch(t){i={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}return null},i.prototype.drawImp=function(t){var i,o=this;e.prototype.drawImp.call(this,t);var n=this.getWidget(),r=n.getPane(),l=r.getChart(),u=n.getBounding(),c=null===(i=l.getPaneById(Kt.XAXIS))||void 0===i?void 0:i.getAxisComponent(),h=r.getAxisComponent(),d=l.getChartStore(),p=d.getDataList(),v=d.getTimeScaleStore(),g=v.getVisibleRange(),f=d.getIndicatorStore().getInstances(r.getId()),m=d.getStyles().indicator;f.forEach((function(e){var i;if(e.visible){var n=!1;if(null!==e.draw&&(t.save(),n=null!==(i=e.draw({ctx:t,kLineDataList:p,indicator:e,visibleRange:g,bounding:u,barSpace:v.getBarSpace(),defaultStyles:m,xAxis:c,yAxis:h}))&&void 0!==i&&i,t.restore()),!n){var r=e.result;o.eachChildren((function(i,n){var l,d,v,g=n.halfGapBar,f=n.gapBar,y=i.dataIndex,_=i.x,x=c.convertToPixel(y-1),S=c.convertToPixel(y+1),C=null!==(l=r[y-1])&&void 0!==l?l:{},b=null!==(d=r[y])&&void 0!==d?d:{},T=null!==(v=r[y+1])&&void 0!==v?v:{},w={x:x},E={x:_},I={x:S};e.figures.forEach((function(t){var e=t.key;w[e]=h.convertToPixel(C[e]),E[e]=h.convertToPixel(b[e]),I[e]=h.convertToPixel(T[e])})),ot(p,e,y,m,(function(e,i){var r,l,d;if(s(b[e.key])){var p=E[e.key],v=null===(r=e.attrs)||void 0===r?void 0:r.call(e,{coordinate:{prev:w,current:E,next:I},bounding:u,barSpace:n,xAxis:c,yAxis:h});if(!s(v))switch(e.type){case\\"circle\\":v={x:_,y:p,r:g};break;case\\"rect\\":case\\"bar\\":var m=null!==(l=e.baseValue)&&void 0!==l?l:h.getExtremum().min,y=h.convertToPixel(m),x=Math.abs(y-p);m!==b[e.key]&&(x=Math.max(1,x));v={x:_-g,y:p>y?y:p,width:f,height:x};break;case\\"line\\":a(E[e.key])&&a(I[e.key])&&(v={coordinates:[{x:E.x,y:E[e.key]},{x:I.x,y:I[e.key]}]})}if(s(v)){var S=e.type;null===(d=o.createFigure(\\"bar\\"===S?\\"rect\\":S,v,i))||void 0===d||d.draw(t)}}}))}))}}}))},i}(Ie),Pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=e.getBounding(),n=e.getPane().getChart().getChartStore(),r=n.getTooltipStore().getCrosshair(),a=n.getStyles().crosshair;if(void 0!==r.paneId&&a.show){if(r.paneId===i.getId()){var s=r.y;this._drawLine(t,[{x:0,y:s},{x:o.width,y:s}],a.horizontal)}var l=r.realX;this._drawLine(t,[{x:l,y:0},{x:l,y:o.height}],a.vertical)}},e.prototype._drawLine=function(t,e,i){var o;if(i.show){var n=i.line;n.show&&(null===(o=this.createFigure(\\"line\\",{coordinates:e},n))||void 0===o||o.draw(t))}},e}(Te),Me=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundIconClickEvent=function(e,o){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnTooltipIconClick,k(k({},e),{iconId:o})),!0}},i._boundIconMouseMoveEvent=function(t,e){return function(){return i.getWidget().getPane().getChart().getChartStore().getTooltipStore().setActiveIcon(k(k({},t),{iconId:e})),!0}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=i.getChart().getChartStore(),n=o.getTooltipStore().getCrosshair();if(void 0!==n.kLineData){var r=e.getBounding(),a=o.getCustomApi(),s=o.getThousandsSeparator(),l=o.getIndicatorStore().getInstances(i.getId()),u=o.getTooltipStore().getActiveIcon(),c=o.getStyles().indicator;this.drawIndicatorTooltip(t,i.getId(),o.getDataList(),n,u,l,a,s,r,c)}},i.prototype.drawIndicatorTooltip=function(t,e,i,o,n,r,a,s,l,u,c){var h=this,d=u.tooltip,p=0;if(this.isDrawTooltip(o,d)){var v=d.text,g=0,f=null!=c?c:0,m=0;r.forEach((function(r){var c=h.getIndicatorTooltipData(i,o,r,a,s,u),d=c.name,y=c.calcParamsText,_=c.values,x=d.length>0,S=_.length>0;if(x||S){var C=R(h.classifyTooltipIcons(c.icons),3),b=C[1],T=C[2],w=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,C[0],g,f,m),4);if(g=w[0],f=w[1],p+=w[3],m=w[2],x){var E=d;y.length>0&&(E=\\"\\".concat(E).concat(y));var I=R(h.drawStandardTooltipLabels(t,l,[{title:{text:\\"\\",color:v.color},value:{text:E,color:v.color}}],g,f,m,v),4);g=I[0],f=I[1],p+=I[3],m=I[2]}var D=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,b,g,f,m),4);if(g=D[0],f=D[1],p+=D[3],m=D[2],S){var P=R(h.drawStandardTooltipLabels(t,l,_,g,f,m,v),4);g=P[0],f=P[1],p+=P[3],m=P[2]}var M=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,T,g,f,m),4);g=0,p+=M[3],f=M[1]+M[2],m=0}}))}return p},i.prototype.drawStandardTooltipIcons=function(t,e,i,o,n,r,a,s){var l=this,u=r,c=a,h=0,d=0,p=0;return n.length>0&&(n.forEach((function(e){var i=e.marginLeft,o=e.marginTop,n=e.marginRight,r=e.marginBottom,a=e.paddingLeft,s=e.paddingTop,l=e.paddingRight,u=e.paddingBottom,c=e.size,p=e.icon;t.font=H(c,\\"normal\\",e.fontFamily),h+=i+a+t.measureText(p).width+l+n,d=Math.max(d,o+s+c+u+r)})),u+h>e.width?(u=n[0].marginLeft,c+=s,p=d):p=Math.max(0,d-s),n.forEach((function(e){var n,r=e.marginRight,a=e.paddingLeft,s=e.paddingRight,h=e.icon,d=(null==o?void 0:o.paneId)===i.paneId&&(null==o?void 0:o.indicatorName)===i.indicatorName&&(null==o?void 0:o.iconId)===e.id;null===(n=l.createFigure(\\"text\\",{text:h,x:u+=e.marginLeft,y:c+e.marginTop},{paddingLeft:a,paddingTop:e.paddingTop,paddingRight:s,paddingBottom:e.paddingBottom,color:d?e.activeColor:e.color,size:e.size,family:e.fontFamily,backgroundColor:d?e.activeBackgroundColor:e.backgroundColor},{mouseClickEvent:l._boundIconClickEvent(i,e.id),mouseMoveEvent:l._boundIconMouseMoveEvent(i,e.id)}))||void 0===n||n.draw(t),u+=a+t.measureText(h).width+s+r}))),[u,c,Math.max(s,d),p]},i.prototype.drawStandardTooltipLabels=function(t,e,i,o,n,r,a){var s=this,l=o,u=n,c=0,h=0,d=r;if(i.length>0){var p=a.marginLeft,v=a.marginTop,g=a.marginRight,f=a.marginBottom,m=a.size,y=a.family,_=a.weight;t.font=H(m,_,y),i.forEach((function(i){var o,n,r=i.title,a=i.value,x=t.measureText(r.text).width,S=t.measureText(a.text).width,C=m+v+f;l+p+(x+S)+g>e.width?(l=p,u+=C,h+=C):(l+=p,h+=Math.max(0,C-d)),d=c=Math.max(d,C),r.text.length>0&&(null===(o=s.createFigure(\\"text\\",{x:l,y:u+v,text:r.text},{color:r.color,size:m,family:y,weight:_}))||void 0===o||o.draw(t),l+=x),null===(n=s.createFigure(\\"text\\",{x:l,y:u+v,text:a.text},{color:a.color,size:m,family:y,weight:_}))||void 0===n||n.draw(t),l+=S+g}))}return[l,u,c,h]},i.prototype.isDrawTooltip=function(e,i){var o=i.showRule;return o===t.TooltipShowRule.Always||o===t.TooltipShowRule.FollowCross&&void 0!==e.paneId},i.prototype.getIndicatorTooltipData=function(t,e,i,o,n,a){var l,u,c,h=a.tooltip,d=h.showName?i.shortName:\\"\\",p=\\"\\",v=i.calcParams;v.length>0&&h.showParams&&(p=\\"(\\".concat(v.join(\\",\\"),\\")\\"));var g={name:d,calcParamsText:p,values:[],icons:h.icons},f=e.dataIndex,m=null!==(l=i.result)&&void 0!==l?l:[],y=[];if(i.visible){var _=null!==(u=m[f])&&void 0!==u?u:{};ot(t,i,f,a,(function(t,e){if(void 0!==t.title){var r=e.color,a=_[t.key];s(a)&&(a=T(a,i.precision),i.shouldFormatBigNumber&&(a=o.formatBigNumber(a))),y.push({title:{text:t.title,color:r},value:{text:E(null!=a?a:h.defaultValue,n),color:r}})}})),g.values=y}if(null!==i.createTooltipDataSource){var x=this.getWidget(),S=x.getPane(),C=S.getChart().getChartStore(),b=i.createTooltipDataSource({kLineDataList:t,indicator:i,visibleRange:C.getTimeScaleStore().getVisibleRange(),bounding:x.getBounding(),crosshair:e,defaultStyles:a,xAxis:null===(c=S.getChart().getPaneById(Kt.XAXIS))||void 0===c?void 0:c.getAxisComponent(),yAxis:S.getAxisComponent()}),w=b.name,I=b.calcParamsText,D=b.values,P=b.icons;if(void 0!==w&&h.showName&&(g.name=w),void 0!==I&&h.showParams&&(g.calcParamsText=I),void 0!==P&&(g.icons=P),void 0!==D&&i.visible){var M=[],k=a.tooltip.text.color;D.forEach((function(t){var e={text:\\"\\",color:k};r(t.title)?e=t.title:e.text=t.title;var i={text:\\"\\",color:k};r(t.value)?i=t.value:i.text=t.value,i.text=E(i.text,n),M.push({title:e,value:i})})),g.values=M}}return g},i.prototype.classifyTooltipIcons=function(e){var i=[],o=[],n=[];return e.forEach((function(e){switch(e.position){case t.TooltipIconPosition.Left:i.push(e);break;case t.TooltipIconPosition.Middle:o.push(e);break;case t.TooltipIconPosition.Right:n.push(e)}})),[i,o,n]},i}(Te),ke=function(e){function i(t){var i=e.call(this,t)||this;return i._initEvent(),i}return P(i,e),i.prototype._initEvent=function(){var t=this,e=this.getWidget().getPane(),i=e.getId(),o=e.getChart().getChartStore().getOverlayStore();this.registerEvent(\\"mouseMoveEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;a.isStart()&&(o.updateProgressInstanceInfo(i),s=i);var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);return a.isDrawing()&&s===i&&(a.eventMoveForDrawing(t._coordinateToPoint(r.instance,e)),null===(n=a.onDrawing)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))),t._figureMouseMoveEvent(a,1,u,l,0)(e)}return o.setHoverInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseClickEvent\\",(function(e){var n,r,a=o.getProgressInstanceInfo();if(null!==a){var s=a.instance,l=a.paneId;s.isStart()&&(o.updateProgressInstanceInfo(i,!0),l=i);var u=s.points.length-1,c=\\"\\".concat(yt,\\"point_\\").concat(u);return s.isDrawing()&&l===i&&(s.eventMoveForDrawing(t._coordinateToPoint(s,e)),null===(n=s.onDrawing)||void 0===n||n.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)),s.nextStep(),s.isDrawing()||(o.progressInstanceComplete(),null===(r=s.onDrawEnd)||void 0===r||r.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)))),t._figureMouseClickEvent(s,1,c,u,0)(e)}return o.setClickInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseDoubleClickEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;if(a.isDrawing()&&s===i&&(a.forceComplete(),!a.isDrawing())){o.progressInstanceComplete();var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);null===(n=a.onDrawEnd)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))}var c=a.points.length-1;return t._figureMouseClickEvent(a,1,\\"\\".concat(yt,\\"point_\\").concat(c),c,0)(e)}return!1})).registerEvent(\\"mouseRightClickEvent\\",(function(e){var i=o.getProgressInstanceInfo();if(null!==i){var n=i.instance;if(n.isDrawing()){var r=n.points.length-1;return t._figureMouseRightClickEvent(n,1,\\"\\".concat(yt,\\"point_\\").concat(r),r,0)(e)}}return!1})).registerEvent(\\"mouseUpEvent\\",(function(t){var e,n=o.getPressedInstanceInfo(),r=n.instance;return null!==r&&(null===(e=r.onPressedMoveEnd)||void 0===e||e.call(r,k({overlay:r,figureKey:n.figureKey,figureIndex:n.figureIndex},t))),o.setPressedInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1}),!1})).registerEvent(\\"pressedMouseMoveEvent\\",(function(e){var i,n,r=o.getPressedInstanceInfo(),a=r.instance,s=r.figureType,l=r.figureIndex;if(null!==a){if(!(a.lock||null!==(n=null===(i=a.onPressedMoving)||void 0===i?void 0:i.call(a,k({overlay:a,figureIndex:l,figureKey:r.figureKey},e)))&&void 0!==n&&n)){var u=t._coordinateToPoint(a,e);1===s?a.eventPressedPointMove(u,l):a.eventPressedOtherMove(u,t.getWidget().getPane().getChart().getChartStore().getTimeScaleStore())}return!0}return!1}))},i.prototype._createFigureEvents=function(t,e,i,o,n,r){var a;if(!t.isDrawing()){var s=[];if(void 0!==r&&(l(r)?r&&(s=[\\"mouseClickEvent\\",\\"mouseDoubleClickEvent\\",\\"mouseRightClickEvent\\",\\"tapEvent\\",\\"doubleTapEvent\\",\\"mouseDownEvent\\",\\"touchStartEvent\\",\\"mouseMoveEvent\\",\\"touchMoveEvent\\"]):s=r),0===s.length)return{mouseMoveEvent:this._figureMouseMoveEvent(t,e,i,o,n),mouseDownEvent:this._figureMouseDownEvent(t,e,i,o,n),mouseClickEvent:this._figureMouseClickEvent(t,e,i,o,n),mouseRightClickEvent:this._figureMouseRightClickEvent(t,e,i,o,n),mouseDoubleClickEvent:this._figureMouseDoubleClickEvent(t,e,i,o,n)};a={},s.includes(\\"mouseMoveEvent\\")||s.includes(\\"touchMoveEvent\\")||(a.mouseMoveEvent=this._figureMouseMoveEvent(t,e,i,o,n)),s.includes(\\"mouseDownEvent\\")||s.includes(\\"touchStartEvent\\")||(a.mouseDownEvent=this._figureMouseDownEvent(t,e,i,o,n)),s.includes(\\"mouseClickEvent\\")||s.includes(\\"tapEvent\\")||(a.mouseClickEvent=this._figureMouseClickEvent(t,e,i,o,n)),s.includes(\\"mouseDoubleClickEvent\\")||s.includes(\\"doubleTapEvent\\")||(a.mouseDoubleClickEvent=this._figureMouseDoubleClickEvent(t,e,i,o,n)),s.includes(\\"mouseRightClickEvent\\")||(a.mouseRightClickEvent=this._figureMouseRightClickEvent(t,e,i,o,n))}return a},i.prototype._figureMouseMoveEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane();return s.getChart().getChartStore().getOverlayStore().setHoverInstanceInfo({paneId:s.getId(),instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDownEvent=function(t,e,i,o,n){var r=this;return function(a){var s,l=r.getWidget().getPane(),u=l.getId(),c=l.getChart().getChartStore().getOverlayStore();return t.startPressedMove(r._coordinateToPoint(t,a)),null===(s=t.onPressedMoveStart)||void 0===s||s.call(t,k({overlay:t,figureIndex:o,figureKey:i},a)),c.setPressedInstanceInfo({paneId:u,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n}),!0}},i.prototype._figureMouseClickEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane(),l=s.getId();return s.getChart().getChartStore().getOverlayStore().setClickInstanceInfo({paneId:l,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDoubleClickEvent=function(t,e,i,o,n){return function(e){var n;return null===(n=t.onDoubleClick)||void 0===n||n.call(t,k(k({},e),{figureIndex:o,figureKey:i,overlay:t})),!0}},i.prototype._figureMouseRightClickEvent=function(t,e,i,o,n){var r=this;return function(e){var n,a;null!==(a=null===(n=t.onRightClick)||void 0===n?void 0:n.call(t,k({overlay:t,figureIndex:o,figureKey:i},e)))&&void 0!==a&&a||r.getWidget().getPane().getChart().getChartStore().getOverlayStore().removeInstance(t);return!0}},i.prototype._coordinateToPoint=function(e,i){var o,n,r={},a=this.getWidget().getPane(),s=a.getChart(),l=a.getId(),u=s.getChartStore().getTimeScaleStore();if(this.coordinateToPointTimestampDataIndexFlag()){var c=(null===(o=s.getPaneById(Kt.XAXIS))||void 0===o?void 0:o.getAxisComponent()).convertFromPixel(i.x),h=null!==(n=u.dataIndexToTimestamp(c))&&void 0!==n?n:void 0;r.dataIndex=c,r.timestamp=h}if(this.coordinateToPointValueFlag()){var d=a.getAxisComponent(),p=d.convertFromPixel(i.y);if(e.mode!==t.OverlayMode.Normal&&l===Kt.CANDLE&&void 0!==r.dataIndex){var v=u.getDataByDataIndex(r.dataIndex);if(null!==v){var g=e.modeSensitivity;if(p>v.high)if(e.mode===t.OverlayMode.WeakMagnet){var f=d.convertToPixel(v.high);d.convertFromPixel(f-g)>p&&(p=v.high)}else p=v.high;else if(v.low>p)if(e.mode===t.OverlayMode.WeakMagnet){var m=d.convertToPixel(v.low);p>d.convertFromPixel(m-g)&&(p=v.low)}else p=v.low;else{var y=Math.max(v.open,v.close),_=Math.min(v.open,v.close);p=p>y?v.high-p>p-y?y:v.high:_>p?_-p>p-v.low?v.low:_:p-_>y-p?y:_}}}r.value=p}return r},i.prototype.coordinateToPointValueFlag=function(){return!0},i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.dispatchEvent=function(t,i,o){return this.getWidget().getPane().getChart().getChartStore().getOverlayStore().isDrawing()?this.onEvent(t,i,o):e.prototype.dispatchEvent.call(this,t,i,o)},i.prototype.checkEventOn=function(){return!0},i.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart(),s=n.getAxisComponent(),l=null===(e=a.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent(),u=o.getBounding(),c=a.getChartStore(),h=c.getCustomApi(),d=c.getThousandsSeparator(),p=c.getTimeScaleStore(),v=p.getDateTimeFormat(),g=p.getBarSpace(),f=c.getPrecision(),m=c.getStyles().overlay,y=c.getOverlayStore(),_=y.getHoverInstanceInfo(),x=y.getClickInstanceInfo();this.getCompleteOverlays(y,r).forEach((function(e){e.visible&&i._drawOverlay(t,e,u,g,f,v,h,d,m,l,s,_,x,p)}));var S=y.getProgressInstanceInfo();if(null!==S){var C=this.getProgressOverlay(S,r);null!==C&&C.visible&&this._drawOverlay(t,C,u,g,f,v,h,d,m,l,s,_,x,p)}},i.prototype._drawOverlay=function(t,e,i,o,n,r,a,s,l,u,c,h,d,p){var v=e.points.map((function(t){var e,i,o=t.dataIndex;void 0!==t.timestamp&&(o=p.timestampToDataIndex(t.timestamp));var n={x:0,y:0};return void 0!==o&&(n.x=null!==(e=null==u?void 0:u.convertToPixel(o))&&void 0!==e?e:0),void 0!==t.value&&(n.y=null!==(i=null==c?void 0:c.convertToPixel(t.value))&&void 0!==i?i:0),n}));if(v.length>0){var g=[].concat(this.getFigures(e,v,i,o,n,s,r,l,u,c));this.drawFigures(t,e,g,l)}this.drawDefaultFigures(t,e,v,i,n,r,a,s,l,u,c,h,d)},i.prototype.drawFigures=function(t,e,i,o){var n=this;i.forEach((function(i,r){var a=i.type,s=i.styles,l=i.ignoreEvent;[].concat(i.attrs).forEach((function(u,c){var h,d,p,v=n._createFigureEvents(e,2,null!==(h=i.key)&&void 0!==h?h:\\"\\",r,c,l),g=k(k(k({},o[a]),null===(d=e.styles)||void 0===d?void 0:d[a]),s);null===(p=n.createFigure(a,u,g,v))||void 0===p||p.draw(t)}))}))},i.prototype.getCompleteOverlays=function(t,e){return t.getInstances(e)},i.prototype.getProgressOverlay=function(t,e){return t.paneId===e?t.instance:null},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createPointFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){var p,v,g=this;if(e.needDefaultPointFigure&&((null===(p=h.instance)||void 0===p?void 0:p.id)===e.id&&0!==h.figureType||(null===(v=d.instance)||void 0===v?void 0:v.id)===e.id&&0!==d.figureType)){var f=e.styles,m=k(k({},l.point),null==f?void 0:f.point);i.forEach((function(i,o){var n,r,a,s=i.x,l=i.y,u=m.radius,c=m.color,d=m.borderColor,p=m.borderSize;(null===(n=h.instance)||void 0===n?void 0:n.id)===e.id&&1===h.figureType&&h.figureIndex===o&&(u=m.activeRadius,c=m.activeColor,d=m.activeBorderColor,p=m.activeBorderSize),null===(r=g.createFigure(\\"circle\\",{x:s,y:l,r:u+p},{color:d},g._createFigureEvents(e,1,\\"\\".concat(yt,\\"point_\\").concat(o),o,0)))||void 0===r||r.draw(t),null===(a=g.createFigure(\\"circle\\",{x:s,y:l,r:u},{color:c}))||void 0===a||a.draw(t)}))}},i}(Te),Ae=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._gridView=new we(o),o._indicatorView=new De(o),o._crosshairLineView=new Pe(o),o._tooltipView=o.createTooltipView(),o._overlayView=new ke(o),o.addChild(o._tooltipView),o.addChild(o._overlayView),o.getContainer().style.cursor=\\"crosshair\\",o.registerEvent(\\"mouseMoveEvent\\",(function(){return i.getChart().getChartStore().getTooltipStore().setActiveIcon(),!1})),o}return P(e,t),e.prototype.getName=function(){return zt},e.prototype.updateMain=function(t){this.updateMainContent(t),this._indicatorView.draw(t),this._gridView.draw(t)},e.prototype.createTooltipView=function(){return new Me(this)},e.prototype.updateMainContent=function(t){},e.prototype.updateOverlay=function(t){this._overlayView.draw(t),this._crosshairLineView.draw(t),this._tooltipView.draw(t)},e}(ne),Fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i,n=this.getWidget(),r=n.getPane(),s=r.getChart(),l=n.getBounding(),u=r.getAxisComponent(),c=s.getStyles().candle.area,h=[],d=[],p=Number.MAX_SAFE_INTEGER;this.eachChildren((function(t,e,i){var o=t.x,n=e.halfGapBar,r=t.data[c.value];if(a(r)){var s=u.convertToPixel(r);if(0===i){var v=o-n;d.push({x:v,y:l.height}),d.push({x:v,y:s}),h.push({x:v,y:s})}h.push({x:o,y:s}),d.push({x:o,y:s}),p=Math.min(p,s)}}));var v=d.length;if(v>0){var g=d[v-1],f=g.x;h.push({x:f,y:g.y}),d.push({x:f,y:g.y}),d.push({x:f,y:l.height})}if(h.length>0&&(null===(e=this.createFigure(\\"line\\",{coordinates:h},{color:c.lineColor,size:c.lineSize}))||void 0===e||e.draw(t)),d.length>0){var m=c.backgroundColor,y=void 0;if(o(m)){var _=t.createLinearGradient(0,l.height,0,p);try{m.forEach((function(t){_.addColorStop(t.offset,t.color)}))}catch(t){}y=_}else y=m;null===(i=this.createFigure(\\"polygon\\",{coordinates:d},{color:y}))||void 0===i||i.draw(t)}},e}(Ee),Le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget().getPane(),i=e.getChart().getChartStore(),o=i.getStyles().candle.priceMark,n=o.high,r=o.low;if(o.show&&(n.show||r.show)){var a=i.getThousandsSeparator(),s=i.getPrecision(),l=e.getAxisComponent(),u=Number.MIN_SAFE_INTEGER,c=0,h=Number.MAX_SAFE_INTEGER,d=0;this.eachChildren((function(t){var e=t.data,i=t.x;e.high>u&&(u=e.high,c=i),h>e.low&&(h=e.low,d=i)}));var p=l.convertToPixel(u),v=l.convertToPixel(h);n.show&&u!==Number.MIN_SAFE_INTEGER&&this._drawMark(t,E(T(u,s.price),a),{x:c,y:p},v>p?[-2,-5]:[2,5],n),r.show&&h!==Number.MAX_SAFE_INTEGER&&this._drawMark(t,E(T(h,s.price),a),{x:d,y:v},v>p?[2,5]:[-2,-5],r)}},e.prototype._drawMark=function(t,e,i,o,n){var r,a,s,l,u,c,h=i.x,d=i.y+o[0];null===(r=this.createFigure(\\"line\\",{coordinates:[{x:h-2,y:d+o[0]},{x:h,y:d},{x:h+2,y:d+o[0]}]},{color:n.color}))||void 0===r||r.draw(t),h>this.getWidget().getBounding().width/2?(u=(l=h-5)-n.textOffset,c=\\"right\\"):(c=\\"left\\",u=(l=h+5)+n.textOffset);var p=d+o[1];null===(a=this.createFigure(\\"line\\",{coordinates:[{x:h,y:d},{x:h,y:p},{x:l,y:p}]},{color:n.color}))||void 0===a||a.draw(t),null===(s=this.createFigure(\\"text\\",{x:u,y:p,text:e,align:c,baseline:\\"middle\\"},{color:n.color,size:n.textSize,family:n.textFamily,weight:n.textWeight}))||void 0===s||s.draw(t)},e}(Ee),Re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getStyles().candle.priceMark,s=a.last,l=s.line;if(a.show&&s.show&&l.show){var u=o.getAxisComponent(),c=r.getDataList(),h=c[c.length-1];if(null!=h){var d=h.close,p=h.open,v=u.convertToNicePixel(d);null===(e=this.createFigure(\\"line\\",{coordinates:[{x:0,y:v},{x:n.width,y:v}]},{style:l.style,color:d>p?s.upColor:p>d?s.downColor:s.noChangeColor,size:l.size,dashedValue:l.dashedValue}))||void 0===e||e.draw(t)}}},e}(Te),Be={\\"zh-CN\\":{time:\\"时间:\\",open:\\"开:\\",high:\\"高:\\",low:\\"低:\\",close:\\"收:\\",volume:\\"成交量:\\",change:\\"涨幅:\\"},\\"en-US\\":{time:\\"Time: \\",open:\\"Open: \\",high:\\"High: \\",low:\\"Low: \\",close:\\"Close: \\",volume:\\"Volume: \\",change:\\"Change: \\"}};var Oe=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart().getChartStore(),s=a.getTooltipStore().getCrosshair();if(void 0!==s.kLineData){var l=o.getBounding(),u=null===(i=n.getYAxisWidget())||void 0===i?void 0:i.getBounding(),c=a.getDataList(),h=a.getPrecision(),d=a.getLocale(),p=a.getCustomApi(),v=a.getThousandsSeparator(),g=a.getTooltipStore().getActiveIcon(),f=a.getIndicatorStore().getInstances(n.getId()),m=a.getTimeScaleStore().getDateTimeFormat(),y=a.getStyles(),_=y.candle,x=y.indicator;if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Rect){var S=this.isDrawTooltip(s,_.tooltip),C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,C,y,0)}else if(_.tooltip.showType===t.TooltipShowType.Standard&&x.tooltip.showType===t.TooltipShowType.Standard){var b=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,b)}else if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Standard){var T=this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,0);S=this.isDrawTooltip(s,_.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,!1,y,T)}else{var w=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,!1,C,y,w)}}},i.prototype._drawCandleStandardTooltip=function(t,e,i,o,n,r,a,s,l,u,c,h){var d,p,v,g=h.tooltip,f=g.text,m=0;if(this.isDrawTooltip(n,g)){var y=null!==(d=n.dataIndex)&&void 0!==d?d:0,_=this._getCandleTooltipData({prev:null!==(p=e[y-1])&&void 0!==p?p:null,current:n.kLineData,next:null!==(v=e[y+1])&&void 0!==v?v:null},a,s,l,u,c,h),x=0,S=0,C=0,b=R(this.classifyTooltipIcons(g.icons),3),T=b[1],w=b[2],E=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,b[0],x,S,0),4);m+=E[3];var I=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,T,x=E[0],S=E[1],C=E[2]),4);if(x=I[0],S=I[1],m+=I[3],C=I[2],_.length>0){var D=R(this.drawStandardTooltipLabels(t,o,_,x,S,C,f),4);x=D[0],S=D[1],m+=D[3],C=D[2]}var P=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,w,x,S,C),4);x=P[0],S=P[1],m+=P[3],C=P[2]}return m},i.prototype._drawRectTooltip=function(e,i,o,n,r,a,s,l,u,c,h,d,p,v,f){var m,y,_,x,S,C=this,b=v.candle,T=v.indicator,w=b.tooltip,E=T.tooltip;if(d||p){var I=null!==(m=a.dataIndex)&&void 0!==m?m:0,D=this._getCandleTooltipData({prev:null!==(y=i[I-1])&&void 0!==y?y:null,current:a.kLineData,next:null!==(_=i[I+1])&&void 0!==_?_:null},s,l,u,c,h,b),P=w.text,M=P.marginLeft,k=P.marginRight,A=P.marginTop,F=P.marginBottom,L=P.size,R=P.weight,B=P.family,O=w.rect,V=O.position,N=O.paddingLeft,W=O.paddingRight,z=O.paddingTop,Y=O.paddingBottom,X=O.offsetLeft,j=O.offsetRight,Z=O.offsetTop,G=O.offsetBottom,K=O.borderSize,U=O.borderRadius,q=O.borderColor,$=O.color,J=0,Q=0,tt=0;d&&(e.font=H(L,R,B),D.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+M+k;J=Math.max(J,n)})),tt+=(F+A+L)*D.length);var et=E.text,it=et.marginLeft,ot=et.marginRight,nt=et.marginTop,rt=et.marginBottom,at=et.size,st=et.weight,lt=et.family,ut=[];if(p&&(e.font=H(at,st,lt),o.forEach((function(t){var o,n=null!==(o=C.getIndicatorTooltipData(i,a,t,c,h,T).values)&&void 0!==o?o:[];ut.push(n),n.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+it+ot;J=Math.max(J,n),tt+=nt+rt+at}))}))),0!==(Q+=J)&&0!==tt){Q+=2*K+N+W,tt+=2*K+z+Y;var ct=V===g.Pointer&&a.paneId===Kt.CANDLE,ht=(null!==(x=a.realX)&&void 0!==x?x:0)>n.width/2,dt=0;if(ct){var pt=a.realX;dt=ht?pt-j-Q:pt+X}else ht?(dt=X,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Left&&(dt+=r.width)):(dt=n.width-j-Q,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Right&&(dt-=r.width));var vt=f+Z;if(ct)(vt=a.y-tt/2)+tt>n.height-G&&(vt=n.height-G-tt),f+Z>vt&&(vt=f+Z);null===(S=this.createFigure(\\"rect\\",{x:dt,y:vt,width:Q,height:tt},{style:t.PolygonType.StrokeFill,color:$,borderColor:q,borderSize:K,borderRadius:U}))||void 0===S||S.draw(e);var gt=dt+K+N+M,ft=vt+K+z;if(d&&D.forEach((function(t){var i,o,n=t.title;null===(i=C.createFigure(\\"text\\",{x:gt,y:ft+=A,text:n.text},{color:n.color,size:L,family:B,weight:R}))||void 0===i||i.draw(e);var r=t.value;null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-k-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:L,family:B,weight:R}))||void 0===o||o.draw(e),ft+=L+F})),p){var mt=dt+K+N+it;ut.forEach((function(t){t.forEach((function(t){var i,o,n=t.title,r=t.value;null===(i=C.createFigure(\\"text\\",{x:mt,y:ft+=nt,text:n.text},{color:n.color,size:at,family:lt,weight:st}))||void 0===i||i.draw(e),null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-ot-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:at,family:lt,weight:st}))||void 0===o||o.draw(e),ft+=at+rt}))}))}}}},i.prototype._getCandleTooltipData=function(e,i,o,a,s,l,u){var c,h,d,p,v,g=u.tooltip,f=g.text.color,m=e.current,y=null!==(h=null===(c=e.prev)||void 0===c?void 0:c.close)&&void 0!==h?h:m.close,_=m.close-y,x=i.price,S=i.volume,C={\\"{time}\\":s.formatDate(o,m.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Tooltip),\\"{open}\\":E(T(m.open,x),l),\\"{high}\\":E(T(m.high,x),l),\\"{low}\\":E(T(m.low,x),l),\\"{close}\\":E(T(m.close,x),l),\\"{volume}\\":E(s.formatBigNumber(T(null!==(d=m.volume)&&void 0!==d?d:g.defaultValue,S)),l),\\"{change}\\":0===y?g.defaultValue:\\"\\".concat(T(_/y*100),\\"%\\")};return(null!==(v=n(g.custom)?null===(p=g.custom)||void 0===p?void 0:p.call(g,e,u):g.custom)&&void 0!==v?v:[{title:\\"time\\",value:\\"{time}\\"},{title:\\"open\\",value:\\"{open}\\"},{title:\\"high\\",value:\\"{high}\\"},{title:\\"low\\",value:\\"{low}\\"},{title:\\"close\\",value:\\"{close}\\"},{title:\\"volume\\",value:\\"{volume}\\"}]).map((function(t){var e,i=t.title,o=t.value,n={text:\\"\\",color:\\"\\"};r(i)?n=k({},i):(n.text=i,n.color=f),n.text=function(t,e){var i,o;return null!==(o=null===(i=Be[e])||void 0===i?void 0:i[t])&&void 0!==o?o:t}(n.text,a);var s={text:g.defaultValue,color:\\"\\"};r(o)?s=k({},o):(s.text=o,s.color=f);var l=s.text.match(/{(\\\\S*)}/);if(null!==l&&l.length>1){var c=\\"{\\".concat(l[1],\\"}\\");s.text=s.text.replace(c,null!==(e=C[c])&&void 0!==e?e:g.defaultValue),\\"{change}\\"===c&&(s.color=0===_?u.priceMark.last.noChangeColor:_>0?u.priceMark.last.upColor:u.priceMark.last.downColor)}return{title:n,value:s}}))},i}(Me),Ve=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o._candleBarView=new Ie(o),o._candleAreaView=new Fe(o),o._candleHighLowPriceView=new Le(o),o._candleLastPriceLineView=new Re(o),o.addChild(o._candleBarView),o}return P(i,e),i.prototype.updateMainContent=function(e){this.getPane().getChart().getStyles().candle.type!==t.CandleType.Area?(this._candleBarView.draw(e),this._candleHighLowPriceView.draw(e)):this._candleAreaView.draw(e),this._candleLastPriceLineView.draw(e)},i.prototype.createTooltipView=function(){return new Oe(this)},i}(Ae),Ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getAxisComponent(),s=this.getAxisStyles(n.getChart().getStyles());if(s.show){s.axisLine.show&&(null===(e=this.createFigure(\\"line\\",this.createAxisLine(r,s),s.axisLine))||void 0===e||e.draw(t));var l=a.getTicks();if(s.tickLine.show)this.createTickLines(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",e,s.tickLine))||void 0===o||o.draw(t)}));if(s.tickText.show)this.createTickTexts(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"text\\",e,s.tickText))||void 0===o||o.draw(t)}))}},e}(Te),We=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.yAxis},e.prototype.createAxisLine=function(t,e){var i,o=this.getWidget().getPane().getAxisComponent(),n=e.axisLine.size;return{coordinates:[{x:i=o.isFromZero()?n/2:t.width-n,y:0},{x:i,y:t.height}]}},e.prototype.createTickLines=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=0,s=0;return o.isFromZero()?(a=0,n.show&&(a+=n.size),s=a+r.length):(a=e.width,n.show&&(a-=n.size),s=a-r.length),t.map((function(t){return{coordinates:[{x:a,y:t.coord},{x:s,y:t.coord}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=i.tickText,s=0;o.isFromZero()?(s=a.marginStart,n.show&&(s+=n.size),r.show&&(s+=r.length)):(s=e.width-a.marginEnd,n.show&&(s-=n.size),r.show&&(s-=r.length));var l=this.getWidget().getPane().getAxisComponent().isFromZero()?\\"left\\":\\"right\\";return t.map((function(t){return{x:s,y:t.coord,text:t.text,align:l,baseline:\\"middle\\"}}))},e}(Ne),ze=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getChart().getChartStore(),s=a.getStyles().candle.priceMark,l=s.last,u=l.text;if(s.show&&l.show&&u.show){var c=a.getPrecision(),h=n.getAxisComponent(),d=a.getDataList(),p=a.getVisibleDataList(),v=d[d.length-1];if(void 0!==v){var g=v.close,f=v.open,m=h.convertToNicePixel(g),y=void 0;y=g>f?l.upColor:f>g?l.downColor:l.noChangeColor;var _=void 0;if(h.getType()===t.YAxisType.Percentage){var x=p[0].data.close;_=\\"\\".concat(((g-x)/x*100).toFixed(2),\\"%\\")}else _=T(g,c.price);_=E(_,a.getThousandsSeparator());var S=void 0,C=void 0;h.isFromZero()?(S=0,C=\\"left\\"):(S=r.width,C=\\"right\\"),null===(i=this.createFigure(\\"text\\",{x:S,y:m,text:_,align:C,baseline:\\"middle\\"},k(k({},u),{backgroundColor:y})))||void 0===i||i.draw(e)}}},i}(Te),Ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getCustomApi(),l=r.getStyles().indicator,u=l.lastValueMark,c=u.text;if(u.show){var h=o.getAxisComponent(),d=r.getDataList(),p=d.length-1,v=r.getIndicatorStore().getInstances(o.getId()),g=r.getThousandsSeparator();v.forEach((function(i){var o=i.result[p];if(void 0!==o&&i.visible){var r=i.precision;ot(d,i,p,l,(function(l,u){var d,p=o[l.key];if(s(p)){var v=h.convertToNicePixel(p),f=T(p,r);i.shouldFormatBigNumber&&(f=a.formatBigNumber(f)),f=E(f,g);var m=void 0,y=void 0;h.isFromZero()?(m=0,y=\\"left\\"):(m=n.width,y=\\"right\\"),null===(d=e.createFigure(\\"text\\",{x:m,y:v,text:f,align:y,baseline:\\"middle\\"},k(k({},c),{backgroundColor:u.color})))||void 0===d||d.draw(t)}}))}}))}},e}(Te),Xe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!1},e.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){this.drawFigures(t,e,this.getDefaultFigures(e,i,o,n,r,a,s,u,c,d),l)},e.prototype.getDefaultFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h,d=[];if(t.needDefaultYAxisFigure&&t.id===(null===(c=u.instance)||void 0===c?void 0:c.id)&&u.paneId===this.getWidget().getPane().getId()){var p,v,g=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;null!==(h=null==l?void 0:l.isFromZero())&&void 0!==h&&h?(p=\\"left\\",v=0):(p=\\"right\\",v=i.width),e.forEach((function(e,i){var n=t.points[i];if(void 0!==n.value){g=Math.min(g,e.y),f=Math.max(f,e.y);var r=E(T(n.value,o.price),a);d.push({type:\\"text\\",attrs:{x:v,y:e.y,text:r,align:p,baseline:\\"middle\\"},ignoreEvent:!0})}})),e.length>1&&d.unshift({type:\\"rect\\",attrs:{x:0,y:g,width:i.width,height:f-g},ignoreEvent:!0})}return d},e.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createYAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},e}(ke),He=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=i.getPane().getChart().getChartStore(),a=r.getTooltipStore().getCrosshair(),s=r.getStyles().crosshair;if(void 0!==a.paneId&&this.compare(a,o.getId())&&s.show){var l=this.getDirectionStyles(s),u=l.text;if(l.show&&u.show){var c=o.getAxisComponent(),h=this.getText(a,r,c);t.font=H(u.size,u.weight,u.family),null===(e=this.createFigure(\\"text\\",this.getTextAttrs(h,t.measureText(h).width,a,n,c,u),u))||void 0===e||e.draw(t)}}},i.prototype.compare=function(t,e){return t.paneId===e},i.prototype.getDirectionStyles=function(t){return t.horizontal},i.prototype.getText=function(e,i,o){var n,r,a,s=o,l=o.convertFromPixel(e.y);if(s.getType()===t.YAxisType.Percentage){var u=null!==(r=null===(n=i.getVisibleDataList()[0])||void 0===n?void 0:n.data)&&void 0!==r?r:{};a=\\"\\".concat(((l-u.close)/u.close*100).toFixed(2),\\"%\\")}else{var c=i.getIndicatorStore().getInstances(e.paneId),h=0,d=!1;s.isInCandle()?h=i.getPrecision().price:c.forEach((function(t){h=Math.max(t.precision,h),d||(d=t.shouldFormatBigNumber)})),a=T(l,h),d&&(a=i.getCustomApi().formatBigNumber(a))}return E(a,i.getThousandsSeparator())},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s;return n.isFromZero()?(a=0,s=\\"left\\"):(a=o.width,s=\\"right\\"),{x:a,y:i.y,text:t,align:s,baseline:\\"middle\\"}},i}(Te),je=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._yAxisView=new We(o),o._candleLastPriceLabelView=new ze(o),o._indicatorLastValueView=new Ye(o),o._overlayYAxisView=new Xe(o),o._crosshairHorizontalLabelView=new He(o),o.getContainer().style.cursor=\\"ns-resize\\",o.addChild(o._overlayYAxisView),o}return P(e,t),e.prototype.getName=function(){return Xt},e.prototype.updateMain=function(t){this._yAxisView.draw(t),this.getPane().getAxisComponent().isInCandle()&&this._candleLastPriceLabelView.draw(t),this._indicatorLastValueView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayYAxisView.draw(t),this._crosshairHorizontalLabelView.draw(t)},e}(ne),Ze=function(){function t(t){this._extremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._prevExtremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._ticks=[],this._autoCalcTickFlag=!0,this._parent=t}return t.prototype.getParent=function(){return this._parent},t.prototype.buildTicks=function(t){return this._autoCalcTickFlag&&(this._extremum=this.calcExtremum()),!(this._prevExtremum.min===this._extremum.min&&this._prevExtremum.max===this._extremum.max&&!t)&&(this._prevExtremum=this._extremum,this._ticks=this.optimalTicks(this._calcTicks()),!0)},t.prototype.getTicks=function(){return this._ticks},t.prototype.getScrollZoomEnabled=function(){var t;return null===(t=this.getParent().getOptions().axisOptions.scrollZoomEnabled)||void 0===t||t},t.prototype.setExtremum=function(t){this._autoCalcTickFlag=!1,this._extremum=t},t.prototype.getExtremum=function(){return this._extremum},t.prototype.setAutoCalcTickFlag=function(t){this._autoCalcTickFlag=t},t.prototype.getAutoCalcTickFlag=function(){return this._autoCalcTickFlag},t.prototype._calcTicks=function(){var t=this._extremum,e=t.realMin,i=t.realMax,o=t.realRange,n=[];if(o>=0){var r=R(this._calcTickInterval(o),2),a=r[0],s=r[1],l=G(Math.ceil(e/a)*a,s),u=G(Math.floor(i/a)*a,s),c=0,h=l;if(0!==a)for(;u>=h;){var d=h.toFixed(s);n[c]={text:d,coord:0,value:d},++c,h+=a}}return n},t.prototype._calcTickInterval=function(t){var e,i,o,n,r=(i=Math.floor(U(e=t/8)),o=q(i),e=(1.5>(n=e/o)?1:2.5>n?2:3.5>n?3:4.5>n?4:5.5>n?5:6.5>n?6:8)*o,-20>i?e:+e.toFixed(0>i?-i:0)),a=function(t){var e=\\"\\"+t,i=e.indexOf(\\"e\\");if(i>0){var o=+e.slice(i+1);return 0>o?-o:0}var n=e.indexOf(\\".\\");return 0>n?0:e.length-1-n}(r);return[r,a]},t}(),Ge=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var e,i,o,n,r,a=this.getParent(),l=a.getChart(),u=l.getChartStore(),c=Number.MAX_SAFE_INTEGER,h=Number.MIN_SAFE_INTEGER,d=[],p=!1,v=Number.MAX_SAFE_INTEGER,g=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER;u.getIndicatorStore().getInstances(a.getId()).forEach((function(t){var e,i,o;p||(p=null!==(e=t.shouldOhlc)&&void 0!==e&&e),f=Math.min(f,t.precision),null!==t.minValue&&(v=Math.min(v,t.minValue)),null!==t.maxValue&&(g=Math.max(g,t.maxValue)),d.push({figures:null!==(i=t.figures)&&void 0!==i?i:[],result:null!==(o=t.result)&&void 0!==o?o:[]})}));var m=4,y=this.isInCandle();if(y){var _=u.getPrecision().price;m=f!==Number.MAX_SAFE_INTEGER?Math.min(f,_):_}else f!==Number.MAX_SAFE_INTEGER&&(m=f);var x=u.getVisibleDataList(),S=l.getStyles().candle,C=S.type===t.CandleType.Area,b=S.area.value,T=y&&!C||!y&&p;x.forEach((function(t){var e=t.dataIndex,i=t.data;if(T&&(c=Math.min(c,i.low),h=Math.max(h,i.high)),y&&C){var o=i[b];c=Math.min(c,o),h=Math.max(h,o)}d.forEach((function(t){var i,o=null!==(i=t.result[e])&&void 0!==i?i:{};t.figures.forEach((function(t){var e=o[t.key];s(e)&&(c=Math.min(c,e),h=Math.max(h,e))}))}))})),c!==Number.MAX_SAFE_INTEGER&&h!==Number.MIN_SAFE_INTEGER?(c=Math.min(v,c),h=Math.max(g,h)):(c=0,h=10);var w,E=this.getType();switch(E){case t.YAxisType.Percentage:var I=null===(e=x[0])||void 0===e?void 0:e.data;void 0!==(null==I?void 0:I.close)&&(c=(c-I.close)/I.close*100,h=(h-I.close)/I.close*100),w=.01;break;case t.YAxisType.Log:c=U(c),h=U(h),w=.05*q(-m);break;default:w=q(-m)}if(c===h||w>Math.abs(c-h)){var D=v===c,P=g===h;c=D?c:P?c-8*w:c-4*w,h=P?h:D?h+8*w:h+4*w}var M=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,k=a.getOptions().gap,A=null!==(n=null==k?void 0:k.top)&&void 0!==n?n:.2;1>A||(A/=M);var F=null!==(r=null==k?void 0:k.bottom)&&void 0!==r?r:.1;1>F||(F/=M);var L,R,B,O=Math.abs(h-c);return O=Math.abs((h+=O*A)-(c-=O*F)),E===t.YAxisType.Log?(L=q(c),R=q(h),B=Math.abs(R-L)):(L=c,R=h,B=O),{min:c,max:h,range:O,realMin:L,realMax:R,realRange:B}},i.prototype._innerConvertToPixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.getExtremum(),r=(t-n.min)/n.range;return this.isReverse()?Math.round(r*o):Math.round((1-r)*o)},i.prototype.isInCandle=function(){return\\"candle\\"===this.getParent().getName()},i.prototype.getType=function(){return this.isInCandle()?this.getParent().getChart().getStyles().yAxis.type:t.YAxisType.Normal},i.prototype.getPosition=function(){return this.getParent().getChart().getStyles().yAxis.position},i.prototype.isReverse=function(){return!!this.isInCandle()&&this.getParent().getChart().getStyles().yAxis.reverse},i.prototype.isFromZero=function(){var e=this.getParent().getChart().getStyles().yAxis,i=e.inside;return e.position===t.YAxisPosition.Left&&i||e.position===t.YAxisPosition.Right&&!i},i.prototype.optimalTicks=function(e){var i,o,n=this,r=this.getParent(),a=null!==(o=null===(i=r.getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,s=r.getChart().getChartStore(),l=s.getCustomApi(),u=[],c=this.getType(),h=s.getIndicatorStore().getInstances(r.getId()),d=s.getThousandsSeparator(),p=0,v=!1;this.isInCandle()?p=s.getPrecision().price:h.forEach((function(t){p=Math.max(p,t.precision),v||(v=t.shouldFormatBigNumber)}));var g,f=s.getStyles().xAxis.tickText.size;return e.forEach((function(e){var i,o=e.value,r=n._innerConvertToPixel(+o);switch(c){case t.YAxisType.Percentage:i=\\"\\".concat(T(o,2),\\"%\\");break;case t.YAxisType.Log:r=n._innerConvertToPixel(U(+o)),i=T(o,p);break;default:i=T(o,p),v&&(i=l.formatBigNumber(o))}i=E(i,d),r>f&&a-f>r&&(void 0!==g&&Math.abs(g-r)>2*f||void 0===g)&&(u.push({text:i,coord:r,value:o}),g=r)})),u},i.prototype.getAutoSize=function(){var e=this.getParent(),i=e.getChart(),o=i.getStyles(),n=o.yAxis,r=n.size;if(\\"auto\\"!==r)return r;var a=i.getChartStore(),s=a.getCustomApi(),l=0;if(n.show&&(n.axisLine.show&&(l+=n.axisLine.size),n.tickLine.show&&(l+=n.tickLine.length),n.tickText.show)){var u=0;this.getTicks().forEach((function(t){u=Math.max(u,j(t.text,n.tickText.size,n.tickText.weight,n.tickText.family))})),l+=n.tickText.marginStart+n.tickText.marginEnd+u}var c=o.crosshair,h=0;if(c.show&&c.horizontal.show&&c.horizontal.text.show){var d=a.getIndicatorStore().getInstances(e.getId()),p=0,v=!1;d.forEach((function(t){p=Math.max(t.precision,p),v||(v=t.shouldFormatBigNumber)}));var g=2;if(this.getType()!==t.YAxisType.Percentage)if(this.isInCandle()){var f=a.getPrecision().price,m=o.indicator.lastValueMark;g=m.show&&m.text.show?Math.max(p,f):f}else g=p;var y=T(this.getExtremum().max,g);v&&(y=s.formatBigNumber(y)),h+=c.horizontal.text.paddingLeft+c.horizontal.text.paddingRight+2*c.horizontal.text.borderSize+j(y,c.horizontal.text.size,c.horizontal.text.weight,c.horizontal.text.family)}return Math.max(l,h)},i.prototype.convertFromPixel=function(e){var i,o,n,r=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,a=this.getExtremum(),s=a.min,l=a.range,u=(this.isReverse()?e/r:1-e/r)*l+s;switch(this.getType()){case t.YAxisType.Percentage:var c=null===(n=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===n?void 0:n.data;return void 0!==(null==c?void 0:c.close)?c.close*u/100+c.close:0;case t.YAxisType.Log:return q(u);default:return u}},i.prototype.convertToRealValue=function(e){var i=e;return this.getType()===t.YAxisType.Log&&(i=q(e)),i},i.prototype.convertToPixel=function(e){var i,o=e;switch(this.getType()){case t.YAxisType.Percentage:var n=null===(i=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===i?void 0:i.data;void 0!==(null==n?void 0:n.close)&&(o=(e-n.close)/n.close*100);break;case t.YAxisType.Log:o=U(e);break;default:o=e}return this._innerConvertToPixel(o)},i.prototype.convertToNicePixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.convertToPixel(t);return Math.round(Math.max(.05*o,Math.min(n,.98*o)))},i}(Ze),Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"indicator\\"},e.prototype.createAxisComponent=function(){return new Ge(this)},e.prototype.createMainWidget=function(t){return new Ae(t,this)},e.prototype.createSeparatorWidget=function(t){return new Zt(t,this)},e.prototype.createYAxisWidget=function(t){return new je(t,this)},e}(Ut),Ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"candle\\"},e.prototype.createMainWidget=function(t){return new Ve(t,this)},e.prototype.createSeparatorWidget=function(){return null},e}(Ke),qe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.xAxis},e.prototype.createAxisLine=function(t,e){var i=e.axisLine.size/2;return{coordinates:[{x:0,y:i},{x:t.width,y:i}]}},e.prototype.createTickLines=function(t,e,i){var o=i.tickLine,n=i.axisLine.size;return t.map((function(t){return{coordinates:[{x:t.coord,y:0},{x:t.coord,y:n+o.length}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=i.tickText,n=i.axisLine.size,r=i.tickLine.length;return t.map((function(t){return{x:t.coord,y:n+r+o.marginStart,text:t.text,align:\\"center\\",baseline:\\"top\\"}}))},e}(Ne),$e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.coordinateToPointValueFlag=function(){return!1},i.prototype.getCompleteOverlays=function(t){return t.getInstances()},i.prototype.getProgressOverlay=function(t){return t.instance},i.prototype.getDefaultFigures=function(e,i,o,n,r,a,s,l,u,c){var h,d=[];if(e.needDefaultXAxisFigure&&e.id===(null===(h=c.instance)||void 0===h?void 0:h.id)){var p=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER;i.forEach((function(i,o){p=Math.min(p,i.x),v=Math.max(v,i.x);var n=e.points[o];if(void 0!==n.timestamp){var s=a.formatDate(r,n.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair);d.push({type:\\"text\\",attrs:{x:i.x,y:0,text:s,align:\\"center\\"},ignoreEvent:!0})}})),i.length>1&&d.unshift({type:\\"rect\\",attrs:{x:p,y:0,width:v-p,height:o.height},ignoreEvent:!0})}return d},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createXAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i}(Xe),Je=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.compare=function(t){return void 0!==t.kLineData&&t.dataIndex===t.realDataIndex},i.prototype.getDirectionStyles=function(t){return t.vertical},i.prototype.getText=function(e,i){var o,n=null===(o=e.kLineData)||void 0===o?void 0:o.timestamp;return i.getCustomApi().formatDate(i.getTimeScaleStore().getDateTimeFormat(),n,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair)},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s=i.realX,l=\\"center\\";return 0>s-e/2-r.paddingLeft?(a=0,l=\\"left\\"):s+e/2+r.paddingRight>o.width?(a=o.width,l=\\"right\\"):a=s,{x:a,y:0,text:t,align:l,baseline:\\"top\\"}},i}(He),Qe=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._xAxisView=new qe(o),o._overlayXAxisView=new $e(o),o._crosshairVerticalLabelView=new Je(o),o.getContainer().style.cursor=\\"ew-resize\\",o.addChild(o._overlayXAxisView),o}return P(e,t),e.prototype.getName=function(){return Yt},e.prototype.updateMain=function(t){this._xAxisView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayXAxisView.draw(t),this._crosshairVerticalLabelView.draw(t)},e}(ne),ti=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var t=this.getParent().getChart().getChartStore().getTimeScaleStore().getVisibleRange(),e=t.from,i=t.to,o=i-1,n=i-e;return{min:e,max:o,range:n,realMin:e,realMax:o,realRange:n}},i.prototype.optimalTicks=function(e){var i,o,n=this.getParent().getChart(),r=n.getChartStore(),a=r.getCustomApi().formatDate,s=[],l=e.length,u=r.getDataList();if(l>0){var c=r.getTimeScaleStore().getDateTimeFormat(),h=n.getStyles().xAxis.tickText,d=j(\\"00-00 00:00\\",h.size,h.weight,h.family),p=this.convertToPixel(parseInt(e[0].value,10)),v=1;if(l>1){var g=this.convertToPixel(parseInt(e[1].value,10)),f=Math.abs(g-p);d>f&&(v=Math.ceil(d/f))}for(var m=0;l>m;m+=v){var y=parseInt(e[m].value,10),_=u[y].timestamp,x=a(c,_,\\"HH:mm\\",t.FormatDateType.XAxis);if(0!==m)x=null!==(i=this._optimalTickLabel(a,c,_,u[parseInt(e[m-v].value,10)].timestamp))&&void 0!==i?i:x;var S=this.convertToPixel(y);s.push({text:x,coord:S,value:_})}if(1===s.length)s[0].text=a(c,s[0].value,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.XAxis);else{var C=s[0].value,b=s[1].value;if(void 0!==s[2]){var T=s[2].text;/^[0-9]{2}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"MM-DD\\",t.FormatDateType.XAxis):/^[0-9]{4}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"YYYY-MM\\",t.FormatDateType.XAxis):/^[0-9]{4}$/.test(T)&&(s[0].text=a(c,C,\\"YYYY\\",t.FormatDateType.XAxis))}else s[0].text=null!==(o=this._optimalTickLabel(a,c,C,b))&&void 0!==o?o:s[0].text}}return s},i.prototype._optimalTickLabel=function(e,i,o,n){var r=e(i,o,\\"YYYY\\",t.FormatDateType.XAxis),a=e(i,o,\\"YYYY-MM\\",t.FormatDateType.XAxis),s=e(i,o,\\"MM-DD\\",t.FormatDateType.XAxis);return r!==e(i,n,\\"YYYY\\",t.FormatDateType.XAxis)?r:a!==e(i,n,\\"YYYY-MM\\",t.FormatDateType.XAxis)?a:s!==e(i,n,\\"MM-DD\\",t.FormatDateType.XAxis)?s:null},i.prototype.getAutoSize=function(){var t=this.getParent().getChart().getStyles(),e=t.xAxis,i=e.size;if(\\"auto\\"!==i)return i;var o=t.crosshair,n=0;e.show&&(e.axisLine.show&&(n+=e.axisLine.size),e.tickLine.show&&(n+=e.tickLine.length),e.tickText.show&&(n+=e.tickText.marginStart+e.tickText.marginEnd+e.tickText.size));var r=0;return o.show&&o.vertical.show&&o.vertical.text.show&&(r+=o.vertical.text.paddingTop+o.vertical.text.paddingBottom+2*o.vertical.text.borderSize+o.vertical.text.size),Math.max(n,r)},i.prototype.convertTimestampFromPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.coordinateToDataIndex(t);return e.dataIndexToTimestamp(i)},i.prototype.convertTimestampToPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.timestampToDataIndex(t);return e.dataIndexToCoordinate(i)},i.prototype.convertFromPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().coordinateToDataIndex(t)},i.prototype.convertToPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().dataIndexToCoordinate(t)},i}(Ze),ei=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"xAxis\\"},e.prototype.createAxisComponent=function(){return new ti(this)},e.prototype.createMainWidget=function(t){return new Qe(t,this)},e}(Ut);function ii(){var t;return\\"undefined\\"!=typeof window&&(null!==(t=window.navigator.userAgent.toLowerCase().indexOf(\\"firefox\\"))&&void 0!==t?t:-1)>-1}function oi(){return\\"undefined\\"!=typeof window&&/iPhone|iPad|iPod/.test(window.navigator.platform)}var ni,ri=function(){function t(t,e,i){var o=this;this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0},this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0},this._longTapTimeoutId=null,this._longTapActive=!1,this._mouseMoveStartCoordinate=null,this._touchMoveStartCoordinate=null,this._touchMoveExceededManhattanDistance=!1,this._cancelClick=!1,this._cancelTap=!1,this._unsubscribeOutsideMouseEvents=null,this._unsubscribeOutsideTouchEvents=null,this._unsubscribeMobileSafariEvents=null,this._unsubscribeMousemove=null,this._unsubscribeMouseWheel=null,this._unsubscribeContextMenu=null,this._unsubscribeRootMouseEvents=null,this._unsubscribeRootTouchEvents=null,this._startPinchMiddleCoordinate=null,this._startPinchDistance=0,this._pinchPrevented=!1,this._preventTouchDragProcess=!1,this._mousePressed=!1,this._lastTouchEventTimeStamp=0,this._activeTouchId=null,this._acceptMouseLeave=!oi(),this._onFirefoxOutsideMouseUp=function(t){o._mouseUpHandler(t)},this._onMobileSafariDoubleClick=function(t){o._firesTouchEvents(t)?(++o._tapCount,null!==o._tapTimeoutId&&o._tapCount>1&&(30>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._tapCoordinate).manhattanDistance&&!o._cancelTap&&o._processEvent(o._makeCompatEvent(t),o._handler.doubleTapEvent),o._resetTapTimeout())):(++o._clickCount,null!==o._clickTimeoutId&&o._clickCount>1&&(5>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._clickCoordinate).manhattanDistance&&!o._cancelClick&&o._processEvent(o._makeCompatEvent(t),o._handler.mouseDoubleClickEvent),o._resetClickTimeout()))},this._target=t,this._handler=e,this._options=i,this._init()}return t.prototype.destroy=function(){null!==this._unsubscribeOutsideMouseEvents&&(this._unsubscribeOutsideMouseEvents(),this._unsubscribeOutsideMouseEvents=null),null!==this._unsubscribeOutsideTouchEvents&&(this._unsubscribeOutsideTouchEvents(),this._unsubscribeOutsideTouchEvents=null),null!==this._unsubscribeMousemove&&(this._unsubscribeMousemove(),this._unsubscribeMousemove=null),null!==this._unsubscribeMouseWheel&&(this._unsubscribeMouseWheel(),this._unsubscribeMouseWheel=null),null!==this._unsubscribeContextMenu&&(this._unsubscribeContextMenu(),this._unsubscribeContextMenu=null),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null),null!==this._unsubscribeMobileSafariEvents&&(this._unsubscribeMobileSafariEvents(),this._unsubscribeMobileSafariEvents=null),this._clearLongTapTimeout(),this._resetClickTimeout()},t.prototype._mouseEnterHandler=function(t){var e,i,o,n=this;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this);var r=this._mouseMoveHandler.bind(this);this._unsubscribeMousemove=function(){n._target.removeEventListener(\\"mousemove\\",r)},this._target.addEventListener(\\"mousemove\\",r);var a=this._mouseWheelHandler.bind(this);this._unsubscribeMouseWheel=function(){n._target.removeEventListener(\\"wheel\\",a)},this._target.addEventListener(\\"wheel\\",a,{passive:!1});var s=this._contextMenuHandler.bind(this);this._unsubscribeContextMenu=function(){n._target.removeEventListener(\\"contextmenu\\",s)},this._target.addEventListener(\\"contextmenu\\",s,{passive:!1}),this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseEnterEvent),this._acceptMouseLeave=!0)},t.prototype._resetClickTimeout=function(){null!==this._clickTimeoutId&&clearTimeout(this._clickTimeoutId),this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0}},t.prototype._resetTapTimeout=function(){null!==this._tapTimeoutId&&clearTimeout(this._tapTimeoutId),this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0}},t.prototype._mouseMoveHandler=function(t){this._mousePressed||null!==this._touchMoveStartCoordinate||this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseMoveEvent),this._acceptMouseLeave=!0)},t.prototype._mouseWheelHandler=function(t){if(Math.abs(t.deltaX)>Math.abs(t.deltaY)){if(void 0===this._handler.mouseWheelHortEvent)return;if(this._preventDefault(t),0===Math.abs(t.deltaX))return;this._handler.mouseWheelHortEvent(this._makeCompatEvent(t),-t.deltaX)}else{if(void 0===this._handler.mouseWheelVertEvent)return;var e=-t.deltaY/100;if(0===e)return;switch(this._preventDefault(t),t.deltaMode){case t.DOM_DELTA_PAGE:e*=120;break;case t.DOM_DELTA_LINE:e*=32}if(0!==e){var i=Math.sign(e)*Math.min(1,Math.abs(e));this._handler.mouseWheelVertEvent(this._makeCompatEvent(t),i)}}},t.prototype._contextMenuHandler=function(t){this._preventDefault(t)},t.prototype._touchMoveHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null!==e&&(this._lastTouchEventTimeStamp=this._eventTimeStamp(t),null===this._startPinchMiddleCoordinate&&!this._preventTouchDragProcess)){this._pinchPrevented=!0;var i=this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._touchMoveStartCoordinate),o=i.yOffset;if(this._touchMoveExceededManhattanDistance||i.manhattanDistance>=5){if(!this._touchMoveExceededManhattanDistance){var n=.5*i.xOffset,r=o>=n&&!this._options.treatVertDragAsPageScroll(),a=n>o&&!this._options.treatHorzDragAsPageScroll();r||a||(this._preventTouchDragProcess=!0),this._touchMoveExceededManhattanDistance=!0,this._cancelTap=!0,this._clearLongTapTimeout(),this._resetTapTimeout()}this._preventTouchDragProcess||this._processEvent(this._makeCompatEvent(t,e),this._handler.touchMoveEvent)}}},t.prototype._mouseMoveWithDownHandler=function(t){0===t.button&&(5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._mouseMoveStartCoordinate).manhattanDistance||(this._cancelClick=!0,this._resetClickTimeout()),this._cancelClick&&this._processEvent(this._makeCompatEvent(t),this._handler.pressedMouseMoveEvent))},t.prototype._mouseTouchMoveWithDownInfo=function(t,e){var i=Math.abs(e.x-t.x),o=Math.abs(e.y-t.y);return{xOffset:i,yOffset:o,manhattanDistance:i+o}},t.prototype._touchEndHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null===e&&0===t.touches.length&&(e=t.changedTouches[0]),null!==e){this._activeTouchId=null,this._lastTouchEventTimeStamp=this._eventTimeStamp(t),this._clearLongTapTimeout(),this._touchMoveStartCoordinate=null,null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var i=this._makeCompatEvent(t,e);if(this._processEvent(i,this._handler.touchEndEvent),++this._tapCount,null!==this._tapTimeoutId&&this._tapCount>1)30>this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._tapCoordinate).manhattanDistance&&!this._cancelTap&&this._processEvent(i,this._handler.doubleTapEvent),this._resetTapTimeout();else this._cancelTap||(this._processEvent(i,this._handler.tapEvent),void 0!==this._handler.tapEvent&&this._preventDefault(t));0===this._tapCount&&this._preventDefault(t),0===t.touches.length&&this._longTapActive&&(this._longTapActive=!1,this._preventDefault(t))}},t.prototype._mouseUpHandler=function(t){if(0===t.button){var e=this._makeCompatEvent(t);if(this._mouseMoveStartCoordinate=null,this._mousePressed=!1,null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),ii())this._target.ownerDocument.documentElement.removeEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp);if(!this._firesTouchEvents(t))if(this._processEvent(e,this._handler.mouseUpEvent),++this._clickCount,null!==this._clickTimeoutId&&this._clickCount>1)5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._clickCoordinate).manhattanDistance&&!this._cancelClick&&this._processEvent(e,this._handler.mouseDoubleClickEvent),this._resetClickTimeout();else this._cancelClick||this._processEvent(e,this._handler.mouseClickEvent)}},t.prototype._clearLongTapTimeout=function(){null!==this._longTapTimeoutId&&(clearTimeout(this._longTapTimeoutId),this._longTapTimeoutId=null)},t.prototype._touchStartHandler=function(t){if(null===this._activeTouchId){var e=t.changedTouches[0];this._activeTouchId=e.identifier,this._lastTouchEventTimeStamp=this._eventTimeStamp(t);var i=this._target.ownerDocument.documentElement;this._cancelTap=!1,this._touchMoveExceededManhattanDistance=!1,this._preventTouchDragProcess=!1,this._touchMoveStartCoordinate=this._getCoordinate(e),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var o=this._touchMoveHandler.bind(this),n=this._touchEndHandler.bind(this);this._unsubscribeRootTouchEvents=function(){i.removeEventListener(\\"touchmove\\",o),i.removeEventListener(\\"touchend\\",n)},i.addEventListener(\\"touchmove\\",o,{passive:!1}),i.addEventListener(\\"touchend\\",n,{passive:!1}),this._clearLongTapTimeout(),this._longTapTimeoutId=setTimeout(this._longTapHandler.bind(this,t),500),this._processEvent(this._makeCompatEvent(t,e),this._handler.touchStartEvent),null===this._tapTimeoutId&&(this._tapCount=0,this._tapTimeoutId=setTimeout(this._resetTapTimeout.bind(this),500),this._tapCoordinate=this._getCoordinate(e))}},t.prototype._mouseDownHandler=function(t){if(2===t.button)return this._preventDefault(t),void this._processEvent(this._makeCompatEvent(t),this._handler.mouseRightClickEvent);if(0===t.button){var e=this._target.ownerDocument.documentElement;ii()&&e.addEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp),this._cancelClick=!1,this._mouseMoveStartCoordinate=this._getCoordinate(t),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null);var i=this._mouseMoveWithDownHandler.bind(this),o=this._mouseUpHandler.bind(this);this._unsubscribeRootMouseEvents=function(){e.removeEventListener(\\"mousemove\\",i),e.removeEventListener(\\"mouseup\\",o)},e.addEventListener(\\"mousemove\\",i),e.addEventListener(\\"mouseup\\",o),this._mousePressed=!0,this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseDownEvent),null===this._clickTimeoutId&&(this._clickCount=0,this._clickTimeoutId=setTimeout(this._resetClickTimeout.bind(this),500),this._clickCoordinate=this._getCoordinate(t)))}},t.prototype._init=function(){var t=this;this._target.addEventListener(\\"mouseenter\\",this._mouseEnterHandler.bind(this)),this._target.addEventListener(\\"touchcancel\\",this._clearLongTapTimeout.bind(this));var e=this._target.ownerDocument,i=function(e){null!=t._handler.mouseDownOutsideEvent&&(e.composed&&t._target.contains(e.composedPath()[0])||null!==e.target&&t._target.contains(e.target)||t._handler.mouseDownOutsideEvent({x:0,y:0,pageX:0,pageY:0}))};this._unsubscribeOutsideTouchEvents=function(){e.removeEventListener(\\"touchstart\\",i)},this._unsubscribeOutsideMouseEvents=function(){e.removeEventListener(\\"mousedown\\",i)},e.addEventListener(\\"mousedown\\",i),e.addEventListener(\\"touchstart\\",i,{passive:!0}),oi()&&(this._unsubscribeMobileSafariEvents=function(){t._target.removeEventListener(\\"dblclick\\",t._onMobileSafariDoubleClick)},this._target.addEventListener(\\"dblclick\\",this._onMobileSafariDoubleClick)),this._target.addEventListener(\\"mouseleave\\",this._mouseLeaveHandler.bind(this)),this._target.addEventListener(\\"touchstart\\",this._touchStartHandler.bind(this),{passive:!0}),this._target.addEventListener(\\"mousedown\\",(function(t){if(1===t.button)return t.preventDefault(),!1})),this._target.addEventListener(\\"mousedown\\",this._mouseDownHandler.bind(this)),this._initPinch(),this._target.addEventListener(\\"touchmove\\",(function(){}),{passive:!1})},t.prototype._initPinch=function(){var t=this;void 0===this._handler.pinchStartEvent&&void 0===this._handler.pinchEvent&&void 0===this._handler.pinchEndEvent||(this._target.addEventListener(\\"touchstart\\",(function(e){return t._checkPinchState(e.touches)}),{passive:!0}),this._target.addEventListener(\\"touchmove\\",(function(e){if(2===e.touches.length&&null!==t._startPinchMiddleCoordinate&&void 0!==t._handler.pinchEvent){var i=t._getTouchDistance(e.touches[0],e.touches[1])/t._startPinchDistance;t._handler.pinchEvent(k(k({},t._startPinchMiddleCoordinate),{pageX:0,pageY:0}),i),t._preventDefault(e)}}),{passive:!1}),this._target.addEventListener(\\"touchend\\",(function(e){t._checkPinchState(e.touches)})))},t.prototype._checkPinchState=function(t){1===t.length&&(this._pinchPrevented=!1),2!==t.length||this._pinchPrevented||this._longTapActive?this._stopPinch():this._startPinch(t)},t.prototype._startPinch=function(t){var e,i=null!==(e=this._target.getBoundingClientRect())&&void 0!==e?e:{left:0,top:0};this._startPinchMiddleCoordinate={x:(t[0].clientX-i.left+(t[1].clientX-i.left))/2,y:(t[0].clientY-i.top+(t[1].clientY-i.top))/2},this._startPinchDistance=this._getTouchDistance(t[0],t[1]),void 0!==this._handler.pinchStartEvent&&this._handler.pinchStartEvent({x:0,y:0,pageX:0,pageY:0}),this._clearLongTapTimeout()},t.prototype._stopPinch=function(){null!==this._startPinchMiddleCoordinate&&(this._startPinchMiddleCoordinate=null,void 0!==this._handler.pinchEndEvent&&this._handler.pinchEndEvent({x:0,y:0,pageX:0,pageY:0}))},t.prototype._mouseLeaveHandler=function(t){var e,i,o;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this),this._firesTouchEvents(t)||this._acceptMouseLeave&&(this._processEvent(this._makeCompatEvent(t),this._handler.mouseLeaveEvent),this._acceptMouseLeave=!oi())},t.prototype._longTapHandler=function(t){var e=this._touchWithId(t.touches,this._activeTouchId);null!==e&&(this._processEvent(this._makeCompatEvent(t,e),this._handler.longTapEvent),this._cancelTap=!0,this._longTapActive=!0)},t.prototype._firesTouchEvents=function(t){var e;return void 0!==(null===(e=t.sourceCapabilities)||void 0===e?void 0:e.firesTouchEvents)?t.sourceCapabilities.firesTouchEvents:this._eventTimeStamp(t)i;++i)if(t[i].identifier===e)return t[i];return null},t}(),ai=function(){function t(t,e){var i=this;this._flingStartTime=(new Date).getTime(),this._flingScrollRequestId=null,this._startScrollCoordinate=null,this._touchCoordinate=null,this._touchCancelCrosshair=!1,this._touchZoomed=!1,this._pinchScale=1,this._mouseDownWidget=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,this._mouseMoveTriggerWidgetInfo={pane:null,widget:null},this._boundKeyBoardDownEvent=function(t){if(t.shiftKey)switch(t.code){case\\"Equal\\":i._chart.getChartStore().getTimeScaleStore().zoom(.5);break;case\\"Minus\\":i._chart.getChartStore().getTimeScaleStore().zoom(-.5);break;case\\"ArrowLeft\\":(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(-3*e.getBarSpace().bar);break;case\\"ArrowRight\\":var e;(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(3*e.getBarSpace().bar)}},this._container=t,this._chart=e,this._event=new ri(t,this,{treatVertDragAsPageScroll:function(){return!1},treatHorzDragAsPageScroll:function(){return!1}}),t.addEventListener(\\"keydown\\",this._boundKeyBoardDownEvent)}return t.prototype.pinchStartEvent=function(){return this._touchZoomed=!0,this._pinchScale=1,!0},t.prototype.pinchEvent=function(t,e){var i=this._findWidgetByEvent(t),o=i.pane,n=i.widget;if((null==o?void 0:o.getId())!==Kt.XAXIS&&(null==n?void 0:n.getName())===zt){var r=this._makeWidgetEvent(t,n),a=5*(e-this._pinchScale);return this._pinchScale=e,this._chart.getChartStore().getTimeScaleStore().zoom(a,{x:r.x,y:r.y}),!0}return!1},t.prototype.mouseWheelHortEvent=function(t,e){var i=this._chart.getChartStore().getTimeScaleStore();return i.startScroll(),i.scroll(e),!0},t.prototype.mouseWheelVertEvent=function(t,e){var i,o,n=this._findWidgetByEvent(t).widget,r=null!==(i=t.isTouch)&&void 0!==i&&i,a=this._makeWidgetEvent(t,n),s=null,l=null==n?void 0:n.getName();if(r)if(l===zt||l===Yt)s={x:a.x,y:a.y};else{var u=null===(o=this._chart.getPaneById(Kt.CANDLE))||void 0===o?void 0:o.getBounding();s={x:u.width/2,y:u.height/2}}else l===zt&&(s={x:a.x,y:a.y});return null!==s&&(this._chart.getChartStore().getTimeScaleStore().zoom(e,{x:a.x,y:a.y}),!0)},t.prototype.mouseDownEvent=function(t){var e,i,o=this._findWidgetByEvent(t),n=o.pane,r=o.widget;if(this._mouseDownWidget=r,null!==r){var a=this._makeWidgetEvent(t,r);switch(r.getName()){case Ht:return r.dispatchEvent(\\"mouseDownEvent\\",a);case zt:var s=null!==(e=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==e?e:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._startScrollCoordinate={x:a.x,y:a.y},this._chart.getChartStore().getTimeScaleStore().startScroll(),r.dispatchEvent(\\"mouseDownEvent\\",a);case Yt:return(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1),this._xAxisStartScaleCoordinate={x:a.x,y:a.y},this._xAxisStartScaleDistance=a.pageX,l;case Xt:var l;(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1);s=null!==(i=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==i?i:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._yAxisStartScaleDistance=a.pageY,l}}return!1},t.prototype.mouseMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget,s=this._makeWidgetEvent(t,a);if((null===(e=this._mouseMoveTriggerWidgetInfo.pane)||void 0===e?void 0:e.getId())===(null==r?void 0:r.getId())&&(null===(i=this._mouseMoveTriggerWidgetInfo.widget)||void 0===i?void 0:i.getName())===(null==a?void 0:a.getName())||(null==a||a.dispatchEvent(\\"mouseEnterEvent\\",s),null===(o=this._mouseMoveTriggerWidgetInfo.widget)||void 0===o||o.dispatchEvent(\\"mouseLeaveEvent\\",s),this._mouseMoveTriggerWidgetInfo={pane:r,widget:a}),null!==a)switch(a.getName()){case zt:var l=a.dispatchEvent(\\"mouseMoveEvent\\",s),u=this._chart.getChartStore(),c={x:s.x,y:s.y,paneId:null==r?void 0:r.getId()};return l&&null!==u.getTooltipStore().getActiveIcon()&&(c=void 0,null!==a&&(a.getContainer().style.cursor=\\"pointer\\")),this._chart.getChartStore().getTooltipStore().setCrosshair(c),l;case Ht:case Yt:case Xt:l=a.dispatchEvent(\\"mouseMoveEvent\\",s);return this._chart.getChartStore().getTooltipStore().setCrosshair(),l}return!1},t.prototype.pressedMouseMoveEvent=function(t){var e,i,o,n,r;if(null!==this._mouseDownWidget&&this._mouseDownWidget.getName()===Ht)return this._mouseDownWidget.dispatchEvent(\\"pressedMouseMoveEvent\\",t);var a=this._findWidgetByEvent(t),s=a.pane,l=a.widget;if(null!==l&&(null===(e=this._mouseDownWidget)||void 0===e?void 0:e.getPane().getId())===(null==s?void 0:s.getId())&&(null===(i=this._mouseDownWidget)||void 0===i?void 0:i.getName())===l.getName()){var u=this._makeWidgetEvent(t,l);switch(l.getName()){case zt:var c=l.getBounding();if(!(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))&&null!==this._startScrollCoordinate){var h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&!h.getAutoCalcTickFlag()&&h.getScrollZoomEnabled()){var d=this._prevYAxisExtremum,p=d.min,v=d.max+(b=(S=d.range)*(C=(null!==(o=null==h?void 0:h.isReverse())&&void 0!==o&&o?this._startScrollCoordinate.y-u.y:u.y-this._startScrollCoordinate.y)/c.height)),g=h.convertToRealValue(E=p+b),f=h.convertToRealValue(v);h.setExtremum({min:E,max:v,range:v-E,realMin:g,realMax:f,realRange:f-g})}var m=u.x-this._startScrollCoordinate.x;this._chart.getChartStore().getTimeScaleStore().scroll(m)}return this._chart.getChartStore().getTooltipStore().setCrosshair({x:u.x,y:u.y,paneId:null==s?void 0:s.getId()}),x;case Yt:if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{var y=null==s?void 0:s.getAxisComponent();if(null===(n=null==y?void 0:y.getScrollZoomEnabled())||void 0===n||n){var _=10*((C=this._xAxisStartScaleDistance/u.pageX)-this._xAxisScale);this._xAxisScale=C,this._chart.getChartStore().getTimeScaleStore().zoom(_,null!==(r=this._xAxisStartScaleCoordinate)&&void 0!==r?r:void 0)}}return x;case Xt:var x;if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&h.getScrollZoomEnabled()){var S,C,b,T=this._prevYAxisExtremum,w=(S=T.range)*(C=u.pageY/this._yAxisStartScaleDistance),E=(p=T.min)-(b=(w-S)/2),I=(v=T.max+b,null==s?void 0:s.getAxisComponent());g=I.convertToRealValue(E),f=I.convertToRealValue(v);I.setExtremum({min:E,max:v,range:w,realMin:g,realMax:f,realRange:f-g}),this._chart.adjustPaneViewport(!1,!0,!0,!0)}}return x}}return!1},t.prototype.mouseUpEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Ht:case Yt:case Xt:i=e.dispatchEvent(\\"mouseUpEvent\\",o)}i&&this._chart.updatePane(1)}return this._mouseDownWidget=null,this._startScrollCoordinate=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,i},t.prototype.mouseClickEvent=function(t){var e=this._findWidgetByEvent(t).widget;if(null!==e){var i=this._makeWidgetEvent(t,e);return e.dispatchEvent(\\"mouseClickEvent\\",i)}return!1},t.prototype.mouseRightClickEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Yt:case Xt:i=e.dispatchEvent(\\"mouseRightClickEvent\\",o)}i&&this._chart.updatePane(1)}return!1},t.prototype.mouseDoubleClickEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o)switch(o.getName()){case zt:var n=this._makeWidgetEvent(t,o);return o.dispatchEvent(\\"mouseDoubleClickEvent\\",n);case Xt:var r=null==i?void 0:i.getAxisComponent();if(!r.getAutoCalcTickFlag())return r.setAutoCalcTickFlag(!0),this._chart.adjustPaneViewport(!1,!0,!0,!0),!0}return!1},t.prototype.mouseLeaveEvent=function(){return this._chart.getChartStore().getTooltipStore().setCrosshair(),!0},t.prototype.touchStartEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o){var n=this._makeWidgetEvent(t,o);switch(o.getName()){case zt:var r=this._chart.getChartStore(),a=r.getTooltipStore();if(o.dispatchEvent(\\"mouseDownEvent\\",n))return this._touchCancelCrosshair=!0,this._touchCoordinate=null,a.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._flingScrollRequestId&&(ie(this._flingScrollRequestId),this._flingScrollRequestId=null),this._flingStartTime=(new Date).getTime(),this._startScrollCoordinate={x:n.x,y:n.y},r.getTimeScaleStore().startScroll(),this._touchZoomed=!1,null!==this._touchCoordinate){var s=n.x-this._touchCoordinate.x,l=n.y-this._touchCoordinate.y;10>Math.sqrt(s*s+l*l)?(this._touchCoordinate={x:n.x,y:n.y},a.setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()})):(this._touchCoordinate=null,this._touchCancelCrosshair=!0,a.setCrosshair())}return!0;case Yt:case Xt:var u=o.dispatchEvent(\\"mouseDownEvent\\",n);return u&&this._chart.updatePane(1),u}}return!1},t.prototype.touchMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget;if(null!==a){var s=this._makeWidgetEvent(t,a),l=a.getName(),u=this._chart.getChartStore(),c=u.getTooltipStore();switch(l){case zt:if(a.dispatchEvent(\\"pressedMouseMoveEvent\\",s))return null===(e=s.preventDefault)||void 0===e||e.call(s),c.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._touchCoordinate)null===(i=s.preventDefault)||void 0===i||i.call(s),c.setCrosshair({x:s.x,y:s.y,paneId:null==r?void 0:r.getId()});else if(null!==this._startScrollCoordinate&&Math.abs(this._startScrollCoordinate.x-s.x)>this._startScrollCoordinate.y-s.y){var h=s.x-this._startScrollCoordinate.x;u.getTimeScaleStore().scroll(h)}return!0;case Yt:case Xt:var d=a.dispatchEvent(\\"pressedMouseMoveEvent\\",s);return d&&(null===(o=s.preventDefault)||void 0===o||o.call(s),this._chart.updatePane(1)),d}}return!1},t.prototype.touchEndEvent=function(t){var e=this,i=this._findWidgetByEvent(t).widget;if(null!==i){var o=this._makeWidgetEvent(t,i);switch(i.getName()){case zt:if(i.dispatchEvent(\\"mouseUpEvent\\",o),null!==this._startScrollCoordinate){var n=(new Date).getTime()-this._flingStartTime,r=(o.x-this._startScrollCoordinate.x)/(n>0?n:1)*20;if(200>n&&Math.abs(r)>0){var a=this._chart.getChartStore().getTimeScaleStore(),s=function(){e._flingScrollRequestId=ee((function(){a.startScroll(),a.scroll(r),1>Math.abs(r*=.975)?null!==e._flingScrollRequestId&&(ie(e._flingScrollRequestId),e._flingScrollRequestId=null):s()}))};s()}}return!0;case Yt:case Xt:i.dispatchEvent(\\"mouseUpEvent\\",o)&&this._chart.updatePane(1)}}return!1},t.prototype.tapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget,n=!1;if(null!==o){var r=this._makeWidgetEvent(t,o),a=o.dispatchEvent(\\"mouseClickEvent\\",r);if(o.getName()===zt){var s=this._makeWidgetEvent(t,o),l=this._chart.getChartStore().getTooltipStore();a?(this._touchCancelCrosshair=!0,this._touchCoordinate=null,l.setCrosshair(void 0,!0),n=!0):(this._touchCancelCrosshair||this._touchZoomed||(this._touchCoordinate={x:s.x,y:s.y},l.setCrosshair({x:s.x,y:s.y,paneId:null==i?void 0:i.getId()},!0),n=!0),this._touchCancelCrosshair=!1)}(n||a)&&this._chart.updatePane(1)}return n},t.prototype.doubleTapEvent=function(t){return this.mouseDoubleClickEvent(t)},t.prototype.longTapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o&&o.getName()===zt){var n=this._makeWidgetEvent(t,o);return this._touchCoordinate={x:n.x,y:n.y},this._chart.getChartStore().getTooltipStore().setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()}),!0}return!1},t.prototype._findWidgetByEvent=function(t){var e,i,o=this._chart.getAllPanes(),n=t.x,r=t.y,a=null;try{for(var s=L(o),l=s.next();!l.done;l=s.next()){var u=R(l.value,2)[1],c=u.getBounding();if(!(c.left>n||n>c.left+c.width||c.top>r||r>c.top+c.height)){a=u;break}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}null===a&&(a=this._chart.getPaneById(Kt.XAXIS));var h=null;if(null!==a){var d=a.getSeparatorWidget();if(null!==d){var p=d.getBounding();p.left>n||n>p.left+p.width||p.top>r||r>p.top+7||(h=d)}if(null===h){var v=a.getMainWidget(),g=v.getBounding();g.left>n||n>g.left+g.width||g.top>r||r>g.top+g.height||(h=v)}if(null===h){var f=a.getYAxisWidget();if(null!==f){var m=f.getBounding();m.left>n||n>m.left+m.width||m.top>r||r>m.top+m.height||(h=f)}}}return{pane:a,widget:h}},t.prototype._makeWidgetEvent=function(t,e){var i,o,n,r=null!==(i=null==e?void 0:e.getBounding())&&void 0!==i?i:null;return k(k({},t),{x:t.x-(null!==(o=null==r?void 0:r.left)&&void 0!==o?o:0),y:t.y-(null!==(n=null==r?void 0:r.top)&&void 0!==n?n:0)})},t.prototype.destroy=function(){this._container.removeEventListener(\\"keydown\\",this._boundKeyBoardDownEvent),this._event.destroy()},t}();t.DomPosition=void 0,(ni=t.DomPosition||(t.DomPosition={})).Root=\\"root\\",ni.Main=\\"main\\",ni.YAxis=\\"yAxis\\";var si=function(){function e(t,e){this._panes=new Map,this._initContainer(t),this._chartEvent=new ai(this._chartContainer,this),this._chartStore=new te(this,e),this._xAxisPane=new ei(this._chartContainer,this,Kt.XAXIS),this._panes.set(Kt.CANDLE,new Ue(this._chartContainer,this,Kt.CANDLE)),this.adjustPaneViewport(!0,!0,!0)}return e.prototype._initContainer=function(t){this._container=t,this._chartContainer=Y(\\"div\\",{position:\\"relative\\",width:\\"100%\\",outline:\\"none\\",borderStyle:\\"none\\",cursor:\\"crosshair\\",boxSizing:\\"border-box\\",userSelect:\\"none\\",webkitUserSelect:\\"none\\",msUserSelect:\\"none\\",MozUserSelect:\\"none\\",webkitTapHighlightColor:\\"transparent\\"}),this._chartContainer.tabIndex=1,t.appendChild(this._chartContainer)},e.prototype._measurePaneHeight=function(){var t,e=this._container.offsetHeight,i=this._xAxisPane.getAxisComponent().getAutoSize(),o=e-i;0>o&&(o=0);var n=0;this._panes.forEach((function(t){if(t.getId()!==Kt.CANDLE){var e=t.getBounding().height,i=t.getOptions().minHeight;i>e&&(e=i),n+e>o?e=Math.max(o-(n=o),0):n+=e,t.setBounding({height:e})}}));var r=o-n;null===(t=this._panes.get(Kt.CANDLE))||void 0===t||t.setBounding({height:r});var a=0;this._panes.forEach((function(t){t.setBounding({top:a}),a+=t.getBounding().height})),this._xAxisPane.setBounding({height:i,top:a})},e.prototype._measurePaneWidth=function(){var e=this._chartStore.getStyles().yAxis,i=e.position===t.YAxisPosition.Left,o=!e.inside,n=this._container.offsetWidth,r=0,a=Number.MIN_SAFE_INTEGER,s=0,l=0;this._panes.forEach((function(t){a=Math.max(a,t.getAxisComponent().getAutoSize())})),a>n&&(a=n),o?(r=n-a,i?(s=0,l=a):(s=n-a,l=0)):(r=n,l=0,s=i?0:n-a),this._chartStore.getTimeScaleStore().setTotalBarSpace(r);var u={width:n},c={width:r,left:l},h={width:a,left:s};this._panes.forEach((function(t){t.setBounding(u,c,h)})),this._xAxisPane.setBounding(u,c,h)},e.prototype._setPaneOptions=function(t,e){var i,o,n=this._panes.get(null!==(i=null==t?void 0:t.id)&&void 0!==i?i:\\"\\"),r=!1;if(void 0!==n){var a=e;if(t.id!==Kt.CANDLE&&void 0!==t.height&&t.height>0){var s=Math.max(null!==(o=t.minHeight)&&void 0!==o?o:n.getOptions().minHeight,0);n.setBounding({height:Math.max(s,t.height)}),a=!0,r=!0}n.setOptions(t),a&&this.adjustPaneViewport(r,!0,!0,!0,!0)}},e.prototype.getContainer=function(){return this._container},e.prototype.getChartStore=function(){return this._chartStore},e.prototype.getAllPanes=function(){return this._panes},e.prototype.adjustPaneViewport=function(t,e,i,o,n){t&&this._measurePaneHeight();var r=e,a=null!=n&&n;(null!=o&&o||a)&&this._panes.forEach((function(t){var e=t.getAxisComponent().buildTicks(a);r||(r=e)})),r&&this._measurePaneWidth(),null!=i&&i&&(this._xAxisPane.getAxisComponent().buildTicks(!0),this.updatePane(4))},e.prototype.updatePane=function(t,e){var i;void 0!==e?null===(i=this.getPaneById(e))||void 0===i||i.update(t):(this._xAxisPane.update(t),this._panes.forEach((function(e){e.update(t)})))},e.prototype.getPaneById=function(t){var e;return t===Kt.XAXIS?this._xAxisPane:null!==(e=this._panes.get(t))&&void 0!==e?e:null},e.prototype.crosshairChange=function(e){var i=this,o=this._chartStore.getActionStore();if(o.has(t.ActionType.OnCrosshairChange)){var n={};this._panes.forEach((function(t,o){var r={};i._chartStore.getIndicatorStore().getInstances(o).forEach((function(t){var i,o=t.result;r[t.name]=o[null!==(i=e.dataIndex)&&void 0!==i?i:o.length-1]})),n[o]=r})),void 0!==e.paneId&&o.execute(t.ActionType.OnCrosshairChange,k(k({},e),{indicatorData:n}))}},e.prototype.getDom=function(e,i){var o,n;if(void 0===e)return this._chartContainer;var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getContainer();case t.DomPosition.Main:return r.getMainWidget().getContainer();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getContainer())&&void 0!==n?n:null}return null},e.prototype.getSize=function(e,i){var o,n;if(void 0===e)return{width:this._chartContainer.offsetWidth,height:this._chartContainer.offsetHeight,left:0,top:0,right:0,bottom:0};var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getBounding();case t.DomPosition.Main:return r.getMainWidget().getBounding();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getBounding())&&void 0!==n?n:null}return null},e.prototype.setStyles=function(t){var e,i,o;this._chartStore.setOptions({styles:t}),void 0!==(null===(e=null==(o=u(t)?Qt(t):t)?void 0:o.yAxis)||void 0===e?void 0:e.type)&&(null===(i=this.getPaneById(Kt.CANDLE))||void 0===i||i.getAxisComponent().setAutoCalcTickFlag(!0)),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getStyles=function(){return this._chartStore.getStyles()},e.prototype.setLocale=function(t){this._chartStore.setOptions({locale:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getLocale=function(){return this._chartStore.getLocale()},e.prototype.setCustomApi=function(t){this._chartStore.setOptions({customApi:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.setPriceVolumePrecision=function(t,e){this._chartStore.setPrecision({price:t,volume:e})},e.prototype.getPriceVolumePrecision=function(){return this._chartStore.getPrecision()},e.prototype.setTimezone=function(t){this._chartStore.setOptions({timezone:t}),this._xAxisPane.getAxisComponent().buildTicks(!0),this._xAxisPane.update(3)},e.prototype.getTimezone=function(){return this._chartStore.getTimeScaleStore().getTimezone()},e.prototype.setOffsetRightDistance=function(t){this._chartStore.getTimeScaleStore().setOffsetRightDistance(t,!0)},e.prototype.getOffsetRightDistance=function(){return this._chartStore.getTimeScaleStore().getOffsetRightDistance()},e.prototype.setLeftMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setLeftMinVisibleBarCount(Math.ceil(t))},e.prototype.setRightMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setRightMinVisibleBarCount(Math.ceil(t))},e.prototype.setBarSpace=function(t){this._chartStore.getTimeScaleStore().setBarSpace(t)},e.prototype.getBarSpace=function(){return this._chartStore.getTimeScaleStore().getBarSpace().bar},e.prototype.getVisibleRange=function(){return this._chartStore.getTimeScaleStore().getVisibleRange()},e.prototype.clearData=function(){this._chartStore.clear()},e.prototype.getDataList=function(){return this._chartStore.getDataList()},e.prototype.applyNewData=function(t,e,i){this._chartStore.clear(),0===t.length?this.adjustPaneViewport(!1,!0,!0,!0):this.applyMoreData(t,e,i)},e.prototype.applyMoreData=function(t,e,i){var o=this;this._chartStore.addData(t,0,e),t.length>0&&this._chartStore.getIndicatorStore().calcInstance().then((function(t){o.adjustPaneViewport(!1,!0,!0,!0),null==i||i()})).catch((function(t){}))},e.prototype.updateData=function(t,e){var i=this,o=this._chartStore.getDataList(),n=o.length,r=t.timestamp,a=C(o[n-1],\\"timestamp\\",0);if(r>=a){var s=n;r===a&&(s=n-1),this._chartStore.addData(t,s),this._chartStore.getIndicatorStore().calcInstance().then((function(t){i.adjustPaneViewport(!1,!0,!0,!0),null==e||e()})).catch((function(t){}))}},e.prototype.loadMore=function(t){this._chartStore.getTimeScaleStore().setLoadMoreCallback(t)},e.prototype.createIndicator=function(t,e,i,o){var n,r,a,l=this,c=u(t)?{name:t}:t;if(null===pt(c.name))return null;if(s(i)&&u(null==i?void 0:i.id)&&this._panes.has(i.id))a=i.id,this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).then((function(t){var e,o;l._setPaneOptions(i,null!==(o=null===(e=l._panes.get(a))||void 0===e?void 0:e.getAxisComponent().buildTicks(!0))&&void 0!==o&&o)})).catch((function(t){}));else{a=null!==(n=null==i?void 0:i.id)&&void 0!==n?n:z(Kt.INDICATOR);var h=Array.from(this._panes.values()).pop(),d=new Ke(this._chartContainer,this,a,h);h.setBottomPane(d);var p=null!==(r=null==i?void 0:i.height)&&void 0!==r?r:100;d.setBounding({height:p}),s(i)&&d.setOptions(i),this._panes.set(a,d),this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).finally((function(){l.adjustPaneViewport(!0,!0,!0,!0,!0),null==o||o()}))}return a},e.prototype.overrideIndicator=function(t,e,i){var o=this;this._chartStore.getIndicatorStore().override(t,null!=e?e:null).then((function(t){var e=R(t,2),n=e[1];(e[0]||n)&&(o.adjustPaneViewport(!1,n,!0,n),null==i||i())})).catch((function(){}))},e.prototype.getIndicatorByPaneId=function(t,e){return this._chartStore.getIndicatorStore().getInstanceByPaneId(t,e)},e.prototype.removeIndicator=function(t,e){var i=this._chartStore.getIndicatorStore();if(i.removeInstance(t,e)){var o=!1;if(t!==Kt.CANDLE&&!i.hasInstances(t)){var n=this._panes.get(t);if(void 0!==n){o=!0;var r=n.getTopPane(),a=n.getBottomPane();null==a||a.setTopPane(r),null==r||r.setBottomPane(a),null==n||n.destroy(),this._panes.delete(t)}}this.adjustPaneViewport(o,!0,!0,!0,!0)}},e.prototype.createOverlay=function(t,e){var i=[];if(u(t))i=[{name:t}];else if(o(t))i=t.map((function(t){return u(t)?{name:t}:t}));else{i=[t]}var n=!0;void 0!==e&&null!==this.getPaneById(e)||(e=Kt.CANDLE,n=!1);var r=this._chartStore.getOverlayStore().addInstances(i,e,n);return o(t)?r:r[0]},e.prototype.getOverlayById=function(t){return this._chartStore.getOverlayStore().getInstanceById(t)},e.prototype.overrideOverlay=function(t){this._chartStore.getOverlayStore().override(t)},e.prototype.removeOverlay=function(t){var e;void 0!==t&&(e=u(t)?{id:t}:t),this._chartStore.getOverlayStore().removeInstance(e)},e.prototype.setPaneOptions=function(t){this._setPaneOptions(t,!1)},e.prototype.setZoomEnabled=function(t){this._chartStore.getTimeScaleStore().setZoomEnabled(t)},e.prototype.isZoomEnabled=function(){return this._chartStore.getTimeScaleStore().getZoomEnabled()},e.prototype.setScrollEnabled=function(t){this._chartStore.getTimeScaleStore().setScrollEnabled(t)},e.prototype.isScrollEnabled=function(){return this._chartStore.getTimeScaleStore().getScrollEnabled()},e.prototype.scrollByDistance=function(t,e){var i=void 0===e||0>e?0:e,o=this._chartStore.getTimeScaleStore();if(i>0){o.startScroll();var n=(new Date).getTime(),r=function(){var e=((new Date).getTime()-n)/i,a=e>=1;o.scroll(a?t:t*e),a||requestAnimationFrame(r)};r()}else o.startScroll(),o.scroll(t)},e.prototype.scrollToRealTime=function(t){var e=this._chartStore.getTimeScaleStore(),i=e.getBarSpace().bar,o=e.getOffsetRightBarCount()-e.getInitialOffsetRightDistance()/i;this.scrollByDistance(o*i,t)},e.prototype.scrollToDataIndex=function(t,e){var i=this._chartStore.getTimeScaleStore(),o=(i.getOffsetRightBarCount()+(this.getDataList().length-1-t))*i.getBarSpace().bar;this.scrollByDistance(o,e)},e.prototype.scrollToTimestamp=function(t,e){var i=Z(this.getDataList(),\\"timestamp\\",t);this.scrollToDataIndex(i,e)},e.prototype.zoomAtCoordinate=function(t,e,i){var o=void 0===i||0>i?0:i,n=this._chartStore.getTimeScaleStore();if(o>0){var r=n.getBarSpace().bar,a=r*t-r,s=(new Date).getTime(),l=function(){var t=((new Date).getTime()-s)/o,i=t>=1;n.zoom((i?a:a*t)/r,e),i||requestAnimationFrame(l)};l()}else n.zoom(t,e)},e.prototype.zoomAtDataIndex=function(t,e,i){var o=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(e);this.zoomAtCoordinate(t,{x:o,y:0},i)},e.prototype.zoomAtTimestamp=function(t,e,i){var o=Z(this.getDataList(),\\"timestamp\\",e);this.zoomAtDataIndex(t,o,i)},e.prototype.convertToPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e={},i=t.dataIndex;if(void 0!==t.timestamp&&(i=c.timestampToDataIndex(t.timestamp)),void 0!==i&&(e.x=null==p?void 0:p.convertToPixel(i)),void 0!==t.value){var o=null==v?void 0:v.convertToPixel(t.value);e.y=s?h.top+o:o}return e}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.convertFromPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e,i={};if(void 0!==t.x){var o=p.convertFromPixel(t.x);i.dataIndex=o,i.timestamp=null!==(e=c.dataIndexToTimestamp(o))&&void 0!==e?e:void 0}void 0!==t.y&&(i.value=v.convertFromPixel(s?t.y-h.top:t.y));return i}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.executeAction=function(e,i){var o;if(e===t.ActionType.OnCrosshairChange){var n=k({},i);n.paneId=null!==(o=n.paneId)&&void 0!==o?o:Kt.CANDLE,this._chartStore.getTooltipStore().setCrosshair(n)}},e.prototype.subscribeAction=function(t,e){this._chartStore.getActionStore().subscribe(t,e)},e.prototype.unsubscribeAction=function(t,e){this._chartStore.getActionStore().unsubscribe(t,e)},e.prototype.getConvertPictureUrl=function(t,e,i){var o=this._chartContainer.offsetWidth,n=this._chartContainer.offsetHeight,r=Y(\\"canvas\\",{width:\\"\\".concat(o,\\"px\\"),height:\\"\\".concat(n,\\"px\\"),boxSizing:\\"border-box\\"}),a=r.getContext(\\"2d\\"),s=X(r);r.width=o*s,r.height=n*s,a.scale(s,s),a.fillStyle=null!=i?i:\\"#FFFFFF\\",a.fillRect(0,0,o,n);var l=null!=t&&t;this._panes.forEach((function(t){var e=t.getBounding();a.drawImage(t.getImage(l),0,e.top,o,e.height)}));var u=this._xAxisPane.getBounding();return a.drawImage(this._xAxisPane.getImage(l),0,u.top,o,u.height),r.toDataURL(\\"image/\\".concat(null!=e?e:\\"jpeg\\"))},e.prototype.resize=function(){this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.destroy=function(){this._chartEvent.destroy(),this._panes.forEach((function(t){t.destroy()})),this._panes.clear(),this._xAxisPane.destroy(),this._container.removeChild(this._chartContainer)},e}(),li=new Map,ui=1;var ci={clone:i,merge:e,isString:u,isNumber:a,isValid:s,isObject:r,isArray:o,isFunction:n,isBoolean:l,formatValue:C,formatPrecision:T,formatBigNumber:w,formatDate:b,formatThousands:E,calcTextWidth:j,getLinearSlopeIntercept:kt,getLinearYFromSlopeIntercept:Pt,getLinearYFromCoordinates:Mt,checkCoordinateOnArc:xe,checkCoordinateOnCircle:re,checkCoordinateOnLine:Dt,checkCoordinateOnPolygon:le,checkCoordinateOnRect:de,checkCoordinateOnText:fe,drawArc:Se,drawCircle:ae,drawLine:At,drawPolygon:ue,drawRect:pe,drawText:me,drawRectText:_e};t.dispose=function(t){var e,i,o;if(t instanceof si)o=t.id;else{var n=void 0;o=null!==(e=null==(n=u(t)?document.getElementById(t):t)?void 0:n.getAttribute(\\"k-line-chart-id\\"))&&void 0!==e?e:null}null!==o&&(null===(i=li.get(o))||void 0===i||i.destroy(),li.delete(o))},t.getFigureClass=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null},t.getOverlayClass=function(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null},t.getSupportedFigures=function(){return Object.keys(be)},t.getSupportedIndicators=function(){return Object.keys(ht)},t.getSupportedLocales=function(){return Object.keys(Be)},t.getSupportedOverlays=function(){return Object.keys(Vt)},t.init=function(t,e){var i;if(null===(i=u(t)?document.getElementById(t):t))return null;var o=li.get(i.id);if(void 0!==o)return o;var n=\\"k_line_chart_\\".concat(ui++);return(o=new si(i,e)).id=n,i.setAttribute(\\"k-line-chart-id\\",n),li.set(n,o),o},t.registerFigure=function(t){be[t.name]=wt.extend(t)},t.registerIndicator=function(t){ht[t.name]=nt.extend(t)},t.registerLocale=function(t,e){Be[t]=k(k({},Be[t]),e)},t.registerOverlay=function(t){Vt[t.name]=xt.extend(t)},t.registerStyles=function(t,e){Jt[t]=e},t.utils=ci,t.version=function(){return\\"9.5.4\\"}}));\\n"]]},"headers":[],"relativePath":"sample/axis.md","filePath":"sample/axis.md","lastUpdated":1698784282000}`),p={name:"sample/axis.md"},C=Object.assign(p,{setup(v){return(g,f)=>(s(),l("div",null,[h,e("template",null,[c(n,{js:t(o),html:t(r),css:t(a),title:"坐标轴"},null,8,["js","html","css"]),i(" ::: code-group ```js:line-numbers [JavaScript] import { init } from 'klinecharts' import './index.css' "),d])]))}});export{x as __pageData,C as default}; diff --git a/assets/sample_axis.md.339486a1.lean.js b/assets/sample_axis.md.339486a1.lean.js deleted file mode 100644 index 575bdc513..000000000 --- a/assets/sample_axis.md.339486a1.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as r,c as a}from"./chunks/index.3fa44176.js";import{o as s,c as l,k as e,H as c,l as t,a as i,Q as u}from"./chunks/framework.c401375a.js";const h=e("h1",{id:"坐标轴",tabindex:"-1"},[i("坐标轴 "),e("a",{class:"header-anchor",href:"#坐标轴","aria-label":'Permalink to "坐标轴"'},"​")],-1),d=u("",13),x=JSON.parse(`{"title":"坐标轴","description":"","frontmatter":{"aside":false,"editLink":false,"head":[["script",{},"/**\\n * @license\\n * KLineChart v9.5.4\\n * Copyright (c) 2019 lihu.\\n * Licensed under Apache License 2.0 https://www.apache.org/licenses/LICENSE-2.0\\n */\\n!function(t,e){\\"object\\"==typeof exports&&\\"undefined\\"!=typeof module?e(exports):\\"function\\"==typeof define&&define.amd?define([\\"exports\\"],e):e((t=\\"undefined\\"!=typeof globalThis?globalThis:t||self).klinecharts={})}(this,(function(t){\\"use strict\\";function e(t,i){if(r(t)||r(i))for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var a=t[n],l=i[n];r(l)&&r(a)&&!o(l)&&!o(a)?e(a,l):s(i[n])&&(t[n]=i[n])}}function i(t){if(!r(t)||!o(t))return t;var e;for(var n in e=o(t)?[]:{},t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=t[n];e[n]=r(a)?i(a):a}return e}function o(t){return\\"[object Array]\\"===Object.prototype.toString.call(t)}function n(t){return\\"function\\"==typeof t}function r(t){return\\"object\\"==typeof t}function a(t){return\\"number\\"==typeof t&&!isNaN(t)}function s(t){return null!=t}function l(t){return\\"boolean\\"==typeof t}function u(t){return\\"string\\"==typeof t}var c,h,d,p,v,g,f,m,y,_,x=/\\\\\\\\(\\\\\\\\)?/g,S=RegExp(\\"[^.[\\\\\\\\]]+|\\\\\\\\[(?:([^\\\\\\"'][^[]*)|([\\\\\\"'])((?:(?!\\\\\\\\2)[^\\\\\\\\\\\\\\\\]|\\\\\\\\\\\\\\\\.)*?)\\\\\\\\2)\\\\\\\\]|(?=(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\])(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\]|$))\\",\\"g\\");function C(t,e,i){if(s(t)){var o=[];e.replace(S,(function(t){for(var e=[],i=1;arguments.length>i;i++)e[i-1]=arguments[i];var n=t;return s(e[1])?n=e[2].replace(x,\\"$1\\"):s(e[0])&&(n=e[0].trim()),o.push(n),\\"\\"}));for(var n=t,r=0,a=o.length;s(n)&&a>r;)n=null==n?void 0:n[o[r++]];return s(n)?n:null!=i?i:\\"--\\"}return null!=i?i:\\"--\\"}function b(t,e,i){var o=t.format(new Date(e)).split(\\", \\"),n=o[0].split(\\"/\\"),r=o[1].split(\\":\\"),a={YYYY:n[2],MM:n[0],DD:n[1],HH:\\"24\\"===r[0]?\\"00\\":r[0],mm:r[1],ss:r[2]};return i.replace(/YYYY|MM|DD|HH|mm|ss/g,(function(t){return a[t]}))}function T(t,e){var i=+t;return a(i)?i.toFixed(null!=e?e:2):\\"\\".concat(t)}function w(t){var e=+t;if(a(e)){if(e>1e9)return\\"\\".concat(+(e/1e9).toFixed(3),\\"B\\");if(e>1e6)return\\"\\".concat(+(e/1e6).toFixed(3),\\"M\\");if(e>1e3)return\\"\\".concat(+(e/1e3).toFixed(3),\\"K\\")}return\\"\\".concat(t)}function E(t,e){var i=\\"\\".concat(t);if(0===e.length)return i;if(i.includes(\\".\\")){var o=i.split(\\".\\");return\\"\\".concat(o[0].replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)})),\\".\\").concat(o[1])}return i.replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)}))}t.LineType=void 0,(c=t.LineType||(t.LineType={})).Dashed=\\"dashed\\",c.Solid=\\"solid\\",t.PolygonType=void 0,(h=t.PolygonType||(t.PolygonType={})).Stroke=\\"stroke\\",h.Fill=\\"fill\\",h.StrokeFill=\\"stroke_fill\\",t.TooltipShowRule=void 0,(d=t.TooltipShowRule||(t.TooltipShowRule={})).Always=\\"always\\",d.FollowCross=\\"follow_cross\\",d.None=\\"none\\",t.TooltipShowType=void 0,(p=t.TooltipShowType||(t.TooltipShowType={})).Standard=\\"standard\\",p.Rect=\\"rect\\",t.TooltipIconPosition=void 0,(v=t.TooltipIconPosition||(t.TooltipIconPosition={})).Left=\\"left\\",v.Middle=\\"middle\\",v.Right=\\"right\\",function(t){t.Fixed=\\"fixed\\",t.Pointer=\\"pointer\\"}(g||(g={})),t.CandleType=void 0,(f=t.CandleType||(t.CandleType={})).CandleSolid=\\"candle_solid\\",f.CandleStroke=\\"candle_stroke\\",f.CandleUpStroke=\\"candle_up_stroke\\",f.CandleDownStroke=\\"candle_down_stroke\\",f.Ohlc=\\"ohlc\\",f.Area=\\"area\\",t.YAxisPosition=void 0,(m=t.YAxisPosition||(t.YAxisPosition={})).Left=\\"left\\",m.Right=\\"right\\",t.YAxisType=void 0,(y=t.YAxisType||(t.YAxisType={})).Normal=\\"normal\\",y.Percentage=\\"percentage\\",y.Log=\\"log\\",t.FormatDateType=void 0,(_=t.FormatDateType||(t.FormatDateType={}))[_.Tooltip=0]=\\"Tooltip\\",_[_.Crosshair=1]=\\"Crosshair\\",_[_.XAxis=2]=\\"XAxis\\";var I=\\"en-US\\",D=function(t,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},D(t,e)};function P(t,e){if(\\"function\\"!=typeof e&&null!==e)throw new TypeError(\\"Class extends value \\"+e+\\" is not a constructor or null\\");function i(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var M,k=function(){return k=Object.assign||function(t){for(var e,i=1,o=arguments.length;o>i;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},k.apply(this,arguments)};function A(t,e,i,o){return new(i||(i=Promise))((function(n,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function s(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))}function F(t,e){var i,o,n,r,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},\\"function\\"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(l){return function(s){if(i)throw new TypeError(\\"Generator is already executing.\\");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(i=1,o&&(n=2&s[0]?o.return:s[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&n[3]>s[1])){a.label=s[1];break}if(6===s[0]&&n[1]>a.label){a.label=n[1],n=s;break}if(n&&n[2]>a.label){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],o=0}finally{i=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function L(t){var e=\\"function\\"==typeof Symbol&&Symbol.iterator,i=e&&t[e],o=0;if(i)return i.call(t);if(t&&\\"number\\"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?\\"Object is not iterable.\\":\\"Symbol.iterator is not defined.\\")}function R(t,e){var i=\\"function\\"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,n,r=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return a}function B(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;r>n;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}t.ActionType=void 0,(M=t.ActionType||(t.ActionType={})).OnZoom=\\"onZoom\\",M.OnScroll=\\"onScroll\\",M.OnVisibleRangeChange=\\"onVisibleRangeChange\\",M.OnTooltipIconClick=\\"onTooltipIconClick\\",M.OnCrosshairChange=\\"onCrosshairChange\\",M.OnCandleBarClick=\\"onCandleBarClick\\",M.OnPaneDrag=\\"onPaneDrag\\";var O,V=function(){function t(){this._callbacks=[]}return t.prototype.subscribe=function(t){var e;0>(null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1)&&this._callbacks.push(t)},t.prototype.unsubscribe=function(t){var e;if(void 0!==t){var i=null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1;i>-1&&this._callbacks.splice(i,1)}else this._callbacks=[]},t.prototype.execute=function(t){this._callbacks.forEach((function(e){e(t)}))},t.prototype.isEmpty=function(){return 0===this._callbacks.length},t}(),N=1,W=(new Date).getTime();function z(t){var e=(new Date).getTime();return e===W?++N:N=1,W=e,\\"\\".concat(null!=t?t:\\"\\").concat(e,\\"_\\").concat(N)}function Y(t,e){var i,o=document.createElement(t),n=null!=e?e:{};for(var r in n)o.style[r]=null!==(i=n[r])&&void 0!==i?i:\\"\\";return o}function X(t){var e,i,o;return Math.ceil(null!==(o=null===(i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0===i?void 0:i.devicePixelRatio)&&void 0!==o?o:2)}function H(t,e,i){return\\"\\".concat(null!=e?e:\\"normal\\",\\" \\").concat(null!=t?t:12,\\"px \\").concat(null!=i?i:\\"Helvetica Neue\\")}function j(t,e,i,o){if(void 0===O){var n=document.createElement(\\"canvas\\"),r=X(n);(O=n.getContext(\\"2d\\")).scale(r,r)}return O.font=H(e,i,o),Math.round(O.measureText(t).width)}function Z(t,e,i){var o=0,n=0;for(n=t.length-1;o!==n;){var r=Math.floor((n+o)/2),a=n-o,s=t[r][e];if(i===t[o][e])return o;if(i===t[n][e])return n;if(i===s)return r;if(i>s?o=r:n=r,2>=a)break}return o}function G(t,e){return null==e&&(e=10),+(+t).toFixed(e=Math.min(Math.max(0,e),20))}function K(t,e,i){var o=[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER];return t.forEach((function(t){var n,r;o[0]=Math.max(null!==(n=t[e])&&void 0!==n?n:t,o[0]),o[1]=Math.min(null!==(r=t[i])&&void 0!==r?r:t,o[1])})),o}function U(t){return Math.log(t)/Math.log(10)}function q(t){return Math.pow(10,t)}var $,J=1,Q=50,tt=6,et=50,it=function(){function e(t){this._dateTimeFormat=this._buildDateTimeFormat(),this._zoomEnabled=!0,this._scrollEnabled=!0,this._loading=!0,this._loadMoreCallback=null,this._more=!0,this._totalBarSpace=0,this._barSpace=tt,this._offsetRightDistance=et,this._startScrollOffsetRightBarCount=0,this._minVisibleBarCount={left:2,right:2},this._visibleRange={from:0,to:0,realFrom:0,realTo:0},this._chartStore=t,this._gapBarSpace=this._calcGapBarSpace(),this._offsetRightBarCount=this._offsetRightDistance/this._barSpace}return e.prototype._calcGapBarSpace=function(){return Math.max(1,Math.min(Math.floor(.82*this._barSpace),Math.floor(this._barSpace)-1))},e.prototype.adjustVisibleRange=function(){var e,i=this._chartStore.getDataList(),o=i.length,n=this._totalBarSpace/this._barSpace,r=n-Math.min(this._minVisibleBarCount.left,o);this._offsetRightBarCount>r&&(this._offsetRightBarCount=r);var a=-o+Math.min(this._minVisibleBarCount.right,o);a>this._offsetRightBarCount&&(this._offsetRightBarCount=a);var s=Math.round(this._offsetRightBarCount+o+.5);s>o&&(s=o);var l=Math.round(s-n)-1;if(0>l&&(l=0),this._visibleRange={from:l,to:s,realFrom:this._offsetRightBarCount>0?Math.round(o+this._offsetRightBarCount-n)-1:l,realTo:s},this._chartStore.getActionStore().execute(t.ActionType.OnVisibleRangeChange,this._visibleRange),this._chartStore.adjustVisibleDataList(),0===l&&this._more&&!this._loading&&null!==this._loadMoreCallback){this._loading=!0;var u=i[0];this._loadMoreCallback(null!==(e=null==u?void 0:u.timestamp)&&void 0!==e?e:null)}},e.prototype.setMore=function(t){return this._more=t,this},e.prototype.setLoading=function(t){return this._loading=t,this},e.prototype.getDateTimeFormat=function(){return this._dateTimeFormat},e.prototype._buildDateTimeFormat=function(t){var e={hour12:!1,year:\\"numeric\\",month:\\"2-digit\\",day:\\"2-digit\\",hour:\\"2-digit\\",minute:\\"2-digit\\",second:\\"2-digit\\"};void 0!==t&&(e.timeZone=t);var i=null;try{i=new Intl.DateTimeFormat(\\"en\\",e)}catch(t){}return i},e.prototype.setTimezone=function(t){var e=this._buildDateTimeFormat(t);null!==e&&(this._dateTimeFormat=e)},e.prototype.getTimezone=function(){return this._dateTimeFormat.resolvedOptions().timeZone},e.prototype.getBarSpace=function(){return{bar:this._barSpace,halfBar:this._barSpace/2,gapBar:this._gapBarSpace,halfGapBar:this._gapBarSpace/2}},e.prototype.setBarSpace=function(t,e){J>t||t>Q||this._barSpace===t||(this._barSpace=t,this._gapBarSpace=this._calcGapBarSpace(),null==e||e(),this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0))},e.prototype.setTotalBarSpace=function(t){return this._totalBarSpace!==t&&(this._totalBarSpace=t,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0)),this},e.prototype.setOffsetRightDistance=function(t,e){return this._offsetRightDistance=t,this._offsetRightBarCount=t/this._barSpace,null!=e&&e&&(this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)),this},e.prototype.resetOffsetRightDistance=function(){this.setOffsetRightDistance(this._offsetRightDistance)},e.prototype.getInitialOffsetRightDistance=function(){return this._offsetRightDistance},e.prototype.getOffsetRightDistance=function(){return Math.max(0,this._offsetRightBarCount*this._barSpace)},e.prototype.getOffsetRightBarCount=function(){return this._offsetRightBarCount},e.prototype.setOffsetRightBarCount=function(t){return this._offsetRightBarCount=t,this},e.prototype.setLeftMinVisibleBarCount=function(t){return this._minVisibleBarCount.left=t,this},e.prototype.setRightMinVisibleBarCount=function(t){return this._minVisibleBarCount.right=t,this},e.prototype.getVisibleRange=function(){return this._visibleRange},e.prototype.startScroll=function(){this._startScrollOffsetRightBarCount=this._offsetRightBarCount},e.prototype.scroll=function(e){if(this._scrollEnabled){var i=e/this._barSpace;this._chartStore.getActionStore().execute(t.ActionType.OnScroll),this._offsetRightBarCount=this._startScrollOffsetRightBarCount-i,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)}},e.prototype.getDataByDataIndex=function(t){var e;return null!==(e=this._chartStore.getDataList()[t])&&void 0!==e?e:null},e.prototype.coordinateToFloatIndex=function(t){var e=this._chartStore.getDataList().length;return Math.round(1e6*(e+this._offsetRightBarCount-(this._totalBarSpace-t)/this._barSpace))/1e6},e.prototype.dataIndexToTimestamp=function(t){var e,i=this.getDataByDataIndex(t);return null!==(e=null==i?void 0:i.timestamp)&&void 0!==e?e:null},e.prototype.timestampToDataIndex=function(t){var e=this._chartStore.getDataList();return 0===e.length?0:Z(e,\\"timestamp\\",t)},e.prototype.dataIndexToCoordinate=function(t){var e=this._chartStore.getDataList().length;return this._totalBarSpace-(e+this._offsetRightBarCount-t-.5)*this._barSpace},e.prototype.coordinateToDataIndex=function(t){return Math.ceil(this.coordinateToFloatIndex(t))-1},e.prototype.zoom=function(e,i){var o,n=this;if(this._zoomEnabled){if(void 0===(null==i?void 0:i.x)){var r=this._chartStore.getTooltipStore().getCrosshair();i={x:null!==(o=null==r?void 0:r.x)&&void 0!==o?o:this._totalBarSpace/2}}this._chartStore.getActionStore().execute(t.ActionType.OnZoom);var a=this.coordinateToFloatIndex(i.x);this.setBarSpace(this._barSpace+e*(this._barSpace/10),(function(){n._offsetRightBarCount+=a-n.coordinateToFloatIndex(null==i?void 0:i.x)}))}},e.prototype.setZoomEnabled=function(t){return this._zoomEnabled=t,this},e.prototype.getZoomEnabled=function(){return this._zoomEnabled},e.prototype.setScrollEnabled=function(t){return this._scrollEnabled=t,this},e.prototype.getScrollEnabled=function(){return this._scrollEnabled},e.prototype.setLoadMoreCallback=function(t){return this._loadMoreCallback=t,this},e.prototype.clear=function(){this._more=!0,this._loading=!0,this._visibleRange={from:0,to:0,realFrom:0,realTo:0}},e}();function ot(t,e,i,o,n){var r,a=e.result,l=e.figures,u=e.styles,c=C(u,\\"circles\\",o.circles),h=c.length,d=C(u,\\"bars\\",o.bars),p=d.length,v=C(u,\\"lines\\",o.lines),g=v.length,f=0,m=0,y=0;l.forEach((function(l){var u;switch(l.type){case\\"circle\\":var _=c[f%h];r=k(k({},_),{color:_.noChangeColor}),f++;break;case\\"bar\\":var x=d[m%p];r=k(k({},x),{color:x.noChangeColor}),m++;break;case\\"line\\":r=v[y%g],y++}if(s(r)){var S=null===(u=l.styles)||void 0===u?void 0:u.call(l,{prev:{kLineData:t[i-1],indicatorData:a[i-1]},current:{kLineData:t[i],indicatorData:a[i]},next:{kLineData:t[i+1],indicatorData:a[i+1]}},e,o);n(l,k(k({},r),S))}}))}t.IndicatorSeries=void 0,($=t.IndicatorSeries||(t.IndicatorSeries={})).Normal=\\"normal\\",$.Price=\\"price\\",$.Volume=\\"volume\\";var nt=function(){function i(e){this.result=[],this._precisionFlag=!1;var i=e.name,o=e.shortName,n=e.series,r=e.calcParams,a=e.figures,s=e.precision,l=e.shouldOhlc,u=e.shouldFormatBigNumber,c=e.visible,h=e.minValue,d=e.maxValue,p=e.styles,v=e.extendData,g=e.regenerateFigures,f=e.createTooltipDataSource,m=e.draw;this.name=i,this.shortName=null!=o?o:i,this.series=null!=n?n:t.IndicatorSeries.Normal,this.precision=null!=s?s:4,this.calcParams=null!=r?r:[],this.figures=null!=a?a:[],this.shouldOhlc=null!=l&&l,this.shouldFormatBigNumber=null!=u&&u,this.visible=null==c||c,this.minValue=null!=h?h:null,this.maxValue=null!=d?d:null,this.styles=null!=p?p:{},this.extendData=v,this.regenerateFigures=null!=g?g:null,this.createTooltipDataSource=null!=f?f:null,this.draw=null!=m?m:null}return i.prototype.setShortName=function(t){return this.shortName!==t&&(this.shortName=t,!0)},i.prototype.setSeries=function(t){return this.series!==t&&(this.series=t,!0)},i.prototype.setPrecision=function(t,e){var i=null!=e&&e,o=Math.floor(t);return!(o===this.precision||0>t||i&&(!i||this._precisionFlag))&&(this.precision=o,i||(this._precisionFlag=!0),!0)},i.prototype.setCalcParams=function(t){var e,i;return this.calcParams=t,this.figures=null!==(i=null===(e=this.regenerateFigures)||void 0===e?void 0:e.call(this,t))&&void 0!==i?i:this.figures,!0},i.prototype.setShouldOhlc=function(t){return this.shouldOhlc!==t&&(this.shouldOhlc=t,!0)},i.prototype.setShouldFormatBigNumber=function(t){return this.shouldFormatBigNumber!==t&&(this.shouldFormatBigNumber=t,!0)},i.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},i.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},i.prototype.setExtendData=function(t){return this.extendData!==t&&(this.extendData=t,!0)},i.prototype.setFigures=function(t){return this.figures!==t&&(this.figures=t,!0)},i.prototype.setMinValue=function(t){return this.minValue!==t&&(this.minValue=t,!0)},i.prototype.setMaxValue=function(t){return this.maxValue!==t&&(this.maxValue=t,!0)},i.prototype.setRegenerateFigures=function(t){return this.regenerateFigures!==t&&(this.regenerateFigures=t,!0)},i.prototype.setCreateTooltipDataSource=function(t){return this.createTooltipDataSource!==t&&(this.createTooltipDataSource=t,!0)},i.prototype.setDraw=function(t){return this.draw!==t&&(this.draw=t,!0)},i.prototype.calcIndicator=function(t){return A(this,void 0,void 0,(function(){var e;return F(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.calc(t,this)];case 1:return e=i.sent(),this.result=e,[2,!0];case 2:return i.sent(),[2,!1];case 3:return[2]}}))}))},i.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i.prototype.calc=function(e,i){return t.calc(e,i)},i}(i)},i}(),rt={name:\\"AVP\\",shortName:\\"AVP\\",series:t.IndicatorSeries.Price,precision:2,figures:[{key:\\"avp\\",title:\\"AVP: \\",type:\\"line\\"}],calc:function(t){var e=0,i=0;return t.map((function(t){var o,n,r={},a=null!==(o=null==t?void 0:t.turnover)&&void 0!==o?o:0,s=null!==(n=null==t?void 0:t.volume)&&void 0!==n?n:0;return e+=a,0!==(i+=s)&&(r.avp=e/i),r}))}};var at={name:\\"EMA\\",shortName:\\"EMA\\",series:t.IndicatorSeries.Price,calcParams:[6,12,20],precision:2,shouldOhlc:!0,figures:[{key:\\"ema1\\",title:\\"EMA6: \\",type:\\"line\\"},{key:\\"ema2\\",title:\\"EMA12: \\",type:\\"line\\"},{key:\\"ema3\\",title:\\"EMA20: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ema\\".concat(e+1),title:\\"EMA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=0,r=[];return t.map((function(t,e){var a={},s=t.close;return n+=s,i.forEach((function(t,i){t-1>e||(r[i]=e>t-1?(2*s+(t-1)*r[i])/(t+1):n/t,a[o[i].key]=r[i])})),a}))}},st={name:\\"MA\\",shortName:\\"MA\\",series:t.IndicatorSeries.Price,calcParams:[5,10,30,60],precision:2,shouldOhlc:!0,figures:[{key:\\"ma5\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma10\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma30\\",title:\\"MA30: \\",type:\\"line\\"},{key:\\"ma60\\",title:\\"MA60: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,i){var l;n[i]=(null!==(l=n[i])&&void 0!==l?l:0)+s,e-1>r||(a[o[i].key]=n[i]/e,n[i]-=t[r-(e-1)].close)})),a}))}},lt={name:\\"RSI\\",shortName:\\"RSI\\",calcParams:[6,12,24],figures:[{key:\\"rsi1\\",title:\\"RSI1: \\",type:\\"line\\"},{key:\\"rsi2\\",title:\\"RSI2: \\",type:\\"line\\"},{key:\\"rsi3\\",title:\\"RSI3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){var i=e+1;return{key:\\"rsi\\".concat(i),title:\\"RSI\\".concat(i,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[],r=[];return t.map((function(e,a){var s,l={},u=(null!==(s=t[a-1])&&void 0!==s?s:e).close,c=e.close-u;return i.forEach((function(e,i){var s,u,h;if(c>0?n[i]=(null!==(s=n[i])&&void 0!==s?s:0)+c:r[i]=(null!==(u=r[i])&&void 0!==u?u:0)+Math.abs(c),a>=e-1){l[o[i].key]=0!==r[i]?100-100/(1+n[i]/r[i]):0;var d=t[a-(e-1)],p=null!==(h=t[a-e])&&void 0!==h?h:d,v=d.close-p.close;v>0?n[i]-=v:r[i]-=Math.abs(v)}})),l}))}},ut={name:\\"VOL\\",shortName:\\"VOL\\",series:t.IndicatorSeries.Volume,calcParams:[5,10,20],shouldFormatBigNumber:!0,precision:0,minValue:0,figures:[{key:\\"ma1\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA20: \\",type:\\"line\\"},{key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}],regenerateFigures:function(t){var e=t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}));return e.push({key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}),e},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a,s=null!==(a=e.volume)&&void 0!==a?a:0,l={volume:s};return i.forEach((function(e,i){var a,u;n[i]=(null!==(a=n[i])&&void 0!==a?a:0)+s,e-1>r||(l[o[i].key]=n[i]/e,n[i]-=null!==(u=t[r-(e-1)].volume)&&void 0!==u?u:0)})),l}))}},ct={name:\\"WR\\",shortName:\\"WR\\",calcParams:[6,10,14],figures:[{key:\\"wr1\\",title:\\"WR1: \\",type:\\"line\\"},{key:\\"wr2\\",title:\\"WR2: \\",type:\\"line\\"},{key:\\"wr3\\",title:\\"WR3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"wr\\".concat(e+1),title:\\"WR\\".concat(e+1,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures;return t.map((function(e,n){var r={},a=e.close;return i.forEach((function(e,i){var s=e-1;if(n>=s){var l=K(t.slice(n-s,n+1),\\"high\\",\\"low\\"),u=l[0],c=u-l[1];r[o[i].key]=0===c?0:(a-u)/c*100}})),r}))}},ht={},dt=[rt,{name:\\"AO\\",shortName:\\"AO\\",calcParams:[5,34],figures:[{key:\\"ao\\",title:\\"AO: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.ao)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.ao)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return{color:l=c>u?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor),style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,borderColor:l}}}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=0;return t.map((function(e,l){var u,c={},h=(e.low+e.high)/2;(n+=h,r+=h,ll||(c.ao=a-s),c}))}},{name:\\"BIAS\\",shortName:\\"BIAS\\",calcParams:[6,12,24],figures:[{key:\\"bias1\\",title:\\"BIAS6: \\",type:\\"line\\"},{key:\\"bias2\\",title:\\"BIAS12: \\",type:\\"line\\"},{key:\\"bias3\\",title:\\"BIAS24: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"bias\\".concat(e+1),title:\\"BIAS\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,l){var u;if(n[l]=(null!==(u=n[l])&&void 0!==u?u:0)+s,r>=e-1){var c=n[l]/i[l];a[o[l].key]=(s-c)/c*100,n[l]-=t[r-(e-1)].close}})),a}))}},{name:\\"BOLL\\",shortName:\\"BOLL\\",series:t.IndicatorSeries.Price,calcParams:[20,2],precision:2,shouldOhlc:!0,figures:[{key:\\"up\\",title:\\"UP: \\",type:\\"line\\"},{key:\\"mid\\",title:\\"MID: \\",type:\\"line\\"},{key:\\"dn\\",title:\\"DN: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0;return t.map((function(e,r){var a={};if(n+=e.close,r>=o){a.mid=n/i[0];var s=function(t,e){var i=t.length,o=0;return t.forEach((function(t){var i=t.close-e;o+=i*i})),Math.sqrt((o=Math.abs(o))/i)}(t.slice(r-o,r+1),a.mid);a.up=a.mid+i[1]*s,a.dn=a.mid-i[1]*s,n-=t[r-o].close}return a}))}},{name:\\"BRAR\\",shortName:\\"BRAR\\",calcParams:[26],figures:[{key:\\"br\\",title:\\"BR: \\",type:\\"line\\"},{key:\\"ar\\",title:\\"AR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0;return t.map((function(e,s){var l,u,c={},h=e.high,d=e.low,p=e.open,v=(null!==(l=t[s-1])&&void 0!==l?l:e).close;if(r+=h-p,a+=p-d,o+=h-v,n+=v-d,s>=i[0]-1){c.ar=0!==a?r/a*100:0,c.br=0!==n?o/n*100:0;var g=t[s-(i[0]-1)],f=g.high,m=g.low,y=g.open,_=(null!==(u=t[s-i[0]])&&void 0!==u?u:t[s-(i[0]-1)]).close;o-=f-_,n-=_-m,r-=f-y,a-=y-m}return c}))}},{name:\\"BBI\\",shortName:\\"BBI\\",series:t.IndicatorSeries.Price,precision:2,calcParams:[3,6,12,24],shouldOhlc:!0,figures:[{key:\\"bbi\\",title:\\"BBI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max.apply(Math,B([],R(i),!1)),n=[],r=[];return t.map((function(e,a){var s={},l=e.close;if(i.forEach((function(e,i){var o;n[i]=(null!==(o=n[i])&&void 0!==o?o:0)+l,e-1>a||(r[i]=n[i]/e,n[i]-=t[a-(e-1)].close)})),a>=o-1){var u=0;r.forEach((function(t){u+=t})),s.bbi=u/4}return s}))}},{name:\\"CCI\\",shortName:\\"CCI\\",calcParams:[20],figures:[{key:\\"cci\\",title:\\"CCI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0,r=[];return t.map((function(e,a){var s={},l=(e.high+e.low+e.close)/3;if(n+=l,r.push(l),a>=o){var u=n/i[0],c=r.slice(a-o,a+1),h=0;c.forEach((function(t){h+=Math.abs(t-u)}));var d=h/i[0];s.cci=0!==d?(l-u)/d/.015:0,n-=(t[a-o].high+t[a-o].low+t[a-o].close)/3}return s}))}},{name:\\"CR\\",shortName:\\"CR\\",calcParams:[26,10,20,40,60],figures:[{key:\\"cr\\",title:\\"CR: \\",type:\\"line\\"},{key:\\"ma1\\",title:\\"MA1: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA2: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA3: \\",type:\\"line\\"},{key:\\"ma4\\",title:\\"MA4: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.ceil(i[1]/2.5+1),n=Math.ceil(i[2]/2.5+1),r=Math.ceil(i[3]/2.5+1),a=Math.ceil(i[4]/2.5+1),s=0,l=[],u=0,c=[],h=0,d=[],p=0,v=[],g=[];return t.forEach((function(e,f){var m,y,_,x,S,C={},b=null!==(m=t[f-1])&&void 0!==m?m:e,T=(b.high+b.close+b.low+b.open)/4,w=Math.max(0,e.high-T),E=Math.max(0,T-e.low);i[0]-1>f||(C.cr=0!==E?w/E*100:0,s+=C.cr,u+=C.cr,h+=C.cr,p+=C.cr,i[0]+i[1]-2>f||(l.push(s/i[1]),i[0]+i[1]+o-3>f||(C.ma1=l[l.length-1-o]),s-=null!==(y=g[f-(i[1]-1)].cr)&&void 0!==y?y:0),i[0]+i[2]-2>f||(c.push(u/i[2]),i[0]+i[2]+n-3>f||(C.ma2=c[c.length-1-n]),u-=null!==(_=g[f-(i[2]-1)].cr)&&void 0!==_?_:0),i[0]+i[3]-2>f||(d.push(h/i[3]),i[0]+i[3]+r-3>f||(C.ma3=d[d.length-1-r]),h-=null!==(x=g[f-(i[3]-1)].cr)&&void 0!==x?x:0),i[0]+i[4]-2>f||(v.push(p/i[4]),i[0]+i[4]+a-3>f||(C.ma4=v[v.length-1-a]),p-=null!==(S=g[f-(i[4]-1)].cr)&&void 0!==S?S:0)),g.push(C)})),g}},{name:\\"DMA\\",shortName:\\"DMA\\",calcParams:[10,50,10],figures:[{key:\\"dma\\",title:\\"DMA: \\",type:\\"line\\"},{key:\\"ama\\",title:\\"AMA: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c={},h=e.close;n+=h,r+=h;var d=0,p=0;if(i[0]-1>l||(d=n/i[0],n-=t[l-(i[0]-1)].close),i[1]-1>l||(p=r/i[1],r-=t[l-(i[1]-1)].close),l>=o-1){var v=d-p;c.dma=v,a+=v,o+i[2]-2>l||(c.ama=a/i[2],a-=null!==(u=s[l-(i[2]-1)].dma)&&void 0!==u?u:0)}s.push(c)})),s}},{name:\\"DMI\\",shortName:\\"DMI\\",calcParams:[14,6],figures:[{key:\\"pdi\\",title:\\"PDI: \\",type:\\"line\\"},{key:\\"mdi\\",title:\\"MDI: \\",type:\\"line\\"},{key:\\"adx\\",title:\\"ADX: \\",type:\\"line\\"},{key:\\"adxr\\",title:\\"ADXR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=0,l=0,u=0,c=0,h=[];return t.forEach((function(e,d){var p,v,g={},f=null!==(p=t[d-1])&&void 0!==p?p:e,m=f.close,y=e.high,_=e.low,x=y-_,S=Math.abs(y-m),C=Math.abs(m-_),b=y-f.high,T=f.low-_,w=Math.max(Math.max(x,S),C),E=b>0&&b>T?b:0,I=T>0&&T>b?T:0;if(o+=w,n+=E,r+=I,d>=i[0]-1){d>i[0]-1?(a=a-a/i[0]+w,s=s-s/i[0]+E,l=l-l/i[0]+I):(a=o,s=n,l=r);var D=0,P=0;0!==a&&(D=100*s/a,P=100*l/a),g.pdi=D,g.mdi=P;var M=0;P+D!==0&&(M=Math.abs(P-D)/(P+D)*100),u+=M,2*i[0]-2>d||(g.adx=c=d>2*i[0]-2?(c*(i[0]-1)+M)/i[0]:u/i[0],2*i[0]+i[1]-3>d||(g.adxr=((null!==(v=h[d-(i[1]-1)].adx)&&void 0!==v?v:0)+c)/2))}h.push(g)})),h}},{name:\\"EMV\\",shortName:\\"EMV\\",calcParams:[14,9],figures:[{key:\\"emv\\",title:\\"EMV: \\",type:\\"line\\"},{key:\\"maEmv\\",title:\\"MAEMV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.map((function(e,r){var a,s={};if(r>0){var l=t[r-1],u=e.high,c=e.low,h=null!==(a=e.volume)&&void 0!==a?a:0,d=(u+c)/2-(l.high+l.low)/2;if(0===h||u-c==0)s.emv=0;else s.emv=d/(h/1e8/(u-c));o+=s.emv,n.push(s.emv),i[0]>r||(s.maEmv=o/i[0],o-=n[r-i[0]])}return s}))}},at,{name:\\"MTM\\",shortName:\\"MTM\\",calcParams:[12,6],figures:[{key:\\"mtm\\",title:\\"MTM: \\",type:\\"line\\"},{key:\\"maMtm\\",title:\\"MAMTM: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.forEach((function(e,r){var a,s={};rr||(s.maMtm=o/i[1],o-=null!==(a=n[r-(i[1]-1)].mtm)&&void 0!==a?a:0));n.push(s)})),n}},st,{name:\\"MACD\\",shortName:\\"MACD\\",calcParams:[12,26,9],figures:[{key:\\"dif\\",title:\\"DIF: \\",type:\\"line\\"},{key:\\"dea\\",title:\\"DEA: \\",type:\\"line\\"},{key:\\"macd\\",title:\\"MACD: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.macd)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.macd)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return l=c>0?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):0>c?C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor):C(i.styles,\\"bars[0].noChangeColor\\",o.bars[0].noChangeColor),{style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,color:l,borderColor:l}}}],calc:function(t,e){var i,o,n=e.calcParams,r=0,a=0,s=0,l=0,u=Math.max(n[0],n[1]);return t.map((function(t,e){var c={},h=t.close;return r+=h,n[0]-1>e||(i=e>n[0]-1?(2*h+(n[0]-1)*i)/(n[0]+1):r/n[0]),n[1]-1>e||(o=e>n[1]-1?(2*h+(n[1]-1)*o)/(n[1]+1):r/n[1]),u-1>e||(c.dif=a=i-o,s+=a,u+n[2]-2>e||(c.macd=2*(a-(l=e>u+n[2]-2?(2*a+l*(n[2]-1))/(n[2]+1):s/n[2])),c.dea=l)),c}))}},{name:\\"OBV\\",shortName:\\"OBV\\",calcParams:[30],figures:[{key:\\"obv\\",title:\\"OBV: \\",type:\\"line\\"},{key:\\"maObv\\",title:\\"MAOBV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[];return t.forEach((function(e,a){var s,l,u,c,h=null!==(s=t[a-1])&&void 0!==s?s:e;h.close>e.close?n-=null!==(l=e.volume)&&void 0!==l?l:0:e.close>h.close&&(n+=null!==(u=e.volume)&&void 0!==u?u:0);var d={obv:n};o+=n,i[0]-1>a||(d.maObv=o/i[0],o-=null!==(c=r[a-(i[0]-1)].obv)&&void 0!==c?c:0),r.push(d)})),r}},{name:\\"PVT\\",shortName:\\"PVT\\",figures:[{key:\\"pvt\\",title:\\"PVT: \\",type:\\"line\\"}],calc:function(t){var e=0;return t.map((function(i,o){var n,r,a={},s=null!==(n=i.volume)&&void 0!==n?n:1,l=(null!==(r=t[o-1])&&void 0!==r?r:i).close,u=0,c=l*s;return 0!==c&&(u=(i.close-l)/c),a.pvt=e+=u,a}))}},{name:\\"PSY\\",shortName:\\"PSY\\",calcParams:[12,6],figures:[{key:\\"psy\\",title:\\"PSY: \\",type:\\"line\\"},{key:\\"maPsy\\",title:\\"MAPSY: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[],a=[];return t.forEach((function(e,s){var l,u,c={},h=(null!==(l=t[s-1])&&void 0!==l?l:e).close,d=e.close-h>0?1:0;r.push(d),o+=d,i[0]-1>s||(c.psy=o/i[0]*100,n+=c.psy,i[0]+i[1]-2>s||(c.maPsy=n/i[1],n-=null!==(u=a[s-(i[1]-1)].psy)&&void 0!==u?u:0),o-=r[s-(i[0]-1)]),a.push(c)})),a}},{name:\\"ROC\\",shortName:\\"ROC\\",calcParams:[12,6],figures:[{key:\\"roc\\",title:\\"ROC: \\",type:\\"line\\"},{key:\\"maRoc\\",title:\\"MAROC: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[],n=0;return t.forEach((function(e,r){var a,s,l={};if(r>=i[0]-1){var u=(null!==(a=t[r-i[0]])&&void 0!==a?a:t[r-(i[0]-1)]).close;l.roc=0!==u?(e.close-u)/u*100:0,n+=l.roc,i[0]-1+i[1]-1>r||(l.maRoc=n/i[1],n-=null!==(s=o[r-(i[1]-1)].roc)&&void 0!==s?s:0)}o.push(l)})),o}},lt,{name:\\"SMA\\",shortName:\\"SMA\\",series:t.IndicatorSeries.Price,calcParams:[12,2],precision:2,figures:[{key:\\"sma\\",title:\\"SMA: \\",type:\\"line\\"}],shouldOhlc:!0,calc:function(t,e){var i=e.calcParams,o=0,n=0;return t.map((function(t,e){var r={},a=t.close;return o+=a,i[0]-1>e||(r.sma=n=e>i[0]-1?(a*i[1]+n*(i[0]-i[1]+1))/(i[0]+1):o/i[0]),r}))}},{name:\\"KDJ\\",shortName:\\"KDJ\\",calcParams:[9,3,3],figures:[{key:\\"k\\",title:\\"K: \\",type:\\"line\\"},{key:\\"d\\",title:\\"D: \\",type:\\"line\\"},{key:\\"j\\",title:\\"J: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[];return t.forEach((function(e,n){var r,a,s,l,u={},c=e.close;if(n>=i[0]-1){var h=K(t.slice(n-(i[0]-1),n+1),\\"high\\",\\"low\\"),d=h[1],p=h[0]-d;u.k=((i[1]-1)*(null!==(a=null===(r=o[n-1])||void 0===r?void 0:r.k)&&void 0!==a?a:50)+(c-d)/(0===p?1:p)*100)/i[1],u.d=((i[2]-1)*(null!==(l=null===(s=o[n-1])||void 0===s?void 0:s.d)&&void 0!==l?l:50)+u.k)/i[2],u.j=3*u.k-2*u.d}o.push(u)})),o}},{name:\\"SAR\\",shortName:\\"SAR\\",series:t.IndicatorSeries.Price,calcParams:[2,2,20],precision:2,shouldOhlc:!0,figures:[{key:\\"sar\\",title:\\"SAR: \\",type:\\"circle\\",styles:function(t,e,i){var o,n,r=t.current,a=null!==(n=null===(o=r.indicatorData)||void 0===o?void 0:o.sar)&&void 0!==n?n:Number.MIN_SAFE_INTEGER,s=r.kLineData;return{color:((null==s?void 0:s.high)+(null==s?void 0:s.low))/2>a?C(e.styles,\\"circles[0].upColor\\",i.circles[0].upColor):C(e.styles,\\"circles[0].downColor\\",i.circles[0].downColor)}}}],calc:function(t,e){var i=e.calcParams,o=i[0]/100,n=i[1]/100,r=i[2]/100,a=o,s=-100,l=!1,u=0;return t.map((function(e,i){var c=u,h=e.high,d=e.low;if(l){(-100===s||h>s)&&(s=h,a=Math.min(a+n,r)),u=c+a*(s-c);var p=Math.min(t[Math.max(1,i)-1].low,d);u>e.low?(u=s,a=o,s=-100,l=!l):u>p&&(u=p)}else{(-100===s||s>d)&&(s=d,a=Math.min(a+n,r)),u=c+a*(s-c);var v=Math.max(t[Math.max(1,i)-1].high,h);e.high>u?(u=s,a=0,s=-100,l=!l):v>u&&(u=v)}return{sar:u}}))}},{name:\\"TRIX\\",shortName:\\"TRIX\\",calcParams:[12,9],figures:[{key:\\"trix\\",title:\\"TRIX: \\",type:\\"line\\"},{key:\\"maTrix\\",title:\\"MATRIX: \\",type:\\"line\\"}],calc:function(t,e){var i,o,n,r=e.calcParams,a=0,s=0,l=0,u=0,c=[];return t.forEach((function(t,e){var h,d={},p=t.close;if(a+=p,e>=r[0]-1&&(s+=i=e>r[0]-1?(2*p+(r[0]-1)*i)/(r[0]+1):a/r[0],e>=2*r[0]-2&&(l+=o=e>2*r[0]-2?(2*i+(r[0]-1)*o)/(r[0]+1):s/r[0],e>=3*r[0]-3))){var v=void 0,g=0;e>3*r[0]-3?g=((v=(2*o+(r[0]-1)*n)/(r[0]+1))-n)/n*100:v=l/r[0],n=v,d.trix=g,u+=g,3*r[0]+r[1]-4>e||(d.maTrix=u/r[1],u-=null!==(h=c[e-(r[1]-1)].trix)&&void 0!==h?h:0)}c.push(d)})),c}},ut,{name:\\"VR\\",shortName:\\"VR\\",calcParams:[26,6],figures:[{key:\\"vr\\",title:\\"VR: \\",type:\\"line\\"},{key:\\"maVr\\",title:\\"MAVR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c,h,d,p,v={},g=e.close,f=(null!==(u=t[l-1])&&void 0!==u?u:e).close,m=null!==(c=e.volume)&&void 0!==c?c:0;if(g>f?o+=m:f>g?n+=m:r+=m,l>=i[0]-1){var y=r/2;v.vr=n+y===0?0:(o+y)/(n+y)*100,a+=v.vr,i[0]+i[1]-2>l||(v.maVr=a/i[1],a-=null!==(h=s[l-(i[1]-1)].vr)&&void 0!==h?h:0);var _=t[l-(i[0]-1)],x=null!==(d=t[l-i[0]])&&void 0!==d?d:_,S=_.close,C=null!==(p=_.volume)&&void 0!==p?p:0;S>x.close?o-=C:x.close>S?n-=C:r-=C}s.push(v)})),s}},ct];function pt(t){var e;return null!==(e=ht[t])&&void 0!==e?e:null}dt.forEach((function(t){ht[t.name]=nt.extend(t)}));var vt,gt=function(){function e(t){this._instances=new Map,this._chartStore=t}return e.prototype._overrideInstance=function(t,e){var i=e.shortName,o=e.series,n=e.calcParams,r=e.precision,a=e.figures,s=e.minValue,l=e.maxValue,u=e.shouldOhlc,c=e.shouldFormatBigNumber,h=e.visible,d=e.styles,p=e.extendData,v=e.regenerateFigures,g=e.createTooltipDataSource,f=e.draw,m=e.calc,y=!1;void 0!==i&&t.setShortName(i)&&(y=!0),void 0!==o&&t.setSeries(o)&&(y=!0);var _=!1;return void 0!==n&&t.setCalcParams(n)&&(y=!0,_=!0),void 0!==a&&t.setFigures(a)&&(y=!0,_=!0),void 0!==s&&t.setMinValue(s)&&(y=!0),void 0!==l&&t.setMinValue(l)&&(y=!0),void 0!==r&&t.setPrecision(r)&&(y=!0),void 0!==u&&t.setShouldOhlc(u)&&(y=!0),void 0!==c&&t.setShouldFormatBigNumber(c)&&(y=!0),void 0!==h&&t.setVisible(h)&&(y=!0),void 0!==d&&t.setStyles(d)&&(y=!0),void 0!==p&&t.setExtendData(p)&&(y=!0,_=!0),void 0!==v&&t.setRegenerateFigures(v)&&(y=!0),void 0!==g&&t.setCreateTooltipDataSource(g)&&(y=!0),void 0!==f&&t.setDraw(f)&&(y=!0),void 0!==m&&(t.calc=m,_=!0),[y,_]},e.prototype.addInstance=function(t,e,i){var o;return A(this,void 0,void 0,(function(){var n,r,a,s;return F(this,(function(l){switch(l.label){case 0:return n=t.name,r=this._instances.get(e),null!==(o=null==r?void 0:r.has(n))&&void 0!==o&&o?[4,Promise.reject(Error(\\"Duplicate indicators.\\"))]:[3,2];case 1:case 3:return[2,l.sent()];case 2:return void 0===r&&(r=new Map,this._instances.set(e,r)),a=pt(n),s=new a,this._overrideInstance(s,t),i||r.clear(),r.set(n,s),[4,s.calcIndicator(this._chartStore.getDataList())]}}))}))},e.prototype.getInstances=function(t){var e;return null!==(e=this._instances.get(t))&&void 0!==e?e:new Map},e.prototype.removeInstance=function(t,e){var i=!1,o=this._instances.get(t);return void 0!==o&&(void 0!==e?o.has(e)&&(o.delete(e),i=!0):(o.clear(),i=!0),0===o.size&&this._instances.delete(t)),i},e.prototype.hasInstances=function(t){return this._instances.has(t)},e.prototype.calcInstance=function(t,e){var i;return A(this,void 0,void 0,(function(){var o,n,r,a=this;return F(this,(function(s){switch(s.label){case 0:return o=[],void 0!==t?void 0!==e?(n=this._instances.get(e),null!==(i=null==n?void 0:n.has(t))&&void 0!==i&&i&&(r=null==n?void 0:n.get(t),o.push(r.calcIndicator(this._chartStore.getDataList())))):this._instances.forEach((function(e){if(e.has(t)){var i=null==e?void 0:e.get(t);o.push(i.calcIndicator(a._chartStore.getDataList()))}})):this._instances.forEach((function(t){t.forEach((function(t){o.push(t.calcIndicator(a._chartStore.getDataList()))}))})),[4,Promise.all(o)];case 1:return[2,s.sent().includes(!0)]}}))}))},e.prototype.getInstanceByPaneId=function(t,e){var i;if(void 0!==t){var o=this._instances.get(t);return void 0!==e?null!==(i=null==o?void 0:o.get(e))&&void 0!==i?i:null:null!=o?o:null}return this._instances},e.prototype.setSeriesPrecision=function(e){this._instances.forEach((function(i){i.forEach((function(i){i.series===t.IndicatorSeries.Price&&i.setPrecision(e.price,!0),i.series===t.IndicatorSeries.Volume&&i.setPrecision(e.volume,!0)}))}))},e.prototype.override=function(t,e){return A(this,void 0,void 0,(function(){var i,o,n,r,a,s,l=this;return F(this,(function(u){switch(u.label){case 0:return i=t.name,o=new Map,null!==e?void 0!==(n=this._instances.get(e))&&o.set(e,n):o=this._instances,r=!1,a=[],o.forEach((function(e){var o=e.get(i);if(void 0!==o){var n=l._overrideInstance(o,t);n[1]?a.push(o.calcIndicator(l._chartStore.getDataList())):n[0]&&(r=!0)}})),[4,Promise.all(a)];case 1:return s=u.sent(),[2,[r,s.includes(!0)]]}}))}))},e}(),ft=function(){function t(t){this._crosshair={},this._activeIcon=null,this._chartStore=t}return t.prototype.setCrosshair=function(t,e){var i,o,n=this._chartStore.getDataList(),r=null!=t?t:{},a=n[o=void 0!==r.x?0>(i=this._chartStore.getTimeScaleStore().coordinateToDataIndex(r.x))?0:i>n.length-1?n.length-1:i:i=n.length-1],s=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(i),l=this._crosshair.x,u=this._crosshair.y,c=this._crosshair.paneId;this._crosshair=k(k({},r),{realX:s,kLineData:a,realDataIndex:i,dataIndex:o}),l===r.x&&u===r.y&&c===r.paneId||(null!==a&&this._chartStore.getChart().crosshairChange(this._crosshair),null!=e&&e||this._chartStore.getChart().updatePane(1))},t.prototype.recalculateCrosshair=function(t){this.setCrosshair(this._crosshair,t)},t.prototype.getCrosshair=function(){return this._crosshair},t.prototype.setActiveIcon=function(t){this._activeIcon=null!=t?t:null},t.prototype.getActiveIcon=function(){return this._activeIcon},t.prototype.clear=function(){this.setCrosshair({},!0),this.setActiveIcon()},t}();t.OverlayMode=void 0,(vt=t.OverlayMode||(t.OverlayMode={})).Normal=\\"normal\\",vt.WeakMagnet=\\"weak_magnet\\",vt.StrongMagnet=\\"strong_magnet\\";var mt=1,yt=\\"overlay_figure_\\",_t=Number.MAX_SAFE_INTEGER,xt=function(){function o(e){this.currentStep=mt,this.points=[],this._prevPressedPoint=null,this._prevPressedPoints=[];var i=e.mode,o=e.modeSensitivity,n=e.extendData,r=e.styles,a=e.totalStep,s=e.lock,l=e.visible,u=e.zLevel,c=e.needDefaultPointFigure,h=e.needDefaultXAxisFigure,d=e.needDefaultYAxisFigure,p=e.createPointFigures,v=e.createXAxisFigures,g=e.createYAxisFigures,f=e.performEventPressedMove,m=e.performEventMoveForDrawing,y=e.onDrawStart,_=e.onDrawing,x=e.onDrawEnd,S=e.onClick,C=e.onDoubleClick,b=e.onRightClick,T=e.onPressedMoveStart,w=e.onPressedMoving,E=e.onPressedMoveEnd,I=e.onMouseEnter,D=e.onMouseLeave,P=e.onRemoved,M=e.onSelected,k=e.onDeselected;this.name=e.name,this.totalStep=void 0===a||2>a?1:a,this.lock=null!=s&&s,this.visible=null==l||l,this.zLevel=null!=u?u:0,this.needDefaultPointFigure=null!=c&&c,this.needDefaultXAxisFigure=null!=h&&h,this.needDefaultYAxisFigure=null!=d&&d,this.mode=null!=i?i:t.OverlayMode.Normal,this.modeSensitivity=null!=o?o:8,this.extendData=n,this.styles=null!=r?r:{},this.createPointFigures=null!=p?p:null,this.createXAxisFigures=null!=v?v:null,this.createYAxisFigures=null!=g?g:null,this.performEventPressedMove=null!=f?f:null,this.performEventMoveForDrawing=null!=m?m:null,this.onDrawStart=null!=y?y:null,this.onDrawing=null!=_?_:null,this.onDrawEnd=null!=x?x:null,this.onClick=null!=S?S:null,this.onDoubleClick=null!=C?C:null,this.onRightClick=null!=b?b:null,this.onPressedMoveStart=null!=T?T:null,this.onPressedMoving=null!=w?w:null,this.onPressedMoveEnd=null!=E?E:null,this.onMouseEnter=null!=I?I:null,this.onMouseLeave=null!=D?D:null,this.onRemoved=null!=P?P:null,this.onSelected=null!=M?M:null,this.onDeselected=null!=k?k:null}return o.prototype.setId=function(t){return void 0===this.id&&(this.id=t,!0)},o.prototype.setGroupId=function(t){return void 0===this.groupId&&(this.groupId=t,!0)},o.prototype.setDefaultZLevel=function(t){return void 0===this.defaultZLevel&&(this.defaultZLevel=t,!0)},o.prototype.setPaneId=function(t){this.paneId=t},o.prototype.setExtendData=function(t){return t!==this.extendData&&(this.extendData=t,!0)},o.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},o.prototype.setPoints=function(t){if(t.length>0){var e=void 0;if(this.points=B([],R(t),!1),this.totalStep-1>t.length?(this.currentStep=t.length+1,e=t.length):(this.currentStep=-1,e=this.totalStep-1),null!==this.performEventMoveForDrawing)for(var i=0;e>i;i++)this.performEventMoveForDrawing({currentStep:i+2,mode:this.mode,points:this.points,performPointIndex:i,performPoint:this.points[i]});return-1===this.currentStep&&null!==this.performEventPressedMove&&this.performEventPressedMove({currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:this.points.length-1,performPoint:this.points[this.points.length-1]}),!0}return!1},o.prototype.setLock=function(t){return this.lock!==t&&(this.lock=t,!0)},o.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},o.prototype.resetZLevel=function(){this.zLevel=this.defaultZLevel},o.prototype.setZLevel=function(t){return this.zLevel!==t&&(this.zLevel=t,!0)},o.prototype.setMode=function(t){return this.mode!==t&&(this.mode=t,!0)},o.prototype.setModeSensitivity=function(t){return this.modeSensitivity!==t&&(this.modeSensitivity=t,!0)},o.prototype.setOnDrawStartCallback=function(t){return this.onDrawStart!==t&&(this.onDrawStart=t,!0)},o.prototype.setOnDrawingCallback=function(t){return this.onDrawing!==t&&(this.onDrawing=t,!0)},o.prototype.setOnDrawEndCallback=function(t){return this.onDrawEnd!==t&&(this.onDrawEnd=t,!0)},o.prototype.setOnClickCallback=function(t){return this.onClick!==t&&(this.onClick=t,!0)},o.prototype.setOnDoubleClickCallback=function(t){return this.onDoubleClick!==t&&(this.onDoubleClick=t,!0)},o.prototype.setOnRightClickCallback=function(t){return this.onRightClick!==t&&(this.onRightClick=t,!0)},o.prototype.setOnPressedMoveStartCallback=function(t){return this.onPressedMoveStart!==t&&(this.onPressedMoveStart=t,!0)},o.prototype.setOnPressedMovingCallback=function(t){return this.onPressedMoving!==t&&(this.onPressedMoving=t,!0)},o.prototype.setOnPressedMoveEndCallback=function(t){return this.onPressedMoveEnd!==t&&(this.onPressedMoveEnd=t,!0)},o.prototype.setOnMouseEnterCallback=function(t){return this.onMouseEnter!==t&&(this.onMouseEnter=t,!0)},o.prototype.setOnMouseLeaveCallback=function(t){return this.onMouseLeave!==t&&(this.onMouseLeave=t,!0)},o.prototype.setOnRemovedCallback=function(t){return this.onRemoved!==t&&(this.onRemoved=t,!0)},o.prototype.setOnSelectedCallback=function(t){return this.onSelected!==t&&(this.onSelected=t,!0)},o.prototype.setOnDeselectedCallback=function(t){return this.onDeselected!==t&&(this.onDeselected=t,!0)},o.prototype.nextStep=function(){this.currentStep===this.totalStep-1?this.currentStep=-1:this.currentStep++},o.prototype.forceComplete=function(){this.currentStep=-1},o.prototype.isDrawing=function(){return-1!==this.currentStep},o.prototype.isStart=function(){return this.currentStep===mt},o.prototype.eventMoveForDrawing=function(t){var e,i=this.currentStep-1,o={};void 0!==t.timestamp&&(o.timestamp=t.timestamp),void 0!==t.dataIndex&&(o.dataIndex=t.dataIndex),void 0!==t.value&&(o.value=t.value),this.points[i]=o,null===(e=this.performEventMoveForDrawing)||void 0===e||e.call(this,{currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:i,performPoint:o})},o.prototype.eventPressedPointMove=function(t,e){var i;void 0!==t.dataIndex&&(this.points[e].dataIndex=t.dataIndex,this.points[e].timestamp=t.timestamp),void 0!==t.value&&(this.points[e].value=t.value),null===(i=this.performEventPressedMove)||void 0===i||i.call(this,{currentStep:this.currentStep,points:this.points,mode:this.mode,performPointIndex:e,performPoint:this.points[e]})},o.prototype.startPressedMove=function(t){this._prevPressedPoint=k({},t),this._prevPressedPoints=i(this.points)},o.prototype.eventPressedOtherMove=function(t,e){var i,o;null!==this._prevPressedPoint&&(void 0!==t.dataIndex&&void 0!==this._prevPressedPoint.dataIndex&&(i=t.dataIndex-this._prevPressedPoint.dataIndex),void 0!==t.value&&void 0!==this._prevPressedPoint.value&&(o=t.value-this._prevPressedPoint.value),this.points=this._prevPressedPoints.map((function(t){var n;void 0===t.dataIndex&&void 0!==t.timestamp&&(t.dataIndex=e.timestampToDataIndex(t.timestamp));var r=k({},t);return void 0!==i&&void 0!==t.dataIndex&&(r.dataIndex=t.dataIndex+i,r.timestamp=null!==(n=e.dataIndexToTimestamp(r.dataIndex))&&void 0!==n?n:void 0),void 0!==o&&void 0!==t.value&&(r.value=t.value+o),r})))},o.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i}(o)},o}(),St={name:\\"fibonacciLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.precision,o=t.thousandsSeparator,n=t.overlay.points;if(e.length>0){var r=[],a=[],s=t.bounding.width;if(e.length>1&&void 0!==n[0].value&&void 0!==n[1].value){var l=e[0].y-e[1].y,u=n[0].value-n[1].value;[1,.786,.618,.5,.382,.236,0].forEach((function(t){var c,h=e[1].y+l*t,d=E(((null!==(c=n[1].value)&&void 0!==c?c:0)+u*t).toFixed(i.price),o);r.push({coordinates:[{x:0,y:h},{x:s,y:h}]}),a.push({x:0,y:h,text:\\"\\".concat(d,\\" (\\").concat((100*t).toFixed(1),\\"%)\\"),baseline:\\"bottom\\"})}))}return[{type:\\"line\\",attrs:r},{type:\\"text\\",isCheckEvent:!1,attrs:a}]}return[]}},Ct={name:\\"horizontalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i={x:0,y:e[0].y};return void 0!==e[1]&&e[1].x>e[0].x&&(i.x=t.bounding.width),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},bt=function(){function t(){this._children=[],this._callbacks=new Map}return t.prototype.registerEvent=function(t,e){return this._callbacks.set(t,e),this},t.prototype.onEvent=function(t,e,i){var o=this._callbacks.get(t);return!(void 0===o||!this.checkEventOn(e))&&o(e,i)},t.prototype.checkEventOn=function(t){var e,i;try{for(var o=L(this._children),n=o.next();!n.done;n=o.next()){if(n.value.checkEventOn(t))return!0}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return!1},t.prototype.dispatchEvent=function(t,e,i){var o=this._children.length-1;if(o>-1)for(var n=o;n>-1;n--)if(this._children[n].dispatchEvent(t,e,i))return!0;return this.onEvent(t,e,i)},t.prototype.addChild=function(t){return this._children.push(t),this},t.prototype.clear=function(){this._children=[]},t}(),Tt=2,wt=function(t){function e(e){var i=t.call(this)||this;return i.attrs=e.attrs,i.styles=e.styles,i}return P(e,t),e.prototype.checkEventOn=function(t){return this.checkEventOnImp(t,this.attrs,this.styles)},e.prototype.draw=function(t){this.drawImp(t,this.attrs,this.styles)},e.extend=function(t){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.checkEventOnImp=function(e,i,o){return t.checkEventOn(e,i,o)},i.prototype.drawImp=function(e,i,o){t.draw(e,i,o)},i}(e);return i},e}(bt);function Et(t,e){return Math.sqrt(Math.pow(t.x+e.x,2)+Math.pow(t.y+e.y,2))}function It(t){var e=Et(t[0],t[1]),i=e+Et(t[1],t[2]),o=[t[2].x-t[0].x,t[2].y-t[0].y];return[{x:t[1].x-.5*o[0]*e/i,y:t[1].y-.5*o[1]*e/i},{x:t[1].x+.5*o[0]*e/i,y:t[1].y+.5*o[1]*e/i}]}function Dt(t,e){var i=e.coordinates;if(i.length>1)for(var o=1;i.length>o;o++){var n=i[o-1],r=i[o];if(n.x===r.x){if(Tt+Tt>Math.abs(n.y-t.y)+Math.abs(r.y-t.y)-Math.abs(n.y-r.y)&&Tt>Math.abs(t.x-n.x))return!0}else{var a=kt(n,r),s=Pt(a,t),l=Math.abs(s-t.y);if(Tt+Tt>Math.abs(n.x-t.x)+Math.abs(r.x-t.x)-Math.abs(n.x-r.x)&&Tt*Tt>l*l/(a[0]*a[0]+1))return!0}}return!1}function Pt(t,e){return null!=t?e.x*t[0]+t[1]:e.y}function Mt(t,e,i){return Pt(kt(t,e),i)}function kt(t,e){var i=t.x-e.x;if(0!==i){var o=(t.y-e.y)/i;return[o,t.y-o*t.x]}return null}function At(e,i,o){var n=i.coordinates,r=n.length;if(r>1){var a=o.style,s=void 0===a?t.LineType.Solid:a,l=o.smooth,u=o.size,c=o.color,h=void 0===c?\\"currentColor\\":c,d=o.dashedValue,p=void 0===d?[2,2]:d;if(e.lineWidth=void 0===u?1:u,e.strokeStyle=h,e.setLineDash(s===t.LineType.Dashed?p:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y),null!=l&&l){for(var v=[],g=1;r-1>g;g++)v=v.concat(It([n[g-1],n[g],n[g+1]]));e.quadraticCurveTo(v[0].x,v[0].y,n[1].x,n[1].y);for(var f=2;r-1>f;f++)e.bezierCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,v[2*(f-1)].x,v[2*(f-1)].y,n[f].x,n[f].y);e.quadraticCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,n[f].x,n[f].y)}else for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.stroke(),e.closePath()}}var Ft={name:\\"line\\",checkEventOn:Dt,draw:function(t,e,i){At(t,e,i)}};function Lt(t,e,i){var o=null!=i?i:0,n=[];if(t.length>1)if(t[0].x===t[1].x){var r=e.height;if(n.push({coordinates:[{x:t[0].x,y:0},{x:t[0].x,y:r}]}),t.length>2){n.push({coordinates:[{x:t[2].x,y:0},{x:t[2].x,y:r}]});for(var a=t[0].x-t[2].x,s=0;o>s;s++){var l=a*(s+1);n.push({coordinates:[{x:t[0].x+l,y:0},{x:t[0].x+l,y:r}]})}}}else{var u=e.width,c=kt(t[0],t[1]),h=c[0],d=c[1];if(n.push({coordinates:[{x:0,y:0*h+d},{x:u,y:u*h+d}]}),t.length>2){var p=t[2].y-h*t[2].x;n.push({coordinates:[{x:0,y:0*h+p},{x:u,y:u*h+p}]});for(a=d-p,s=0;o>s;s++){var v=d+a*(s+1);n.push({coordinates:[{x:0,y:0*h+v},{x:u,y:u*h+v}]})}}}return n}function Rt(t,e){if(t.length>1){var i=void 0;return i=t[0].x===t[1].x&&t[0].y!==t[1].y?t[1].y>t[0].y?{x:t[0].x,y:e.height}:{x:t[0].x,y:0}:t[0].x>t[1].x?{x:0,y:Mt(t[0],t[1],{x:0,y:t[0].y})}:{x:e.width,y:Mt(t[0],t[1],{x:e.width,y:t[0].y})},{coordinates:[t[0],i]}}return[]}var Bt={name:\\"simpleAnnotation\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"},line:{style:t.LineType.Dashed}},createPointFigures:function(t){var e,i,o=t.overlay,r=t.coordinates;s(o.extendData)&&(i=n(o.extendData)?o.extendData(o):null!==(e=o.extendData)&&void 0!==e?e:\\"\\");var a=r[0].x,l=r[0].y-6,u=l-50,c=u-5;return[{type:\\"line\\",attrs:{coordinates:[{x:a,y:l},{x:a,y:u}]},ignoreEvent:!0},{type:\\"polygon\\",attrs:{coordinates:[{x:a,y:u},{x:a-4,y:c},{x:a+4,y:c}]},ignoreEvent:!0},{type:\\"text\\",attrs:{x:a,y:c,text:null!=i?i:\\"\\",align:\\"center\\",baseline:\\"bottom\\"},ignoreEvent:!0}]}},Ot={name:\\"simpleTag\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}},createPointFigures:function(t){var e=t.coordinates;return{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]},ignoreEvent:!0}},createYAxisFigures:function(t){var e,i,o,r,a,l=t.overlay,u=t.coordinates,c=t.bounding,h=t.yAxis,d=t.precision;return null!==(e=null==h?void 0:h.isFromZero())&&void 0!==e&&e?(o=\\"left\\",r=0):(o=\\"right\\",r=c.width),s(l.extendData)&&(a=n(l.extendData)?l.extendData(l):null!==(i=l.extendData)&&void 0!==i?i:\\"\\"),s(a)||void 0===l.points[0].value||(a=T(l.points[0].value,d.price)),{type:\\"text\\",attrs:{x:r,y:u[0].y,text:null!=a?a:\\"\\",align:o,baseline:\\"middle\\"}}}},Vt={};function Nt(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null}function Wt(t){var i={width:0,height:0,left:0,right:0,top:0,bottom:0};return void 0!==t&&e(i,t),i}[St,Ct,{name:\\"horizontalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=[];return 2===e.length&&i.push({coordinates:e}),[{type:\\"line\\",attrs:i}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},{name:\\"horizontalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]}}]}},{name:\\"parallelStraightLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding)}]}},{name:\\"priceChannelLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding,1)}]}},{name:\\"priceLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.thousandsSeparator,o=t.overlay.points[0].value;return[{type:\\"line\\",attrs:{coordinates:[e[0],{x:t.bounding.width,y:e[0].y}]}},{type:\\"text\\",ignoreEvent:!0,attrs:{x:e[0].x,y:e[0].y,text:E((void 0===o?0:o).toFixed(t.precision.price),i),baseline:\\"bottom\\"}}]}},{name:\\"rayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Rt(t.coordinates,t.bounding)}]}},{name:\\"segment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]}},{name:\\"straightLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.bounding;return 2===e.length?e[0].x===e[1].x?[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:i.height}]}}]:[{type:\\"line\\",attrs:{coordinates:[{x:0,y:Mt(e[0],e[1],{x:0,y:e[0].y})},{x:i.width,y:Mt(e[0],e[1],{x:i.width,y:e[0].y})}]}}]:[]}},{name:\\"verticalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;if(2===e.length){var i={x:e[0].x,y:0};return e[1].y>e[0].y&&(i.y=t.bounding.height),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]}return[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:t.bounding.height}]}}]}},Bt,Ot].forEach((function(t){Vt[t.name]=xt.extend(t)}));var zt=\\"main\\",Yt=\\"xAxis\\",Xt=\\"yAxis\\",Ht=\\"separator\\",jt=function(t){function i(e,i){var o=t.call(this)||this;return o._bounding=Wt(),o._pane=i,o._init(e),o}return P(i,t),i.prototype._init=function(t){if(this._container=Y(\\"div\\",this.getContainerStyle()),this.insertBefore()){var e=t.lastChild;null!==e?t.insertBefore(this._container,e):t.appendChild(this._container)}else t.appendChild(this._container);this.initDom(this._container)},i.prototype.setBounding=function(t){return e(this._bounding,t),this},i.prototype.getContainer=function(){return this._container},i.prototype.getBounding=function(){return this._bounding},i.prototype.getPane=function(){return this._pane},i.prototype.update=function(t){this.updateImp(this._container,this._bounding,null!=t?t:3)},i.prototype.insertBefore=function(){return!1},i}(bt);var Zt=function(e){function i(t,i){var o,n,r,a=e.call(this,t,i)||this;return a._dragFlag=!1,a._dragStartY=0,a._topPaneHeight=0,a._currentPaneHeight=0,a._pressedMouseMoveEvent=(o=a._pressedTouchMouseMoveEvent,n=20,r=0,function(){var t=Date.now();t-r>(null!=n?n:20)&&(o.apply(this,arguments),r=t)}),a.registerEvent(\\"touchStartEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"touchMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"touchEndEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"mouseDownEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"mouseUpEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"pressedMouseMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"mouseEnterEvent\\",a._mouseEnterEvent.bind(a)).registerEvent(\\"mouseLeaveEvent\\",a._mouseLeaveEvent.bind(a)),a}return P(i,e),i.prototype.getName=function(){return Ht},i.prototype.checkEventOn=function(){return!0},i.prototype._mouseDownEvent=function(t){var e,i;this._dragFlag=!0,this._dragStartY=t.pageY;var o=this.getPane();return this._topPaneHeight=null!==(i=null===(e=o.getTopPane())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,this._currentPaneHeight=o.getBounding().height,!0},i.prototype._mouseUpEvent=function(){return this._dragFlag=!1,this._mouseLeaveEvent()},i.prototype._pressedTouchMouseMoveEvent=function(e){var i=e.pageY-this._dragStartY,o=this.getPane(),n=o.getTopPane(),r=0>i;if(null!==n&&o.getOptions().dragEnabled){var a=void 0,s=void 0,l=void 0,u=void 0;r?(a=n,s=o,l=this._topPaneHeight,u=this._currentPaneHeight):(a=o,s=n,l=this._currentPaneHeight,u=this._topPaneHeight);var c=a.getOptions().minHeight;if(l>c){var h=Math.max(l-Math.abs(i),c),d=l-h;a.setBounding({height:h}),s.setBounding({height:u+d});var p=o.getChart();p.getChartStore().getActionStore().execute(t.ActionType.OnPaneDrag,{paneId:o.getId}),p.adjustPaneViewport(!0,!0,!0,!0,!0)}}return!0},i.prototype._mouseEnterEvent=function(){var t=this.getPane();if(t.getOptions().dragEnabled){var e=t.getChart().getStyles().separator;return this._moveDom.style.background=e.activeBackgroundColor,!0}return!1},i.prototype._mouseLeaveEvent=function(){return!this._dragFlag&&(this._moveDom.style.background=\\"\\",!0)},i.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",boxSizing:\\"border-box\\"}},i.prototype.insertBefore=function(){return!0},i.prototype.initDom=function(t){this._moveDom=Y(\\"div\\",{width:\\"100%\\",height:\\"\\".concat(7,\\"px\\"),margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"-3px\\",zIndex:\\"20\\",boxSizing:\\"border-box\\",cursor:\\"ns-resize\\"}),t.appendChild(this._moveDom)},i.prototype.updateImp=function(t,e,i){if(4===i||2===i){var o=this.getPane().getChart().getStyles().separator;this._moveDom.style.top=\\"\\".concat(-Math.floor((7-o.size)/2),\\"px\\"),this._moveDom.style.height=\\"\\".concat(7,\\"px\\");var n=o.fill;t.style.backgroundColor=o.color,t.style.height=\\"\\".concat(o.size,\\"px\\"),t.style.marginLeft=\\"\\".concat(n?0:e.left,\\"px\\"),t.style.width=n?\\"100%\\":\\"\\".concat(e.width,\\"px\\")}},i.prototype.getImage=function(){var t=this.getPane().getChart().getStyles().separator,e=this.getContainer().offsetWidth,i=t.size,o=Y(\\"canvas\\",{width:\\"\\".concat(e,\\"px\\"),height:\\"\\".concat(i,\\"px\\"),boxSizing:\\"border-box\\"}),n=o.getContext(\\"2d\\"),r=X(o);return o.width=e*r,o.height=i*r,n.scale(r,r),n.fillStyle=t.color,n.fillRect(this.getBounding().left,0,e,i),o},i}(jt),Gt=30,Kt={CANDLE:\\"candle_pane\\",INDICATOR:\\"indicator_pane_\\",XAXIS:\\"xaxis_pane\\"},Ut=function(){function t(t,e,i,o,n){this._yAxisWidget=null,this._separatorWidget=null,this._axis=this.createAxisComponent(),this._bounding=Wt(),this._options={minHeight:Gt,dragEnabled:!0,gap:{top:.2,bottom:.1},axisOptions:{scrollZoomEnabled:!0}},this._chart=e,this._id=i,this._topPane=null!=o?o:null,this._bottomPane=null!=n?n:null,this._init(t)}return t.prototype._init=function(t){this._container=t,this._seriesContainer=Y(\\"div\\",{width:\\"100%\\",margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}),this._separatorWidget=this.createSeparatorWidget(t);var e=t.lastChild;null!==e?t.insertBefore(this._seriesContainer,e):t.appendChild(this._seriesContainer),this._mainWidget=this.createMainWidget(this._seriesContainer),this._yAxisWidget=this.createYAxisWidget(this._seriesContainer)},t.prototype.getContainer=function(){return this._seriesContainer},t.prototype.getId=function(){return this._id},t.prototype.setOptions=function(t){var i,o,n,r,a;return e(this._options,t),this.getId()===Kt.XAXIS?(r=this.getMainWidget().getContainer(),a=\\"ew-resize\\"):(r=null===(i=this.getYAxisWidget())||void 0===i?void 0:i.getContainer(),a=\\"ns-resize\\"),r.style.cursor=null===(n=null===(o=t.axisOptions)||void 0===o?void 0:o.scrollZoomEnabled)||void 0===n||n?a:\\"default\\",this},t.prototype.getOptions=function(){return this._options},t.prototype.getChart=function(){return this._chart},t.prototype.getAxisComponent=function(){return this._axis},t.prototype.setBounding=function(t,i,o){var n,r,a;e(this._bounding,t);var s=0;if(null!==this._separatorWidget){s=this._chart.getStyles().separator.size;var l=k(k({},t),{height:7});void 0!==t.top&&(l.top=t.top-Math.floor((7-s)/2)),this._separatorWidget.setBounding(l)}var u={};return void 0!==t.height&&(u.height=t.height-s),void 0!==t.top&&(u.top=t.top+s),this._mainWidget.setBounding(u),null===(n=this._yAxisWidget)||void 0===n||n.setBounding(u),void 0!==i&&(this._mainWidget.setBounding(i),null===(r=this._separatorWidget)||void 0===r||r.setBounding(i)),void 0!==o&&(null===(a=this._yAxisWidget)||void 0===a||a.setBounding(o)),this},t.prototype.getTopPane=function(){return this._topPane},t.prototype.setTopPane=function(t){return this._topPane=t,this},t.prototype.getBottomPane=function(){return this._bottomPane},t.prototype.setBottomPane=function(t){return this._bottomPane=t,this},t.prototype.getBounding=function(){return this._bounding},t.prototype.getMainWidget=function(){return this._mainWidget},t.prototype.getYAxisWidget=function(){return this._yAxisWidget},t.prototype.getSeparatorWidget=function(){return this._separatorWidget},t.prototype.update=function(t){var e,i;this._bounding.width!==this._seriesContainer.offsetWidth&&(this._seriesContainer.style.width=\\"\\".concat(this._bounding.width,\\"px\\"));var o=this._mainWidget.getBounding().height;o!==this._seriesContainer.offsetHeight&&(this._seriesContainer.style.height=\\"\\".concat(o,\\"px\\"));var n=null!=t?t:3;this._mainWidget.update(n),null===(e=this._yAxisWidget)||void 0===e||e.update(n),null===(i=this._separatorWidget)||void 0===i||i.update(n)},t.prototype.getImage=function(t){var e=this._bounding,i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);n.width=i*a,n.height=o*a,r.scale(a,a);var s=0;if(null!=this._separatorWidget){var l=this.getChart().getStyles().separator.size;s=l,r.drawImage(this._separatorWidget.getImage(),0,0,i,l)}var u=this._mainWidget.getBounding();if(r.drawImage(this._mainWidget.getImage(t),u.left,s,u.width,u.height),null!==this._yAxisWidget){var c=this._yAxisWidget.getBounding();r.drawImage(this._yAxisWidget.getImage(t),c.left,s,c.width,c.height)}return n},t.prototype.destroy=function(){this._container.removeChild(this._seriesContainer),null!==this._separatorWidget&&this._container.removeChild(this._separatorWidget.getContainer())},t.prototype.createSeparatorWidget=function(t){return null},t.prototype.createYAxisWidget=function(t){return null},t}(),qt=function(){function t(t){this._instances=new Map,this._counter=new Map,this._progressInstanceInfo=null,this._pressedInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._hoverInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._clickInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._chartStore=t}return t.prototype._overrideInstance=function(t,e){var i=e.id,o=e.groupId,n=e.points,r=e.styles,a=e.lock,s=e.visible,l=e.zLevel,u=e.mode,c=e.modeSensitivity,h=e.extendData,d=e.onDrawStart,p=e.onDrawing,v=e.onDrawEnd,g=e.onClick,f=e.onDoubleClick,m=e.onRightClick,y=e.onPressedMoveStart,_=e.onPressedMoving,x=e.onPressedMoveEnd,S=e.onMouseEnter,C=e.onMouseLeave,b=e.onRemoved,T=e.onSelected,w=e.onDeselected,E=!1,I=!1;return void 0!==i&&t.setId(i),void 0!==o&&t.setGroupId(o),void 0!==n&&t.setPoints(n)&&(E=!0),void 0!==r&&t.setStyles(r)&&(E=!0),void 0!==a&&t.setLock(a),void 0!==s&&t.setVisible(s)&&(E=!0),void 0!==l&&t.setZLevel(l)&&(E=!0,I=!0),void 0!==u&&t.setMode(u),void 0!==c&&t.setModeSensitivity(c),void 0!==h&&t.setExtendData(h)&&(E=!0),void 0!==d&&t.setOnDrawStartCallback(d),void 0!==p&&t.setOnDrawingCallback(p),void 0!==v&&t.setOnDrawEndCallback(v),void 0!==g&&t.setOnClickCallback(g),void 0!==f&&t.setOnDoubleClickCallback(f),void 0!==m&&t.setOnRightClickCallback(m),void 0!==y&&t.setOnPressedMoveStartCallback(y),void 0!==_&&t.setOnPressedMovingCallback(_),void 0!==x&&t.setOnPressedMoveEndCallback(x),void 0!==S&&t.setOnMouseEnterCallback(S),void 0!==C&&t.setOnMouseLeaveCallback(C),void 0!==b&&t.setOnRemovedCallback(b),void 0!==T&&t.setOnSelectedCallback(T),void 0!==w&&t.setOnDeselectedCallback(w),[E,I]},t.prototype.getInstanceById=function(t){var e,i;try{for(var o=L(this._instances),n=o.next();!n.done;n=o.next()){var r=n.value[1].find((function(e){return e.id===t}));if(void 0!==r)return r}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return null!==this._progressInstanceInfo&&this._progressInstanceInfo.instance.id===t?this._progressInstanceInfo.instance:null},t.prototype._sort=function(t){var e;void 0!==t?null===(e=this._instances.get(t))||void 0===e||e.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel})):this._instances.forEach((function(t){t.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel}))}))},t.prototype.addInstances=function(t,e,i){var o=this,n=t.map((function(t){var n,r,a,s,l,u=null!==(n=t.id)&&void 0!==n?n:z(\\"overlay_\\");if(null===o.getInstanceById(u)){var c=Nt(t.name);if(null!==c){var h=new c,d=(null!==(r=o._counter.get(e))&&void 0!==r?r:0)+1;o._counter.set(e,d),h.setDefaultZLevel(d),h.setPaneId(e);var p=null!==(a=t.groupId)&&void 0!==a?a:u;return t.id=u,t.groupId=p,o._overrideInstance(h,t),h.isDrawing()?o._progressInstanceInfo={paneId:e,instance:h,appointPaneFlag:i}:(o._instances.has(e)||o._instances.set(e,[]),null===(s=o._instances.get(e))||void 0===s||s.push(h)),h.isStart()&&(null===(l=h.onDrawStart)||void 0===l||l.call(h,{overlay:h})),u}}return null}));return n.some((function(t){return null!==t}))&&(this._sort(),this._chartStore.getChart().updatePane(1,e)),n},t.prototype.getProgressInstanceInfo=function(){return this._progressInstanceInfo},t.prototype.progressInstanceComplete=function(){var t;if(null!==this._progressInstanceInfo){var e=this._progressInstanceInfo,i=e.instance,o=e.paneId;i.isDrawing()||(this._instances.has(o)||this._instances.set(o,[]),null===(t=this._instances.get(o))||void 0===t||t.push(i),this._sort(o),this._progressInstanceInfo=null)}},t.prototype.updateProgressInstanceInfo=function(t,e){null!==this._progressInstanceInfo&&(void 0!==e&&e&&(this._progressInstanceInfo.appointPaneFlag=e),this._progressInstanceInfo.paneId=t,this._progressInstanceInfo.instance.setPaneId(t))},t.prototype.getInstances=function(t){var e;if(void 0===t){var i=[];return this._instances.forEach((function(t){i=i.concat(t)})),i}return null!==(e=this._instances.get(t))&&void 0!==e?e:[]},t.prototype.override=function(t){var e=this,i=t.id,o=t.groupId,n=t.name,r=!1,a=!1,s=function(i){var o=e._overrideInstance(i,t);o[0]&&(r=!0),o[1]&&(a=!0)};if(void 0!==i){var l=this.getInstanceById(i);null!==l&&s(l)}else if(this._instances.forEach((function(t){t.forEach((function(t){(void 0!==n&&t.name===n||void 0!==o&&t.groupId===o||void 0===n&&void 0===o)&&s(t)}))})),null!==this._progressInstanceInfo){var u=this._progressInstanceInfo.instance;(void 0!==n&&u.name===n||void 0!==o&&u.groupId===o||void 0===n&&void 0===o)&&s(u)}a&&this._sort(),r&&this._chartStore.getChart().updatePane(1)},t.prototype.removeInstance=function(t){var e,i,o,n=function(t,e){if(void 0!==t.id){if(e.id!==t.id)return!1}else if(void 0!==t.groupId){if(e.groupId!==t.groupId)return!1}else if(void 0!==t.name&&e.name!==t.name)return!1;return!0},r=[];if(null!==this._progressInstanceInfo){var a=this._progressInstanceInfo.instance;(void 0===t||void 0!==t&&n(t,a))&&(r.push(this._progressInstanceInfo.paneId),null===(o=a.onRemoved)||void 0===o||o.call(a,{overlay:a}),this._progressInstanceInfo=null)}if(void 0!==t){var s=new Map,l=function(e){var i=e[1].filter((function(i){var o;return!n(t,i)||(r.includes(e[0])||r.push(e[0]),null===(o=i.onRemoved)||void 0===o||o.call(i,{overlay:i}),!1)}));i.length>0&&s.set(e[0],i)};try{for(var u=L(this._instances),c=u.next();!c.done;c=u.next()){l(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}this._instances=s}else this._instances.forEach((function(t,e){r.push(e),t.forEach((function(t){var e;null===(e=t.onRemoved)||void 0===e||e.call(t,{overlay:t})}))})),this._instances.clear();if(r.length>0){var h=this._chartStore.getChart();r.forEach((function(t){h.updatePane(1,t)})),h.updatePane(1,Kt.XAXIS)}},t.prototype.setPressedInstanceInfo=function(t){this._pressedInstanceInfo=t},t.prototype.getPressedInstanceInfo=function(){return this._pressedInstanceInfo},t.prototype.setHoverInstanceInfo=function(t,e){var i,o,r=this._hoverInstanceInfo,a=r.instance,s=r.figureKey,l=r.figureIndex;if(((null==a?void 0:a.id)!==(null===(i=t.instance)||void 0===i?void 0:i.id)||r.figureType!==t.figureType||l!==t.figureIndex)&&(this._hoverInstanceInfo=t,(null==a?void 0:a.id)!==(null===(o=t.instance)||void 0===o?void 0:o.id))){var u=!1,c=!1;null!==a&&(c=!0,a.resetZLevel(),n(a.onMouseLeave)&&(a.onMouseLeave(k({overlay:a,figureKey:s,figureIndex:l},e)),u=!0)),null!==t.instance&&(c=!0,t.instance.setZLevel(_t),n(t.instance.onMouseEnter)&&(t.instance.onMouseEnter(k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),u=!0)),c&&this._sort(),u||this._chartStore.getChart().updatePane(1)}},t.prototype.getHoverInstanceInfo=function(){return this._hoverInstanceInfo},t.prototype.setClickInstanceInfo=function(t,e){var i,o,n,r,a,s,l,u,c,h=this._clickInstanceInfo,d=h.paneId,p=h.instance,v=h.figureType,g=h.figureKey,f=h.figureIndex;if(null!==(o=null===(i=t.instance)||void 0===i?void 0:i.isDrawing())&&void 0!==o&&o||null===(r=null===(n=t.instance)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),((null==p?void 0:p.id)!==(null===(a=t.instance)||void 0===a?void 0:a.id)||v!==t.figureType||f!==t.figureIndex)&&(this._clickInstanceInfo=t,(null==p?void 0:p.id)!==(null===(s=t.instance)||void 0===s?void 0:s.id))){null===(l=null==p?void 0:p.onDeselected)||void 0===l||l.call(p,k({overlay:p,figureKey:g,figureIndex:f},e)),null===(c=null===(u=t.instance)||void 0===u?void 0:u.onSelected)||void 0===c||c.call(u,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e));var m=this._chartStore.getChart();m.updatePane(1,t.paneId),d!==t.paneId&&m.updatePane(1,d),m.updatePane(1,Kt.XAXIS)}},t.prototype.getClickInstanceInfo=function(){return this._clickInstanceInfo},t.prototype.isEmpty=function(){return 0===this._instances.size&&null===this._progressInstanceInfo},t.prototype.isDrawing=function(){var t,e;return null!==this._progressInstanceInfo&&null!==(e=null===(t=this._progressInstanceInfo)||void 0===t?void 0:t.instance.isDrawing())&&void 0!==e&&e},t}(),$t=function(){function t(){this._actions=new Map}return t.prototype.execute=function(t,e){var i;null===(i=this._actions.get(t))||void 0===i||i.execute(e)},t.prototype.subscribe=function(t,e){var i;this._actions.has(t)||this._actions.set(t,new V),null===(i=this._actions.get(t))||void 0===i||i.subscribe(e)},t.prototype.unsubscribe=function(t,e){var i=this._actions.get(t);void 0!==i&&(i.unsubscribe(e),i.isEmpty()&&this._actions.delete(t))},t.prototype.has=function(t){var e=this._actions.get(t);return void 0!==e&&!e.isEmpty()},t}(),Jt={light:{grid:{horizontal:{color:\\"#EDEDED\\"},vertical:{color:\\"#EDEDED\\"}},candle:{priceMark:{high:{color:\\"#76808F\\"},low:{color:\\"#76808F\\"}},tooltip:{rect:{color:\\"#FEFEFE\\",borderColor:\\"#F2F3F5\\"},text:{color:\\"#76808F\\"}}},indicator:{tooltip:{text:{color:\\"#76808F\\"}}},xAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},yAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},separator:{color:\\"#DDDDDD\\"},crosshair:{horizontal:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}},vertical:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}}}},dark:{grid:{horizontal:{color:\\"#292929\\"},vertical:{color:\\"#292929\\"}},candle:{priceMark:{high:{color:\\"#929AA5\\"},low:{color:\\"#929AA5\\"}},tooltip:{rect:{color:\\"rgba(10, 10, 10, .6)\\",borderColor:\\"rgba(10, 10, 10, .6)\\"},text:{color:\\"#929AA5\\"}}},indicator:{tooltip:{text:{color:\\"#929AA5\\"}}},xAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},yAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},separator:{color:\\"#333333\\"},crosshair:{horizontal:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}},vertical:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}}}}};function Qt(t){var e;return null!==(e=Jt[t])&&void 0!==e?e:null}var te=function(){function i(e,i){this._styles={grid:{show:!0,horizontal:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]},vertical:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]}},candle:{type:t.CandleType.CandleSolid,bar:{upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",upBorderColor:\\"#2DC08E\\",downBorderColor:\\"#F92855\\",noChangeBorderColor:\\"#888888\\",upWickColor:\\"#2DC08E\\",downWickColor:\\"#F92855\\",noChangeWickColor:\\"#888888\\"},area:{lineSize:2,lineColor:\\"#1677FF\\",value:\\"close\\",backgroundColor:[{offset:0,color:\\"rgba(22, 119, 255, 0.01)\\"},{offset:1,color:\\"rgba(22, 119, 255, 0.2)\\"}]},priceMark:{show:!0,high:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},low:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},last:{show:!0,upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,4],size:1},text:{show:!0,style:t.PolygonType.Fill,size:12,paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderColor:\\"transparent\\",borderStyle:t.LineType.Solid,borderSize:0,borderDashedValue:[2,2],color:\\"#FFFFFF\\",family:\\"Helvetica Neue\\",weight:\\"normal\\",borderRadius:2}}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,custom:null,defaultValue:\\"n/a\\",rect:{position:g.Fixed,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:8,offsetLeft:10,offsetTop:8,offsetRight:10,offsetBottom:8,borderRadius:4,borderSize:1,borderColor:\\"#F2F3F5\\",color:\\"#FEFEFE\\"},text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},indicator:{ohlc:{upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"},bars:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lines:[{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#FF9600\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#935EBD\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#1677FF\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#E11D74\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#01C5C4\\"}],circles:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lastValueMark:{show:!1,text:{show:!1,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderColor:\\"transparent\\",borderSize:1,borderDashedValue:[2,2],paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderRadius:2}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,showName:!0,showParams:!0,defaultValue:\\"n/a\\",text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},xAxis:{show:!0,size:\\"auto\\",axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},yAxis:{show:!0,size:\\"auto\\",type:t.YAxisType.Normal,position:t.YAxisPosition.Right,inside:!1,reverse:!1,axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},separator:{size:1,color:\\"#DDDDDD\\",fill:!0,activeBackgroundColor:\\"rgba(33, 150, 243, 0.08)\\"},crosshair:{show:!0,horizontal:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderColor:\\"#686D76\\",borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}},vertical:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#686D76\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}}},overlay:{point:{color:\\"#1677FF\\",borderColor:\\"rgba(22, 119, 255, 0.35)\\",borderSize:1,radius:5,activeColor:\\"#1677FF\\",activeBorderColor:\\"rgba(22, 119, 255, 0.35)\\",activeBorderSize:3,activeRadius:5},line:{style:t.LineType.Solid,smooth:!1,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},rect:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderRadius:0,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},polygon:{style:t.PolygonType.Fill,color:\\"#1677FF\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},circle:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},arc:{style:t.LineType.Solid,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},text:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:0,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,backgroundColor:\\"transparent\\"},rectText:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}}},this._customApi={formatDate:b,formatBigNumber:w},this._locale=I,this._precision={price:2,volume:0},this._thousandsSeparator=\\",\\",this._dataList=[],this._timeScaleStore=new it(this),this._indicatorStore=new gt(this),this._overlayStore=new qt(this),this._tooltipStore=new ft(this),this._actionStore=new $t,this._visibleDataList=[],this._chart=e,this.setOptions(i)}return i.prototype.adjustVisibleDataList=function(){this._visibleDataList=[];for(var t=this._timeScaleStore.getVisibleRange(),e=t.to,i=t.from;e>i;i++){var o=this._dataList[i],n=this._timeScaleStore.dataIndexToCoordinate(i);this._visibleDataList.push({dataIndex:i,x:n,data:o})}},i.prototype.setOptions=function(t){if(void 0!==t){var i=t.locale,o=t.timezone,n=t.styles,r=t.customApi;void 0!==i&&(this._locale=i),void 0!==o&&this._timeScaleStore.setTimezone(o),void 0!==n&&(u(n)?e(this._styles,Qt(n)):e(this._styles,n)),void 0!==r&&e(this._customApi,r),void 0!==t.thousandsSeparator&&(this._thousandsSeparator=t.thousandsSeparator)}return this},i.prototype.getStyles=function(){return this._styles},i.prototype.getLocale=function(){return this._locale},i.prototype.getCustomApi=function(){return this._customApi},i.prototype.getThousandsSeparator=function(){return this._thousandsSeparator},i.prototype.getPrecision=function(){return this._precision},i.prototype.setPrecision=function(t){return this._precision=t,this._indicatorStore.setSeriesPrecision(t),this},i.prototype.getDataList=function(){return this._dataList},i.prototype.getVisibleDataList=function(){return this._visibleDataList},i.prototype.addData=function(t,e,i){if(o(t)){this._timeScaleStore.setLoading(!1),this._timeScaleStore.setMore(null==i||i);var n=0===this._dataList.length;this._dataList=t.concat(this._dataList),n&&this._timeScaleStore.resetOffsetRightDistance(),this._timeScaleStore.adjustVisibleRange()}else{if(er&&this._timeScaleStore.setOffsetRightBarCount(--r),this._timeScaleStore.adjustVisibleRange()}}this._tooltipStore.recalculateCrosshair(!0)},i.prototype.clear=function(){this._dataList=[],this._visibleDataList=[],this._timeScaleStore.clear(),this._tooltipStore.clear()},i.prototype.getTimeScaleStore=function(){return this._timeScaleStore},i.prototype.getIndicatorStore=function(){return this._indicatorStore},i.prototype.getOverlayStore=function(){return this._overlayStore},i.prototype.getTooltipStore=function(){return this._tooltipStore},i.prototype.getActionStore=function(){return this._actionStore},i.prototype.getChart=function(){return this._chart},i}();function ee(t){return null==window.requestAnimationFrame?window.setTimeout(t,20):window.requestAnimationFrame(t)}function ie(t){null==window.cancelAnimationFrame&&window.clearTimeout(t),window.cancelAnimationFrame(t)}var oe=-1,ne=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._mainRequestAnimationId=oe,e._overlayRequestAnimationId=oe,e}return P(e,t),e.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"0\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}},e.prototype.initDom=function(t){this._mainCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._mainCtx=this._mainCanvas.getContext(\\"2d\\"),this._overlayCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._overlayCtx=this._overlayCanvas.getContext(\\"2d\\"),t.appendChild(this._mainCanvas),t.appendChild(this._overlayCanvas)},e.prototype._optimalUpdateMain=function(t,e){var i=this;this._mainRequestAnimationId!==oe&&(ie(this._mainRequestAnimationId),this._mainRequestAnimationId=oe),this._mainRequestAnimationId=ee((function(){if(t!==i._mainCanvas.offsetWidth||e!==i._mainCanvas.offsetHeight){i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);var o=X(i._mainCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._mainCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._mainCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._mainCanvas.width=n,i._mainCanvas.height=r,i._mainCtx.scale(o,o)}else i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);i.updateMain(i._mainCtx)}))},e.prototype._optimalUpdateOverlay=function(t,e){var i=this;this._overlayRequestAnimationId!==oe&&(ie(this._overlayRequestAnimationId),this._overlayRequestAnimationId=oe),this._overlayRequestAnimationId=ee((function(){if(t!==i._overlayCanvas.offsetWidth||e!==i._overlayCanvas.offsetHeight){i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);var o=X(i._overlayCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._overlayCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._overlayCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._overlayCanvas.width=n,i._overlayCanvas.height=r,i._overlayCtx.scale(o,o)}else i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);i.updateOverlay(i._overlayCtx)}))},e.prototype.updateImp=function(t,e,i){var o=e.width,n=e.height;t.style.left=\\"\\".concat(e.left,\\"px\\");var r=i;switch(o===t.offsetWidth&&n===t.offsetHeight||(t.style.width=\\"\\".concat(o,\\"px\\"),t.style.height=\\"\\".concat(n,\\"px\\"),r=3),r){case 0:this._optimalUpdateMain(o,n);break;case 1:this._optimalUpdateOverlay(o,n);break;case 3:case 4:this._optimalUpdateMain(o,n),this._optimalUpdateOverlay(o,n)}},e.prototype.getImage=function(t){var e=this.getBounding(),i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);return n.width=i*a,n.height=o*a,r.scale(a,a),r.drawImage(this._mainCanvas,0,0,i,o),t&&r.drawImage(this._overlayCanvas,0,0,i,o),n},e}(jt);function re(t,e){var i=t.x-e.x,o=t.y-e.y,n=e.r;return!(i*i+o*o>n*n)}function ae(e,i,o){var n=i.x,r=i.y,a=i.r,s=o.style,l=void 0===s?t.PolygonType.Fill:s,u=o.color,c=o.borderSize,h=void 0===c?1:c,d=o.borderColor,p=void 0===d?\\"currentColor\\":d,v=o.borderStyle,g=void 0===v?t.LineType.Solid:v,f=o.borderDashedValue,m=void 0===f?[2,2]:f;l!==t.PolygonType.Fill&&o.style!==t.PolygonType.StrokeFill||(e.fillStyle=void 0===u?\\"currentColor\\":u,e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.fill()),l!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||(e.strokeStyle=p,e.lineWidth=h,e.setLineDash(g===t.LineType.Dashed?m:[]),e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.stroke())}var se={name:\\"circle\\",checkEventOn:re,draw:function(t,e,i){ae(t,e,i)}};function le(t,e){for(var i=!1,o=e.coordinates,n=0,r=o.length-1;o.length>n;r=n++)o[n].y>t.y!=o[r].y>t.y&&(o[r].x-o[n].x)*(t.y-o[n].y)/(o[r].y-o[n].y)+o[n].x>t.x&&(i=!i);return i}function ue(e,i,o){var n=i.coordinates,r=o.style,a=void 0===r?t.PolygonType.Fill:r,s=o.color,l=o.borderSize,u=void 0===l?1:l,c=o.borderColor,h=void 0===c?\\"currentColor\\":c,d=o.borderStyle,p=void 0===d?t.LineType.Solid:d,v=o.borderDashedValue,g=void 0===v?[2,2]:v;if(a===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){e.fillStyle=void 0===s?\\"currentColor\\":s,e.beginPath(),e.moveTo(n[0].x,n[0].y);for(var f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.fill()}if(a===t.PolygonType.Stroke||o.style===t.PolygonType.StrokeFill){e.strokeStyle=h,e.lineWidth=u,e.setLineDash(p===t.LineType.Dashed?g:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y);for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.stroke()}}var ce={name:\\"polygon\\",checkEventOn:le,draw:function(t,e,i){ue(t,e,i)}};function he(t){return\\"transparent\\"===t}function de(t,e){var i=e.x,o=e.width;2*Tt>o&&(i-=Tt,o=2*Tt);var n=e.y,r=e.height;return 2*Tt>r&&(n-=Tt,r=2*Tt),!(i>t.x||t.x>i+o||n>t.y||t.y>n+r)}function pe(e,i,o){var n=i.x,r=i.y,a=i.width,s=i.height,l=o.style,c=void 0===l?t.PolygonType.Fill:l,h=o.color,d=void 0===h?\\"transparent\\":h,p=o.borderSize,v=void 0===p?1:p,g=o.borderColor,f=void 0===g?\\"transparent\\":g,m=o.borderStyle,y=void 0===m?t.LineType.Solid:m,_=o.borderRadius,x=void 0===_?0:_,S=o.borderDashedValue,C=void 0===S?[2,2]:S;if(c===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){var b=!0;u(d)&&(b=!he(d)),b&&(e.fillStyle=d,e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.fill())}c!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||he(f)||0>v||(e.strokeStyle=f,e.lineWidth=v,e.setLineDash(y===t.LineType.Dashed?C:[]),e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.stroke())}var ve={name:\\"rect\\",checkEventOn:de,draw:function(t,e,i){pe(t,e,i)}};function ge(t,e){var i,o,n=e.size,r=void 0===n?12:n,a=e.paddingLeft,s=e.paddingTop,l=void 0===s?0:s,u=e.paddingRight,c=void 0===u?0:u,h=e.paddingBottom,d=void 0===h?0:h,p=e.weight,v=t.x,g=t.y,f=t.align,m=void 0===f?\\"left\\":f,y=t.baseline,_=void 0===y?\\"top\\":y,x=t.width,S=t.height,C=null!=x?x:(void 0===a?0:a)+j(t.text,r,void 0===p?\\"normal\\":p,e.family)+c,b=null!=S?S:l+r+d;switch(m){case\\"left\\":case\\"start\\":i=v;break;case\\"right\\":case\\"end\\":i=v-C;break;default:i=v-C/2}switch(_){case\\"top\\":case\\"hanging\\":o=g;break;case\\"bottom\\":case\\"ideographic\\":case\\"alphabetic\\":o=g-b;break;default:o=g-b/2}return{x:i,y:o,width:C,height:b}}function fe(t,e,i){var o=ge(e,i),n=o.x,r=o.y;return!(n>t.x||t.x>n+o.width||r>t.y||t.y>r+o.height)}function me(t,e,i){var o=e.text,n=i.color,r=void 0===n?\\"currentColor\\":n,a=i.size,s=void 0===a?12:a,l=i.family,u=i.weight,c=i.paddingLeft,h=void 0===c?0:c,d=i.paddingTop,p=void 0===d?0:d,v=i.paddingRight,g=void 0===v?0:v,f=ge(e,i);pe(t,f,k(k({},i),{color:i.backgroundColor})),t.textAlign=\\"left\\",t.textBaseline=\\"top\\",t.font=H(s,u,l),t.fillStyle=r,t.fillText(o,f.x+h,f.y+p,f.width-h-g)}var ye={name:\\"text\\",checkEventOn:function(t,e,i){return fe(t,e,i)},draw:function(t,e,i){me(t,e,i)}},_e=me;function xe(t,e){if(Math.abs(Math.sqrt((h=(u=t).x-(c=e).x)*h+(d=u.y-c.y)*d)-e.r)Math.max(r,s)+Tt||Math.min(r,s)-Tt>t.x||t.y>Math.max(a,l)+Tt||Math.min(a,l)-Tt>t.y)}var u,c,h,d;return!1}function Se(e,i,o){var n=i.x,r=i.y,a=i.r,s=i.startAngle,l=i.endAngle,u=o.style,c=void 0===u?t.LineType.Solid:u,h=o.size,d=o.color,p=void 0===d?\\"currentColor\\":d,v=o.dashedValue,g=void 0===v?[2,2]:v;e.lineWidth=void 0===h?1:h,e.strokeStyle=p,e.setLineDash(c===t.LineType.Dashed?g:[]),e.beginPath(),e.arc(n,r,a,s,l),e.stroke(),e.closePath()}var Ce={name:\\"arc\\",checkEventOn:xe,draw:function(t,e,i){Se(t,e,i)}},be={};[se,Ft,ce,ve,ye,ye,Ce].forEach((function(t){be[t.name]=wt.extend(t)}));var Te=function(t){function e(e){var i=t.call(this)||this;return i._widget=e,i}return P(e,t),e.prototype.getWidget=function(){return this._widget},e.prototype.createFigure=function(t,e,i,o){var n=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null}(t);if(null!==n){var r=new n({name:t,attrs:e,styles:i});if(void 0!==o){for(var a in o)o.hasOwnProperty(a)&&r.registerEvent(a,o[a]);this.addChild(r)}return r}return null},e.prototype.draw=function(t){this.clear(),this.drawImp(t)},e}(bt),we=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=this.getWidget().getPane(),r=n.getChart(),a=o.getBounding(),s=r.getStyles().grid;if(s.show){t.save(),t.globalCompositeOperation=\\"destination-over\\";var l=s.horizontal;if(l.show)n.getAxisComponent().getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:0,y:e.coord},{x:a.width,y:e.coord}]},l))||void 0===o||o.draw(t)}));var u=s.vertical;if(u.show)(null===(e=r.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent()).getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:e.coord,y:0},{x:e.coord,y:a.height}]},u))||void 0===o||o.draw(t)}));t.restore()}},e}(Te),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.eachChildren=function(t){var e=this.getWidget().getPane().getChart().getChartStore(),i=e.getVisibleDataList(),o=e.getTimeScaleStore().getBarSpace();i.forEach((function(e,i){t(e,o,i)}))},e}(Te),Ie=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundCandleBarClickEvent=function(e){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnCandleBarClick,e),!1}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this,i=this.getWidget().getPane(),o=i.getId()===Kt.CANDLE,n=i.getChart().getChartStore(),r=this.getCandleBarOptions(n);if(null!==r){var a=i.getAxisComponent();this.eachChildren((function(i,n){e._drawCandleBar(t,a,i,n,r,o)}))}},i.prototype.getCandleBarOptions=function(t){var e=t.getStyles().candle;return{type:e.type,styles:e.bar}},i.prototype._drawCandleBar=function(e,i,o,n,r,a){var s,l,u,c=this,h=o.data,d=o.x,p=h.open,v=h.high,g=h.low,f=h.close,m=n.halfGapBar,y=n.gapBar,_=r.type,x=r.styles;f>p?(s=x.upColor,l=x.upBorderColor,u=x.upWickColor):p>f?(s=x.downColor,l=x.downBorderColor,u=x.downWickColor):(s=x.noChangeColor,l=x.noChangeBorderColor,u=x.noChangeWickColor);var S=i.convertToPixel(p),C=i.convertToPixel(f),b=[S,C,i.convertToPixel(v),i.convertToPixel(g)];b.sort((function(t,e){return t-e}));var T=Math.max(1,b[2]-b[1]),w=[];_!==t.CandleType.Ohlc?(w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[1]-b[0]},styles:{color:u}}),w.push(_===t.CandleType.CandleStroke||_===t.CandleType.CandleUpStroke&&f>p||_===t.CandleType.CandleDownStroke&&p>f?{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.Stroke,borderColor:l}}:{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.StrokeFill,color:s,borderColor:l}}),w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[2],width:1,height:b[3]-b[2]},styles:{color:u}})):w=[{name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[3]-b[0]},styles:{color:s}},{name:\\"rect\\",attrs:{x:d-m,y:S,width:m,height:1},styles:{color:s}},{name:\\"rect\\",attrs:{x:d,y:C,width:m,height:1},styles:{color:s}}],w.forEach((function(t){var i,n,r=t.attrs,s=t.styles;a&&(n={mouseClickEvent:c._boundCandleBarClickEvent(o)}),null===(i=c.createFigure(\\"rect\\",r,s,n))||void 0===i||i.draw(e)}))},i}(Ee),De=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.getCandleBarOptions=function(e){var i,o,n=this.getWidget().getPane();if(!n.getAxisComponent().isInCandle()){var r=e.getIndicatorStore().getInstances(n.getId());try{for(var a=L(r),s=a.next();!s.done;s=a.next()){var l=s.value[1];if(l.shouldOhlc&&l.visible){var u=l.styles,c=e.getStyles().indicator,h=C(u,\\"ohlc.upColor\\",c.ohlc.upColor),d=C(u,\\"ohlc.downColor\\",c.ohlc.downColor),p=C(u,\\"ohlc.noChangeColor\\",c.ohlc.noChangeColor);return{type:t.CandleType.Ohlc,styles:{upColor:h,downColor:d,noChangeColor:p,upBorderColor:h,downBorderColor:d,noChangeBorderColor:p,upWickColor:h,downWickColor:d,noChangeWickColor:p}}}}}catch(t){i={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}return null},i.prototype.drawImp=function(t){var i,o=this;e.prototype.drawImp.call(this,t);var n=this.getWidget(),r=n.getPane(),l=r.getChart(),u=n.getBounding(),c=null===(i=l.getPaneById(Kt.XAXIS))||void 0===i?void 0:i.getAxisComponent(),h=r.getAxisComponent(),d=l.getChartStore(),p=d.getDataList(),v=d.getTimeScaleStore(),g=v.getVisibleRange(),f=d.getIndicatorStore().getInstances(r.getId()),m=d.getStyles().indicator;f.forEach((function(e){var i;if(e.visible){var n=!1;if(null!==e.draw&&(t.save(),n=null!==(i=e.draw({ctx:t,kLineDataList:p,indicator:e,visibleRange:g,bounding:u,barSpace:v.getBarSpace(),defaultStyles:m,xAxis:c,yAxis:h}))&&void 0!==i&&i,t.restore()),!n){var r=e.result;o.eachChildren((function(i,n){var l,d,v,g=n.halfGapBar,f=n.gapBar,y=i.dataIndex,_=i.x,x=c.convertToPixel(y-1),S=c.convertToPixel(y+1),C=null!==(l=r[y-1])&&void 0!==l?l:{},b=null!==(d=r[y])&&void 0!==d?d:{},T=null!==(v=r[y+1])&&void 0!==v?v:{},w={x:x},E={x:_},I={x:S};e.figures.forEach((function(t){var e=t.key;w[e]=h.convertToPixel(C[e]),E[e]=h.convertToPixel(b[e]),I[e]=h.convertToPixel(T[e])})),ot(p,e,y,m,(function(e,i){var r,l,d;if(s(b[e.key])){var p=E[e.key],v=null===(r=e.attrs)||void 0===r?void 0:r.call(e,{coordinate:{prev:w,current:E,next:I},bounding:u,barSpace:n,xAxis:c,yAxis:h});if(!s(v))switch(e.type){case\\"circle\\":v={x:_,y:p,r:g};break;case\\"rect\\":case\\"bar\\":var m=null!==(l=e.baseValue)&&void 0!==l?l:h.getExtremum().min,y=h.convertToPixel(m),x=Math.abs(y-p);m!==b[e.key]&&(x=Math.max(1,x));v={x:_-g,y:p>y?y:p,width:f,height:x};break;case\\"line\\":a(E[e.key])&&a(I[e.key])&&(v={coordinates:[{x:E.x,y:E[e.key]},{x:I.x,y:I[e.key]}]})}if(s(v)){var S=e.type;null===(d=o.createFigure(\\"bar\\"===S?\\"rect\\":S,v,i))||void 0===d||d.draw(t)}}}))}))}}}))},i}(Ie),Pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=e.getBounding(),n=e.getPane().getChart().getChartStore(),r=n.getTooltipStore().getCrosshair(),a=n.getStyles().crosshair;if(void 0!==r.paneId&&a.show){if(r.paneId===i.getId()){var s=r.y;this._drawLine(t,[{x:0,y:s},{x:o.width,y:s}],a.horizontal)}var l=r.realX;this._drawLine(t,[{x:l,y:0},{x:l,y:o.height}],a.vertical)}},e.prototype._drawLine=function(t,e,i){var o;if(i.show){var n=i.line;n.show&&(null===(o=this.createFigure(\\"line\\",{coordinates:e},n))||void 0===o||o.draw(t))}},e}(Te),Me=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundIconClickEvent=function(e,o){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnTooltipIconClick,k(k({},e),{iconId:o})),!0}},i._boundIconMouseMoveEvent=function(t,e){return function(){return i.getWidget().getPane().getChart().getChartStore().getTooltipStore().setActiveIcon(k(k({},t),{iconId:e})),!0}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=i.getChart().getChartStore(),n=o.getTooltipStore().getCrosshair();if(void 0!==n.kLineData){var r=e.getBounding(),a=o.getCustomApi(),s=o.getThousandsSeparator(),l=o.getIndicatorStore().getInstances(i.getId()),u=o.getTooltipStore().getActiveIcon(),c=o.getStyles().indicator;this.drawIndicatorTooltip(t,i.getId(),o.getDataList(),n,u,l,a,s,r,c)}},i.prototype.drawIndicatorTooltip=function(t,e,i,o,n,r,a,s,l,u,c){var h=this,d=u.tooltip,p=0;if(this.isDrawTooltip(o,d)){var v=d.text,g=0,f=null!=c?c:0,m=0;r.forEach((function(r){var c=h.getIndicatorTooltipData(i,o,r,a,s,u),d=c.name,y=c.calcParamsText,_=c.values,x=d.length>0,S=_.length>0;if(x||S){var C=R(h.classifyTooltipIcons(c.icons),3),b=C[1],T=C[2],w=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,C[0],g,f,m),4);if(g=w[0],f=w[1],p+=w[3],m=w[2],x){var E=d;y.length>0&&(E=\\"\\".concat(E).concat(y));var I=R(h.drawStandardTooltipLabels(t,l,[{title:{text:\\"\\",color:v.color},value:{text:E,color:v.color}}],g,f,m,v),4);g=I[0],f=I[1],p+=I[3],m=I[2]}var D=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,b,g,f,m),4);if(g=D[0],f=D[1],p+=D[3],m=D[2],S){var P=R(h.drawStandardTooltipLabels(t,l,_,g,f,m,v),4);g=P[0],f=P[1],p+=P[3],m=P[2]}var M=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,T,g,f,m),4);g=0,p+=M[3],f=M[1]+M[2],m=0}}))}return p},i.prototype.drawStandardTooltipIcons=function(t,e,i,o,n,r,a,s){var l=this,u=r,c=a,h=0,d=0,p=0;return n.length>0&&(n.forEach((function(e){var i=e.marginLeft,o=e.marginTop,n=e.marginRight,r=e.marginBottom,a=e.paddingLeft,s=e.paddingTop,l=e.paddingRight,u=e.paddingBottom,c=e.size,p=e.icon;t.font=H(c,\\"normal\\",e.fontFamily),h+=i+a+t.measureText(p).width+l+n,d=Math.max(d,o+s+c+u+r)})),u+h>e.width?(u=n[0].marginLeft,c+=s,p=d):p=Math.max(0,d-s),n.forEach((function(e){var n,r=e.marginRight,a=e.paddingLeft,s=e.paddingRight,h=e.icon,d=(null==o?void 0:o.paneId)===i.paneId&&(null==o?void 0:o.indicatorName)===i.indicatorName&&(null==o?void 0:o.iconId)===e.id;null===(n=l.createFigure(\\"text\\",{text:h,x:u+=e.marginLeft,y:c+e.marginTop},{paddingLeft:a,paddingTop:e.paddingTop,paddingRight:s,paddingBottom:e.paddingBottom,color:d?e.activeColor:e.color,size:e.size,family:e.fontFamily,backgroundColor:d?e.activeBackgroundColor:e.backgroundColor},{mouseClickEvent:l._boundIconClickEvent(i,e.id),mouseMoveEvent:l._boundIconMouseMoveEvent(i,e.id)}))||void 0===n||n.draw(t),u+=a+t.measureText(h).width+s+r}))),[u,c,Math.max(s,d),p]},i.prototype.drawStandardTooltipLabels=function(t,e,i,o,n,r,a){var s=this,l=o,u=n,c=0,h=0,d=r;if(i.length>0){var p=a.marginLeft,v=a.marginTop,g=a.marginRight,f=a.marginBottom,m=a.size,y=a.family,_=a.weight;t.font=H(m,_,y),i.forEach((function(i){var o,n,r=i.title,a=i.value,x=t.measureText(r.text).width,S=t.measureText(a.text).width,C=m+v+f;l+p+(x+S)+g>e.width?(l=p,u+=C,h+=C):(l+=p,h+=Math.max(0,C-d)),d=c=Math.max(d,C),r.text.length>0&&(null===(o=s.createFigure(\\"text\\",{x:l,y:u+v,text:r.text},{color:r.color,size:m,family:y,weight:_}))||void 0===o||o.draw(t),l+=x),null===(n=s.createFigure(\\"text\\",{x:l,y:u+v,text:a.text},{color:a.color,size:m,family:y,weight:_}))||void 0===n||n.draw(t),l+=S+g}))}return[l,u,c,h]},i.prototype.isDrawTooltip=function(e,i){var o=i.showRule;return o===t.TooltipShowRule.Always||o===t.TooltipShowRule.FollowCross&&void 0!==e.paneId},i.prototype.getIndicatorTooltipData=function(t,e,i,o,n,a){var l,u,c,h=a.tooltip,d=h.showName?i.shortName:\\"\\",p=\\"\\",v=i.calcParams;v.length>0&&h.showParams&&(p=\\"(\\".concat(v.join(\\",\\"),\\")\\"));var g={name:d,calcParamsText:p,values:[],icons:h.icons},f=e.dataIndex,m=null!==(l=i.result)&&void 0!==l?l:[],y=[];if(i.visible){var _=null!==(u=m[f])&&void 0!==u?u:{};ot(t,i,f,a,(function(t,e){if(void 0!==t.title){var r=e.color,a=_[t.key];s(a)&&(a=T(a,i.precision),i.shouldFormatBigNumber&&(a=o.formatBigNumber(a))),y.push({title:{text:t.title,color:r},value:{text:E(null!=a?a:h.defaultValue,n),color:r}})}})),g.values=y}if(null!==i.createTooltipDataSource){var x=this.getWidget(),S=x.getPane(),C=S.getChart().getChartStore(),b=i.createTooltipDataSource({kLineDataList:t,indicator:i,visibleRange:C.getTimeScaleStore().getVisibleRange(),bounding:x.getBounding(),crosshair:e,defaultStyles:a,xAxis:null===(c=S.getChart().getPaneById(Kt.XAXIS))||void 0===c?void 0:c.getAxisComponent(),yAxis:S.getAxisComponent()}),w=b.name,I=b.calcParamsText,D=b.values,P=b.icons;if(void 0!==w&&h.showName&&(g.name=w),void 0!==I&&h.showParams&&(g.calcParamsText=I),void 0!==P&&(g.icons=P),void 0!==D&&i.visible){var M=[],k=a.tooltip.text.color;D.forEach((function(t){var e={text:\\"\\",color:k};r(t.title)?e=t.title:e.text=t.title;var i={text:\\"\\",color:k};r(t.value)?i=t.value:i.text=t.value,i.text=E(i.text,n),M.push({title:e,value:i})})),g.values=M}}return g},i.prototype.classifyTooltipIcons=function(e){var i=[],o=[],n=[];return e.forEach((function(e){switch(e.position){case t.TooltipIconPosition.Left:i.push(e);break;case t.TooltipIconPosition.Middle:o.push(e);break;case t.TooltipIconPosition.Right:n.push(e)}})),[i,o,n]},i}(Te),ke=function(e){function i(t){var i=e.call(this,t)||this;return i._initEvent(),i}return P(i,e),i.prototype._initEvent=function(){var t=this,e=this.getWidget().getPane(),i=e.getId(),o=e.getChart().getChartStore().getOverlayStore();this.registerEvent(\\"mouseMoveEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;a.isStart()&&(o.updateProgressInstanceInfo(i),s=i);var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);return a.isDrawing()&&s===i&&(a.eventMoveForDrawing(t._coordinateToPoint(r.instance,e)),null===(n=a.onDrawing)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))),t._figureMouseMoveEvent(a,1,u,l,0)(e)}return o.setHoverInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseClickEvent\\",(function(e){var n,r,a=o.getProgressInstanceInfo();if(null!==a){var s=a.instance,l=a.paneId;s.isStart()&&(o.updateProgressInstanceInfo(i,!0),l=i);var u=s.points.length-1,c=\\"\\".concat(yt,\\"point_\\").concat(u);return s.isDrawing()&&l===i&&(s.eventMoveForDrawing(t._coordinateToPoint(s,e)),null===(n=s.onDrawing)||void 0===n||n.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)),s.nextStep(),s.isDrawing()||(o.progressInstanceComplete(),null===(r=s.onDrawEnd)||void 0===r||r.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)))),t._figureMouseClickEvent(s,1,c,u,0)(e)}return o.setClickInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseDoubleClickEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;if(a.isDrawing()&&s===i&&(a.forceComplete(),!a.isDrawing())){o.progressInstanceComplete();var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);null===(n=a.onDrawEnd)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))}var c=a.points.length-1;return t._figureMouseClickEvent(a,1,\\"\\".concat(yt,\\"point_\\").concat(c),c,0)(e)}return!1})).registerEvent(\\"mouseRightClickEvent\\",(function(e){var i=o.getProgressInstanceInfo();if(null!==i){var n=i.instance;if(n.isDrawing()){var r=n.points.length-1;return t._figureMouseRightClickEvent(n,1,\\"\\".concat(yt,\\"point_\\").concat(r),r,0)(e)}}return!1})).registerEvent(\\"mouseUpEvent\\",(function(t){var e,n=o.getPressedInstanceInfo(),r=n.instance;return null!==r&&(null===(e=r.onPressedMoveEnd)||void 0===e||e.call(r,k({overlay:r,figureKey:n.figureKey,figureIndex:n.figureIndex},t))),o.setPressedInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1}),!1})).registerEvent(\\"pressedMouseMoveEvent\\",(function(e){var i,n,r=o.getPressedInstanceInfo(),a=r.instance,s=r.figureType,l=r.figureIndex;if(null!==a){if(!(a.lock||null!==(n=null===(i=a.onPressedMoving)||void 0===i?void 0:i.call(a,k({overlay:a,figureIndex:l,figureKey:r.figureKey},e)))&&void 0!==n&&n)){var u=t._coordinateToPoint(a,e);1===s?a.eventPressedPointMove(u,l):a.eventPressedOtherMove(u,t.getWidget().getPane().getChart().getChartStore().getTimeScaleStore())}return!0}return!1}))},i.prototype._createFigureEvents=function(t,e,i,o,n,r){var a;if(!t.isDrawing()){var s=[];if(void 0!==r&&(l(r)?r&&(s=[\\"mouseClickEvent\\",\\"mouseDoubleClickEvent\\",\\"mouseRightClickEvent\\",\\"tapEvent\\",\\"doubleTapEvent\\",\\"mouseDownEvent\\",\\"touchStartEvent\\",\\"mouseMoveEvent\\",\\"touchMoveEvent\\"]):s=r),0===s.length)return{mouseMoveEvent:this._figureMouseMoveEvent(t,e,i,o,n),mouseDownEvent:this._figureMouseDownEvent(t,e,i,o,n),mouseClickEvent:this._figureMouseClickEvent(t,e,i,o,n),mouseRightClickEvent:this._figureMouseRightClickEvent(t,e,i,o,n),mouseDoubleClickEvent:this._figureMouseDoubleClickEvent(t,e,i,o,n)};a={},s.includes(\\"mouseMoveEvent\\")||s.includes(\\"touchMoveEvent\\")||(a.mouseMoveEvent=this._figureMouseMoveEvent(t,e,i,o,n)),s.includes(\\"mouseDownEvent\\")||s.includes(\\"touchStartEvent\\")||(a.mouseDownEvent=this._figureMouseDownEvent(t,e,i,o,n)),s.includes(\\"mouseClickEvent\\")||s.includes(\\"tapEvent\\")||(a.mouseClickEvent=this._figureMouseClickEvent(t,e,i,o,n)),s.includes(\\"mouseDoubleClickEvent\\")||s.includes(\\"doubleTapEvent\\")||(a.mouseDoubleClickEvent=this._figureMouseDoubleClickEvent(t,e,i,o,n)),s.includes(\\"mouseRightClickEvent\\")||(a.mouseRightClickEvent=this._figureMouseRightClickEvent(t,e,i,o,n))}return a},i.prototype._figureMouseMoveEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane();return s.getChart().getChartStore().getOverlayStore().setHoverInstanceInfo({paneId:s.getId(),instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDownEvent=function(t,e,i,o,n){var r=this;return function(a){var s,l=r.getWidget().getPane(),u=l.getId(),c=l.getChart().getChartStore().getOverlayStore();return t.startPressedMove(r._coordinateToPoint(t,a)),null===(s=t.onPressedMoveStart)||void 0===s||s.call(t,k({overlay:t,figureIndex:o,figureKey:i},a)),c.setPressedInstanceInfo({paneId:u,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n}),!0}},i.prototype._figureMouseClickEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane(),l=s.getId();return s.getChart().getChartStore().getOverlayStore().setClickInstanceInfo({paneId:l,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDoubleClickEvent=function(t,e,i,o,n){return function(e){var n;return null===(n=t.onDoubleClick)||void 0===n||n.call(t,k(k({},e),{figureIndex:o,figureKey:i,overlay:t})),!0}},i.prototype._figureMouseRightClickEvent=function(t,e,i,o,n){var r=this;return function(e){var n,a;null!==(a=null===(n=t.onRightClick)||void 0===n?void 0:n.call(t,k({overlay:t,figureIndex:o,figureKey:i},e)))&&void 0!==a&&a||r.getWidget().getPane().getChart().getChartStore().getOverlayStore().removeInstance(t);return!0}},i.prototype._coordinateToPoint=function(e,i){var o,n,r={},a=this.getWidget().getPane(),s=a.getChart(),l=a.getId(),u=s.getChartStore().getTimeScaleStore();if(this.coordinateToPointTimestampDataIndexFlag()){var c=(null===(o=s.getPaneById(Kt.XAXIS))||void 0===o?void 0:o.getAxisComponent()).convertFromPixel(i.x),h=null!==(n=u.dataIndexToTimestamp(c))&&void 0!==n?n:void 0;r.dataIndex=c,r.timestamp=h}if(this.coordinateToPointValueFlag()){var d=a.getAxisComponent(),p=d.convertFromPixel(i.y);if(e.mode!==t.OverlayMode.Normal&&l===Kt.CANDLE&&void 0!==r.dataIndex){var v=u.getDataByDataIndex(r.dataIndex);if(null!==v){var g=e.modeSensitivity;if(p>v.high)if(e.mode===t.OverlayMode.WeakMagnet){var f=d.convertToPixel(v.high);d.convertFromPixel(f-g)>p&&(p=v.high)}else p=v.high;else if(v.low>p)if(e.mode===t.OverlayMode.WeakMagnet){var m=d.convertToPixel(v.low);p>d.convertFromPixel(m-g)&&(p=v.low)}else p=v.low;else{var y=Math.max(v.open,v.close),_=Math.min(v.open,v.close);p=p>y?v.high-p>p-y?y:v.high:_>p?_-p>p-v.low?v.low:_:p-_>y-p?y:_}}}r.value=p}return r},i.prototype.coordinateToPointValueFlag=function(){return!0},i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.dispatchEvent=function(t,i,o){return this.getWidget().getPane().getChart().getChartStore().getOverlayStore().isDrawing()?this.onEvent(t,i,o):e.prototype.dispatchEvent.call(this,t,i,o)},i.prototype.checkEventOn=function(){return!0},i.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart(),s=n.getAxisComponent(),l=null===(e=a.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent(),u=o.getBounding(),c=a.getChartStore(),h=c.getCustomApi(),d=c.getThousandsSeparator(),p=c.getTimeScaleStore(),v=p.getDateTimeFormat(),g=p.getBarSpace(),f=c.getPrecision(),m=c.getStyles().overlay,y=c.getOverlayStore(),_=y.getHoverInstanceInfo(),x=y.getClickInstanceInfo();this.getCompleteOverlays(y,r).forEach((function(e){e.visible&&i._drawOverlay(t,e,u,g,f,v,h,d,m,l,s,_,x,p)}));var S=y.getProgressInstanceInfo();if(null!==S){var C=this.getProgressOverlay(S,r);null!==C&&C.visible&&this._drawOverlay(t,C,u,g,f,v,h,d,m,l,s,_,x,p)}},i.prototype._drawOverlay=function(t,e,i,o,n,r,a,s,l,u,c,h,d,p){var v=e.points.map((function(t){var e,i,o=t.dataIndex;void 0!==t.timestamp&&(o=p.timestampToDataIndex(t.timestamp));var n={x:0,y:0};return void 0!==o&&(n.x=null!==(e=null==u?void 0:u.convertToPixel(o))&&void 0!==e?e:0),void 0!==t.value&&(n.y=null!==(i=null==c?void 0:c.convertToPixel(t.value))&&void 0!==i?i:0),n}));if(v.length>0){var g=[].concat(this.getFigures(e,v,i,o,n,s,r,l,u,c));this.drawFigures(t,e,g,l)}this.drawDefaultFigures(t,e,v,i,n,r,a,s,l,u,c,h,d)},i.prototype.drawFigures=function(t,e,i,o){var n=this;i.forEach((function(i,r){var a=i.type,s=i.styles,l=i.ignoreEvent;[].concat(i.attrs).forEach((function(u,c){var h,d,p,v=n._createFigureEvents(e,2,null!==(h=i.key)&&void 0!==h?h:\\"\\",r,c,l),g=k(k(k({},o[a]),null===(d=e.styles)||void 0===d?void 0:d[a]),s);null===(p=n.createFigure(a,u,g,v))||void 0===p||p.draw(t)}))}))},i.prototype.getCompleteOverlays=function(t,e){return t.getInstances(e)},i.prototype.getProgressOverlay=function(t,e){return t.paneId===e?t.instance:null},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createPointFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){var p,v,g=this;if(e.needDefaultPointFigure&&((null===(p=h.instance)||void 0===p?void 0:p.id)===e.id&&0!==h.figureType||(null===(v=d.instance)||void 0===v?void 0:v.id)===e.id&&0!==d.figureType)){var f=e.styles,m=k(k({},l.point),null==f?void 0:f.point);i.forEach((function(i,o){var n,r,a,s=i.x,l=i.y,u=m.radius,c=m.color,d=m.borderColor,p=m.borderSize;(null===(n=h.instance)||void 0===n?void 0:n.id)===e.id&&1===h.figureType&&h.figureIndex===o&&(u=m.activeRadius,c=m.activeColor,d=m.activeBorderColor,p=m.activeBorderSize),null===(r=g.createFigure(\\"circle\\",{x:s,y:l,r:u+p},{color:d},g._createFigureEvents(e,1,\\"\\".concat(yt,\\"point_\\").concat(o),o,0)))||void 0===r||r.draw(t),null===(a=g.createFigure(\\"circle\\",{x:s,y:l,r:u},{color:c}))||void 0===a||a.draw(t)}))}},i}(Te),Ae=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._gridView=new we(o),o._indicatorView=new De(o),o._crosshairLineView=new Pe(o),o._tooltipView=o.createTooltipView(),o._overlayView=new ke(o),o.addChild(o._tooltipView),o.addChild(o._overlayView),o.getContainer().style.cursor=\\"crosshair\\",o.registerEvent(\\"mouseMoveEvent\\",(function(){return i.getChart().getChartStore().getTooltipStore().setActiveIcon(),!1})),o}return P(e,t),e.prototype.getName=function(){return zt},e.prototype.updateMain=function(t){this.updateMainContent(t),this._indicatorView.draw(t),this._gridView.draw(t)},e.prototype.createTooltipView=function(){return new Me(this)},e.prototype.updateMainContent=function(t){},e.prototype.updateOverlay=function(t){this._overlayView.draw(t),this._crosshairLineView.draw(t),this._tooltipView.draw(t)},e}(ne),Fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i,n=this.getWidget(),r=n.getPane(),s=r.getChart(),l=n.getBounding(),u=r.getAxisComponent(),c=s.getStyles().candle.area,h=[],d=[],p=Number.MAX_SAFE_INTEGER;this.eachChildren((function(t,e,i){var o=t.x,n=e.halfGapBar,r=t.data[c.value];if(a(r)){var s=u.convertToPixel(r);if(0===i){var v=o-n;d.push({x:v,y:l.height}),d.push({x:v,y:s}),h.push({x:v,y:s})}h.push({x:o,y:s}),d.push({x:o,y:s}),p=Math.min(p,s)}}));var v=d.length;if(v>0){var g=d[v-1],f=g.x;h.push({x:f,y:g.y}),d.push({x:f,y:g.y}),d.push({x:f,y:l.height})}if(h.length>0&&(null===(e=this.createFigure(\\"line\\",{coordinates:h},{color:c.lineColor,size:c.lineSize}))||void 0===e||e.draw(t)),d.length>0){var m=c.backgroundColor,y=void 0;if(o(m)){var _=t.createLinearGradient(0,l.height,0,p);try{m.forEach((function(t){_.addColorStop(t.offset,t.color)}))}catch(t){}y=_}else y=m;null===(i=this.createFigure(\\"polygon\\",{coordinates:d},{color:y}))||void 0===i||i.draw(t)}},e}(Ee),Le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget().getPane(),i=e.getChart().getChartStore(),o=i.getStyles().candle.priceMark,n=o.high,r=o.low;if(o.show&&(n.show||r.show)){var a=i.getThousandsSeparator(),s=i.getPrecision(),l=e.getAxisComponent(),u=Number.MIN_SAFE_INTEGER,c=0,h=Number.MAX_SAFE_INTEGER,d=0;this.eachChildren((function(t){var e=t.data,i=t.x;e.high>u&&(u=e.high,c=i),h>e.low&&(h=e.low,d=i)}));var p=l.convertToPixel(u),v=l.convertToPixel(h);n.show&&u!==Number.MIN_SAFE_INTEGER&&this._drawMark(t,E(T(u,s.price),a),{x:c,y:p},v>p?[-2,-5]:[2,5],n),r.show&&h!==Number.MAX_SAFE_INTEGER&&this._drawMark(t,E(T(h,s.price),a),{x:d,y:v},v>p?[2,5]:[-2,-5],r)}},e.prototype._drawMark=function(t,e,i,o,n){var r,a,s,l,u,c,h=i.x,d=i.y+o[0];null===(r=this.createFigure(\\"line\\",{coordinates:[{x:h-2,y:d+o[0]},{x:h,y:d},{x:h+2,y:d+o[0]}]},{color:n.color}))||void 0===r||r.draw(t),h>this.getWidget().getBounding().width/2?(u=(l=h-5)-n.textOffset,c=\\"right\\"):(c=\\"left\\",u=(l=h+5)+n.textOffset);var p=d+o[1];null===(a=this.createFigure(\\"line\\",{coordinates:[{x:h,y:d},{x:h,y:p},{x:l,y:p}]},{color:n.color}))||void 0===a||a.draw(t),null===(s=this.createFigure(\\"text\\",{x:u,y:p,text:e,align:c,baseline:\\"middle\\"},{color:n.color,size:n.textSize,family:n.textFamily,weight:n.textWeight}))||void 0===s||s.draw(t)},e}(Ee),Re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getStyles().candle.priceMark,s=a.last,l=s.line;if(a.show&&s.show&&l.show){var u=o.getAxisComponent(),c=r.getDataList(),h=c[c.length-1];if(null!=h){var d=h.close,p=h.open,v=u.convertToNicePixel(d);null===(e=this.createFigure(\\"line\\",{coordinates:[{x:0,y:v},{x:n.width,y:v}]},{style:l.style,color:d>p?s.upColor:p>d?s.downColor:s.noChangeColor,size:l.size,dashedValue:l.dashedValue}))||void 0===e||e.draw(t)}}},e}(Te),Be={\\"zh-CN\\":{time:\\"时间:\\",open:\\"开:\\",high:\\"高:\\",low:\\"低:\\",close:\\"收:\\",volume:\\"成交量:\\",change:\\"涨幅:\\"},\\"en-US\\":{time:\\"Time: \\",open:\\"Open: \\",high:\\"High: \\",low:\\"Low: \\",close:\\"Close: \\",volume:\\"Volume: \\",change:\\"Change: \\"}};var Oe=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart().getChartStore(),s=a.getTooltipStore().getCrosshair();if(void 0!==s.kLineData){var l=o.getBounding(),u=null===(i=n.getYAxisWidget())||void 0===i?void 0:i.getBounding(),c=a.getDataList(),h=a.getPrecision(),d=a.getLocale(),p=a.getCustomApi(),v=a.getThousandsSeparator(),g=a.getTooltipStore().getActiveIcon(),f=a.getIndicatorStore().getInstances(n.getId()),m=a.getTimeScaleStore().getDateTimeFormat(),y=a.getStyles(),_=y.candle,x=y.indicator;if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Rect){var S=this.isDrawTooltip(s,_.tooltip),C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,C,y,0)}else if(_.tooltip.showType===t.TooltipShowType.Standard&&x.tooltip.showType===t.TooltipShowType.Standard){var b=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,b)}else if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Standard){var T=this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,0);S=this.isDrawTooltip(s,_.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,!1,y,T)}else{var w=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,!1,C,y,w)}}},i.prototype._drawCandleStandardTooltip=function(t,e,i,o,n,r,a,s,l,u,c,h){var d,p,v,g=h.tooltip,f=g.text,m=0;if(this.isDrawTooltip(n,g)){var y=null!==(d=n.dataIndex)&&void 0!==d?d:0,_=this._getCandleTooltipData({prev:null!==(p=e[y-1])&&void 0!==p?p:null,current:n.kLineData,next:null!==(v=e[y+1])&&void 0!==v?v:null},a,s,l,u,c,h),x=0,S=0,C=0,b=R(this.classifyTooltipIcons(g.icons),3),T=b[1],w=b[2],E=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,b[0],x,S,0),4);m+=E[3];var I=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,T,x=E[0],S=E[1],C=E[2]),4);if(x=I[0],S=I[1],m+=I[3],C=I[2],_.length>0){var D=R(this.drawStandardTooltipLabels(t,o,_,x,S,C,f),4);x=D[0],S=D[1],m+=D[3],C=D[2]}var P=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,w,x,S,C),4);x=P[0],S=P[1],m+=P[3],C=P[2]}return m},i.prototype._drawRectTooltip=function(e,i,o,n,r,a,s,l,u,c,h,d,p,v,f){var m,y,_,x,S,C=this,b=v.candle,T=v.indicator,w=b.tooltip,E=T.tooltip;if(d||p){var I=null!==(m=a.dataIndex)&&void 0!==m?m:0,D=this._getCandleTooltipData({prev:null!==(y=i[I-1])&&void 0!==y?y:null,current:a.kLineData,next:null!==(_=i[I+1])&&void 0!==_?_:null},s,l,u,c,h,b),P=w.text,M=P.marginLeft,k=P.marginRight,A=P.marginTop,F=P.marginBottom,L=P.size,R=P.weight,B=P.family,O=w.rect,V=O.position,N=O.paddingLeft,W=O.paddingRight,z=O.paddingTop,Y=O.paddingBottom,X=O.offsetLeft,j=O.offsetRight,Z=O.offsetTop,G=O.offsetBottom,K=O.borderSize,U=O.borderRadius,q=O.borderColor,$=O.color,J=0,Q=0,tt=0;d&&(e.font=H(L,R,B),D.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+M+k;J=Math.max(J,n)})),tt+=(F+A+L)*D.length);var et=E.text,it=et.marginLeft,ot=et.marginRight,nt=et.marginTop,rt=et.marginBottom,at=et.size,st=et.weight,lt=et.family,ut=[];if(p&&(e.font=H(at,st,lt),o.forEach((function(t){var o,n=null!==(o=C.getIndicatorTooltipData(i,a,t,c,h,T).values)&&void 0!==o?o:[];ut.push(n),n.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+it+ot;J=Math.max(J,n),tt+=nt+rt+at}))}))),0!==(Q+=J)&&0!==tt){Q+=2*K+N+W,tt+=2*K+z+Y;var ct=V===g.Pointer&&a.paneId===Kt.CANDLE,ht=(null!==(x=a.realX)&&void 0!==x?x:0)>n.width/2,dt=0;if(ct){var pt=a.realX;dt=ht?pt-j-Q:pt+X}else ht?(dt=X,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Left&&(dt+=r.width)):(dt=n.width-j-Q,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Right&&(dt-=r.width));var vt=f+Z;if(ct)(vt=a.y-tt/2)+tt>n.height-G&&(vt=n.height-G-tt),f+Z>vt&&(vt=f+Z);null===(S=this.createFigure(\\"rect\\",{x:dt,y:vt,width:Q,height:tt},{style:t.PolygonType.StrokeFill,color:$,borderColor:q,borderSize:K,borderRadius:U}))||void 0===S||S.draw(e);var gt=dt+K+N+M,ft=vt+K+z;if(d&&D.forEach((function(t){var i,o,n=t.title;null===(i=C.createFigure(\\"text\\",{x:gt,y:ft+=A,text:n.text},{color:n.color,size:L,family:B,weight:R}))||void 0===i||i.draw(e);var r=t.value;null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-k-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:L,family:B,weight:R}))||void 0===o||o.draw(e),ft+=L+F})),p){var mt=dt+K+N+it;ut.forEach((function(t){t.forEach((function(t){var i,o,n=t.title,r=t.value;null===(i=C.createFigure(\\"text\\",{x:mt,y:ft+=nt,text:n.text},{color:n.color,size:at,family:lt,weight:st}))||void 0===i||i.draw(e),null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-ot-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:at,family:lt,weight:st}))||void 0===o||o.draw(e),ft+=at+rt}))}))}}}},i.prototype._getCandleTooltipData=function(e,i,o,a,s,l,u){var c,h,d,p,v,g=u.tooltip,f=g.text.color,m=e.current,y=null!==(h=null===(c=e.prev)||void 0===c?void 0:c.close)&&void 0!==h?h:m.close,_=m.close-y,x=i.price,S=i.volume,C={\\"{time}\\":s.formatDate(o,m.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Tooltip),\\"{open}\\":E(T(m.open,x),l),\\"{high}\\":E(T(m.high,x),l),\\"{low}\\":E(T(m.low,x),l),\\"{close}\\":E(T(m.close,x),l),\\"{volume}\\":E(s.formatBigNumber(T(null!==(d=m.volume)&&void 0!==d?d:g.defaultValue,S)),l),\\"{change}\\":0===y?g.defaultValue:\\"\\".concat(T(_/y*100),\\"%\\")};return(null!==(v=n(g.custom)?null===(p=g.custom)||void 0===p?void 0:p.call(g,e,u):g.custom)&&void 0!==v?v:[{title:\\"time\\",value:\\"{time}\\"},{title:\\"open\\",value:\\"{open}\\"},{title:\\"high\\",value:\\"{high}\\"},{title:\\"low\\",value:\\"{low}\\"},{title:\\"close\\",value:\\"{close}\\"},{title:\\"volume\\",value:\\"{volume}\\"}]).map((function(t){var e,i=t.title,o=t.value,n={text:\\"\\",color:\\"\\"};r(i)?n=k({},i):(n.text=i,n.color=f),n.text=function(t,e){var i,o;return null!==(o=null===(i=Be[e])||void 0===i?void 0:i[t])&&void 0!==o?o:t}(n.text,a);var s={text:g.defaultValue,color:\\"\\"};r(o)?s=k({},o):(s.text=o,s.color=f);var l=s.text.match(/{(\\\\S*)}/);if(null!==l&&l.length>1){var c=\\"{\\".concat(l[1],\\"}\\");s.text=s.text.replace(c,null!==(e=C[c])&&void 0!==e?e:g.defaultValue),\\"{change}\\"===c&&(s.color=0===_?u.priceMark.last.noChangeColor:_>0?u.priceMark.last.upColor:u.priceMark.last.downColor)}return{title:n,value:s}}))},i}(Me),Ve=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o._candleBarView=new Ie(o),o._candleAreaView=new Fe(o),o._candleHighLowPriceView=new Le(o),o._candleLastPriceLineView=new Re(o),o.addChild(o._candleBarView),o}return P(i,e),i.prototype.updateMainContent=function(e){this.getPane().getChart().getStyles().candle.type!==t.CandleType.Area?(this._candleBarView.draw(e),this._candleHighLowPriceView.draw(e)):this._candleAreaView.draw(e),this._candleLastPriceLineView.draw(e)},i.prototype.createTooltipView=function(){return new Oe(this)},i}(Ae),Ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getAxisComponent(),s=this.getAxisStyles(n.getChart().getStyles());if(s.show){s.axisLine.show&&(null===(e=this.createFigure(\\"line\\",this.createAxisLine(r,s),s.axisLine))||void 0===e||e.draw(t));var l=a.getTicks();if(s.tickLine.show)this.createTickLines(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",e,s.tickLine))||void 0===o||o.draw(t)}));if(s.tickText.show)this.createTickTexts(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"text\\",e,s.tickText))||void 0===o||o.draw(t)}))}},e}(Te),We=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.yAxis},e.prototype.createAxisLine=function(t,e){var i,o=this.getWidget().getPane().getAxisComponent(),n=e.axisLine.size;return{coordinates:[{x:i=o.isFromZero()?n/2:t.width-n,y:0},{x:i,y:t.height}]}},e.prototype.createTickLines=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=0,s=0;return o.isFromZero()?(a=0,n.show&&(a+=n.size),s=a+r.length):(a=e.width,n.show&&(a-=n.size),s=a-r.length),t.map((function(t){return{coordinates:[{x:a,y:t.coord},{x:s,y:t.coord}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=i.tickText,s=0;o.isFromZero()?(s=a.marginStart,n.show&&(s+=n.size),r.show&&(s+=r.length)):(s=e.width-a.marginEnd,n.show&&(s-=n.size),r.show&&(s-=r.length));var l=this.getWidget().getPane().getAxisComponent().isFromZero()?\\"left\\":\\"right\\";return t.map((function(t){return{x:s,y:t.coord,text:t.text,align:l,baseline:\\"middle\\"}}))},e}(Ne),ze=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getChart().getChartStore(),s=a.getStyles().candle.priceMark,l=s.last,u=l.text;if(s.show&&l.show&&u.show){var c=a.getPrecision(),h=n.getAxisComponent(),d=a.getDataList(),p=a.getVisibleDataList(),v=d[d.length-1];if(void 0!==v){var g=v.close,f=v.open,m=h.convertToNicePixel(g),y=void 0;y=g>f?l.upColor:f>g?l.downColor:l.noChangeColor;var _=void 0;if(h.getType()===t.YAxisType.Percentage){var x=p[0].data.close;_=\\"\\".concat(((g-x)/x*100).toFixed(2),\\"%\\")}else _=T(g,c.price);_=E(_,a.getThousandsSeparator());var S=void 0,C=void 0;h.isFromZero()?(S=0,C=\\"left\\"):(S=r.width,C=\\"right\\"),null===(i=this.createFigure(\\"text\\",{x:S,y:m,text:_,align:C,baseline:\\"middle\\"},k(k({},u),{backgroundColor:y})))||void 0===i||i.draw(e)}}},i}(Te),Ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getCustomApi(),l=r.getStyles().indicator,u=l.lastValueMark,c=u.text;if(u.show){var h=o.getAxisComponent(),d=r.getDataList(),p=d.length-1,v=r.getIndicatorStore().getInstances(o.getId()),g=r.getThousandsSeparator();v.forEach((function(i){var o=i.result[p];if(void 0!==o&&i.visible){var r=i.precision;ot(d,i,p,l,(function(l,u){var d,p=o[l.key];if(s(p)){var v=h.convertToNicePixel(p),f=T(p,r);i.shouldFormatBigNumber&&(f=a.formatBigNumber(f)),f=E(f,g);var m=void 0,y=void 0;h.isFromZero()?(m=0,y=\\"left\\"):(m=n.width,y=\\"right\\"),null===(d=e.createFigure(\\"text\\",{x:m,y:v,text:f,align:y,baseline:\\"middle\\"},k(k({},c),{backgroundColor:u.color})))||void 0===d||d.draw(t)}}))}}))}},e}(Te),Xe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!1},e.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){this.drawFigures(t,e,this.getDefaultFigures(e,i,o,n,r,a,s,u,c,d),l)},e.prototype.getDefaultFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h,d=[];if(t.needDefaultYAxisFigure&&t.id===(null===(c=u.instance)||void 0===c?void 0:c.id)&&u.paneId===this.getWidget().getPane().getId()){var p,v,g=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;null!==(h=null==l?void 0:l.isFromZero())&&void 0!==h&&h?(p=\\"left\\",v=0):(p=\\"right\\",v=i.width),e.forEach((function(e,i){var n=t.points[i];if(void 0!==n.value){g=Math.min(g,e.y),f=Math.max(f,e.y);var r=E(T(n.value,o.price),a);d.push({type:\\"text\\",attrs:{x:v,y:e.y,text:r,align:p,baseline:\\"middle\\"},ignoreEvent:!0})}})),e.length>1&&d.unshift({type:\\"rect\\",attrs:{x:0,y:g,width:i.width,height:f-g},ignoreEvent:!0})}return d},e.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createYAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},e}(ke),He=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=i.getPane().getChart().getChartStore(),a=r.getTooltipStore().getCrosshair(),s=r.getStyles().crosshair;if(void 0!==a.paneId&&this.compare(a,o.getId())&&s.show){var l=this.getDirectionStyles(s),u=l.text;if(l.show&&u.show){var c=o.getAxisComponent(),h=this.getText(a,r,c);t.font=H(u.size,u.weight,u.family),null===(e=this.createFigure(\\"text\\",this.getTextAttrs(h,t.measureText(h).width,a,n,c,u),u))||void 0===e||e.draw(t)}}},i.prototype.compare=function(t,e){return t.paneId===e},i.prototype.getDirectionStyles=function(t){return t.horizontal},i.prototype.getText=function(e,i,o){var n,r,a,s=o,l=o.convertFromPixel(e.y);if(s.getType()===t.YAxisType.Percentage){var u=null!==(r=null===(n=i.getVisibleDataList()[0])||void 0===n?void 0:n.data)&&void 0!==r?r:{};a=\\"\\".concat(((l-u.close)/u.close*100).toFixed(2),\\"%\\")}else{var c=i.getIndicatorStore().getInstances(e.paneId),h=0,d=!1;s.isInCandle()?h=i.getPrecision().price:c.forEach((function(t){h=Math.max(t.precision,h),d||(d=t.shouldFormatBigNumber)})),a=T(l,h),d&&(a=i.getCustomApi().formatBigNumber(a))}return E(a,i.getThousandsSeparator())},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s;return n.isFromZero()?(a=0,s=\\"left\\"):(a=o.width,s=\\"right\\"),{x:a,y:i.y,text:t,align:s,baseline:\\"middle\\"}},i}(Te),je=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._yAxisView=new We(o),o._candleLastPriceLabelView=new ze(o),o._indicatorLastValueView=new Ye(o),o._overlayYAxisView=new Xe(o),o._crosshairHorizontalLabelView=new He(o),o.getContainer().style.cursor=\\"ns-resize\\",o.addChild(o._overlayYAxisView),o}return P(e,t),e.prototype.getName=function(){return Xt},e.prototype.updateMain=function(t){this._yAxisView.draw(t),this.getPane().getAxisComponent().isInCandle()&&this._candleLastPriceLabelView.draw(t),this._indicatorLastValueView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayYAxisView.draw(t),this._crosshairHorizontalLabelView.draw(t)},e}(ne),Ze=function(){function t(t){this._extremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._prevExtremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._ticks=[],this._autoCalcTickFlag=!0,this._parent=t}return t.prototype.getParent=function(){return this._parent},t.prototype.buildTicks=function(t){return this._autoCalcTickFlag&&(this._extremum=this.calcExtremum()),!(this._prevExtremum.min===this._extremum.min&&this._prevExtremum.max===this._extremum.max&&!t)&&(this._prevExtremum=this._extremum,this._ticks=this.optimalTicks(this._calcTicks()),!0)},t.prototype.getTicks=function(){return this._ticks},t.prototype.getScrollZoomEnabled=function(){var t;return null===(t=this.getParent().getOptions().axisOptions.scrollZoomEnabled)||void 0===t||t},t.prototype.setExtremum=function(t){this._autoCalcTickFlag=!1,this._extremum=t},t.prototype.getExtremum=function(){return this._extremum},t.prototype.setAutoCalcTickFlag=function(t){this._autoCalcTickFlag=t},t.prototype.getAutoCalcTickFlag=function(){return this._autoCalcTickFlag},t.prototype._calcTicks=function(){var t=this._extremum,e=t.realMin,i=t.realMax,o=t.realRange,n=[];if(o>=0){var r=R(this._calcTickInterval(o),2),a=r[0],s=r[1],l=G(Math.ceil(e/a)*a,s),u=G(Math.floor(i/a)*a,s),c=0,h=l;if(0!==a)for(;u>=h;){var d=h.toFixed(s);n[c]={text:d,coord:0,value:d},++c,h+=a}}return n},t.prototype._calcTickInterval=function(t){var e,i,o,n,r=(i=Math.floor(U(e=t/8)),o=q(i),e=(1.5>(n=e/o)?1:2.5>n?2:3.5>n?3:4.5>n?4:5.5>n?5:6.5>n?6:8)*o,-20>i?e:+e.toFixed(0>i?-i:0)),a=function(t){var e=\\"\\"+t,i=e.indexOf(\\"e\\");if(i>0){var o=+e.slice(i+1);return 0>o?-o:0}var n=e.indexOf(\\".\\");return 0>n?0:e.length-1-n}(r);return[r,a]},t}(),Ge=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var e,i,o,n,r,a=this.getParent(),l=a.getChart(),u=l.getChartStore(),c=Number.MAX_SAFE_INTEGER,h=Number.MIN_SAFE_INTEGER,d=[],p=!1,v=Number.MAX_SAFE_INTEGER,g=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER;u.getIndicatorStore().getInstances(a.getId()).forEach((function(t){var e,i,o;p||(p=null!==(e=t.shouldOhlc)&&void 0!==e&&e),f=Math.min(f,t.precision),null!==t.minValue&&(v=Math.min(v,t.minValue)),null!==t.maxValue&&(g=Math.max(g,t.maxValue)),d.push({figures:null!==(i=t.figures)&&void 0!==i?i:[],result:null!==(o=t.result)&&void 0!==o?o:[]})}));var m=4,y=this.isInCandle();if(y){var _=u.getPrecision().price;m=f!==Number.MAX_SAFE_INTEGER?Math.min(f,_):_}else f!==Number.MAX_SAFE_INTEGER&&(m=f);var x=u.getVisibleDataList(),S=l.getStyles().candle,C=S.type===t.CandleType.Area,b=S.area.value,T=y&&!C||!y&&p;x.forEach((function(t){var e=t.dataIndex,i=t.data;if(T&&(c=Math.min(c,i.low),h=Math.max(h,i.high)),y&&C){var o=i[b];c=Math.min(c,o),h=Math.max(h,o)}d.forEach((function(t){var i,o=null!==(i=t.result[e])&&void 0!==i?i:{};t.figures.forEach((function(t){var e=o[t.key];s(e)&&(c=Math.min(c,e),h=Math.max(h,e))}))}))})),c!==Number.MAX_SAFE_INTEGER&&h!==Number.MIN_SAFE_INTEGER?(c=Math.min(v,c),h=Math.max(g,h)):(c=0,h=10);var w,E=this.getType();switch(E){case t.YAxisType.Percentage:var I=null===(e=x[0])||void 0===e?void 0:e.data;void 0!==(null==I?void 0:I.close)&&(c=(c-I.close)/I.close*100,h=(h-I.close)/I.close*100),w=.01;break;case t.YAxisType.Log:c=U(c),h=U(h),w=.05*q(-m);break;default:w=q(-m)}if(c===h||w>Math.abs(c-h)){var D=v===c,P=g===h;c=D?c:P?c-8*w:c-4*w,h=P?h:D?h+8*w:h+4*w}var M=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,k=a.getOptions().gap,A=null!==(n=null==k?void 0:k.top)&&void 0!==n?n:.2;1>A||(A/=M);var F=null!==(r=null==k?void 0:k.bottom)&&void 0!==r?r:.1;1>F||(F/=M);var L,R,B,O=Math.abs(h-c);return O=Math.abs((h+=O*A)-(c-=O*F)),E===t.YAxisType.Log?(L=q(c),R=q(h),B=Math.abs(R-L)):(L=c,R=h,B=O),{min:c,max:h,range:O,realMin:L,realMax:R,realRange:B}},i.prototype._innerConvertToPixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.getExtremum(),r=(t-n.min)/n.range;return this.isReverse()?Math.round(r*o):Math.round((1-r)*o)},i.prototype.isInCandle=function(){return\\"candle\\"===this.getParent().getName()},i.prototype.getType=function(){return this.isInCandle()?this.getParent().getChart().getStyles().yAxis.type:t.YAxisType.Normal},i.prototype.getPosition=function(){return this.getParent().getChart().getStyles().yAxis.position},i.prototype.isReverse=function(){return!!this.isInCandle()&&this.getParent().getChart().getStyles().yAxis.reverse},i.prototype.isFromZero=function(){var e=this.getParent().getChart().getStyles().yAxis,i=e.inside;return e.position===t.YAxisPosition.Left&&i||e.position===t.YAxisPosition.Right&&!i},i.prototype.optimalTicks=function(e){var i,o,n=this,r=this.getParent(),a=null!==(o=null===(i=r.getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,s=r.getChart().getChartStore(),l=s.getCustomApi(),u=[],c=this.getType(),h=s.getIndicatorStore().getInstances(r.getId()),d=s.getThousandsSeparator(),p=0,v=!1;this.isInCandle()?p=s.getPrecision().price:h.forEach((function(t){p=Math.max(p,t.precision),v||(v=t.shouldFormatBigNumber)}));var g,f=s.getStyles().xAxis.tickText.size;return e.forEach((function(e){var i,o=e.value,r=n._innerConvertToPixel(+o);switch(c){case t.YAxisType.Percentage:i=\\"\\".concat(T(o,2),\\"%\\");break;case t.YAxisType.Log:r=n._innerConvertToPixel(U(+o)),i=T(o,p);break;default:i=T(o,p),v&&(i=l.formatBigNumber(o))}i=E(i,d),r>f&&a-f>r&&(void 0!==g&&Math.abs(g-r)>2*f||void 0===g)&&(u.push({text:i,coord:r,value:o}),g=r)})),u},i.prototype.getAutoSize=function(){var e=this.getParent(),i=e.getChart(),o=i.getStyles(),n=o.yAxis,r=n.size;if(\\"auto\\"!==r)return r;var a=i.getChartStore(),s=a.getCustomApi(),l=0;if(n.show&&(n.axisLine.show&&(l+=n.axisLine.size),n.tickLine.show&&(l+=n.tickLine.length),n.tickText.show)){var u=0;this.getTicks().forEach((function(t){u=Math.max(u,j(t.text,n.tickText.size,n.tickText.weight,n.tickText.family))})),l+=n.tickText.marginStart+n.tickText.marginEnd+u}var c=o.crosshair,h=0;if(c.show&&c.horizontal.show&&c.horizontal.text.show){var d=a.getIndicatorStore().getInstances(e.getId()),p=0,v=!1;d.forEach((function(t){p=Math.max(t.precision,p),v||(v=t.shouldFormatBigNumber)}));var g=2;if(this.getType()!==t.YAxisType.Percentage)if(this.isInCandle()){var f=a.getPrecision().price,m=o.indicator.lastValueMark;g=m.show&&m.text.show?Math.max(p,f):f}else g=p;var y=T(this.getExtremum().max,g);v&&(y=s.formatBigNumber(y)),h+=c.horizontal.text.paddingLeft+c.horizontal.text.paddingRight+2*c.horizontal.text.borderSize+j(y,c.horizontal.text.size,c.horizontal.text.weight,c.horizontal.text.family)}return Math.max(l,h)},i.prototype.convertFromPixel=function(e){var i,o,n,r=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,a=this.getExtremum(),s=a.min,l=a.range,u=(this.isReverse()?e/r:1-e/r)*l+s;switch(this.getType()){case t.YAxisType.Percentage:var c=null===(n=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===n?void 0:n.data;return void 0!==(null==c?void 0:c.close)?c.close*u/100+c.close:0;case t.YAxisType.Log:return q(u);default:return u}},i.prototype.convertToRealValue=function(e){var i=e;return this.getType()===t.YAxisType.Log&&(i=q(e)),i},i.prototype.convertToPixel=function(e){var i,o=e;switch(this.getType()){case t.YAxisType.Percentage:var n=null===(i=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===i?void 0:i.data;void 0!==(null==n?void 0:n.close)&&(o=(e-n.close)/n.close*100);break;case t.YAxisType.Log:o=U(e);break;default:o=e}return this._innerConvertToPixel(o)},i.prototype.convertToNicePixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.convertToPixel(t);return Math.round(Math.max(.05*o,Math.min(n,.98*o)))},i}(Ze),Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"indicator\\"},e.prototype.createAxisComponent=function(){return new Ge(this)},e.prototype.createMainWidget=function(t){return new Ae(t,this)},e.prototype.createSeparatorWidget=function(t){return new Zt(t,this)},e.prototype.createYAxisWidget=function(t){return new je(t,this)},e}(Ut),Ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"candle\\"},e.prototype.createMainWidget=function(t){return new Ve(t,this)},e.prototype.createSeparatorWidget=function(){return null},e}(Ke),qe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.xAxis},e.prototype.createAxisLine=function(t,e){var i=e.axisLine.size/2;return{coordinates:[{x:0,y:i},{x:t.width,y:i}]}},e.prototype.createTickLines=function(t,e,i){var o=i.tickLine,n=i.axisLine.size;return t.map((function(t){return{coordinates:[{x:t.coord,y:0},{x:t.coord,y:n+o.length}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=i.tickText,n=i.axisLine.size,r=i.tickLine.length;return t.map((function(t){return{x:t.coord,y:n+r+o.marginStart,text:t.text,align:\\"center\\",baseline:\\"top\\"}}))},e}(Ne),$e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.coordinateToPointValueFlag=function(){return!1},i.prototype.getCompleteOverlays=function(t){return t.getInstances()},i.prototype.getProgressOverlay=function(t){return t.instance},i.prototype.getDefaultFigures=function(e,i,o,n,r,a,s,l,u,c){var h,d=[];if(e.needDefaultXAxisFigure&&e.id===(null===(h=c.instance)||void 0===h?void 0:h.id)){var p=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER;i.forEach((function(i,o){p=Math.min(p,i.x),v=Math.max(v,i.x);var n=e.points[o];if(void 0!==n.timestamp){var s=a.formatDate(r,n.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair);d.push({type:\\"text\\",attrs:{x:i.x,y:0,text:s,align:\\"center\\"},ignoreEvent:!0})}})),i.length>1&&d.unshift({type:\\"rect\\",attrs:{x:p,y:0,width:v-p,height:o.height},ignoreEvent:!0})}return d},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createXAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i}(Xe),Je=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.compare=function(t){return void 0!==t.kLineData&&t.dataIndex===t.realDataIndex},i.prototype.getDirectionStyles=function(t){return t.vertical},i.prototype.getText=function(e,i){var o,n=null===(o=e.kLineData)||void 0===o?void 0:o.timestamp;return i.getCustomApi().formatDate(i.getTimeScaleStore().getDateTimeFormat(),n,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair)},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s=i.realX,l=\\"center\\";return 0>s-e/2-r.paddingLeft?(a=0,l=\\"left\\"):s+e/2+r.paddingRight>o.width?(a=o.width,l=\\"right\\"):a=s,{x:a,y:0,text:t,align:l,baseline:\\"top\\"}},i}(He),Qe=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._xAxisView=new qe(o),o._overlayXAxisView=new $e(o),o._crosshairVerticalLabelView=new Je(o),o.getContainer().style.cursor=\\"ew-resize\\",o.addChild(o._overlayXAxisView),o}return P(e,t),e.prototype.getName=function(){return Yt},e.prototype.updateMain=function(t){this._xAxisView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayXAxisView.draw(t),this._crosshairVerticalLabelView.draw(t)},e}(ne),ti=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var t=this.getParent().getChart().getChartStore().getTimeScaleStore().getVisibleRange(),e=t.from,i=t.to,o=i-1,n=i-e;return{min:e,max:o,range:n,realMin:e,realMax:o,realRange:n}},i.prototype.optimalTicks=function(e){var i,o,n=this.getParent().getChart(),r=n.getChartStore(),a=r.getCustomApi().formatDate,s=[],l=e.length,u=r.getDataList();if(l>0){var c=r.getTimeScaleStore().getDateTimeFormat(),h=n.getStyles().xAxis.tickText,d=j(\\"00-00 00:00\\",h.size,h.weight,h.family),p=this.convertToPixel(parseInt(e[0].value,10)),v=1;if(l>1){var g=this.convertToPixel(parseInt(e[1].value,10)),f=Math.abs(g-p);d>f&&(v=Math.ceil(d/f))}for(var m=0;l>m;m+=v){var y=parseInt(e[m].value,10),_=u[y].timestamp,x=a(c,_,\\"HH:mm\\",t.FormatDateType.XAxis);if(0!==m)x=null!==(i=this._optimalTickLabel(a,c,_,u[parseInt(e[m-v].value,10)].timestamp))&&void 0!==i?i:x;var S=this.convertToPixel(y);s.push({text:x,coord:S,value:_})}if(1===s.length)s[0].text=a(c,s[0].value,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.XAxis);else{var C=s[0].value,b=s[1].value;if(void 0!==s[2]){var T=s[2].text;/^[0-9]{2}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"MM-DD\\",t.FormatDateType.XAxis):/^[0-9]{4}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"YYYY-MM\\",t.FormatDateType.XAxis):/^[0-9]{4}$/.test(T)&&(s[0].text=a(c,C,\\"YYYY\\",t.FormatDateType.XAxis))}else s[0].text=null!==(o=this._optimalTickLabel(a,c,C,b))&&void 0!==o?o:s[0].text}}return s},i.prototype._optimalTickLabel=function(e,i,o,n){var r=e(i,o,\\"YYYY\\",t.FormatDateType.XAxis),a=e(i,o,\\"YYYY-MM\\",t.FormatDateType.XAxis),s=e(i,o,\\"MM-DD\\",t.FormatDateType.XAxis);return r!==e(i,n,\\"YYYY\\",t.FormatDateType.XAxis)?r:a!==e(i,n,\\"YYYY-MM\\",t.FormatDateType.XAxis)?a:s!==e(i,n,\\"MM-DD\\",t.FormatDateType.XAxis)?s:null},i.prototype.getAutoSize=function(){var t=this.getParent().getChart().getStyles(),e=t.xAxis,i=e.size;if(\\"auto\\"!==i)return i;var o=t.crosshair,n=0;e.show&&(e.axisLine.show&&(n+=e.axisLine.size),e.tickLine.show&&(n+=e.tickLine.length),e.tickText.show&&(n+=e.tickText.marginStart+e.tickText.marginEnd+e.tickText.size));var r=0;return o.show&&o.vertical.show&&o.vertical.text.show&&(r+=o.vertical.text.paddingTop+o.vertical.text.paddingBottom+2*o.vertical.text.borderSize+o.vertical.text.size),Math.max(n,r)},i.prototype.convertTimestampFromPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.coordinateToDataIndex(t);return e.dataIndexToTimestamp(i)},i.prototype.convertTimestampToPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.timestampToDataIndex(t);return e.dataIndexToCoordinate(i)},i.prototype.convertFromPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().coordinateToDataIndex(t)},i.prototype.convertToPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().dataIndexToCoordinate(t)},i}(Ze),ei=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"xAxis\\"},e.prototype.createAxisComponent=function(){return new ti(this)},e.prototype.createMainWidget=function(t){return new Qe(t,this)},e}(Ut);function ii(){var t;return\\"undefined\\"!=typeof window&&(null!==(t=window.navigator.userAgent.toLowerCase().indexOf(\\"firefox\\"))&&void 0!==t?t:-1)>-1}function oi(){return\\"undefined\\"!=typeof window&&/iPhone|iPad|iPod/.test(window.navigator.platform)}var ni,ri=function(){function t(t,e,i){var o=this;this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0},this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0},this._longTapTimeoutId=null,this._longTapActive=!1,this._mouseMoveStartCoordinate=null,this._touchMoveStartCoordinate=null,this._touchMoveExceededManhattanDistance=!1,this._cancelClick=!1,this._cancelTap=!1,this._unsubscribeOutsideMouseEvents=null,this._unsubscribeOutsideTouchEvents=null,this._unsubscribeMobileSafariEvents=null,this._unsubscribeMousemove=null,this._unsubscribeMouseWheel=null,this._unsubscribeContextMenu=null,this._unsubscribeRootMouseEvents=null,this._unsubscribeRootTouchEvents=null,this._startPinchMiddleCoordinate=null,this._startPinchDistance=0,this._pinchPrevented=!1,this._preventTouchDragProcess=!1,this._mousePressed=!1,this._lastTouchEventTimeStamp=0,this._activeTouchId=null,this._acceptMouseLeave=!oi(),this._onFirefoxOutsideMouseUp=function(t){o._mouseUpHandler(t)},this._onMobileSafariDoubleClick=function(t){o._firesTouchEvents(t)?(++o._tapCount,null!==o._tapTimeoutId&&o._tapCount>1&&(30>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._tapCoordinate).manhattanDistance&&!o._cancelTap&&o._processEvent(o._makeCompatEvent(t),o._handler.doubleTapEvent),o._resetTapTimeout())):(++o._clickCount,null!==o._clickTimeoutId&&o._clickCount>1&&(5>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._clickCoordinate).manhattanDistance&&!o._cancelClick&&o._processEvent(o._makeCompatEvent(t),o._handler.mouseDoubleClickEvent),o._resetClickTimeout()))},this._target=t,this._handler=e,this._options=i,this._init()}return t.prototype.destroy=function(){null!==this._unsubscribeOutsideMouseEvents&&(this._unsubscribeOutsideMouseEvents(),this._unsubscribeOutsideMouseEvents=null),null!==this._unsubscribeOutsideTouchEvents&&(this._unsubscribeOutsideTouchEvents(),this._unsubscribeOutsideTouchEvents=null),null!==this._unsubscribeMousemove&&(this._unsubscribeMousemove(),this._unsubscribeMousemove=null),null!==this._unsubscribeMouseWheel&&(this._unsubscribeMouseWheel(),this._unsubscribeMouseWheel=null),null!==this._unsubscribeContextMenu&&(this._unsubscribeContextMenu(),this._unsubscribeContextMenu=null),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null),null!==this._unsubscribeMobileSafariEvents&&(this._unsubscribeMobileSafariEvents(),this._unsubscribeMobileSafariEvents=null),this._clearLongTapTimeout(),this._resetClickTimeout()},t.prototype._mouseEnterHandler=function(t){var e,i,o,n=this;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this);var r=this._mouseMoveHandler.bind(this);this._unsubscribeMousemove=function(){n._target.removeEventListener(\\"mousemove\\",r)},this._target.addEventListener(\\"mousemove\\",r);var a=this._mouseWheelHandler.bind(this);this._unsubscribeMouseWheel=function(){n._target.removeEventListener(\\"wheel\\",a)},this._target.addEventListener(\\"wheel\\",a,{passive:!1});var s=this._contextMenuHandler.bind(this);this._unsubscribeContextMenu=function(){n._target.removeEventListener(\\"contextmenu\\",s)},this._target.addEventListener(\\"contextmenu\\",s,{passive:!1}),this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseEnterEvent),this._acceptMouseLeave=!0)},t.prototype._resetClickTimeout=function(){null!==this._clickTimeoutId&&clearTimeout(this._clickTimeoutId),this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0}},t.prototype._resetTapTimeout=function(){null!==this._tapTimeoutId&&clearTimeout(this._tapTimeoutId),this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0}},t.prototype._mouseMoveHandler=function(t){this._mousePressed||null!==this._touchMoveStartCoordinate||this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseMoveEvent),this._acceptMouseLeave=!0)},t.prototype._mouseWheelHandler=function(t){if(Math.abs(t.deltaX)>Math.abs(t.deltaY)){if(void 0===this._handler.mouseWheelHortEvent)return;if(this._preventDefault(t),0===Math.abs(t.deltaX))return;this._handler.mouseWheelHortEvent(this._makeCompatEvent(t),-t.deltaX)}else{if(void 0===this._handler.mouseWheelVertEvent)return;var e=-t.deltaY/100;if(0===e)return;switch(this._preventDefault(t),t.deltaMode){case t.DOM_DELTA_PAGE:e*=120;break;case t.DOM_DELTA_LINE:e*=32}if(0!==e){var i=Math.sign(e)*Math.min(1,Math.abs(e));this._handler.mouseWheelVertEvent(this._makeCompatEvent(t),i)}}},t.prototype._contextMenuHandler=function(t){this._preventDefault(t)},t.prototype._touchMoveHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null!==e&&(this._lastTouchEventTimeStamp=this._eventTimeStamp(t),null===this._startPinchMiddleCoordinate&&!this._preventTouchDragProcess)){this._pinchPrevented=!0;var i=this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._touchMoveStartCoordinate),o=i.yOffset;if(this._touchMoveExceededManhattanDistance||i.manhattanDistance>=5){if(!this._touchMoveExceededManhattanDistance){var n=.5*i.xOffset,r=o>=n&&!this._options.treatVertDragAsPageScroll(),a=n>o&&!this._options.treatHorzDragAsPageScroll();r||a||(this._preventTouchDragProcess=!0),this._touchMoveExceededManhattanDistance=!0,this._cancelTap=!0,this._clearLongTapTimeout(),this._resetTapTimeout()}this._preventTouchDragProcess||this._processEvent(this._makeCompatEvent(t,e),this._handler.touchMoveEvent)}}},t.prototype._mouseMoveWithDownHandler=function(t){0===t.button&&(5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._mouseMoveStartCoordinate).manhattanDistance||(this._cancelClick=!0,this._resetClickTimeout()),this._cancelClick&&this._processEvent(this._makeCompatEvent(t),this._handler.pressedMouseMoveEvent))},t.prototype._mouseTouchMoveWithDownInfo=function(t,e){var i=Math.abs(e.x-t.x),o=Math.abs(e.y-t.y);return{xOffset:i,yOffset:o,manhattanDistance:i+o}},t.prototype._touchEndHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null===e&&0===t.touches.length&&(e=t.changedTouches[0]),null!==e){this._activeTouchId=null,this._lastTouchEventTimeStamp=this._eventTimeStamp(t),this._clearLongTapTimeout(),this._touchMoveStartCoordinate=null,null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var i=this._makeCompatEvent(t,e);if(this._processEvent(i,this._handler.touchEndEvent),++this._tapCount,null!==this._tapTimeoutId&&this._tapCount>1)30>this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._tapCoordinate).manhattanDistance&&!this._cancelTap&&this._processEvent(i,this._handler.doubleTapEvent),this._resetTapTimeout();else this._cancelTap||(this._processEvent(i,this._handler.tapEvent),void 0!==this._handler.tapEvent&&this._preventDefault(t));0===this._tapCount&&this._preventDefault(t),0===t.touches.length&&this._longTapActive&&(this._longTapActive=!1,this._preventDefault(t))}},t.prototype._mouseUpHandler=function(t){if(0===t.button){var e=this._makeCompatEvent(t);if(this._mouseMoveStartCoordinate=null,this._mousePressed=!1,null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),ii())this._target.ownerDocument.documentElement.removeEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp);if(!this._firesTouchEvents(t))if(this._processEvent(e,this._handler.mouseUpEvent),++this._clickCount,null!==this._clickTimeoutId&&this._clickCount>1)5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._clickCoordinate).manhattanDistance&&!this._cancelClick&&this._processEvent(e,this._handler.mouseDoubleClickEvent),this._resetClickTimeout();else this._cancelClick||this._processEvent(e,this._handler.mouseClickEvent)}},t.prototype._clearLongTapTimeout=function(){null!==this._longTapTimeoutId&&(clearTimeout(this._longTapTimeoutId),this._longTapTimeoutId=null)},t.prototype._touchStartHandler=function(t){if(null===this._activeTouchId){var e=t.changedTouches[0];this._activeTouchId=e.identifier,this._lastTouchEventTimeStamp=this._eventTimeStamp(t);var i=this._target.ownerDocument.documentElement;this._cancelTap=!1,this._touchMoveExceededManhattanDistance=!1,this._preventTouchDragProcess=!1,this._touchMoveStartCoordinate=this._getCoordinate(e),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var o=this._touchMoveHandler.bind(this),n=this._touchEndHandler.bind(this);this._unsubscribeRootTouchEvents=function(){i.removeEventListener(\\"touchmove\\",o),i.removeEventListener(\\"touchend\\",n)},i.addEventListener(\\"touchmove\\",o,{passive:!1}),i.addEventListener(\\"touchend\\",n,{passive:!1}),this._clearLongTapTimeout(),this._longTapTimeoutId=setTimeout(this._longTapHandler.bind(this,t),500),this._processEvent(this._makeCompatEvent(t,e),this._handler.touchStartEvent),null===this._tapTimeoutId&&(this._tapCount=0,this._tapTimeoutId=setTimeout(this._resetTapTimeout.bind(this),500),this._tapCoordinate=this._getCoordinate(e))}},t.prototype._mouseDownHandler=function(t){if(2===t.button)return this._preventDefault(t),void this._processEvent(this._makeCompatEvent(t),this._handler.mouseRightClickEvent);if(0===t.button){var e=this._target.ownerDocument.documentElement;ii()&&e.addEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp),this._cancelClick=!1,this._mouseMoveStartCoordinate=this._getCoordinate(t),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null);var i=this._mouseMoveWithDownHandler.bind(this),o=this._mouseUpHandler.bind(this);this._unsubscribeRootMouseEvents=function(){e.removeEventListener(\\"mousemove\\",i),e.removeEventListener(\\"mouseup\\",o)},e.addEventListener(\\"mousemove\\",i),e.addEventListener(\\"mouseup\\",o),this._mousePressed=!0,this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseDownEvent),null===this._clickTimeoutId&&(this._clickCount=0,this._clickTimeoutId=setTimeout(this._resetClickTimeout.bind(this),500),this._clickCoordinate=this._getCoordinate(t)))}},t.prototype._init=function(){var t=this;this._target.addEventListener(\\"mouseenter\\",this._mouseEnterHandler.bind(this)),this._target.addEventListener(\\"touchcancel\\",this._clearLongTapTimeout.bind(this));var e=this._target.ownerDocument,i=function(e){null!=t._handler.mouseDownOutsideEvent&&(e.composed&&t._target.contains(e.composedPath()[0])||null!==e.target&&t._target.contains(e.target)||t._handler.mouseDownOutsideEvent({x:0,y:0,pageX:0,pageY:0}))};this._unsubscribeOutsideTouchEvents=function(){e.removeEventListener(\\"touchstart\\",i)},this._unsubscribeOutsideMouseEvents=function(){e.removeEventListener(\\"mousedown\\",i)},e.addEventListener(\\"mousedown\\",i),e.addEventListener(\\"touchstart\\",i,{passive:!0}),oi()&&(this._unsubscribeMobileSafariEvents=function(){t._target.removeEventListener(\\"dblclick\\",t._onMobileSafariDoubleClick)},this._target.addEventListener(\\"dblclick\\",this._onMobileSafariDoubleClick)),this._target.addEventListener(\\"mouseleave\\",this._mouseLeaveHandler.bind(this)),this._target.addEventListener(\\"touchstart\\",this._touchStartHandler.bind(this),{passive:!0}),this._target.addEventListener(\\"mousedown\\",(function(t){if(1===t.button)return t.preventDefault(),!1})),this._target.addEventListener(\\"mousedown\\",this._mouseDownHandler.bind(this)),this._initPinch(),this._target.addEventListener(\\"touchmove\\",(function(){}),{passive:!1})},t.prototype._initPinch=function(){var t=this;void 0===this._handler.pinchStartEvent&&void 0===this._handler.pinchEvent&&void 0===this._handler.pinchEndEvent||(this._target.addEventListener(\\"touchstart\\",(function(e){return t._checkPinchState(e.touches)}),{passive:!0}),this._target.addEventListener(\\"touchmove\\",(function(e){if(2===e.touches.length&&null!==t._startPinchMiddleCoordinate&&void 0!==t._handler.pinchEvent){var i=t._getTouchDistance(e.touches[0],e.touches[1])/t._startPinchDistance;t._handler.pinchEvent(k(k({},t._startPinchMiddleCoordinate),{pageX:0,pageY:0}),i),t._preventDefault(e)}}),{passive:!1}),this._target.addEventListener(\\"touchend\\",(function(e){t._checkPinchState(e.touches)})))},t.prototype._checkPinchState=function(t){1===t.length&&(this._pinchPrevented=!1),2!==t.length||this._pinchPrevented||this._longTapActive?this._stopPinch():this._startPinch(t)},t.prototype._startPinch=function(t){var e,i=null!==(e=this._target.getBoundingClientRect())&&void 0!==e?e:{left:0,top:0};this._startPinchMiddleCoordinate={x:(t[0].clientX-i.left+(t[1].clientX-i.left))/2,y:(t[0].clientY-i.top+(t[1].clientY-i.top))/2},this._startPinchDistance=this._getTouchDistance(t[0],t[1]),void 0!==this._handler.pinchStartEvent&&this._handler.pinchStartEvent({x:0,y:0,pageX:0,pageY:0}),this._clearLongTapTimeout()},t.prototype._stopPinch=function(){null!==this._startPinchMiddleCoordinate&&(this._startPinchMiddleCoordinate=null,void 0!==this._handler.pinchEndEvent&&this._handler.pinchEndEvent({x:0,y:0,pageX:0,pageY:0}))},t.prototype._mouseLeaveHandler=function(t){var e,i,o;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this),this._firesTouchEvents(t)||this._acceptMouseLeave&&(this._processEvent(this._makeCompatEvent(t),this._handler.mouseLeaveEvent),this._acceptMouseLeave=!oi())},t.prototype._longTapHandler=function(t){var e=this._touchWithId(t.touches,this._activeTouchId);null!==e&&(this._processEvent(this._makeCompatEvent(t,e),this._handler.longTapEvent),this._cancelTap=!0,this._longTapActive=!0)},t.prototype._firesTouchEvents=function(t){var e;return void 0!==(null===(e=t.sourceCapabilities)||void 0===e?void 0:e.firesTouchEvents)?t.sourceCapabilities.firesTouchEvents:this._eventTimeStamp(t)i;++i)if(t[i].identifier===e)return t[i];return null},t}(),ai=function(){function t(t,e){var i=this;this._flingStartTime=(new Date).getTime(),this._flingScrollRequestId=null,this._startScrollCoordinate=null,this._touchCoordinate=null,this._touchCancelCrosshair=!1,this._touchZoomed=!1,this._pinchScale=1,this._mouseDownWidget=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,this._mouseMoveTriggerWidgetInfo={pane:null,widget:null},this._boundKeyBoardDownEvent=function(t){if(t.shiftKey)switch(t.code){case\\"Equal\\":i._chart.getChartStore().getTimeScaleStore().zoom(.5);break;case\\"Minus\\":i._chart.getChartStore().getTimeScaleStore().zoom(-.5);break;case\\"ArrowLeft\\":(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(-3*e.getBarSpace().bar);break;case\\"ArrowRight\\":var e;(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(3*e.getBarSpace().bar)}},this._container=t,this._chart=e,this._event=new ri(t,this,{treatVertDragAsPageScroll:function(){return!1},treatHorzDragAsPageScroll:function(){return!1}}),t.addEventListener(\\"keydown\\",this._boundKeyBoardDownEvent)}return t.prototype.pinchStartEvent=function(){return this._touchZoomed=!0,this._pinchScale=1,!0},t.prototype.pinchEvent=function(t,e){var i=this._findWidgetByEvent(t),o=i.pane,n=i.widget;if((null==o?void 0:o.getId())!==Kt.XAXIS&&(null==n?void 0:n.getName())===zt){var r=this._makeWidgetEvent(t,n),a=5*(e-this._pinchScale);return this._pinchScale=e,this._chart.getChartStore().getTimeScaleStore().zoom(a,{x:r.x,y:r.y}),!0}return!1},t.prototype.mouseWheelHortEvent=function(t,e){var i=this._chart.getChartStore().getTimeScaleStore();return i.startScroll(),i.scroll(e),!0},t.prototype.mouseWheelVertEvent=function(t,e){var i,o,n=this._findWidgetByEvent(t).widget,r=null!==(i=t.isTouch)&&void 0!==i&&i,a=this._makeWidgetEvent(t,n),s=null,l=null==n?void 0:n.getName();if(r)if(l===zt||l===Yt)s={x:a.x,y:a.y};else{var u=null===(o=this._chart.getPaneById(Kt.CANDLE))||void 0===o?void 0:o.getBounding();s={x:u.width/2,y:u.height/2}}else l===zt&&(s={x:a.x,y:a.y});return null!==s&&(this._chart.getChartStore().getTimeScaleStore().zoom(e,{x:a.x,y:a.y}),!0)},t.prototype.mouseDownEvent=function(t){var e,i,o=this._findWidgetByEvent(t),n=o.pane,r=o.widget;if(this._mouseDownWidget=r,null!==r){var a=this._makeWidgetEvent(t,r);switch(r.getName()){case Ht:return r.dispatchEvent(\\"mouseDownEvent\\",a);case zt:var s=null!==(e=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==e?e:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._startScrollCoordinate={x:a.x,y:a.y},this._chart.getChartStore().getTimeScaleStore().startScroll(),r.dispatchEvent(\\"mouseDownEvent\\",a);case Yt:return(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1),this._xAxisStartScaleCoordinate={x:a.x,y:a.y},this._xAxisStartScaleDistance=a.pageX,l;case Xt:var l;(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1);s=null!==(i=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==i?i:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._yAxisStartScaleDistance=a.pageY,l}}return!1},t.prototype.mouseMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget,s=this._makeWidgetEvent(t,a);if((null===(e=this._mouseMoveTriggerWidgetInfo.pane)||void 0===e?void 0:e.getId())===(null==r?void 0:r.getId())&&(null===(i=this._mouseMoveTriggerWidgetInfo.widget)||void 0===i?void 0:i.getName())===(null==a?void 0:a.getName())||(null==a||a.dispatchEvent(\\"mouseEnterEvent\\",s),null===(o=this._mouseMoveTriggerWidgetInfo.widget)||void 0===o||o.dispatchEvent(\\"mouseLeaveEvent\\",s),this._mouseMoveTriggerWidgetInfo={pane:r,widget:a}),null!==a)switch(a.getName()){case zt:var l=a.dispatchEvent(\\"mouseMoveEvent\\",s),u=this._chart.getChartStore(),c={x:s.x,y:s.y,paneId:null==r?void 0:r.getId()};return l&&null!==u.getTooltipStore().getActiveIcon()&&(c=void 0,null!==a&&(a.getContainer().style.cursor=\\"pointer\\")),this._chart.getChartStore().getTooltipStore().setCrosshair(c),l;case Ht:case Yt:case Xt:l=a.dispatchEvent(\\"mouseMoveEvent\\",s);return this._chart.getChartStore().getTooltipStore().setCrosshair(),l}return!1},t.prototype.pressedMouseMoveEvent=function(t){var e,i,o,n,r;if(null!==this._mouseDownWidget&&this._mouseDownWidget.getName()===Ht)return this._mouseDownWidget.dispatchEvent(\\"pressedMouseMoveEvent\\",t);var a=this._findWidgetByEvent(t),s=a.pane,l=a.widget;if(null!==l&&(null===(e=this._mouseDownWidget)||void 0===e?void 0:e.getPane().getId())===(null==s?void 0:s.getId())&&(null===(i=this._mouseDownWidget)||void 0===i?void 0:i.getName())===l.getName()){var u=this._makeWidgetEvent(t,l);switch(l.getName()){case zt:var c=l.getBounding();if(!(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))&&null!==this._startScrollCoordinate){var h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&!h.getAutoCalcTickFlag()&&h.getScrollZoomEnabled()){var d=this._prevYAxisExtremum,p=d.min,v=d.max+(b=(S=d.range)*(C=(null!==(o=null==h?void 0:h.isReverse())&&void 0!==o&&o?this._startScrollCoordinate.y-u.y:u.y-this._startScrollCoordinate.y)/c.height)),g=h.convertToRealValue(E=p+b),f=h.convertToRealValue(v);h.setExtremum({min:E,max:v,range:v-E,realMin:g,realMax:f,realRange:f-g})}var m=u.x-this._startScrollCoordinate.x;this._chart.getChartStore().getTimeScaleStore().scroll(m)}return this._chart.getChartStore().getTooltipStore().setCrosshair({x:u.x,y:u.y,paneId:null==s?void 0:s.getId()}),x;case Yt:if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{var y=null==s?void 0:s.getAxisComponent();if(null===(n=null==y?void 0:y.getScrollZoomEnabled())||void 0===n||n){var _=10*((C=this._xAxisStartScaleDistance/u.pageX)-this._xAxisScale);this._xAxisScale=C,this._chart.getChartStore().getTimeScaleStore().zoom(_,null!==(r=this._xAxisStartScaleCoordinate)&&void 0!==r?r:void 0)}}return x;case Xt:var x;if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&h.getScrollZoomEnabled()){var S,C,b,T=this._prevYAxisExtremum,w=(S=T.range)*(C=u.pageY/this._yAxisStartScaleDistance),E=(p=T.min)-(b=(w-S)/2),I=(v=T.max+b,null==s?void 0:s.getAxisComponent());g=I.convertToRealValue(E),f=I.convertToRealValue(v);I.setExtremum({min:E,max:v,range:w,realMin:g,realMax:f,realRange:f-g}),this._chart.adjustPaneViewport(!1,!0,!0,!0)}}return x}}return!1},t.prototype.mouseUpEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Ht:case Yt:case Xt:i=e.dispatchEvent(\\"mouseUpEvent\\",o)}i&&this._chart.updatePane(1)}return this._mouseDownWidget=null,this._startScrollCoordinate=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,i},t.prototype.mouseClickEvent=function(t){var e=this._findWidgetByEvent(t).widget;if(null!==e){var i=this._makeWidgetEvent(t,e);return e.dispatchEvent(\\"mouseClickEvent\\",i)}return!1},t.prototype.mouseRightClickEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Yt:case Xt:i=e.dispatchEvent(\\"mouseRightClickEvent\\",o)}i&&this._chart.updatePane(1)}return!1},t.prototype.mouseDoubleClickEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o)switch(o.getName()){case zt:var n=this._makeWidgetEvent(t,o);return o.dispatchEvent(\\"mouseDoubleClickEvent\\",n);case Xt:var r=null==i?void 0:i.getAxisComponent();if(!r.getAutoCalcTickFlag())return r.setAutoCalcTickFlag(!0),this._chart.adjustPaneViewport(!1,!0,!0,!0),!0}return!1},t.prototype.mouseLeaveEvent=function(){return this._chart.getChartStore().getTooltipStore().setCrosshair(),!0},t.prototype.touchStartEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o){var n=this._makeWidgetEvent(t,o);switch(o.getName()){case zt:var r=this._chart.getChartStore(),a=r.getTooltipStore();if(o.dispatchEvent(\\"mouseDownEvent\\",n))return this._touchCancelCrosshair=!0,this._touchCoordinate=null,a.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._flingScrollRequestId&&(ie(this._flingScrollRequestId),this._flingScrollRequestId=null),this._flingStartTime=(new Date).getTime(),this._startScrollCoordinate={x:n.x,y:n.y},r.getTimeScaleStore().startScroll(),this._touchZoomed=!1,null!==this._touchCoordinate){var s=n.x-this._touchCoordinate.x,l=n.y-this._touchCoordinate.y;10>Math.sqrt(s*s+l*l)?(this._touchCoordinate={x:n.x,y:n.y},a.setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()})):(this._touchCoordinate=null,this._touchCancelCrosshair=!0,a.setCrosshair())}return!0;case Yt:case Xt:var u=o.dispatchEvent(\\"mouseDownEvent\\",n);return u&&this._chart.updatePane(1),u}}return!1},t.prototype.touchMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget;if(null!==a){var s=this._makeWidgetEvent(t,a),l=a.getName(),u=this._chart.getChartStore(),c=u.getTooltipStore();switch(l){case zt:if(a.dispatchEvent(\\"pressedMouseMoveEvent\\",s))return null===(e=s.preventDefault)||void 0===e||e.call(s),c.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._touchCoordinate)null===(i=s.preventDefault)||void 0===i||i.call(s),c.setCrosshair({x:s.x,y:s.y,paneId:null==r?void 0:r.getId()});else if(null!==this._startScrollCoordinate&&Math.abs(this._startScrollCoordinate.x-s.x)>this._startScrollCoordinate.y-s.y){var h=s.x-this._startScrollCoordinate.x;u.getTimeScaleStore().scroll(h)}return!0;case Yt:case Xt:var d=a.dispatchEvent(\\"pressedMouseMoveEvent\\",s);return d&&(null===(o=s.preventDefault)||void 0===o||o.call(s),this._chart.updatePane(1)),d}}return!1},t.prototype.touchEndEvent=function(t){var e=this,i=this._findWidgetByEvent(t).widget;if(null!==i){var o=this._makeWidgetEvent(t,i);switch(i.getName()){case zt:if(i.dispatchEvent(\\"mouseUpEvent\\",o),null!==this._startScrollCoordinate){var n=(new Date).getTime()-this._flingStartTime,r=(o.x-this._startScrollCoordinate.x)/(n>0?n:1)*20;if(200>n&&Math.abs(r)>0){var a=this._chart.getChartStore().getTimeScaleStore(),s=function(){e._flingScrollRequestId=ee((function(){a.startScroll(),a.scroll(r),1>Math.abs(r*=.975)?null!==e._flingScrollRequestId&&(ie(e._flingScrollRequestId),e._flingScrollRequestId=null):s()}))};s()}}return!0;case Yt:case Xt:i.dispatchEvent(\\"mouseUpEvent\\",o)&&this._chart.updatePane(1)}}return!1},t.prototype.tapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget,n=!1;if(null!==o){var r=this._makeWidgetEvent(t,o),a=o.dispatchEvent(\\"mouseClickEvent\\",r);if(o.getName()===zt){var s=this._makeWidgetEvent(t,o),l=this._chart.getChartStore().getTooltipStore();a?(this._touchCancelCrosshair=!0,this._touchCoordinate=null,l.setCrosshair(void 0,!0),n=!0):(this._touchCancelCrosshair||this._touchZoomed||(this._touchCoordinate={x:s.x,y:s.y},l.setCrosshair({x:s.x,y:s.y,paneId:null==i?void 0:i.getId()},!0),n=!0),this._touchCancelCrosshair=!1)}(n||a)&&this._chart.updatePane(1)}return n},t.prototype.doubleTapEvent=function(t){return this.mouseDoubleClickEvent(t)},t.prototype.longTapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o&&o.getName()===zt){var n=this._makeWidgetEvent(t,o);return this._touchCoordinate={x:n.x,y:n.y},this._chart.getChartStore().getTooltipStore().setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()}),!0}return!1},t.prototype._findWidgetByEvent=function(t){var e,i,o=this._chart.getAllPanes(),n=t.x,r=t.y,a=null;try{for(var s=L(o),l=s.next();!l.done;l=s.next()){var u=R(l.value,2)[1],c=u.getBounding();if(!(c.left>n||n>c.left+c.width||c.top>r||r>c.top+c.height)){a=u;break}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}null===a&&(a=this._chart.getPaneById(Kt.XAXIS));var h=null;if(null!==a){var d=a.getSeparatorWidget();if(null!==d){var p=d.getBounding();p.left>n||n>p.left+p.width||p.top>r||r>p.top+7||(h=d)}if(null===h){var v=a.getMainWidget(),g=v.getBounding();g.left>n||n>g.left+g.width||g.top>r||r>g.top+g.height||(h=v)}if(null===h){var f=a.getYAxisWidget();if(null!==f){var m=f.getBounding();m.left>n||n>m.left+m.width||m.top>r||r>m.top+m.height||(h=f)}}}return{pane:a,widget:h}},t.prototype._makeWidgetEvent=function(t,e){var i,o,n,r=null!==(i=null==e?void 0:e.getBounding())&&void 0!==i?i:null;return k(k({},t),{x:t.x-(null!==(o=null==r?void 0:r.left)&&void 0!==o?o:0),y:t.y-(null!==(n=null==r?void 0:r.top)&&void 0!==n?n:0)})},t.prototype.destroy=function(){this._container.removeEventListener(\\"keydown\\",this._boundKeyBoardDownEvent),this._event.destroy()},t}();t.DomPosition=void 0,(ni=t.DomPosition||(t.DomPosition={})).Root=\\"root\\",ni.Main=\\"main\\",ni.YAxis=\\"yAxis\\";var si=function(){function e(t,e){this._panes=new Map,this._initContainer(t),this._chartEvent=new ai(this._chartContainer,this),this._chartStore=new te(this,e),this._xAxisPane=new ei(this._chartContainer,this,Kt.XAXIS),this._panes.set(Kt.CANDLE,new Ue(this._chartContainer,this,Kt.CANDLE)),this.adjustPaneViewport(!0,!0,!0)}return e.prototype._initContainer=function(t){this._container=t,this._chartContainer=Y(\\"div\\",{position:\\"relative\\",width:\\"100%\\",outline:\\"none\\",borderStyle:\\"none\\",cursor:\\"crosshair\\",boxSizing:\\"border-box\\",userSelect:\\"none\\",webkitUserSelect:\\"none\\",msUserSelect:\\"none\\",MozUserSelect:\\"none\\",webkitTapHighlightColor:\\"transparent\\"}),this._chartContainer.tabIndex=1,t.appendChild(this._chartContainer)},e.prototype._measurePaneHeight=function(){var t,e=this._container.offsetHeight,i=this._xAxisPane.getAxisComponent().getAutoSize(),o=e-i;0>o&&(o=0);var n=0;this._panes.forEach((function(t){if(t.getId()!==Kt.CANDLE){var e=t.getBounding().height,i=t.getOptions().minHeight;i>e&&(e=i),n+e>o?e=Math.max(o-(n=o),0):n+=e,t.setBounding({height:e})}}));var r=o-n;null===(t=this._panes.get(Kt.CANDLE))||void 0===t||t.setBounding({height:r});var a=0;this._panes.forEach((function(t){t.setBounding({top:a}),a+=t.getBounding().height})),this._xAxisPane.setBounding({height:i,top:a})},e.prototype._measurePaneWidth=function(){var e=this._chartStore.getStyles().yAxis,i=e.position===t.YAxisPosition.Left,o=!e.inside,n=this._container.offsetWidth,r=0,a=Number.MIN_SAFE_INTEGER,s=0,l=0;this._panes.forEach((function(t){a=Math.max(a,t.getAxisComponent().getAutoSize())})),a>n&&(a=n),o?(r=n-a,i?(s=0,l=a):(s=n-a,l=0)):(r=n,l=0,s=i?0:n-a),this._chartStore.getTimeScaleStore().setTotalBarSpace(r);var u={width:n},c={width:r,left:l},h={width:a,left:s};this._panes.forEach((function(t){t.setBounding(u,c,h)})),this._xAxisPane.setBounding(u,c,h)},e.prototype._setPaneOptions=function(t,e){var i,o,n=this._panes.get(null!==(i=null==t?void 0:t.id)&&void 0!==i?i:\\"\\"),r=!1;if(void 0!==n){var a=e;if(t.id!==Kt.CANDLE&&void 0!==t.height&&t.height>0){var s=Math.max(null!==(o=t.minHeight)&&void 0!==o?o:n.getOptions().minHeight,0);n.setBounding({height:Math.max(s,t.height)}),a=!0,r=!0}n.setOptions(t),a&&this.adjustPaneViewport(r,!0,!0,!0,!0)}},e.prototype.getContainer=function(){return this._container},e.prototype.getChartStore=function(){return this._chartStore},e.prototype.getAllPanes=function(){return this._panes},e.prototype.adjustPaneViewport=function(t,e,i,o,n){t&&this._measurePaneHeight();var r=e,a=null!=n&&n;(null!=o&&o||a)&&this._panes.forEach((function(t){var e=t.getAxisComponent().buildTicks(a);r||(r=e)})),r&&this._measurePaneWidth(),null!=i&&i&&(this._xAxisPane.getAxisComponent().buildTicks(!0),this.updatePane(4))},e.prototype.updatePane=function(t,e){var i;void 0!==e?null===(i=this.getPaneById(e))||void 0===i||i.update(t):(this._xAxisPane.update(t),this._panes.forEach((function(e){e.update(t)})))},e.prototype.getPaneById=function(t){var e;return t===Kt.XAXIS?this._xAxisPane:null!==(e=this._panes.get(t))&&void 0!==e?e:null},e.prototype.crosshairChange=function(e){var i=this,o=this._chartStore.getActionStore();if(o.has(t.ActionType.OnCrosshairChange)){var n={};this._panes.forEach((function(t,o){var r={};i._chartStore.getIndicatorStore().getInstances(o).forEach((function(t){var i,o=t.result;r[t.name]=o[null!==(i=e.dataIndex)&&void 0!==i?i:o.length-1]})),n[o]=r})),void 0!==e.paneId&&o.execute(t.ActionType.OnCrosshairChange,k(k({},e),{indicatorData:n}))}},e.prototype.getDom=function(e,i){var o,n;if(void 0===e)return this._chartContainer;var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getContainer();case t.DomPosition.Main:return r.getMainWidget().getContainer();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getContainer())&&void 0!==n?n:null}return null},e.prototype.getSize=function(e,i){var o,n;if(void 0===e)return{width:this._chartContainer.offsetWidth,height:this._chartContainer.offsetHeight,left:0,top:0,right:0,bottom:0};var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getBounding();case t.DomPosition.Main:return r.getMainWidget().getBounding();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getBounding())&&void 0!==n?n:null}return null},e.prototype.setStyles=function(t){var e,i,o;this._chartStore.setOptions({styles:t}),void 0!==(null===(e=null==(o=u(t)?Qt(t):t)?void 0:o.yAxis)||void 0===e?void 0:e.type)&&(null===(i=this.getPaneById(Kt.CANDLE))||void 0===i||i.getAxisComponent().setAutoCalcTickFlag(!0)),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getStyles=function(){return this._chartStore.getStyles()},e.prototype.setLocale=function(t){this._chartStore.setOptions({locale:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getLocale=function(){return this._chartStore.getLocale()},e.prototype.setCustomApi=function(t){this._chartStore.setOptions({customApi:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.setPriceVolumePrecision=function(t,e){this._chartStore.setPrecision({price:t,volume:e})},e.prototype.getPriceVolumePrecision=function(){return this._chartStore.getPrecision()},e.prototype.setTimezone=function(t){this._chartStore.setOptions({timezone:t}),this._xAxisPane.getAxisComponent().buildTicks(!0),this._xAxisPane.update(3)},e.prototype.getTimezone=function(){return this._chartStore.getTimeScaleStore().getTimezone()},e.prototype.setOffsetRightDistance=function(t){this._chartStore.getTimeScaleStore().setOffsetRightDistance(t,!0)},e.prototype.getOffsetRightDistance=function(){return this._chartStore.getTimeScaleStore().getOffsetRightDistance()},e.prototype.setLeftMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setLeftMinVisibleBarCount(Math.ceil(t))},e.prototype.setRightMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setRightMinVisibleBarCount(Math.ceil(t))},e.prototype.setBarSpace=function(t){this._chartStore.getTimeScaleStore().setBarSpace(t)},e.prototype.getBarSpace=function(){return this._chartStore.getTimeScaleStore().getBarSpace().bar},e.prototype.getVisibleRange=function(){return this._chartStore.getTimeScaleStore().getVisibleRange()},e.prototype.clearData=function(){this._chartStore.clear()},e.prototype.getDataList=function(){return this._chartStore.getDataList()},e.prototype.applyNewData=function(t,e,i){this._chartStore.clear(),0===t.length?this.adjustPaneViewport(!1,!0,!0,!0):this.applyMoreData(t,e,i)},e.prototype.applyMoreData=function(t,e,i){var o=this;this._chartStore.addData(t,0,e),t.length>0&&this._chartStore.getIndicatorStore().calcInstance().then((function(t){o.adjustPaneViewport(!1,!0,!0,!0),null==i||i()})).catch((function(t){}))},e.prototype.updateData=function(t,e){var i=this,o=this._chartStore.getDataList(),n=o.length,r=t.timestamp,a=C(o[n-1],\\"timestamp\\",0);if(r>=a){var s=n;r===a&&(s=n-1),this._chartStore.addData(t,s),this._chartStore.getIndicatorStore().calcInstance().then((function(t){i.adjustPaneViewport(!1,!0,!0,!0),null==e||e()})).catch((function(t){}))}},e.prototype.loadMore=function(t){this._chartStore.getTimeScaleStore().setLoadMoreCallback(t)},e.prototype.createIndicator=function(t,e,i,o){var n,r,a,l=this,c=u(t)?{name:t}:t;if(null===pt(c.name))return null;if(s(i)&&u(null==i?void 0:i.id)&&this._panes.has(i.id))a=i.id,this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).then((function(t){var e,o;l._setPaneOptions(i,null!==(o=null===(e=l._panes.get(a))||void 0===e?void 0:e.getAxisComponent().buildTicks(!0))&&void 0!==o&&o)})).catch((function(t){}));else{a=null!==(n=null==i?void 0:i.id)&&void 0!==n?n:z(Kt.INDICATOR);var h=Array.from(this._panes.values()).pop(),d=new Ke(this._chartContainer,this,a,h);h.setBottomPane(d);var p=null!==(r=null==i?void 0:i.height)&&void 0!==r?r:100;d.setBounding({height:p}),s(i)&&d.setOptions(i),this._panes.set(a,d),this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).finally((function(){l.adjustPaneViewport(!0,!0,!0,!0,!0),null==o||o()}))}return a},e.prototype.overrideIndicator=function(t,e,i){var o=this;this._chartStore.getIndicatorStore().override(t,null!=e?e:null).then((function(t){var e=R(t,2),n=e[1];(e[0]||n)&&(o.adjustPaneViewport(!1,n,!0,n),null==i||i())})).catch((function(){}))},e.prototype.getIndicatorByPaneId=function(t,e){return this._chartStore.getIndicatorStore().getInstanceByPaneId(t,e)},e.prototype.removeIndicator=function(t,e){var i=this._chartStore.getIndicatorStore();if(i.removeInstance(t,e)){var o=!1;if(t!==Kt.CANDLE&&!i.hasInstances(t)){var n=this._panes.get(t);if(void 0!==n){o=!0;var r=n.getTopPane(),a=n.getBottomPane();null==a||a.setTopPane(r),null==r||r.setBottomPane(a),null==n||n.destroy(),this._panes.delete(t)}}this.adjustPaneViewport(o,!0,!0,!0,!0)}},e.prototype.createOverlay=function(t,e){var i=[];if(u(t))i=[{name:t}];else if(o(t))i=t.map((function(t){return u(t)?{name:t}:t}));else{i=[t]}var n=!0;void 0!==e&&null!==this.getPaneById(e)||(e=Kt.CANDLE,n=!1);var r=this._chartStore.getOverlayStore().addInstances(i,e,n);return o(t)?r:r[0]},e.prototype.getOverlayById=function(t){return this._chartStore.getOverlayStore().getInstanceById(t)},e.prototype.overrideOverlay=function(t){this._chartStore.getOverlayStore().override(t)},e.prototype.removeOverlay=function(t){var e;void 0!==t&&(e=u(t)?{id:t}:t),this._chartStore.getOverlayStore().removeInstance(e)},e.prototype.setPaneOptions=function(t){this._setPaneOptions(t,!1)},e.prototype.setZoomEnabled=function(t){this._chartStore.getTimeScaleStore().setZoomEnabled(t)},e.prototype.isZoomEnabled=function(){return this._chartStore.getTimeScaleStore().getZoomEnabled()},e.prototype.setScrollEnabled=function(t){this._chartStore.getTimeScaleStore().setScrollEnabled(t)},e.prototype.isScrollEnabled=function(){return this._chartStore.getTimeScaleStore().getScrollEnabled()},e.prototype.scrollByDistance=function(t,e){var i=void 0===e||0>e?0:e,o=this._chartStore.getTimeScaleStore();if(i>0){o.startScroll();var n=(new Date).getTime(),r=function(){var e=((new Date).getTime()-n)/i,a=e>=1;o.scroll(a?t:t*e),a||requestAnimationFrame(r)};r()}else o.startScroll(),o.scroll(t)},e.prototype.scrollToRealTime=function(t){var e=this._chartStore.getTimeScaleStore(),i=e.getBarSpace().bar,o=e.getOffsetRightBarCount()-e.getInitialOffsetRightDistance()/i;this.scrollByDistance(o*i,t)},e.prototype.scrollToDataIndex=function(t,e){var i=this._chartStore.getTimeScaleStore(),o=(i.getOffsetRightBarCount()+(this.getDataList().length-1-t))*i.getBarSpace().bar;this.scrollByDistance(o,e)},e.prototype.scrollToTimestamp=function(t,e){var i=Z(this.getDataList(),\\"timestamp\\",t);this.scrollToDataIndex(i,e)},e.prototype.zoomAtCoordinate=function(t,e,i){var o=void 0===i||0>i?0:i,n=this._chartStore.getTimeScaleStore();if(o>0){var r=n.getBarSpace().bar,a=r*t-r,s=(new Date).getTime(),l=function(){var t=((new Date).getTime()-s)/o,i=t>=1;n.zoom((i?a:a*t)/r,e),i||requestAnimationFrame(l)};l()}else n.zoom(t,e)},e.prototype.zoomAtDataIndex=function(t,e,i){var o=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(e);this.zoomAtCoordinate(t,{x:o,y:0},i)},e.prototype.zoomAtTimestamp=function(t,e,i){var o=Z(this.getDataList(),\\"timestamp\\",e);this.zoomAtDataIndex(t,o,i)},e.prototype.convertToPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e={},i=t.dataIndex;if(void 0!==t.timestamp&&(i=c.timestampToDataIndex(t.timestamp)),void 0!==i&&(e.x=null==p?void 0:p.convertToPixel(i)),void 0!==t.value){var o=null==v?void 0:v.convertToPixel(t.value);e.y=s?h.top+o:o}return e}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.convertFromPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e,i={};if(void 0!==t.x){var o=p.convertFromPixel(t.x);i.dataIndex=o,i.timestamp=null!==(e=c.dataIndexToTimestamp(o))&&void 0!==e?e:void 0}void 0!==t.y&&(i.value=v.convertFromPixel(s?t.y-h.top:t.y));return i}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.executeAction=function(e,i){var o;if(e===t.ActionType.OnCrosshairChange){var n=k({},i);n.paneId=null!==(o=n.paneId)&&void 0!==o?o:Kt.CANDLE,this._chartStore.getTooltipStore().setCrosshair(n)}},e.prototype.subscribeAction=function(t,e){this._chartStore.getActionStore().subscribe(t,e)},e.prototype.unsubscribeAction=function(t,e){this._chartStore.getActionStore().unsubscribe(t,e)},e.prototype.getConvertPictureUrl=function(t,e,i){var o=this._chartContainer.offsetWidth,n=this._chartContainer.offsetHeight,r=Y(\\"canvas\\",{width:\\"\\".concat(o,\\"px\\"),height:\\"\\".concat(n,\\"px\\"),boxSizing:\\"border-box\\"}),a=r.getContext(\\"2d\\"),s=X(r);r.width=o*s,r.height=n*s,a.scale(s,s),a.fillStyle=null!=i?i:\\"#FFFFFF\\",a.fillRect(0,0,o,n);var l=null!=t&&t;this._panes.forEach((function(t){var e=t.getBounding();a.drawImage(t.getImage(l),0,e.top,o,e.height)}));var u=this._xAxisPane.getBounding();return a.drawImage(this._xAxisPane.getImage(l),0,u.top,o,u.height),r.toDataURL(\\"image/\\".concat(null!=e?e:\\"jpeg\\"))},e.prototype.resize=function(){this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.destroy=function(){this._chartEvent.destroy(),this._panes.forEach((function(t){t.destroy()})),this._panes.clear(),this._xAxisPane.destroy(),this._container.removeChild(this._chartContainer)},e}(),li=new Map,ui=1;var ci={clone:i,merge:e,isString:u,isNumber:a,isValid:s,isObject:r,isArray:o,isFunction:n,isBoolean:l,formatValue:C,formatPrecision:T,formatBigNumber:w,formatDate:b,formatThousands:E,calcTextWidth:j,getLinearSlopeIntercept:kt,getLinearYFromSlopeIntercept:Pt,getLinearYFromCoordinates:Mt,checkCoordinateOnArc:xe,checkCoordinateOnCircle:re,checkCoordinateOnLine:Dt,checkCoordinateOnPolygon:le,checkCoordinateOnRect:de,checkCoordinateOnText:fe,drawArc:Se,drawCircle:ae,drawLine:At,drawPolygon:ue,drawRect:pe,drawText:me,drawRectText:_e};t.dispose=function(t){var e,i,o;if(t instanceof si)o=t.id;else{var n=void 0;o=null!==(e=null==(n=u(t)?document.getElementById(t):t)?void 0:n.getAttribute(\\"k-line-chart-id\\"))&&void 0!==e?e:null}null!==o&&(null===(i=li.get(o))||void 0===i||i.destroy(),li.delete(o))},t.getFigureClass=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null},t.getOverlayClass=function(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null},t.getSupportedFigures=function(){return Object.keys(be)},t.getSupportedIndicators=function(){return Object.keys(ht)},t.getSupportedLocales=function(){return Object.keys(Be)},t.getSupportedOverlays=function(){return Object.keys(Vt)},t.init=function(t,e){var i;if(null===(i=u(t)?document.getElementById(t):t))return null;var o=li.get(i.id);if(void 0!==o)return o;var n=\\"k_line_chart_\\".concat(ui++);return(o=new si(i,e)).id=n,i.setAttribute(\\"k-line-chart-id\\",n),li.set(n,o),o},t.registerFigure=function(t){be[t.name]=wt.extend(t)},t.registerIndicator=function(t){ht[t.name]=nt.extend(t)},t.registerLocale=function(t,e){Be[t]=k(k({},Be[t]),e)},t.registerOverlay=function(t){Vt[t.name]=xt.extend(t)},t.registerStyles=function(t,e){Jt[t]=e},t.utils=ci,t.version=function(){return\\"9.5.4\\"}}));\\n"]]},"headers":[],"relativePath":"sample/axis.md","filePath":"sample/axis.md","lastUpdated":1698784282000}`),p={name:"sample/axis.md"},C=Object.assign(p,{setup(v){return(g,f)=>(s(),l("div",null,[h,e("template",null,[c(n,{js:t(o),html:t(r),css:t(a),title:"坐标轴"},null,8,["js","html","css"]),i(" ::: code-group ```js:line-numbers [JavaScript] import { init } from 'klinecharts' import './index.css' "),d])]))}});export{x as __pageData,C as default}; diff --git a/assets/sample_axis.md.b22b37e6.js b/assets/sample_axis.md.b22b37e6.js new file mode 100644 index 000000000..85463f574 --- /dev/null +++ b/assets/sample_axis.md.b22b37e6.js @@ -0,0 +1,259 @@ +import{C as n}from"./chunks/Chart.68e0a929.js";import{j as s,h as o,c as a}from"./chunks/index.3fa44176.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"坐标轴",tabindex:"-1"},[p("坐标轴 "),e("a",{class:"header-anchor",href:"#坐标轴","aria-label":'Permalink to "坐标轴"'},"​")],-1),h=c(`
js
import { init } from 'klinecharts'
+import './index.css'
+
+function genData (timestamp = new Date().getTime(), length = 800) {
+  let basePrice = 5000
+  timestamp = Math.floor(timestamp / 1000 / 60) * 60 * 1000 - length * 60 * 1000
+  const dataList = []
+  for (let i = 0; i < length; i++) {
+    const prices = []
+    for (let j = 0; j < 4; j++) {
+      prices.push(basePrice + Math.random() * 60 - 30)
+    }
+    prices.sort()
+    const open = +(prices[Math.round(Math.random() * 3)].toFixed(2))
+    const high = +(prices[3].toFixed(2))
+    const low = +(prices[0].toFixed(2))
+    const close = +(prices[Math.round(Math.random() * 3)].toFixed(2))
+    const volume = Math.round(Math.random() * 100) + 10
+    const turnover = (open + high + low + close) / 4 * volume
+    dataList.push({ timestamp, open, high,low, close, volume, turnover })
+
+    basePrice = close
+    timestamp += 60 * 1000
+  }
+  return dataList
+}
+
+const chart = init('k-line-chart')
+chart.applyNewData(genData())
+
+function setPosition (position) {
+  chart.setStyles({
+    yAxis: {
+      position
+    }
+  })
+}
+
+function setInside (inside) {
+  chart.setStyles({
+    yAxis: {
+      inside
+    }
+  })
+}
+
+function setType (type) {
+  chart.setStyles({
+    yAxis: {
+      type
+    }
+  })
+}
+
+function setReverse (reverse) {
+  chart.setStyles({
+    yAxis: {
+      reverse
+    }
+  })
+}
+
+// 以下仅仅是为了协助代码演示,在实际项目中根据情况进行调整。
+// The following is only for the purpose of assisting in code demonstration, and adjustments will be made according to the actual situation in the project.
+const container = document.getElementById('container')
+const buttonContainer = document.createElement('div')
+buttonContainer.className = 'button-container'
+
+const positions = [
+  { key: 'right', text: '右侧-Right' },
+  { key: 'left', text: '左侧-Left' }
+]
+const insideOutside = [
+  { key: false, text: '外部-Outside' },
+  { key: true, text: '内部-Inside' }
+]
+const types = [
+  { key: 'normal', text: '线性轴-Liner Axis' },
+  { key: 'percentage', text: '百分比轴-Percentage axis' },
+  { key: 'log', text: '对数轴-Logarithm axis' },
+]
+const reverse = [
+  { key: false, text: '正向-Regularity' },
+  { key: true, text: '反向-Reverse' }
+]
+positions.forEach(({ key, text }) => {
+  const button = document.createElement('button')
+  button.innerText = text
+  button.addEventListener('click', () => { setPosition(key) })
+  buttonContainer.appendChild(button)
+})
+insideOutside.forEach(({ key, text }) => {
+  const button = document.createElement('button')
+  button.innerText = text
+  button.addEventListener('click', () => { setInside(key) })
+  buttonContainer.appendChild(button)
+})
+types.forEach(({ key, text }) => {
+  const button = document.createElement('button')
+  button.innerText = text
+  button.addEventListener('click', () => { setType(key) })
+  buttonContainer.appendChild(button)
+})
+reverse.forEach(({ key, text }) => {
+  const button = document.createElement('button')
+  button.innerText = text
+  button.addEventListener('click', () => { setReverse(key) })
+  buttonContainer.appendChild(button)
+})
+container.appendChild(buttonContainer)
+\`
import { init } from 'klinecharts'
+import './index.css'
+
+function genData (timestamp = new Date().getTime(), length = 800) {
+  let basePrice = 5000
+  timestamp = Math.floor(timestamp / 1000 / 60) * 60 * 1000 - length * 60 * 1000
+  const dataList = []
+  for (let i = 0; i < length; i++) {
+    const prices = []
+    for (let j = 0; j < 4; j++) {
+      prices.push(basePrice + Math.random() * 60 - 30)
+    }
+    prices.sort()
+    const open = +(prices[Math.round(Math.random() * 3)].toFixed(2))
+    const high = +(prices[3].toFixed(2))
+    const low = +(prices[0].toFixed(2))
+    const close = +(prices[Math.round(Math.random() * 3)].toFixed(2))
+    const volume = Math.round(Math.random() * 100) + 10
+    const turnover = (open + high + low + close) / 4 * volume
+    dataList.push({ timestamp, open, high,low, close, volume, turnover })
+
+    basePrice = close
+    timestamp += 60 * 1000
+  }
+  return dataList
+}
+
+const chart = init('k-line-chart')
+chart.applyNewData(genData())
+
+function setPosition (position) {
+  chart.setStyles({
+    yAxis: {
+      position
+    }
+  })
+}
+
+function setInside (inside) {
+  chart.setStyles({
+    yAxis: {
+      inside
+    }
+  })
+}
+
+function setType (type) {
+  chart.setStyles({
+    yAxis: {
+      type
+    }
+  })
+}
+
+function setReverse (reverse) {
+  chart.setStyles({
+    yAxis: {
+      reverse
+    }
+  })
+}
+
+// 以下仅仅是为了协助代码演示,在实际项目中根据情况进行调整。
+// The following is only for the purpose of assisting in code demonstration, and adjustments will be made according to the actual situation in the project.
+const container = document.getElementById('container')
+const buttonContainer = document.createElement('div')
+buttonContainer.className = 'button-container'
+
+const positions = [
+  { key: 'right', text: '右侧-Right' },
+  { key: 'left', text: '左侧-Left' }
+]
+const insideOutside = [
+  { key: false, text: '外部-Outside' },
+  { key: true, text: '内部-Inside' }
+]
+const types = [
+  { key: 'normal', text: '线性轴-Liner Axis' },
+  { key: 'percentage', text: '百分比轴-Percentage axis' },
+  { key: 'log', text: '对数轴-Logarithm axis' },
+]
+const reverse = [
+  { key: false, text: '正向-Regularity' },
+  { key: true, text: '反向-Reverse' }
+]
+positions.forEach(({ key, text }) => {
+  const button = document.createElement('button')
+  button.innerText = text
+  button.addEventListener('click', () => { setPosition(key) })
+  buttonContainer.appendChild(button)
+})
+insideOutside.forEach(({ key, text }) => {
+  const button = document.createElement('button')
+  button.innerText = text
+  button.addEventListener('click', () => { setInside(key) })
+  buttonContainer.appendChild(button)
+})
+types.forEach(({ key, text }) => {
+  const button = document.createElement('button')
+  button.innerText = text
+  button.addEventListener('click', () => { setType(key) })
+  buttonContainer.appendChild(button)
+})
+reverse.forEach(({ key, text }) => {
+  const button = document.createElement('button')
+  button.innerText = text
+  button.addEventListener('click', () => { setReverse(key) })
+  buttonContainer.appendChild(button)
+})
+container.appendChild(buttonContainer)
+\`
html
  <div id="k-line-chart" style="height:430px">
+</div>
+\`
  <div id="k-line-chart" style="height:430px">
+</div>
+\`
css
  display: flex;
+  flex-wrap: wrap;
+  align-items: center;
+  gap: 8px;
+  margin-top: 10px;
+  padding: 10px 22px;
+}
+
+.button-container button {
+  padding: 2px 6px;
+  background-color: #1677FF;
+  border-radius: 4px;
+  font-size: 12px;
+  color: #fff;
+  outline: none;
+  border: none;
+}
+\`
  display: flex;
+  flex-wrap: wrap;
+  align-items: center;
+  gap: 8px;
+  margin-top: 10px;
+  padding: 10px 22px;
+}
+
+.button-container button {
+  padding: 2px 6px;
+  background-color: #1677FF;
+  border-radius: 4px;
+  font-size: 12px;
+  color: #fff;
+  outline: none;
+  border: none;
+}
+\`
`,1),F=JSON.parse(`{"title":"坐标轴","description":"","frontmatter":{"aside":false,"editLink":false,"head":[["script",{},"/**\\n * @license\\n * KLineChart v9.5.4\\n * Copyright (c) 2019 lihu.\\n * Licensed under Apache License 2.0 https://www.apache.org/licenses/LICENSE-2.0\\n */\\n!function(t,e){\\"object\\"==typeof exports&&\\"undefined\\"!=typeof module?e(exports):\\"function\\"==typeof define&&define.amd?define([\\"exports\\"],e):e((t=\\"undefined\\"!=typeof globalThis?globalThis:t||self).klinecharts={})}(this,(function(t){\\"use strict\\";function e(t,i){if(r(t)||r(i))for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var a=t[n],l=i[n];r(l)&&r(a)&&!o(l)&&!o(a)?e(a,l):s(i[n])&&(t[n]=i[n])}}function i(t){if(!r(t)||!o(t))return t;var e;for(var n in e=o(t)?[]:{},t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=t[n];e[n]=r(a)?i(a):a}return e}function o(t){return\\"[object Array]\\"===Object.prototype.toString.call(t)}function n(t){return\\"function\\"==typeof t}function r(t){return\\"object\\"==typeof t}function a(t){return\\"number\\"==typeof t&&!isNaN(t)}function s(t){return null!=t}function l(t){return\\"boolean\\"==typeof t}function u(t){return\\"string\\"==typeof t}var c,h,d,p,v,g,f,m,y,_,x=/\\\\\\\\(\\\\\\\\)?/g,S=RegExp(\\"[^.[\\\\\\\\]]+|\\\\\\\\[(?:([^\\\\\\"'][^[]*)|([\\\\\\"'])((?:(?!\\\\\\\\2)[^\\\\\\\\\\\\\\\\]|\\\\\\\\\\\\\\\\.)*?)\\\\\\\\2)\\\\\\\\]|(?=(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\])(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\]|$))\\",\\"g\\");function C(t,e,i){if(s(t)){var o=[];e.replace(S,(function(t){for(var e=[],i=1;arguments.length>i;i++)e[i-1]=arguments[i];var n=t;return s(e[1])?n=e[2].replace(x,\\"$1\\"):s(e[0])&&(n=e[0].trim()),o.push(n),\\"\\"}));for(var n=t,r=0,a=o.length;s(n)&&a>r;)n=null==n?void 0:n[o[r++]];return s(n)?n:null!=i?i:\\"--\\"}return null!=i?i:\\"--\\"}function b(t,e,i){var o=t.format(new Date(e)).split(\\", \\"),n=o[0].split(\\"/\\"),r=o[1].split(\\":\\"),a={YYYY:n[2],MM:n[0],DD:n[1],HH:\\"24\\"===r[0]?\\"00\\":r[0],mm:r[1],ss:r[2]};return i.replace(/YYYY|MM|DD|HH|mm|ss/g,(function(t){return a[t]}))}function T(t,e){var i=+t;return a(i)?i.toFixed(null!=e?e:2):\\"\\".concat(t)}function w(t){var e=+t;if(a(e)){if(e>1e9)return\\"\\".concat(+(e/1e9).toFixed(3),\\"B\\");if(e>1e6)return\\"\\".concat(+(e/1e6).toFixed(3),\\"M\\");if(e>1e3)return\\"\\".concat(+(e/1e3).toFixed(3),\\"K\\")}return\\"\\".concat(t)}function E(t,e){var i=\\"\\".concat(t);if(0===e.length)return i;if(i.includes(\\".\\")){var o=i.split(\\".\\");return\\"\\".concat(o[0].replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)})),\\".\\").concat(o[1])}return i.replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)}))}t.LineType=void 0,(c=t.LineType||(t.LineType={})).Dashed=\\"dashed\\",c.Solid=\\"solid\\",t.PolygonType=void 0,(h=t.PolygonType||(t.PolygonType={})).Stroke=\\"stroke\\",h.Fill=\\"fill\\",h.StrokeFill=\\"stroke_fill\\",t.TooltipShowRule=void 0,(d=t.TooltipShowRule||(t.TooltipShowRule={})).Always=\\"always\\",d.FollowCross=\\"follow_cross\\",d.None=\\"none\\",t.TooltipShowType=void 0,(p=t.TooltipShowType||(t.TooltipShowType={})).Standard=\\"standard\\",p.Rect=\\"rect\\",t.TooltipIconPosition=void 0,(v=t.TooltipIconPosition||(t.TooltipIconPosition={})).Left=\\"left\\",v.Middle=\\"middle\\",v.Right=\\"right\\",function(t){t.Fixed=\\"fixed\\",t.Pointer=\\"pointer\\"}(g||(g={})),t.CandleType=void 0,(f=t.CandleType||(t.CandleType={})).CandleSolid=\\"candle_solid\\",f.CandleStroke=\\"candle_stroke\\",f.CandleUpStroke=\\"candle_up_stroke\\",f.CandleDownStroke=\\"candle_down_stroke\\",f.Ohlc=\\"ohlc\\",f.Area=\\"area\\",t.YAxisPosition=void 0,(m=t.YAxisPosition||(t.YAxisPosition={})).Left=\\"left\\",m.Right=\\"right\\",t.YAxisType=void 0,(y=t.YAxisType||(t.YAxisType={})).Normal=\\"normal\\",y.Percentage=\\"percentage\\",y.Log=\\"log\\",t.FormatDateType=void 0,(_=t.FormatDateType||(t.FormatDateType={}))[_.Tooltip=0]=\\"Tooltip\\",_[_.Crosshair=1]=\\"Crosshair\\",_[_.XAxis=2]=\\"XAxis\\";var I=\\"en-US\\",D=function(t,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},D(t,e)};function P(t,e){if(\\"function\\"!=typeof e&&null!==e)throw new TypeError(\\"Class extends value \\"+e+\\" is not a constructor or null\\");function i(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var M,k=function(){return k=Object.assign||function(t){for(var e,i=1,o=arguments.length;o>i;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},k.apply(this,arguments)};function A(t,e,i,o){return new(i||(i=Promise))((function(n,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function s(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))}function F(t,e){var i,o,n,r,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},\\"function\\"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(l){return function(s){if(i)throw new TypeError(\\"Generator is already executing.\\");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(i=1,o&&(n=2&s[0]?o.return:s[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&n[3]>s[1])){a.label=s[1];break}if(6===s[0]&&n[1]>a.label){a.label=n[1],n=s;break}if(n&&n[2]>a.label){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],o=0}finally{i=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function L(t){var e=\\"function\\"==typeof Symbol&&Symbol.iterator,i=e&&t[e],o=0;if(i)return i.call(t);if(t&&\\"number\\"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?\\"Object is not iterable.\\":\\"Symbol.iterator is not defined.\\")}function R(t,e){var i=\\"function\\"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,n,r=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return a}function B(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;r>n;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}t.ActionType=void 0,(M=t.ActionType||(t.ActionType={})).OnZoom=\\"onZoom\\",M.OnScroll=\\"onScroll\\",M.OnVisibleRangeChange=\\"onVisibleRangeChange\\",M.OnTooltipIconClick=\\"onTooltipIconClick\\",M.OnCrosshairChange=\\"onCrosshairChange\\",M.OnCandleBarClick=\\"onCandleBarClick\\",M.OnPaneDrag=\\"onPaneDrag\\";var O,V=function(){function t(){this._callbacks=[]}return t.prototype.subscribe=function(t){var e;0>(null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1)&&this._callbacks.push(t)},t.prototype.unsubscribe=function(t){var e;if(void 0!==t){var i=null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1;i>-1&&this._callbacks.splice(i,1)}else this._callbacks=[]},t.prototype.execute=function(t){this._callbacks.forEach((function(e){e(t)}))},t.prototype.isEmpty=function(){return 0===this._callbacks.length},t}(),N=1,W=(new Date).getTime();function z(t){var e=(new Date).getTime();return e===W?++N:N=1,W=e,\\"\\".concat(null!=t?t:\\"\\").concat(e,\\"_\\").concat(N)}function Y(t,e){var i,o=document.createElement(t),n=null!=e?e:{};for(var r in n)o.style[r]=null!==(i=n[r])&&void 0!==i?i:\\"\\";return o}function X(t){var e,i,o;return Math.ceil(null!==(o=null===(i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0===i?void 0:i.devicePixelRatio)&&void 0!==o?o:2)}function H(t,e,i){return\\"\\".concat(null!=e?e:\\"normal\\",\\" \\").concat(null!=t?t:12,\\"px \\").concat(null!=i?i:\\"Helvetica Neue\\")}function j(t,e,i,o){if(void 0===O){var n=document.createElement(\\"canvas\\"),r=X(n);(O=n.getContext(\\"2d\\")).scale(r,r)}return O.font=H(e,i,o),Math.round(O.measureText(t).width)}function Z(t,e,i){var o=0,n=0;for(n=t.length-1;o!==n;){var r=Math.floor((n+o)/2),a=n-o,s=t[r][e];if(i===t[o][e])return o;if(i===t[n][e])return n;if(i===s)return r;if(i>s?o=r:n=r,2>=a)break}return o}function G(t,e){return null==e&&(e=10),+(+t).toFixed(e=Math.min(Math.max(0,e),20))}function K(t,e,i){var o=[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER];return t.forEach((function(t){var n,r;o[0]=Math.max(null!==(n=t[e])&&void 0!==n?n:t,o[0]),o[1]=Math.min(null!==(r=t[i])&&void 0!==r?r:t,o[1])})),o}function U(t){return Math.log(t)/Math.log(10)}function q(t){return Math.pow(10,t)}var $,J=1,Q=50,tt=6,et=50,it=function(){function e(t){this._dateTimeFormat=this._buildDateTimeFormat(),this._zoomEnabled=!0,this._scrollEnabled=!0,this._loading=!0,this._loadMoreCallback=null,this._more=!0,this._totalBarSpace=0,this._barSpace=tt,this._offsetRightDistance=et,this._startScrollOffsetRightBarCount=0,this._minVisibleBarCount={left:2,right:2},this._visibleRange={from:0,to:0,realFrom:0,realTo:0},this._chartStore=t,this._gapBarSpace=this._calcGapBarSpace(),this._offsetRightBarCount=this._offsetRightDistance/this._barSpace}return e.prototype._calcGapBarSpace=function(){return Math.max(1,Math.min(Math.floor(.82*this._barSpace),Math.floor(this._barSpace)-1))},e.prototype.adjustVisibleRange=function(){var e,i=this._chartStore.getDataList(),o=i.length,n=this._totalBarSpace/this._barSpace,r=n-Math.min(this._minVisibleBarCount.left,o);this._offsetRightBarCount>r&&(this._offsetRightBarCount=r);var a=-o+Math.min(this._minVisibleBarCount.right,o);a>this._offsetRightBarCount&&(this._offsetRightBarCount=a);var s=Math.round(this._offsetRightBarCount+o+.5);s>o&&(s=o);var l=Math.round(s-n)-1;if(0>l&&(l=0),this._visibleRange={from:l,to:s,realFrom:this._offsetRightBarCount>0?Math.round(o+this._offsetRightBarCount-n)-1:l,realTo:s},this._chartStore.getActionStore().execute(t.ActionType.OnVisibleRangeChange,this._visibleRange),this._chartStore.adjustVisibleDataList(),0===l&&this._more&&!this._loading&&null!==this._loadMoreCallback){this._loading=!0;var u=i[0];this._loadMoreCallback(null!==(e=null==u?void 0:u.timestamp)&&void 0!==e?e:null)}},e.prototype.setMore=function(t){return this._more=t,this},e.prototype.setLoading=function(t){return this._loading=t,this},e.prototype.getDateTimeFormat=function(){return this._dateTimeFormat},e.prototype._buildDateTimeFormat=function(t){var e={hour12:!1,year:\\"numeric\\",month:\\"2-digit\\",day:\\"2-digit\\",hour:\\"2-digit\\",minute:\\"2-digit\\",second:\\"2-digit\\"};void 0!==t&&(e.timeZone=t);var i=null;try{i=new Intl.DateTimeFormat(\\"en\\",e)}catch(t){}return i},e.prototype.setTimezone=function(t){var e=this._buildDateTimeFormat(t);null!==e&&(this._dateTimeFormat=e)},e.prototype.getTimezone=function(){return this._dateTimeFormat.resolvedOptions().timeZone},e.prototype.getBarSpace=function(){return{bar:this._barSpace,halfBar:this._barSpace/2,gapBar:this._gapBarSpace,halfGapBar:this._gapBarSpace/2}},e.prototype.setBarSpace=function(t,e){J>t||t>Q||this._barSpace===t||(this._barSpace=t,this._gapBarSpace=this._calcGapBarSpace(),null==e||e(),this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0))},e.prototype.setTotalBarSpace=function(t){return this._totalBarSpace!==t&&(this._totalBarSpace=t,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0)),this},e.prototype.setOffsetRightDistance=function(t,e){return this._offsetRightDistance=t,this._offsetRightBarCount=t/this._barSpace,null!=e&&e&&(this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)),this},e.prototype.resetOffsetRightDistance=function(){this.setOffsetRightDistance(this._offsetRightDistance)},e.prototype.getInitialOffsetRightDistance=function(){return this._offsetRightDistance},e.prototype.getOffsetRightDistance=function(){return Math.max(0,this._offsetRightBarCount*this._barSpace)},e.prototype.getOffsetRightBarCount=function(){return this._offsetRightBarCount},e.prototype.setOffsetRightBarCount=function(t){return this._offsetRightBarCount=t,this},e.prototype.setLeftMinVisibleBarCount=function(t){return this._minVisibleBarCount.left=t,this},e.prototype.setRightMinVisibleBarCount=function(t){return this._minVisibleBarCount.right=t,this},e.prototype.getVisibleRange=function(){return this._visibleRange},e.prototype.startScroll=function(){this._startScrollOffsetRightBarCount=this._offsetRightBarCount},e.prototype.scroll=function(e){if(this._scrollEnabled){var i=e/this._barSpace;this._chartStore.getActionStore().execute(t.ActionType.OnScroll),this._offsetRightBarCount=this._startScrollOffsetRightBarCount-i,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)}},e.prototype.getDataByDataIndex=function(t){var e;return null!==(e=this._chartStore.getDataList()[t])&&void 0!==e?e:null},e.prototype.coordinateToFloatIndex=function(t){var e=this._chartStore.getDataList().length;return Math.round(1e6*(e+this._offsetRightBarCount-(this._totalBarSpace-t)/this._barSpace))/1e6},e.prototype.dataIndexToTimestamp=function(t){var e,i=this.getDataByDataIndex(t);return null!==(e=null==i?void 0:i.timestamp)&&void 0!==e?e:null},e.prototype.timestampToDataIndex=function(t){var e=this._chartStore.getDataList();return 0===e.length?0:Z(e,\\"timestamp\\",t)},e.prototype.dataIndexToCoordinate=function(t){var e=this._chartStore.getDataList().length;return this._totalBarSpace-(e+this._offsetRightBarCount-t-.5)*this._barSpace},e.prototype.coordinateToDataIndex=function(t){return Math.ceil(this.coordinateToFloatIndex(t))-1},e.prototype.zoom=function(e,i){var o,n=this;if(this._zoomEnabled){if(void 0===(null==i?void 0:i.x)){var r=this._chartStore.getTooltipStore().getCrosshair();i={x:null!==(o=null==r?void 0:r.x)&&void 0!==o?o:this._totalBarSpace/2}}this._chartStore.getActionStore().execute(t.ActionType.OnZoom);var a=this.coordinateToFloatIndex(i.x);this.setBarSpace(this._barSpace+e*(this._barSpace/10),(function(){n._offsetRightBarCount+=a-n.coordinateToFloatIndex(null==i?void 0:i.x)}))}},e.prototype.setZoomEnabled=function(t){return this._zoomEnabled=t,this},e.prototype.getZoomEnabled=function(){return this._zoomEnabled},e.prototype.setScrollEnabled=function(t){return this._scrollEnabled=t,this},e.prototype.getScrollEnabled=function(){return this._scrollEnabled},e.prototype.setLoadMoreCallback=function(t){return this._loadMoreCallback=t,this},e.prototype.clear=function(){this._more=!0,this._loading=!0,this._visibleRange={from:0,to:0,realFrom:0,realTo:0}},e}();function ot(t,e,i,o,n){var r,a=e.result,l=e.figures,u=e.styles,c=C(u,\\"circles\\",o.circles),h=c.length,d=C(u,\\"bars\\",o.bars),p=d.length,v=C(u,\\"lines\\",o.lines),g=v.length,f=0,m=0,y=0;l.forEach((function(l){var u;switch(l.type){case\\"circle\\":var _=c[f%h];r=k(k({},_),{color:_.noChangeColor}),f++;break;case\\"bar\\":var x=d[m%p];r=k(k({},x),{color:x.noChangeColor}),m++;break;case\\"line\\":r=v[y%g],y++}if(s(r)){var S=null===(u=l.styles)||void 0===u?void 0:u.call(l,{prev:{kLineData:t[i-1],indicatorData:a[i-1]},current:{kLineData:t[i],indicatorData:a[i]},next:{kLineData:t[i+1],indicatorData:a[i+1]}},e,o);n(l,k(k({},r),S))}}))}t.IndicatorSeries=void 0,($=t.IndicatorSeries||(t.IndicatorSeries={})).Normal=\\"normal\\",$.Price=\\"price\\",$.Volume=\\"volume\\";var nt=function(){function i(e){this.result=[],this._precisionFlag=!1;var i=e.name,o=e.shortName,n=e.series,r=e.calcParams,a=e.figures,s=e.precision,l=e.shouldOhlc,u=e.shouldFormatBigNumber,c=e.visible,h=e.minValue,d=e.maxValue,p=e.styles,v=e.extendData,g=e.regenerateFigures,f=e.createTooltipDataSource,m=e.draw;this.name=i,this.shortName=null!=o?o:i,this.series=null!=n?n:t.IndicatorSeries.Normal,this.precision=null!=s?s:4,this.calcParams=null!=r?r:[],this.figures=null!=a?a:[],this.shouldOhlc=null!=l&&l,this.shouldFormatBigNumber=null!=u&&u,this.visible=null==c||c,this.minValue=null!=h?h:null,this.maxValue=null!=d?d:null,this.styles=null!=p?p:{},this.extendData=v,this.regenerateFigures=null!=g?g:null,this.createTooltipDataSource=null!=f?f:null,this.draw=null!=m?m:null}return i.prototype.setShortName=function(t){return this.shortName!==t&&(this.shortName=t,!0)},i.prototype.setSeries=function(t){return this.series!==t&&(this.series=t,!0)},i.prototype.setPrecision=function(t,e){var i=null!=e&&e,o=Math.floor(t);return!(o===this.precision||0>t||i&&(!i||this._precisionFlag))&&(this.precision=o,i||(this._precisionFlag=!0),!0)},i.prototype.setCalcParams=function(t){var e,i;return this.calcParams=t,this.figures=null!==(i=null===(e=this.regenerateFigures)||void 0===e?void 0:e.call(this,t))&&void 0!==i?i:this.figures,!0},i.prototype.setShouldOhlc=function(t){return this.shouldOhlc!==t&&(this.shouldOhlc=t,!0)},i.prototype.setShouldFormatBigNumber=function(t){return this.shouldFormatBigNumber!==t&&(this.shouldFormatBigNumber=t,!0)},i.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},i.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},i.prototype.setExtendData=function(t){return this.extendData!==t&&(this.extendData=t,!0)},i.prototype.setFigures=function(t){return this.figures!==t&&(this.figures=t,!0)},i.prototype.setMinValue=function(t){return this.minValue!==t&&(this.minValue=t,!0)},i.prototype.setMaxValue=function(t){return this.maxValue!==t&&(this.maxValue=t,!0)},i.prototype.setRegenerateFigures=function(t){return this.regenerateFigures!==t&&(this.regenerateFigures=t,!0)},i.prototype.setCreateTooltipDataSource=function(t){return this.createTooltipDataSource!==t&&(this.createTooltipDataSource=t,!0)},i.prototype.setDraw=function(t){return this.draw!==t&&(this.draw=t,!0)},i.prototype.calcIndicator=function(t){return A(this,void 0,void 0,(function(){var e;return F(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.calc(t,this)];case 1:return e=i.sent(),this.result=e,[2,!0];case 2:return i.sent(),[2,!1];case 3:return[2]}}))}))},i.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i.prototype.calc=function(e,i){return t.calc(e,i)},i}(i)},i}(),rt={name:\\"AVP\\",shortName:\\"AVP\\",series:t.IndicatorSeries.Price,precision:2,figures:[{key:\\"avp\\",title:\\"AVP: \\",type:\\"line\\"}],calc:function(t){var e=0,i=0;return t.map((function(t){var o,n,r={},a=null!==(o=null==t?void 0:t.turnover)&&void 0!==o?o:0,s=null!==(n=null==t?void 0:t.volume)&&void 0!==n?n:0;return e+=a,0!==(i+=s)&&(r.avp=e/i),r}))}};var at={name:\\"EMA\\",shortName:\\"EMA\\",series:t.IndicatorSeries.Price,calcParams:[6,12,20],precision:2,shouldOhlc:!0,figures:[{key:\\"ema1\\",title:\\"EMA6: \\",type:\\"line\\"},{key:\\"ema2\\",title:\\"EMA12: \\",type:\\"line\\"},{key:\\"ema3\\",title:\\"EMA20: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ema\\".concat(e+1),title:\\"EMA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=0,r=[];return t.map((function(t,e){var a={},s=t.close;return n+=s,i.forEach((function(t,i){t-1>e||(r[i]=e>t-1?(2*s+(t-1)*r[i])/(t+1):n/t,a[o[i].key]=r[i])})),a}))}},st={name:\\"MA\\",shortName:\\"MA\\",series:t.IndicatorSeries.Price,calcParams:[5,10,30,60],precision:2,shouldOhlc:!0,figures:[{key:\\"ma5\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma10\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma30\\",title:\\"MA30: \\",type:\\"line\\"},{key:\\"ma60\\",title:\\"MA60: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,i){var l;n[i]=(null!==(l=n[i])&&void 0!==l?l:0)+s,e-1>r||(a[o[i].key]=n[i]/e,n[i]-=t[r-(e-1)].close)})),a}))}},lt={name:\\"RSI\\",shortName:\\"RSI\\",calcParams:[6,12,24],figures:[{key:\\"rsi1\\",title:\\"RSI1: \\",type:\\"line\\"},{key:\\"rsi2\\",title:\\"RSI2: \\",type:\\"line\\"},{key:\\"rsi3\\",title:\\"RSI3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){var i=e+1;return{key:\\"rsi\\".concat(i),title:\\"RSI\\".concat(i,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[],r=[];return t.map((function(e,a){var s,l={},u=(null!==(s=t[a-1])&&void 0!==s?s:e).close,c=e.close-u;return i.forEach((function(e,i){var s,u,h;if(c>0?n[i]=(null!==(s=n[i])&&void 0!==s?s:0)+c:r[i]=(null!==(u=r[i])&&void 0!==u?u:0)+Math.abs(c),a>=e-1){l[o[i].key]=0!==r[i]?100-100/(1+n[i]/r[i]):0;var d=t[a-(e-1)],p=null!==(h=t[a-e])&&void 0!==h?h:d,v=d.close-p.close;v>0?n[i]-=v:r[i]-=Math.abs(v)}})),l}))}},ut={name:\\"VOL\\",shortName:\\"VOL\\",series:t.IndicatorSeries.Volume,calcParams:[5,10,20],shouldFormatBigNumber:!0,precision:0,minValue:0,figures:[{key:\\"ma1\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA20: \\",type:\\"line\\"},{key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}],regenerateFigures:function(t){var e=t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}));return e.push({key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}),e},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a,s=null!==(a=e.volume)&&void 0!==a?a:0,l={volume:s};return i.forEach((function(e,i){var a,u;n[i]=(null!==(a=n[i])&&void 0!==a?a:0)+s,e-1>r||(l[o[i].key]=n[i]/e,n[i]-=null!==(u=t[r-(e-1)].volume)&&void 0!==u?u:0)})),l}))}},ct={name:\\"WR\\",shortName:\\"WR\\",calcParams:[6,10,14],figures:[{key:\\"wr1\\",title:\\"WR1: \\",type:\\"line\\"},{key:\\"wr2\\",title:\\"WR2: \\",type:\\"line\\"},{key:\\"wr3\\",title:\\"WR3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"wr\\".concat(e+1),title:\\"WR\\".concat(e+1,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures;return t.map((function(e,n){var r={},a=e.close;return i.forEach((function(e,i){var s=e-1;if(n>=s){var l=K(t.slice(n-s,n+1),\\"high\\",\\"low\\"),u=l[0],c=u-l[1];r[o[i].key]=0===c?0:(a-u)/c*100}})),r}))}},ht={},dt=[rt,{name:\\"AO\\",shortName:\\"AO\\",calcParams:[5,34],figures:[{key:\\"ao\\",title:\\"AO: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.ao)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.ao)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return{color:l=c>u?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor),style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,borderColor:l}}}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=0;return t.map((function(e,l){var u,c={},h=(e.low+e.high)/2;(n+=h,r+=h,ll||(c.ao=a-s),c}))}},{name:\\"BIAS\\",shortName:\\"BIAS\\",calcParams:[6,12,24],figures:[{key:\\"bias1\\",title:\\"BIAS6: \\",type:\\"line\\"},{key:\\"bias2\\",title:\\"BIAS12: \\",type:\\"line\\"},{key:\\"bias3\\",title:\\"BIAS24: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"bias\\".concat(e+1),title:\\"BIAS\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,l){var u;if(n[l]=(null!==(u=n[l])&&void 0!==u?u:0)+s,r>=e-1){var c=n[l]/i[l];a[o[l].key]=(s-c)/c*100,n[l]-=t[r-(e-1)].close}})),a}))}},{name:\\"BOLL\\",shortName:\\"BOLL\\",series:t.IndicatorSeries.Price,calcParams:[20,2],precision:2,shouldOhlc:!0,figures:[{key:\\"up\\",title:\\"UP: \\",type:\\"line\\"},{key:\\"mid\\",title:\\"MID: \\",type:\\"line\\"},{key:\\"dn\\",title:\\"DN: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0;return t.map((function(e,r){var a={};if(n+=e.close,r>=o){a.mid=n/i[0];var s=function(t,e){var i=t.length,o=0;return t.forEach((function(t){var i=t.close-e;o+=i*i})),Math.sqrt((o=Math.abs(o))/i)}(t.slice(r-o,r+1),a.mid);a.up=a.mid+i[1]*s,a.dn=a.mid-i[1]*s,n-=t[r-o].close}return a}))}},{name:\\"BRAR\\",shortName:\\"BRAR\\",calcParams:[26],figures:[{key:\\"br\\",title:\\"BR: \\",type:\\"line\\"},{key:\\"ar\\",title:\\"AR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0;return t.map((function(e,s){var l,u,c={},h=e.high,d=e.low,p=e.open,v=(null!==(l=t[s-1])&&void 0!==l?l:e).close;if(r+=h-p,a+=p-d,o+=h-v,n+=v-d,s>=i[0]-1){c.ar=0!==a?r/a*100:0,c.br=0!==n?o/n*100:0;var g=t[s-(i[0]-1)],f=g.high,m=g.low,y=g.open,_=(null!==(u=t[s-i[0]])&&void 0!==u?u:t[s-(i[0]-1)]).close;o-=f-_,n-=_-m,r-=f-y,a-=y-m}return c}))}},{name:\\"BBI\\",shortName:\\"BBI\\",series:t.IndicatorSeries.Price,precision:2,calcParams:[3,6,12,24],shouldOhlc:!0,figures:[{key:\\"bbi\\",title:\\"BBI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max.apply(Math,B([],R(i),!1)),n=[],r=[];return t.map((function(e,a){var s={},l=e.close;if(i.forEach((function(e,i){var o;n[i]=(null!==(o=n[i])&&void 0!==o?o:0)+l,e-1>a||(r[i]=n[i]/e,n[i]-=t[a-(e-1)].close)})),a>=o-1){var u=0;r.forEach((function(t){u+=t})),s.bbi=u/4}return s}))}},{name:\\"CCI\\",shortName:\\"CCI\\",calcParams:[20],figures:[{key:\\"cci\\",title:\\"CCI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0,r=[];return t.map((function(e,a){var s={},l=(e.high+e.low+e.close)/3;if(n+=l,r.push(l),a>=o){var u=n/i[0],c=r.slice(a-o,a+1),h=0;c.forEach((function(t){h+=Math.abs(t-u)}));var d=h/i[0];s.cci=0!==d?(l-u)/d/.015:0,n-=(t[a-o].high+t[a-o].low+t[a-o].close)/3}return s}))}},{name:\\"CR\\",shortName:\\"CR\\",calcParams:[26,10,20,40,60],figures:[{key:\\"cr\\",title:\\"CR: \\",type:\\"line\\"},{key:\\"ma1\\",title:\\"MA1: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA2: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA3: \\",type:\\"line\\"},{key:\\"ma4\\",title:\\"MA4: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.ceil(i[1]/2.5+1),n=Math.ceil(i[2]/2.5+1),r=Math.ceil(i[3]/2.5+1),a=Math.ceil(i[4]/2.5+1),s=0,l=[],u=0,c=[],h=0,d=[],p=0,v=[],g=[];return t.forEach((function(e,f){var m,y,_,x,S,C={},b=null!==(m=t[f-1])&&void 0!==m?m:e,T=(b.high+b.close+b.low+b.open)/4,w=Math.max(0,e.high-T),E=Math.max(0,T-e.low);i[0]-1>f||(C.cr=0!==E?w/E*100:0,s+=C.cr,u+=C.cr,h+=C.cr,p+=C.cr,i[0]+i[1]-2>f||(l.push(s/i[1]),i[0]+i[1]+o-3>f||(C.ma1=l[l.length-1-o]),s-=null!==(y=g[f-(i[1]-1)].cr)&&void 0!==y?y:0),i[0]+i[2]-2>f||(c.push(u/i[2]),i[0]+i[2]+n-3>f||(C.ma2=c[c.length-1-n]),u-=null!==(_=g[f-(i[2]-1)].cr)&&void 0!==_?_:0),i[0]+i[3]-2>f||(d.push(h/i[3]),i[0]+i[3]+r-3>f||(C.ma3=d[d.length-1-r]),h-=null!==(x=g[f-(i[3]-1)].cr)&&void 0!==x?x:0),i[0]+i[4]-2>f||(v.push(p/i[4]),i[0]+i[4]+a-3>f||(C.ma4=v[v.length-1-a]),p-=null!==(S=g[f-(i[4]-1)].cr)&&void 0!==S?S:0)),g.push(C)})),g}},{name:\\"DMA\\",shortName:\\"DMA\\",calcParams:[10,50,10],figures:[{key:\\"dma\\",title:\\"DMA: \\",type:\\"line\\"},{key:\\"ama\\",title:\\"AMA: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c={},h=e.close;n+=h,r+=h;var d=0,p=0;if(i[0]-1>l||(d=n/i[0],n-=t[l-(i[0]-1)].close),i[1]-1>l||(p=r/i[1],r-=t[l-(i[1]-1)].close),l>=o-1){var v=d-p;c.dma=v,a+=v,o+i[2]-2>l||(c.ama=a/i[2],a-=null!==(u=s[l-(i[2]-1)].dma)&&void 0!==u?u:0)}s.push(c)})),s}},{name:\\"DMI\\",shortName:\\"DMI\\",calcParams:[14,6],figures:[{key:\\"pdi\\",title:\\"PDI: \\",type:\\"line\\"},{key:\\"mdi\\",title:\\"MDI: \\",type:\\"line\\"},{key:\\"adx\\",title:\\"ADX: \\",type:\\"line\\"},{key:\\"adxr\\",title:\\"ADXR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=0,l=0,u=0,c=0,h=[];return t.forEach((function(e,d){var p,v,g={},f=null!==(p=t[d-1])&&void 0!==p?p:e,m=f.close,y=e.high,_=e.low,x=y-_,S=Math.abs(y-m),C=Math.abs(m-_),b=y-f.high,T=f.low-_,w=Math.max(Math.max(x,S),C),E=b>0&&b>T?b:0,I=T>0&&T>b?T:0;if(o+=w,n+=E,r+=I,d>=i[0]-1){d>i[0]-1?(a=a-a/i[0]+w,s=s-s/i[0]+E,l=l-l/i[0]+I):(a=o,s=n,l=r);var D=0,P=0;0!==a&&(D=100*s/a,P=100*l/a),g.pdi=D,g.mdi=P;var M=0;P+D!==0&&(M=Math.abs(P-D)/(P+D)*100),u+=M,2*i[0]-2>d||(g.adx=c=d>2*i[0]-2?(c*(i[0]-1)+M)/i[0]:u/i[0],2*i[0]+i[1]-3>d||(g.adxr=((null!==(v=h[d-(i[1]-1)].adx)&&void 0!==v?v:0)+c)/2))}h.push(g)})),h}},{name:\\"EMV\\",shortName:\\"EMV\\",calcParams:[14,9],figures:[{key:\\"emv\\",title:\\"EMV: \\",type:\\"line\\"},{key:\\"maEmv\\",title:\\"MAEMV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.map((function(e,r){var a,s={};if(r>0){var l=t[r-1],u=e.high,c=e.low,h=null!==(a=e.volume)&&void 0!==a?a:0,d=(u+c)/2-(l.high+l.low)/2;if(0===h||u-c==0)s.emv=0;else s.emv=d/(h/1e8/(u-c));o+=s.emv,n.push(s.emv),i[0]>r||(s.maEmv=o/i[0],o-=n[r-i[0]])}return s}))}},at,{name:\\"MTM\\",shortName:\\"MTM\\",calcParams:[12,6],figures:[{key:\\"mtm\\",title:\\"MTM: \\",type:\\"line\\"},{key:\\"maMtm\\",title:\\"MAMTM: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.forEach((function(e,r){var a,s={};rr||(s.maMtm=o/i[1],o-=null!==(a=n[r-(i[1]-1)].mtm)&&void 0!==a?a:0));n.push(s)})),n}},st,{name:\\"MACD\\",shortName:\\"MACD\\",calcParams:[12,26,9],figures:[{key:\\"dif\\",title:\\"DIF: \\",type:\\"line\\"},{key:\\"dea\\",title:\\"DEA: \\",type:\\"line\\"},{key:\\"macd\\",title:\\"MACD: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.macd)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.macd)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return l=c>0?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):0>c?C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor):C(i.styles,\\"bars[0].noChangeColor\\",o.bars[0].noChangeColor),{style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,color:l,borderColor:l}}}],calc:function(t,e){var i,o,n=e.calcParams,r=0,a=0,s=0,l=0,u=Math.max(n[0],n[1]);return t.map((function(t,e){var c={},h=t.close;return r+=h,n[0]-1>e||(i=e>n[0]-1?(2*h+(n[0]-1)*i)/(n[0]+1):r/n[0]),n[1]-1>e||(o=e>n[1]-1?(2*h+(n[1]-1)*o)/(n[1]+1):r/n[1]),u-1>e||(c.dif=a=i-o,s+=a,u+n[2]-2>e||(c.macd=2*(a-(l=e>u+n[2]-2?(2*a+l*(n[2]-1))/(n[2]+1):s/n[2])),c.dea=l)),c}))}},{name:\\"OBV\\",shortName:\\"OBV\\",calcParams:[30],figures:[{key:\\"obv\\",title:\\"OBV: \\",type:\\"line\\"},{key:\\"maObv\\",title:\\"MAOBV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[];return t.forEach((function(e,a){var s,l,u,c,h=null!==(s=t[a-1])&&void 0!==s?s:e;h.close>e.close?n-=null!==(l=e.volume)&&void 0!==l?l:0:e.close>h.close&&(n+=null!==(u=e.volume)&&void 0!==u?u:0);var d={obv:n};o+=n,i[0]-1>a||(d.maObv=o/i[0],o-=null!==(c=r[a-(i[0]-1)].obv)&&void 0!==c?c:0),r.push(d)})),r}},{name:\\"PVT\\",shortName:\\"PVT\\",figures:[{key:\\"pvt\\",title:\\"PVT: \\",type:\\"line\\"}],calc:function(t){var e=0;return t.map((function(i,o){var n,r,a={},s=null!==(n=i.volume)&&void 0!==n?n:1,l=(null!==(r=t[o-1])&&void 0!==r?r:i).close,u=0,c=l*s;return 0!==c&&(u=(i.close-l)/c),a.pvt=e+=u,a}))}},{name:\\"PSY\\",shortName:\\"PSY\\",calcParams:[12,6],figures:[{key:\\"psy\\",title:\\"PSY: \\",type:\\"line\\"},{key:\\"maPsy\\",title:\\"MAPSY: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[],a=[];return t.forEach((function(e,s){var l,u,c={},h=(null!==(l=t[s-1])&&void 0!==l?l:e).close,d=e.close-h>0?1:0;r.push(d),o+=d,i[0]-1>s||(c.psy=o/i[0]*100,n+=c.psy,i[0]+i[1]-2>s||(c.maPsy=n/i[1],n-=null!==(u=a[s-(i[1]-1)].psy)&&void 0!==u?u:0),o-=r[s-(i[0]-1)]),a.push(c)})),a}},{name:\\"ROC\\",shortName:\\"ROC\\",calcParams:[12,6],figures:[{key:\\"roc\\",title:\\"ROC: \\",type:\\"line\\"},{key:\\"maRoc\\",title:\\"MAROC: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[],n=0;return t.forEach((function(e,r){var a,s,l={};if(r>=i[0]-1){var u=(null!==(a=t[r-i[0]])&&void 0!==a?a:t[r-(i[0]-1)]).close;l.roc=0!==u?(e.close-u)/u*100:0,n+=l.roc,i[0]-1+i[1]-1>r||(l.maRoc=n/i[1],n-=null!==(s=o[r-(i[1]-1)].roc)&&void 0!==s?s:0)}o.push(l)})),o}},lt,{name:\\"SMA\\",shortName:\\"SMA\\",series:t.IndicatorSeries.Price,calcParams:[12,2],precision:2,figures:[{key:\\"sma\\",title:\\"SMA: \\",type:\\"line\\"}],shouldOhlc:!0,calc:function(t,e){var i=e.calcParams,o=0,n=0;return t.map((function(t,e){var r={},a=t.close;return o+=a,i[0]-1>e||(r.sma=n=e>i[0]-1?(a*i[1]+n*(i[0]-i[1]+1))/(i[0]+1):o/i[0]),r}))}},{name:\\"KDJ\\",shortName:\\"KDJ\\",calcParams:[9,3,3],figures:[{key:\\"k\\",title:\\"K: \\",type:\\"line\\"},{key:\\"d\\",title:\\"D: \\",type:\\"line\\"},{key:\\"j\\",title:\\"J: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[];return t.forEach((function(e,n){var r,a,s,l,u={},c=e.close;if(n>=i[0]-1){var h=K(t.slice(n-(i[0]-1),n+1),\\"high\\",\\"low\\"),d=h[1],p=h[0]-d;u.k=((i[1]-1)*(null!==(a=null===(r=o[n-1])||void 0===r?void 0:r.k)&&void 0!==a?a:50)+(c-d)/(0===p?1:p)*100)/i[1],u.d=((i[2]-1)*(null!==(l=null===(s=o[n-1])||void 0===s?void 0:s.d)&&void 0!==l?l:50)+u.k)/i[2],u.j=3*u.k-2*u.d}o.push(u)})),o}},{name:\\"SAR\\",shortName:\\"SAR\\",series:t.IndicatorSeries.Price,calcParams:[2,2,20],precision:2,shouldOhlc:!0,figures:[{key:\\"sar\\",title:\\"SAR: \\",type:\\"circle\\",styles:function(t,e,i){var o,n,r=t.current,a=null!==(n=null===(o=r.indicatorData)||void 0===o?void 0:o.sar)&&void 0!==n?n:Number.MIN_SAFE_INTEGER,s=r.kLineData;return{color:((null==s?void 0:s.high)+(null==s?void 0:s.low))/2>a?C(e.styles,\\"circles[0].upColor\\",i.circles[0].upColor):C(e.styles,\\"circles[0].downColor\\",i.circles[0].downColor)}}}],calc:function(t,e){var i=e.calcParams,o=i[0]/100,n=i[1]/100,r=i[2]/100,a=o,s=-100,l=!1,u=0;return t.map((function(e,i){var c=u,h=e.high,d=e.low;if(l){(-100===s||h>s)&&(s=h,a=Math.min(a+n,r)),u=c+a*(s-c);var p=Math.min(t[Math.max(1,i)-1].low,d);u>e.low?(u=s,a=o,s=-100,l=!l):u>p&&(u=p)}else{(-100===s||s>d)&&(s=d,a=Math.min(a+n,r)),u=c+a*(s-c);var v=Math.max(t[Math.max(1,i)-1].high,h);e.high>u?(u=s,a=0,s=-100,l=!l):v>u&&(u=v)}return{sar:u}}))}},{name:\\"TRIX\\",shortName:\\"TRIX\\",calcParams:[12,9],figures:[{key:\\"trix\\",title:\\"TRIX: \\",type:\\"line\\"},{key:\\"maTrix\\",title:\\"MATRIX: \\",type:\\"line\\"}],calc:function(t,e){var i,o,n,r=e.calcParams,a=0,s=0,l=0,u=0,c=[];return t.forEach((function(t,e){var h,d={},p=t.close;if(a+=p,e>=r[0]-1&&(s+=i=e>r[0]-1?(2*p+(r[0]-1)*i)/(r[0]+1):a/r[0],e>=2*r[0]-2&&(l+=o=e>2*r[0]-2?(2*i+(r[0]-1)*o)/(r[0]+1):s/r[0],e>=3*r[0]-3))){var v=void 0,g=0;e>3*r[0]-3?g=((v=(2*o+(r[0]-1)*n)/(r[0]+1))-n)/n*100:v=l/r[0],n=v,d.trix=g,u+=g,3*r[0]+r[1]-4>e||(d.maTrix=u/r[1],u-=null!==(h=c[e-(r[1]-1)].trix)&&void 0!==h?h:0)}c.push(d)})),c}},ut,{name:\\"VR\\",shortName:\\"VR\\",calcParams:[26,6],figures:[{key:\\"vr\\",title:\\"VR: \\",type:\\"line\\"},{key:\\"maVr\\",title:\\"MAVR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c,h,d,p,v={},g=e.close,f=(null!==(u=t[l-1])&&void 0!==u?u:e).close,m=null!==(c=e.volume)&&void 0!==c?c:0;if(g>f?o+=m:f>g?n+=m:r+=m,l>=i[0]-1){var y=r/2;v.vr=n+y===0?0:(o+y)/(n+y)*100,a+=v.vr,i[0]+i[1]-2>l||(v.maVr=a/i[1],a-=null!==(h=s[l-(i[1]-1)].vr)&&void 0!==h?h:0);var _=t[l-(i[0]-1)],x=null!==(d=t[l-i[0]])&&void 0!==d?d:_,S=_.close,C=null!==(p=_.volume)&&void 0!==p?p:0;S>x.close?o-=C:x.close>S?n-=C:r-=C}s.push(v)})),s}},ct];function pt(t){var e;return null!==(e=ht[t])&&void 0!==e?e:null}dt.forEach((function(t){ht[t.name]=nt.extend(t)}));var vt,gt=function(){function e(t){this._instances=new Map,this._chartStore=t}return e.prototype._overrideInstance=function(t,e){var i=e.shortName,o=e.series,n=e.calcParams,r=e.precision,a=e.figures,s=e.minValue,l=e.maxValue,u=e.shouldOhlc,c=e.shouldFormatBigNumber,h=e.visible,d=e.styles,p=e.extendData,v=e.regenerateFigures,g=e.createTooltipDataSource,f=e.draw,m=e.calc,y=!1;void 0!==i&&t.setShortName(i)&&(y=!0),void 0!==o&&t.setSeries(o)&&(y=!0);var _=!1;return void 0!==n&&t.setCalcParams(n)&&(y=!0,_=!0),void 0!==a&&t.setFigures(a)&&(y=!0,_=!0),void 0!==s&&t.setMinValue(s)&&(y=!0),void 0!==l&&t.setMinValue(l)&&(y=!0),void 0!==r&&t.setPrecision(r)&&(y=!0),void 0!==u&&t.setShouldOhlc(u)&&(y=!0),void 0!==c&&t.setShouldFormatBigNumber(c)&&(y=!0),void 0!==h&&t.setVisible(h)&&(y=!0),void 0!==d&&t.setStyles(d)&&(y=!0),void 0!==p&&t.setExtendData(p)&&(y=!0,_=!0),void 0!==v&&t.setRegenerateFigures(v)&&(y=!0),void 0!==g&&t.setCreateTooltipDataSource(g)&&(y=!0),void 0!==f&&t.setDraw(f)&&(y=!0),void 0!==m&&(t.calc=m,_=!0),[y,_]},e.prototype.addInstance=function(t,e,i){var o;return A(this,void 0,void 0,(function(){var n,r,a,s;return F(this,(function(l){switch(l.label){case 0:return n=t.name,r=this._instances.get(e),null!==(o=null==r?void 0:r.has(n))&&void 0!==o&&o?[4,Promise.reject(Error(\\"Duplicate indicators.\\"))]:[3,2];case 1:case 3:return[2,l.sent()];case 2:return void 0===r&&(r=new Map,this._instances.set(e,r)),a=pt(n),s=new a,this._overrideInstance(s,t),i||r.clear(),r.set(n,s),[4,s.calcIndicator(this._chartStore.getDataList())]}}))}))},e.prototype.getInstances=function(t){var e;return null!==(e=this._instances.get(t))&&void 0!==e?e:new Map},e.prototype.removeInstance=function(t,e){var i=!1,o=this._instances.get(t);return void 0!==o&&(void 0!==e?o.has(e)&&(o.delete(e),i=!0):(o.clear(),i=!0),0===o.size&&this._instances.delete(t)),i},e.prototype.hasInstances=function(t){return this._instances.has(t)},e.prototype.calcInstance=function(t,e){var i;return A(this,void 0,void 0,(function(){var o,n,r,a=this;return F(this,(function(s){switch(s.label){case 0:return o=[],void 0!==t?void 0!==e?(n=this._instances.get(e),null!==(i=null==n?void 0:n.has(t))&&void 0!==i&&i&&(r=null==n?void 0:n.get(t),o.push(r.calcIndicator(this._chartStore.getDataList())))):this._instances.forEach((function(e){if(e.has(t)){var i=null==e?void 0:e.get(t);o.push(i.calcIndicator(a._chartStore.getDataList()))}})):this._instances.forEach((function(t){t.forEach((function(t){o.push(t.calcIndicator(a._chartStore.getDataList()))}))})),[4,Promise.all(o)];case 1:return[2,s.sent().includes(!0)]}}))}))},e.prototype.getInstanceByPaneId=function(t,e){var i;if(void 0!==t){var o=this._instances.get(t);return void 0!==e?null!==(i=null==o?void 0:o.get(e))&&void 0!==i?i:null:null!=o?o:null}return this._instances},e.prototype.setSeriesPrecision=function(e){this._instances.forEach((function(i){i.forEach((function(i){i.series===t.IndicatorSeries.Price&&i.setPrecision(e.price,!0),i.series===t.IndicatorSeries.Volume&&i.setPrecision(e.volume,!0)}))}))},e.prototype.override=function(t,e){return A(this,void 0,void 0,(function(){var i,o,n,r,a,s,l=this;return F(this,(function(u){switch(u.label){case 0:return i=t.name,o=new Map,null!==e?void 0!==(n=this._instances.get(e))&&o.set(e,n):o=this._instances,r=!1,a=[],o.forEach((function(e){var o=e.get(i);if(void 0!==o){var n=l._overrideInstance(o,t);n[1]?a.push(o.calcIndicator(l._chartStore.getDataList())):n[0]&&(r=!0)}})),[4,Promise.all(a)];case 1:return s=u.sent(),[2,[r,s.includes(!0)]]}}))}))},e}(),ft=function(){function t(t){this._crosshair={},this._activeIcon=null,this._chartStore=t}return t.prototype.setCrosshair=function(t,e){var i,o,n=this._chartStore.getDataList(),r=null!=t?t:{},a=n[o=void 0!==r.x?0>(i=this._chartStore.getTimeScaleStore().coordinateToDataIndex(r.x))?0:i>n.length-1?n.length-1:i:i=n.length-1],s=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(i),l=this._crosshair.x,u=this._crosshair.y,c=this._crosshair.paneId;this._crosshair=k(k({},r),{realX:s,kLineData:a,realDataIndex:i,dataIndex:o}),l===r.x&&u===r.y&&c===r.paneId||(null!==a&&this._chartStore.getChart().crosshairChange(this._crosshair),null!=e&&e||this._chartStore.getChart().updatePane(1))},t.prototype.recalculateCrosshair=function(t){this.setCrosshair(this._crosshair,t)},t.prototype.getCrosshair=function(){return this._crosshair},t.prototype.setActiveIcon=function(t){this._activeIcon=null!=t?t:null},t.prototype.getActiveIcon=function(){return this._activeIcon},t.prototype.clear=function(){this.setCrosshair({},!0),this.setActiveIcon()},t}();t.OverlayMode=void 0,(vt=t.OverlayMode||(t.OverlayMode={})).Normal=\\"normal\\",vt.WeakMagnet=\\"weak_magnet\\",vt.StrongMagnet=\\"strong_magnet\\";var mt=1,yt=\\"overlay_figure_\\",_t=Number.MAX_SAFE_INTEGER,xt=function(){function o(e){this.currentStep=mt,this.points=[],this._prevPressedPoint=null,this._prevPressedPoints=[];var i=e.mode,o=e.modeSensitivity,n=e.extendData,r=e.styles,a=e.totalStep,s=e.lock,l=e.visible,u=e.zLevel,c=e.needDefaultPointFigure,h=e.needDefaultXAxisFigure,d=e.needDefaultYAxisFigure,p=e.createPointFigures,v=e.createXAxisFigures,g=e.createYAxisFigures,f=e.performEventPressedMove,m=e.performEventMoveForDrawing,y=e.onDrawStart,_=e.onDrawing,x=e.onDrawEnd,S=e.onClick,C=e.onDoubleClick,b=e.onRightClick,T=e.onPressedMoveStart,w=e.onPressedMoving,E=e.onPressedMoveEnd,I=e.onMouseEnter,D=e.onMouseLeave,P=e.onRemoved,M=e.onSelected,k=e.onDeselected;this.name=e.name,this.totalStep=void 0===a||2>a?1:a,this.lock=null!=s&&s,this.visible=null==l||l,this.zLevel=null!=u?u:0,this.needDefaultPointFigure=null!=c&&c,this.needDefaultXAxisFigure=null!=h&&h,this.needDefaultYAxisFigure=null!=d&&d,this.mode=null!=i?i:t.OverlayMode.Normal,this.modeSensitivity=null!=o?o:8,this.extendData=n,this.styles=null!=r?r:{},this.createPointFigures=null!=p?p:null,this.createXAxisFigures=null!=v?v:null,this.createYAxisFigures=null!=g?g:null,this.performEventPressedMove=null!=f?f:null,this.performEventMoveForDrawing=null!=m?m:null,this.onDrawStart=null!=y?y:null,this.onDrawing=null!=_?_:null,this.onDrawEnd=null!=x?x:null,this.onClick=null!=S?S:null,this.onDoubleClick=null!=C?C:null,this.onRightClick=null!=b?b:null,this.onPressedMoveStart=null!=T?T:null,this.onPressedMoving=null!=w?w:null,this.onPressedMoveEnd=null!=E?E:null,this.onMouseEnter=null!=I?I:null,this.onMouseLeave=null!=D?D:null,this.onRemoved=null!=P?P:null,this.onSelected=null!=M?M:null,this.onDeselected=null!=k?k:null}return o.prototype.setId=function(t){return void 0===this.id&&(this.id=t,!0)},o.prototype.setGroupId=function(t){return void 0===this.groupId&&(this.groupId=t,!0)},o.prototype.setDefaultZLevel=function(t){return void 0===this.defaultZLevel&&(this.defaultZLevel=t,!0)},o.prototype.setPaneId=function(t){this.paneId=t},o.prototype.setExtendData=function(t){return t!==this.extendData&&(this.extendData=t,!0)},o.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},o.prototype.setPoints=function(t){if(t.length>0){var e=void 0;if(this.points=B([],R(t),!1),this.totalStep-1>t.length?(this.currentStep=t.length+1,e=t.length):(this.currentStep=-1,e=this.totalStep-1),null!==this.performEventMoveForDrawing)for(var i=0;e>i;i++)this.performEventMoveForDrawing({currentStep:i+2,mode:this.mode,points:this.points,performPointIndex:i,performPoint:this.points[i]});return-1===this.currentStep&&null!==this.performEventPressedMove&&this.performEventPressedMove({currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:this.points.length-1,performPoint:this.points[this.points.length-1]}),!0}return!1},o.prototype.setLock=function(t){return this.lock!==t&&(this.lock=t,!0)},o.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},o.prototype.resetZLevel=function(){this.zLevel=this.defaultZLevel},o.prototype.setZLevel=function(t){return this.zLevel!==t&&(this.zLevel=t,!0)},o.prototype.setMode=function(t){return this.mode!==t&&(this.mode=t,!0)},o.prototype.setModeSensitivity=function(t){return this.modeSensitivity!==t&&(this.modeSensitivity=t,!0)},o.prototype.setOnDrawStartCallback=function(t){return this.onDrawStart!==t&&(this.onDrawStart=t,!0)},o.prototype.setOnDrawingCallback=function(t){return this.onDrawing!==t&&(this.onDrawing=t,!0)},o.prototype.setOnDrawEndCallback=function(t){return this.onDrawEnd!==t&&(this.onDrawEnd=t,!0)},o.prototype.setOnClickCallback=function(t){return this.onClick!==t&&(this.onClick=t,!0)},o.prototype.setOnDoubleClickCallback=function(t){return this.onDoubleClick!==t&&(this.onDoubleClick=t,!0)},o.prototype.setOnRightClickCallback=function(t){return this.onRightClick!==t&&(this.onRightClick=t,!0)},o.prototype.setOnPressedMoveStartCallback=function(t){return this.onPressedMoveStart!==t&&(this.onPressedMoveStart=t,!0)},o.prototype.setOnPressedMovingCallback=function(t){return this.onPressedMoving!==t&&(this.onPressedMoving=t,!0)},o.prototype.setOnPressedMoveEndCallback=function(t){return this.onPressedMoveEnd!==t&&(this.onPressedMoveEnd=t,!0)},o.prototype.setOnMouseEnterCallback=function(t){return this.onMouseEnter!==t&&(this.onMouseEnter=t,!0)},o.prototype.setOnMouseLeaveCallback=function(t){return this.onMouseLeave!==t&&(this.onMouseLeave=t,!0)},o.prototype.setOnRemovedCallback=function(t){return this.onRemoved!==t&&(this.onRemoved=t,!0)},o.prototype.setOnSelectedCallback=function(t){return this.onSelected!==t&&(this.onSelected=t,!0)},o.prototype.setOnDeselectedCallback=function(t){return this.onDeselected!==t&&(this.onDeselected=t,!0)},o.prototype.nextStep=function(){this.currentStep===this.totalStep-1?this.currentStep=-1:this.currentStep++},o.prototype.forceComplete=function(){this.currentStep=-1},o.prototype.isDrawing=function(){return-1!==this.currentStep},o.prototype.isStart=function(){return this.currentStep===mt},o.prototype.eventMoveForDrawing=function(t){var e,i=this.currentStep-1,o={};void 0!==t.timestamp&&(o.timestamp=t.timestamp),void 0!==t.dataIndex&&(o.dataIndex=t.dataIndex),void 0!==t.value&&(o.value=t.value),this.points[i]=o,null===(e=this.performEventMoveForDrawing)||void 0===e||e.call(this,{currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:i,performPoint:o})},o.prototype.eventPressedPointMove=function(t,e){var i;void 0!==t.dataIndex&&(this.points[e].dataIndex=t.dataIndex,this.points[e].timestamp=t.timestamp),void 0!==t.value&&(this.points[e].value=t.value),null===(i=this.performEventPressedMove)||void 0===i||i.call(this,{currentStep:this.currentStep,points:this.points,mode:this.mode,performPointIndex:e,performPoint:this.points[e]})},o.prototype.startPressedMove=function(t){this._prevPressedPoint=k({},t),this._prevPressedPoints=i(this.points)},o.prototype.eventPressedOtherMove=function(t,e){var i,o;null!==this._prevPressedPoint&&(void 0!==t.dataIndex&&void 0!==this._prevPressedPoint.dataIndex&&(i=t.dataIndex-this._prevPressedPoint.dataIndex),void 0!==t.value&&void 0!==this._prevPressedPoint.value&&(o=t.value-this._prevPressedPoint.value),this.points=this._prevPressedPoints.map((function(t){var n;void 0===t.dataIndex&&void 0!==t.timestamp&&(t.dataIndex=e.timestampToDataIndex(t.timestamp));var r=k({},t);return void 0!==i&&void 0!==t.dataIndex&&(r.dataIndex=t.dataIndex+i,r.timestamp=null!==(n=e.dataIndexToTimestamp(r.dataIndex))&&void 0!==n?n:void 0),void 0!==o&&void 0!==t.value&&(r.value=t.value+o),r})))},o.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i}(o)},o}(),St={name:\\"fibonacciLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.precision,o=t.thousandsSeparator,n=t.overlay.points;if(e.length>0){var r=[],a=[],s=t.bounding.width;if(e.length>1&&void 0!==n[0].value&&void 0!==n[1].value){var l=e[0].y-e[1].y,u=n[0].value-n[1].value;[1,.786,.618,.5,.382,.236,0].forEach((function(t){var c,h=e[1].y+l*t,d=E(((null!==(c=n[1].value)&&void 0!==c?c:0)+u*t).toFixed(i.price),o);r.push({coordinates:[{x:0,y:h},{x:s,y:h}]}),a.push({x:0,y:h,text:\\"\\".concat(d,\\" (\\").concat((100*t).toFixed(1),\\"%)\\"),baseline:\\"bottom\\"})}))}return[{type:\\"line\\",attrs:r},{type:\\"text\\",isCheckEvent:!1,attrs:a}]}return[]}},Ct={name:\\"horizontalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i={x:0,y:e[0].y};return void 0!==e[1]&&e[1].x>e[0].x&&(i.x=t.bounding.width),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},bt=function(){function t(){this._children=[],this._callbacks=new Map}return t.prototype.registerEvent=function(t,e){return this._callbacks.set(t,e),this},t.prototype.onEvent=function(t,e,i){var o=this._callbacks.get(t);return!(void 0===o||!this.checkEventOn(e))&&o(e,i)},t.prototype.checkEventOn=function(t){var e,i;try{for(var o=L(this._children),n=o.next();!n.done;n=o.next()){if(n.value.checkEventOn(t))return!0}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return!1},t.prototype.dispatchEvent=function(t,e,i){var o=this._children.length-1;if(o>-1)for(var n=o;n>-1;n--)if(this._children[n].dispatchEvent(t,e,i))return!0;return this.onEvent(t,e,i)},t.prototype.addChild=function(t){return this._children.push(t),this},t.prototype.clear=function(){this._children=[]},t}(),Tt=2,wt=function(t){function e(e){var i=t.call(this)||this;return i.attrs=e.attrs,i.styles=e.styles,i}return P(e,t),e.prototype.checkEventOn=function(t){return this.checkEventOnImp(t,this.attrs,this.styles)},e.prototype.draw=function(t){this.drawImp(t,this.attrs,this.styles)},e.extend=function(t){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.checkEventOnImp=function(e,i,o){return t.checkEventOn(e,i,o)},i.prototype.drawImp=function(e,i,o){t.draw(e,i,o)},i}(e);return i},e}(bt);function Et(t,e){return Math.sqrt(Math.pow(t.x+e.x,2)+Math.pow(t.y+e.y,2))}function It(t){var e=Et(t[0],t[1]),i=e+Et(t[1],t[2]),o=[t[2].x-t[0].x,t[2].y-t[0].y];return[{x:t[1].x-.5*o[0]*e/i,y:t[1].y-.5*o[1]*e/i},{x:t[1].x+.5*o[0]*e/i,y:t[1].y+.5*o[1]*e/i}]}function Dt(t,e){var i=e.coordinates;if(i.length>1)for(var o=1;i.length>o;o++){var n=i[o-1],r=i[o];if(n.x===r.x){if(Tt+Tt>Math.abs(n.y-t.y)+Math.abs(r.y-t.y)-Math.abs(n.y-r.y)&&Tt>Math.abs(t.x-n.x))return!0}else{var a=kt(n,r),s=Pt(a,t),l=Math.abs(s-t.y);if(Tt+Tt>Math.abs(n.x-t.x)+Math.abs(r.x-t.x)-Math.abs(n.x-r.x)&&Tt*Tt>l*l/(a[0]*a[0]+1))return!0}}return!1}function Pt(t,e){return null!=t?e.x*t[0]+t[1]:e.y}function Mt(t,e,i){return Pt(kt(t,e),i)}function kt(t,e){var i=t.x-e.x;if(0!==i){var o=(t.y-e.y)/i;return[o,t.y-o*t.x]}return null}function At(e,i,o){var n=i.coordinates,r=n.length;if(r>1){var a=o.style,s=void 0===a?t.LineType.Solid:a,l=o.smooth,u=o.size,c=o.color,h=void 0===c?\\"currentColor\\":c,d=o.dashedValue,p=void 0===d?[2,2]:d;if(e.lineWidth=void 0===u?1:u,e.strokeStyle=h,e.setLineDash(s===t.LineType.Dashed?p:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y),null!=l&&l){for(var v=[],g=1;r-1>g;g++)v=v.concat(It([n[g-1],n[g],n[g+1]]));e.quadraticCurveTo(v[0].x,v[0].y,n[1].x,n[1].y);for(var f=2;r-1>f;f++)e.bezierCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,v[2*(f-1)].x,v[2*(f-1)].y,n[f].x,n[f].y);e.quadraticCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,n[f].x,n[f].y)}else for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.stroke(),e.closePath()}}var Ft={name:\\"line\\",checkEventOn:Dt,draw:function(t,e,i){At(t,e,i)}};function Lt(t,e,i){var o=null!=i?i:0,n=[];if(t.length>1)if(t[0].x===t[1].x){var r=e.height;if(n.push({coordinates:[{x:t[0].x,y:0},{x:t[0].x,y:r}]}),t.length>2){n.push({coordinates:[{x:t[2].x,y:0},{x:t[2].x,y:r}]});for(var a=t[0].x-t[2].x,s=0;o>s;s++){var l=a*(s+1);n.push({coordinates:[{x:t[0].x+l,y:0},{x:t[0].x+l,y:r}]})}}}else{var u=e.width,c=kt(t[0],t[1]),h=c[0],d=c[1];if(n.push({coordinates:[{x:0,y:0*h+d},{x:u,y:u*h+d}]}),t.length>2){var p=t[2].y-h*t[2].x;n.push({coordinates:[{x:0,y:0*h+p},{x:u,y:u*h+p}]});for(a=d-p,s=0;o>s;s++){var v=d+a*(s+1);n.push({coordinates:[{x:0,y:0*h+v},{x:u,y:u*h+v}]})}}}return n}function Rt(t,e){if(t.length>1){var i=void 0;return i=t[0].x===t[1].x&&t[0].y!==t[1].y?t[1].y>t[0].y?{x:t[0].x,y:e.height}:{x:t[0].x,y:0}:t[0].x>t[1].x?{x:0,y:Mt(t[0],t[1],{x:0,y:t[0].y})}:{x:e.width,y:Mt(t[0],t[1],{x:e.width,y:t[0].y})},{coordinates:[t[0],i]}}return[]}var Bt={name:\\"simpleAnnotation\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"},line:{style:t.LineType.Dashed}},createPointFigures:function(t){var e,i,o=t.overlay,r=t.coordinates;s(o.extendData)&&(i=n(o.extendData)?o.extendData(o):null!==(e=o.extendData)&&void 0!==e?e:\\"\\");var a=r[0].x,l=r[0].y-6,u=l-50,c=u-5;return[{type:\\"line\\",attrs:{coordinates:[{x:a,y:l},{x:a,y:u}]},ignoreEvent:!0},{type:\\"polygon\\",attrs:{coordinates:[{x:a,y:u},{x:a-4,y:c},{x:a+4,y:c}]},ignoreEvent:!0},{type:\\"text\\",attrs:{x:a,y:c,text:null!=i?i:\\"\\",align:\\"center\\",baseline:\\"bottom\\"},ignoreEvent:!0}]}},Ot={name:\\"simpleTag\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}},createPointFigures:function(t){var e=t.coordinates;return{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]},ignoreEvent:!0}},createYAxisFigures:function(t){var e,i,o,r,a,l=t.overlay,u=t.coordinates,c=t.bounding,h=t.yAxis,d=t.precision;return null!==(e=null==h?void 0:h.isFromZero())&&void 0!==e&&e?(o=\\"left\\",r=0):(o=\\"right\\",r=c.width),s(l.extendData)&&(a=n(l.extendData)?l.extendData(l):null!==(i=l.extendData)&&void 0!==i?i:\\"\\"),s(a)||void 0===l.points[0].value||(a=T(l.points[0].value,d.price)),{type:\\"text\\",attrs:{x:r,y:u[0].y,text:null!=a?a:\\"\\",align:o,baseline:\\"middle\\"}}}},Vt={};function Nt(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null}function Wt(t){var i={width:0,height:0,left:0,right:0,top:0,bottom:0};return void 0!==t&&e(i,t),i}[St,Ct,{name:\\"horizontalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=[];return 2===e.length&&i.push({coordinates:e}),[{type:\\"line\\",attrs:i}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},{name:\\"horizontalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]}}]}},{name:\\"parallelStraightLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding)}]}},{name:\\"priceChannelLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding,1)}]}},{name:\\"priceLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.thousandsSeparator,o=t.overlay.points[0].value;return[{type:\\"line\\",attrs:{coordinates:[e[0],{x:t.bounding.width,y:e[0].y}]}},{type:\\"text\\",ignoreEvent:!0,attrs:{x:e[0].x,y:e[0].y,text:E((void 0===o?0:o).toFixed(t.precision.price),i),baseline:\\"bottom\\"}}]}},{name:\\"rayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Rt(t.coordinates,t.bounding)}]}},{name:\\"segment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]}},{name:\\"straightLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.bounding;return 2===e.length?e[0].x===e[1].x?[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:i.height}]}}]:[{type:\\"line\\",attrs:{coordinates:[{x:0,y:Mt(e[0],e[1],{x:0,y:e[0].y})},{x:i.width,y:Mt(e[0],e[1],{x:i.width,y:e[0].y})}]}}]:[]}},{name:\\"verticalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;if(2===e.length){var i={x:e[0].x,y:0};return e[1].y>e[0].y&&(i.y=t.bounding.height),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]}return[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:t.bounding.height}]}}]}},Bt,Ot].forEach((function(t){Vt[t.name]=xt.extend(t)}));var zt=\\"main\\",Yt=\\"xAxis\\",Xt=\\"yAxis\\",Ht=\\"separator\\",jt=function(t){function i(e,i){var o=t.call(this)||this;return o._bounding=Wt(),o._pane=i,o._init(e),o}return P(i,t),i.prototype._init=function(t){if(this._container=Y(\\"div\\",this.getContainerStyle()),this.insertBefore()){var e=t.lastChild;null!==e?t.insertBefore(this._container,e):t.appendChild(this._container)}else t.appendChild(this._container);this.initDom(this._container)},i.prototype.setBounding=function(t){return e(this._bounding,t),this},i.prototype.getContainer=function(){return this._container},i.prototype.getBounding=function(){return this._bounding},i.prototype.getPane=function(){return this._pane},i.prototype.update=function(t){this.updateImp(this._container,this._bounding,null!=t?t:3)},i.prototype.insertBefore=function(){return!1},i}(bt);var Zt=function(e){function i(t,i){var o,n,r,a=e.call(this,t,i)||this;return a._dragFlag=!1,a._dragStartY=0,a._topPaneHeight=0,a._currentPaneHeight=0,a._pressedMouseMoveEvent=(o=a._pressedTouchMouseMoveEvent,n=20,r=0,function(){var t=Date.now();t-r>(null!=n?n:20)&&(o.apply(this,arguments),r=t)}),a.registerEvent(\\"touchStartEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"touchMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"touchEndEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"mouseDownEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"mouseUpEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"pressedMouseMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"mouseEnterEvent\\",a._mouseEnterEvent.bind(a)).registerEvent(\\"mouseLeaveEvent\\",a._mouseLeaveEvent.bind(a)),a}return P(i,e),i.prototype.getName=function(){return Ht},i.prototype.checkEventOn=function(){return!0},i.prototype._mouseDownEvent=function(t){var e,i;this._dragFlag=!0,this._dragStartY=t.pageY;var o=this.getPane();return this._topPaneHeight=null!==(i=null===(e=o.getTopPane())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,this._currentPaneHeight=o.getBounding().height,!0},i.prototype._mouseUpEvent=function(){return this._dragFlag=!1,this._mouseLeaveEvent()},i.prototype._pressedTouchMouseMoveEvent=function(e){var i=e.pageY-this._dragStartY,o=this.getPane(),n=o.getTopPane(),r=0>i;if(null!==n&&o.getOptions().dragEnabled){var a=void 0,s=void 0,l=void 0,u=void 0;r?(a=n,s=o,l=this._topPaneHeight,u=this._currentPaneHeight):(a=o,s=n,l=this._currentPaneHeight,u=this._topPaneHeight);var c=a.getOptions().minHeight;if(l>c){var h=Math.max(l-Math.abs(i),c),d=l-h;a.setBounding({height:h}),s.setBounding({height:u+d});var p=o.getChart();p.getChartStore().getActionStore().execute(t.ActionType.OnPaneDrag,{paneId:o.getId}),p.adjustPaneViewport(!0,!0,!0,!0,!0)}}return!0},i.prototype._mouseEnterEvent=function(){var t=this.getPane();if(t.getOptions().dragEnabled){var e=t.getChart().getStyles().separator;return this._moveDom.style.background=e.activeBackgroundColor,!0}return!1},i.prototype._mouseLeaveEvent=function(){return!this._dragFlag&&(this._moveDom.style.background=\\"\\",!0)},i.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",boxSizing:\\"border-box\\"}},i.prototype.insertBefore=function(){return!0},i.prototype.initDom=function(t){this._moveDom=Y(\\"div\\",{width:\\"100%\\",height:\\"\\".concat(7,\\"px\\"),margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"-3px\\",zIndex:\\"20\\",boxSizing:\\"border-box\\",cursor:\\"ns-resize\\"}),t.appendChild(this._moveDom)},i.prototype.updateImp=function(t,e,i){if(4===i||2===i){var o=this.getPane().getChart().getStyles().separator;this._moveDom.style.top=\\"\\".concat(-Math.floor((7-o.size)/2),\\"px\\"),this._moveDom.style.height=\\"\\".concat(7,\\"px\\");var n=o.fill;t.style.backgroundColor=o.color,t.style.height=\\"\\".concat(o.size,\\"px\\"),t.style.marginLeft=\\"\\".concat(n?0:e.left,\\"px\\"),t.style.width=n?\\"100%\\":\\"\\".concat(e.width,\\"px\\")}},i.prototype.getImage=function(){var t=this.getPane().getChart().getStyles().separator,e=this.getContainer().offsetWidth,i=t.size,o=Y(\\"canvas\\",{width:\\"\\".concat(e,\\"px\\"),height:\\"\\".concat(i,\\"px\\"),boxSizing:\\"border-box\\"}),n=o.getContext(\\"2d\\"),r=X(o);return o.width=e*r,o.height=i*r,n.scale(r,r),n.fillStyle=t.color,n.fillRect(this.getBounding().left,0,e,i),o},i}(jt),Gt=30,Kt={CANDLE:\\"candle_pane\\",INDICATOR:\\"indicator_pane_\\",XAXIS:\\"xaxis_pane\\"},Ut=function(){function t(t,e,i,o,n){this._yAxisWidget=null,this._separatorWidget=null,this._axis=this.createAxisComponent(),this._bounding=Wt(),this._options={minHeight:Gt,dragEnabled:!0,gap:{top:.2,bottom:.1},axisOptions:{scrollZoomEnabled:!0}},this._chart=e,this._id=i,this._topPane=null!=o?o:null,this._bottomPane=null!=n?n:null,this._init(t)}return t.prototype._init=function(t){this._container=t,this._seriesContainer=Y(\\"div\\",{width:\\"100%\\",margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}),this._separatorWidget=this.createSeparatorWidget(t);var e=t.lastChild;null!==e?t.insertBefore(this._seriesContainer,e):t.appendChild(this._seriesContainer),this._mainWidget=this.createMainWidget(this._seriesContainer),this._yAxisWidget=this.createYAxisWidget(this._seriesContainer)},t.prototype.getContainer=function(){return this._seriesContainer},t.prototype.getId=function(){return this._id},t.prototype.setOptions=function(t){var i,o,n,r,a;return e(this._options,t),this.getId()===Kt.XAXIS?(r=this.getMainWidget().getContainer(),a=\\"ew-resize\\"):(r=null===(i=this.getYAxisWidget())||void 0===i?void 0:i.getContainer(),a=\\"ns-resize\\"),r.style.cursor=null===(n=null===(o=t.axisOptions)||void 0===o?void 0:o.scrollZoomEnabled)||void 0===n||n?a:\\"default\\",this},t.prototype.getOptions=function(){return this._options},t.prototype.getChart=function(){return this._chart},t.prototype.getAxisComponent=function(){return this._axis},t.prototype.setBounding=function(t,i,o){var n,r,a;e(this._bounding,t);var s=0;if(null!==this._separatorWidget){s=this._chart.getStyles().separator.size;var l=k(k({},t),{height:7});void 0!==t.top&&(l.top=t.top-Math.floor((7-s)/2)),this._separatorWidget.setBounding(l)}var u={};return void 0!==t.height&&(u.height=t.height-s),void 0!==t.top&&(u.top=t.top+s),this._mainWidget.setBounding(u),null===(n=this._yAxisWidget)||void 0===n||n.setBounding(u),void 0!==i&&(this._mainWidget.setBounding(i),null===(r=this._separatorWidget)||void 0===r||r.setBounding(i)),void 0!==o&&(null===(a=this._yAxisWidget)||void 0===a||a.setBounding(o)),this},t.prototype.getTopPane=function(){return this._topPane},t.prototype.setTopPane=function(t){return this._topPane=t,this},t.prototype.getBottomPane=function(){return this._bottomPane},t.prototype.setBottomPane=function(t){return this._bottomPane=t,this},t.prototype.getBounding=function(){return this._bounding},t.prototype.getMainWidget=function(){return this._mainWidget},t.prototype.getYAxisWidget=function(){return this._yAxisWidget},t.prototype.getSeparatorWidget=function(){return this._separatorWidget},t.prototype.update=function(t){var e,i;this._bounding.width!==this._seriesContainer.offsetWidth&&(this._seriesContainer.style.width=\\"\\".concat(this._bounding.width,\\"px\\"));var o=this._mainWidget.getBounding().height;o!==this._seriesContainer.offsetHeight&&(this._seriesContainer.style.height=\\"\\".concat(o,\\"px\\"));var n=null!=t?t:3;this._mainWidget.update(n),null===(e=this._yAxisWidget)||void 0===e||e.update(n),null===(i=this._separatorWidget)||void 0===i||i.update(n)},t.prototype.getImage=function(t){var e=this._bounding,i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);n.width=i*a,n.height=o*a,r.scale(a,a);var s=0;if(null!=this._separatorWidget){var l=this.getChart().getStyles().separator.size;s=l,r.drawImage(this._separatorWidget.getImage(),0,0,i,l)}var u=this._mainWidget.getBounding();if(r.drawImage(this._mainWidget.getImage(t),u.left,s,u.width,u.height),null!==this._yAxisWidget){var c=this._yAxisWidget.getBounding();r.drawImage(this._yAxisWidget.getImage(t),c.left,s,c.width,c.height)}return n},t.prototype.destroy=function(){this._container.removeChild(this._seriesContainer),null!==this._separatorWidget&&this._container.removeChild(this._separatorWidget.getContainer())},t.prototype.createSeparatorWidget=function(t){return null},t.prototype.createYAxisWidget=function(t){return null},t}(),qt=function(){function t(t){this._instances=new Map,this._counter=new Map,this._progressInstanceInfo=null,this._pressedInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._hoverInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._clickInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._chartStore=t}return t.prototype._overrideInstance=function(t,e){var i=e.id,o=e.groupId,n=e.points,r=e.styles,a=e.lock,s=e.visible,l=e.zLevel,u=e.mode,c=e.modeSensitivity,h=e.extendData,d=e.onDrawStart,p=e.onDrawing,v=e.onDrawEnd,g=e.onClick,f=e.onDoubleClick,m=e.onRightClick,y=e.onPressedMoveStart,_=e.onPressedMoving,x=e.onPressedMoveEnd,S=e.onMouseEnter,C=e.onMouseLeave,b=e.onRemoved,T=e.onSelected,w=e.onDeselected,E=!1,I=!1;return void 0!==i&&t.setId(i),void 0!==o&&t.setGroupId(o),void 0!==n&&t.setPoints(n)&&(E=!0),void 0!==r&&t.setStyles(r)&&(E=!0),void 0!==a&&t.setLock(a),void 0!==s&&t.setVisible(s)&&(E=!0),void 0!==l&&t.setZLevel(l)&&(E=!0,I=!0),void 0!==u&&t.setMode(u),void 0!==c&&t.setModeSensitivity(c),void 0!==h&&t.setExtendData(h)&&(E=!0),void 0!==d&&t.setOnDrawStartCallback(d),void 0!==p&&t.setOnDrawingCallback(p),void 0!==v&&t.setOnDrawEndCallback(v),void 0!==g&&t.setOnClickCallback(g),void 0!==f&&t.setOnDoubleClickCallback(f),void 0!==m&&t.setOnRightClickCallback(m),void 0!==y&&t.setOnPressedMoveStartCallback(y),void 0!==_&&t.setOnPressedMovingCallback(_),void 0!==x&&t.setOnPressedMoveEndCallback(x),void 0!==S&&t.setOnMouseEnterCallback(S),void 0!==C&&t.setOnMouseLeaveCallback(C),void 0!==b&&t.setOnRemovedCallback(b),void 0!==T&&t.setOnSelectedCallback(T),void 0!==w&&t.setOnDeselectedCallback(w),[E,I]},t.prototype.getInstanceById=function(t){var e,i;try{for(var o=L(this._instances),n=o.next();!n.done;n=o.next()){var r=n.value[1].find((function(e){return e.id===t}));if(void 0!==r)return r}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return null!==this._progressInstanceInfo&&this._progressInstanceInfo.instance.id===t?this._progressInstanceInfo.instance:null},t.prototype._sort=function(t){var e;void 0!==t?null===(e=this._instances.get(t))||void 0===e||e.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel})):this._instances.forEach((function(t){t.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel}))}))},t.prototype.addInstances=function(t,e,i){var o=this,n=t.map((function(t){var n,r,a,s,l,u=null!==(n=t.id)&&void 0!==n?n:z(\\"overlay_\\");if(null===o.getInstanceById(u)){var c=Nt(t.name);if(null!==c){var h=new c,d=(null!==(r=o._counter.get(e))&&void 0!==r?r:0)+1;o._counter.set(e,d),h.setDefaultZLevel(d),h.setPaneId(e);var p=null!==(a=t.groupId)&&void 0!==a?a:u;return t.id=u,t.groupId=p,o._overrideInstance(h,t),h.isDrawing()?o._progressInstanceInfo={paneId:e,instance:h,appointPaneFlag:i}:(o._instances.has(e)||o._instances.set(e,[]),null===(s=o._instances.get(e))||void 0===s||s.push(h)),h.isStart()&&(null===(l=h.onDrawStart)||void 0===l||l.call(h,{overlay:h})),u}}return null}));return n.some((function(t){return null!==t}))&&(this._sort(),this._chartStore.getChart().updatePane(1,e)),n},t.prototype.getProgressInstanceInfo=function(){return this._progressInstanceInfo},t.prototype.progressInstanceComplete=function(){var t;if(null!==this._progressInstanceInfo){var e=this._progressInstanceInfo,i=e.instance,o=e.paneId;i.isDrawing()||(this._instances.has(o)||this._instances.set(o,[]),null===(t=this._instances.get(o))||void 0===t||t.push(i),this._sort(o),this._progressInstanceInfo=null)}},t.prototype.updateProgressInstanceInfo=function(t,e){null!==this._progressInstanceInfo&&(void 0!==e&&e&&(this._progressInstanceInfo.appointPaneFlag=e),this._progressInstanceInfo.paneId=t,this._progressInstanceInfo.instance.setPaneId(t))},t.prototype.getInstances=function(t){var e;if(void 0===t){var i=[];return this._instances.forEach((function(t){i=i.concat(t)})),i}return null!==(e=this._instances.get(t))&&void 0!==e?e:[]},t.prototype.override=function(t){var e=this,i=t.id,o=t.groupId,n=t.name,r=!1,a=!1,s=function(i){var o=e._overrideInstance(i,t);o[0]&&(r=!0),o[1]&&(a=!0)};if(void 0!==i){var l=this.getInstanceById(i);null!==l&&s(l)}else if(this._instances.forEach((function(t){t.forEach((function(t){(void 0!==n&&t.name===n||void 0!==o&&t.groupId===o||void 0===n&&void 0===o)&&s(t)}))})),null!==this._progressInstanceInfo){var u=this._progressInstanceInfo.instance;(void 0!==n&&u.name===n||void 0!==o&&u.groupId===o||void 0===n&&void 0===o)&&s(u)}a&&this._sort(),r&&this._chartStore.getChart().updatePane(1)},t.prototype.removeInstance=function(t){var e,i,o,n=function(t,e){if(void 0!==t.id){if(e.id!==t.id)return!1}else if(void 0!==t.groupId){if(e.groupId!==t.groupId)return!1}else if(void 0!==t.name&&e.name!==t.name)return!1;return!0},r=[];if(null!==this._progressInstanceInfo){var a=this._progressInstanceInfo.instance;(void 0===t||void 0!==t&&n(t,a))&&(r.push(this._progressInstanceInfo.paneId),null===(o=a.onRemoved)||void 0===o||o.call(a,{overlay:a}),this._progressInstanceInfo=null)}if(void 0!==t){var s=new Map,l=function(e){var i=e[1].filter((function(i){var o;return!n(t,i)||(r.includes(e[0])||r.push(e[0]),null===(o=i.onRemoved)||void 0===o||o.call(i,{overlay:i}),!1)}));i.length>0&&s.set(e[0],i)};try{for(var u=L(this._instances),c=u.next();!c.done;c=u.next()){l(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}this._instances=s}else this._instances.forEach((function(t,e){r.push(e),t.forEach((function(t){var e;null===(e=t.onRemoved)||void 0===e||e.call(t,{overlay:t})}))})),this._instances.clear();if(r.length>0){var h=this._chartStore.getChart();r.forEach((function(t){h.updatePane(1,t)})),h.updatePane(1,Kt.XAXIS)}},t.prototype.setPressedInstanceInfo=function(t){this._pressedInstanceInfo=t},t.prototype.getPressedInstanceInfo=function(){return this._pressedInstanceInfo},t.prototype.setHoverInstanceInfo=function(t,e){var i,o,r=this._hoverInstanceInfo,a=r.instance,s=r.figureKey,l=r.figureIndex;if(((null==a?void 0:a.id)!==(null===(i=t.instance)||void 0===i?void 0:i.id)||r.figureType!==t.figureType||l!==t.figureIndex)&&(this._hoverInstanceInfo=t,(null==a?void 0:a.id)!==(null===(o=t.instance)||void 0===o?void 0:o.id))){var u=!1,c=!1;null!==a&&(c=!0,a.resetZLevel(),n(a.onMouseLeave)&&(a.onMouseLeave(k({overlay:a,figureKey:s,figureIndex:l},e)),u=!0)),null!==t.instance&&(c=!0,t.instance.setZLevel(_t),n(t.instance.onMouseEnter)&&(t.instance.onMouseEnter(k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),u=!0)),c&&this._sort(),u||this._chartStore.getChart().updatePane(1)}},t.prototype.getHoverInstanceInfo=function(){return this._hoverInstanceInfo},t.prototype.setClickInstanceInfo=function(t,e){var i,o,n,r,a,s,l,u,c,h=this._clickInstanceInfo,d=h.paneId,p=h.instance,v=h.figureType,g=h.figureKey,f=h.figureIndex;if(null!==(o=null===(i=t.instance)||void 0===i?void 0:i.isDrawing())&&void 0!==o&&o||null===(r=null===(n=t.instance)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),((null==p?void 0:p.id)!==(null===(a=t.instance)||void 0===a?void 0:a.id)||v!==t.figureType||f!==t.figureIndex)&&(this._clickInstanceInfo=t,(null==p?void 0:p.id)!==(null===(s=t.instance)||void 0===s?void 0:s.id))){null===(l=null==p?void 0:p.onDeselected)||void 0===l||l.call(p,k({overlay:p,figureKey:g,figureIndex:f},e)),null===(c=null===(u=t.instance)||void 0===u?void 0:u.onSelected)||void 0===c||c.call(u,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e));var m=this._chartStore.getChart();m.updatePane(1,t.paneId),d!==t.paneId&&m.updatePane(1,d),m.updatePane(1,Kt.XAXIS)}},t.prototype.getClickInstanceInfo=function(){return this._clickInstanceInfo},t.prototype.isEmpty=function(){return 0===this._instances.size&&null===this._progressInstanceInfo},t.prototype.isDrawing=function(){var t,e;return null!==this._progressInstanceInfo&&null!==(e=null===(t=this._progressInstanceInfo)||void 0===t?void 0:t.instance.isDrawing())&&void 0!==e&&e},t}(),$t=function(){function t(){this._actions=new Map}return t.prototype.execute=function(t,e){var i;null===(i=this._actions.get(t))||void 0===i||i.execute(e)},t.prototype.subscribe=function(t,e){var i;this._actions.has(t)||this._actions.set(t,new V),null===(i=this._actions.get(t))||void 0===i||i.subscribe(e)},t.prototype.unsubscribe=function(t,e){var i=this._actions.get(t);void 0!==i&&(i.unsubscribe(e),i.isEmpty()&&this._actions.delete(t))},t.prototype.has=function(t){var e=this._actions.get(t);return void 0!==e&&!e.isEmpty()},t}(),Jt={light:{grid:{horizontal:{color:\\"#EDEDED\\"},vertical:{color:\\"#EDEDED\\"}},candle:{priceMark:{high:{color:\\"#76808F\\"},low:{color:\\"#76808F\\"}},tooltip:{rect:{color:\\"#FEFEFE\\",borderColor:\\"#F2F3F5\\"},text:{color:\\"#76808F\\"}}},indicator:{tooltip:{text:{color:\\"#76808F\\"}}},xAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},yAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},separator:{color:\\"#DDDDDD\\"},crosshair:{horizontal:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}},vertical:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}}}},dark:{grid:{horizontal:{color:\\"#292929\\"},vertical:{color:\\"#292929\\"}},candle:{priceMark:{high:{color:\\"#929AA5\\"},low:{color:\\"#929AA5\\"}},tooltip:{rect:{color:\\"rgba(10, 10, 10, .6)\\",borderColor:\\"rgba(10, 10, 10, .6)\\"},text:{color:\\"#929AA5\\"}}},indicator:{tooltip:{text:{color:\\"#929AA5\\"}}},xAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},yAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},separator:{color:\\"#333333\\"},crosshair:{horizontal:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}},vertical:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}}}}};function Qt(t){var e;return null!==(e=Jt[t])&&void 0!==e?e:null}var te=function(){function i(e,i){this._styles={grid:{show:!0,horizontal:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]},vertical:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]}},candle:{type:t.CandleType.CandleSolid,bar:{upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",upBorderColor:\\"#2DC08E\\",downBorderColor:\\"#F92855\\",noChangeBorderColor:\\"#888888\\",upWickColor:\\"#2DC08E\\",downWickColor:\\"#F92855\\",noChangeWickColor:\\"#888888\\"},area:{lineSize:2,lineColor:\\"#1677FF\\",value:\\"close\\",backgroundColor:[{offset:0,color:\\"rgba(22, 119, 255, 0.01)\\"},{offset:1,color:\\"rgba(22, 119, 255, 0.2)\\"}]},priceMark:{show:!0,high:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},low:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},last:{show:!0,upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,4],size:1},text:{show:!0,style:t.PolygonType.Fill,size:12,paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderColor:\\"transparent\\",borderStyle:t.LineType.Solid,borderSize:0,borderDashedValue:[2,2],color:\\"#FFFFFF\\",family:\\"Helvetica Neue\\",weight:\\"normal\\",borderRadius:2}}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,custom:null,defaultValue:\\"n/a\\",rect:{position:g.Fixed,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:8,offsetLeft:10,offsetTop:8,offsetRight:10,offsetBottom:8,borderRadius:4,borderSize:1,borderColor:\\"#F2F3F5\\",color:\\"#FEFEFE\\"},text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},indicator:{ohlc:{upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"},bars:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lines:[{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#FF9600\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#935EBD\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#1677FF\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#E11D74\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#01C5C4\\"}],circles:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lastValueMark:{show:!1,text:{show:!1,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderColor:\\"transparent\\",borderSize:1,borderDashedValue:[2,2],paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderRadius:2}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,showName:!0,showParams:!0,defaultValue:\\"n/a\\",text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},xAxis:{show:!0,size:\\"auto\\",axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},yAxis:{show:!0,size:\\"auto\\",type:t.YAxisType.Normal,position:t.YAxisPosition.Right,inside:!1,reverse:!1,axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},separator:{size:1,color:\\"#DDDDDD\\",fill:!0,activeBackgroundColor:\\"rgba(33, 150, 243, 0.08)\\"},crosshair:{show:!0,horizontal:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderColor:\\"#686D76\\",borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}},vertical:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#686D76\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}}},overlay:{point:{color:\\"#1677FF\\",borderColor:\\"rgba(22, 119, 255, 0.35)\\",borderSize:1,radius:5,activeColor:\\"#1677FF\\",activeBorderColor:\\"rgba(22, 119, 255, 0.35)\\",activeBorderSize:3,activeRadius:5},line:{style:t.LineType.Solid,smooth:!1,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},rect:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderRadius:0,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},polygon:{style:t.PolygonType.Fill,color:\\"#1677FF\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},circle:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},arc:{style:t.LineType.Solid,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},text:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:0,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,backgroundColor:\\"transparent\\"},rectText:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}}},this._customApi={formatDate:b,formatBigNumber:w},this._locale=I,this._precision={price:2,volume:0},this._thousandsSeparator=\\",\\",this._dataList=[],this._timeScaleStore=new it(this),this._indicatorStore=new gt(this),this._overlayStore=new qt(this),this._tooltipStore=new ft(this),this._actionStore=new $t,this._visibleDataList=[],this._chart=e,this.setOptions(i)}return i.prototype.adjustVisibleDataList=function(){this._visibleDataList=[];for(var t=this._timeScaleStore.getVisibleRange(),e=t.to,i=t.from;e>i;i++){var o=this._dataList[i],n=this._timeScaleStore.dataIndexToCoordinate(i);this._visibleDataList.push({dataIndex:i,x:n,data:o})}},i.prototype.setOptions=function(t){if(void 0!==t){var i=t.locale,o=t.timezone,n=t.styles,r=t.customApi;void 0!==i&&(this._locale=i),void 0!==o&&this._timeScaleStore.setTimezone(o),void 0!==n&&(u(n)?e(this._styles,Qt(n)):e(this._styles,n)),void 0!==r&&e(this._customApi,r),void 0!==t.thousandsSeparator&&(this._thousandsSeparator=t.thousandsSeparator)}return this},i.prototype.getStyles=function(){return this._styles},i.prototype.getLocale=function(){return this._locale},i.prototype.getCustomApi=function(){return this._customApi},i.prototype.getThousandsSeparator=function(){return this._thousandsSeparator},i.prototype.getPrecision=function(){return this._precision},i.prototype.setPrecision=function(t){return this._precision=t,this._indicatorStore.setSeriesPrecision(t),this},i.prototype.getDataList=function(){return this._dataList},i.prototype.getVisibleDataList=function(){return this._visibleDataList},i.prototype.addData=function(t,e,i){if(o(t)){this._timeScaleStore.setLoading(!1),this._timeScaleStore.setMore(null==i||i);var n=0===this._dataList.length;this._dataList=t.concat(this._dataList),n&&this._timeScaleStore.resetOffsetRightDistance(),this._timeScaleStore.adjustVisibleRange()}else{if(er&&this._timeScaleStore.setOffsetRightBarCount(--r),this._timeScaleStore.adjustVisibleRange()}}this._tooltipStore.recalculateCrosshair(!0)},i.prototype.clear=function(){this._dataList=[],this._visibleDataList=[],this._timeScaleStore.clear(),this._tooltipStore.clear()},i.prototype.getTimeScaleStore=function(){return this._timeScaleStore},i.prototype.getIndicatorStore=function(){return this._indicatorStore},i.prototype.getOverlayStore=function(){return this._overlayStore},i.prototype.getTooltipStore=function(){return this._tooltipStore},i.prototype.getActionStore=function(){return this._actionStore},i.prototype.getChart=function(){return this._chart},i}();function ee(t){return null==window.requestAnimationFrame?window.setTimeout(t,20):window.requestAnimationFrame(t)}function ie(t){null==window.cancelAnimationFrame&&window.clearTimeout(t),window.cancelAnimationFrame(t)}var oe=-1,ne=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._mainRequestAnimationId=oe,e._overlayRequestAnimationId=oe,e}return P(e,t),e.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"0\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}},e.prototype.initDom=function(t){this._mainCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._mainCtx=this._mainCanvas.getContext(\\"2d\\"),this._overlayCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._overlayCtx=this._overlayCanvas.getContext(\\"2d\\"),t.appendChild(this._mainCanvas),t.appendChild(this._overlayCanvas)},e.prototype._optimalUpdateMain=function(t,e){var i=this;this._mainRequestAnimationId!==oe&&(ie(this._mainRequestAnimationId),this._mainRequestAnimationId=oe),this._mainRequestAnimationId=ee((function(){if(t!==i._mainCanvas.offsetWidth||e!==i._mainCanvas.offsetHeight){i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);var o=X(i._mainCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._mainCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._mainCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._mainCanvas.width=n,i._mainCanvas.height=r,i._mainCtx.scale(o,o)}else i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);i.updateMain(i._mainCtx)}))},e.prototype._optimalUpdateOverlay=function(t,e){var i=this;this._overlayRequestAnimationId!==oe&&(ie(this._overlayRequestAnimationId),this._overlayRequestAnimationId=oe),this._overlayRequestAnimationId=ee((function(){if(t!==i._overlayCanvas.offsetWidth||e!==i._overlayCanvas.offsetHeight){i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);var o=X(i._overlayCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._overlayCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._overlayCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._overlayCanvas.width=n,i._overlayCanvas.height=r,i._overlayCtx.scale(o,o)}else i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);i.updateOverlay(i._overlayCtx)}))},e.prototype.updateImp=function(t,e,i){var o=e.width,n=e.height;t.style.left=\\"\\".concat(e.left,\\"px\\");var r=i;switch(o===t.offsetWidth&&n===t.offsetHeight||(t.style.width=\\"\\".concat(o,\\"px\\"),t.style.height=\\"\\".concat(n,\\"px\\"),r=3),r){case 0:this._optimalUpdateMain(o,n);break;case 1:this._optimalUpdateOverlay(o,n);break;case 3:case 4:this._optimalUpdateMain(o,n),this._optimalUpdateOverlay(o,n)}},e.prototype.getImage=function(t){var e=this.getBounding(),i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);return n.width=i*a,n.height=o*a,r.scale(a,a),r.drawImage(this._mainCanvas,0,0,i,o),t&&r.drawImage(this._overlayCanvas,0,0,i,o),n},e}(jt);function re(t,e){var i=t.x-e.x,o=t.y-e.y,n=e.r;return!(i*i+o*o>n*n)}function ae(e,i,o){var n=i.x,r=i.y,a=i.r,s=o.style,l=void 0===s?t.PolygonType.Fill:s,u=o.color,c=o.borderSize,h=void 0===c?1:c,d=o.borderColor,p=void 0===d?\\"currentColor\\":d,v=o.borderStyle,g=void 0===v?t.LineType.Solid:v,f=o.borderDashedValue,m=void 0===f?[2,2]:f;l!==t.PolygonType.Fill&&o.style!==t.PolygonType.StrokeFill||(e.fillStyle=void 0===u?\\"currentColor\\":u,e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.fill()),l!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||(e.strokeStyle=p,e.lineWidth=h,e.setLineDash(g===t.LineType.Dashed?m:[]),e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.stroke())}var se={name:\\"circle\\",checkEventOn:re,draw:function(t,e,i){ae(t,e,i)}};function le(t,e){for(var i=!1,o=e.coordinates,n=0,r=o.length-1;o.length>n;r=n++)o[n].y>t.y!=o[r].y>t.y&&(o[r].x-o[n].x)*(t.y-o[n].y)/(o[r].y-o[n].y)+o[n].x>t.x&&(i=!i);return i}function ue(e,i,o){var n=i.coordinates,r=o.style,a=void 0===r?t.PolygonType.Fill:r,s=o.color,l=o.borderSize,u=void 0===l?1:l,c=o.borderColor,h=void 0===c?\\"currentColor\\":c,d=o.borderStyle,p=void 0===d?t.LineType.Solid:d,v=o.borderDashedValue,g=void 0===v?[2,2]:v;if(a===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){e.fillStyle=void 0===s?\\"currentColor\\":s,e.beginPath(),e.moveTo(n[0].x,n[0].y);for(var f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.fill()}if(a===t.PolygonType.Stroke||o.style===t.PolygonType.StrokeFill){e.strokeStyle=h,e.lineWidth=u,e.setLineDash(p===t.LineType.Dashed?g:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y);for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.stroke()}}var ce={name:\\"polygon\\",checkEventOn:le,draw:function(t,e,i){ue(t,e,i)}};function he(t){return\\"transparent\\"===t}function de(t,e){var i=e.x,o=e.width;2*Tt>o&&(i-=Tt,o=2*Tt);var n=e.y,r=e.height;return 2*Tt>r&&(n-=Tt,r=2*Tt),!(i>t.x||t.x>i+o||n>t.y||t.y>n+r)}function pe(e,i,o){var n=i.x,r=i.y,a=i.width,s=i.height,l=o.style,c=void 0===l?t.PolygonType.Fill:l,h=o.color,d=void 0===h?\\"transparent\\":h,p=o.borderSize,v=void 0===p?1:p,g=o.borderColor,f=void 0===g?\\"transparent\\":g,m=o.borderStyle,y=void 0===m?t.LineType.Solid:m,_=o.borderRadius,x=void 0===_?0:_,S=o.borderDashedValue,C=void 0===S?[2,2]:S;if(c===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){var b=!0;u(d)&&(b=!he(d)),b&&(e.fillStyle=d,e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.fill())}c!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||he(f)||0>v||(e.strokeStyle=f,e.lineWidth=v,e.setLineDash(y===t.LineType.Dashed?C:[]),e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.stroke())}var ve={name:\\"rect\\",checkEventOn:de,draw:function(t,e,i){pe(t,e,i)}};function ge(t,e){var i,o,n=e.size,r=void 0===n?12:n,a=e.paddingLeft,s=e.paddingTop,l=void 0===s?0:s,u=e.paddingRight,c=void 0===u?0:u,h=e.paddingBottom,d=void 0===h?0:h,p=e.weight,v=t.x,g=t.y,f=t.align,m=void 0===f?\\"left\\":f,y=t.baseline,_=void 0===y?\\"top\\":y,x=t.width,S=t.height,C=null!=x?x:(void 0===a?0:a)+j(t.text,r,void 0===p?\\"normal\\":p,e.family)+c,b=null!=S?S:l+r+d;switch(m){case\\"left\\":case\\"start\\":i=v;break;case\\"right\\":case\\"end\\":i=v-C;break;default:i=v-C/2}switch(_){case\\"top\\":case\\"hanging\\":o=g;break;case\\"bottom\\":case\\"ideographic\\":case\\"alphabetic\\":o=g-b;break;default:o=g-b/2}return{x:i,y:o,width:C,height:b}}function fe(t,e,i){var o=ge(e,i),n=o.x,r=o.y;return!(n>t.x||t.x>n+o.width||r>t.y||t.y>r+o.height)}function me(t,e,i){var o=e.text,n=i.color,r=void 0===n?\\"currentColor\\":n,a=i.size,s=void 0===a?12:a,l=i.family,u=i.weight,c=i.paddingLeft,h=void 0===c?0:c,d=i.paddingTop,p=void 0===d?0:d,v=i.paddingRight,g=void 0===v?0:v,f=ge(e,i);pe(t,f,k(k({},i),{color:i.backgroundColor})),t.textAlign=\\"left\\",t.textBaseline=\\"top\\",t.font=H(s,u,l),t.fillStyle=r,t.fillText(o,f.x+h,f.y+p,f.width-h-g)}var ye={name:\\"text\\",checkEventOn:function(t,e,i){return fe(t,e,i)},draw:function(t,e,i){me(t,e,i)}},_e=me;function xe(t,e){if(Math.abs(Math.sqrt((h=(u=t).x-(c=e).x)*h+(d=u.y-c.y)*d)-e.r)Math.max(r,s)+Tt||Math.min(r,s)-Tt>t.x||t.y>Math.max(a,l)+Tt||Math.min(a,l)-Tt>t.y)}var u,c,h,d;return!1}function Se(e,i,o){var n=i.x,r=i.y,a=i.r,s=i.startAngle,l=i.endAngle,u=o.style,c=void 0===u?t.LineType.Solid:u,h=o.size,d=o.color,p=void 0===d?\\"currentColor\\":d,v=o.dashedValue,g=void 0===v?[2,2]:v;e.lineWidth=void 0===h?1:h,e.strokeStyle=p,e.setLineDash(c===t.LineType.Dashed?g:[]),e.beginPath(),e.arc(n,r,a,s,l),e.stroke(),e.closePath()}var Ce={name:\\"arc\\",checkEventOn:xe,draw:function(t,e,i){Se(t,e,i)}},be={};[se,Ft,ce,ve,ye,ye,Ce].forEach((function(t){be[t.name]=wt.extend(t)}));var Te=function(t){function e(e){var i=t.call(this)||this;return i._widget=e,i}return P(e,t),e.prototype.getWidget=function(){return this._widget},e.prototype.createFigure=function(t,e,i,o){var n=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null}(t);if(null!==n){var r=new n({name:t,attrs:e,styles:i});if(void 0!==o){for(var a in o)o.hasOwnProperty(a)&&r.registerEvent(a,o[a]);this.addChild(r)}return r}return null},e.prototype.draw=function(t){this.clear(),this.drawImp(t)},e}(bt),we=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=this.getWidget().getPane(),r=n.getChart(),a=o.getBounding(),s=r.getStyles().grid;if(s.show){t.save(),t.globalCompositeOperation=\\"destination-over\\";var l=s.horizontal;if(l.show)n.getAxisComponent().getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:0,y:e.coord},{x:a.width,y:e.coord}]},l))||void 0===o||o.draw(t)}));var u=s.vertical;if(u.show)(null===(e=r.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent()).getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:e.coord,y:0},{x:e.coord,y:a.height}]},u))||void 0===o||o.draw(t)}));t.restore()}},e}(Te),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.eachChildren=function(t){var e=this.getWidget().getPane().getChart().getChartStore(),i=e.getVisibleDataList(),o=e.getTimeScaleStore().getBarSpace();i.forEach((function(e,i){t(e,o,i)}))},e}(Te),Ie=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundCandleBarClickEvent=function(e){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnCandleBarClick,e),!1}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this,i=this.getWidget().getPane(),o=i.getId()===Kt.CANDLE,n=i.getChart().getChartStore(),r=this.getCandleBarOptions(n);if(null!==r){var a=i.getAxisComponent();this.eachChildren((function(i,n){e._drawCandleBar(t,a,i,n,r,o)}))}},i.prototype.getCandleBarOptions=function(t){var e=t.getStyles().candle;return{type:e.type,styles:e.bar}},i.prototype._drawCandleBar=function(e,i,o,n,r,a){var s,l,u,c=this,h=o.data,d=o.x,p=h.open,v=h.high,g=h.low,f=h.close,m=n.halfGapBar,y=n.gapBar,_=r.type,x=r.styles;f>p?(s=x.upColor,l=x.upBorderColor,u=x.upWickColor):p>f?(s=x.downColor,l=x.downBorderColor,u=x.downWickColor):(s=x.noChangeColor,l=x.noChangeBorderColor,u=x.noChangeWickColor);var S=i.convertToPixel(p),C=i.convertToPixel(f),b=[S,C,i.convertToPixel(v),i.convertToPixel(g)];b.sort((function(t,e){return t-e}));var T=Math.max(1,b[2]-b[1]),w=[];_!==t.CandleType.Ohlc?(w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[1]-b[0]},styles:{color:u}}),w.push(_===t.CandleType.CandleStroke||_===t.CandleType.CandleUpStroke&&f>p||_===t.CandleType.CandleDownStroke&&p>f?{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.Stroke,borderColor:l}}:{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.StrokeFill,color:s,borderColor:l}}),w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[2],width:1,height:b[3]-b[2]},styles:{color:u}})):w=[{name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[3]-b[0]},styles:{color:s}},{name:\\"rect\\",attrs:{x:d-m,y:S,width:m,height:1},styles:{color:s}},{name:\\"rect\\",attrs:{x:d,y:C,width:m,height:1},styles:{color:s}}],w.forEach((function(t){var i,n,r=t.attrs,s=t.styles;a&&(n={mouseClickEvent:c._boundCandleBarClickEvent(o)}),null===(i=c.createFigure(\\"rect\\",r,s,n))||void 0===i||i.draw(e)}))},i}(Ee),De=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.getCandleBarOptions=function(e){var i,o,n=this.getWidget().getPane();if(!n.getAxisComponent().isInCandle()){var r=e.getIndicatorStore().getInstances(n.getId());try{for(var a=L(r),s=a.next();!s.done;s=a.next()){var l=s.value[1];if(l.shouldOhlc&&l.visible){var u=l.styles,c=e.getStyles().indicator,h=C(u,\\"ohlc.upColor\\",c.ohlc.upColor),d=C(u,\\"ohlc.downColor\\",c.ohlc.downColor),p=C(u,\\"ohlc.noChangeColor\\",c.ohlc.noChangeColor);return{type:t.CandleType.Ohlc,styles:{upColor:h,downColor:d,noChangeColor:p,upBorderColor:h,downBorderColor:d,noChangeBorderColor:p,upWickColor:h,downWickColor:d,noChangeWickColor:p}}}}}catch(t){i={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}return null},i.prototype.drawImp=function(t){var i,o=this;e.prototype.drawImp.call(this,t);var n=this.getWidget(),r=n.getPane(),l=r.getChart(),u=n.getBounding(),c=null===(i=l.getPaneById(Kt.XAXIS))||void 0===i?void 0:i.getAxisComponent(),h=r.getAxisComponent(),d=l.getChartStore(),p=d.getDataList(),v=d.getTimeScaleStore(),g=v.getVisibleRange(),f=d.getIndicatorStore().getInstances(r.getId()),m=d.getStyles().indicator;f.forEach((function(e){var i;if(e.visible){var n=!1;if(null!==e.draw&&(t.save(),n=null!==(i=e.draw({ctx:t,kLineDataList:p,indicator:e,visibleRange:g,bounding:u,barSpace:v.getBarSpace(),defaultStyles:m,xAxis:c,yAxis:h}))&&void 0!==i&&i,t.restore()),!n){var r=e.result;o.eachChildren((function(i,n){var l,d,v,g=n.halfGapBar,f=n.gapBar,y=i.dataIndex,_=i.x,x=c.convertToPixel(y-1),S=c.convertToPixel(y+1),C=null!==(l=r[y-1])&&void 0!==l?l:{},b=null!==(d=r[y])&&void 0!==d?d:{},T=null!==(v=r[y+1])&&void 0!==v?v:{},w={x:x},E={x:_},I={x:S};e.figures.forEach((function(t){var e=t.key;w[e]=h.convertToPixel(C[e]),E[e]=h.convertToPixel(b[e]),I[e]=h.convertToPixel(T[e])})),ot(p,e,y,m,(function(e,i){var r,l,d;if(s(b[e.key])){var p=E[e.key],v=null===(r=e.attrs)||void 0===r?void 0:r.call(e,{coordinate:{prev:w,current:E,next:I},bounding:u,barSpace:n,xAxis:c,yAxis:h});if(!s(v))switch(e.type){case\\"circle\\":v={x:_,y:p,r:g};break;case\\"rect\\":case\\"bar\\":var m=null!==(l=e.baseValue)&&void 0!==l?l:h.getExtremum().min,y=h.convertToPixel(m),x=Math.abs(y-p);m!==b[e.key]&&(x=Math.max(1,x));v={x:_-g,y:p>y?y:p,width:f,height:x};break;case\\"line\\":a(E[e.key])&&a(I[e.key])&&(v={coordinates:[{x:E.x,y:E[e.key]},{x:I.x,y:I[e.key]}]})}if(s(v)){var S=e.type;null===(d=o.createFigure(\\"bar\\"===S?\\"rect\\":S,v,i))||void 0===d||d.draw(t)}}}))}))}}}))},i}(Ie),Pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=e.getBounding(),n=e.getPane().getChart().getChartStore(),r=n.getTooltipStore().getCrosshair(),a=n.getStyles().crosshair;if(void 0!==r.paneId&&a.show){if(r.paneId===i.getId()){var s=r.y;this._drawLine(t,[{x:0,y:s},{x:o.width,y:s}],a.horizontal)}var l=r.realX;this._drawLine(t,[{x:l,y:0},{x:l,y:o.height}],a.vertical)}},e.prototype._drawLine=function(t,e,i){var o;if(i.show){var n=i.line;n.show&&(null===(o=this.createFigure(\\"line\\",{coordinates:e},n))||void 0===o||o.draw(t))}},e}(Te),Me=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundIconClickEvent=function(e,o){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnTooltipIconClick,k(k({},e),{iconId:o})),!0}},i._boundIconMouseMoveEvent=function(t,e){return function(){return i.getWidget().getPane().getChart().getChartStore().getTooltipStore().setActiveIcon(k(k({},t),{iconId:e})),!0}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=i.getChart().getChartStore(),n=o.getTooltipStore().getCrosshair();if(void 0!==n.kLineData){var r=e.getBounding(),a=o.getCustomApi(),s=o.getThousandsSeparator(),l=o.getIndicatorStore().getInstances(i.getId()),u=o.getTooltipStore().getActiveIcon(),c=o.getStyles().indicator;this.drawIndicatorTooltip(t,i.getId(),o.getDataList(),n,u,l,a,s,r,c)}},i.prototype.drawIndicatorTooltip=function(t,e,i,o,n,r,a,s,l,u,c){var h=this,d=u.tooltip,p=0;if(this.isDrawTooltip(o,d)){var v=d.text,g=0,f=null!=c?c:0,m=0;r.forEach((function(r){var c=h.getIndicatorTooltipData(i,o,r,a,s,u),d=c.name,y=c.calcParamsText,_=c.values,x=d.length>0,S=_.length>0;if(x||S){var C=R(h.classifyTooltipIcons(c.icons),3),b=C[1],T=C[2],w=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,C[0],g,f,m),4);if(g=w[0],f=w[1],p+=w[3],m=w[2],x){var E=d;y.length>0&&(E=\\"\\".concat(E).concat(y));var I=R(h.drawStandardTooltipLabels(t,l,[{title:{text:\\"\\",color:v.color},value:{text:E,color:v.color}}],g,f,m,v),4);g=I[0],f=I[1],p+=I[3],m=I[2]}var D=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,b,g,f,m),4);if(g=D[0],f=D[1],p+=D[3],m=D[2],S){var P=R(h.drawStandardTooltipLabels(t,l,_,g,f,m,v),4);g=P[0],f=P[1],p+=P[3],m=P[2]}var M=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,T,g,f,m),4);g=0,p+=M[3],f=M[1]+M[2],m=0}}))}return p},i.prototype.drawStandardTooltipIcons=function(t,e,i,o,n,r,a,s){var l=this,u=r,c=a,h=0,d=0,p=0;return n.length>0&&(n.forEach((function(e){var i=e.marginLeft,o=e.marginTop,n=e.marginRight,r=e.marginBottom,a=e.paddingLeft,s=e.paddingTop,l=e.paddingRight,u=e.paddingBottom,c=e.size,p=e.icon;t.font=H(c,\\"normal\\",e.fontFamily),h+=i+a+t.measureText(p).width+l+n,d=Math.max(d,o+s+c+u+r)})),u+h>e.width?(u=n[0].marginLeft,c+=s,p=d):p=Math.max(0,d-s),n.forEach((function(e){var n,r=e.marginRight,a=e.paddingLeft,s=e.paddingRight,h=e.icon,d=(null==o?void 0:o.paneId)===i.paneId&&(null==o?void 0:o.indicatorName)===i.indicatorName&&(null==o?void 0:o.iconId)===e.id;null===(n=l.createFigure(\\"text\\",{text:h,x:u+=e.marginLeft,y:c+e.marginTop},{paddingLeft:a,paddingTop:e.paddingTop,paddingRight:s,paddingBottom:e.paddingBottom,color:d?e.activeColor:e.color,size:e.size,family:e.fontFamily,backgroundColor:d?e.activeBackgroundColor:e.backgroundColor},{mouseClickEvent:l._boundIconClickEvent(i,e.id),mouseMoveEvent:l._boundIconMouseMoveEvent(i,e.id)}))||void 0===n||n.draw(t),u+=a+t.measureText(h).width+s+r}))),[u,c,Math.max(s,d),p]},i.prototype.drawStandardTooltipLabels=function(t,e,i,o,n,r,a){var s=this,l=o,u=n,c=0,h=0,d=r;if(i.length>0){var p=a.marginLeft,v=a.marginTop,g=a.marginRight,f=a.marginBottom,m=a.size,y=a.family,_=a.weight;t.font=H(m,_,y),i.forEach((function(i){var o,n,r=i.title,a=i.value,x=t.measureText(r.text).width,S=t.measureText(a.text).width,C=m+v+f;l+p+(x+S)+g>e.width?(l=p,u+=C,h+=C):(l+=p,h+=Math.max(0,C-d)),d=c=Math.max(d,C),r.text.length>0&&(null===(o=s.createFigure(\\"text\\",{x:l,y:u+v,text:r.text},{color:r.color,size:m,family:y,weight:_}))||void 0===o||o.draw(t),l+=x),null===(n=s.createFigure(\\"text\\",{x:l,y:u+v,text:a.text},{color:a.color,size:m,family:y,weight:_}))||void 0===n||n.draw(t),l+=S+g}))}return[l,u,c,h]},i.prototype.isDrawTooltip=function(e,i){var o=i.showRule;return o===t.TooltipShowRule.Always||o===t.TooltipShowRule.FollowCross&&void 0!==e.paneId},i.prototype.getIndicatorTooltipData=function(t,e,i,o,n,a){var l,u,c,h=a.tooltip,d=h.showName?i.shortName:\\"\\",p=\\"\\",v=i.calcParams;v.length>0&&h.showParams&&(p=\\"(\\".concat(v.join(\\",\\"),\\")\\"));var g={name:d,calcParamsText:p,values:[],icons:h.icons},f=e.dataIndex,m=null!==(l=i.result)&&void 0!==l?l:[],y=[];if(i.visible){var _=null!==(u=m[f])&&void 0!==u?u:{};ot(t,i,f,a,(function(t,e){if(void 0!==t.title){var r=e.color,a=_[t.key];s(a)&&(a=T(a,i.precision),i.shouldFormatBigNumber&&(a=o.formatBigNumber(a))),y.push({title:{text:t.title,color:r},value:{text:E(null!=a?a:h.defaultValue,n),color:r}})}})),g.values=y}if(null!==i.createTooltipDataSource){var x=this.getWidget(),S=x.getPane(),C=S.getChart().getChartStore(),b=i.createTooltipDataSource({kLineDataList:t,indicator:i,visibleRange:C.getTimeScaleStore().getVisibleRange(),bounding:x.getBounding(),crosshair:e,defaultStyles:a,xAxis:null===(c=S.getChart().getPaneById(Kt.XAXIS))||void 0===c?void 0:c.getAxisComponent(),yAxis:S.getAxisComponent()}),w=b.name,I=b.calcParamsText,D=b.values,P=b.icons;if(void 0!==w&&h.showName&&(g.name=w),void 0!==I&&h.showParams&&(g.calcParamsText=I),void 0!==P&&(g.icons=P),void 0!==D&&i.visible){var M=[],k=a.tooltip.text.color;D.forEach((function(t){var e={text:\\"\\",color:k};r(t.title)?e=t.title:e.text=t.title;var i={text:\\"\\",color:k};r(t.value)?i=t.value:i.text=t.value,i.text=E(i.text,n),M.push({title:e,value:i})})),g.values=M}}return g},i.prototype.classifyTooltipIcons=function(e){var i=[],o=[],n=[];return e.forEach((function(e){switch(e.position){case t.TooltipIconPosition.Left:i.push(e);break;case t.TooltipIconPosition.Middle:o.push(e);break;case t.TooltipIconPosition.Right:n.push(e)}})),[i,o,n]},i}(Te),ke=function(e){function i(t){var i=e.call(this,t)||this;return i._initEvent(),i}return P(i,e),i.prototype._initEvent=function(){var t=this,e=this.getWidget().getPane(),i=e.getId(),o=e.getChart().getChartStore().getOverlayStore();this.registerEvent(\\"mouseMoveEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;a.isStart()&&(o.updateProgressInstanceInfo(i),s=i);var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);return a.isDrawing()&&s===i&&(a.eventMoveForDrawing(t._coordinateToPoint(r.instance,e)),null===(n=a.onDrawing)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))),t._figureMouseMoveEvent(a,1,u,l,0)(e)}return o.setHoverInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseClickEvent\\",(function(e){var n,r,a=o.getProgressInstanceInfo();if(null!==a){var s=a.instance,l=a.paneId;s.isStart()&&(o.updateProgressInstanceInfo(i,!0),l=i);var u=s.points.length-1,c=\\"\\".concat(yt,\\"point_\\").concat(u);return s.isDrawing()&&l===i&&(s.eventMoveForDrawing(t._coordinateToPoint(s,e)),null===(n=s.onDrawing)||void 0===n||n.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)),s.nextStep(),s.isDrawing()||(o.progressInstanceComplete(),null===(r=s.onDrawEnd)||void 0===r||r.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)))),t._figureMouseClickEvent(s,1,c,u,0)(e)}return o.setClickInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseDoubleClickEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;if(a.isDrawing()&&s===i&&(a.forceComplete(),!a.isDrawing())){o.progressInstanceComplete();var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);null===(n=a.onDrawEnd)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))}var c=a.points.length-1;return t._figureMouseClickEvent(a,1,\\"\\".concat(yt,\\"point_\\").concat(c),c,0)(e)}return!1})).registerEvent(\\"mouseRightClickEvent\\",(function(e){var i=o.getProgressInstanceInfo();if(null!==i){var n=i.instance;if(n.isDrawing()){var r=n.points.length-1;return t._figureMouseRightClickEvent(n,1,\\"\\".concat(yt,\\"point_\\").concat(r),r,0)(e)}}return!1})).registerEvent(\\"mouseUpEvent\\",(function(t){var e,n=o.getPressedInstanceInfo(),r=n.instance;return null!==r&&(null===(e=r.onPressedMoveEnd)||void 0===e||e.call(r,k({overlay:r,figureKey:n.figureKey,figureIndex:n.figureIndex},t))),o.setPressedInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1}),!1})).registerEvent(\\"pressedMouseMoveEvent\\",(function(e){var i,n,r=o.getPressedInstanceInfo(),a=r.instance,s=r.figureType,l=r.figureIndex;if(null!==a){if(!(a.lock||null!==(n=null===(i=a.onPressedMoving)||void 0===i?void 0:i.call(a,k({overlay:a,figureIndex:l,figureKey:r.figureKey},e)))&&void 0!==n&&n)){var u=t._coordinateToPoint(a,e);1===s?a.eventPressedPointMove(u,l):a.eventPressedOtherMove(u,t.getWidget().getPane().getChart().getChartStore().getTimeScaleStore())}return!0}return!1}))},i.prototype._createFigureEvents=function(t,e,i,o,n,r){var a;if(!t.isDrawing()){var s=[];if(void 0!==r&&(l(r)?r&&(s=[\\"mouseClickEvent\\",\\"mouseDoubleClickEvent\\",\\"mouseRightClickEvent\\",\\"tapEvent\\",\\"doubleTapEvent\\",\\"mouseDownEvent\\",\\"touchStartEvent\\",\\"mouseMoveEvent\\",\\"touchMoveEvent\\"]):s=r),0===s.length)return{mouseMoveEvent:this._figureMouseMoveEvent(t,e,i,o,n),mouseDownEvent:this._figureMouseDownEvent(t,e,i,o,n),mouseClickEvent:this._figureMouseClickEvent(t,e,i,o,n),mouseRightClickEvent:this._figureMouseRightClickEvent(t,e,i,o,n),mouseDoubleClickEvent:this._figureMouseDoubleClickEvent(t,e,i,o,n)};a={},s.includes(\\"mouseMoveEvent\\")||s.includes(\\"touchMoveEvent\\")||(a.mouseMoveEvent=this._figureMouseMoveEvent(t,e,i,o,n)),s.includes(\\"mouseDownEvent\\")||s.includes(\\"touchStartEvent\\")||(a.mouseDownEvent=this._figureMouseDownEvent(t,e,i,o,n)),s.includes(\\"mouseClickEvent\\")||s.includes(\\"tapEvent\\")||(a.mouseClickEvent=this._figureMouseClickEvent(t,e,i,o,n)),s.includes(\\"mouseDoubleClickEvent\\")||s.includes(\\"doubleTapEvent\\")||(a.mouseDoubleClickEvent=this._figureMouseDoubleClickEvent(t,e,i,o,n)),s.includes(\\"mouseRightClickEvent\\")||(a.mouseRightClickEvent=this._figureMouseRightClickEvent(t,e,i,o,n))}return a},i.prototype._figureMouseMoveEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane();return s.getChart().getChartStore().getOverlayStore().setHoverInstanceInfo({paneId:s.getId(),instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDownEvent=function(t,e,i,o,n){var r=this;return function(a){var s,l=r.getWidget().getPane(),u=l.getId(),c=l.getChart().getChartStore().getOverlayStore();return t.startPressedMove(r._coordinateToPoint(t,a)),null===(s=t.onPressedMoveStart)||void 0===s||s.call(t,k({overlay:t,figureIndex:o,figureKey:i},a)),c.setPressedInstanceInfo({paneId:u,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n}),!0}},i.prototype._figureMouseClickEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane(),l=s.getId();return s.getChart().getChartStore().getOverlayStore().setClickInstanceInfo({paneId:l,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDoubleClickEvent=function(t,e,i,o,n){return function(e){var n;return null===(n=t.onDoubleClick)||void 0===n||n.call(t,k(k({},e),{figureIndex:o,figureKey:i,overlay:t})),!0}},i.prototype._figureMouseRightClickEvent=function(t,e,i,o,n){var r=this;return function(e){var n,a;null!==(a=null===(n=t.onRightClick)||void 0===n?void 0:n.call(t,k({overlay:t,figureIndex:o,figureKey:i},e)))&&void 0!==a&&a||r.getWidget().getPane().getChart().getChartStore().getOverlayStore().removeInstance(t);return!0}},i.prototype._coordinateToPoint=function(e,i){var o,n,r={},a=this.getWidget().getPane(),s=a.getChart(),l=a.getId(),u=s.getChartStore().getTimeScaleStore();if(this.coordinateToPointTimestampDataIndexFlag()){var c=(null===(o=s.getPaneById(Kt.XAXIS))||void 0===o?void 0:o.getAxisComponent()).convertFromPixel(i.x),h=null!==(n=u.dataIndexToTimestamp(c))&&void 0!==n?n:void 0;r.dataIndex=c,r.timestamp=h}if(this.coordinateToPointValueFlag()){var d=a.getAxisComponent(),p=d.convertFromPixel(i.y);if(e.mode!==t.OverlayMode.Normal&&l===Kt.CANDLE&&void 0!==r.dataIndex){var v=u.getDataByDataIndex(r.dataIndex);if(null!==v){var g=e.modeSensitivity;if(p>v.high)if(e.mode===t.OverlayMode.WeakMagnet){var f=d.convertToPixel(v.high);d.convertFromPixel(f-g)>p&&(p=v.high)}else p=v.high;else if(v.low>p)if(e.mode===t.OverlayMode.WeakMagnet){var m=d.convertToPixel(v.low);p>d.convertFromPixel(m-g)&&(p=v.low)}else p=v.low;else{var y=Math.max(v.open,v.close),_=Math.min(v.open,v.close);p=p>y?v.high-p>p-y?y:v.high:_>p?_-p>p-v.low?v.low:_:p-_>y-p?y:_}}}r.value=p}return r},i.prototype.coordinateToPointValueFlag=function(){return!0},i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.dispatchEvent=function(t,i,o){return this.getWidget().getPane().getChart().getChartStore().getOverlayStore().isDrawing()?this.onEvent(t,i,o):e.prototype.dispatchEvent.call(this,t,i,o)},i.prototype.checkEventOn=function(){return!0},i.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart(),s=n.getAxisComponent(),l=null===(e=a.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent(),u=o.getBounding(),c=a.getChartStore(),h=c.getCustomApi(),d=c.getThousandsSeparator(),p=c.getTimeScaleStore(),v=p.getDateTimeFormat(),g=p.getBarSpace(),f=c.getPrecision(),m=c.getStyles().overlay,y=c.getOverlayStore(),_=y.getHoverInstanceInfo(),x=y.getClickInstanceInfo();this.getCompleteOverlays(y,r).forEach((function(e){e.visible&&i._drawOverlay(t,e,u,g,f,v,h,d,m,l,s,_,x,p)}));var S=y.getProgressInstanceInfo();if(null!==S){var C=this.getProgressOverlay(S,r);null!==C&&C.visible&&this._drawOverlay(t,C,u,g,f,v,h,d,m,l,s,_,x,p)}},i.prototype._drawOverlay=function(t,e,i,o,n,r,a,s,l,u,c,h,d,p){var v=e.points.map((function(t){var e,i,o=t.dataIndex;void 0!==t.timestamp&&(o=p.timestampToDataIndex(t.timestamp));var n={x:0,y:0};return void 0!==o&&(n.x=null!==(e=null==u?void 0:u.convertToPixel(o))&&void 0!==e?e:0),void 0!==t.value&&(n.y=null!==(i=null==c?void 0:c.convertToPixel(t.value))&&void 0!==i?i:0),n}));if(v.length>0){var g=[].concat(this.getFigures(e,v,i,o,n,s,r,l,u,c));this.drawFigures(t,e,g,l)}this.drawDefaultFigures(t,e,v,i,n,r,a,s,l,u,c,h,d)},i.prototype.drawFigures=function(t,e,i,o){var n=this;i.forEach((function(i,r){var a=i.type,s=i.styles,l=i.ignoreEvent;[].concat(i.attrs).forEach((function(u,c){var h,d,p,v=n._createFigureEvents(e,2,null!==(h=i.key)&&void 0!==h?h:\\"\\",r,c,l),g=k(k(k({},o[a]),null===(d=e.styles)||void 0===d?void 0:d[a]),s);null===(p=n.createFigure(a,u,g,v))||void 0===p||p.draw(t)}))}))},i.prototype.getCompleteOverlays=function(t,e){return t.getInstances(e)},i.prototype.getProgressOverlay=function(t,e){return t.paneId===e?t.instance:null},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createPointFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){var p,v,g=this;if(e.needDefaultPointFigure&&((null===(p=h.instance)||void 0===p?void 0:p.id)===e.id&&0!==h.figureType||(null===(v=d.instance)||void 0===v?void 0:v.id)===e.id&&0!==d.figureType)){var f=e.styles,m=k(k({},l.point),null==f?void 0:f.point);i.forEach((function(i,o){var n,r,a,s=i.x,l=i.y,u=m.radius,c=m.color,d=m.borderColor,p=m.borderSize;(null===(n=h.instance)||void 0===n?void 0:n.id)===e.id&&1===h.figureType&&h.figureIndex===o&&(u=m.activeRadius,c=m.activeColor,d=m.activeBorderColor,p=m.activeBorderSize),null===(r=g.createFigure(\\"circle\\",{x:s,y:l,r:u+p},{color:d},g._createFigureEvents(e,1,\\"\\".concat(yt,\\"point_\\").concat(o),o,0)))||void 0===r||r.draw(t),null===(a=g.createFigure(\\"circle\\",{x:s,y:l,r:u},{color:c}))||void 0===a||a.draw(t)}))}},i}(Te),Ae=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._gridView=new we(o),o._indicatorView=new De(o),o._crosshairLineView=new Pe(o),o._tooltipView=o.createTooltipView(),o._overlayView=new ke(o),o.addChild(o._tooltipView),o.addChild(o._overlayView),o.getContainer().style.cursor=\\"crosshair\\",o.registerEvent(\\"mouseMoveEvent\\",(function(){return i.getChart().getChartStore().getTooltipStore().setActiveIcon(),!1})),o}return P(e,t),e.prototype.getName=function(){return zt},e.prototype.updateMain=function(t){this.updateMainContent(t),this._indicatorView.draw(t),this._gridView.draw(t)},e.prototype.createTooltipView=function(){return new Me(this)},e.prototype.updateMainContent=function(t){},e.prototype.updateOverlay=function(t){this._overlayView.draw(t),this._crosshairLineView.draw(t),this._tooltipView.draw(t)},e}(ne),Fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i,n=this.getWidget(),r=n.getPane(),s=r.getChart(),l=n.getBounding(),u=r.getAxisComponent(),c=s.getStyles().candle.area,h=[],d=[],p=Number.MAX_SAFE_INTEGER;this.eachChildren((function(t,e,i){var o=t.x,n=e.halfGapBar,r=t.data[c.value];if(a(r)){var s=u.convertToPixel(r);if(0===i){var v=o-n;d.push({x:v,y:l.height}),d.push({x:v,y:s}),h.push({x:v,y:s})}h.push({x:o,y:s}),d.push({x:o,y:s}),p=Math.min(p,s)}}));var v=d.length;if(v>0){var g=d[v-1],f=g.x;h.push({x:f,y:g.y}),d.push({x:f,y:g.y}),d.push({x:f,y:l.height})}if(h.length>0&&(null===(e=this.createFigure(\\"line\\",{coordinates:h},{color:c.lineColor,size:c.lineSize}))||void 0===e||e.draw(t)),d.length>0){var m=c.backgroundColor,y=void 0;if(o(m)){var _=t.createLinearGradient(0,l.height,0,p);try{m.forEach((function(t){_.addColorStop(t.offset,t.color)}))}catch(t){}y=_}else y=m;null===(i=this.createFigure(\\"polygon\\",{coordinates:d},{color:y}))||void 0===i||i.draw(t)}},e}(Ee),Le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget().getPane(),i=e.getChart().getChartStore(),o=i.getStyles().candle.priceMark,n=o.high,r=o.low;if(o.show&&(n.show||r.show)){var a=i.getThousandsSeparator(),s=i.getPrecision(),l=e.getAxisComponent(),u=Number.MIN_SAFE_INTEGER,c=0,h=Number.MAX_SAFE_INTEGER,d=0;this.eachChildren((function(t){var e=t.data,i=t.x;e.high>u&&(u=e.high,c=i),h>e.low&&(h=e.low,d=i)}));var p=l.convertToPixel(u),v=l.convertToPixel(h);n.show&&u!==Number.MIN_SAFE_INTEGER&&this._drawMark(t,E(T(u,s.price),a),{x:c,y:p},v>p?[-2,-5]:[2,5],n),r.show&&h!==Number.MAX_SAFE_INTEGER&&this._drawMark(t,E(T(h,s.price),a),{x:d,y:v},v>p?[2,5]:[-2,-5],r)}},e.prototype._drawMark=function(t,e,i,o,n){var r,a,s,l,u,c,h=i.x,d=i.y+o[0];null===(r=this.createFigure(\\"line\\",{coordinates:[{x:h-2,y:d+o[0]},{x:h,y:d},{x:h+2,y:d+o[0]}]},{color:n.color}))||void 0===r||r.draw(t),h>this.getWidget().getBounding().width/2?(u=(l=h-5)-n.textOffset,c=\\"right\\"):(c=\\"left\\",u=(l=h+5)+n.textOffset);var p=d+o[1];null===(a=this.createFigure(\\"line\\",{coordinates:[{x:h,y:d},{x:h,y:p},{x:l,y:p}]},{color:n.color}))||void 0===a||a.draw(t),null===(s=this.createFigure(\\"text\\",{x:u,y:p,text:e,align:c,baseline:\\"middle\\"},{color:n.color,size:n.textSize,family:n.textFamily,weight:n.textWeight}))||void 0===s||s.draw(t)},e}(Ee),Re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getStyles().candle.priceMark,s=a.last,l=s.line;if(a.show&&s.show&&l.show){var u=o.getAxisComponent(),c=r.getDataList(),h=c[c.length-1];if(null!=h){var d=h.close,p=h.open,v=u.convertToNicePixel(d);null===(e=this.createFigure(\\"line\\",{coordinates:[{x:0,y:v},{x:n.width,y:v}]},{style:l.style,color:d>p?s.upColor:p>d?s.downColor:s.noChangeColor,size:l.size,dashedValue:l.dashedValue}))||void 0===e||e.draw(t)}}},e}(Te),Be={\\"zh-CN\\":{time:\\"时间:\\",open:\\"开:\\",high:\\"高:\\",low:\\"低:\\",close:\\"收:\\",volume:\\"成交量:\\",change:\\"涨幅:\\"},\\"en-US\\":{time:\\"Time: \\",open:\\"Open: \\",high:\\"High: \\",low:\\"Low: \\",close:\\"Close: \\",volume:\\"Volume: \\",change:\\"Change: \\"}};var Oe=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart().getChartStore(),s=a.getTooltipStore().getCrosshair();if(void 0!==s.kLineData){var l=o.getBounding(),u=null===(i=n.getYAxisWidget())||void 0===i?void 0:i.getBounding(),c=a.getDataList(),h=a.getPrecision(),d=a.getLocale(),p=a.getCustomApi(),v=a.getThousandsSeparator(),g=a.getTooltipStore().getActiveIcon(),f=a.getIndicatorStore().getInstances(n.getId()),m=a.getTimeScaleStore().getDateTimeFormat(),y=a.getStyles(),_=y.candle,x=y.indicator;if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Rect){var S=this.isDrawTooltip(s,_.tooltip),C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,C,y,0)}else if(_.tooltip.showType===t.TooltipShowType.Standard&&x.tooltip.showType===t.TooltipShowType.Standard){var b=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,b)}else if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Standard){var T=this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,0);S=this.isDrawTooltip(s,_.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,!1,y,T)}else{var w=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,!1,C,y,w)}}},i.prototype._drawCandleStandardTooltip=function(t,e,i,o,n,r,a,s,l,u,c,h){var d,p,v,g=h.tooltip,f=g.text,m=0;if(this.isDrawTooltip(n,g)){var y=null!==(d=n.dataIndex)&&void 0!==d?d:0,_=this._getCandleTooltipData({prev:null!==(p=e[y-1])&&void 0!==p?p:null,current:n.kLineData,next:null!==(v=e[y+1])&&void 0!==v?v:null},a,s,l,u,c,h),x=0,S=0,C=0,b=R(this.classifyTooltipIcons(g.icons),3),T=b[1],w=b[2],E=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,b[0],x,S,0),4);m+=E[3];var I=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,T,x=E[0],S=E[1],C=E[2]),4);if(x=I[0],S=I[1],m+=I[3],C=I[2],_.length>0){var D=R(this.drawStandardTooltipLabels(t,o,_,x,S,C,f),4);x=D[0],S=D[1],m+=D[3],C=D[2]}var P=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,w,x,S,C),4);x=P[0],S=P[1],m+=P[3],C=P[2]}return m},i.prototype._drawRectTooltip=function(e,i,o,n,r,a,s,l,u,c,h,d,p,v,f){var m,y,_,x,S,C=this,b=v.candle,T=v.indicator,w=b.tooltip,E=T.tooltip;if(d||p){var I=null!==(m=a.dataIndex)&&void 0!==m?m:0,D=this._getCandleTooltipData({prev:null!==(y=i[I-1])&&void 0!==y?y:null,current:a.kLineData,next:null!==(_=i[I+1])&&void 0!==_?_:null},s,l,u,c,h,b),P=w.text,M=P.marginLeft,k=P.marginRight,A=P.marginTop,F=P.marginBottom,L=P.size,R=P.weight,B=P.family,O=w.rect,V=O.position,N=O.paddingLeft,W=O.paddingRight,z=O.paddingTop,Y=O.paddingBottom,X=O.offsetLeft,j=O.offsetRight,Z=O.offsetTop,G=O.offsetBottom,K=O.borderSize,U=O.borderRadius,q=O.borderColor,$=O.color,J=0,Q=0,tt=0;d&&(e.font=H(L,R,B),D.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+M+k;J=Math.max(J,n)})),tt+=(F+A+L)*D.length);var et=E.text,it=et.marginLeft,ot=et.marginRight,nt=et.marginTop,rt=et.marginBottom,at=et.size,st=et.weight,lt=et.family,ut=[];if(p&&(e.font=H(at,st,lt),o.forEach((function(t){var o,n=null!==(o=C.getIndicatorTooltipData(i,a,t,c,h,T).values)&&void 0!==o?o:[];ut.push(n),n.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+it+ot;J=Math.max(J,n),tt+=nt+rt+at}))}))),0!==(Q+=J)&&0!==tt){Q+=2*K+N+W,tt+=2*K+z+Y;var ct=V===g.Pointer&&a.paneId===Kt.CANDLE,ht=(null!==(x=a.realX)&&void 0!==x?x:0)>n.width/2,dt=0;if(ct){var pt=a.realX;dt=ht?pt-j-Q:pt+X}else ht?(dt=X,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Left&&(dt+=r.width)):(dt=n.width-j-Q,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Right&&(dt-=r.width));var vt=f+Z;if(ct)(vt=a.y-tt/2)+tt>n.height-G&&(vt=n.height-G-tt),f+Z>vt&&(vt=f+Z);null===(S=this.createFigure(\\"rect\\",{x:dt,y:vt,width:Q,height:tt},{style:t.PolygonType.StrokeFill,color:$,borderColor:q,borderSize:K,borderRadius:U}))||void 0===S||S.draw(e);var gt=dt+K+N+M,ft=vt+K+z;if(d&&D.forEach((function(t){var i,o,n=t.title;null===(i=C.createFigure(\\"text\\",{x:gt,y:ft+=A,text:n.text},{color:n.color,size:L,family:B,weight:R}))||void 0===i||i.draw(e);var r=t.value;null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-k-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:L,family:B,weight:R}))||void 0===o||o.draw(e),ft+=L+F})),p){var mt=dt+K+N+it;ut.forEach((function(t){t.forEach((function(t){var i,o,n=t.title,r=t.value;null===(i=C.createFigure(\\"text\\",{x:mt,y:ft+=nt,text:n.text},{color:n.color,size:at,family:lt,weight:st}))||void 0===i||i.draw(e),null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-ot-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:at,family:lt,weight:st}))||void 0===o||o.draw(e),ft+=at+rt}))}))}}}},i.prototype._getCandleTooltipData=function(e,i,o,a,s,l,u){var c,h,d,p,v,g=u.tooltip,f=g.text.color,m=e.current,y=null!==(h=null===(c=e.prev)||void 0===c?void 0:c.close)&&void 0!==h?h:m.close,_=m.close-y,x=i.price,S=i.volume,C={\\"{time}\\":s.formatDate(o,m.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Tooltip),\\"{open}\\":E(T(m.open,x),l),\\"{high}\\":E(T(m.high,x),l),\\"{low}\\":E(T(m.low,x),l),\\"{close}\\":E(T(m.close,x),l),\\"{volume}\\":E(s.formatBigNumber(T(null!==(d=m.volume)&&void 0!==d?d:g.defaultValue,S)),l),\\"{change}\\":0===y?g.defaultValue:\\"\\".concat(T(_/y*100),\\"%\\")};return(null!==(v=n(g.custom)?null===(p=g.custom)||void 0===p?void 0:p.call(g,e,u):g.custom)&&void 0!==v?v:[{title:\\"time\\",value:\\"{time}\\"},{title:\\"open\\",value:\\"{open}\\"},{title:\\"high\\",value:\\"{high}\\"},{title:\\"low\\",value:\\"{low}\\"},{title:\\"close\\",value:\\"{close}\\"},{title:\\"volume\\",value:\\"{volume}\\"}]).map((function(t){var e,i=t.title,o=t.value,n={text:\\"\\",color:\\"\\"};r(i)?n=k({},i):(n.text=i,n.color=f),n.text=function(t,e){var i,o;return null!==(o=null===(i=Be[e])||void 0===i?void 0:i[t])&&void 0!==o?o:t}(n.text,a);var s={text:g.defaultValue,color:\\"\\"};r(o)?s=k({},o):(s.text=o,s.color=f);var l=s.text.match(/{(\\\\S*)}/);if(null!==l&&l.length>1){var c=\\"{\\".concat(l[1],\\"}\\");s.text=s.text.replace(c,null!==(e=C[c])&&void 0!==e?e:g.defaultValue),\\"{change}\\"===c&&(s.color=0===_?u.priceMark.last.noChangeColor:_>0?u.priceMark.last.upColor:u.priceMark.last.downColor)}return{title:n,value:s}}))},i}(Me),Ve=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o._candleBarView=new Ie(o),o._candleAreaView=new Fe(o),o._candleHighLowPriceView=new Le(o),o._candleLastPriceLineView=new Re(o),o.addChild(o._candleBarView),o}return P(i,e),i.prototype.updateMainContent=function(e){this.getPane().getChart().getStyles().candle.type!==t.CandleType.Area?(this._candleBarView.draw(e),this._candleHighLowPriceView.draw(e)):this._candleAreaView.draw(e),this._candleLastPriceLineView.draw(e)},i.prototype.createTooltipView=function(){return new Oe(this)},i}(Ae),Ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getAxisComponent(),s=this.getAxisStyles(n.getChart().getStyles());if(s.show){s.axisLine.show&&(null===(e=this.createFigure(\\"line\\",this.createAxisLine(r,s),s.axisLine))||void 0===e||e.draw(t));var l=a.getTicks();if(s.tickLine.show)this.createTickLines(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",e,s.tickLine))||void 0===o||o.draw(t)}));if(s.tickText.show)this.createTickTexts(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"text\\",e,s.tickText))||void 0===o||o.draw(t)}))}},e}(Te),We=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.yAxis},e.prototype.createAxisLine=function(t,e){var i,o=this.getWidget().getPane().getAxisComponent(),n=e.axisLine.size;return{coordinates:[{x:i=o.isFromZero()?n/2:t.width-n,y:0},{x:i,y:t.height}]}},e.prototype.createTickLines=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=0,s=0;return o.isFromZero()?(a=0,n.show&&(a+=n.size),s=a+r.length):(a=e.width,n.show&&(a-=n.size),s=a-r.length),t.map((function(t){return{coordinates:[{x:a,y:t.coord},{x:s,y:t.coord}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=i.tickText,s=0;o.isFromZero()?(s=a.marginStart,n.show&&(s+=n.size),r.show&&(s+=r.length)):(s=e.width-a.marginEnd,n.show&&(s-=n.size),r.show&&(s-=r.length));var l=this.getWidget().getPane().getAxisComponent().isFromZero()?\\"left\\":\\"right\\";return t.map((function(t){return{x:s,y:t.coord,text:t.text,align:l,baseline:\\"middle\\"}}))},e}(Ne),ze=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getChart().getChartStore(),s=a.getStyles().candle.priceMark,l=s.last,u=l.text;if(s.show&&l.show&&u.show){var c=a.getPrecision(),h=n.getAxisComponent(),d=a.getDataList(),p=a.getVisibleDataList(),v=d[d.length-1];if(void 0!==v){var g=v.close,f=v.open,m=h.convertToNicePixel(g),y=void 0;y=g>f?l.upColor:f>g?l.downColor:l.noChangeColor;var _=void 0;if(h.getType()===t.YAxisType.Percentage){var x=p[0].data.close;_=\\"\\".concat(((g-x)/x*100).toFixed(2),\\"%\\")}else _=T(g,c.price);_=E(_,a.getThousandsSeparator());var S=void 0,C=void 0;h.isFromZero()?(S=0,C=\\"left\\"):(S=r.width,C=\\"right\\"),null===(i=this.createFigure(\\"text\\",{x:S,y:m,text:_,align:C,baseline:\\"middle\\"},k(k({},u),{backgroundColor:y})))||void 0===i||i.draw(e)}}},i}(Te),Ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getCustomApi(),l=r.getStyles().indicator,u=l.lastValueMark,c=u.text;if(u.show){var h=o.getAxisComponent(),d=r.getDataList(),p=d.length-1,v=r.getIndicatorStore().getInstances(o.getId()),g=r.getThousandsSeparator();v.forEach((function(i){var o=i.result[p];if(void 0!==o&&i.visible){var r=i.precision;ot(d,i,p,l,(function(l,u){var d,p=o[l.key];if(s(p)){var v=h.convertToNicePixel(p),f=T(p,r);i.shouldFormatBigNumber&&(f=a.formatBigNumber(f)),f=E(f,g);var m=void 0,y=void 0;h.isFromZero()?(m=0,y=\\"left\\"):(m=n.width,y=\\"right\\"),null===(d=e.createFigure(\\"text\\",{x:m,y:v,text:f,align:y,baseline:\\"middle\\"},k(k({},c),{backgroundColor:u.color})))||void 0===d||d.draw(t)}}))}}))}},e}(Te),Xe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!1},e.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){this.drawFigures(t,e,this.getDefaultFigures(e,i,o,n,r,a,s,u,c,d),l)},e.prototype.getDefaultFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h,d=[];if(t.needDefaultYAxisFigure&&t.id===(null===(c=u.instance)||void 0===c?void 0:c.id)&&u.paneId===this.getWidget().getPane().getId()){var p,v,g=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;null!==(h=null==l?void 0:l.isFromZero())&&void 0!==h&&h?(p=\\"left\\",v=0):(p=\\"right\\",v=i.width),e.forEach((function(e,i){var n=t.points[i];if(void 0!==n.value){g=Math.min(g,e.y),f=Math.max(f,e.y);var r=E(T(n.value,o.price),a);d.push({type:\\"text\\",attrs:{x:v,y:e.y,text:r,align:p,baseline:\\"middle\\"},ignoreEvent:!0})}})),e.length>1&&d.unshift({type:\\"rect\\",attrs:{x:0,y:g,width:i.width,height:f-g},ignoreEvent:!0})}return d},e.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createYAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},e}(ke),He=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=i.getPane().getChart().getChartStore(),a=r.getTooltipStore().getCrosshair(),s=r.getStyles().crosshair;if(void 0!==a.paneId&&this.compare(a,o.getId())&&s.show){var l=this.getDirectionStyles(s),u=l.text;if(l.show&&u.show){var c=o.getAxisComponent(),h=this.getText(a,r,c);t.font=H(u.size,u.weight,u.family),null===(e=this.createFigure(\\"text\\",this.getTextAttrs(h,t.measureText(h).width,a,n,c,u),u))||void 0===e||e.draw(t)}}},i.prototype.compare=function(t,e){return t.paneId===e},i.prototype.getDirectionStyles=function(t){return t.horizontal},i.prototype.getText=function(e,i,o){var n,r,a,s=o,l=o.convertFromPixel(e.y);if(s.getType()===t.YAxisType.Percentage){var u=null!==(r=null===(n=i.getVisibleDataList()[0])||void 0===n?void 0:n.data)&&void 0!==r?r:{};a=\\"\\".concat(((l-u.close)/u.close*100).toFixed(2),\\"%\\")}else{var c=i.getIndicatorStore().getInstances(e.paneId),h=0,d=!1;s.isInCandle()?h=i.getPrecision().price:c.forEach((function(t){h=Math.max(t.precision,h),d||(d=t.shouldFormatBigNumber)})),a=T(l,h),d&&(a=i.getCustomApi().formatBigNumber(a))}return E(a,i.getThousandsSeparator())},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s;return n.isFromZero()?(a=0,s=\\"left\\"):(a=o.width,s=\\"right\\"),{x:a,y:i.y,text:t,align:s,baseline:\\"middle\\"}},i}(Te),je=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._yAxisView=new We(o),o._candleLastPriceLabelView=new ze(o),o._indicatorLastValueView=new Ye(o),o._overlayYAxisView=new Xe(o),o._crosshairHorizontalLabelView=new He(o),o.getContainer().style.cursor=\\"ns-resize\\",o.addChild(o._overlayYAxisView),o}return P(e,t),e.prototype.getName=function(){return Xt},e.prototype.updateMain=function(t){this._yAxisView.draw(t),this.getPane().getAxisComponent().isInCandle()&&this._candleLastPriceLabelView.draw(t),this._indicatorLastValueView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayYAxisView.draw(t),this._crosshairHorizontalLabelView.draw(t)},e}(ne),Ze=function(){function t(t){this._extremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._prevExtremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._ticks=[],this._autoCalcTickFlag=!0,this._parent=t}return t.prototype.getParent=function(){return this._parent},t.prototype.buildTicks=function(t){return this._autoCalcTickFlag&&(this._extremum=this.calcExtremum()),!(this._prevExtremum.min===this._extremum.min&&this._prevExtremum.max===this._extremum.max&&!t)&&(this._prevExtremum=this._extremum,this._ticks=this.optimalTicks(this._calcTicks()),!0)},t.prototype.getTicks=function(){return this._ticks},t.prototype.getScrollZoomEnabled=function(){var t;return null===(t=this.getParent().getOptions().axisOptions.scrollZoomEnabled)||void 0===t||t},t.prototype.setExtremum=function(t){this._autoCalcTickFlag=!1,this._extremum=t},t.prototype.getExtremum=function(){return this._extremum},t.prototype.setAutoCalcTickFlag=function(t){this._autoCalcTickFlag=t},t.prototype.getAutoCalcTickFlag=function(){return this._autoCalcTickFlag},t.prototype._calcTicks=function(){var t=this._extremum,e=t.realMin,i=t.realMax,o=t.realRange,n=[];if(o>=0){var r=R(this._calcTickInterval(o),2),a=r[0],s=r[1],l=G(Math.ceil(e/a)*a,s),u=G(Math.floor(i/a)*a,s),c=0,h=l;if(0!==a)for(;u>=h;){var d=h.toFixed(s);n[c]={text:d,coord:0,value:d},++c,h+=a}}return n},t.prototype._calcTickInterval=function(t){var e,i,o,n,r=(i=Math.floor(U(e=t/8)),o=q(i),e=(1.5>(n=e/o)?1:2.5>n?2:3.5>n?3:4.5>n?4:5.5>n?5:6.5>n?6:8)*o,-20>i?e:+e.toFixed(0>i?-i:0)),a=function(t){var e=\\"\\"+t,i=e.indexOf(\\"e\\");if(i>0){var o=+e.slice(i+1);return 0>o?-o:0}var n=e.indexOf(\\".\\");return 0>n?0:e.length-1-n}(r);return[r,a]},t}(),Ge=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var e,i,o,n,r,a=this.getParent(),l=a.getChart(),u=l.getChartStore(),c=Number.MAX_SAFE_INTEGER,h=Number.MIN_SAFE_INTEGER,d=[],p=!1,v=Number.MAX_SAFE_INTEGER,g=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER;u.getIndicatorStore().getInstances(a.getId()).forEach((function(t){var e,i,o;p||(p=null!==(e=t.shouldOhlc)&&void 0!==e&&e),f=Math.min(f,t.precision),null!==t.minValue&&(v=Math.min(v,t.minValue)),null!==t.maxValue&&(g=Math.max(g,t.maxValue)),d.push({figures:null!==(i=t.figures)&&void 0!==i?i:[],result:null!==(o=t.result)&&void 0!==o?o:[]})}));var m=4,y=this.isInCandle();if(y){var _=u.getPrecision().price;m=f!==Number.MAX_SAFE_INTEGER?Math.min(f,_):_}else f!==Number.MAX_SAFE_INTEGER&&(m=f);var x=u.getVisibleDataList(),S=l.getStyles().candle,C=S.type===t.CandleType.Area,b=S.area.value,T=y&&!C||!y&&p;x.forEach((function(t){var e=t.dataIndex,i=t.data;if(T&&(c=Math.min(c,i.low),h=Math.max(h,i.high)),y&&C){var o=i[b];c=Math.min(c,o),h=Math.max(h,o)}d.forEach((function(t){var i,o=null!==(i=t.result[e])&&void 0!==i?i:{};t.figures.forEach((function(t){var e=o[t.key];s(e)&&(c=Math.min(c,e),h=Math.max(h,e))}))}))})),c!==Number.MAX_SAFE_INTEGER&&h!==Number.MIN_SAFE_INTEGER?(c=Math.min(v,c),h=Math.max(g,h)):(c=0,h=10);var w,E=this.getType();switch(E){case t.YAxisType.Percentage:var I=null===(e=x[0])||void 0===e?void 0:e.data;void 0!==(null==I?void 0:I.close)&&(c=(c-I.close)/I.close*100,h=(h-I.close)/I.close*100),w=.01;break;case t.YAxisType.Log:c=U(c),h=U(h),w=.05*q(-m);break;default:w=q(-m)}if(c===h||w>Math.abs(c-h)){var D=v===c,P=g===h;c=D?c:P?c-8*w:c-4*w,h=P?h:D?h+8*w:h+4*w}var M=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,k=a.getOptions().gap,A=null!==(n=null==k?void 0:k.top)&&void 0!==n?n:.2;1>A||(A/=M);var F=null!==(r=null==k?void 0:k.bottom)&&void 0!==r?r:.1;1>F||(F/=M);var L,R,B,O=Math.abs(h-c);return O=Math.abs((h+=O*A)-(c-=O*F)),E===t.YAxisType.Log?(L=q(c),R=q(h),B=Math.abs(R-L)):(L=c,R=h,B=O),{min:c,max:h,range:O,realMin:L,realMax:R,realRange:B}},i.prototype._innerConvertToPixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.getExtremum(),r=(t-n.min)/n.range;return this.isReverse()?Math.round(r*o):Math.round((1-r)*o)},i.prototype.isInCandle=function(){return\\"candle\\"===this.getParent().getName()},i.prototype.getType=function(){return this.isInCandle()?this.getParent().getChart().getStyles().yAxis.type:t.YAxisType.Normal},i.prototype.getPosition=function(){return this.getParent().getChart().getStyles().yAxis.position},i.prototype.isReverse=function(){return!!this.isInCandle()&&this.getParent().getChart().getStyles().yAxis.reverse},i.prototype.isFromZero=function(){var e=this.getParent().getChart().getStyles().yAxis,i=e.inside;return e.position===t.YAxisPosition.Left&&i||e.position===t.YAxisPosition.Right&&!i},i.prototype.optimalTicks=function(e){var i,o,n=this,r=this.getParent(),a=null!==(o=null===(i=r.getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,s=r.getChart().getChartStore(),l=s.getCustomApi(),u=[],c=this.getType(),h=s.getIndicatorStore().getInstances(r.getId()),d=s.getThousandsSeparator(),p=0,v=!1;this.isInCandle()?p=s.getPrecision().price:h.forEach((function(t){p=Math.max(p,t.precision),v||(v=t.shouldFormatBigNumber)}));var g,f=s.getStyles().xAxis.tickText.size;return e.forEach((function(e){var i,o=e.value,r=n._innerConvertToPixel(+o);switch(c){case t.YAxisType.Percentage:i=\\"\\".concat(T(o,2),\\"%\\");break;case t.YAxisType.Log:r=n._innerConvertToPixel(U(+o)),i=T(o,p);break;default:i=T(o,p),v&&(i=l.formatBigNumber(o))}i=E(i,d),r>f&&a-f>r&&(void 0!==g&&Math.abs(g-r)>2*f||void 0===g)&&(u.push({text:i,coord:r,value:o}),g=r)})),u},i.prototype.getAutoSize=function(){var e=this.getParent(),i=e.getChart(),o=i.getStyles(),n=o.yAxis,r=n.size;if(\\"auto\\"!==r)return r;var a=i.getChartStore(),s=a.getCustomApi(),l=0;if(n.show&&(n.axisLine.show&&(l+=n.axisLine.size),n.tickLine.show&&(l+=n.tickLine.length),n.tickText.show)){var u=0;this.getTicks().forEach((function(t){u=Math.max(u,j(t.text,n.tickText.size,n.tickText.weight,n.tickText.family))})),l+=n.tickText.marginStart+n.tickText.marginEnd+u}var c=o.crosshair,h=0;if(c.show&&c.horizontal.show&&c.horizontal.text.show){var d=a.getIndicatorStore().getInstances(e.getId()),p=0,v=!1;d.forEach((function(t){p=Math.max(t.precision,p),v||(v=t.shouldFormatBigNumber)}));var g=2;if(this.getType()!==t.YAxisType.Percentage)if(this.isInCandle()){var f=a.getPrecision().price,m=o.indicator.lastValueMark;g=m.show&&m.text.show?Math.max(p,f):f}else g=p;var y=T(this.getExtremum().max,g);v&&(y=s.formatBigNumber(y)),h+=c.horizontal.text.paddingLeft+c.horizontal.text.paddingRight+2*c.horizontal.text.borderSize+j(y,c.horizontal.text.size,c.horizontal.text.weight,c.horizontal.text.family)}return Math.max(l,h)},i.prototype.convertFromPixel=function(e){var i,o,n,r=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,a=this.getExtremum(),s=a.min,l=a.range,u=(this.isReverse()?e/r:1-e/r)*l+s;switch(this.getType()){case t.YAxisType.Percentage:var c=null===(n=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===n?void 0:n.data;return void 0!==(null==c?void 0:c.close)?c.close*u/100+c.close:0;case t.YAxisType.Log:return q(u);default:return u}},i.prototype.convertToRealValue=function(e){var i=e;return this.getType()===t.YAxisType.Log&&(i=q(e)),i},i.prototype.convertToPixel=function(e){var i,o=e;switch(this.getType()){case t.YAxisType.Percentage:var n=null===(i=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===i?void 0:i.data;void 0!==(null==n?void 0:n.close)&&(o=(e-n.close)/n.close*100);break;case t.YAxisType.Log:o=U(e);break;default:o=e}return this._innerConvertToPixel(o)},i.prototype.convertToNicePixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.convertToPixel(t);return Math.round(Math.max(.05*o,Math.min(n,.98*o)))},i}(Ze),Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"indicator\\"},e.prototype.createAxisComponent=function(){return new Ge(this)},e.prototype.createMainWidget=function(t){return new Ae(t,this)},e.prototype.createSeparatorWidget=function(t){return new Zt(t,this)},e.prototype.createYAxisWidget=function(t){return new je(t,this)},e}(Ut),Ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"candle\\"},e.prototype.createMainWidget=function(t){return new Ve(t,this)},e.prototype.createSeparatorWidget=function(){return null},e}(Ke),qe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.xAxis},e.prototype.createAxisLine=function(t,e){var i=e.axisLine.size/2;return{coordinates:[{x:0,y:i},{x:t.width,y:i}]}},e.prototype.createTickLines=function(t,e,i){var o=i.tickLine,n=i.axisLine.size;return t.map((function(t){return{coordinates:[{x:t.coord,y:0},{x:t.coord,y:n+o.length}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=i.tickText,n=i.axisLine.size,r=i.tickLine.length;return t.map((function(t){return{x:t.coord,y:n+r+o.marginStart,text:t.text,align:\\"center\\",baseline:\\"top\\"}}))},e}(Ne),$e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.coordinateToPointValueFlag=function(){return!1},i.prototype.getCompleteOverlays=function(t){return t.getInstances()},i.prototype.getProgressOverlay=function(t){return t.instance},i.prototype.getDefaultFigures=function(e,i,o,n,r,a,s,l,u,c){var h,d=[];if(e.needDefaultXAxisFigure&&e.id===(null===(h=c.instance)||void 0===h?void 0:h.id)){var p=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER;i.forEach((function(i,o){p=Math.min(p,i.x),v=Math.max(v,i.x);var n=e.points[o];if(void 0!==n.timestamp){var s=a.formatDate(r,n.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair);d.push({type:\\"text\\",attrs:{x:i.x,y:0,text:s,align:\\"center\\"},ignoreEvent:!0})}})),i.length>1&&d.unshift({type:\\"rect\\",attrs:{x:p,y:0,width:v-p,height:o.height},ignoreEvent:!0})}return d},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createXAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i}(Xe),Je=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.compare=function(t){return void 0!==t.kLineData&&t.dataIndex===t.realDataIndex},i.prototype.getDirectionStyles=function(t){return t.vertical},i.prototype.getText=function(e,i){var o,n=null===(o=e.kLineData)||void 0===o?void 0:o.timestamp;return i.getCustomApi().formatDate(i.getTimeScaleStore().getDateTimeFormat(),n,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair)},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s=i.realX,l=\\"center\\";return 0>s-e/2-r.paddingLeft?(a=0,l=\\"left\\"):s+e/2+r.paddingRight>o.width?(a=o.width,l=\\"right\\"):a=s,{x:a,y:0,text:t,align:l,baseline:\\"top\\"}},i}(He),Qe=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._xAxisView=new qe(o),o._overlayXAxisView=new $e(o),o._crosshairVerticalLabelView=new Je(o),o.getContainer().style.cursor=\\"ew-resize\\",o.addChild(o._overlayXAxisView),o}return P(e,t),e.prototype.getName=function(){return Yt},e.prototype.updateMain=function(t){this._xAxisView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayXAxisView.draw(t),this._crosshairVerticalLabelView.draw(t)},e}(ne),ti=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var t=this.getParent().getChart().getChartStore().getTimeScaleStore().getVisibleRange(),e=t.from,i=t.to,o=i-1,n=i-e;return{min:e,max:o,range:n,realMin:e,realMax:o,realRange:n}},i.prototype.optimalTicks=function(e){var i,o,n=this.getParent().getChart(),r=n.getChartStore(),a=r.getCustomApi().formatDate,s=[],l=e.length,u=r.getDataList();if(l>0){var c=r.getTimeScaleStore().getDateTimeFormat(),h=n.getStyles().xAxis.tickText,d=j(\\"00-00 00:00\\",h.size,h.weight,h.family),p=this.convertToPixel(parseInt(e[0].value,10)),v=1;if(l>1){var g=this.convertToPixel(parseInt(e[1].value,10)),f=Math.abs(g-p);d>f&&(v=Math.ceil(d/f))}for(var m=0;l>m;m+=v){var y=parseInt(e[m].value,10),_=u[y].timestamp,x=a(c,_,\\"HH:mm\\",t.FormatDateType.XAxis);if(0!==m)x=null!==(i=this._optimalTickLabel(a,c,_,u[parseInt(e[m-v].value,10)].timestamp))&&void 0!==i?i:x;var S=this.convertToPixel(y);s.push({text:x,coord:S,value:_})}if(1===s.length)s[0].text=a(c,s[0].value,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.XAxis);else{var C=s[0].value,b=s[1].value;if(void 0!==s[2]){var T=s[2].text;/^[0-9]{2}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"MM-DD\\",t.FormatDateType.XAxis):/^[0-9]{4}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"YYYY-MM\\",t.FormatDateType.XAxis):/^[0-9]{4}$/.test(T)&&(s[0].text=a(c,C,\\"YYYY\\",t.FormatDateType.XAxis))}else s[0].text=null!==(o=this._optimalTickLabel(a,c,C,b))&&void 0!==o?o:s[0].text}}return s},i.prototype._optimalTickLabel=function(e,i,o,n){var r=e(i,o,\\"YYYY\\",t.FormatDateType.XAxis),a=e(i,o,\\"YYYY-MM\\",t.FormatDateType.XAxis),s=e(i,o,\\"MM-DD\\",t.FormatDateType.XAxis);return r!==e(i,n,\\"YYYY\\",t.FormatDateType.XAxis)?r:a!==e(i,n,\\"YYYY-MM\\",t.FormatDateType.XAxis)?a:s!==e(i,n,\\"MM-DD\\",t.FormatDateType.XAxis)?s:null},i.prototype.getAutoSize=function(){var t=this.getParent().getChart().getStyles(),e=t.xAxis,i=e.size;if(\\"auto\\"!==i)return i;var o=t.crosshair,n=0;e.show&&(e.axisLine.show&&(n+=e.axisLine.size),e.tickLine.show&&(n+=e.tickLine.length),e.tickText.show&&(n+=e.tickText.marginStart+e.tickText.marginEnd+e.tickText.size));var r=0;return o.show&&o.vertical.show&&o.vertical.text.show&&(r+=o.vertical.text.paddingTop+o.vertical.text.paddingBottom+2*o.vertical.text.borderSize+o.vertical.text.size),Math.max(n,r)},i.prototype.convertTimestampFromPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.coordinateToDataIndex(t);return e.dataIndexToTimestamp(i)},i.prototype.convertTimestampToPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.timestampToDataIndex(t);return e.dataIndexToCoordinate(i)},i.prototype.convertFromPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().coordinateToDataIndex(t)},i.prototype.convertToPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().dataIndexToCoordinate(t)},i}(Ze),ei=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"xAxis\\"},e.prototype.createAxisComponent=function(){return new ti(this)},e.prototype.createMainWidget=function(t){return new Qe(t,this)},e}(Ut);function ii(){var t;return\\"undefined\\"!=typeof window&&(null!==(t=window.navigator.userAgent.toLowerCase().indexOf(\\"firefox\\"))&&void 0!==t?t:-1)>-1}function oi(){return\\"undefined\\"!=typeof window&&/iPhone|iPad|iPod/.test(window.navigator.platform)}var ni,ri=function(){function t(t,e,i){var o=this;this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0},this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0},this._longTapTimeoutId=null,this._longTapActive=!1,this._mouseMoveStartCoordinate=null,this._touchMoveStartCoordinate=null,this._touchMoveExceededManhattanDistance=!1,this._cancelClick=!1,this._cancelTap=!1,this._unsubscribeOutsideMouseEvents=null,this._unsubscribeOutsideTouchEvents=null,this._unsubscribeMobileSafariEvents=null,this._unsubscribeMousemove=null,this._unsubscribeMouseWheel=null,this._unsubscribeContextMenu=null,this._unsubscribeRootMouseEvents=null,this._unsubscribeRootTouchEvents=null,this._startPinchMiddleCoordinate=null,this._startPinchDistance=0,this._pinchPrevented=!1,this._preventTouchDragProcess=!1,this._mousePressed=!1,this._lastTouchEventTimeStamp=0,this._activeTouchId=null,this._acceptMouseLeave=!oi(),this._onFirefoxOutsideMouseUp=function(t){o._mouseUpHandler(t)},this._onMobileSafariDoubleClick=function(t){o._firesTouchEvents(t)?(++o._tapCount,null!==o._tapTimeoutId&&o._tapCount>1&&(30>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._tapCoordinate).manhattanDistance&&!o._cancelTap&&o._processEvent(o._makeCompatEvent(t),o._handler.doubleTapEvent),o._resetTapTimeout())):(++o._clickCount,null!==o._clickTimeoutId&&o._clickCount>1&&(5>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._clickCoordinate).manhattanDistance&&!o._cancelClick&&o._processEvent(o._makeCompatEvent(t),o._handler.mouseDoubleClickEvent),o._resetClickTimeout()))},this._target=t,this._handler=e,this._options=i,this._init()}return t.prototype.destroy=function(){null!==this._unsubscribeOutsideMouseEvents&&(this._unsubscribeOutsideMouseEvents(),this._unsubscribeOutsideMouseEvents=null),null!==this._unsubscribeOutsideTouchEvents&&(this._unsubscribeOutsideTouchEvents(),this._unsubscribeOutsideTouchEvents=null),null!==this._unsubscribeMousemove&&(this._unsubscribeMousemove(),this._unsubscribeMousemove=null),null!==this._unsubscribeMouseWheel&&(this._unsubscribeMouseWheel(),this._unsubscribeMouseWheel=null),null!==this._unsubscribeContextMenu&&(this._unsubscribeContextMenu(),this._unsubscribeContextMenu=null),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null),null!==this._unsubscribeMobileSafariEvents&&(this._unsubscribeMobileSafariEvents(),this._unsubscribeMobileSafariEvents=null),this._clearLongTapTimeout(),this._resetClickTimeout()},t.prototype._mouseEnterHandler=function(t){var e,i,o,n=this;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this);var r=this._mouseMoveHandler.bind(this);this._unsubscribeMousemove=function(){n._target.removeEventListener(\\"mousemove\\",r)},this._target.addEventListener(\\"mousemove\\",r);var a=this._mouseWheelHandler.bind(this);this._unsubscribeMouseWheel=function(){n._target.removeEventListener(\\"wheel\\",a)},this._target.addEventListener(\\"wheel\\",a,{passive:!1});var s=this._contextMenuHandler.bind(this);this._unsubscribeContextMenu=function(){n._target.removeEventListener(\\"contextmenu\\",s)},this._target.addEventListener(\\"contextmenu\\",s,{passive:!1}),this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseEnterEvent),this._acceptMouseLeave=!0)},t.prototype._resetClickTimeout=function(){null!==this._clickTimeoutId&&clearTimeout(this._clickTimeoutId),this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0}},t.prototype._resetTapTimeout=function(){null!==this._tapTimeoutId&&clearTimeout(this._tapTimeoutId),this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0}},t.prototype._mouseMoveHandler=function(t){this._mousePressed||null!==this._touchMoveStartCoordinate||this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseMoveEvent),this._acceptMouseLeave=!0)},t.prototype._mouseWheelHandler=function(t){if(Math.abs(t.deltaX)>Math.abs(t.deltaY)){if(void 0===this._handler.mouseWheelHortEvent)return;if(this._preventDefault(t),0===Math.abs(t.deltaX))return;this._handler.mouseWheelHortEvent(this._makeCompatEvent(t),-t.deltaX)}else{if(void 0===this._handler.mouseWheelVertEvent)return;var e=-t.deltaY/100;if(0===e)return;switch(this._preventDefault(t),t.deltaMode){case t.DOM_DELTA_PAGE:e*=120;break;case t.DOM_DELTA_LINE:e*=32}if(0!==e){var i=Math.sign(e)*Math.min(1,Math.abs(e));this._handler.mouseWheelVertEvent(this._makeCompatEvent(t),i)}}},t.prototype._contextMenuHandler=function(t){this._preventDefault(t)},t.prototype._touchMoveHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null!==e&&(this._lastTouchEventTimeStamp=this._eventTimeStamp(t),null===this._startPinchMiddleCoordinate&&!this._preventTouchDragProcess)){this._pinchPrevented=!0;var i=this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._touchMoveStartCoordinate),o=i.yOffset;if(this._touchMoveExceededManhattanDistance||i.manhattanDistance>=5){if(!this._touchMoveExceededManhattanDistance){var n=.5*i.xOffset,r=o>=n&&!this._options.treatVertDragAsPageScroll(),a=n>o&&!this._options.treatHorzDragAsPageScroll();r||a||(this._preventTouchDragProcess=!0),this._touchMoveExceededManhattanDistance=!0,this._cancelTap=!0,this._clearLongTapTimeout(),this._resetTapTimeout()}this._preventTouchDragProcess||this._processEvent(this._makeCompatEvent(t,e),this._handler.touchMoveEvent)}}},t.prototype._mouseMoveWithDownHandler=function(t){0===t.button&&(5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._mouseMoveStartCoordinate).manhattanDistance||(this._cancelClick=!0,this._resetClickTimeout()),this._cancelClick&&this._processEvent(this._makeCompatEvent(t),this._handler.pressedMouseMoveEvent))},t.prototype._mouseTouchMoveWithDownInfo=function(t,e){var i=Math.abs(e.x-t.x),o=Math.abs(e.y-t.y);return{xOffset:i,yOffset:o,manhattanDistance:i+o}},t.prototype._touchEndHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null===e&&0===t.touches.length&&(e=t.changedTouches[0]),null!==e){this._activeTouchId=null,this._lastTouchEventTimeStamp=this._eventTimeStamp(t),this._clearLongTapTimeout(),this._touchMoveStartCoordinate=null,null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var i=this._makeCompatEvent(t,e);if(this._processEvent(i,this._handler.touchEndEvent),++this._tapCount,null!==this._tapTimeoutId&&this._tapCount>1)30>this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._tapCoordinate).manhattanDistance&&!this._cancelTap&&this._processEvent(i,this._handler.doubleTapEvent),this._resetTapTimeout();else this._cancelTap||(this._processEvent(i,this._handler.tapEvent),void 0!==this._handler.tapEvent&&this._preventDefault(t));0===this._tapCount&&this._preventDefault(t),0===t.touches.length&&this._longTapActive&&(this._longTapActive=!1,this._preventDefault(t))}},t.prototype._mouseUpHandler=function(t){if(0===t.button){var e=this._makeCompatEvent(t);if(this._mouseMoveStartCoordinate=null,this._mousePressed=!1,null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),ii())this._target.ownerDocument.documentElement.removeEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp);if(!this._firesTouchEvents(t))if(this._processEvent(e,this._handler.mouseUpEvent),++this._clickCount,null!==this._clickTimeoutId&&this._clickCount>1)5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._clickCoordinate).manhattanDistance&&!this._cancelClick&&this._processEvent(e,this._handler.mouseDoubleClickEvent),this._resetClickTimeout();else this._cancelClick||this._processEvent(e,this._handler.mouseClickEvent)}},t.prototype._clearLongTapTimeout=function(){null!==this._longTapTimeoutId&&(clearTimeout(this._longTapTimeoutId),this._longTapTimeoutId=null)},t.prototype._touchStartHandler=function(t){if(null===this._activeTouchId){var e=t.changedTouches[0];this._activeTouchId=e.identifier,this._lastTouchEventTimeStamp=this._eventTimeStamp(t);var i=this._target.ownerDocument.documentElement;this._cancelTap=!1,this._touchMoveExceededManhattanDistance=!1,this._preventTouchDragProcess=!1,this._touchMoveStartCoordinate=this._getCoordinate(e),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var o=this._touchMoveHandler.bind(this),n=this._touchEndHandler.bind(this);this._unsubscribeRootTouchEvents=function(){i.removeEventListener(\\"touchmove\\",o),i.removeEventListener(\\"touchend\\",n)},i.addEventListener(\\"touchmove\\",o,{passive:!1}),i.addEventListener(\\"touchend\\",n,{passive:!1}),this._clearLongTapTimeout(),this._longTapTimeoutId=setTimeout(this._longTapHandler.bind(this,t),500),this._processEvent(this._makeCompatEvent(t,e),this._handler.touchStartEvent),null===this._tapTimeoutId&&(this._tapCount=0,this._tapTimeoutId=setTimeout(this._resetTapTimeout.bind(this),500),this._tapCoordinate=this._getCoordinate(e))}},t.prototype._mouseDownHandler=function(t){if(2===t.button)return this._preventDefault(t),void this._processEvent(this._makeCompatEvent(t),this._handler.mouseRightClickEvent);if(0===t.button){var e=this._target.ownerDocument.documentElement;ii()&&e.addEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp),this._cancelClick=!1,this._mouseMoveStartCoordinate=this._getCoordinate(t),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null);var i=this._mouseMoveWithDownHandler.bind(this),o=this._mouseUpHandler.bind(this);this._unsubscribeRootMouseEvents=function(){e.removeEventListener(\\"mousemove\\",i),e.removeEventListener(\\"mouseup\\",o)},e.addEventListener(\\"mousemove\\",i),e.addEventListener(\\"mouseup\\",o),this._mousePressed=!0,this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseDownEvent),null===this._clickTimeoutId&&(this._clickCount=0,this._clickTimeoutId=setTimeout(this._resetClickTimeout.bind(this),500),this._clickCoordinate=this._getCoordinate(t)))}},t.prototype._init=function(){var t=this;this._target.addEventListener(\\"mouseenter\\",this._mouseEnterHandler.bind(this)),this._target.addEventListener(\\"touchcancel\\",this._clearLongTapTimeout.bind(this));var e=this._target.ownerDocument,i=function(e){null!=t._handler.mouseDownOutsideEvent&&(e.composed&&t._target.contains(e.composedPath()[0])||null!==e.target&&t._target.contains(e.target)||t._handler.mouseDownOutsideEvent({x:0,y:0,pageX:0,pageY:0}))};this._unsubscribeOutsideTouchEvents=function(){e.removeEventListener(\\"touchstart\\",i)},this._unsubscribeOutsideMouseEvents=function(){e.removeEventListener(\\"mousedown\\",i)},e.addEventListener(\\"mousedown\\",i),e.addEventListener(\\"touchstart\\",i,{passive:!0}),oi()&&(this._unsubscribeMobileSafariEvents=function(){t._target.removeEventListener(\\"dblclick\\",t._onMobileSafariDoubleClick)},this._target.addEventListener(\\"dblclick\\",this._onMobileSafariDoubleClick)),this._target.addEventListener(\\"mouseleave\\",this._mouseLeaveHandler.bind(this)),this._target.addEventListener(\\"touchstart\\",this._touchStartHandler.bind(this),{passive:!0}),this._target.addEventListener(\\"mousedown\\",(function(t){if(1===t.button)return t.preventDefault(),!1})),this._target.addEventListener(\\"mousedown\\",this._mouseDownHandler.bind(this)),this._initPinch(),this._target.addEventListener(\\"touchmove\\",(function(){}),{passive:!1})},t.prototype._initPinch=function(){var t=this;void 0===this._handler.pinchStartEvent&&void 0===this._handler.pinchEvent&&void 0===this._handler.pinchEndEvent||(this._target.addEventListener(\\"touchstart\\",(function(e){return t._checkPinchState(e.touches)}),{passive:!0}),this._target.addEventListener(\\"touchmove\\",(function(e){if(2===e.touches.length&&null!==t._startPinchMiddleCoordinate&&void 0!==t._handler.pinchEvent){var i=t._getTouchDistance(e.touches[0],e.touches[1])/t._startPinchDistance;t._handler.pinchEvent(k(k({},t._startPinchMiddleCoordinate),{pageX:0,pageY:0}),i),t._preventDefault(e)}}),{passive:!1}),this._target.addEventListener(\\"touchend\\",(function(e){t._checkPinchState(e.touches)})))},t.prototype._checkPinchState=function(t){1===t.length&&(this._pinchPrevented=!1),2!==t.length||this._pinchPrevented||this._longTapActive?this._stopPinch():this._startPinch(t)},t.prototype._startPinch=function(t){var e,i=null!==(e=this._target.getBoundingClientRect())&&void 0!==e?e:{left:0,top:0};this._startPinchMiddleCoordinate={x:(t[0].clientX-i.left+(t[1].clientX-i.left))/2,y:(t[0].clientY-i.top+(t[1].clientY-i.top))/2},this._startPinchDistance=this._getTouchDistance(t[0],t[1]),void 0!==this._handler.pinchStartEvent&&this._handler.pinchStartEvent({x:0,y:0,pageX:0,pageY:0}),this._clearLongTapTimeout()},t.prototype._stopPinch=function(){null!==this._startPinchMiddleCoordinate&&(this._startPinchMiddleCoordinate=null,void 0!==this._handler.pinchEndEvent&&this._handler.pinchEndEvent({x:0,y:0,pageX:0,pageY:0}))},t.prototype._mouseLeaveHandler=function(t){var e,i,o;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this),this._firesTouchEvents(t)||this._acceptMouseLeave&&(this._processEvent(this._makeCompatEvent(t),this._handler.mouseLeaveEvent),this._acceptMouseLeave=!oi())},t.prototype._longTapHandler=function(t){var e=this._touchWithId(t.touches,this._activeTouchId);null!==e&&(this._processEvent(this._makeCompatEvent(t,e),this._handler.longTapEvent),this._cancelTap=!0,this._longTapActive=!0)},t.prototype._firesTouchEvents=function(t){var e;return void 0!==(null===(e=t.sourceCapabilities)||void 0===e?void 0:e.firesTouchEvents)?t.sourceCapabilities.firesTouchEvents:this._eventTimeStamp(t)i;++i)if(t[i].identifier===e)return t[i];return null},t}(),ai=function(){function t(t,e){var i=this;this._flingStartTime=(new Date).getTime(),this._flingScrollRequestId=null,this._startScrollCoordinate=null,this._touchCoordinate=null,this._touchCancelCrosshair=!1,this._touchZoomed=!1,this._pinchScale=1,this._mouseDownWidget=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,this._mouseMoveTriggerWidgetInfo={pane:null,widget:null},this._boundKeyBoardDownEvent=function(t){if(t.shiftKey)switch(t.code){case\\"Equal\\":i._chart.getChartStore().getTimeScaleStore().zoom(.5);break;case\\"Minus\\":i._chart.getChartStore().getTimeScaleStore().zoom(-.5);break;case\\"ArrowLeft\\":(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(-3*e.getBarSpace().bar);break;case\\"ArrowRight\\":var e;(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(3*e.getBarSpace().bar)}},this._container=t,this._chart=e,this._event=new ri(t,this,{treatVertDragAsPageScroll:function(){return!1},treatHorzDragAsPageScroll:function(){return!1}}),t.addEventListener(\\"keydown\\",this._boundKeyBoardDownEvent)}return t.prototype.pinchStartEvent=function(){return this._touchZoomed=!0,this._pinchScale=1,!0},t.prototype.pinchEvent=function(t,e){var i=this._findWidgetByEvent(t),o=i.pane,n=i.widget;if((null==o?void 0:o.getId())!==Kt.XAXIS&&(null==n?void 0:n.getName())===zt){var r=this._makeWidgetEvent(t,n),a=5*(e-this._pinchScale);return this._pinchScale=e,this._chart.getChartStore().getTimeScaleStore().zoom(a,{x:r.x,y:r.y}),!0}return!1},t.prototype.mouseWheelHortEvent=function(t,e){var i=this._chart.getChartStore().getTimeScaleStore();return i.startScroll(),i.scroll(e),!0},t.prototype.mouseWheelVertEvent=function(t,e){var i,o,n=this._findWidgetByEvent(t).widget,r=null!==(i=t.isTouch)&&void 0!==i&&i,a=this._makeWidgetEvent(t,n),s=null,l=null==n?void 0:n.getName();if(r)if(l===zt||l===Yt)s={x:a.x,y:a.y};else{var u=null===(o=this._chart.getPaneById(Kt.CANDLE))||void 0===o?void 0:o.getBounding();s={x:u.width/2,y:u.height/2}}else l===zt&&(s={x:a.x,y:a.y});return null!==s&&(this._chart.getChartStore().getTimeScaleStore().zoom(e,{x:a.x,y:a.y}),!0)},t.prototype.mouseDownEvent=function(t){var e,i,o=this._findWidgetByEvent(t),n=o.pane,r=o.widget;if(this._mouseDownWidget=r,null!==r){var a=this._makeWidgetEvent(t,r);switch(r.getName()){case Ht:return r.dispatchEvent(\\"mouseDownEvent\\",a);case zt:var s=null!==(e=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==e?e:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._startScrollCoordinate={x:a.x,y:a.y},this._chart.getChartStore().getTimeScaleStore().startScroll(),r.dispatchEvent(\\"mouseDownEvent\\",a);case Yt:return(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1),this._xAxisStartScaleCoordinate={x:a.x,y:a.y},this._xAxisStartScaleDistance=a.pageX,l;case Xt:var l;(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1);s=null!==(i=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==i?i:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._yAxisStartScaleDistance=a.pageY,l}}return!1},t.prototype.mouseMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget,s=this._makeWidgetEvent(t,a);if((null===(e=this._mouseMoveTriggerWidgetInfo.pane)||void 0===e?void 0:e.getId())===(null==r?void 0:r.getId())&&(null===(i=this._mouseMoveTriggerWidgetInfo.widget)||void 0===i?void 0:i.getName())===(null==a?void 0:a.getName())||(null==a||a.dispatchEvent(\\"mouseEnterEvent\\",s),null===(o=this._mouseMoveTriggerWidgetInfo.widget)||void 0===o||o.dispatchEvent(\\"mouseLeaveEvent\\",s),this._mouseMoveTriggerWidgetInfo={pane:r,widget:a}),null!==a)switch(a.getName()){case zt:var l=a.dispatchEvent(\\"mouseMoveEvent\\",s),u=this._chart.getChartStore(),c={x:s.x,y:s.y,paneId:null==r?void 0:r.getId()};return l&&null!==u.getTooltipStore().getActiveIcon()&&(c=void 0,null!==a&&(a.getContainer().style.cursor=\\"pointer\\")),this._chart.getChartStore().getTooltipStore().setCrosshair(c),l;case Ht:case Yt:case Xt:l=a.dispatchEvent(\\"mouseMoveEvent\\",s);return this._chart.getChartStore().getTooltipStore().setCrosshair(),l}return!1},t.prototype.pressedMouseMoveEvent=function(t){var e,i,o,n,r;if(null!==this._mouseDownWidget&&this._mouseDownWidget.getName()===Ht)return this._mouseDownWidget.dispatchEvent(\\"pressedMouseMoveEvent\\",t);var a=this._findWidgetByEvent(t),s=a.pane,l=a.widget;if(null!==l&&(null===(e=this._mouseDownWidget)||void 0===e?void 0:e.getPane().getId())===(null==s?void 0:s.getId())&&(null===(i=this._mouseDownWidget)||void 0===i?void 0:i.getName())===l.getName()){var u=this._makeWidgetEvent(t,l);switch(l.getName()){case zt:var c=l.getBounding();if(!(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))&&null!==this._startScrollCoordinate){var h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&!h.getAutoCalcTickFlag()&&h.getScrollZoomEnabled()){var d=this._prevYAxisExtremum,p=d.min,v=d.max+(b=(S=d.range)*(C=(null!==(o=null==h?void 0:h.isReverse())&&void 0!==o&&o?this._startScrollCoordinate.y-u.y:u.y-this._startScrollCoordinate.y)/c.height)),g=h.convertToRealValue(E=p+b),f=h.convertToRealValue(v);h.setExtremum({min:E,max:v,range:v-E,realMin:g,realMax:f,realRange:f-g})}var m=u.x-this._startScrollCoordinate.x;this._chart.getChartStore().getTimeScaleStore().scroll(m)}return this._chart.getChartStore().getTooltipStore().setCrosshair({x:u.x,y:u.y,paneId:null==s?void 0:s.getId()}),x;case Yt:if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{var y=null==s?void 0:s.getAxisComponent();if(null===(n=null==y?void 0:y.getScrollZoomEnabled())||void 0===n||n){var _=10*((C=this._xAxisStartScaleDistance/u.pageX)-this._xAxisScale);this._xAxisScale=C,this._chart.getChartStore().getTimeScaleStore().zoom(_,null!==(r=this._xAxisStartScaleCoordinate)&&void 0!==r?r:void 0)}}return x;case Xt:var x;if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&h.getScrollZoomEnabled()){var S,C,b,T=this._prevYAxisExtremum,w=(S=T.range)*(C=u.pageY/this._yAxisStartScaleDistance),E=(p=T.min)-(b=(w-S)/2),I=(v=T.max+b,null==s?void 0:s.getAxisComponent());g=I.convertToRealValue(E),f=I.convertToRealValue(v);I.setExtremum({min:E,max:v,range:w,realMin:g,realMax:f,realRange:f-g}),this._chart.adjustPaneViewport(!1,!0,!0,!0)}}return x}}return!1},t.prototype.mouseUpEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Ht:case Yt:case Xt:i=e.dispatchEvent(\\"mouseUpEvent\\",o)}i&&this._chart.updatePane(1)}return this._mouseDownWidget=null,this._startScrollCoordinate=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,i},t.prototype.mouseClickEvent=function(t){var e=this._findWidgetByEvent(t).widget;if(null!==e){var i=this._makeWidgetEvent(t,e);return e.dispatchEvent(\\"mouseClickEvent\\",i)}return!1},t.prototype.mouseRightClickEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Yt:case Xt:i=e.dispatchEvent(\\"mouseRightClickEvent\\",o)}i&&this._chart.updatePane(1)}return!1},t.prototype.mouseDoubleClickEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o)switch(o.getName()){case zt:var n=this._makeWidgetEvent(t,o);return o.dispatchEvent(\\"mouseDoubleClickEvent\\",n);case Xt:var r=null==i?void 0:i.getAxisComponent();if(!r.getAutoCalcTickFlag())return r.setAutoCalcTickFlag(!0),this._chart.adjustPaneViewport(!1,!0,!0,!0),!0}return!1},t.prototype.mouseLeaveEvent=function(){return this._chart.getChartStore().getTooltipStore().setCrosshair(),!0},t.prototype.touchStartEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o){var n=this._makeWidgetEvent(t,o);switch(o.getName()){case zt:var r=this._chart.getChartStore(),a=r.getTooltipStore();if(o.dispatchEvent(\\"mouseDownEvent\\",n))return this._touchCancelCrosshair=!0,this._touchCoordinate=null,a.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._flingScrollRequestId&&(ie(this._flingScrollRequestId),this._flingScrollRequestId=null),this._flingStartTime=(new Date).getTime(),this._startScrollCoordinate={x:n.x,y:n.y},r.getTimeScaleStore().startScroll(),this._touchZoomed=!1,null!==this._touchCoordinate){var s=n.x-this._touchCoordinate.x,l=n.y-this._touchCoordinate.y;10>Math.sqrt(s*s+l*l)?(this._touchCoordinate={x:n.x,y:n.y},a.setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()})):(this._touchCoordinate=null,this._touchCancelCrosshair=!0,a.setCrosshair())}return!0;case Yt:case Xt:var u=o.dispatchEvent(\\"mouseDownEvent\\",n);return u&&this._chart.updatePane(1),u}}return!1},t.prototype.touchMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget;if(null!==a){var s=this._makeWidgetEvent(t,a),l=a.getName(),u=this._chart.getChartStore(),c=u.getTooltipStore();switch(l){case zt:if(a.dispatchEvent(\\"pressedMouseMoveEvent\\",s))return null===(e=s.preventDefault)||void 0===e||e.call(s),c.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._touchCoordinate)null===(i=s.preventDefault)||void 0===i||i.call(s),c.setCrosshair({x:s.x,y:s.y,paneId:null==r?void 0:r.getId()});else if(null!==this._startScrollCoordinate&&Math.abs(this._startScrollCoordinate.x-s.x)>this._startScrollCoordinate.y-s.y){var h=s.x-this._startScrollCoordinate.x;u.getTimeScaleStore().scroll(h)}return!0;case Yt:case Xt:var d=a.dispatchEvent(\\"pressedMouseMoveEvent\\",s);return d&&(null===(o=s.preventDefault)||void 0===o||o.call(s),this._chart.updatePane(1)),d}}return!1},t.prototype.touchEndEvent=function(t){var e=this,i=this._findWidgetByEvent(t).widget;if(null!==i){var o=this._makeWidgetEvent(t,i);switch(i.getName()){case zt:if(i.dispatchEvent(\\"mouseUpEvent\\",o),null!==this._startScrollCoordinate){var n=(new Date).getTime()-this._flingStartTime,r=(o.x-this._startScrollCoordinate.x)/(n>0?n:1)*20;if(200>n&&Math.abs(r)>0){var a=this._chart.getChartStore().getTimeScaleStore(),s=function(){e._flingScrollRequestId=ee((function(){a.startScroll(),a.scroll(r),1>Math.abs(r*=.975)?null!==e._flingScrollRequestId&&(ie(e._flingScrollRequestId),e._flingScrollRequestId=null):s()}))};s()}}return!0;case Yt:case Xt:i.dispatchEvent(\\"mouseUpEvent\\",o)&&this._chart.updatePane(1)}}return!1},t.prototype.tapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget,n=!1;if(null!==o){var r=this._makeWidgetEvent(t,o),a=o.dispatchEvent(\\"mouseClickEvent\\",r);if(o.getName()===zt){var s=this._makeWidgetEvent(t,o),l=this._chart.getChartStore().getTooltipStore();a?(this._touchCancelCrosshair=!0,this._touchCoordinate=null,l.setCrosshair(void 0,!0),n=!0):(this._touchCancelCrosshair||this._touchZoomed||(this._touchCoordinate={x:s.x,y:s.y},l.setCrosshair({x:s.x,y:s.y,paneId:null==i?void 0:i.getId()},!0),n=!0),this._touchCancelCrosshair=!1)}(n||a)&&this._chart.updatePane(1)}return n},t.prototype.doubleTapEvent=function(t){return this.mouseDoubleClickEvent(t)},t.prototype.longTapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o&&o.getName()===zt){var n=this._makeWidgetEvent(t,o);return this._touchCoordinate={x:n.x,y:n.y},this._chart.getChartStore().getTooltipStore().setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()}),!0}return!1},t.prototype._findWidgetByEvent=function(t){var e,i,o=this._chart.getAllPanes(),n=t.x,r=t.y,a=null;try{for(var s=L(o),l=s.next();!l.done;l=s.next()){var u=R(l.value,2)[1],c=u.getBounding();if(!(c.left>n||n>c.left+c.width||c.top>r||r>c.top+c.height)){a=u;break}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}null===a&&(a=this._chart.getPaneById(Kt.XAXIS));var h=null;if(null!==a){var d=a.getSeparatorWidget();if(null!==d){var p=d.getBounding();p.left>n||n>p.left+p.width||p.top>r||r>p.top+7||(h=d)}if(null===h){var v=a.getMainWidget(),g=v.getBounding();g.left>n||n>g.left+g.width||g.top>r||r>g.top+g.height||(h=v)}if(null===h){var f=a.getYAxisWidget();if(null!==f){var m=f.getBounding();m.left>n||n>m.left+m.width||m.top>r||r>m.top+m.height||(h=f)}}}return{pane:a,widget:h}},t.prototype._makeWidgetEvent=function(t,e){var i,o,n,r=null!==(i=null==e?void 0:e.getBounding())&&void 0!==i?i:null;return k(k({},t),{x:t.x-(null!==(o=null==r?void 0:r.left)&&void 0!==o?o:0),y:t.y-(null!==(n=null==r?void 0:r.top)&&void 0!==n?n:0)})},t.prototype.destroy=function(){this._container.removeEventListener(\\"keydown\\",this._boundKeyBoardDownEvent),this._event.destroy()},t}();t.DomPosition=void 0,(ni=t.DomPosition||(t.DomPosition={})).Root=\\"root\\",ni.Main=\\"main\\",ni.YAxis=\\"yAxis\\";var si=function(){function e(t,e){this._panes=new Map,this._initContainer(t),this._chartEvent=new ai(this._chartContainer,this),this._chartStore=new te(this,e),this._xAxisPane=new ei(this._chartContainer,this,Kt.XAXIS),this._panes.set(Kt.CANDLE,new Ue(this._chartContainer,this,Kt.CANDLE)),this.adjustPaneViewport(!0,!0,!0)}return e.prototype._initContainer=function(t){this._container=t,this._chartContainer=Y(\\"div\\",{position:\\"relative\\",width:\\"100%\\",outline:\\"none\\",borderStyle:\\"none\\",cursor:\\"crosshair\\",boxSizing:\\"border-box\\",userSelect:\\"none\\",webkitUserSelect:\\"none\\",msUserSelect:\\"none\\",MozUserSelect:\\"none\\",webkitTapHighlightColor:\\"transparent\\"}),this._chartContainer.tabIndex=1,t.appendChild(this._chartContainer)},e.prototype._measurePaneHeight=function(){var t,e=this._container.offsetHeight,i=this._xAxisPane.getAxisComponent().getAutoSize(),o=e-i;0>o&&(o=0);var n=0;this._panes.forEach((function(t){if(t.getId()!==Kt.CANDLE){var e=t.getBounding().height,i=t.getOptions().minHeight;i>e&&(e=i),n+e>o?e=Math.max(o-(n=o),0):n+=e,t.setBounding({height:e})}}));var r=o-n;null===(t=this._panes.get(Kt.CANDLE))||void 0===t||t.setBounding({height:r});var a=0;this._panes.forEach((function(t){t.setBounding({top:a}),a+=t.getBounding().height})),this._xAxisPane.setBounding({height:i,top:a})},e.prototype._measurePaneWidth=function(){var e=this._chartStore.getStyles().yAxis,i=e.position===t.YAxisPosition.Left,o=!e.inside,n=this._container.offsetWidth,r=0,a=Number.MIN_SAFE_INTEGER,s=0,l=0;this._panes.forEach((function(t){a=Math.max(a,t.getAxisComponent().getAutoSize())})),a>n&&(a=n),o?(r=n-a,i?(s=0,l=a):(s=n-a,l=0)):(r=n,l=0,s=i?0:n-a),this._chartStore.getTimeScaleStore().setTotalBarSpace(r);var u={width:n},c={width:r,left:l},h={width:a,left:s};this._panes.forEach((function(t){t.setBounding(u,c,h)})),this._xAxisPane.setBounding(u,c,h)},e.prototype._setPaneOptions=function(t,e){var i,o,n=this._panes.get(null!==(i=null==t?void 0:t.id)&&void 0!==i?i:\\"\\"),r=!1;if(void 0!==n){var a=e;if(t.id!==Kt.CANDLE&&void 0!==t.height&&t.height>0){var s=Math.max(null!==(o=t.minHeight)&&void 0!==o?o:n.getOptions().minHeight,0);n.setBounding({height:Math.max(s,t.height)}),a=!0,r=!0}n.setOptions(t),a&&this.adjustPaneViewport(r,!0,!0,!0,!0)}},e.prototype.getContainer=function(){return this._container},e.prototype.getChartStore=function(){return this._chartStore},e.prototype.getAllPanes=function(){return this._panes},e.prototype.adjustPaneViewport=function(t,e,i,o,n){t&&this._measurePaneHeight();var r=e,a=null!=n&&n;(null!=o&&o||a)&&this._panes.forEach((function(t){var e=t.getAxisComponent().buildTicks(a);r||(r=e)})),r&&this._measurePaneWidth(),null!=i&&i&&(this._xAxisPane.getAxisComponent().buildTicks(!0),this.updatePane(4))},e.prototype.updatePane=function(t,e){var i;void 0!==e?null===(i=this.getPaneById(e))||void 0===i||i.update(t):(this._xAxisPane.update(t),this._panes.forEach((function(e){e.update(t)})))},e.prototype.getPaneById=function(t){var e;return t===Kt.XAXIS?this._xAxisPane:null!==(e=this._panes.get(t))&&void 0!==e?e:null},e.prototype.crosshairChange=function(e){var i=this,o=this._chartStore.getActionStore();if(o.has(t.ActionType.OnCrosshairChange)){var n={};this._panes.forEach((function(t,o){var r={};i._chartStore.getIndicatorStore().getInstances(o).forEach((function(t){var i,o=t.result;r[t.name]=o[null!==(i=e.dataIndex)&&void 0!==i?i:o.length-1]})),n[o]=r})),void 0!==e.paneId&&o.execute(t.ActionType.OnCrosshairChange,k(k({},e),{indicatorData:n}))}},e.prototype.getDom=function(e,i){var o,n;if(void 0===e)return this._chartContainer;var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getContainer();case t.DomPosition.Main:return r.getMainWidget().getContainer();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getContainer())&&void 0!==n?n:null}return null},e.prototype.getSize=function(e,i){var o,n;if(void 0===e)return{width:this._chartContainer.offsetWidth,height:this._chartContainer.offsetHeight,left:0,top:0,right:0,bottom:0};var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getBounding();case t.DomPosition.Main:return r.getMainWidget().getBounding();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getBounding())&&void 0!==n?n:null}return null},e.prototype.setStyles=function(t){var e,i,o;this._chartStore.setOptions({styles:t}),void 0!==(null===(e=null==(o=u(t)?Qt(t):t)?void 0:o.yAxis)||void 0===e?void 0:e.type)&&(null===(i=this.getPaneById(Kt.CANDLE))||void 0===i||i.getAxisComponent().setAutoCalcTickFlag(!0)),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getStyles=function(){return this._chartStore.getStyles()},e.prototype.setLocale=function(t){this._chartStore.setOptions({locale:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getLocale=function(){return this._chartStore.getLocale()},e.prototype.setCustomApi=function(t){this._chartStore.setOptions({customApi:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.setPriceVolumePrecision=function(t,e){this._chartStore.setPrecision({price:t,volume:e})},e.prototype.getPriceVolumePrecision=function(){return this._chartStore.getPrecision()},e.prototype.setTimezone=function(t){this._chartStore.setOptions({timezone:t}),this._xAxisPane.getAxisComponent().buildTicks(!0),this._xAxisPane.update(3)},e.prototype.getTimezone=function(){return this._chartStore.getTimeScaleStore().getTimezone()},e.prototype.setOffsetRightDistance=function(t){this._chartStore.getTimeScaleStore().setOffsetRightDistance(t,!0)},e.prototype.getOffsetRightDistance=function(){return this._chartStore.getTimeScaleStore().getOffsetRightDistance()},e.prototype.setLeftMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setLeftMinVisibleBarCount(Math.ceil(t))},e.prototype.setRightMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setRightMinVisibleBarCount(Math.ceil(t))},e.prototype.setBarSpace=function(t){this._chartStore.getTimeScaleStore().setBarSpace(t)},e.prototype.getBarSpace=function(){return this._chartStore.getTimeScaleStore().getBarSpace().bar},e.prototype.getVisibleRange=function(){return this._chartStore.getTimeScaleStore().getVisibleRange()},e.prototype.clearData=function(){this._chartStore.clear()},e.prototype.getDataList=function(){return this._chartStore.getDataList()},e.prototype.applyNewData=function(t,e,i){this._chartStore.clear(),0===t.length?this.adjustPaneViewport(!1,!0,!0,!0):this.applyMoreData(t,e,i)},e.prototype.applyMoreData=function(t,e,i){var o=this;this._chartStore.addData(t,0,e),t.length>0&&this._chartStore.getIndicatorStore().calcInstance().then((function(t){o.adjustPaneViewport(!1,!0,!0,!0),null==i||i()})).catch((function(t){}))},e.prototype.updateData=function(t,e){var i=this,o=this._chartStore.getDataList(),n=o.length,r=t.timestamp,a=C(o[n-1],\\"timestamp\\",0);if(r>=a){var s=n;r===a&&(s=n-1),this._chartStore.addData(t,s),this._chartStore.getIndicatorStore().calcInstance().then((function(t){i.adjustPaneViewport(!1,!0,!0,!0),null==e||e()})).catch((function(t){}))}},e.prototype.loadMore=function(t){this._chartStore.getTimeScaleStore().setLoadMoreCallback(t)},e.prototype.createIndicator=function(t,e,i,o){var n,r,a,l=this,c=u(t)?{name:t}:t;if(null===pt(c.name))return null;if(s(i)&&u(null==i?void 0:i.id)&&this._panes.has(i.id))a=i.id,this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).then((function(t){var e,o;l._setPaneOptions(i,null!==(o=null===(e=l._panes.get(a))||void 0===e?void 0:e.getAxisComponent().buildTicks(!0))&&void 0!==o&&o)})).catch((function(t){}));else{a=null!==(n=null==i?void 0:i.id)&&void 0!==n?n:z(Kt.INDICATOR);var h=Array.from(this._panes.values()).pop(),d=new Ke(this._chartContainer,this,a,h);h.setBottomPane(d);var p=null!==(r=null==i?void 0:i.height)&&void 0!==r?r:100;d.setBounding({height:p}),s(i)&&d.setOptions(i),this._panes.set(a,d),this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).finally((function(){l.adjustPaneViewport(!0,!0,!0,!0,!0),null==o||o()}))}return a},e.prototype.overrideIndicator=function(t,e,i){var o=this;this._chartStore.getIndicatorStore().override(t,null!=e?e:null).then((function(t){var e=R(t,2),n=e[1];(e[0]||n)&&(o.adjustPaneViewport(!1,n,!0,n),null==i||i())})).catch((function(){}))},e.prototype.getIndicatorByPaneId=function(t,e){return this._chartStore.getIndicatorStore().getInstanceByPaneId(t,e)},e.prototype.removeIndicator=function(t,e){var i=this._chartStore.getIndicatorStore();if(i.removeInstance(t,e)){var o=!1;if(t!==Kt.CANDLE&&!i.hasInstances(t)){var n=this._panes.get(t);if(void 0!==n){o=!0;var r=n.getTopPane(),a=n.getBottomPane();null==a||a.setTopPane(r),null==r||r.setBottomPane(a),null==n||n.destroy(),this._panes.delete(t)}}this.adjustPaneViewport(o,!0,!0,!0,!0)}},e.prototype.createOverlay=function(t,e){var i=[];if(u(t))i=[{name:t}];else if(o(t))i=t.map((function(t){return u(t)?{name:t}:t}));else{i=[t]}var n=!0;void 0!==e&&null!==this.getPaneById(e)||(e=Kt.CANDLE,n=!1);var r=this._chartStore.getOverlayStore().addInstances(i,e,n);return o(t)?r:r[0]},e.prototype.getOverlayById=function(t){return this._chartStore.getOverlayStore().getInstanceById(t)},e.prototype.overrideOverlay=function(t){this._chartStore.getOverlayStore().override(t)},e.prototype.removeOverlay=function(t){var e;void 0!==t&&(e=u(t)?{id:t}:t),this._chartStore.getOverlayStore().removeInstance(e)},e.prototype.setPaneOptions=function(t){this._setPaneOptions(t,!1)},e.prototype.setZoomEnabled=function(t){this._chartStore.getTimeScaleStore().setZoomEnabled(t)},e.prototype.isZoomEnabled=function(){return this._chartStore.getTimeScaleStore().getZoomEnabled()},e.prototype.setScrollEnabled=function(t){this._chartStore.getTimeScaleStore().setScrollEnabled(t)},e.prototype.isScrollEnabled=function(){return this._chartStore.getTimeScaleStore().getScrollEnabled()},e.prototype.scrollByDistance=function(t,e){var i=void 0===e||0>e?0:e,o=this._chartStore.getTimeScaleStore();if(i>0){o.startScroll();var n=(new Date).getTime(),r=function(){var e=((new Date).getTime()-n)/i,a=e>=1;o.scroll(a?t:t*e),a||requestAnimationFrame(r)};r()}else o.startScroll(),o.scroll(t)},e.prototype.scrollToRealTime=function(t){var e=this._chartStore.getTimeScaleStore(),i=e.getBarSpace().bar,o=e.getOffsetRightBarCount()-e.getInitialOffsetRightDistance()/i;this.scrollByDistance(o*i,t)},e.prototype.scrollToDataIndex=function(t,e){var i=this._chartStore.getTimeScaleStore(),o=(i.getOffsetRightBarCount()+(this.getDataList().length-1-t))*i.getBarSpace().bar;this.scrollByDistance(o,e)},e.prototype.scrollToTimestamp=function(t,e){var i=Z(this.getDataList(),\\"timestamp\\",t);this.scrollToDataIndex(i,e)},e.prototype.zoomAtCoordinate=function(t,e,i){var o=void 0===i||0>i?0:i,n=this._chartStore.getTimeScaleStore();if(o>0){var r=n.getBarSpace().bar,a=r*t-r,s=(new Date).getTime(),l=function(){var t=((new Date).getTime()-s)/o,i=t>=1;n.zoom((i?a:a*t)/r,e),i||requestAnimationFrame(l)};l()}else n.zoom(t,e)},e.prototype.zoomAtDataIndex=function(t,e,i){var o=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(e);this.zoomAtCoordinate(t,{x:o,y:0},i)},e.prototype.zoomAtTimestamp=function(t,e,i){var o=Z(this.getDataList(),\\"timestamp\\",e);this.zoomAtDataIndex(t,o,i)},e.prototype.convertToPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e={},i=t.dataIndex;if(void 0!==t.timestamp&&(i=c.timestampToDataIndex(t.timestamp)),void 0!==i&&(e.x=null==p?void 0:p.convertToPixel(i)),void 0!==t.value){var o=null==v?void 0:v.convertToPixel(t.value);e.y=s?h.top+o:o}return e}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.convertFromPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e,i={};if(void 0!==t.x){var o=p.convertFromPixel(t.x);i.dataIndex=o,i.timestamp=null!==(e=c.dataIndexToTimestamp(o))&&void 0!==e?e:void 0}void 0!==t.y&&(i.value=v.convertFromPixel(s?t.y-h.top:t.y));return i}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.executeAction=function(e,i){var o;if(e===t.ActionType.OnCrosshairChange){var n=k({},i);n.paneId=null!==(o=n.paneId)&&void 0!==o?o:Kt.CANDLE,this._chartStore.getTooltipStore().setCrosshair(n)}},e.prototype.subscribeAction=function(t,e){this._chartStore.getActionStore().subscribe(t,e)},e.prototype.unsubscribeAction=function(t,e){this._chartStore.getActionStore().unsubscribe(t,e)},e.prototype.getConvertPictureUrl=function(t,e,i){var o=this._chartContainer.offsetWidth,n=this._chartContainer.offsetHeight,r=Y(\\"canvas\\",{width:\\"\\".concat(o,\\"px\\"),height:\\"\\".concat(n,\\"px\\"),boxSizing:\\"border-box\\"}),a=r.getContext(\\"2d\\"),s=X(r);r.width=o*s,r.height=n*s,a.scale(s,s),a.fillStyle=null!=i?i:\\"#FFFFFF\\",a.fillRect(0,0,o,n);var l=null!=t&&t;this._panes.forEach((function(t){var e=t.getBounding();a.drawImage(t.getImage(l),0,e.top,o,e.height)}));var u=this._xAxisPane.getBounding();return a.drawImage(this._xAxisPane.getImage(l),0,u.top,o,u.height),r.toDataURL(\\"image/\\".concat(null!=e?e:\\"jpeg\\"))},e.prototype.resize=function(){this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.destroy=function(){this._chartEvent.destroy(),this._panes.forEach((function(t){t.destroy()})),this._panes.clear(),this._xAxisPane.destroy(),this._container.removeChild(this._chartContainer)},e}(),li=new Map,ui=1;var ci={clone:i,merge:e,isString:u,isNumber:a,isValid:s,isObject:r,isArray:o,isFunction:n,isBoolean:l,formatValue:C,formatPrecision:T,formatBigNumber:w,formatDate:b,formatThousands:E,calcTextWidth:j,getLinearSlopeIntercept:kt,getLinearYFromSlopeIntercept:Pt,getLinearYFromCoordinates:Mt,checkCoordinateOnArc:xe,checkCoordinateOnCircle:re,checkCoordinateOnLine:Dt,checkCoordinateOnPolygon:le,checkCoordinateOnRect:de,checkCoordinateOnText:fe,drawArc:Se,drawCircle:ae,drawLine:At,drawPolygon:ue,drawRect:pe,drawText:me,drawRectText:_e};t.dispose=function(t){var e,i,o;if(t instanceof si)o=t.id;else{var n=void 0;o=null!==(e=null==(n=u(t)?document.getElementById(t):t)?void 0:n.getAttribute(\\"k-line-chart-id\\"))&&void 0!==e?e:null}null!==o&&(null===(i=li.get(o))||void 0===i||i.destroy(),li.delete(o))},t.getFigureClass=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null},t.getOverlayClass=function(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null},t.getSupportedFigures=function(){return Object.keys(be)},t.getSupportedIndicators=function(){return Object.keys(ht)},t.getSupportedLocales=function(){return Object.keys(Be)},t.getSupportedOverlays=function(){return Object.keys(Vt)},t.init=function(t,e){var i;if(null===(i=u(t)?document.getElementById(t):t))return null;var o=li.get(i.id);if(void 0!==o)return o;var n=\\"k_line_chart_\\".concat(ui++);return(o=new si(i,e)).id=n,i.setAttribute(\\"k-line-chart-id\\",n),li.set(n,o),o},t.registerFigure=function(t){be[t.name]=wt.extend(t)},t.registerIndicator=function(t){ht[t.name]=nt.extend(t)},t.registerLocale=function(t,e){Be[t]=k(k({},Be[t]),e)},t.registerOverlay=function(t){Vt[t.name]=xt.extend(t)},t.registerStyles=function(t,e){Jt[t]=e},t.utils=ci,t.version=function(){return\\"9.5.4\\"}}));\\n"]]},"headers":[],"relativePath":"sample/axis.md","filePath":"sample/axis.md","lastUpdated":1698784282000}`),d={name:"sample/axis.md"},E=Object.assign(d,{setup(y){return(v,g)=>(i(),r("div",null,[u,l(n,{js:t(s),html:t(o),css:t(a),title:"坐标轴"},null,8,["js","html","css"]),h]))}});export{F as __pageData,E as default}; diff --git a/assets/sample_axis.md.b22b37e6.lean.js b/assets/sample_axis.md.b22b37e6.lean.js new file mode 100644 index 000000000..7a04bd7fb --- /dev/null +++ b/assets/sample_axis.md.b22b37e6.lean.js @@ -0,0 +1 @@ +import{C as n}from"./chunks/Chart.68e0a929.js";import{j as s,h as o,c as a}from"./chunks/index.3fa44176.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"坐标轴",tabindex:"-1"},[p("坐标轴 "),e("a",{class:"header-anchor",href:"#坐标轴","aria-label":'Permalink to "坐标轴"'},"​")],-1),h=c("",1),F=JSON.parse(`{"title":"坐标轴","description":"","frontmatter":{"aside":false,"editLink":false,"head":[["script",{},"/**\\n * @license\\n * KLineChart v9.5.4\\n * Copyright (c) 2019 lihu.\\n * Licensed under Apache License 2.0 https://www.apache.org/licenses/LICENSE-2.0\\n */\\n!function(t,e){\\"object\\"==typeof exports&&\\"undefined\\"!=typeof module?e(exports):\\"function\\"==typeof define&&define.amd?define([\\"exports\\"],e):e((t=\\"undefined\\"!=typeof globalThis?globalThis:t||self).klinecharts={})}(this,(function(t){\\"use strict\\";function e(t,i){if(r(t)||r(i))for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var a=t[n],l=i[n];r(l)&&r(a)&&!o(l)&&!o(a)?e(a,l):s(i[n])&&(t[n]=i[n])}}function i(t){if(!r(t)||!o(t))return t;var e;for(var n in e=o(t)?[]:{},t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=t[n];e[n]=r(a)?i(a):a}return e}function o(t){return\\"[object Array]\\"===Object.prototype.toString.call(t)}function n(t){return\\"function\\"==typeof t}function r(t){return\\"object\\"==typeof t}function a(t){return\\"number\\"==typeof t&&!isNaN(t)}function s(t){return null!=t}function l(t){return\\"boolean\\"==typeof t}function u(t){return\\"string\\"==typeof t}var c,h,d,p,v,g,f,m,y,_,x=/\\\\\\\\(\\\\\\\\)?/g,S=RegExp(\\"[^.[\\\\\\\\]]+|\\\\\\\\[(?:([^\\\\\\"'][^[]*)|([\\\\\\"'])((?:(?!\\\\\\\\2)[^\\\\\\\\\\\\\\\\]|\\\\\\\\\\\\\\\\.)*?)\\\\\\\\2)\\\\\\\\]|(?=(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\])(?:\\\\\\\\.|\\\\\\\\[\\\\\\\\]|$))\\",\\"g\\");function C(t,e,i){if(s(t)){var o=[];e.replace(S,(function(t){for(var e=[],i=1;arguments.length>i;i++)e[i-1]=arguments[i];var n=t;return s(e[1])?n=e[2].replace(x,\\"$1\\"):s(e[0])&&(n=e[0].trim()),o.push(n),\\"\\"}));for(var n=t,r=0,a=o.length;s(n)&&a>r;)n=null==n?void 0:n[o[r++]];return s(n)?n:null!=i?i:\\"--\\"}return null!=i?i:\\"--\\"}function b(t,e,i){var o=t.format(new Date(e)).split(\\", \\"),n=o[0].split(\\"/\\"),r=o[1].split(\\":\\"),a={YYYY:n[2],MM:n[0],DD:n[1],HH:\\"24\\"===r[0]?\\"00\\":r[0],mm:r[1],ss:r[2]};return i.replace(/YYYY|MM|DD|HH|mm|ss/g,(function(t){return a[t]}))}function T(t,e){var i=+t;return a(i)?i.toFixed(null!=e?e:2):\\"\\".concat(t)}function w(t){var e=+t;if(a(e)){if(e>1e9)return\\"\\".concat(+(e/1e9).toFixed(3),\\"B\\");if(e>1e6)return\\"\\".concat(+(e/1e6).toFixed(3),\\"M\\");if(e>1e3)return\\"\\".concat(+(e/1e3).toFixed(3),\\"K\\")}return\\"\\".concat(t)}function E(t,e){var i=\\"\\".concat(t);if(0===e.length)return i;if(i.includes(\\".\\")){var o=i.split(\\".\\");return\\"\\".concat(o[0].replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)})),\\".\\").concat(o[1])}return i.replace(/(\\\\d)(?=(\\\\d{3})+$)/g,(function(t){return\\"\\".concat(t).concat(e)}))}t.LineType=void 0,(c=t.LineType||(t.LineType={})).Dashed=\\"dashed\\",c.Solid=\\"solid\\",t.PolygonType=void 0,(h=t.PolygonType||(t.PolygonType={})).Stroke=\\"stroke\\",h.Fill=\\"fill\\",h.StrokeFill=\\"stroke_fill\\",t.TooltipShowRule=void 0,(d=t.TooltipShowRule||(t.TooltipShowRule={})).Always=\\"always\\",d.FollowCross=\\"follow_cross\\",d.None=\\"none\\",t.TooltipShowType=void 0,(p=t.TooltipShowType||(t.TooltipShowType={})).Standard=\\"standard\\",p.Rect=\\"rect\\",t.TooltipIconPosition=void 0,(v=t.TooltipIconPosition||(t.TooltipIconPosition={})).Left=\\"left\\",v.Middle=\\"middle\\",v.Right=\\"right\\",function(t){t.Fixed=\\"fixed\\",t.Pointer=\\"pointer\\"}(g||(g={})),t.CandleType=void 0,(f=t.CandleType||(t.CandleType={})).CandleSolid=\\"candle_solid\\",f.CandleStroke=\\"candle_stroke\\",f.CandleUpStroke=\\"candle_up_stroke\\",f.CandleDownStroke=\\"candle_down_stroke\\",f.Ohlc=\\"ohlc\\",f.Area=\\"area\\",t.YAxisPosition=void 0,(m=t.YAxisPosition||(t.YAxisPosition={})).Left=\\"left\\",m.Right=\\"right\\",t.YAxisType=void 0,(y=t.YAxisType||(t.YAxisType={})).Normal=\\"normal\\",y.Percentage=\\"percentage\\",y.Log=\\"log\\",t.FormatDateType=void 0,(_=t.FormatDateType||(t.FormatDateType={}))[_.Tooltip=0]=\\"Tooltip\\",_[_.Crosshair=1]=\\"Crosshair\\",_[_.XAxis=2]=\\"XAxis\\";var I=\\"en-US\\",D=function(t,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},D(t,e)};function P(t,e){if(\\"function\\"!=typeof e&&null!==e)throw new TypeError(\\"Class extends value \\"+e+\\" is not a constructor or null\\");function i(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var M,k=function(){return k=Object.assign||function(t){for(var e,i=1,o=arguments.length;o>i;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},k.apply(this,arguments)};function A(t,e,i,o){return new(i||(i=Promise))((function(n,r){function a(t){try{l(o.next(t))}catch(t){r(t)}}function s(t){try{l(o.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))}function F(t,e){var i,o,n,r,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},\\"function\\"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(l){return function(s){if(i)throw new TypeError(\\"Generator is already executing.\\");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(i=1,o&&(n=2&s[0]?o.return:s[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&n[3]>s[1])){a.label=s[1];break}if(6===s[0]&&n[1]>a.label){a.label=n[1],n=s;break}if(n&&n[2]>a.label){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],o=0}finally{i=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function L(t){var e=\\"function\\"==typeof Symbol&&Symbol.iterator,i=e&&t[e],o=0;if(i)return i.call(t);if(t&&\\"number\\"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?\\"Object is not iterable.\\":\\"Symbol.iterator is not defined.\\")}function R(t,e){var i=\\"function\\"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,n,r=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return a}function B(t,e,i){if(i||2===arguments.length)for(var o,n=0,r=e.length;r>n;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}t.ActionType=void 0,(M=t.ActionType||(t.ActionType={})).OnZoom=\\"onZoom\\",M.OnScroll=\\"onScroll\\",M.OnVisibleRangeChange=\\"onVisibleRangeChange\\",M.OnTooltipIconClick=\\"onTooltipIconClick\\",M.OnCrosshairChange=\\"onCrosshairChange\\",M.OnCandleBarClick=\\"onCandleBarClick\\",M.OnPaneDrag=\\"onPaneDrag\\";var O,V=function(){function t(){this._callbacks=[]}return t.prototype.subscribe=function(t){var e;0>(null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1)&&this._callbacks.push(t)},t.prototype.unsubscribe=function(t){var e;if(void 0!==t){var i=null!==(e=this._callbacks.indexOf(t))&&void 0!==e?e:-1;i>-1&&this._callbacks.splice(i,1)}else this._callbacks=[]},t.prototype.execute=function(t){this._callbacks.forEach((function(e){e(t)}))},t.prototype.isEmpty=function(){return 0===this._callbacks.length},t}(),N=1,W=(new Date).getTime();function z(t){var e=(new Date).getTime();return e===W?++N:N=1,W=e,\\"\\".concat(null!=t?t:\\"\\").concat(e,\\"_\\").concat(N)}function Y(t,e){var i,o=document.createElement(t),n=null!=e?e:{};for(var r in n)o.style[r]=null!==(i=n[r])&&void 0!==i?i:\\"\\";return o}function X(t){var e,i,o;return Math.ceil(null!==(o=null===(i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0===i?void 0:i.devicePixelRatio)&&void 0!==o?o:2)}function H(t,e,i){return\\"\\".concat(null!=e?e:\\"normal\\",\\" \\").concat(null!=t?t:12,\\"px \\").concat(null!=i?i:\\"Helvetica Neue\\")}function j(t,e,i,o){if(void 0===O){var n=document.createElement(\\"canvas\\"),r=X(n);(O=n.getContext(\\"2d\\")).scale(r,r)}return O.font=H(e,i,o),Math.round(O.measureText(t).width)}function Z(t,e,i){var o=0,n=0;for(n=t.length-1;o!==n;){var r=Math.floor((n+o)/2),a=n-o,s=t[r][e];if(i===t[o][e])return o;if(i===t[n][e])return n;if(i===s)return r;if(i>s?o=r:n=r,2>=a)break}return o}function G(t,e){return null==e&&(e=10),+(+t).toFixed(e=Math.min(Math.max(0,e),20))}function K(t,e,i){var o=[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER];return t.forEach((function(t){var n,r;o[0]=Math.max(null!==(n=t[e])&&void 0!==n?n:t,o[0]),o[1]=Math.min(null!==(r=t[i])&&void 0!==r?r:t,o[1])})),o}function U(t){return Math.log(t)/Math.log(10)}function q(t){return Math.pow(10,t)}var $,J=1,Q=50,tt=6,et=50,it=function(){function e(t){this._dateTimeFormat=this._buildDateTimeFormat(),this._zoomEnabled=!0,this._scrollEnabled=!0,this._loading=!0,this._loadMoreCallback=null,this._more=!0,this._totalBarSpace=0,this._barSpace=tt,this._offsetRightDistance=et,this._startScrollOffsetRightBarCount=0,this._minVisibleBarCount={left:2,right:2},this._visibleRange={from:0,to:0,realFrom:0,realTo:0},this._chartStore=t,this._gapBarSpace=this._calcGapBarSpace(),this._offsetRightBarCount=this._offsetRightDistance/this._barSpace}return e.prototype._calcGapBarSpace=function(){return Math.max(1,Math.min(Math.floor(.82*this._barSpace),Math.floor(this._barSpace)-1))},e.prototype.adjustVisibleRange=function(){var e,i=this._chartStore.getDataList(),o=i.length,n=this._totalBarSpace/this._barSpace,r=n-Math.min(this._minVisibleBarCount.left,o);this._offsetRightBarCount>r&&(this._offsetRightBarCount=r);var a=-o+Math.min(this._minVisibleBarCount.right,o);a>this._offsetRightBarCount&&(this._offsetRightBarCount=a);var s=Math.round(this._offsetRightBarCount+o+.5);s>o&&(s=o);var l=Math.round(s-n)-1;if(0>l&&(l=0),this._visibleRange={from:l,to:s,realFrom:this._offsetRightBarCount>0?Math.round(o+this._offsetRightBarCount-n)-1:l,realTo:s},this._chartStore.getActionStore().execute(t.ActionType.OnVisibleRangeChange,this._visibleRange),this._chartStore.adjustVisibleDataList(),0===l&&this._more&&!this._loading&&null!==this._loadMoreCallback){this._loading=!0;var u=i[0];this._loadMoreCallback(null!==(e=null==u?void 0:u.timestamp)&&void 0!==e?e:null)}},e.prototype.setMore=function(t){return this._more=t,this},e.prototype.setLoading=function(t){return this._loading=t,this},e.prototype.getDateTimeFormat=function(){return this._dateTimeFormat},e.prototype._buildDateTimeFormat=function(t){var e={hour12:!1,year:\\"numeric\\",month:\\"2-digit\\",day:\\"2-digit\\",hour:\\"2-digit\\",minute:\\"2-digit\\",second:\\"2-digit\\"};void 0!==t&&(e.timeZone=t);var i=null;try{i=new Intl.DateTimeFormat(\\"en\\",e)}catch(t){}return i},e.prototype.setTimezone=function(t){var e=this._buildDateTimeFormat(t);null!==e&&(this._dateTimeFormat=e)},e.prototype.getTimezone=function(){return this._dateTimeFormat.resolvedOptions().timeZone},e.prototype.getBarSpace=function(){return{bar:this._barSpace,halfBar:this._barSpace/2,gapBar:this._gapBarSpace,halfGapBar:this._gapBarSpace/2}},e.prototype.setBarSpace=function(t,e){J>t||t>Q||this._barSpace===t||(this._barSpace=t,this._gapBarSpace=this._calcGapBarSpace(),null==e||e(),this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0))},e.prototype.setTotalBarSpace=function(t){return this._totalBarSpace!==t&&(this._totalBarSpace=t,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0)),this},e.prototype.setOffsetRightDistance=function(t,e){return this._offsetRightDistance=t,this._offsetRightBarCount=t/this._barSpace,null!=e&&e&&(this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)),this},e.prototype.resetOffsetRightDistance=function(){this.setOffsetRightDistance(this._offsetRightDistance)},e.prototype.getInitialOffsetRightDistance=function(){return this._offsetRightDistance},e.prototype.getOffsetRightDistance=function(){return Math.max(0,this._offsetRightBarCount*this._barSpace)},e.prototype.getOffsetRightBarCount=function(){return this._offsetRightBarCount},e.prototype.setOffsetRightBarCount=function(t){return this._offsetRightBarCount=t,this},e.prototype.setLeftMinVisibleBarCount=function(t){return this._minVisibleBarCount.left=t,this},e.prototype.setRightMinVisibleBarCount=function(t){return this._minVisibleBarCount.right=t,this},e.prototype.getVisibleRange=function(){return this._visibleRange},e.prototype.startScroll=function(){this._startScrollOffsetRightBarCount=this._offsetRightBarCount},e.prototype.scroll=function(e){if(this._scrollEnabled){var i=e/this._barSpace;this._chartStore.getActionStore().execute(t.ActionType.OnScroll),this._offsetRightBarCount=this._startScrollOffsetRightBarCount-i,this.adjustVisibleRange(),this._chartStore.getTooltipStore().recalculateCrosshair(!0),this._chartStore.getChart().adjustPaneViewport(!1,!0,!0,!0)}},e.prototype.getDataByDataIndex=function(t){var e;return null!==(e=this._chartStore.getDataList()[t])&&void 0!==e?e:null},e.prototype.coordinateToFloatIndex=function(t){var e=this._chartStore.getDataList().length;return Math.round(1e6*(e+this._offsetRightBarCount-(this._totalBarSpace-t)/this._barSpace))/1e6},e.prototype.dataIndexToTimestamp=function(t){var e,i=this.getDataByDataIndex(t);return null!==(e=null==i?void 0:i.timestamp)&&void 0!==e?e:null},e.prototype.timestampToDataIndex=function(t){var e=this._chartStore.getDataList();return 0===e.length?0:Z(e,\\"timestamp\\",t)},e.prototype.dataIndexToCoordinate=function(t){var e=this._chartStore.getDataList().length;return this._totalBarSpace-(e+this._offsetRightBarCount-t-.5)*this._barSpace},e.prototype.coordinateToDataIndex=function(t){return Math.ceil(this.coordinateToFloatIndex(t))-1},e.prototype.zoom=function(e,i){var o,n=this;if(this._zoomEnabled){if(void 0===(null==i?void 0:i.x)){var r=this._chartStore.getTooltipStore().getCrosshair();i={x:null!==(o=null==r?void 0:r.x)&&void 0!==o?o:this._totalBarSpace/2}}this._chartStore.getActionStore().execute(t.ActionType.OnZoom);var a=this.coordinateToFloatIndex(i.x);this.setBarSpace(this._barSpace+e*(this._barSpace/10),(function(){n._offsetRightBarCount+=a-n.coordinateToFloatIndex(null==i?void 0:i.x)}))}},e.prototype.setZoomEnabled=function(t){return this._zoomEnabled=t,this},e.prototype.getZoomEnabled=function(){return this._zoomEnabled},e.prototype.setScrollEnabled=function(t){return this._scrollEnabled=t,this},e.prototype.getScrollEnabled=function(){return this._scrollEnabled},e.prototype.setLoadMoreCallback=function(t){return this._loadMoreCallback=t,this},e.prototype.clear=function(){this._more=!0,this._loading=!0,this._visibleRange={from:0,to:0,realFrom:0,realTo:0}},e}();function ot(t,e,i,o,n){var r,a=e.result,l=e.figures,u=e.styles,c=C(u,\\"circles\\",o.circles),h=c.length,d=C(u,\\"bars\\",o.bars),p=d.length,v=C(u,\\"lines\\",o.lines),g=v.length,f=0,m=0,y=0;l.forEach((function(l){var u;switch(l.type){case\\"circle\\":var _=c[f%h];r=k(k({},_),{color:_.noChangeColor}),f++;break;case\\"bar\\":var x=d[m%p];r=k(k({},x),{color:x.noChangeColor}),m++;break;case\\"line\\":r=v[y%g],y++}if(s(r)){var S=null===(u=l.styles)||void 0===u?void 0:u.call(l,{prev:{kLineData:t[i-1],indicatorData:a[i-1]},current:{kLineData:t[i],indicatorData:a[i]},next:{kLineData:t[i+1],indicatorData:a[i+1]}},e,o);n(l,k(k({},r),S))}}))}t.IndicatorSeries=void 0,($=t.IndicatorSeries||(t.IndicatorSeries={})).Normal=\\"normal\\",$.Price=\\"price\\",$.Volume=\\"volume\\";var nt=function(){function i(e){this.result=[],this._precisionFlag=!1;var i=e.name,o=e.shortName,n=e.series,r=e.calcParams,a=e.figures,s=e.precision,l=e.shouldOhlc,u=e.shouldFormatBigNumber,c=e.visible,h=e.minValue,d=e.maxValue,p=e.styles,v=e.extendData,g=e.regenerateFigures,f=e.createTooltipDataSource,m=e.draw;this.name=i,this.shortName=null!=o?o:i,this.series=null!=n?n:t.IndicatorSeries.Normal,this.precision=null!=s?s:4,this.calcParams=null!=r?r:[],this.figures=null!=a?a:[],this.shouldOhlc=null!=l&&l,this.shouldFormatBigNumber=null!=u&&u,this.visible=null==c||c,this.minValue=null!=h?h:null,this.maxValue=null!=d?d:null,this.styles=null!=p?p:{},this.extendData=v,this.regenerateFigures=null!=g?g:null,this.createTooltipDataSource=null!=f?f:null,this.draw=null!=m?m:null}return i.prototype.setShortName=function(t){return this.shortName!==t&&(this.shortName=t,!0)},i.prototype.setSeries=function(t){return this.series!==t&&(this.series=t,!0)},i.prototype.setPrecision=function(t,e){var i=null!=e&&e,o=Math.floor(t);return!(o===this.precision||0>t||i&&(!i||this._precisionFlag))&&(this.precision=o,i||(this._precisionFlag=!0),!0)},i.prototype.setCalcParams=function(t){var e,i;return this.calcParams=t,this.figures=null!==(i=null===(e=this.regenerateFigures)||void 0===e?void 0:e.call(this,t))&&void 0!==i?i:this.figures,!0},i.prototype.setShouldOhlc=function(t){return this.shouldOhlc!==t&&(this.shouldOhlc=t,!0)},i.prototype.setShouldFormatBigNumber=function(t){return this.shouldFormatBigNumber!==t&&(this.shouldFormatBigNumber=t,!0)},i.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},i.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},i.prototype.setExtendData=function(t){return this.extendData!==t&&(this.extendData=t,!0)},i.prototype.setFigures=function(t){return this.figures!==t&&(this.figures=t,!0)},i.prototype.setMinValue=function(t){return this.minValue!==t&&(this.minValue=t,!0)},i.prototype.setMaxValue=function(t){return this.maxValue!==t&&(this.maxValue=t,!0)},i.prototype.setRegenerateFigures=function(t){return this.regenerateFigures!==t&&(this.regenerateFigures=t,!0)},i.prototype.setCreateTooltipDataSource=function(t){return this.createTooltipDataSource!==t&&(this.createTooltipDataSource=t,!0)},i.prototype.setDraw=function(t){return this.draw!==t&&(this.draw=t,!0)},i.prototype.calcIndicator=function(t){return A(this,void 0,void 0,(function(){var e;return F(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.calc(t,this)];case 1:return e=i.sent(),this.result=e,[2,!0];case 2:return i.sent(),[2,!1];case 3:return[2]}}))}))},i.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i.prototype.calc=function(e,i){return t.calc(e,i)},i}(i)},i}(),rt={name:\\"AVP\\",shortName:\\"AVP\\",series:t.IndicatorSeries.Price,precision:2,figures:[{key:\\"avp\\",title:\\"AVP: \\",type:\\"line\\"}],calc:function(t){var e=0,i=0;return t.map((function(t){var o,n,r={},a=null!==(o=null==t?void 0:t.turnover)&&void 0!==o?o:0,s=null!==(n=null==t?void 0:t.volume)&&void 0!==n?n:0;return e+=a,0!==(i+=s)&&(r.avp=e/i),r}))}};var at={name:\\"EMA\\",shortName:\\"EMA\\",series:t.IndicatorSeries.Price,calcParams:[6,12,20],precision:2,shouldOhlc:!0,figures:[{key:\\"ema1\\",title:\\"EMA6: \\",type:\\"line\\"},{key:\\"ema2\\",title:\\"EMA12: \\",type:\\"line\\"},{key:\\"ema3\\",title:\\"EMA20: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ema\\".concat(e+1),title:\\"EMA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=0,r=[];return t.map((function(t,e){var a={},s=t.close;return n+=s,i.forEach((function(t,i){t-1>e||(r[i]=e>t-1?(2*s+(t-1)*r[i])/(t+1):n/t,a[o[i].key]=r[i])})),a}))}},st={name:\\"MA\\",shortName:\\"MA\\",series:t.IndicatorSeries.Price,calcParams:[5,10,30,60],precision:2,shouldOhlc:!0,figures:[{key:\\"ma5\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma10\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma30\\",title:\\"MA30: \\",type:\\"line\\"},{key:\\"ma60\\",title:\\"MA60: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,i){var l;n[i]=(null!==(l=n[i])&&void 0!==l?l:0)+s,e-1>r||(a[o[i].key]=n[i]/e,n[i]-=t[r-(e-1)].close)})),a}))}},lt={name:\\"RSI\\",shortName:\\"RSI\\",calcParams:[6,12,24],figures:[{key:\\"rsi1\\",title:\\"RSI1: \\",type:\\"line\\"},{key:\\"rsi2\\",title:\\"RSI2: \\",type:\\"line\\"},{key:\\"rsi3\\",title:\\"RSI3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){var i=e+1;return{key:\\"rsi\\".concat(i),title:\\"RSI\\".concat(i,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[],r=[];return t.map((function(e,a){var s,l={},u=(null!==(s=t[a-1])&&void 0!==s?s:e).close,c=e.close-u;return i.forEach((function(e,i){var s,u,h;if(c>0?n[i]=(null!==(s=n[i])&&void 0!==s?s:0)+c:r[i]=(null!==(u=r[i])&&void 0!==u?u:0)+Math.abs(c),a>=e-1){l[o[i].key]=0!==r[i]?100-100/(1+n[i]/r[i]):0;var d=t[a-(e-1)],p=null!==(h=t[a-e])&&void 0!==h?h:d,v=d.close-p.close;v>0?n[i]-=v:r[i]-=Math.abs(v)}})),l}))}},ut={name:\\"VOL\\",shortName:\\"VOL\\",series:t.IndicatorSeries.Volume,calcParams:[5,10,20],shouldFormatBigNumber:!0,precision:0,minValue:0,figures:[{key:\\"ma1\\",title:\\"MA5: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA10: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA20: \\",type:\\"line\\"},{key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}],regenerateFigures:function(t){var e=t.map((function(t,e){return{key:\\"ma\\".concat(e+1),title:\\"MA\\".concat(t,\\": \\"),type:\\"line\\"}}));return e.push({key:\\"volume\\",title:\\"VOLUME: \\",type:\\"bar\\",baseValue:0,styles:function(t,e,i){var o=t.current.kLineData;return{color:o.close>o.open?C(e.styles,\\"bars[0].upColor\\",i.bars[0].upColor):o.open>o.close?C(e.styles,\\"bars[0].downColor\\",i.bars[0].downColor):C(e.styles,\\"bars[0].noChangeColor\\",i.bars[0].noChangeColor)}}}),e},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a,s=null!==(a=e.volume)&&void 0!==a?a:0,l={volume:s};return i.forEach((function(e,i){var a,u;n[i]=(null!==(a=n[i])&&void 0!==a?a:0)+s,e-1>r||(l[o[i].key]=n[i]/e,n[i]-=null!==(u=t[r-(e-1)].volume)&&void 0!==u?u:0)})),l}))}},ct={name:\\"WR\\",shortName:\\"WR\\",calcParams:[6,10,14],figures:[{key:\\"wr1\\",title:\\"WR1: \\",type:\\"line\\"},{key:\\"wr2\\",title:\\"WR2: \\",type:\\"line\\"},{key:\\"wr3\\",title:\\"WR3: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"wr\\".concat(e+1),title:\\"WR\\".concat(e+1,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures;return t.map((function(e,n){var r={},a=e.close;return i.forEach((function(e,i){var s=e-1;if(n>=s){var l=K(t.slice(n-s,n+1),\\"high\\",\\"low\\"),u=l[0],c=u-l[1];r[o[i].key]=0===c?0:(a-u)/c*100}})),r}))}},ht={},dt=[rt,{name:\\"AO\\",shortName:\\"AO\\",calcParams:[5,34],figures:[{key:\\"ao\\",title:\\"AO: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.ao)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.ao)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return{color:l=c>u?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor),style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,borderColor:l}}}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=0;return t.map((function(e,l){var u,c={},h=(e.low+e.high)/2;(n+=h,r+=h,ll||(c.ao=a-s),c}))}},{name:\\"BIAS\\",shortName:\\"BIAS\\",calcParams:[6,12,24],figures:[{key:\\"bias1\\",title:\\"BIAS6: \\",type:\\"line\\"},{key:\\"bias2\\",title:\\"BIAS12: \\",type:\\"line\\"},{key:\\"bias3\\",title:\\"BIAS24: \\",type:\\"line\\"}],regenerateFigures:function(t){return t.map((function(t,e){return{key:\\"bias\\".concat(e+1),title:\\"BIAS\\".concat(t,\\": \\"),type:\\"line\\"}}))},calc:function(t,e){var i=e.calcParams,o=e.figures,n=[];return t.map((function(e,r){var a={},s=e.close;return i.forEach((function(e,l){var u;if(n[l]=(null!==(u=n[l])&&void 0!==u?u:0)+s,r>=e-1){var c=n[l]/i[l];a[o[l].key]=(s-c)/c*100,n[l]-=t[r-(e-1)].close}})),a}))}},{name:\\"BOLL\\",shortName:\\"BOLL\\",series:t.IndicatorSeries.Price,calcParams:[20,2],precision:2,shouldOhlc:!0,figures:[{key:\\"up\\",title:\\"UP: \\",type:\\"line\\"},{key:\\"mid\\",title:\\"MID: \\",type:\\"line\\"},{key:\\"dn\\",title:\\"DN: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0;return t.map((function(e,r){var a={};if(n+=e.close,r>=o){a.mid=n/i[0];var s=function(t,e){var i=t.length,o=0;return t.forEach((function(t){var i=t.close-e;o+=i*i})),Math.sqrt((o=Math.abs(o))/i)}(t.slice(r-o,r+1),a.mid);a.up=a.mid+i[1]*s,a.dn=a.mid-i[1]*s,n-=t[r-o].close}return a}))}},{name:\\"BRAR\\",shortName:\\"BRAR\\",calcParams:[26],figures:[{key:\\"br\\",title:\\"BR: \\",type:\\"line\\"},{key:\\"ar\\",title:\\"AR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0;return t.map((function(e,s){var l,u,c={},h=e.high,d=e.low,p=e.open,v=(null!==(l=t[s-1])&&void 0!==l?l:e).close;if(r+=h-p,a+=p-d,o+=h-v,n+=v-d,s>=i[0]-1){c.ar=0!==a?r/a*100:0,c.br=0!==n?o/n*100:0;var g=t[s-(i[0]-1)],f=g.high,m=g.low,y=g.open,_=(null!==(u=t[s-i[0]])&&void 0!==u?u:t[s-(i[0]-1)]).close;o-=f-_,n-=_-m,r-=f-y,a-=y-m}return c}))}},{name:\\"BBI\\",shortName:\\"BBI\\",series:t.IndicatorSeries.Price,precision:2,calcParams:[3,6,12,24],shouldOhlc:!0,figures:[{key:\\"bbi\\",title:\\"BBI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max.apply(Math,B([],R(i),!1)),n=[],r=[];return t.map((function(e,a){var s={},l=e.close;if(i.forEach((function(e,i){var o;n[i]=(null!==(o=n[i])&&void 0!==o?o:0)+l,e-1>a||(r[i]=n[i]/e,n[i]-=t[a-(e-1)].close)})),a>=o-1){var u=0;r.forEach((function(t){u+=t})),s.bbi=u/4}return s}))}},{name:\\"CCI\\",shortName:\\"CCI\\",calcParams:[20],figures:[{key:\\"cci\\",title:\\"CCI: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=i[0]-1,n=0,r=[];return t.map((function(e,a){var s={},l=(e.high+e.low+e.close)/3;if(n+=l,r.push(l),a>=o){var u=n/i[0],c=r.slice(a-o,a+1),h=0;c.forEach((function(t){h+=Math.abs(t-u)}));var d=h/i[0];s.cci=0!==d?(l-u)/d/.015:0,n-=(t[a-o].high+t[a-o].low+t[a-o].close)/3}return s}))}},{name:\\"CR\\",shortName:\\"CR\\",calcParams:[26,10,20,40,60],figures:[{key:\\"cr\\",title:\\"CR: \\",type:\\"line\\"},{key:\\"ma1\\",title:\\"MA1: \\",type:\\"line\\"},{key:\\"ma2\\",title:\\"MA2: \\",type:\\"line\\"},{key:\\"ma3\\",title:\\"MA3: \\",type:\\"line\\"},{key:\\"ma4\\",title:\\"MA4: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.ceil(i[1]/2.5+1),n=Math.ceil(i[2]/2.5+1),r=Math.ceil(i[3]/2.5+1),a=Math.ceil(i[4]/2.5+1),s=0,l=[],u=0,c=[],h=0,d=[],p=0,v=[],g=[];return t.forEach((function(e,f){var m,y,_,x,S,C={},b=null!==(m=t[f-1])&&void 0!==m?m:e,T=(b.high+b.close+b.low+b.open)/4,w=Math.max(0,e.high-T),E=Math.max(0,T-e.low);i[0]-1>f||(C.cr=0!==E?w/E*100:0,s+=C.cr,u+=C.cr,h+=C.cr,p+=C.cr,i[0]+i[1]-2>f||(l.push(s/i[1]),i[0]+i[1]+o-3>f||(C.ma1=l[l.length-1-o]),s-=null!==(y=g[f-(i[1]-1)].cr)&&void 0!==y?y:0),i[0]+i[2]-2>f||(c.push(u/i[2]),i[0]+i[2]+n-3>f||(C.ma2=c[c.length-1-n]),u-=null!==(_=g[f-(i[2]-1)].cr)&&void 0!==_?_:0),i[0]+i[3]-2>f||(d.push(h/i[3]),i[0]+i[3]+r-3>f||(C.ma3=d[d.length-1-r]),h-=null!==(x=g[f-(i[3]-1)].cr)&&void 0!==x?x:0),i[0]+i[4]-2>f||(v.push(p/i[4]),i[0]+i[4]+a-3>f||(C.ma4=v[v.length-1-a]),p-=null!==(S=g[f-(i[4]-1)].cr)&&void 0!==S?S:0)),g.push(C)})),g}},{name:\\"DMA\\",shortName:\\"DMA\\",calcParams:[10,50,10],figures:[{key:\\"dma\\",title:\\"DMA: \\",type:\\"line\\"},{key:\\"ama\\",title:\\"AMA: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=Math.max(i[0],i[1]),n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c={},h=e.close;n+=h,r+=h;var d=0,p=0;if(i[0]-1>l||(d=n/i[0],n-=t[l-(i[0]-1)].close),i[1]-1>l||(p=r/i[1],r-=t[l-(i[1]-1)].close),l>=o-1){var v=d-p;c.dma=v,a+=v,o+i[2]-2>l||(c.ama=a/i[2],a-=null!==(u=s[l-(i[2]-1)].dma)&&void 0!==u?u:0)}s.push(c)})),s}},{name:\\"DMI\\",shortName:\\"DMI\\",calcParams:[14,6],figures:[{key:\\"pdi\\",title:\\"PDI: \\",type:\\"line\\"},{key:\\"mdi\\",title:\\"MDI: \\",type:\\"line\\"},{key:\\"adx\\",title:\\"ADX: \\",type:\\"line\\"},{key:\\"adxr\\",title:\\"ADXR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=0,l=0,u=0,c=0,h=[];return t.forEach((function(e,d){var p,v,g={},f=null!==(p=t[d-1])&&void 0!==p?p:e,m=f.close,y=e.high,_=e.low,x=y-_,S=Math.abs(y-m),C=Math.abs(m-_),b=y-f.high,T=f.low-_,w=Math.max(Math.max(x,S),C),E=b>0&&b>T?b:0,I=T>0&&T>b?T:0;if(o+=w,n+=E,r+=I,d>=i[0]-1){d>i[0]-1?(a=a-a/i[0]+w,s=s-s/i[0]+E,l=l-l/i[0]+I):(a=o,s=n,l=r);var D=0,P=0;0!==a&&(D=100*s/a,P=100*l/a),g.pdi=D,g.mdi=P;var M=0;P+D!==0&&(M=Math.abs(P-D)/(P+D)*100),u+=M,2*i[0]-2>d||(g.adx=c=d>2*i[0]-2?(c*(i[0]-1)+M)/i[0]:u/i[0],2*i[0]+i[1]-3>d||(g.adxr=((null!==(v=h[d-(i[1]-1)].adx)&&void 0!==v?v:0)+c)/2))}h.push(g)})),h}},{name:\\"EMV\\",shortName:\\"EMV\\",calcParams:[14,9],figures:[{key:\\"emv\\",title:\\"EMV: \\",type:\\"line\\"},{key:\\"maEmv\\",title:\\"MAEMV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.map((function(e,r){var a,s={};if(r>0){var l=t[r-1],u=e.high,c=e.low,h=null!==(a=e.volume)&&void 0!==a?a:0,d=(u+c)/2-(l.high+l.low)/2;if(0===h||u-c==0)s.emv=0;else s.emv=d/(h/1e8/(u-c));o+=s.emv,n.push(s.emv),i[0]>r||(s.maEmv=o/i[0],o-=n[r-i[0]])}return s}))}},at,{name:\\"MTM\\",shortName:\\"MTM\\",calcParams:[12,6],figures:[{key:\\"mtm\\",title:\\"MTM: \\",type:\\"line\\"},{key:\\"maMtm\\",title:\\"MAMTM: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=[];return t.forEach((function(e,r){var a,s={};rr||(s.maMtm=o/i[1],o-=null!==(a=n[r-(i[1]-1)].mtm)&&void 0!==a?a:0));n.push(s)})),n}},st,{name:\\"MACD\\",shortName:\\"MACD\\",calcParams:[12,26,9],figures:[{key:\\"dif\\",title:\\"DIF: \\",type:\\"line\\"},{key:\\"dea\\",title:\\"DEA: \\",type:\\"line\\"},{key:\\"macd\\",title:\\"MACD: \\",type:\\"bar\\",baseValue:0,styles:function(e,i,o){var n,r,a,s,l,u=null!==(r=null===(n=e.prev.indicatorData)||void 0===n?void 0:n.macd)&&void 0!==r?r:Number.MIN_SAFE_INTEGER,c=null!==(s=null===(a=e.current.indicatorData)||void 0===a?void 0:a.macd)&&void 0!==s?s:Number.MIN_SAFE_INTEGER;return l=c>0?C(i.styles,\\"bars[0].upColor\\",o.bars[0].upColor):0>c?C(i.styles,\\"bars[0].downColor\\",o.bars[0].downColor):C(i.styles,\\"bars[0].noChangeColor\\",o.bars[0].noChangeColor),{style:c>u?t.PolygonType.Stroke:t.PolygonType.Fill,color:l,borderColor:l}}}],calc:function(t,e){var i,o,n=e.calcParams,r=0,a=0,s=0,l=0,u=Math.max(n[0],n[1]);return t.map((function(t,e){var c={},h=t.close;return r+=h,n[0]-1>e||(i=e>n[0]-1?(2*h+(n[0]-1)*i)/(n[0]+1):r/n[0]),n[1]-1>e||(o=e>n[1]-1?(2*h+(n[1]-1)*o)/(n[1]+1):r/n[1]),u-1>e||(c.dif=a=i-o,s+=a,u+n[2]-2>e||(c.macd=2*(a-(l=e>u+n[2]-2?(2*a+l*(n[2]-1))/(n[2]+1):s/n[2])),c.dea=l)),c}))}},{name:\\"OBV\\",shortName:\\"OBV\\",calcParams:[30],figures:[{key:\\"obv\\",title:\\"OBV: \\",type:\\"line\\"},{key:\\"maObv\\",title:\\"MAOBV: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[];return t.forEach((function(e,a){var s,l,u,c,h=null!==(s=t[a-1])&&void 0!==s?s:e;h.close>e.close?n-=null!==(l=e.volume)&&void 0!==l?l:0:e.close>h.close&&(n+=null!==(u=e.volume)&&void 0!==u?u:0);var d={obv:n};o+=n,i[0]-1>a||(d.maObv=o/i[0],o-=null!==(c=r[a-(i[0]-1)].obv)&&void 0!==c?c:0),r.push(d)})),r}},{name:\\"PVT\\",shortName:\\"PVT\\",figures:[{key:\\"pvt\\",title:\\"PVT: \\",type:\\"line\\"}],calc:function(t){var e=0;return t.map((function(i,o){var n,r,a={},s=null!==(n=i.volume)&&void 0!==n?n:1,l=(null!==(r=t[o-1])&&void 0!==r?r:i).close,u=0,c=l*s;return 0!==c&&(u=(i.close-l)/c),a.pvt=e+=u,a}))}},{name:\\"PSY\\",shortName:\\"PSY\\",calcParams:[12,6],figures:[{key:\\"psy\\",title:\\"PSY: \\",type:\\"line\\"},{key:\\"maPsy\\",title:\\"MAPSY: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=[],a=[];return t.forEach((function(e,s){var l,u,c={},h=(null!==(l=t[s-1])&&void 0!==l?l:e).close,d=e.close-h>0?1:0;r.push(d),o+=d,i[0]-1>s||(c.psy=o/i[0]*100,n+=c.psy,i[0]+i[1]-2>s||(c.maPsy=n/i[1],n-=null!==(u=a[s-(i[1]-1)].psy)&&void 0!==u?u:0),o-=r[s-(i[0]-1)]),a.push(c)})),a}},{name:\\"ROC\\",shortName:\\"ROC\\",calcParams:[12,6],figures:[{key:\\"roc\\",title:\\"ROC: \\",type:\\"line\\"},{key:\\"maRoc\\",title:\\"MAROC: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[],n=0;return t.forEach((function(e,r){var a,s,l={};if(r>=i[0]-1){var u=(null!==(a=t[r-i[0]])&&void 0!==a?a:t[r-(i[0]-1)]).close;l.roc=0!==u?(e.close-u)/u*100:0,n+=l.roc,i[0]-1+i[1]-1>r||(l.maRoc=n/i[1],n-=null!==(s=o[r-(i[1]-1)].roc)&&void 0!==s?s:0)}o.push(l)})),o}},lt,{name:\\"SMA\\",shortName:\\"SMA\\",series:t.IndicatorSeries.Price,calcParams:[12,2],precision:2,figures:[{key:\\"sma\\",title:\\"SMA: \\",type:\\"line\\"}],shouldOhlc:!0,calc:function(t,e){var i=e.calcParams,o=0,n=0;return t.map((function(t,e){var r={},a=t.close;return o+=a,i[0]-1>e||(r.sma=n=e>i[0]-1?(a*i[1]+n*(i[0]-i[1]+1))/(i[0]+1):o/i[0]),r}))}},{name:\\"KDJ\\",shortName:\\"KDJ\\",calcParams:[9,3,3],figures:[{key:\\"k\\",title:\\"K: \\",type:\\"line\\"},{key:\\"d\\",title:\\"D: \\",type:\\"line\\"},{key:\\"j\\",title:\\"J: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=[];return t.forEach((function(e,n){var r,a,s,l,u={},c=e.close;if(n>=i[0]-1){var h=K(t.slice(n-(i[0]-1),n+1),\\"high\\",\\"low\\"),d=h[1],p=h[0]-d;u.k=((i[1]-1)*(null!==(a=null===(r=o[n-1])||void 0===r?void 0:r.k)&&void 0!==a?a:50)+(c-d)/(0===p?1:p)*100)/i[1],u.d=((i[2]-1)*(null!==(l=null===(s=o[n-1])||void 0===s?void 0:s.d)&&void 0!==l?l:50)+u.k)/i[2],u.j=3*u.k-2*u.d}o.push(u)})),o}},{name:\\"SAR\\",shortName:\\"SAR\\",series:t.IndicatorSeries.Price,calcParams:[2,2,20],precision:2,shouldOhlc:!0,figures:[{key:\\"sar\\",title:\\"SAR: \\",type:\\"circle\\",styles:function(t,e,i){var o,n,r=t.current,a=null!==(n=null===(o=r.indicatorData)||void 0===o?void 0:o.sar)&&void 0!==n?n:Number.MIN_SAFE_INTEGER,s=r.kLineData;return{color:((null==s?void 0:s.high)+(null==s?void 0:s.low))/2>a?C(e.styles,\\"circles[0].upColor\\",i.circles[0].upColor):C(e.styles,\\"circles[0].downColor\\",i.circles[0].downColor)}}}],calc:function(t,e){var i=e.calcParams,o=i[0]/100,n=i[1]/100,r=i[2]/100,a=o,s=-100,l=!1,u=0;return t.map((function(e,i){var c=u,h=e.high,d=e.low;if(l){(-100===s||h>s)&&(s=h,a=Math.min(a+n,r)),u=c+a*(s-c);var p=Math.min(t[Math.max(1,i)-1].low,d);u>e.low?(u=s,a=o,s=-100,l=!l):u>p&&(u=p)}else{(-100===s||s>d)&&(s=d,a=Math.min(a+n,r)),u=c+a*(s-c);var v=Math.max(t[Math.max(1,i)-1].high,h);e.high>u?(u=s,a=0,s=-100,l=!l):v>u&&(u=v)}return{sar:u}}))}},{name:\\"TRIX\\",shortName:\\"TRIX\\",calcParams:[12,9],figures:[{key:\\"trix\\",title:\\"TRIX: \\",type:\\"line\\"},{key:\\"maTrix\\",title:\\"MATRIX: \\",type:\\"line\\"}],calc:function(t,e){var i,o,n,r=e.calcParams,a=0,s=0,l=0,u=0,c=[];return t.forEach((function(t,e){var h,d={},p=t.close;if(a+=p,e>=r[0]-1&&(s+=i=e>r[0]-1?(2*p+(r[0]-1)*i)/(r[0]+1):a/r[0],e>=2*r[0]-2&&(l+=o=e>2*r[0]-2?(2*i+(r[0]-1)*o)/(r[0]+1):s/r[0],e>=3*r[0]-3))){var v=void 0,g=0;e>3*r[0]-3?g=((v=(2*o+(r[0]-1)*n)/(r[0]+1))-n)/n*100:v=l/r[0],n=v,d.trix=g,u+=g,3*r[0]+r[1]-4>e||(d.maTrix=u/r[1],u-=null!==(h=c[e-(r[1]-1)].trix)&&void 0!==h?h:0)}c.push(d)})),c}},ut,{name:\\"VR\\",shortName:\\"VR\\",calcParams:[26,6],figures:[{key:\\"vr\\",title:\\"VR: \\",type:\\"line\\"},{key:\\"maVr\\",title:\\"MAVR: \\",type:\\"line\\"}],calc:function(t,e){var i=e.calcParams,o=0,n=0,r=0,a=0,s=[];return t.forEach((function(e,l){var u,c,h,d,p,v={},g=e.close,f=(null!==(u=t[l-1])&&void 0!==u?u:e).close,m=null!==(c=e.volume)&&void 0!==c?c:0;if(g>f?o+=m:f>g?n+=m:r+=m,l>=i[0]-1){var y=r/2;v.vr=n+y===0?0:(o+y)/(n+y)*100,a+=v.vr,i[0]+i[1]-2>l||(v.maVr=a/i[1],a-=null!==(h=s[l-(i[1]-1)].vr)&&void 0!==h?h:0);var _=t[l-(i[0]-1)],x=null!==(d=t[l-i[0]])&&void 0!==d?d:_,S=_.close,C=null!==(p=_.volume)&&void 0!==p?p:0;S>x.close?o-=C:x.close>S?n-=C:r-=C}s.push(v)})),s}},ct];function pt(t){var e;return null!==(e=ht[t])&&void 0!==e?e:null}dt.forEach((function(t){ht[t.name]=nt.extend(t)}));var vt,gt=function(){function e(t){this._instances=new Map,this._chartStore=t}return e.prototype._overrideInstance=function(t,e){var i=e.shortName,o=e.series,n=e.calcParams,r=e.precision,a=e.figures,s=e.minValue,l=e.maxValue,u=e.shouldOhlc,c=e.shouldFormatBigNumber,h=e.visible,d=e.styles,p=e.extendData,v=e.regenerateFigures,g=e.createTooltipDataSource,f=e.draw,m=e.calc,y=!1;void 0!==i&&t.setShortName(i)&&(y=!0),void 0!==o&&t.setSeries(o)&&(y=!0);var _=!1;return void 0!==n&&t.setCalcParams(n)&&(y=!0,_=!0),void 0!==a&&t.setFigures(a)&&(y=!0,_=!0),void 0!==s&&t.setMinValue(s)&&(y=!0),void 0!==l&&t.setMinValue(l)&&(y=!0),void 0!==r&&t.setPrecision(r)&&(y=!0),void 0!==u&&t.setShouldOhlc(u)&&(y=!0),void 0!==c&&t.setShouldFormatBigNumber(c)&&(y=!0),void 0!==h&&t.setVisible(h)&&(y=!0),void 0!==d&&t.setStyles(d)&&(y=!0),void 0!==p&&t.setExtendData(p)&&(y=!0,_=!0),void 0!==v&&t.setRegenerateFigures(v)&&(y=!0),void 0!==g&&t.setCreateTooltipDataSource(g)&&(y=!0),void 0!==f&&t.setDraw(f)&&(y=!0),void 0!==m&&(t.calc=m,_=!0),[y,_]},e.prototype.addInstance=function(t,e,i){var o;return A(this,void 0,void 0,(function(){var n,r,a,s;return F(this,(function(l){switch(l.label){case 0:return n=t.name,r=this._instances.get(e),null!==(o=null==r?void 0:r.has(n))&&void 0!==o&&o?[4,Promise.reject(Error(\\"Duplicate indicators.\\"))]:[3,2];case 1:case 3:return[2,l.sent()];case 2:return void 0===r&&(r=new Map,this._instances.set(e,r)),a=pt(n),s=new a,this._overrideInstance(s,t),i||r.clear(),r.set(n,s),[4,s.calcIndicator(this._chartStore.getDataList())]}}))}))},e.prototype.getInstances=function(t){var e;return null!==(e=this._instances.get(t))&&void 0!==e?e:new Map},e.prototype.removeInstance=function(t,e){var i=!1,o=this._instances.get(t);return void 0!==o&&(void 0!==e?o.has(e)&&(o.delete(e),i=!0):(o.clear(),i=!0),0===o.size&&this._instances.delete(t)),i},e.prototype.hasInstances=function(t){return this._instances.has(t)},e.prototype.calcInstance=function(t,e){var i;return A(this,void 0,void 0,(function(){var o,n,r,a=this;return F(this,(function(s){switch(s.label){case 0:return o=[],void 0!==t?void 0!==e?(n=this._instances.get(e),null!==(i=null==n?void 0:n.has(t))&&void 0!==i&&i&&(r=null==n?void 0:n.get(t),o.push(r.calcIndicator(this._chartStore.getDataList())))):this._instances.forEach((function(e){if(e.has(t)){var i=null==e?void 0:e.get(t);o.push(i.calcIndicator(a._chartStore.getDataList()))}})):this._instances.forEach((function(t){t.forEach((function(t){o.push(t.calcIndicator(a._chartStore.getDataList()))}))})),[4,Promise.all(o)];case 1:return[2,s.sent().includes(!0)]}}))}))},e.prototype.getInstanceByPaneId=function(t,e){var i;if(void 0!==t){var o=this._instances.get(t);return void 0!==e?null!==(i=null==o?void 0:o.get(e))&&void 0!==i?i:null:null!=o?o:null}return this._instances},e.prototype.setSeriesPrecision=function(e){this._instances.forEach((function(i){i.forEach((function(i){i.series===t.IndicatorSeries.Price&&i.setPrecision(e.price,!0),i.series===t.IndicatorSeries.Volume&&i.setPrecision(e.volume,!0)}))}))},e.prototype.override=function(t,e){return A(this,void 0,void 0,(function(){var i,o,n,r,a,s,l=this;return F(this,(function(u){switch(u.label){case 0:return i=t.name,o=new Map,null!==e?void 0!==(n=this._instances.get(e))&&o.set(e,n):o=this._instances,r=!1,a=[],o.forEach((function(e){var o=e.get(i);if(void 0!==o){var n=l._overrideInstance(o,t);n[1]?a.push(o.calcIndicator(l._chartStore.getDataList())):n[0]&&(r=!0)}})),[4,Promise.all(a)];case 1:return s=u.sent(),[2,[r,s.includes(!0)]]}}))}))},e}(),ft=function(){function t(t){this._crosshair={},this._activeIcon=null,this._chartStore=t}return t.prototype.setCrosshair=function(t,e){var i,o,n=this._chartStore.getDataList(),r=null!=t?t:{},a=n[o=void 0!==r.x?0>(i=this._chartStore.getTimeScaleStore().coordinateToDataIndex(r.x))?0:i>n.length-1?n.length-1:i:i=n.length-1],s=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(i),l=this._crosshair.x,u=this._crosshair.y,c=this._crosshair.paneId;this._crosshair=k(k({},r),{realX:s,kLineData:a,realDataIndex:i,dataIndex:o}),l===r.x&&u===r.y&&c===r.paneId||(null!==a&&this._chartStore.getChart().crosshairChange(this._crosshair),null!=e&&e||this._chartStore.getChart().updatePane(1))},t.prototype.recalculateCrosshair=function(t){this.setCrosshair(this._crosshair,t)},t.prototype.getCrosshair=function(){return this._crosshair},t.prototype.setActiveIcon=function(t){this._activeIcon=null!=t?t:null},t.prototype.getActiveIcon=function(){return this._activeIcon},t.prototype.clear=function(){this.setCrosshair({},!0),this.setActiveIcon()},t}();t.OverlayMode=void 0,(vt=t.OverlayMode||(t.OverlayMode={})).Normal=\\"normal\\",vt.WeakMagnet=\\"weak_magnet\\",vt.StrongMagnet=\\"strong_magnet\\";var mt=1,yt=\\"overlay_figure_\\",_t=Number.MAX_SAFE_INTEGER,xt=function(){function o(e){this.currentStep=mt,this.points=[],this._prevPressedPoint=null,this._prevPressedPoints=[];var i=e.mode,o=e.modeSensitivity,n=e.extendData,r=e.styles,a=e.totalStep,s=e.lock,l=e.visible,u=e.zLevel,c=e.needDefaultPointFigure,h=e.needDefaultXAxisFigure,d=e.needDefaultYAxisFigure,p=e.createPointFigures,v=e.createXAxisFigures,g=e.createYAxisFigures,f=e.performEventPressedMove,m=e.performEventMoveForDrawing,y=e.onDrawStart,_=e.onDrawing,x=e.onDrawEnd,S=e.onClick,C=e.onDoubleClick,b=e.onRightClick,T=e.onPressedMoveStart,w=e.onPressedMoving,E=e.onPressedMoveEnd,I=e.onMouseEnter,D=e.onMouseLeave,P=e.onRemoved,M=e.onSelected,k=e.onDeselected;this.name=e.name,this.totalStep=void 0===a||2>a?1:a,this.lock=null!=s&&s,this.visible=null==l||l,this.zLevel=null!=u?u:0,this.needDefaultPointFigure=null!=c&&c,this.needDefaultXAxisFigure=null!=h&&h,this.needDefaultYAxisFigure=null!=d&&d,this.mode=null!=i?i:t.OverlayMode.Normal,this.modeSensitivity=null!=o?o:8,this.extendData=n,this.styles=null!=r?r:{},this.createPointFigures=null!=p?p:null,this.createXAxisFigures=null!=v?v:null,this.createYAxisFigures=null!=g?g:null,this.performEventPressedMove=null!=f?f:null,this.performEventMoveForDrawing=null!=m?m:null,this.onDrawStart=null!=y?y:null,this.onDrawing=null!=_?_:null,this.onDrawEnd=null!=x?x:null,this.onClick=null!=S?S:null,this.onDoubleClick=null!=C?C:null,this.onRightClick=null!=b?b:null,this.onPressedMoveStart=null!=T?T:null,this.onPressedMoving=null!=w?w:null,this.onPressedMoveEnd=null!=E?E:null,this.onMouseEnter=null!=I?I:null,this.onMouseLeave=null!=D?D:null,this.onRemoved=null!=P?P:null,this.onSelected=null!=M?M:null,this.onDeselected=null!=k?k:null}return o.prototype.setId=function(t){return void 0===this.id&&(this.id=t,!0)},o.prototype.setGroupId=function(t){return void 0===this.groupId&&(this.groupId=t,!0)},o.prototype.setDefaultZLevel=function(t){return void 0===this.defaultZLevel&&(this.defaultZLevel=t,!0)},o.prototype.setPaneId=function(t){this.paneId=t},o.prototype.setExtendData=function(t){return t!==this.extendData&&(this.extendData=t,!0)},o.prototype.setStyles=function(t){return null!==t&&(e(this.styles,t),!0)},o.prototype.setPoints=function(t){if(t.length>0){var e=void 0;if(this.points=B([],R(t),!1),this.totalStep-1>t.length?(this.currentStep=t.length+1,e=t.length):(this.currentStep=-1,e=this.totalStep-1),null!==this.performEventMoveForDrawing)for(var i=0;e>i;i++)this.performEventMoveForDrawing({currentStep:i+2,mode:this.mode,points:this.points,performPointIndex:i,performPoint:this.points[i]});return-1===this.currentStep&&null!==this.performEventPressedMove&&this.performEventPressedMove({currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:this.points.length-1,performPoint:this.points[this.points.length-1]}),!0}return!1},o.prototype.setLock=function(t){return this.lock!==t&&(this.lock=t,!0)},o.prototype.setVisible=function(t){return this.visible!==t&&(this.visible=t,!0)},o.prototype.resetZLevel=function(){this.zLevel=this.defaultZLevel},o.prototype.setZLevel=function(t){return this.zLevel!==t&&(this.zLevel=t,!0)},o.prototype.setMode=function(t){return this.mode!==t&&(this.mode=t,!0)},o.prototype.setModeSensitivity=function(t){return this.modeSensitivity!==t&&(this.modeSensitivity=t,!0)},o.prototype.setOnDrawStartCallback=function(t){return this.onDrawStart!==t&&(this.onDrawStart=t,!0)},o.prototype.setOnDrawingCallback=function(t){return this.onDrawing!==t&&(this.onDrawing=t,!0)},o.prototype.setOnDrawEndCallback=function(t){return this.onDrawEnd!==t&&(this.onDrawEnd=t,!0)},o.prototype.setOnClickCallback=function(t){return this.onClick!==t&&(this.onClick=t,!0)},o.prototype.setOnDoubleClickCallback=function(t){return this.onDoubleClick!==t&&(this.onDoubleClick=t,!0)},o.prototype.setOnRightClickCallback=function(t){return this.onRightClick!==t&&(this.onRightClick=t,!0)},o.prototype.setOnPressedMoveStartCallback=function(t){return this.onPressedMoveStart!==t&&(this.onPressedMoveStart=t,!0)},o.prototype.setOnPressedMovingCallback=function(t){return this.onPressedMoving!==t&&(this.onPressedMoving=t,!0)},o.prototype.setOnPressedMoveEndCallback=function(t){return this.onPressedMoveEnd!==t&&(this.onPressedMoveEnd=t,!0)},o.prototype.setOnMouseEnterCallback=function(t){return this.onMouseEnter!==t&&(this.onMouseEnter=t,!0)},o.prototype.setOnMouseLeaveCallback=function(t){return this.onMouseLeave!==t&&(this.onMouseLeave=t,!0)},o.prototype.setOnRemovedCallback=function(t){return this.onRemoved!==t&&(this.onRemoved=t,!0)},o.prototype.setOnSelectedCallback=function(t){return this.onSelected!==t&&(this.onSelected=t,!0)},o.prototype.setOnDeselectedCallback=function(t){return this.onDeselected!==t&&(this.onDeselected=t,!0)},o.prototype.nextStep=function(){this.currentStep===this.totalStep-1?this.currentStep=-1:this.currentStep++},o.prototype.forceComplete=function(){this.currentStep=-1},o.prototype.isDrawing=function(){return-1!==this.currentStep},o.prototype.isStart=function(){return this.currentStep===mt},o.prototype.eventMoveForDrawing=function(t){var e,i=this.currentStep-1,o={};void 0!==t.timestamp&&(o.timestamp=t.timestamp),void 0!==t.dataIndex&&(o.dataIndex=t.dataIndex),void 0!==t.value&&(o.value=t.value),this.points[i]=o,null===(e=this.performEventMoveForDrawing)||void 0===e||e.call(this,{currentStep:this.currentStep,mode:this.mode,points:this.points,performPointIndex:i,performPoint:o})},o.prototype.eventPressedPointMove=function(t,e){var i;void 0!==t.dataIndex&&(this.points[e].dataIndex=t.dataIndex,this.points[e].timestamp=t.timestamp),void 0!==t.value&&(this.points[e].value=t.value),null===(i=this.performEventPressedMove)||void 0===i||i.call(this,{currentStep:this.currentStep,points:this.points,mode:this.mode,performPointIndex:e,performPoint:this.points[e]})},o.prototype.startPressedMove=function(t){this._prevPressedPoint=k({},t),this._prevPressedPoints=i(this.points)},o.prototype.eventPressedOtherMove=function(t,e){var i,o;null!==this._prevPressedPoint&&(void 0!==t.dataIndex&&void 0!==this._prevPressedPoint.dataIndex&&(i=t.dataIndex-this._prevPressedPoint.dataIndex),void 0!==t.value&&void 0!==this._prevPressedPoint.value&&(o=t.value-this._prevPressedPoint.value),this.points=this._prevPressedPoints.map((function(t){var n;void 0===t.dataIndex&&void 0!==t.timestamp&&(t.dataIndex=e.timestampToDataIndex(t.timestamp));var r=k({},t);return void 0!==i&&void 0!==t.dataIndex&&(r.dataIndex=t.dataIndex+i,r.timestamp=null!==(n=e.dataIndexToTimestamp(r.dataIndex))&&void 0!==n?n:void 0),void 0!==o&&void 0!==t.value&&(r.value=t.value+o),r})))},o.extend=function(t){return function(e){function i(){return e.call(this,t)||this}return P(i,e),i}(o)},o}(),St={name:\\"fibonacciLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.precision,o=t.thousandsSeparator,n=t.overlay.points;if(e.length>0){var r=[],a=[],s=t.bounding.width;if(e.length>1&&void 0!==n[0].value&&void 0!==n[1].value){var l=e[0].y-e[1].y,u=n[0].value-n[1].value;[1,.786,.618,.5,.382,.236,0].forEach((function(t){var c,h=e[1].y+l*t,d=E(((null!==(c=n[1].value)&&void 0!==c?c:0)+u*t).toFixed(i.price),o);r.push({coordinates:[{x:0,y:h},{x:s,y:h}]}),a.push({x:0,y:h,text:\\"\\".concat(d,\\" (\\").concat((100*t).toFixed(1),\\"%)\\"),baseline:\\"bottom\\"})}))}return[{type:\\"line\\",attrs:r},{type:\\"text\\",isCheckEvent:!1,attrs:a}]}return[]}},Ct={name:\\"horizontalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i={x:0,y:e[0].y};return void 0!==e[1]&&e[1].x>e[0].x&&(i.x=t.bounding.width),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},bt=function(){function t(){this._children=[],this._callbacks=new Map}return t.prototype.registerEvent=function(t,e){return this._callbacks.set(t,e),this},t.prototype.onEvent=function(t,e,i){var o=this._callbacks.get(t);return!(void 0===o||!this.checkEventOn(e))&&o(e,i)},t.prototype.checkEventOn=function(t){var e,i;try{for(var o=L(this._children),n=o.next();!n.done;n=o.next()){if(n.value.checkEventOn(t))return!0}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return!1},t.prototype.dispatchEvent=function(t,e,i){var o=this._children.length-1;if(o>-1)for(var n=o;n>-1;n--)if(this._children[n].dispatchEvent(t,e,i))return!0;return this.onEvent(t,e,i)},t.prototype.addChild=function(t){return this._children.push(t),this},t.prototype.clear=function(){this._children=[]},t}(),Tt=2,wt=function(t){function e(e){var i=t.call(this)||this;return i.attrs=e.attrs,i.styles=e.styles,i}return P(e,t),e.prototype.checkEventOn=function(t){return this.checkEventOnImp(t,this.attrs,this.styles)},e.prototype.draw=function(t){this.drawImp(t,this.attrs,this.styles)},e.extend=function(t){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.checkEventOnImp=function(e,i,o){return t.checkEventOn(e,i,o)},i.prototype.drawImp=function(e,i,o){t.draw(e,i,o)},i}(e);return i},e}(bt);function Et(t,e){return Math.sqrt(Math.pow(t.x+e.x,2)+Math.pow(t.y+e.y,2))}function It(t){var e=Et(t[0],t[1]),i=e+Et(t[1],t[2]),o=[t[2].x-t[0].x,t[2].y-t[0].y];return[{x:t[1].x-.5*o[0]*e/i,y:t[1].y-.5*o[1]*e/i},{x:t[1].x+.5*o[0]*e/i,y:t[1].y+.5*o[1]*e/i}]}function Dt(t,e){var i=e.coordinates;if(i.length>1)for(var o=1;i.length>o;o++){var n=i[o-1],r=i[o];if(n.x===r.x){if(Tt+Tt>Math.abs(n.y-t.y)+Math.abs(r.y-t.y)-Math.abs(n.y-r.y)&&Tt>Math.abs(t.x-n.x))return!0}else{var a=kt(n,r),s=Pt(a,t),l=Math.abs(s-t.y);if(Tt+Tt>Math.abs(n.x-t.x)+Math.abs(r.x-t.x)-Math.abs(n.x-r.x)&&Tt*Tt>l*l/(a[0]*a[0]+1))return!0}}return!1}function Pt(t,e){return null!=t?e.x*t[0]+t[1]:e.y}function Mt(t,e,i){return Pt(kt(t,e),i)}function kt(t,e){var i=t.x-e.x;if(0!==i){var o=(t.y-e.y)/i;return[o,t.y-o*t.x]}return null}function At(e,i,o){var n=i.coordinates,r=n.length;if(r>1){var a=o.style,s=void 0===a?t.LineType.Solid:a,l=o.smooth,u=o.size,c=o.color,h=void 0===c?\\"currentColor\\":c,d=o.dashedValue,p=void 0===d?[2,2]:d;if(e.lineWidth=void 0===u?1:u,e.strokeStyle=h,e.setLineDash(s===t.LineType.Dashed?p:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y),null!=l&&l){for(var v=[],g=1;r-1>g;g++)v=v.concat(It([n[g-1],n[g],n[g+1]]));e.quadraticCurveTo(v[0].x,v[0].y,n[1].x,n[1].y);for(var f=2;r-1>f;f++)e.bezierCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,v[2*(f-1)].x,v[2*(f-1)].y,n[f].x,n[f].y);e.quadraticCurveTo(v[2*(f-2)+1].x,v[2*(f-2)+1].y,n[f].x,n[f].y)}else for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.stroke(),e.closePath()}}var Ft={name:\\"line\\",checkEventOn:Dt,draw:function(t,e,i){At(t,e,i)}};function Lt(t,e,i){var o=null!=i?i:0,n=[];if(t.length>1)if(t[0].x===t[1].x){var r=e.height;if(n.push({coordinates:[{x:t[0].x,y:0},{x:t[0].x,y:r}]}),t.length>2){n.push({coordinates:[{x:t[2].x,y:0},{x:t[2].x,y:r}]});for(var a=t[0].x-t[2].x,s=0;o>s;s++){var l=a*(s+1);n.push({coordinates:[{x:t[0].x+l,y:0},{x:t[0].x+l,y:r}]})}}}else{var u=e.width,c=kt(t[0],t[1]),h=c[0],d=c[1];if(n.push({coordinates:[{x:0,y:0*h+d},{x:u,y:u*h+d}]}),t.length>2){var p=t[2].y-h*t[2].x;n.push({coordinates:[{x:0,y:0*h+p},{x:u,y:u*h+p}]});for(a=d-p,s=0;o>s;s++){var v=d+a*(s+1);n.push({coordinates:[{x:0,y:0*h+v},{x:u,y:u*h+v}]})}}}return n}function Rt(t,e){if(t.length>1){var i=void 0;return i=t[0].x===t[1].x&&t[0].y!==t[1].y?t[1].y>t[0].y?{x:t[0].x,y:e.height}:{x:t[0].x,y:0}:t[0].x>t[1].x?{x:0,y:Mt(t[0],t[1],{x:0,y:t[0].y})}:{x:e.width,y:Mt(t[0],t[1],{x:e.width,y:t[0].y})},{coordinates:[t[0],i]}}return[]}var Bt={name:\\"simpleAnnotation\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"},line:{style:t.LineType.Dashed}},createPointFigures:function(t){var e,i,o=t.overlay,r=t.coordinates;s(o.extendData)&&(i=n(o.extendData)?o.extendData(o):null!==(e=o.extendData)&&void 0!==e?e:\\"\\");var a=r[0].x,l=r[0].y-6,u=l-50,c=u-5;return[{type:\\"line\\",attrs:{coordinates:[{x:a,y:l},{x:a,y:u}]},ignoreEvent:!0},{type:\\"polygon\\",attrs:{coordinates:[{x:a,y:u},{x:a-4,y:c},{x:a+4,y:c}]},ignoreEvent:!0},{type:\\"text\\",attrs:{x:a,y:c,text:null!=i?i:\\"\\",align:\\"center\\",baseline:\\"bottom\\"},ignoreEvent:!0}]}},Ot={name:\\"simpleTag\\",totalStep:2,styles:{text:{borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}},createPointFigures:function(t){var e=t.coordinates;return{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]},ignoreEvent:!0}},createYAxisFigures:function(t){var e,i,o,r,a,l=t.overlay,u=t.coordinates,c=t.bounding,h=t.yAxis,d=t.precision;return null!==(e=null==h?void 0:h.isFromZero())&&void 0!==e&&e?(o=\\"left\\",r=0):(o=\\"right\\",r=c.width),s(l.extendData)&&(a=n(l.extendData)?l.extendData(l):null!==(i=l.extendData)&&void 0!==i?i:\\"\\"),s(a)||void 0===l.points[0].value||(a=T(l.points[0].value,d.price)),{type:\\"text\\",attrs:{x:r,y:u[0].y,text:null!=a?a:\\"\\",align:o,baseline:\\"middle\\"}}}},Vt={};function Nt(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null}function Wt(t){var i={width:0,height:0,left:0,right:0,top:0,bottom:0};return void 0!==t&&e(i,t),i}[St,Ct,{name:\\"horizontalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=[];return 2===e.length&&i.push({coordinates:e}),[{type:\\"line\\",attrs:i}]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].value=i.value,e[1].value=i.value},performEventMoveForDrawing:function(t){2===t.currentStep&&(t.points[0].value=t.performPoint.value)}},{name:\\"horizontalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:0,y:e[0].y},{x:t.bounding.width,y:e[0].y}]}}]}},{name:\\"parallelStraightLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding)}]}},{name:\\"priceChannelLine\\",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Lt(t.coordinates,t.bounding,1)}]}},{name:\\"priceLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.thousandsSeparator,o=t.overlay.points[0].value;return[{type:\\"line\\",attrs:{coordinates:[e[0],{x:t.bounding.width,y:e[0].y}]}},{type:\\"text\\",ignoreEvent:!0,attrs:{x:e[0].x,y:e[0].y,text:E((void 0===o?0:o).toFixed(t.precision.price),i),baseline:\\"bottom\\"}}]}},{name:\\"rayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){return[{type:\\"line\\",attrs:Rt(t.coordinates,t.bounding)}]}},{name:\\"segment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]}},{name:\\"straightLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates,i=t.bounding;return 2===e.length?e[0].x===e[1].x?[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:i.height}]}}]:[{type:\\"line\\",attrs:{coordinates:[{x:0,y:Mt(e[0],e[1],{x:0,y:e[0].y})},{x:i.width,y:Mt(e[0],e[1],{x:i.width,y:e[0].y})}]}}]:[]}},{name:\\"verticalRayLine\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;if(2===e.length){var i={x:e[0].x,y:0};return e[1].y>e[0].y&&(i.y=t.bounding.height),[{type:\\"line\\",attrs:{coordinates:[e[0],i]}}]}return[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalSegment\\",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return 2===e.length?[{type:\\"line\\",attrs:{coordinates:e}}]:[]},performEventPressedMove:function(t){var e=t.points,i=t.performPoint;e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex,e[1].timestamp=i.timestamp,e[1].dataIndex=i.dataIndex},performEventMoveForDrawing:function(t){var e=t.points,i=t.performPoint;2===t.currentStep&&(e[0].timestamp=i.timestamp,e[0].dataIndex=i.dataIndex)}},{name:\\"verticalStraightLine\\",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:function(t){var e=t.coordinates;return[{type:\\"line\\",attrs:{coordinates:[{x:e[0].x,y:0},{x:e[0].x,y:t.bounding.height}]}}]}},Bt,Ot].forEach((function(t){Vt[t.name]=xt.extend(t)}));var zt=\\"main\\",Yt=\\"xAxis\\",Xt=\\"yAxis\\",Ht=\\"separator\\",jt=function(t){function i(e,i){var o=t.call(this)||this;return o._bounding=Wt(),o._pane=i,o._init(e),o}return P(i,t),i.prototype._init=function(t){if(this._container=Y(\\"div\\",this.getContainerStyle()),this.insertBefore()){var e=t.lastChild;null!==e?t.insertBefore(this._container,e):t.appendChild(this._container)}else t.appendChild(this._container);this.initDom(this._container)},i.prototype.setBounding=function(t){return e(this._bounding,t),this},i.prototype.getContainer=function(){return this._container},i.prototype.getBounding=function(){return this._bounding},i.prototype.getPane=function(){return this._pane},i.prototype.update=function(t){this.updateImp(this._container,this._bounding,null!=t?t:3)},i.prototype.insertBefore=function(){return!1},i}(bt);var Zt=function(e){function i(t,i){var o,n,r,a=e.call(this,t,i)||this;return a._dragFlag=!1,a._dragStartY=0,a._topPaneHeight=0,a._currentPaneHeight=0,a._pressedMouseMoveEvent=(o=a._pressedTouchMouseMoveEvent,n=20,r=0,function(){var t=Date.now();t-r>(null!=n?n:20)&&(o.apply(this,arguments),r=t)}),a.registerEvent(\\"touchStartEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"touchMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"touchEndEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"mouseDownEvent\\",a._mouseDownEvent.bind(a)).registerEvent(\\"mouseUpEvent\\",a._mouseUpEvent.bind(a)).registerEvent(\\"pressedMouseMoveEvent\\",a._pressedMouseMoveEvent.bind(a)).registerEvent(\\"mouseEnterEvent\\",a._mouseEnterEvent.bind(a)).registerEvent(\\"mouseLeaveEvent\\",a._mouseLeaveEvent.bind(a)),a}return P(i,e),i.prototype.getName=function(){return Ht},i.prototype.checkEventOn=function(){return!0},i.prototype._mouseDownEvent=function(t){var e,i;this._dragFlag=!0,this._dragStartY=t.pageY;var o=this.getPane();return this._topPaneHeight=null!==(i=null===(e=o.getTopPane())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,this._currentPaneHeight=o.getBounding().height,!0},i.prototype._mouseUpEvent=function(){return this._dragFlag=!1,this._mouseLeaveEvent()},i.prototype._pressedTouchMouseMoveEvent=function(e){var i=e.pageY-this._dragStartY,o=this.getPane(),n=o.getTopPane(),r=0>i;if(null!==n&&o.getOptions().dragEnabled){var a=void 0,s=void 0,l=void 0,u=void 0;r?(a=n,s=o,l=this._topPaneHeight,u=this._currentPaneHeight):(a=o,s=n,l=this._currentPaneHeight,u=this._topPaneHeight);var c=a.getOptions().minHeight;if(l>c){var h=Math.max(l-Math.abs(i),c),d=l-h;a.setBounding({height:h}),s.setBounding({height:u+d});var p=o.getChart();p.getChartStore().getActionStore().execute(t.ActionType.OnPaneDrag,{paneId:o.getId}),p.adjustPaneViewport(!0,!0,!0,!0,!0)}}return!0},i.prototype._mouseEnterEvent=function(){var t=this.getPane();if(t.getOptions().dragEnabled){var e=t.getChart().getStyles().separator;return this._moveDom.style.background=e.activeBackgroundColor,!0}return!1},i.prototype._mouseLeaveEvent=function(){return!this._dragFlag&&(this._moveDom.style.background=\\"\\",!0)},i.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",boxSizing:\\"border-box\\"}},i.prototype.insertBefore=function(){return!0},i.prototype.initDom=function(t){this._moveDom=Y(\\"div\\",{width:\\"100%\\",height:\\"\\".concat(7,\\"px\\"),margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"-3px\\",zIndex:\\"20\\",boxSizing:\\"border-box\\",cursor:\\"ns-resize\\"}),t.appendChild(this._moveDom)},i.prototype.updateImp=function(t,e,i){if(4===i||2===i){var o=this.getPane().getChart().getStyles().separator;this._moveDom.style.top=\\"\\".concat(-Math.floor((7-o.size)/2),\\"px\\"),this._moveDom.style.height=\\"\\".concat(7,\\"px\\");var n=o.fill;t.style.backgroundColor=o.color,t.style.height=\\"\\".concat(o.size,\\"px\\"),t.style.marginLeft=\\"\\".concat(n?0:e.left,\\"px\\"),t.style.width=n?\\"100%\\":\\"\\".concat(e.width,\\"px\\")}},i.prototype.getImage=function(){var t=this.getPane().getChart().getStyles().separator,e=this.getContainer().offsetWidth,i=t.size,o=Y(\\"canvas\\",{width:\\"\\".concat(e,\\"px\\"),height:\\"\\".concat(i,\\"px\\"),boxSizing:\\"border-box\\"}),n=o.getContext(\\"2d\\"),r=X(o);return o.width=e*r,o.height=i*r,n.scale(r,r),n.fillStyle=t.color,n.fillRect(this.getBounding().left,0,e,i),o},i}(jt),Gt=30,Kt={CANDLE:\\"candle_pane\\",INDICATOR:\\"indicator_pane_\\",XAXIS:\\"xaxis_pane\\"},Ut=function(){function t(t,e,i,o,n){this._yAxisWidget=null,this._separatorWidget=null,this._axis=this.createAxisComponent(),this._bounding=Wt(),this._options={minHeight:Gt,dragEnabled:!0,gap:{top:.2,bottom:.1},axisOptions:{scrollZoomEnabled:!0}},this._chart=e,this._id=i,this._topPane=null!=o?o:null,this._bottomPane=null!=n?n:null,this._init(t)}return t.prototype._init=function(t){this._container=t,this._seriesContainer=Y(\\"div\\",{width:\\"100%\\",margin:\\"0\\",padding:\\"0\\",position:\\"relative\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}),this._separatorWidget=this.createSeparatorWidget(t);var e=t.lastChild;null!==e?t.insertBefore(this._seriesContainer,e):t.appendChild(this._seriesContainer),this._mainWidget=this.createMainWidget(this._seriesContainer),this._yAxisWidget=this.createYAxisWidget(this._seriesContainer)},t.prototype.getContainer=function(){return this._seriesContainer},t.prototype.getId=function(){return this._id},t.prototype.setOptions=function(t){var i,o,n,r,a;return e(this._options,t),this.getId()===Kt.XAXIS?(r=this.getMainWidget().getContainer(),a=\\"ew-resize\\"):(r=null===(i=this.getYAxisWidget())||void 0===i?void 0:i.getContainer(),a=\\"ns-resize\\"),r.style.cursor=null===(n=null===(o=t.axisOptions)||void 0===o?void 0:o.scrollZoomEnabled)||void 0===n||n?a:\\"default\\",this},t.prototype.getOptions=function(){return this._options},t.prototype.getChart=function(){return this._chart},t.prototype.getAxisComponent=function(){return this._axis},t.prototype.setBounding=function(t,i,o){var n,r,a;e(this._bounding,t);var s=0;if(null!==this._separatorWidget){s=this._chart.getStyles().separator.size;var l=k(k({},t),{height:7});void 0!==t.top&&(l.top=t.top-Math.floor((7-s)/2)),this._separatorWidget.setBounding(l)}var u={};return void 0!==t.height&&(u.height=t.height-s),void 0!==t.top&&(u.top=t.top+s),this._mainWidget.setBounding(u),null===(n=this._yAxisWidget)||void 0===n||n.setBounding(u),void 0!==i&&(this._mainWidget.setBounding(i),null===(r=this._separatorWidget)||void 0===r||r.setBounding(i)),void 0!==o&&(null===(a=this._yAxisWidget)||void 0===a||a.setBounding(o)),this},t.prototype.getTopPane=function(){return this._topPane},t.prototype.setTopPane=function(t){return this._topPane=t,this},t.prototype.getBottomPane=function(){return this._bottomPane},t.prototype.setBottomPane=function(t){return this._bottomPane=t,this},t.prototype.getBounding=function(){return this._bounding},t.prototype.getMainWidget=function(){return this._mainWidget},t.prototype.getYAxisWidget=function(){return this._yAxisWidget},t.prototype.getSeparatorWidget=function(){return this._separatorWidget},t.prototype.update=function(t){var e,i;this._bounding.width!==this._seriesContainer.offsetWidth&&(this._seriesContainer.style.width=\\"\\".concat(this._bounding.width,\\"px\\"));var o=this._mainWidget.getBounding().height;o!==this._seriesContainer.offsetHeight&&(this._seriesContainer.style.height=\\"\\".concat(o,\\"px\\"));var n=null!=t?t:3;this._mainWidget.update(n),null===(e=this._yAxisWidget)||void 0===e||e.update(n),null===(i=this._separatorWidget)||void 0===i||i.update(n)},t.prototype.getImage=function(t){var e=this._bounding,i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);n.width=i*a,n.height=o*a,r.scale(a,a);var s=0;if(null!=this._separatorWidget){var l=this.getChart().getStyles().separator.size;s=l,r.drawImage(this._separatorWidget.getImage(),0,0,i,l)}var u=this._mainWidget.getBounding();if(r.drawImage(this._mainWidget.getImage(t),u.left,s,u.width,u.height),null!==this._yAxisWidget){var c=this._yAxisWidget.getBounding();r.drawImage(this._yAxisWidget.getImage(t),c.left,s,c.width,c.height)}return n},t.prototype.destroy=function(){this._container.removeChild(this._seriesContainer),null!==this._separatorWidget&&this._container.removeChild(this._separatorWidget.getContainer())},t.prototype.createSeparatorWidget=function(t){return null},t.prototype.createYAxisWidget=function(t){return null},t}(),qt=function(){function t(t){this._instances=new Map,this._counter=new Map,this._progressInstanceInfo=null,this._pressedInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._hoverInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._clickInstanceInfo={paneId:\\"\\",instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},this._chartStore=t}return t.prototype._overrideInstance=function(t,e){var i=e.id,o=e.groupId,n=e.points,r=e.styles,a=e.lock,s=e.visible,l=e.zLevel,u=e.mode,c=e.modeSensitivity,h=e.extendData,d=e.onDrawStart,p=e.onDrawing,v=e.onDrawEnd,g=e.onClick,f=e.onDoubleClick,m=e.onRightClick,y=e.onPressedMoveStart,_=e.onPressedMoving,x=e.onPressedMoveEnd,S=e.onMouseEnter,C=e.onMouseLeave,b=e.onRemoved,T=e.onSelected,w=e.onDeselected,E=!1,I=!1;return void 0!==i&&t.setId(i),void 0!==o&&t.setGroupId(o),void 0!==n&&t.setPoints(n)&&(E=!0),void 0!==r&&t.setStyles(r)&&(E=!0),void 0!==a&&t.setLock(a),void 0!==s&&t.setVisible(s)&&(E=!0),void 0!==l&&t.setZLevel(l)&&(E=!0,I=!0),void 0!==u&&t.setMode(u),void 0!==c&&t.setModeSensitivity(c),void 0!==h&&t.setExtendData(h)&&(E=!0),void 0!==d&&t.setOnDrawStartCallback(d),void 0!==p&&t.setOnDrawingCallback(p),void 0!==v&&t.setOnDrawEndCallback(v),void 0!==g&&t.setOnClickCallback(g),void 0!==f&&t.setOnDoubleClickCallback(f),void 0!==m&&t.setOnRightClickCallback(m),void 0!==y&&t.setOnPressedMoveStartCallback(y),void 0!==_&&t.setOnPressedMovingCallback(_),void 0!==x&&t.setOnPressedMoveEndCallback(x),void 0!==S&&t.setOnMouseEnterCallback(S),void 0!==C&&t.setOnMouseLeaveCallback(C),void 0!==b&&t.setOnRemovedCallback(b),void 0!==T&&t.setOnSelectedCallback(T),void 0!==w&&t.setOnDeselectedCallback(w),[E,I]},t.prototype.getInstanceById=function(t){var e,i;try{for(var o=L(this._instances),n=o.next();!n.done;n=o.next()){var r=n.value[1].find((function(e){return e.id===t}));if(void 0!==r)return r}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return null!==this._progressInstanceInfo&&this._progressInstanceInfo.instance.id===t?this._progressInstanceInfo.instance:null},t.prototype._sort=function(t){var e;void 0!==t?null===(e=this._instances.get(t))||void 0===e||e.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel})):this._instances.forEach((function(t){t.sort((function(t,e){return t.defaultZLevel-e.defaultZLevel})).sort((function(t,e){return t.zLevel-e.zLevel}))}))},t.prototype.addInstances=function(t,e,i){var o=this,n=t.map((function(t){var n,r,a,s,l,u=null!==(n=t.id)&&void 0!==n?n:z(\\"overlay_\\");if(null===o.getInstanceById(u)){var c=Nt(t.name);if(null!==c){var h=new c,d=(null!==(r=o._counter.get(e))&&void 0!==r?r:0)+1;o._counter.set(e,d),h.setDefaultZLevel(d),h.setPaneId(e);var p=null!==(a=t.groupId)&&void 0!==a?a:u;return t.id=u,t.groupId=p,o._overrideInstance(h,t),h.isDrawing()?o._progressInstanceInfo={paneId:e,instance:h,appointPaneFlag:i}:(o._instances.has(e)||o._instances.set(e,[]),null===(s=o._instances.get(e))||void 0===s||s.push(h)),h.isStart()&&(null===(l=h.onDrawStart)||void 0===l||l.call(h,{overlay:h})),u}}return null}));return n.some((function(t){return null!==t}))&&(this._sort(),this._chartStore.getChart().updatePane(1,e)),n},t.prototype.getProgressInstanceInfo=function(){return this._progressInstanceInfo},t.prototype.progressInstanceComplete=function(){var t;if(null!==this._progressInstanceInfo){var e=this._progressInstanceInfo,i=e.instance,o=e.paneId;i.isDrawing()||(this._instances.has(o)||this._instances.set(o,[]),null===(t=this._instances.get(o))||void 0===t||t.push(i),this._sort(o),this._progressInstanceInfo=null)}},t.prototype.updateProgressInstanceInfo=function(t,e){null!==this._progressInstanceInfo&&(void 0!==e&&e&&(this._progressInstanceInfo.appointPaneFlag=e),this._progressInstanceInfo.paneId=t,this._progressInstanceInfo.instance.setPaneId(t))},t.prototype.getInstances=function(t){var e;if(void 0===t){var i=[];return this._instances.forEach((function(t){i=i.concat(t)})),i}return null!==(e=this._instances.get(t))&&void 0!==e?e:[]},t.prototype.override=function(t){var e=this,i=t.id,o=t.groupId,n=t.name,r=!1,a=!1,s=function(i){var o=e._overrideInstance(i,t);o[0]&&(r=!0),o[1]&&(a=!0)};if(void 0!==i){var l=this.getInstanceById(i);null!==l&&s(l)}else if(this._instances.forEach((function(t){t.forEach((function(t){(void 0!==n&&t.name===n||void 0!==o&&t.groupId===o||void 0===n&&void 0===o)&&s(t)}))})),null!==this._progressInstanceInfo){var u=this._progressInstanceInfo.instance;(void 0!==n&&u.name===n||void 0!==o&&u.groupId===o||void 0===n&&void 0===o)&&s(u)}a&&this._sort(),r&&this._chartStore.getChart().updatePane(1)},t.prototype.removeInstance=function(t){var e,i,o,n=function(t,e){if(void 0!==t.id){if(e.id!==t.id)return!1}else if(void 0!==t.groupId){if(e.groupId!==t.groupId)return!1}else if(void 0!==t.name&&e.name!==t.name)return!1;return!0},r=[];if(null!==this._progressInstanceInfo){var a=this._progressInstanceInfo.instance;(void 0===t||void 0!==t&&n(t,a))&&(r.push(this._progressInstanceInfo.paneId),null===(o=a.onRemoved)||void 0===o||o.call(a,{overlay:a}),this._progressInstanceInfo=null)}if(void 0!==t){var s=new Map,l=function(e){var i=e[1].filter((function(i){var o;return!n(t,i)||(r.includes(e[0])||r.push(e[0]),null===(o=i.onRemoved)||void 0===o||o.call(i,{overlay:i}),!1)}));i.length>0&&s.set(e[0],i)};try{for(var u=L(this._instances),c=u.next();!c.done;c=u.next()){l(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}this._instances=s}else this._instances.forEach((function(t,e){r.push(e),t.forEach((function(t){var e;null===(e=t.onRemoved)||void 0===e||e.call(t,{overlay:t})}))})),this._instances.clear();if(r.length>0){var h=this._chartStore.getChart();r.forEach((function(t){h.updatePane(1,t)})),h.updatePane(1,Kt.XAXIS)}},t.prototype.setPressedInstanceInfo=function(t){this._pressedInstanceInfo=t},t.prototype.getPressedInstanceInfo=function(){return this._pressedInstanceInfo},t.prototype.setHoverInstanceInfo=function(t,e){var i,o,r=this._hoverInstanceInfo,a=r.instance,s=r.figureKey,l=r.figureIndex;if(((null==a?void 0:a.id)!==(null===(i=t.instance)||void 0===i?void 0:i.id)||r.figureType!==t.figureType||l!==t.figureIndex)&&(this._hoverInstanceInfo=t,(null==a?void 0:a.id)!==(null===(o=t.instance)||void 0===o?void 0:o.id))){var u=!1,c=!1;null!==a&&(c=!0,a.resetZLevel(),n(a.onMouseLeave)&&(a.onMouseLeave(k({overlay:a,figureKey:s,figureIndex:l},e)),u=!0)),null!==t.instance&&(c=!0,t.instance.setZLevel(_t),n(t.instance.onMouseEnter)&&(t.instance.onMouseEnter(k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),u=!0)),c&&this._sort(),u||this._chartStore.getChart().updatePane(1)}},t.prototype.getHoverInstanceInfo=function(){return this._hoverInstanceInfo},t.prototype.setClickInstanceInfo=function(t,e){var i,o,n,r,a,s,l,u,c,h=this._clickInstanceInfo,d=h.paneId,p=h.instance,v=h.figureType,g=h.figureKey,f=h.figureIndex;if(null!==(o=null===(i=t.instance)||void 0===i?void 0:i.isDrawing())&&void 0!==o&&o||null===(r=null===(n=t.instance)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e)),((null==p?void 0:p.id)!==(null===(a=t.instance)||void 0===a?void 0:a.id)||v!==t.figureType||f!==t.figureIndex)&&(this._clickInstanceInfo=t,(null==p?void 0:p.id)!==(null===(s=t.instance)||void 0===s?void 0:s.id))){null===(l=null==p?void 0:p.onDeselected)||void 0===l||l.call(p,k({overlay:p,figureKey:g,figureIndex:f},e)),null===(c=null===(u=t.instance)||void 0===u?void 0:u.onSelected)||void 0===c||c.call(u,k({overlay:t.instance,figureKey:t.figureKey,figureIndex:t.figureIndex},e));var m=this._chartStore.getChart();m.updatePane(1,t.paneId),d!==t.paneId&&m.updatePane(1,d),m.updatePane(1,Kt.XAXIS)}},t.prototype.getClickInstanceInfo=function(){return this._clickInstanceInfo},t.prototype.isEmpty=function(){return 0===this._instances.size&&null===this._progressInstanceInfo},t.prototype.isDrawing=function(){var t,e;return null!==this._progressInstanceInfo&&null!==(e=null===(t=this._progressInstanceInfo)||void 0===t?void 0:t.instance.isDrawing())&&void 0!==e&&e},t}(),$t=function(){function t(){this._actions=new Map}return t.prototype.execute=function(t,e){var i;null===(i=this._actions.get(t))||void 0===i||i.execute(e)},t.prototype.subscribe=function(t,e){var i;this._actions.has(t)||this._actions.set(t,new V),null===(i=this._actions.get(t))||void 0===i||i.subscribe(e)},t.prototype.unsubscribe=function(t,e){var i=this._actions.get(t);void 0!==i&&(i.unsubscribe(e),i.isEmpty()&&this._actions.delete(t))},t.prototype.has=function(t){var e=this._actions.get(t);return void 0!==e&&!e.isEmpty()},t}(),Jt={light:{grid:{horizontal:{color:\\"#EDEDED\\"},vertical:{color:\\"#EDEDED\\"}},candle:{priceMark:{high:{color:\\"#76808F\\"},low:{color:\\"#76808F\\"}},tooltip:{rect:{color:\\"#FEFEFE\\",borderColor:\\"#F2F3F5\\"},text:{color:\\"#76808F\\"}}},indicator:{tooltip:{text:{color:\\"#76808F\\"}}},xAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},yAxis:{axisLine:{color:\\"#DDDDDD\\"},tickText:{color:\\"#76808F\\"},tickLine:{color:\\"#DDDDDD\\"}},separator:{color:\\"#DDDDDD\\"},crosshair:{horizontal:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}},vertical:{line:{color:\\"#76808F\\"},text:{borderColor:\\"#686D76\\",backgroundColor:\\"#686D76\\"}}}},dark:{grid:{horizontal:{color:\\"#292929\\"},vertical:{color:\\"#292929\\"}},candle:{priceMark:{high:{color:\\"#929AA5\\"},low:{color:\\"#929AA5\\"}},tooltip:{rect:{color:\\"rgba(10, 10, 10, .6)\\",borderColor:\\"rgba(10, 10, 10, .6)\\"},text:{color:\\"#929AA5\\"}}},indicator:{tooltip:{text:{color:\\"#929AA5\\"}}},xAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},yAxis:{axisLine:{color:\\"#333333\\"},tickText:{color:\\"#929AA5\\"},tickLine:{color:\\"#333333\\"}},separator:{color:\\"#333333\\"},crosshair:{horizontal:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}},vertical:{line:{color:\\"#929AA5\\"},text:{borderColor:\\"#373a40\\",backgroundColor:\\"#373a40\\"}}}}};function Qt(t){var e;return null!==(e=Jt[t])&&void 0!==e?e:null}var te=function(){function i(e,i){this._styles={grid:{show:!0,horizontal:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]},vertical:{show:!0,size:1,color:\\"#EDEDED\\",style:t.LineType.Dashed,dashedValue:[2,2]}},candle:{type:t.CandleType.CandleSolid,bar:{upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",upBorderColor:\\"#2DC08E\\",downBorderColor:\\"#F92855\\",noChangeBorderColor:\\"#888888\\",upWickColor:\\"#2DC08E\\",downWickColor:\\"#F92855\\",noChangeWickColor:\\"#888888\\"},area:{lineSize:2,lineColor:\\"#1677FF\\",value:\\"close\\",backgroundColor:[{offset:0,color:\\"rgba(22, 119, 255, 0.01)\\"},{offset:1,color:\\"rgba(22, 119, 255, 0.2)\\"}]},priceMark:{show:!0,high:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},low:{show:!0,color:\\"#76808F\\",textOffset:5,textSize:10,textFamily:\\"Helvetica Neue\\",textWeight:\\"normal\\"},last:{show:!0,upColor:\\"#2DC08E\\",downColor:\\"#F92855\\",noChangeColor:\\"#888888\\",line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,4],size:1},text:{show:!0,style:t.PolygonType.Fill,size:12,paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderColor:\\"transparent\\",borderStyle:t.LineType.Solid,borderSize:0,borderDashedValue:[2,2],color:\\"#FFFFFF\\",family:\\"Helvetica Neue\\",weight:\\"normal\\",borderRadius:2}}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,custom:null,defaultValue:\\"n/a\\",rect:{position:g.Fixed,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:8,offsetLeft:10,offsetTop:8,offsetRight:10,offsetBottom:8,borderRadius:4,borderSize:1,borderColor:\\"#F2F3F5\\",color:\\"#FEFEFE\\"},text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},indicator:{ohlc:{upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"},bars:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lines:[{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#FF9600\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#935EBD\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#1677FF\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#E11D74\\"},{style:t.LineType.Solid,smooth:!1,size:1,dashedValue:[2,2],color:\\"#01C5C4\\"}],circles:[{style:t.PolygonType.Fill,borderStyle:t.LineType.Solid,borderSize:1,borderDashedValue:[2,2],upColor:\\"rgba(45, 192, 142, .7)\\",downColor:\\"rgba(249, 40, 85, .7)\\",noChangeColor:\\"#888888\\"}],lastValueMark:{show:!1,text:{show:!1,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderColor:\\"transparent\\",borderSize:1,borderDashedValue:[2,2],paddingLeft:4,paddingTop:4,paddingRight:4,paddingBottom:4,borderRadius:2}},tooltip:{showRule:t.TooltipShowRule.Always,showType:t.TooltipShowType.Standard,showName:!0,showParams:!0,defaultValue:\\"n/a\\",text:{size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",color:\\"#76808F\\",marginLeft:10,marginTop:8,marginRight:6,marginBottom:0},icons:[]}},xAxis:{show:!0,size:\\"auto\\",axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},yAxis:{show:!0,size:\\"auto\\",type:t.YAxisType.Normal,position:t.YAxisPosition.Right,inside:!1,reverse:!1,axisLine:{show:!0,color:\\"#DDDDDD\\",size:1},tickText:{show:!0,color:\\"#76808F\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",marginStart:4,marginEnd:4},tickLine:{show:!0,size:1,length:3,color:\\"#DDDDDD\\"}},separator:{size:1,color:\\"#DDDDDD\\",fill:!0,activeBackgroundColor:\\"rgba(33, 150, 243, 0.08)\\"},crosshair:{show:!0,horizontal:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderColor:\\"#686D76\\",borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}},vertical:{show:!0,line:{show:!0,style:t.LineType.Dashed,dashedValue:[4,2],size:1,color:\\"#76808F\\"},text:{show:!0,style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#686D76\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#686D76\\"}}},overlay:{point:{color:\\"#1677FF\\",borderColor:\\"rgba(22, 119, 255, 0.35)\\",borderSize:1,radius:5,activeColor:\\"#1677FF\\",activeBorderColor:\\"rgba(22, 119, 255, 0.35)\\",activeBorderSize:3,activeRadius:5},line:{style:t.LineType.Solid,smooth:!1,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},rect:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderRadius:0,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},polygon:{style:t.PolygonType.Fill,color:\\"#1677FF\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},circle:{style:t.PolygonType.Fill,color:\\"rgba(22, 119, 255, 0.25)\\",borderColor:\\"#1677FF\\",borderSize:1,borderStyle:t.LineType.Solid,borderDashedValue:[2,2]},arc:{style:t.LineType.Solid,color:\\"#1677FF\\",size:1,dashedValue:[2,2]},text:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:0,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,backgroundColor:\\"transparent\\"},rectText:{style:t.PolygonType.Fill,color:\\"#FFFFFF\\",size:12,family:\\"Helvetica Neue\\",weight:\\"normal\\",borderStyle:t.LineType.Solid,borderDashedValue:[2,2],borderSize:1,borderRadius:2,borderColor:\\"#1677FF\\",paddingLeft:4,paddingRight:4,paddingTop:4,paddingBottom:4,backgroundColor:\\"#1677FF\\"}}},this._customApi={formatDate:b,formatBigNumber:w},this._locale=I,this._precision={price:2,volume:0},this._thousandsSeparator=\\",\\",this._dataList=[],this._timeScaleStore=new it(this),this._indicatorStore=new gt(this),this._overlayStore=new qt(this),this._tooltipStore=new ft(this),this._actionStore=new $t,this._visibleDataList=[],this._chart=e,this.setOptions(i)}return i.prototype.adjustVisibleDataList=function(){this._visibleDataList=[];for(var t=this._timeScaleStore.getVisibleRange(),e=t.to,i=t.from;e>i;i++){var o=this._dataList[i],n=this._timeScaleStore.dataIndexToCoordinate(i);this._visibleDataList.push({dataIndex:i,x:n,data:o})}},i.prototype.setOptions=function(t){if(void 0!==t){var i=t.locale,o=t.timezone,n=t.styles,r=t.customApi;void 0!==i&&(this._locale=i),void 0!==o&&this._timeScaleStore.setTimezone(o),void 0!==n&&(u(n)?e(this._styles,Qt(n)):e(this._styles,n)),void 0!==r&&e(this._customApi,r),void 0!==t.thousandsSeparator&&(this._thousandsSeparator=t.thousandsSeparator)}return this},i.prototype.getStyles=function(){return this._styles},i.prototype.getLocale=function(){return this._locale},i.prototype.getCustomApi=function(){return this._customApi},i.prototype.getThousandsSeparator=function(){return this._thousandsSeparator},i.prototype.getPrecision=function(){return this._precision},i.prototype.setPrecision=function(t){return this._precision=t,this._indicatorStore.setSeriesPrecision(t),this},i.prototype.getDataList=function(){return this._dataList},i.prototype.getVisibleDataList=function(){return this._visibleDataList},i.prototype.addData=function(t,e,i){if(o(t)){this._timeScaleStore.setLoading(!1),this._timeScaleStore.setMore(null==i||i);var n=0===this._dataList.length;this._dataList=t.concat(this._dataList),n&&this._timeScaleStore.resetOffsetRightDistance(),this._timeScaleStore.adjustVisibleRange()}else{if(er&&this._timeScaleStore.setOffsetRightBarCount(--r),this._timeScaleStore.adjustVisibleRange()}}this._tooltipStore.recalculateCrosshair(!0)},i.prototype.clear=function(){this._dataList=[],this._visibleDataList=[],this._timeScaleStore.clear(),this._tooltipStore.clear()},i.prototype.getTimeScaleStore=function(){return this._timeScaleStore},i.prototype.getIndicatorStore=function(){return this._indicatorStore},i.prototype.getOverlayStore=function(){return this._overlayStore},i.prototype.getTooltipStore=function(){return this._tooltipStore},i.prototype.getActionStore=function(){return this._actionStore},i.prototype.getChart=function(){return this._chart},i}();function ee(t){return null==window.requestAnimationFrame?window.setTimeout(t,20):window.requestAnimationFrame(t)}function ie(t){null==window.cancelAnimationFrame&&window.clearTimeout(t),window.cancelAnimationFrame(t)}var oe=-1,ne=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._mainRequestAnimationId=oe,e._overlayRequestAnimationId=oe,e}return P(e,t),e.prototype.getContainerStyle=function(){return{margin:\\"0\\",padding:\\"0\\",position:\\"absolute\\",top:\\"0\\",overflow:\\"hidden\\",boxSizing:\\"border-box\\"}},e.prototype.initDom=function(t){this._mainCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._mainCtx=this._mainCanvas.getContext(\\"2d\\"),this._overlayCanvas=Y(\\"canvas\\",{position:\\"absolute\\",top:\\"0\\",left:\\"0\\",zIndex:\\"2\\",boxSizing:\\"border-box\\"}),this._overlayCtx=this._overlayCanvas.getContext(\\"2d\\"),t.appendChild(this._mainCanvas),t.appendChild(this._overlayCanvas)},e.prototype._optimalUpdateMain=function(t,e){var i=this;this._mainRequestAnimationId!==oe&&(ie(this._mainRequestAnimationId),this._mainRequestAnimationId=oe),this._mainRequestAnimationId=ee((function(){if(t!==i._mainCanvas.offsetWidth||e!==i._mainCanvas.offsetHeight){i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);var o=X(i._mainCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._mainCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._mainCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._mainCanvas.width=n,i._mainCanvas.height=r,i._mainCtx.scale(o,o)}else i._mainCtx.clearRect(0,0,i._mainCanvas.offsetWidth,i._mainCanvas.offsetHeight);i.updateMain(i._mainCtx)}))},e.prototype._optimalUpdateOverlay=function(t,e){var i=this;this._overlayRequestAnimationId!==oe&&(ie(this._overlayRequestAnimationId),this._overlayRequestAnimationId=oe),this._overlayRequestAnimationId=ee((function(){if(t!==i._overlayCanvas.offsetWidth||e!==i._overlayCanvas.offsetHeight){i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);var o=X(i._overlayCanvas),n=Math.floor(t*o),r=Math.floor(e*o);i._overlayCanvas.style.width=\\"\\".concat(t,\\"px\\"),i._overlayCanvas.style.height=\\"\\".concat(e,\\"px\\"),i._overlayCanvas.width=n,i._overlayCanvas.height=r,i._overlayCtx.scale(o,o)}else i._overlayCtx.clearRect(0,0,i._overlayCanvas.offsetWidth,i._overlayCanvas.offsetHeight);i.updateOverlay(i._overlayCtx)}))},e.prototype.updateImp=function(t,e,i){var o=e.width,n=e.height;t.style.left=\\"\\".concat(e.left,\\"px\\");var r=i;switch(o===t.offsetWidth&&n===t.offsetHeight||(t.style.width=\\"\\".concat(o,\\"px\\"),t.style.height=\\"\\".concat(n,\\"px\\"),r=3),r){case 0:this._optimalUpdateMain(o,n);break;case 1:this._optimalUpdateOverlay(o,n);break;case 3:case 4:this._optimalUpdateMain(o,n),this._optimalUpdateOverlay(o,n)}},e.prototype.getImage=function(t){var e=this.getBounding(),i=e.width,o=e.height,n=Y(\\"canvas\\",{width:\\"\\".concat(i,\\"px\\"),height:\\"\\".concat(o,\\"px\\"),boxSizing:\\"border-box\\"}),r=n.getContext(\\"2d\\"),a=X(n);return n.width=i*a,n.height=o*a,r.scale(a,a),r.drawImage(this._mainCanvas,0,0,i,o),t&&r.drawImage(this._overlayCanvas,0,0,i,o),n},e}(jt);function re(t,e){var i=t.x-e.x,o=t.y-e.y,n=e.r;return!(i*i+o*o>n*n)}function ae(e,i,o){var n=i.x,r=i.y,a=i.r,s=o.style,l=void 0===s?t.PolygonType.Fill:s,u=o.color,c=o.borderSize,h=void 0===c?1:c,d=o.borderColor,p=void 0===d?\\"currentColor\\":d,v=o.borderStyle,g=void 0===v?t.LineType.Solid:v,f=o.borderDashedValue,m=void 0===f?[2,2]:f;l!==t.PolygonType.Fill&&o.style!==t.PolygonType.StrokeFill||(e.fillStyle=void 0===u?\\"currentColor\\":u,e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.fill()),l!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||(e.strokeStyle=p,e.lineWidth=h,e.setLineDash(g===t.LineType.Dashed?m:[]),e.beginPath(),e.arc(n,r,a,0,2*Math.PI),e.closePath(),e.stroke())}var se={name:\\"circle\\",checkEventOn:re,draw:function(t,e,i){ae(t,e,i)}};function le(t,e){for(var i=!1,o=e.coordinates,n=0,r=o.length-1;o.length>n;r=n++)o[n].y>t.y!=o[r].y>t.y&&(o[r].x-o[n].x)*(t.y-o[n].y)/(o[r].y-o[n].y)+o[n].x>t.x&&(i=!i);return i}function ue(e,i,o){var n=i.coordinates,r=o.style,a=void 0===r?t.PolygonType.Fill:r,s=o.color,l=o.borderSize,u=void 0===l?1:l,c=o.borderColor,h=void 0===c?\\"currentColor\\":c,d=o.borderStyle,p=void 0===d?t.LineType.Solid:d,v=o.borderDashedValue,g=void 0===v?[2,2]:v;if(a===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){e.fillStyle=void 0===s?\\"currentColor\\":s,e.beginPath(),e.moveTo(n[0].x,n[0].y);for(var f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.fill()}if(a===t.PolygonType.Stroke||o.style===t.PolygonType.StrokeFill){e.strokeStyle=h,e.lineWidth=u,e.setLineDash(p===t.LineType.Dashed?g:[]),e.beginPath(),e.moveTo(n[0].x,n[0].y);for(f=1;n.length>f;f++)e.lineTo(n[f].x,n[f].y);e.closePath(),e.stroke()}}var ce={name:\\"polygon\\",checkEventOn:le,draw:function(t,e,i){ue(t,e,i)}};function he(t){return\\"transparent\\"===t}function de(t,e){var i=e.x,o=e.width;2*Tt>o&&(i-=Tt,o=2*Tt);var n=e.y,r=e.height;return 2*Tt>r&&(n-=Tt,r=2*Tt),!(i>t.x||t.x>i+o||n>t.y||t.y>n+r)}function pe(e,i,o){var n=i.x,r=i.y,a=i.width,s=i.height,l=o.style,c=void 0===l?t.PolygonType.Fill:l,h=o.color,d=void 0===h?\\"transparent\\":h,p=o.borderSize,v=void 0===p?1:p,g=o.borderColor,f=void 0===g?\\"transparent\\":g,m=o.borderStyle,y=void 0===m?t.LineType.Solid:m,_=o.borderRadius,x=void 0===_?0:_,S=o.borderDashedValue,C=void 0===S?[2,2]:S;if(c===t.PolygonType.Fill||o.style===t.PolygonType.StrokeFill){var b=!0;u(d)&&(b=!he(d)),b&&(e.fillStyle=d,e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.fill())}c!==t.PolygonType.Stroke&&o.style!==t.PolygonType.StrokeFill||he(f)||0>v||(e.strokeStyle=f,e.lineWidth=v,e.setLineDash(y===t.LineType.Dashed?C:[]),e.beginPath(),e.moveTo(n+x,r),e.arcTo(n+a,r,n+a,r+s,x),e.arcTo(n+a,r+s,n,r+s,x),e.arcTo(n,r+s,n,r,x),e.arcTo(n,r,n+a,r,x),e.closePath(),e.stroke())}var ve={name:\\"rect\\",checkEventOn:de,draw:function(t,e,i){pe(t,e,i)}};function ge(t,e){var i,o,n=e.size,r=void 0===n?12:n,a=e.paddingLeft,s=e.paddingTop,l=void 0===s?0:s,u=e.paddingRight,c=void 0===u?0:u,h=e.paddingBottom,d=void 0===h?0:h,p=e.weight,v=t.x,g=t.y,f=t.align,m=void 0===f?\\"left\\":f,y=t.baseline,_=void 0===y?\\"top\\":y,x=t.width,S=t.height,C=null!=x?x:(void 0===a?0:a)+j(t.text,r,void 0===p?\\"normal\\":p,e.family)+c,b=null!=S?S:l+r+d;switch(m){case\\"left\\":case\\"start\\":i=v;break;case\\"right\\":case\\"end\\":i=v-C;break;default:i=v-C/2}switch(_){case\\"top\\":case\\"hanging\\":o=g;break;case\\"bottom\\":case\\"ideographic\\":case\\"alphabetic\\":o=g-b;break;default:o=g-b/2}return{x:i,y:o,width:C,height:b}}function fe(t,e,i){var o=ge(e,i),n=o.x,r=o.y;return!(n>t.x||t.x>n+o.width||r>t.y||t.y>r+o.height)}function me(t,e,i){var o=e.text,n=i.color,r=void 0===n?\\"currentColor\\":n,a=i.size,s=void 0===a?12:a,l=i.family,u=i.weight,c=i.paddingLeft,h=void 0===c?0:c,d=i.paddingTop,p=void 0===d?0:d,v=i.paddingRight,g=void 0===v?0:v,f=ge(e,i);pe(t,f,k(k({},i),{color:i.backgroundColor})),t.textAlign=\\"left\\",t.textBaseline=\\"top\\",t.font=H(s,u,l),t.fillStyle=r,t.fillText(o,f.x+h,f.y+p,f.width-h-g)}var ye={name:\\"text\\",checkEventOn:function(t,e,i){return fe(t,e,i)},draw:function(t,e,i){me(t,e,i)}},_e=me;function xe(t,e){if(Math.abs(Math.sqrt((h=(u=t).x-(c=e).x)*h+(d=u.y-c.y)*d)-e.r)Math.max(r,s)+Tt||Math.min(r,s)-Tt>t.x||t.y>Math.max(a,l)+Tt||Math.min(a,l)-Tt>t.y)}var u,c,h,d;return!1}function Se(e,i,o){var n=i.x,r=i.y,a=i.r,s=i.startAngle,l=i.endAngle,u=o.style,c=void 0===u?t.LineType.Solid:u,h=o.size,d=o.color,p=void 0===d?\\"currentColor\\":d,v=o.dashedValue,g=void 0===v?[2,2]:v;e.lineWidth=void 0===h?1:h,e.strokeStyle=p,e.setLineDash(c===t.LineType.Dashed?g:[]),e.beginPath(),e.arc(n,r,a,s,l),e.stroke(),e.closePath()}var Ce={name:\\"arc\\",checkEventOn:xe,draw:function(t,e,i){Se(t,e,i)}},be={};[se,Ft,ce,ve,ye,ye,Ce].forEach((function(t){be[t.name]=wt.extend(t)}));var Te=function(t){function e(e){var i=t.call(this)||this;return i._widget=e,i}return P(e,t),e.prototype.getWidget=function(){return this._widget},e.prototype.createFigure=function(t,e,i,o){var n=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null}(t);if(null!==n){var r=new n({name:t,attrs:e,styles:i});if(void 0!==o){for(var a in o)o.hasOwnProperty(a)&&r.registerEvent(a,o[a]);this.addChild(r)}return r}return null},e.prototype.draw=function(t){this.clear(),this.drawImp(t)},e}(bt),we=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=this.getWidget().getPane(),r=n.getChart(),a=o.getBounding(),s=r.getStyles().grid;if(s.show){t.save(),t.globalCompositeOperation=\\"destination-over\\";var l=s.horizontal;if(l.show)n.getAxisComponent().getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:0,y:e.coord},{x:a.width,y:e.coord}]},l))||void 0===o||o.draw(t)}));var u=s.vertical;if(u.show)(null===(e=r.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent()).getTicks().forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",{coordinates:[{x:e.coord,y:0},{x:e.coord,y:a.height}]},u))||void 0===o||o.draw(t)}));t.restore()}},e}(Te),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.eachChildren=function(t){var e=this.getWidget().getPane().getChart().getChartStore(),i=e.getVisibleDataList(),o=e.getTimeScaleStore().getBarSpace();i.forEach((function(e,i){t(e,o,i)}))},e}(Te),Ie=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundCandleBarClickEvent=function(e){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnCandleBarClick,e),!1}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this,i=this.getWidget().getPane(),o=i.getId()===Kt.CANDLE,n=i.getChart().getChartStore(),r=this.getCandleBarOptions(n);if(null!==r){var a=i.getAxisComponent();this.eachChildren((function(i,n){e._drawCandleBar(t,a,i,n,r,o)}))}},i.prototype.getCandleBarOptions=function(t){var e=t.getStyles().candle;return{type:e.type,styles:e.bar}},i.prototype._drawCandleBar=function(e,i,o,n,r,a){var s,l,u,c=this,h=o.data,d=o.x,p=h.open,v=h.high,g=h.low,f=h.close,m=n.halfGapBar,y=n.gapBar,_=r.type,x=r.styles;f>p?(s=x.upColor,l=x.upBorderColor,u=x.upWickColor):p>f?(s=x.downColor,l=x.downBorderColor,u=x.downWickColor):(s=x.noChangeColor,l=x.noChangeBorderColor,u=x.noChangeWickColor);var S=i.convertToPixel(p),C=i.convertToPixel(f),b=[S,C,i.convertToPixel(v),i.convertToPixel(g)];b.sort((function(t,e){return t-e}));var T=Math.max(1,b[2]-b[1]),w=[];_!==t.CandleType.Ohlc?(w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[1]-b[0]},styles:{color:u}}),w.push(_===t.CandleType.CandleStroke||_===t.CandleType.CandleUpStroke&&f>p||_===t.CandleType.CandleDownStroke&&p>f?{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.Stroke,borderColor:l}}:{name:\\"rect\\",attrs:{x:d-m+.5,y:b[1],width:y-1,height:T},styles:{style:t.PolygonType.StrokeFill,color:s,borderColor:l}}),w.push({name:\\"rect\\",attrs:{x:d-.5,y:b[2],width:1,height:b[3]-b[2]},styles:{color:u}})):w=[{name:\\"rect\\",attrs:{x:d-.5,y:b[0],width:1,height:b[3]-b[0]},styles:{color:s}},{name:\\"rect\\",attrs:{x:d-m,y:S,width:m,height:1},styles:{color:s}},{name:\\"rect\\",attrs:{x:d,y:C,width:m,height:1},styles:{color:s}}],w.forEach((function(t){var i,n,r=t.attrs,s=t.styles;a&&(n={mouseClickEvent:c._boundCandleBarClickEvent(o)}),null===(i=c.createFigure(\\"rect\\",r,s,n))||void 0===i||i.draw(e)}))},i}(Ee),De=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.getCandleBarOptions=function(e){var i,o,n=this.getWidget().getPane();if(!n.getAxisComponent().isInCandle()){var r=e.getIndicatorStore().getInstances(n.getId());try{for(var a=L(r),s=a.next();!s.done;s=a.next()){var l=s.value[1];if(l.shouldOhlc&&l.visible){var u=l.styles,c=e.getStyles().indicator,h=C(u,\\"ohlc.upColor\\",c.ohlc.upColor),d=C(u,\\"ohlc.downColor\\",c.ohlc.downColor),p=C(u,\\"ohlc.noChangeColor\\",c.ohlc.noChangeColor);return{type:t.CandleType.Ohlc,styles:{upColor:h,downColor:d,noChangeColor:p,upBorderColor:h,downBorderColor:d,noChangeBorderColor:p,upWickColor:h,downWickColor:d,noChangeWickColor:p}}}}}catch(t){i={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}return null},i.prototype.drawImp=function(t){var i,o=this;e.prototype.drawImp.call(this,t);var n=this.getWidget(),r=n.getPane(),l=r.getChart(),u=n.getBounding(),c=null===(i=l.getPaneById(Kt.XAXIS))||void 0===i?void 0:i.getAxisComponent(),h=r.getAxisComponent(),d=l.getChartStore(),p=d.getDataList(),v=d.getTimeScaleStore(),g=v.getVisibleRange(),f=d.getIndicatorStore().getInstances(r.getId()),m=d.getStyles().indicator;f.forEach((function(e){var i;if(e.visible){var n=!1;if(null!==e.draw&&(t.save(),n=null!==(i=e.draw({ctx:t,kLineDataList:p,indicator:e,visibleRange:g,bounding:u,barSpace:v.getBarSpace(),defaultStyles:m,xAxis:c,yAxis:h}))&&void 0!==i&&i,t.restore()),!n){var r=e.result;o.eachChildren((function(i,n){var l,d,v,g=n.halfGapBar,f=n.gapBar,y=i.dataIndex,_=i.x,x=c.convertToPixel(y-1),S=c.convertToPixel(y+1),C=null!==(l=r[y-1])&&void 0!==l?l:{},b=null!==(d=r[y])&&void 0!==d?d:{},T=null!==(v=r[y+1])&&void 0!==v?v:{},w={x:x},E={x:_},I={x:S};e.figures.forEach((function(t){var e=t.key;w[e]=h.convertToPixel(C[e]),E[e]=h.convertToPixel(b[e]),I[e]=h.convertToPixel(T[e])})),ot(p,e,y,m,(function(e,i){var r,l,d;if(s(b[e.key])){var p=E[e.key],v=null===(r=e.attrs)||void 0===r?void 0:r.call(e,{coordinate:{prev:w,current:E,next:I},bounding:u,barSpace:n,xAxis:c,yAxis:h});if(!s(v))switch(e.type){case\\"circle\\":v={x:_,y:p,r:g};break;case\\"rect\\":case\\"bar\\":var m=null!==(l=e.baseValue)&&void 0!==l?l:h.getExtremum().min,y=h.convertToPixel(m),x=Math.abs(y-p);m!==b[e.key]&&(x=Math.max(1,x));v={x:_-g,y:p>y?y:p,width:f,height:x};break;case\\"line\\":a(E[e.key])&&a(I[e.key])&&(v={coordinates:[{x:E.x,y:E[e.key]},{x:I.x,y:I[e.key]}]})}if(s(v)){var S=e.type;null===(d=o.createFigure(\\"bar\\"===S?\\"rect\\":S,v,i))||void 0===d||d.draw(t)}}}))}))}}}))},i}(Ie),Pe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=e.getBounding(),n=e.getPane().getChart().getChartStore(),r=n.getTooltipStore().getCrosshair(),a=n.getStyles().crosshair;if(void 0!==r.paneId&&a.show){if(r.paneId===i.getId()){var s=r.y;this._drawLine(t,[{x:0,y:s},{x:o.width,y:s}],a.horizontal)}var l=r.realX;this._drawLine(t,[{x:l,y:0},{x:l,y:o.height}],a.vertical)}},e.prototype._drawLine=function(t,e,i){var o;if(i.show){var n=i.line;n.show&&(null===(o=this.createFigure(\\"line\\",{coordinates:e},n))||void 0===o||o.draw(t))}},e}(Te),Me=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._boundIconClickEvent=function(e,o){return function(){return i.getWidget().getPane().getChart().getChartStore().getActionStore().execute(t.ActionType.OnTooltipIconClick,k(k({},e),{iconId:o})),!0}},i._boundIconMouseMoveEvent=function(t,e){return function(){return i.getWidget().getPane().getChart().getChartStore().getTooltipStore().setActiveIcon(k(k({},t),{iconId:e})),!0}},i}return P(i,e),i.prototype.drawImp=function(t){var e=this.getWidget(),i=e.getPane(),o=i.getChart().getChartStore(),n=o.getTooltipStore().getCrosshair();if(void 0!==n.kLineData){var r=e.getBounding(),a=o.getCustomApi(),s=o.getThousandsSeparator(),l=o.getIndicatorStore().getInstances(i.getId()),u=o.getTooltipStore().getActiveIcon(),c=o.getStyles().indicator;this.drawIndicatorTooltip(t,i.getId(),o.getDataList(),n,u,l,a,s,r,c)}},i.prototype.drawIndicatorTooltip=function(t,e,i,o,n,r,a,s,l,u,c){var h=this,d=u.tooltip,p=0;if(this.isDrawTooltip(o,d)){var v=d.text,g=0,f=null!=c?c:0,m=0;r.forEach((function(r){var c=h.getIndicatorTooltipData(i,o,r,a,s,u),d=c.name,y=c.calcParamsText,_=c.values,x=d.length>0,S=_.length>0;if(x||S){var C=R(h.classifyTooltipIcons(c.icons),3),b=C[1],T=C[2],w=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,C[0],g,f,m),4);if(g=w[0],f=w[1],p+=w[3],m=w[2],x){var E=d;y.length>0&&(E=\\"\\".concat(E).concat(y));var I=R(h.drawStandardTooltipLabels(t,l,[{title:{text:\\"\\",color:v.color},value:{text:E,color:v.color}}],g,f,m,v),4);g=I[0],f=I[1],p+=I[3],m=I[2]}var D=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,b,g,f,m),4);if(g=D[0],f=D[1],p+=D[3],m=D[2],S){var P=R(h.drawStandardTooltipLabels(t,l,_,g,f,m,v),4);g=P[0],f=P[1],p+=P[3],m=P[2]}var M=R(h.drawStandardTooltipIcons(t,l,{paneId:e,indicatorName:r.name,iconId:\\"\\"},n,T,g,f,m),4);g=0,p+=M[3],f=M[1]+M[2],m=0}}))}return p},i.prototype.drawStandardTooltipIcons=function(t,e,i,o,n,r,a,s){var l=this,u=r,c=a,h=0,d=0,p=0;return n.length>0&&(n.forEach((function(e){var i=e.marginLeft,o=e.marginTop,n=e.marginRight,r=e.marginBottom,a=e.paddingLeft,s=e.paddingTop,l=e.paddingRight,u=e.paddingBottom,c=e.size,p=e.icon;t.font=H(c,\\"normal\\",e.fontFamily),h+=i+a+t.measureText(p).width+l+n,d=Math.max(d,o+s+c+u+r)})),u+h>e.width?(u=n[0].marginLeft,c+=s,p=d):p=Math.max(0,d-s),n.forEach((function(e){var n,r=e.marginRight,a=e.paddingLeft,s=e.paddingRight,h=e.icon,d=(null==o?void 0:o.paneId)===i.paneId&&(null==o?void 0:o.indicatorName)===i.indicatorName&&(null==o?void 0:o.iconId)===e.id;null===(n=l.createFigure(\\"text\\",{text:h,x:u+=e.marginLeft,y:c+e.marginTop},{paddingLeft:a,paddingTop:e.paddingTop,paddingRight:s,paddingBottom:e.paddingBottom,color:d?e.activeColor:e.color,size:e.size,family:e.fontFamily,backgroundColor:d?e.activeBackgroundColor:e.backgroundColor},{mouseClickEvent:l._boundIconClickEvent(i,e.id),mouseMoveEvent:l._boundIconMouseMoveEvent(i,e.id)}))||void 0===n||n.draw(t),u+=a+t.measureText(h).width+s+r}))),[u,c,Math.max(s,d),p]},i.prototype.drawStandardTooltipLabels=function(t,e,i,o,n,r,a){var s=this,l=o,u=n,c=0,h=0,d=r;if(i.length>0){var p=a.marginLeft,v=a.marginTop,g=a.marginRight,f=a.marginBottom,m=a.size,y=a.family,_=a.weight;t.font=H(m,_,y),i.forEach((function(i){var o,n,r=i.title,a=i.value,x=t.measureText(r.text).width,S=t.measureText(a.text).width,C=m+v+f;l+p+(x+S)+g>e.width?(l=p,u+=C,h+=C):(l+=p,h+=Math.max(0,C-d)),d=c=Math.max(d,C),r.text.length>0&&(null===(o=s.createFigure(\\"text\\",{x:l,y:u+v,text:r.text},{color:r.color,size:m,family:y,weight:_}))||void 0===o||o.draw(t),l+=x),null===(n=s.createFigure(\\"text\\",{x:l,y:u+v,text:a.text},{color:a.color,size:m,family:y,weight:_}))||void 0===n||n.draw(t),l+=S+g}))}return[l,u,c,h]},i.prototype.isDrawTooltip=function(e,i){var o=i.showRule;return o===t.TooltipShowRule.Always||o===t.TooltipShowRule.FollowCross&&void 0!==e.paneId},i.prototype.getIndicatorTooltipData=function(t,e,i,o,n,a){var l,u,c,h=a.tooltip,d=h.showName?i.shortName:\\"\\",p=\\"\\",v=i.calcParams;v.length>0&&h.showParams&&(p=\\"(\\".concat(v.join(\\",\\"),\\")\\"));var g={name:d,calcParamsText:p,values:[],icons:h.icons},f=e.dataIndex,m=null!==(l=i.result)&&void 0!==l?l:[],y=[];if(i.visible){var _=null!==(u=m[f])&&void 0!==u?u:{};ot(t,i,f,a,(function(t,e){if(void 0!==t.title){var r=e.color,a=_[t.key];s(a)&&(a=T(a,i.precision),i.shouldFormatBigNumber&&(a=o.formatBigNumber(a))),y.push({title:{text:t.title,color:r},value:{text:E(null!=a?a:h.defaultValue,n),color:r}})}})),g.values=y}if(null!==i.createTooltipDataSource){var x=this.getWidget(),S=x.getPane(),C=S.getChart().getChartStore(),b=i.createTooltipDataSource({kLineDataList:t,indicator:i,visibleRange:C.getTimeScaleStore().getVisibleRange(),bounding:x.getBounding(),crosshair:e,defaultStyles:a,xAxis:null===(c=S.getChart().getPaneById(Kt.XAXIS))||void 0===c?void 0:c.getAxisComponent(),yAxis:S.getAxisComponent()}),w=b.name,I=b.calcParamsText,D=b.values,P=b.icons;if(void 0!==w&&h.showName&&(g.name=w),void 0!==I&&h.showParams&&(g.calcParamsText=I),void 0!==P&&(g.icons=P),void 0!==D&&i.visible){var M=[],k=a.tooltip.text.color;D.forEach((function(t){var e={text:\\"\\",color:k};r(t.title)?e=t.title:e.text=t.title;var i={text:\\"\\",color:k};r(t.value)?i=t.value:i.text=t.value,i.text=E(i.text,n),M.push({title:e,value:i})})),g.values=M}}return g},i.prototype.classifyTooltipIcons=function(e){var i=[],o=[],n=[];return e.forEach((function(e){switch(e.position){case t.TooltipIconPosition.Left:i.push(e);break;case t.TooltipIconPosition.Middle:o.push(e);break;case t.TooltipIconPosition.Right:n.push(e)}})),[i,o,n]},i}(Te),ke=function(e){function i(t){var i=e.call(this,t)||this;return i._initEvent(),i}return P(i,e),i.prototype._initEvent=function(){var t=this,e=this.getWidget().getPane(),i=e.getId(),o=e.getChart().getChartStore().getOverlayStore();this.registerEvent(\\"mouseMoveEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;a.isStart()&&(o.updateProgressInstanceInfo(i),s=i);var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);return a.isDrawing()&&s===i&&(a.eventMoveForDrawing(t._coordinateToPoint(r.instance,e)),null===(n=a.onDrawing)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))),t._figureMouseMoveEvent(a,1,u,l,0)(e)}return o.setHoverInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseClickEvent\\",(function(e){var n,r,a=o.getProgressInstanceInfo();if(null!==a){var s=a.instance,l=a.paneId;s.isStart()&&(o.updateProgressInstanceInfo(i,!0),l=i);var u=s.points.length-1,c=\\"\\".concat(yt,\\"point_\\").concat(u);return s.isDrawing()&&l===i&&(s.eventMoveForDrawing(t._coordinateToPoint(s,e)),null===(n=s.onDrawing)||void 0===n||n.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)),s.nextStep(),s.isDrawing()||(o.progressInstanceComplete(),null===(r=s.onDrawEnd)||void 0===r||r.call(s,k({overlay:s,figureKey:c,figureIndex:u},e)))),t._figureMouseClickEvent(s,1,c,u,0)(e)}return o.setClickInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1},e),!1})).registerEvent(\\"mouseDoubleClickEvent\\",(function(e){var n,r=o.getProgressInstanceInfo();if(null!==r){var a=r.instance,s=r.paneId;if(a.isDrawing()&&s===i&&(a.forceComplete(),!a.isDrawing())){o.progressInstanceComplete();var l=a.points.length-1,u=\\"\\".concat(yt,\\"point_\\").concat(l);null===(n=a.onDrawEnd)||void 0===n||n.call(a,k({overlay:a,figureKey:u,figureIndex:l},e))}var c=a.points.length-1;return t._figureMouseClickEvent(a,1,\\"\\".concat(yt,\\"point_\\").concat(c),c,0)(e)}return!1})).registerEvent(\\"mouseRightClickEvent\\",(function(e){var i=o.getProgressInstanceInfo();if(null!==i){var n=i.instance;if(n.isDrawing()){var r=n.points.length-1;return t._figureMouseRightClickEvent(n,1,\\"\\".concat(yt,\\"point_\\").concat(r),r,0)(e)}}return!1})).registerEvent(\\"mouseUpEvent\\",(function(t){var e,n=o.getPressedInstanceInfo(),r=n.instance;return null!==r&&(null===(e=r.onPressedMoveEnd)||void 0===e||e.call(r,k({overlay:r,figureKey:n.figureKey,figureIndex:n.figureIndex},t))),o.setPressedInstanceInfo({paneId:i,instance:null,figureType:0,figureKey:\\"\\",figureIndex:-1,attrsIndex:-1}),!1})).registerEvent(\\"pressedMouseMoveEvent\\",(function(e){var i,n,r=o.getPressedInstanceInfo(),a=r.instance,s=r.figureType,l=r.figureIndex;if(null!==a){if(!(a.lock||null!==(n=null===(i=a.onPressedMoving)||void 0===i?void 0:i.call(a,k({overlay:a,figureIndex:l,figureKey:r.figureKey},e)))&&void 0!==n&&n)){var u=t._coordinateToPoint(a,e);1===s?a.eventPressedPointMove(u,l):a.eventPressedOtherMove(u,t.getWidget().getPane().getChart().getChartStore().getTimeScaleStore())}return!0}return!1}))},i.prototype._createFigureEvents=function(t,e,i,o,n,r){var a;if(!t.isDrawing()){var s=[];if(void 0!==r&&(l(r)?r&&(s=[\\"mouseClickEvent\\",\\"mouseDoubleClickEvent\\",\\"mouseRightClickEvent\\",\\"tapEvent\\",\\"doubleTapEvent\\",\\"mouseDownEvent\\",\\"touchStartEvent\\",\\"mouseMoveEvent\\",\\"touchMoveEvent\\"]):s=r),0===s.length)return{mouseMoveEvent:this._figureMouseMoveEvent(t,e,i,o,n),mouseDownEvent:this._figureMouseDownEvent(t,e,i,o,n),mouseClickEvent:this._figureMouseClickEvent(t,e,i,o,n),mouseRightClickEvent:this._figureMouseRightClickEvent(t,e,i,o,n),mouseDoubleClickEvent:this._figureMouseDoubleClickEvent(t,e,i,o,n)};a={},s.includes(\\"mouseMoveEvent\\")||s.includes(\\"touchMoveEvent\\")||(a.mouseMoveEvent=this._figureMouseMoveEvent(t,e,i,o,n)),s.includes(\\"mouseDownEvent\\")||s.includes(\\"touchStartEvent\\")||(a.mouseDownEvent=this._figureMouseDownEvent(t,e,i,o,n)),s.includes(\\"mouseClickEvent\\")||s.includes(\\"tapEvent\\")||(a.mouseClickEvent=this._figureMouseClickEvent(t,e,i,o,n)),s.includes(\\"mouseDoubleClickEvent\\")||s.includes(\\"doubleTapEvent\\")||(a.mouseDoubleClickEvent=this._figureMouseDoubleClickEvent(t,e,i,o,n)),s.includes(\\"mouseRightClickEvent\\")||(a.mouseRightClickEvent=this._figureMouseRightClickEvent(t,e,i,o,n))}return a},i.prototype._figureMouseMoveEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane();return s.getChart().getChartStore().getOverlayStore().setHoverInstanceInfo({paneId:s.getId(),instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDownEvent=function(t,e,i,o,n){var r=this;return function(a){var s,l=r.getWidget().getPane(),u=l.getId(),c=l.getChart().getChartStore().getOverlayStore();return t.startPressedMove(r._coordinateToPoint(t,a)),null===(s=t.onPressedMoveStart)||void 0===s||s.call(t,k({overlay:t,figureIndex:o,figureKey:i},a)),c.setPressedInstanceInfo({paneId:u,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n}),!0}},i.prototype._figureMouseClickEvent=function(t,e,i,o,n){var r=this;return function(a){var s=r.getWidget().getPane(),l=s.getId();return s.getChart().getChartStore().getOverlayStore().setClickInstanceInfo({paneId:l,instance:t,figureType:e,figureKey:i,figureIndex:o,attrsIndex:n},a),!0}},i.prototype._figureMouseDoubleClickEvent=function(t,e,i,o,n){return function(e){var n;return null===(n=t.onDoubleClick)||void 0===n||n.call(t,k(k({},e),{figureIndex:o,figureKey:i,overlay:t})),!0}},i.prototype._figureMouseRightClickEvent=function(t,e,i,o,n){var r=this;return function(e){var n,a;null!==(a=null===(n=t.onRightClick)||void 0===n?void 0:n.call(t,k({overlay:t,figureIndex:o,figureKey:i},e)))&&void 0!==a&&a||r.getWidget().getPane().getChart().getChartStore().getOverlayStore().removeInstance(t);return!0}},i.prototype._coordinateToPoint=function(e,i){var o,n,r={},a=this.getWidget().getPane(),s=a.getChart(),l=a.getId(),u=s.getChartStore().getTimeScaleStore();if(this.coordinateToPointTimestampDataIndexFlag()){var c=(null===(o=s.getPaneById(Kt.XAXIS))||void 0===o?void 0:o.getAxisComponent()).convertFromPixel(i.x),h=null!==(n=u.dataIndexToTimestamp(c))&&void 0!==n?n:void 0;r.dataIndex=c,r.timestamp=h}if(this.coordinateToPointValueFlag()){var d=a.getAxisComponent(),p=d.convertFromPixel(i.y);if(e.mode!==t.OverlayMode.Normal&&l===Kt.CANDLE&&void 0!==r.dataIndex){var v=u.getDataByDataIndex(r.dataIndex);if(null!==v){var g=e.modeSensitivity;if(p>v.high)if(e.mode===t.OverlayMode.WeakMagnet){var f=d.convertToPixel(v.high);d.convertFromPixel(f-g)>p&&(p=v.high)}else p=v.high;else if(v.low>p)if(e.mode===t.OverlayMode.WeakMagnet){var m=d.convertToPixel(v.low);p>d.convertFromPixel(m-g)&&(p=v.low)}else p=v.low;else{var y=Math.max(v.open,v.close),_=Math.min(v.open,v.close);p=p>y?v.high-p>p-y?y:v.high:_>p?_-p>p-v.low?v.low:_:p-_>y-p?y:_}}}r.value=p}return r},i.prototype.coordinateToPointValueFlag=function(){return!0},i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.dispatchEvent=function(t,i,o){return this.getWidget().getPane().getChart().getChartStore().getOverlayStore().isDrawing()?this.onEvent(t,i,o):e.prototype.dispatchEvent.call(this,t,i,o)},i.prototype.checkEventOn=function(){return!0},i.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart(),s=n.getAxisComponent(),l=null===(e=a.getPaneById(Kt.XAXIS))||void 0===e?void 0:e.getAxisComponent(),u=o.getBounding(),c=a.getChartStore(),h=c.getCustomApi(),d=c.getThousandsSeparator(),p=c.getTimeScaleStore(),v=p.getDateTimeFormat(),g=p.getBarSpace(),f=c.getPrecision(),m=c.getStyles().overlay,y=c.getOverlayStore(),_=y.getHoverInstanceInfo(),x=y.getClickInstanceInfo();this.getCompleteOverlays(y,r).forEach((function(e){e.visible&&i._drawOverlay(t,e,u,g,f,v,h,d,m,l,s,_,x,p)}));var S=y.getProgressInstanceInfo();if(null!==S){var C=this.getProgressOverlay(S,r);null!==C&&C.visible&&this._drawOverlay(t,C,u,g,f,v,h,d,m,l,s,_,x,p)}},i.prototype._drawOverlay=function(t,e,i,o,n,r,a,s,l,u,c,h,d,p){var v=e.points.map((function(t){var e,i,o=t.dataIndex;void 0!==t.timestamp&&(o=p.timestampToDataIndex(t.timestamp));var n={x:0,y:0};return void 0!==o&&(n.x=null!==(e=null==u?void 0:u.convertToPixel(o))&&void 0!==e?e:0),void 0!==t.value&&(n.y=null!==(i=null==c?void 0:c.convertToPixel(t.value))&&void 0!==i?i:0),n}));if(v.length>0){var g=[].concat(this.getFigures(e,v,i,o,n,s,r,l,u,c));this.drawFigures(t,e,g,l)}this.drawDefaultFigures(t,e,v,i,n,r,a,s,l,u,c,h,d)},i.prototype.drawFigures=function(t,e,i,o){var n=this;i.forEach((function(i,r){var a=i.type,s=i.styles,l=i.ignoreEvent;[].concat(i.attrs).forEach((function(u,c){var h,d,p,v=n._createFigureEvents(e,2,null!==(h=i.key)&&void 0!==h?h:\\"\\",r,c,l),g=k(k(k({},o[a]),null===(d=e.styles)||void 0===d?void 0:d[a]),s);null===(p=n.createFigure(a,u,g,v))||void 0===p||p.draw(t)}))}))},i.prototype.getCompleteOverlays=function(t,e){return t.getInstances(e)},i.prototype.getProgressOverlay=function(t,e){return t.paneId===e?t.instance:null},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createPointFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){var p,v,g=this;if(e.needDefaultPointFigure&&((null===(p=h.instance)||void 0===p?void 0:p.id)===e.id&&0!==h.figureType||(null===(v=d.instance)||void 0===v?void 0:v.id)===e.id&&0!==d.figureType)){var f=e.styles,m=k(k({},l.point),null==f?void 0:f.point);i.forEach((function(i,o){var n,r,a,s=i.x,l=i.y,u=m.radius,c=m.color,d=m.borderColor,p=m.borderSize;(null===(n=h.instance)||void 0===n?void 0:n.id)===e.id&&1===h.figureType&&h.figureIndex===o&&(u=m.activeRadius,c=m.activeColor,d=m.activeBorderColor,p=m.activeBorderSize),null===(r=g.createFigure(\\"circle\\",{x:s,y:l,r:u+p},{color:d},g._createFigureEvents(e,1,\\"\\".concat(yt,\\"point_\\").concat(o),o,0)))||void 0===r||r.draw(t),null===(a=g.createFigure(\\"circle\\",{x:s,y:l,r:u},{color:c}))||void 0===a||a.draw(t)}))}},i}(Te),Ae=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._gridView=new we(o),o._indicatorView=new De(o),o._crosshairLineView=new Pe(o),o._tooltipView=o.createTooltipView(),o._overlayView=new ke(o),o.addChild(o._tooltipView),o.addChild(o._overlayView),o.getContainer().style.cursor=\\"crosshair\\",o.registerEvent(\\"mouseMoveEvent\\",(function(){return i.getChart().getChartStore().getTooltipStore().setActiveIcon(),!1})),o}return P(e,t),e.prototype.getName=function(){return zt},e.prototype.updateMain=function(t){this.updateMainContent(t),this._indicatorView.draw(t),this._gridView.draw(t)},e.prototype.createTooltipView=function(){return new Me(this)},e.prototype.updateMainContent=function(t){},e.prototype.updateOverlay=function(t){this._overlayView.draw(t),this._crosshairLineView.draw(t),this._tooltipView.draw(t)},e}(ne),Fe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i,n=this.getWidget(),r=n.getPane(),s=r.getChart(),l=n.getBounding(),u=r.getAxisComponent(),c=s.getStyles().candle.area,h=[],d=[],p=Number.MAX_SAFE_INTEGER;this.eachChildren((function(t,e,i){var o=t.x,n=e.halfGapBar,r=t.data[c.value];if(a(r)){var s=u.convertToPixel(r);if(0===i){var v=o-n;d.push({x:v,y:l.height}),d.push({x:v,y:s}),h.push({x:v,y:s})}h.push({x:o,y:s}),d.push({x:o,y:s}),p=Math.min(p,s)}}));var v=d.length;if(v>0){var g=d[v-1],f=g.x;h.push({x:f,y:g.y}),d.push({x:f,y:g.y}),d.push({x:f,y:l.height})}if(h.length>0&&(null===(e=this.createFigure(\\"line\\",{coordinates:h},{color:c.lineColor,size:c.lineSize}))||void 0===e||e.draw(t)),d.length>0){var m=c.backgroundColor,y=void 0;if(o(m)){var _=t.createLinearGradient(0,l.height,0,p);try{m.forEach((function(t){_.addColorStop(t.offset,t.color)}))}catch(t){}y=_}else y=m;null===(i=this.createFigure(\\"polygon\\",{coordinates:d},{color:y}))||void 0===i||i.draw(t)}},e}(Ee),Le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this.getWidget().getPane(),i=e.getChart().getChartStore(),o=i.getStyles().candle.priceMark,n=o.high,r=o.low;if(o.show&&(n.show||r.show)){var a=i.getThousandsSeparator(),s=i.getPrecision(),l=e.getAxisComponent(),u=Number.MIN_SAFE_INTEGER,c=0,h=Number.MAX_SAFE_INTEGER,d=0;this.eachChildren((function(t){var e=t.data,i=t.x;e.high>u&&(u=e.high,c=i),h>e.low&&(h=e.low,d=i)}));var p=l.convertToPixel(u),v=l.convertToPixel(h);n.show&&u!==Number.MIN_SAFE_INTEGER&&this._drawMark(t,E(T(u,s.price),a),{x:c,y:p},v>p?[-2,-5]:[2,5],n),r.show&&h!==Number.MAX_SAFE_INTEGER&&this._drawMark(t,E(T(h,s.price),a),{x:d,y:v},v>p?[2,5]:[-2,-5],r)}},e.prototype._drawMark=function(t,e,i,o,n){var r,a,s,l,u,c,h=i.x,d=i.y+o[0];null===(r=this.createFigure(\\"line\\",{coordinates:[{x:h-2,y:d+o[0]},{x:h,y:d},{x:h+2,y:d+o[0]}]},{color:n.color}))||void 0===r||r.draw(t),h>this.getWidget().getBounding().width/2?(u=(l=h-5)-n.textOffset,c=\\"right\\"):(c=\\"left\\",u=(l=h+5)+n.textOffset);var p=d+o[1];null===(a=this.createFigure(\\"line\\",{coordinates:[{x:h,y:d},{x:h,y:p},{x:l,y:p}]},{color:n.color}))||void 0===a||a.draw(t),null===(s=this.createFigure(\\"text\\",{x:u,y:p,text:e,align:c,baseline:\\"middle\\"},{color:n.color,size:n.textSize,family:n.textFamily,weight:n.textWeight}))||void 0===s||s.draw(t)},e}(Ee),Re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getStyles().candle.priceMark,s=a.last,l=s.line;if(a.show&&s.show&&l.show){var u=o.getAxisComponent(),c=r.getDataList(),h=c[c.length-1];if(null!=h){var d=h.close,p=h.open,v=u.convertToNicePixel(d);null===(e=this.createFigure(\\"line\\",{coordinates:[{x:0,y:v},{x:n.width,y:v}]},{style:l.style,color:d>p?s.upColor:p>d?s.downColor:s.noChangeColor,size:l.size,dashedValue:l.dashedValue}))||void 0===e||e.draw(t)}}},e}(Te),Be={\\"zh-CN\\":{time:\\"时间:\\",open:\\"开:\\",high:\\"高:\\",low:\\"低:\\",close:\\"收:\\",volume:\\"成交量:\\",change:\\"涨幅:\\"},\\"en-US\\":{time:\\"Time: \\",open:\\"Open: \\",high:\\"High: \\",low:\\"Low: \\",close:\\"Close: \\",volume:\\"Volume: \\",change:\\"Change: \\"}};var Oe=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=n.getId(),a=n.getChart().getChartStore(),s=a.getTooltipStore().getCrosshair();if(void 0!==s.kLineData){var l=o.getBounding(),u=null===(i=n.getYAxisWidget())||void 0===i?void 0:i.getBounding(),c=a.getDataList(),h=a.getPrecision(),d=a.getLocale(),p=a.getCustomApi(),v=a.getThousandsSeparator(),g=a.getTooltipStore().getActiveIcon(),f=a.getIndicatorStore().getInstances(n.getId()),m=a.getTimeScaleStore().getDateTimeFormat(),y=a.getStyles(),_=y.candle,x=y.indicator;if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Rect){var S=this.isDrawTooltip(s,_.tooltip),C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,C,y,0)}else if(_.tooltip.showType===t.TooltipShowType.Standard&&x.tooltip.showType===t.TooltipShowType.Standard){var b=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,b)}else if(_.tooltip.showType===t.TooltipShowType.Rect&&x.tooltip.showType===t.TooltipShowType.Standard){var T=this.drawIndicatorTooltip(e,r,c,s,g,f,p,v,l,x,0);S=this.isDrawTooltip(s,_.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,S,!1,y,T)}else{var w=this._drawCandleStandardTooltip(e,c,r,l,s,g,h,m,d,p,v,_);C=this.isDrawTooltip(s,x.tooltip);this._drawRectTooltip(e,c,f,l,u,s,h,m,d,p,v,!1,C,y,w)}}},i.prototype._drawCandleStandardTooltip=function(t,e,i,o,n,r,a,s,l,u,c,h){var d,p,v,g=h.tooltip,f=g.text,m=0;if(this.isDrawTooltip(n,g)){var y=null!==(d=n.dataIndex)&&void 0!==d?d:0,_=this._getCandleTooltipData({prev:null!==(p=e[y-1])&&void 0!==p?p:null,current:n.kLineData,next:null!==(v=e[y+1])&&void 0!==v?v:null},a,s,l,u,c,h),x=0,S=0,C=0,b=R(this.classifyTooltipIcons(g.icons),3),T=b[1],w=b[2],E=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,b[0],x,S,0),4);m+=E[3];var I=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,T,x=E[0],S=E[1],C=E[2]),4);if(x=I[0],S=I[1],m+=I[3],C=I[2],_.length>0){var D=R(this.drawStandardTooltipLabels(t,o,_,x,S,C,f),4);x=D[0],S=D[1],m+=D[3],C=D[2]}var P=R(this.drawStandardTooltipIcons(t,o,{paneId:i,indicatorName:\\"\\",iconId:\\"\\"},r,w,x,S,C),4);x=P[0],S=P[1],m+=P[3],C=P[2]}return m},i.prototype._drawRectTooltip=function(e,i,o,n,r,a,s,l,u,c,h,d,p,v,f){var m,y,_,x,S,C=this,b=v.candle,T=v.indicator,w=b.tooltip,E=T.tooltip;if(d||p){var I=null!==(m=a.dataIndex)&&void 0!==m?m:0,D=this._getCandleTooltipData({prev:null!==(y=i[I-1])&&void 0!==y?y:null,current:a.kLineData,next:null!==(_=i[I+1])&&void 0!==_?_:null},s,l,u,c,h,b),P=w.text,M=P.marginLeft,k=P.marginRight,A=P.marginTop,F=P.marginBottom,L=P.size,R=P.weight,B=P.family,O=w.rect,V=O.position,N=O.paddingLeft,W=O.paddingRight,z=O.paddingTop,Y=O.paddingBottom,X=O.offsetLeft,j=O.offsetRight,Z=O.offsetTop,G=O.offsetBottom,K=O.borderSize,U=O.borderRadius,q=O.borderColor,$=O.color,J=0,Q=0,tt=0;d&&(e.font=H(L,R,B),D.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+M+k;J=Math.max(J,n)})),tt+=(F+A+L)*D.length);var et=E.text,it=et.marginLeft,ot=et.marginRight,nt=et.marginTop,rt=et.marginBottom,at=et.size,st=et.weight,lt=et.family,ut=[];if(p&&(e.font=H(at,st,lt),o.forEach((function(t){var o,n=null!==(o=C.getIndicatorTooltipData(i,a,t,c,h,T).values)&&void 0!==o?o:[];ut.push(n),n.forEach((function(t){var i=t.value,o=\\"\\".concat(t.title.text).concat(i.text),n=e.measureText(o).width+it+ot;J=Math.max(J,n),tt+=nt+rt+at}))}))),0!==(Q+=J)&&0!==tt){Q+=2*K+N+W,tt+=2*K+z+Y;var ct=V===g.Pointer&&a.paneId===Kt.CANDLE,ht=(null!==(x=a.realX)&&void 0!==x?x:0)>n.width/2,dt=0;if(ct){var pt=a.realX;dt=ht?pt-j-Q:pt+X}else ht?(dt=X,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Left&&(dt+=r.width)):(dt=n.width-j-Q,v.yAxis.inside&&v.yAxis.position===t.YAxisPosition.Right&&(dt-=r.width));var vt=f+Z;if(ct)(vt=a.y-tt/2)+tt>n.height-G&&(vt=n.height-G-tt),f+Z>vt&&(vt=f+Z);null===(S=this.createFigure(\\"rect\\",{x:dt,y:vt,width:Q,height:tt},{style:t.PolygonType.StrokeFill,color:$,borderColor:q,borderSize:K,borderRadius:U}))||void 0===S||S.draw(e);var gt=dt+K+N+M,ft=vt+K+z;if(d&&D.forEach((function(t){var i,o,n=t.title;null===(i=C.createFigure(\\"text\\",{x:gt,y:ft+=A,text:n.text},{color:n.color,size:L,family:B,weight:R}))||void 0===i||i.draw(e);var r=t.value;null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-k-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:L,family:B,weight:R}))||void 0===o||o.draw(e),ft+=L+F})),p){var mt=dt+K+N+it;ut.forEach((function(t){t.forEach((function(t){var i,o,n=t.title,r=t.value;null===(i=C.createFigure(\\"text\\",{x:mt,y:ft+=nt,text:n.text},{color:n.color,size:at,family:lt,weight:st}))||void 0===i||i.draw(e),null===(o=C.createFigure(\\"text\\",{x:dt+Q-K-ot-W,y:ft,text:r.text,align:\\"right\\"},{color:r.color,size:at,family:lt,weight:st}))||void 0===o||o.draw(e),ft+=at+rt}))}))}}}},i.prototype._getCandleTooltipData=function(e,i,o,a,s,l,u){var c,h,d,p,v,g=u.tooltip,f=g.text.color,m=e.current,y=null!==(h=null===(c=e.prev)||void 0===c?void 0:c.close)&&void 0!==h?h:m.close,_=m.close-y,x=i.price,S=i.volume,C={\\"{time}\\":s.formatDate(o,m.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Tooltip),\\"{open}\\":E(T(m.open,x),l),\\"{high}\\":E(T(m.high,x),l),\\"{low}\\":E(T(m.low,x),l),\\"{close}\\":E(T(m.close,x),l),\\"{volume}\\":E(s.formatBigNumber(T(null!==(d=m.volume)&&void 0!==d?d:g.defaultValue,S)),l),\\"{change}\\":0===y?g.defaultValue:\\"\\".concat(T(_/y*100),\\"%\\")};return(null!==(v=n(g.custom)?null===(p=g.custom)||void 0===p?void 0:p.call(g,e,u):g.custom)&&void 0!==v?v:[{title:\\"time\\",value:\\"{time}\\"},{title:\\"open\\",value:\\"{open}\\"},{title:\\"high\\",value:\\"{high}\\"},{title:\\"low\\",value:\\"{low}\\"},{title:\\"close\\",value:\\"{close}\\"},{title:\\"volume\\",value:\\"{volume}\\"}]).map((function(t){var e,i=t.title,o=t.value,n={text:\\"\\",color:\\"\\"};r(i)?n=k({},i):(n.text=i,n.color=f),n.text=function(t,e){var i,o;return null!==(o=null===(i=Be[e])||void 0===i?void 0:i[t])&&void 0!==o?o:t}(n.text,a);var s={text:g.defaultValue,color:\\"\\"};r(o)?s=k({},o):(s.text=o,s.color=f);var l=s.text.match(/{(\\\\S*)}/);if(null!==l&&l.length>1){var c=\\"{\\".concat(l[1],\\"}\\");s.text=s.text.replace(c,null!==(e=C[c])&&void 0!==e?e:g.defaultValue),\\"{change}\\"===c&&(s.color=0===_?u.priceMark.last.noChangeColor:_>0?u.priceMark.last.upColor:u.priceMark.last.downColor)}return{title:n,value:s}}))},i}(Me),Ve=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o._candleBarView=new Ie(o),o._candleAreaView=new Fe(o),o._candleHighLowPriceView=new Le(o),o._candleLastPriceLineView=new Re(o),o.addChild(o._candleBarView),o}return P(i,e),i.prototype.updateMainContent=function(e){this.getPane().getChart().getStyles().candle.type!==t.CandleType.Area?(this._candleBarView.draw(e),this._candleHighLowPriceView.draw(e)):this._candleAreaView.draw(e),this._candleLastPriceLineView.draw(e)},i.prototype.createTooltipView=function(){return new Oe(this)},i}(Ae),Ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e,i=this,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getAxisComponent(),s=this.getAxisStyles(n.getChart().getStyles());if(s.show){s.axisLine.show&&(null===(e=this.createFigure(\\"line\\",this.createAxisLine(r,s),s.axisLine))||void 0===e||e.draw(t));var l=a.getTicks();if(s.tickLine.show)this.createTickLines(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"line\\",e,s.tickLine))||void 0===o||o.draw(t)}));if(s.tickText.show)this.createTickTexts(l,r,s).forEach((function(e){var o;null===(o=i.createFigure(\\"text\\",e,s.tickText))||void 0===o||o.draw(t)}))}},e}(Te),We=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.yAxis},e.prototype.createAxisLine=function(t,e){var i,o=this.getWidget().getPane().getAxisComponent(),n=e.axisLine.size;return{coordinates:[{x:i=o.isFromZero()?n/2:t.width-n,y:0},{x:i,y:t.height}]}},e.prototype.createTickLines=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=0,s=0;return o.isFromZero()?(a=0,n.show&&(a+=n.size),s=a+r.length):(a=e.width,n.show&&(a-=n.size),s=a-r.length),t.map((function(t){return{coordinates:[{x:a,y:t.coord},{x:s,y:t.coord}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=this.getWidget().getPane().getAxisComponent(),n=i.axisLine,r=i.tickLine,a=i.tickText,s=0;o.isFromZero()?(s=a.marginStart,n.show&&(s+=n.size),r.show&&(s+=r.length)):(s=e.width-a.marginEnd,n.show&&(s-=n.size),r.show&&(s-=r.length));var l=this.getWidget().getPane().getAxisComponent().isFromZero()?\\"left\\":\\"right\\";return t.map((function(t){return{x:s,y:t.coord,text:t.text,align:l,baseline:\\"middle\\"}}))},e}(Ne),ze=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(e){var i,o=this.getWidget(),n=o.getPane(),r=o.getBounding(),a=n.getChart().getChartStore(),s=a.getStyles().candle.priceMark,l=s.last,u=l.text;if(s.show&&l.show&&u.show){var c=a.getPrecision(),h=n.getAxisComponent(),d=a.getDataList(),p=a.getVisibleDataList(),v=d[d.length-1];if(void 0!==v){var g=v.close,f=v.open,m=h.convertToNicePixel(g),y=void 0;y=g>f?l.upColor:f>g?l.downColor:l.noChangeColor;var _=void 0;if(h.getType()===t.YAxisType.Percentage){var x=p[0].data.close;_=\\"\\".concat(((g-x)/x*100).toFixed(2),\\"%\\")}else _=T(g,c.price);_=E(_,a.getThousandsSeparator());var S=void 0,C=void 0;h.isFromZero()?(S=0,C=\\"left\\"):(S=r.width,C=\\"right\\"),null===(i=this.createFigure(\\"text\\",{x:S,y:m,text:_,align:C,baseline:\\"middle\\"},k(k({},u),{backgroundColor:y})))||void 0===i||i.draw(e)}}},i}(Te),Ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.drawImp=function(t){var e=this,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=o.getChart().getChartStore(),a=r.getCustomApi(),l=r.getStyles().indicator,u=l.lastValueMark,c=u.text;if(u.show){var h=o.getAxisComponent(),d=r.getDataList(),p=d.length-1,v=r.getIndicatorStore().getInstances(o.getId()),g=r.getThousandsSeparator();v.forEach((function(i){var o=i.result[p];if(void 0!==o&&i.visible){var r=i.precision;ot(d,i,p,l,(function(l,u){var d,p=o[l.key];if(s(p)){var v=h.convertToNicePixel(p),f=T(p,r);i.shouldFormatBigNumber&&(f=a.formatBigNumber(f)),f=E(f,g);var m=void 0,y=void 0;h.isFromZero()?(m=0,y=\\"left\\"):(m=n.width,y=\\"right\\"),null===(d=e.createFigure(\\"text\\",{x:m,y:v,text:f,align:y,baseline:\\"middle\\"},k(k({},c),{backgroundColor:u.color})))||void 0===d||d.draw(t)}}))}}))}},e}(Te),Xe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!1},e.prototype.drawDefaultFigures=function(t,e,i,o,n,r,a,s,l,u,c,h,d){this.drawFigures(t,e,this.getDefaultFigures(e,i,o,n,r,a,s,u,c,d),l)},e.prototype.getDefaultFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h,d=[];if(t.needDefaultYAxisFigure&&t.id===(null===(c=u.instance)||void 0===c?void 0:c.id)&&u.paneId===this.getWidget().getPane().getId()){var p,v,g=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;null!==(h=null==l?void 0:l.isFromZero())&&void 0!==h&&h?(p=\\"left\\",v=0):(p=\\"right\\",v=i.width),e.forEach((function(e,i){var n=t.points[i];if(void 0!==n.value){g=Math.min(g,e.y),f=Math.max(f,e.y);var r=E(T(n.value,o.price),a);d.push({type:\\"text\\",attrs:{x:v,y:e.y,text:r,align:p,baseline:\\"middle\\"},ignoreEvent:!0})}})),e.length>1&&d.unshift({type:\\"rect\\",attrs:{x:0,y:g,width:i.width,height:f-g},ignoreEvent:!0})}return d},e.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createYAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},e}(ke),He=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.drawImp=function(t){var e,i=this.getWidget(),o=i.getPane(),n=i.getBounding(),r=i.getPane().getChart().getChartStore(),a=r.getTooltipStore().getCrosshair(),s=r.getStyles().crosshair;if(void 0!==a.paneId&&this.compare(a,o.getId())&&s.show){var l=this.getDirectionStyles(s),u=l.text;if(l.show&&u.show){var c=o.getAxisComponent(),h=this.getText(a,r,c);t.font=H(u.size,u.weight,u.family),null===(e=this.createFigure(\\"text\\",this.getTextAttrs(h,t.measureText(h).width,a,n,c,u),u))||void 0===e||e.draw(t)}}},i.prototype.compare=function(t,e){return t.paneId===e},i.prototype.getDirectionStyles=function(t){return t.horizontal},i.prototype.getText=function(e,i,o){var n,r,a,s=o,l=o.convertFromPixel(e.y);if(s.getType()===t.YAxisType.Percentage){var u=null!==(r=null===(n=i.getVisibleDataList()[0])||void 0===n?void 0:n.data)&&void 0!==r?r:{};a=\\"\\".concat(((l-u.close)/u.close*100).toFixed(2),\\"%\\")}else{var c=i.getIndicatorStore().getInstances(e.paneId),h=0,d=!1;s.isInCandle()?h=i.getPrecision().price:c.forEach((function(t){h=Math.max(t.precision,h),d||(d=t.shouldFormatBigNumber)})),a=T(l,h),d&&(a=i.getCustomApi().formatBigNumber(a))}return E(a,i.getThousandsSeparator())},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s;return n.isFromZero()?(a=0,s=\\"left\\"):(a=o.width,s=\\"right\\"),{x:a,y:i.y,text:t,align:s,baseline:\\"middle\\"}},i}(Te),je=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._yAxisView=new We(o),o._candleLastPriceLabelView=new ze(o),o._indicatorLastValueView=new Ye(o),o._overlayYAxisView=new Xe(o),o._crosshairHorizontalLabelView=new He(o),o.getContainer().style.cursor=\\"ns-resize\\",o.addChild(o._overlayYAxisView),o}return P(e,t),e.prototype.getName=function(){return Xt},e.prototype.updateMain=function(t){this._yAxisView.draw(t),this.getPane().getAxisComponent().isInCandle()&&this._candleLastPriceLabelView.draw(t),this._indicatorLastValueView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayYAxisView.draw(t),this._crosshairHorizontalLabelView.draw(t)},e}(ne),Ze=function(){function t(t){this._extremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._prevExtremum={min:0,max:0,range:0,realMin:0,realMax:0,realRange:0},this._ticks=[],this._autoCalcTickFlag=!0,this._parent=t}return t.prototype.getParent=function(){return this._parent},t.prototype.buildTicks=function(t){return this._autoCalcTickFlag&&(this._extremum=this.calcExtremum()),!(this._prevExtremum.min===this._extremum.min&&this._prevExtremum.max===this._extremum.max&&!t)&&(this._prevExtremum=this._extremum,this._ticks=this.optimalTicks(this._calcTicks()),!0)},t.prototype.getTicks=function(){return this._ticks},t.prototype.getScrollZoomEnabled=function(){var t;return null===(t=this.getParent().getOptions().axisOptions.scrollZoomEnabled)||void 0===t||t},t.prototype.setExtremum=function(t){this._autoCalcTickFlag=!1,this._extremum=t},t.prototype.getExtremum=function(){return this._extremum},t.prototype.setAutoCalcTickFlag=function(t){this._autoCalcTickFlag=t},t.prototype.getAutoCalcTickFlag=function(){return this._autoCalcTickFlag},t.prototype._calcTicks=function(){var t=this._extremum,e=t.realMin,i=t.realMax,o=t.realRange,n=[];if(o>=0){var r=R(this._calcTickInterval(o),2),a=r[0],s=r[1],l=G(Math.ceil(e/a)*a,s),u=G(Math.floor(i/a)*a,s),c=0,h=l;if(0!==a)for(;u>=h;){var d=h.toFixed(s);n[c]={text:d,coord:0,value:d},++c,h+=a}}return n},t.prototype._calcTickInterval=function(t){var e,i,o,n,r=(i=Math.floor(U(e=t/8)),o=q(i),e=(1.5>(n=e/o)?1:2.5>n?2:3.5>n?3:4.5>n?4:5.5>n?5:6.5>n?6:8)*o,-20>i?e:+e.toFixed(0>i?-i:0)),a=function(t){var e=\\"\\"+t,i=e.indexOf(\\"e\\");if(i>0){var o=+e.slice(i+1);return 0>o?-o:0}var n=e.indexOf(\\".\\");return 0>n?0:e.length-1-n}(r);return[r,a]},t}(),Ge=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var e,i,o,n,r,a=this.getParent(),l=a.getChart(),u=l.getChartStore(),c=Number.MAX_SAFE_INTEGER,h=Number.MIN_SAFE_INTEGER,d=[],p=!1,v=Number.MAX_SAFE_INTEGER,g=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER;u.getIndicatorStore().getInstances(a.getId()).forEach((function(t){var e,i,o;p||(p=null!==(e=t.shouldOhlc)&&void 0!==e&&e),f=Math.min(f,t.precision),null!==t.minValue&&(v=Math.min(v,t.minValue)),null!==t.maxValue&&(g=Math.max(g,t.maxValue)),d.push({figures:null!==(i=t.figures)&&void 0!==i?i:[],result:null!==(o=t.result)&&void 0!==o?o:[]})}));var m=4,y=this.isInCandle();if(y){var _=u.getPrecision().price;m=f!==Number.MAX_SAFE_INTEGER?Math.min(f,_):_}else f!==Number.MAX_SAFE_INTEGER&&(m=f);var x=u.getVisibleDataList(),S=l.getStyles().candle,C=S.type===t.CandleType.Area,b=S.area.value,T=y&&!C||!y&&p;x.forEach((function(t){var e=t.dataIndex,i=t.data;if(T&&(c=Math.min(c,i.low),h=Math.max(h,i.high)),y&&C){var o=i[b];c=Math.min(c,o),h=Math.max(h,o)}d.forEach((function(t){var i,o=null!==(i=t.result[e])&&void 0!==i?i:{};t.figures.forEach((function(t){var e=o[t.key];s(e)&&(c=Math.min(c,e),h=Math.max(h,e))}))}))})),c!==Number.MAX_SAFE_INTEGER&&h!==Number.MIN_SAFE_INTEGER?(c=Math.min(v,c),h=Math.max(g,h)):(c=0,h=10);var w,E=this.getType();switch(E){case t.YAxisType.Percentage:var I=null===(e=x[0])||void 0===e?void 0:e.data;void 0!==(null==I?void 0:I.close)&&(c=(c-I.close)/I.close*100,h=(h-I.close)/I.close*100),w=.01;break;case t.YAxisType.Log:c=U(c),h=U(h),w=.05*q(-m);break;default:w=q(-m)}if(c===h||w>Math.abs(c-h)){var D=v===c,P=g===h;c=D?c:P?c-8*w:c-4*w,h=P?h:D?h+8*w:h+4*w}var M=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,k=a.getOptions().gap,A=null!==(n=null==k?void 0:k.top)&&void 0!==n?n:.2;1>A||(A/=M);var F=null!==(r=null==k?void 0:k.bottom)&&void 0!==r?r:.1;1>F||(F/=M);var L,R,B,O=Math.abs(h-c);return O=Math.abs((h+=O*A)-(c-=O*F)),E===t.YAxisType.Log?(L=q(c),R=q(h),B=Math.abs(R-L)):(L=c,R=h,B=O),{min:c,max:h,range:O,realMin:L,realMax:R,realRange:B}},i.prototype._innerConvertToPixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.getExtremum(),r=(t-n.min)/n.range;return this.isReverse()?Math.round(r*o):Math.round((1-r)*o)},i.prototype.isInCandle=function(){return\\"candle\\"===this.getParent().getName()},i.prototype.getType=function(){return this.isInCandle()?this.getParent().getChart().getStyles().yAxis.type:t.YAxisType.Normal},i.prototype.getPosition=function(){return this.getParent().getChart().getStyles().yAxis.position},i.prototype.isReverse=function(){return!!this.isInCandle()&&this.getParent().getChart().getStyles().yAxis.reverse},i.prototype.isFromZero=function(){var e=this.getParent().getChart().getStyles().yAxis,i=e.inside;return e.position===t.YAxisPosition.Left&&i||e.position===t.YAxisPosition.Right&&!i},i.prototype.optimalTicks=function(e){var i,o,n=this,r=this.getParent(),a=null!==(o=null===(i=r.getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,s=r.getChart().getChartStore(),l=s.getCustomApi(),u=[],c=this.getType(),h=s.getIndicatorStore().getInstances(r.getId()),d=s.getThousandsSeparator(),p=0,v=!1;this.isInCandle()?p=s.getPrecision().price:h.forEach((function(t){p=Math.max(p,t.precision),v||(v=t.shouldFormatBigNumber)}));var g,f=s.getStyles().xAxis.tickText.size;return e.forEach((function(e){var i,o=e.value,r=n._innerConvertToPixel(+o);switch(c){case t.YAxisType.Percentage:i=\\"\\".concat(T(o,2),\\"%\\");break;case t.YAxisType.Log:r=n._innerConvertToPixel(U(+o)),i=T(o,p);break;default:i=T(o,p),v&&(i=l.formatBigNumber(o))}i=E(i,d),r>f&&a-f>r&&(void 0!==g&&Math.abs(g-r)>2*f||void 0===g)&&(u.push({text:i,coord:r,value:o}),g=r)})),u},i.prototype.getAutoSize=function(){var e=this.getParent(),i=e.getChart(),o=i.getStyles(),n=o.yAxis,r=n.size;if(\\"auto\\"!==r)return r;var a=i.getChartStore(),s=a.getCustomApi(),l=0;if(n.show&&(n.axisLine.show&&(l+=n.axisLine.size),n.tickLine.show&&(l+=n.tickLine.length),n.tickText.show)){var u=0;this.getTicks().forEach((function(t){u=Math.max(u,j(t.text,n.tickText.size,n.tickText.weight,n.tickText.family))})),l+=n.tickText.marginStart+n.tickText.marginEnd+u}var c=o.crosshair,h=0;if(c.show&&c.horizontal.show&&c.horizontal.text.show){var d=a.getIndicatorStore().getInstances(e.getId()),p=0,v=!1;d.forEach((function(t){p=Math.max(t.precision,p),v||(v=t.shouldFormatBigNumber)}));var g=2;if(this.getType()!==t.YAxisType.Percentage)if(this.isInCandle()){var f=a.getPrecision().price,m=o.indicator.lastValueMark;g=m.show&&m.text.show?Math.max(p,f):f}else g=p;var y=T(this.getExtremum().max,g);v&&(y=s.formatBigNumber(y)),h+=c.horizontal.text.paddingLeft+c.horizontal.text.paddingRight+2*c.horizontal.text.borderSize+j(y,c.horizontal.text.size,c.horizontal.text.weight,c.horizontal.text.family)}return Math.max(l,h)},i.prototype.convertFromPixel=function(e){var i,o,n,r=null!==(o=null===(i=this.getParent().getYAxisWidget())||void 0===i?void 0:i.getBounding().height)&&void 0!==o?o:0,a=this.getExtremum(),s=a.min,l=a.range,u=(this.isReverse()?e/r:1-e/r)*l+s;switch(this.getType()){case t.YAxisType.Percentage:var c=null===(n=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===n?void 0:n.data;return void 0!==(null==c?void 0:c.close)?c.close*u/100+c.close:0;case t.YAxisType.Log:return q(u);default:return u}},i.prototype.convertToRealValue=function(e){var i=e;return this.getType()===t.YAxisType.Log&&(i=q(e)),i},i.prototype.convertToPixel=function(e){var i,o=e;switch(this.getType()){case t.YAxisType.Percentage:var n=null===(i=this.getParent().getChart().getChartStore().getVisibleDataList()[0])||void 0===i?void 0:i.data;void 0!==(null==n?void 0:n.close)&&(o=(e-n.close)/n.close*100);break;case t.YAxisType.Log:o=U(e);break;default:o=e}return this._innerConvertToPixel(o)},i.prototype.convertToNicePixel=function(t){var e,i,o=null!==(i=null===(e=this.getParent().getYAxisWidget())||void 0===e?void 0:e.getBounding().height)&&void 0!==i?i:0,n=this.convertToPixel(t);return Math.round(Math.max(.05*o,Math.min(n,.98*o)))},i}(Ze),Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"indicator\\"},e.prototype.createAxisComponent=function(){return new Ge(this)},e.prototype.createMainWidget=function(t){return new Ae(t,this)},e.prototype.createSeparatorWidget=function(t){return new Zt(t,this)},e.prototype.createYAxisWidget=function(t){return new je(t,this)},e}(Ut),Ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"candle\\"},e.prototype.createMainWidget=function(t){return new Ve(t,this)},e.prototype.createSeparatorWidget=function(){return null},e}(Ke),qe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getAxisStyles=function(t){return t.xAxis},e.prototype.createAxisLine=function(t,e){var i=e.axisLine.size/2;return{coordinates:[{x:0,y:i},{x:t.width,y:i}]}},e.prototype.createTickLines=function(t,e,i){var o=i.tickLine,n=i.axisLine.size;return t.map((function(t){return{coordinates:[{x:t.coord,y:0},{x:t.coord,y:n+o.length}]}}))},e.prototype.createTickTexts=function(t,e,i){var o=i.tickText,n=i.axisLine.size,r=i.tickLine.length;return t.map((function(t){return{x:t.coord,y:n+r+o.marginStart,text:t.text,align:\\"center\\",baseline:\\"top\\"}}))},e}(Ne),$e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.coordinateToPointTimestampDataIndexFlag=function(){return!0},i.prototype.coordinateToPointValueFlag=function(){return!1},i.prototype.getCompleteOverlays=function(t){return t.getInstances()},i.prototype.getProgressOverlay=function(t){return t.instance},i.prototype.getDefaultFigures=function(e,i,o,n,r,a,s,l,u,c){var h,d=[];if(e.needDefaultXAxisFigure&&e.id===(null===(h=c.instance)||void 0===h?void 0:h.id)){var p=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER;i.forEach((function(i,o){p=Math.min(p,i.x),v=Math.max(v,i.x);var n=e.points[o];if(void 0!==n.timestamp){var s=a.formatDate(r,n.timestamp,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair);d.push({type:\\"text\\",attrs:{x:i.x,y:0,text:s,align:\\"center\\"},ignoreEvent:!0})}})),i.length>1&&d.unshift({type:\\"rect\\",attrs:{x:p,y:0,width:v-p,height:o.height},ignoreEvent:!0})}return d},i.prototype.getFigures=function(t,e,i,o,n,r,a,s,l,u){var c,h;return null!==(h=null===(c=t.createXAxisFigures)||void 0===c?void 0:c.call(t,{overlay:t,coordinates:e,bounding:i,barSpace:o,precision:n,thousandsSeparator:r,dateTimeFormat:a,defaultStyles:s,xAxis:l,yAxis:u}))&&void 0!==h?h:[]},i}(Xe),Je=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.compare=function(t){return void 0!==t.kLineData&&t.dataIndex===t.realDataIndex},i.prototype.getDirectionStyles=function(t){return t.vertical},i.prototype.getText=function(e,i){var o,n=null===(o=e.kLineData)||void 0===o?void 0:o.timestamp;return i.getCustomApi().formatDate(i.getTimeScaleStore().getDateTimeFormat(),n,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.Crosshair)},i.prototype.getTextAttrs=function(t,e,i,o,n,r){var a,s=i.realX,l=\\"center\\";return 0>s-e/2-r.paddingLeft?(a=0,l=\\"left\\"):s+e/2+r.paddingRight>o.width?(a=o.width,l=\\"right\\"):a=s,{x:a,y:0,text:t,align:l,baseline:\\"top\\"}},i}(He),Qe=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o._xAxisView=new qe(o),o._overlayXAxisView=new $e(o),o._crosshairVerticalLabelView=new Je(o),o.getContainer().style.cursor=\\"ew-resize\\",o.addChild(o._overlayXAxisView),o}return P(e,t),e.prototype.getName=function(){return Yt},e.prototype.updateMain=function(t){this._xAxisView.draw(t)},e.prototype.updateOverlay=function(t){this._overlayXAxisView.draw(t),this._crosshairVerticalLabelView.draw(t)},e}(ne),ti=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return P(i,e),i.prototype.calcExtremum=function(){var t=this.getParent().getChart().getChartStore().getTimeScaleStore().getVisibleRange(),e=t.from,i=t.to,o=i-1,n=i-e;return{min:e,max:o,range:n,realMin:e,realMax:o,realRange:n}},i.prototype.optimalTicks=function(e){var i,o,n=this.getParent().getChart(),r=n.getChartStore(),a=r.getCustomApi().formatDate,s=[],l=e.length,u=r.getDataList();if(l>0){var c=r.getTimeScaleStore().getDateTimeFormat(),h=n.getStyles().xAxis.tickText,d=j(\\"00-00 00:00\\",h.size,h.weight,h.family),p=this.convertToPixel(parseInt(e[0].value,10)),v=1;if(l>1){var g=this.convertToPixel(parseInt(e[1].value,10)),f=Math.abs(g-p);d>f&&(v=Math.ceil(d/f))}for(var m=0;l>m;m+=v){var y=parseInt(e[m].value,10),_=u[y].timestamp,x=a(c,_,\\"HH:mm\\",t.FormatDateType.XAxis);if(0!==m)x=null!==(i=this._optimalTickLabel(a,c,_,u[parseInt(e[m-v].value,10)].timestamp))&&void 0!==i?i:x;var S=this.convertToPixel(y);s.push({text:x,coord:S,value:_})}if(1===s.length)s[0].text=a(c,s[0].value,\\"YYYY-MM-DD HH:mm\\",t.FormatDateType.XAxis);else{var C=s[0].value,b=s[1].value;if(void 0!==s[2]){var T=s[2].text;/^[0-9]{2}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"MM-DD\\",t.FormatDateType.XAxis):/^[0-9]{4}-[0-9]{2}$/.test(T)?s[0].text=a(c,C,\\"YYYY-MM\\",t.FormatDateType.XAxis):/^[0-9]{4}$/.test(T)&&(s[0].text=a(c,C,\\"YYYY\\",t.FormatDateType.XAxis))}else s[0].text=null!==(o=this._optimalTickLabel(a,c,C,b))&&void 0!==o?o:s[0].text}}return s},i.prototype._optimalTickLabel=function(e,i,o,n){var r=e(i,o,\\"YYYY\\",t.FormatDateType.XAxis),a=e(i,o,\\"YYYY-MM\\",t.FormatDateType.XAxis),s=e(i,o,\\"MM-DD\\",t.FormatDateType.XAxis);return r!==e(i,n,\\"YYYY\\",t.FormatDateType.XAxis)?r:a!==e(i,n,\\"YYYY-MM\\",t.FormatDateType.XAxis)?a:s!==e(i,n,\\"MM-DD\\",t.FormatDateType.XAxis)?s:null},i.prototype.getAutoSize=function(){var t=this.getParent().getChart().getStyles(),e=t.xAxis,i=e.size;if(\\"auto\\"!==i)return i;var o=t.crosshair,n=0;e.show&&(e.axisLine.show&&(n+=e.axisLine.size),e.tickLine.show&&(n+=e.tickLine.length),e.tickText.show&&(n+=e.tickText.marginStart+e.tickText.marginEnd+e.tickText.size));var r=0;return o.show&&o.vertical.show&&o.vertical.text.show&&(r+=o.vertical.text.paddingTop+o.vertical.text.paddingBottom+2*o.vertical.text.borderSize+o.vertical.text.size),Math.max(n,r)},i.prototype.convertTimestampFromPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.coordinateToDataIndex(t);return e.dataIndexToTimestamp(i)},i.prototype.convertTimestampToPixel=function(t){var e=this.getParent().getChart().getChartStore().getTimeScaleStore(),i=e.timestampToDataIndex(t);return e.dataIndexToCoordinate(i)},i.prototype.convertFromPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().coordinateToDataIndex(t)},i.prototype.convertToPixel=function(t){return this.getParent().getChart().getChartStore().getTimeScaleStore().dataIndexToCoordinate(t)},i}(Ze),ei=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getName=function(){return\\"xAxis\\"},e.prototype.createAxisComponent=function(){return new ti(this)},e.prototype.createMainWidget=function(t){return new Qe(t,this)},e}(Ut);function ii(){var t;return\\"undefined\\"!=typeof window&&(null!==(t=window.navigator.userAgent.toLowerCase().indexOf(\\"firefox\\"))&&void 0!==t?t:-1)>-1}function oi(){return\\"undefined\\"!=typeof window&&/iPhone|iPad|iPod/.test(window.navigator.platform)}var ni,ri=function(){function t(t,e,i){var o=this;this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0},this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0},this._longTapTimeoutId=null,this._longTapActive=!1,this._mouseMoveStartCoordinate=null,this._touchMoveStartCoordinate=null,this._touchMoveExceededManhattanDistance=!1,this._cancelClick=!1,this._cancelTap=!1,this._unsubscribeOutsideMouseEvents=null,this._unsubscribeOutsideTouchEvents=null,this._unsubscribeMobileSafariEvents=null,this._unsubscribeMousemove=null,this._unsubscribeMouseWheel=null,this._unsubscribeContextMenu=null,this._unsubscribeRootMouseEvents=null,this._unsubscribeRootTouchEvents=null,this._startPinchMiddleCoordinate=null,this._startPinchDistance=0,this._pinchPrevented=!1,this._preventTouchDragProcess=!1,this._mousePressed=!1,this._lastTouchEventTimeStamp=0,this._activeTouchId=null,this._acceptMouseLeave=!oi(),this._onFirefoxOutsideMouseUp=function(t){o._mouseUpHandler(t)},this._onMobileSafariDoubleClick=function(t){o._firesTouchEvents(t)?(++o._tapCount,null!==o._tapTimeoutId&&o._tapCount>1&&(30>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._tapCoordinate).manhattanDistance&&!o._cancelTap&&o._processEvent(o._makeCompatEvent(t),o._handler.doubleTapEvent),o._resetTapTimeout())):(++o._clickCount,null!==o._clickTimeoutId&&o._clickCount>1&&(5>o._mouseTouchMoveWithDownInfo(o._getCoordinate(t),o._clickCoordinate).manhattanDistance&&!o._cancelClick&&o._processEvent(o._makeCompatEvent(t),o._handler.mouseDoubleClickEvent),o._resetClickTimeout()))},this._target=t,this._handler=e,this._options=i,this._init()}return t.prototype.destroy=function(){null!==this._unsubscribeOutsideMouseEvents&&(this._unsubscribeOutsideMouseEvents(),this._unsubscribeOutsideMouseEvents=null),null!==this._unsubscribeOutsideTouchEvents&&(this._unsubscribeOutsideTouchEvents(),this._unsubscribeOutsideTouchEvents=null),null!==this._unsubscribeMousemove&&(this._unsubscribeMousemove(),this._unsubscribeMousemove=null),null!==this._unsubscribeMouseWheel&&(this._unsubscribeMouseWheel(),this._unsubscribeMouseWheel=null),null!==this._unsubscribeContextMenu&&(this._unsubscribeContextMenu(),this._unsubscribeContextMenu=null),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null),null!==this._unsubscribeMobileSafariEvents&&(this._unsubscribeMobileSafariEvents(),this._unsubscribeMobileSafariEvents=null),this._clearLongTapTimeout(),this._resetClickTimeout()},t.prototype._mouseEnterHandler=function(t){var e,i,o,n=this;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this);var r=this._mouseMoveHandler.bind(this);this._unsubscribeMousemove=function(){n._target.removeEventListener(\\"mousemove\\",r)},this._target.addEventListener(\\"mousemove\\",r);var a=this._mouseWheelHandler.bind(this);this._unsubscribeMouseWheel=function(){n._target.removeEventListener(\\"wheel\\",a)},this._target.addEventListener(\\"wheel\\",a,{passive:!1});var s=this._contextMenuHandler.bind(this);this._unsubscribeContextMenu=function(){n._target.removeEventListener(\\"contextmenu\\",s)},this._target.addEventListener(\\"contextmenu\\",s,{passive:!1}),this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseEnterEvent),this._acceptMouseLeave=!0)},t.prototype._resetClickTimeout=function(){null!==this._clickTimeoutId&&clearTimeout(this._clickTimeoutId),this._clickCount=0,this._clickTimeoutId=null,this._clickCoordinate={x:-1/0,y:1/0}},t.prototype._resetTapTimeout=function(){null!==this._tapTimeoutId&&clearTimeout(this._tapTimeoutId),this._tapCount=0,this._tapTimeoutId=null,this._tapCoordinate={x:-1/0,y:1/0}},t.prototype._mouseMoveHandler=function(t){this._mousePressed||null!==this._touchMoveStartCoordinate||this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseMoveEvent),this._acceptMouseLeave=!0)},t.prototype._mouseWheelHandler=function(t){if(Math.abs(t.deltaX)>Math.abs(t.deltaY)){if(void 0===this._handler.mouseWheelHortEvent)return;if(this._preventDefault(t),0===Math.abs(t.deltaX))return;this._handler.mouseWheelHortEvent(this._makeCompatEvent(t),-t.deltaX)}else{if(void 0===this._handler.mouseWheelVertEvent)return;var e=-t.deltaY/100;if(0===e)return;switch(this._preventDefault(t),t.deltaMode){case t.DOM_DELTA_PAGE:e*=120;break;case t.DOM_DELTA_LINE:e*=32}if(0!==e){var i=Math.sign(e)*Math.min(1,Math.abs(e));this._handler.mouseWheelVertEvent(this._makeCompatEvent(t),i)}}},t.prototype._contextMenuHandler=function(t){this._preventDefault(t)},t.prototype._touchMoveHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null!==e&&(this._lastTouchEventTimeStamp=this._eventTimeStamp(t),null===this._startPinchMiddleCoordinate&&!this._preventTouchDragProcess)){this._pinchPrevented=!0;var i=this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._touchMoveStartCoordinate),o=i.yOffset;if(this._touchMoveExceededManhattanDistance||i.manhattanDistance>=5){if(!this._touchMoveExceededManhattanDistance){var n=.5*i.xOffset,r=o>=n&&!this._options.treatVertDragAsPageScroll(),a=n>o&&!this._options.treatHorzDragAsPageScroll();r||a||(this._preventTouchDragProcess=!0),this._touchMoveExceededManhattanDistance=!0,this._cancelTap=!0,this._clearLongTapTimeout(),this._resetTapTimeout()}this._preventTouchDragProcess||this._processEvent(this._makeCompatEvent(t,e),this._handler.touchMoveEvent)}}},t.prototype._mouseMoveWithDownHandler=function(t){0===t.button&&(5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._mouseMoveStartCoordinate).manhattanDistance||(this._cancelClick=!0,this._resetClickTimeout()),this._cancelClick&&this._processEvent(this._makeCompatEvent(t),this._handler.pressedMouseMoveEvent))},t.prototype._mouseTouchMoveWithDownInfo=function(t,e){var i=Math.abs(e.x-t.x),o=Math.abs(e.y-t.y);return{xOffset:i,yOffset:o,manhattanDistance:i+o}},t.prototype._touchEndHandler=function(t){var e=this._touchWithId(t.changedTouches,this._activeTouchId);if(null===e&&0===t.touches.length&&(e=t.changedTouches[0]),null!==e){this._activeTouchId=null,this._lastTouchEventTimeStamp=this._eventTimeStamp(t),this._clearLongTapTimeout(),this._touchMoveStartCoordinate=null,null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var i=this._makeCompatEvent(t,e);if(this._processEvent(i,this._handler.touchEndEvent),++this._tapCount,null!==this._tapTimeoutId&&this._tapCount>1)30>this._mouseTouchMoveWithDownInfo(this._getCoordinate(e),this._tapCoordinate).manhattanDistance&&!this._cancelTap&&this._processEvent(i,this._handler.doubleTapEvent),this._resetTapTimeout();else this._cancelTap||(this._processEvent(i,this._handler.tapEvent),void 0!==this._handler.tapEvent&&this._preventDefault(t));0===this._tapCount&&this._preventDefault(t),0===t.touches.length&&this._longTapActive&&(this._longTapActive=!1,this._preventDefault(t))}},t.prototype._mouseUpHandler=function(t){if(0===t.button){var e=this._makeCompatEvent(t);if(this._mouseMoveStartCoordinate=null,this._mousePressed=!1,null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),ii())this._target.ownerDocument.documentElement.removeEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp);if(!this._firesTouchEvents(t))if(this._processEvent(e,this._handler.mouseUpEvent),++this._clickCount,null!==this._clickTimeoutId&&this._clickCount>1)5>this._mouseTouchMoveWithDownInfo(this._getCoordinate(t),this._clickCoordinate).manhattanDistance&&!this._cancelClick&&this._processEvent(e,this._handler.mouseDoubleClickEvent),this._resetClickTimeout();else this._cancelClick||this._processEvent(e,this._handler.mouseClickEvent)}},t.prototype._clearLongTapTimeout=function(){null!==this._longTapTimeoutId&&(clearTimeout(this._longTapTimeoutId),this._longTapTimeoutId=null)},t.prototype._touchStartHandler=function(t){if(null===this._activeTouchId){var e=t.changedTouches[0];this._activeTouchId=e.identifier,this._lastTouchEventTimeStamp=this._eventTimeStamp(t);var i=this._target.ownerDocument.documentElement;this._cancelTap=!1,this._touchMoveExceededManhattanDistance=!1,this._preventTouchDragProcess=!1,this._touchMoveStartCoordinate=this._getCoordinate(e),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var o=this._touchMoveHandler.bind(this),n=this._touchEndHandler.bind(this);this._unsubscribeRootTouchEvents=function(){i.removeEventListener(\\"touchmove\\",o),i.removeEventListener(\\"touchend\\",n)},i.addEventListener(\\"touchmove\\",o,{passive:!1}),i.addEventListener(\\"touchend\\",n,{passive:!1}),this._clearLongTapTimeout(),this._longTapTimeoutId=setTimeout(this._longTapHandler.bind(this,t),500),this._processEvent(this._makeCompatEvent(t,e),this._handler.touchStartEvent),null===this._tapTimeoutId&&(this._tapCount=0,this._tapTimeoutId=setTimeout(this._resetTapTimeout.bind(this),500),this._tapCoordinate=this._getCoordinate(e))}},t.prototype._mouseDownHandler=function(t){if(2===t.button)return this._preventDefault(t),void this._processEvent(this._makeCompatEvent(t),this._handler.mouseRightClickEvent);if(0===t.button){var e=this._target.ownerDocument.documentElement;ii()&&e.addEventListener(\\"mouseleave\\",this._onFirefoxOutsideMouseUp),this._cancelClick=!1,this._mouseMoveStartCoordinate=this._getCoordinate(t),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null);var i=this._mouseMoveWithDownHandler.bind(this),o=this._mouseUpHandler.bind(this);this._unsubscribeRootMouseEvents=function(){e.removeEventListener(\\"mousemove\\",i),e.removeEventListener(\\"mouseup\\",o)},e.addEventListener(\\"mousemove\\",i),e.addEventListener(\\"mouseup\\",o),this._mousePressed=!0,this._firesTouchEvents(t)||(this._processEvent(this._makeCompatEvent(t),this._handler.mouseDownEvent),null===this._clickTimeoutId&&(this._clickCount=0,this._clickTimeoutId=setTimeout(this._resetClickTimeout.bind(this),500),this._clickCoordinate=this._getCoordinate(t)))}},t.prototype._init=function(){var t=this;this._target.addEventListener(\\"mouseenter\\",this._mouseEnterHandler.bind(this)),this._target.addEventListener(\\"touchcancel\\",this._clearLongTapTimeout.bind(this));var e=this._target.ownerDocument,i=function(e){null!=t._handler.mouseDownOutsideEvent&&(e.composed&&t._target.contains(e.composedPath()[0])||null!==e.target&&t._target.contains(e.target)||t._handler.mouseDownOutsideEvent({x:0,y:0,pageX:0,pageY:0}))};this._unsubscribeOutsideTouchEvents=function(){e.removeEventListener(\\"touchstart\\",i)},this._unsubscribeOutsideMouseEvents=function(){e.removeEventListener(\\"mousedown\\",i)},e.addEventListener(\\"mousedown\\",i),e.addEventListener(\\"touchstart\\",i,{passive:!0}),oi()&&(this._unsubscribeMobileSafariEvents=function(){t._target.removeEventListener(\\"dblclick\\",t._onMobileSafariDoubleClick)},this._target.addEventListener(\\"dblclick\\",this._onMobileSafariDoubleClick)),this._target.addEventListener(\\"mouseleave\\",this._mouseLeaveHandler.bind(this)),this._target.addEventListener(\\"touchstart\\",this._touchStartHandler.bind(this),{passive:!0}),this._target.addEventListener(\\"mousedown\\",(function(t){if(1===t.button)return t.preventDefault(),!1})),this._target.addEventListener(\\"mousedown\\",this._mouseDownHandler.bind(this)),this._initPinch(),this._target.addEventListener(\\"touchmove\\",(function(){}),{passive:!1})},t.prototype._initPinch=function(){var t=this;void 0===this._handler.pinchStartEvent&&void 0===this._handler.pinchEvent&&void 0===this._handler.pinchEndEvent||(this._target.addEventListener(\\"touchstart\\",(function(e){return t._checkPinchState(e.touches)}),{passive:!0}),this._target.addEventListener(\\"touchmove\\",(function(e){if(2===e.touches.length&&null!==t._startPinchMiddleCoordinate&&void 0!==t._handler.pinchEvent){var i=t._getTouchDistance(e.touches[0],e.touches[1])/t._startPinchDistance;t._handler.pinchEvent(k(k({},t._startPinchMiddleCoordinate),{pageX:0,pageY:0}),i),t._preventDefault(e)}}),{passive:!1}),this._target.addEventListener(\\"touchend\\",(function(e){t._checkPinchState(e.touches)})))},t.prototype._checkPinchState=function(t){1===t.length&&(this._pinchPrevented=!1),2!==t.length||this._pinchPrevented||this._longTapActive?this._stopPinch():this._startPinch(t)},t.prototype._startPinch=function(t){var e,i=null!==(e=this._target.getBoundingClientRect())&&void 0!==e?e:{left:0,top:0};this._startPinchMiddleCoordinate={x:(t[0].clientX-i.left+(t[1].clientX-i.left))/2,y:(t[0].clientY-i.top+(t[1].clientY-i.top))/2},this._startPinchDistance=this._getTouchDistance(t[0],t[1]),void 0!==this._handler.pinchStartEvent&&this._handler.pinchStartEvent({x:0,y:0,pageX:0,pageY:0}),this._clearLongTapTimeout()},t.prototype._stopPinch=function(){null!==this._startPinchMiddleCoordinate&&(this._startPinchMiddleCoordinate=null,void 0!==this._handler.pinchEndEvent&&this._handler.pinchEndEvent({x:0,y:0,pageX:0,pageY:0}))},t.prototype._mouseLeaveHandler=function(t){var e,i,o;null===(e=this._unsubscribeMousemove)||void 0===e||e.call(this),null===(i=this._unsubscribeMouseWheel)||void 0===i||i.call(this),null===(o=this._unsubscribeContextMenu)||void 0===o||o.call(this),this._firesTouchEvents(t)||this._acceptMouseLeave&&(this._processEvent(this._makeCompatEvent(t),this._handler.mouseLeaveEvent),this._acceptMouseLeave=!oi())},t.prototype._longTapHandler=function(t){var e=this._touchWithId(t.touches,this._activeTouchId);null!==e&&(this._processEvent(this._makeCompatEvent(t,e),this._handler.longTapEvent),this._cancelTap=!0,this._longTapActive=!0)},t.prototype._firesTouchEvents=function(t){var e;return void 0!==(null===(e=t.sourceCapabilities)||void 0===e?void 0:e.firesTouchEvents)?t.sourceCapabilities.firesTouchEvents:this._eventTimeStamp(t)i;++i)if(t[i].identifier===e)return t[i];return null},t}(),ai=function(){function t(t,e){var i=this;this._flingStartTime=(new Date).getTime(),this._flingScrollRequestId=null,this._startScrollCoordinate=null,this._touchCoordinate=null,this._touchCancelCrosshair=!1,this._touchZoomed=!1,this._pinchScale=1,this._mouseDownWidget=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,this._mouseMoveTriggerWidgetInfo={pane:null,widget:null},this._boundKeyBoardDownEvent=function(t){if(t.shiftKey)switch(t.code){case\\"Equal\\":i._chart.getChartStore().getTimeScaleStore().zoom(.5);break;case\\"Minus\\":i._chart.getChartStore().getTimeScaleStore().zoom(-.5);break;case\\"ArrowLeft\\":(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(-3*e.getBarSpace().bar);break;case\\"ArrowRight\\":var e;(e=i._chart.getChartStore().getTimeScaleStore()).startScroll(),e.scroll(3*e.getBarSpace().bar)}},this._container=t,this._chart=e,this._event=new ri(t,this,{treatVertDragAsPageScroll:function(){return!1},treatHorzDragAsPageScroll:function(){return!1}}),t.addEventListener(\\"keydown\\",this._boundKeyBoardDownEvent)}return t.prototype.pinchStartEvent=function(){return this._touchZoomed=!0,this._pinchScale=1,!0},t.prototype.pinchEvent=function(t,e){var i=this._findWidgetByEvent(t),o=i.pane,n=i.widget;if((null==o?void 0:o.getId())!==Kt.XAXIS&&(null==n?void 0:n.getName())===zt){var r=this._makeWidgetEvent(t,n),a=5*(e-this._pinchScale);return this._pinchScale=e,this._chart.getChartStore().getTimeScaleStore().zoom(a,{x:r.x,y:r.y}),!0}return!1},t.prototype.mouseWheelHortEvent=function(t,e){var i=this._chart.getChartStore().getTimeScaleStore();return i.startScroll(),i.scroll(e),!0},t.prototype.mouseWheelVertEvent=function(t,e){var i,o,n=this._findWidgetByEvent(t).widget,r=null!==(i=t.isTouch)&&void 0!==i&&i,a=this._makeWidgetEvent(t,n),s=null,l=null==n?void 0:n.getName();if(r)if(l===zt||l===Yt)s={x:a.x,y:a.y};else{var u=null===(o=this._chart.getPaneById(Kt.CANDLE))||void 0===o?void 0:o.getBounding();s={x:u.width/2,y:u.height/2}}else l===zt&&(s={x:a.x,y:a.y});return null!==s&&(this._chart.getChartStore().getTimeScaleStore().zoom(e,{x:a.x,y:a.y}),!0)},t.prototype.mouseDownEvent=function(t){var e,i,o=this._findWidgetByEvent(t),n=o.pane,r=o.widget;if(this._mouseDownWidget=r,null!==r){var a=this._makeWidgetEvent(t,r);switch(r.getName()){case Ht:return r.dispatchEvent(\\"mouseDownEvent\\",a);case zt:var s=null!==(e=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==e?e:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._startScrollCoordinate={x:a.x,y:a.y},this._chart.getChartStore().getTimeScaleStore().startScroll(),r.dispatchEvent(\\"mouseDownEvent\\",a);case Yt:return(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1),this._xAxisStartScaleCoordinate={x:a.x,y:a.y},this._xAxisStartScaleDistance=a.pageX,l;case Xt:var l;(l=r.dispatchEvent(\\"mouseDownEvent\\",a))&&this._chart.updatePane(1);s=null!==(i=null==n?void 0:n.getAxisComponent().getExtremum())&&void 0!==i?i:null;return this._prevYAxisExtremum=null===s?s:k({},s),this._yAxisStartScaleDistance=a.pageY,l}}return!1},t.prototype.mouseMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget,s=this._makeWidgetEvent(t,a);if((null===(e=this._mouseMoveTriggerWidgetInfo.pane)||void 0===e?void 0:e.getId())===(null==r?void 0:r.getId())&&(null===(i=this._mouseMoveTriggerWidgetInfo.widget)||void 0===i?void 0:i.getName())===(null==a?void 0:a.getName())||(null==a||a.dispatchEvent(\\"mouseEnterEvent\\",s),null===(o=this._mouseMoveTriggerWidgetInfo.widget)||void 0===o||o.dispatchEvent(\\"mouseLeaveEvent\\",s),this._mouseMoveTriggerWidgetInfo={pane:r,widget:a}),null!==a)switch(a.getName()){case zt:var l=a.dispatchEvent(\\"mouseMoveEvent\\",s),u=this._chart.getChartStore(),c={x:s.x,y:s.y,paneId:null==r?void 0:r.getId()};return l&&null!==u.getTooltipStore().getActiveIcon()&&(c=void 0,null!==a&&(a.getContainer().style.cursor=\\"pointer\\")),this._chart.getChartStore().getTooltipStore().setCrosshair(c),l;case Ht:case Yt:case Xt:l=a.dispatchEvent(\\"mouseMoveEvent\\",s);return this._chart.getChartStore().getTooltipStore().setCrosshair(),l}return!1},t.prototype.pressedMouseMoveEvent=function(t){var e,i,o,n,r;if(null!==this._mouseDownWidget&&this._mouseDownWidget.getName()===Ht)return this._mouseDownWidget.dispatchEvent(\\"pressedMouseMoveEvent\\",t);var a=this._findWidgetByEvent(t),s=a.pane,l=a.widget;if(null!==l&&(null===(e=this._mouseDownWidget)||void 0===e?void 0:e.getPane().getId())===(null==s?void 0:s.getId())&&(null===(i=this._mouseDownWidget)||void 0===i?void 0:i.getName())===l.getName()){var u=this._makeWidgetEvent(t,l);switch(l.getName()){case zt:var c=l.getBounding();if(!(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))&&null!==this._startScrollCoordinate){var h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&!h.getAutoCalcTickFlag()&&h.getScrollZoomEnabled()){var d=this._prevYAxisExtremum,p=d.min,v=d.max+(b=(S=d.range)*(C=(null!==(o=null==h?void 0:h.isReverse())&&void 0!==o&&o?this._startScrollCoordinate.y-u.y:u.y-this._startScrollCoordinate.y)/c.height)),g=h.convertToRealValue(E=p+b),f=h.convertToRealValue(v);h.setExtremum({min:E,max:v,range:v-E,realMin:g,realMax:f,realRange:f-g})}var m=u.x-this._startScrollCoordinate.x;this._chart.getChartStore().getTimeScaleStore().scroll(m)}return this._chart.getChartStore().getTooltipStore().setCrosshair({x:u.x,y:u.y,paneId:null==s?void 0:s.getId()}),x;case Yt:if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{var y=null==s?void 0:s.getAxisComponent();if(null===(n=null==y?void 0:y.getScrollZoomEnabled())||void 0===n||n){var _=10*((C=this._xAxisStartScaleDistance/u.pageX)-this._xAxisScale);this._xAxisScale=C,this._chart.getChartStore().getTimeScaleStore().zoom(_,null!==(r=this._xAxisStartScaleCoordinate)&&void 0!==r?r:void 0)}}return x;case Xt:var x;if(x=l.dispatchEvent(\\"pressedMouseMoveEvent\\",u))this._chart.updatePane(1);else{h=null==s?void 0:s.getAxisComponent();if(null!==this._prevYAxisExtremum&&h.getScrollZoomEnabled()){var S,C,b,T=this._prevYAxisExtremum,w=(S=T.range)*(C=u.pageY/this._yAxisStartScaleDistance),E=(p=T.min)-(b=(w-S)/2),I=(v=T.max+b,null==s?void 0:s.getAxisComponent());g=I.convertToRealValue(E),f=I.convertToRealValue(v);I.setExtremum({min:E,max:v,range:w,realMin:g,realMax:f,realRange:f-g}),this._chart.adjustPaneViewport(!1,!0,!0,!0)}}return x}}return!1},t.prototype.mouseUpEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Ht:case Yt:case Xt:i=e.dispatchEvent(\\"mouseUpEvent\\",o)}i&&this._chart.updatePane(1)}return this._mouseDownWidget=null,this._startScrollCoordinate=null,this._prevYAxisExtremum=null,this._xAxisStartScaleCoordinate=null,this._xAxisStartScaleDistance=0,this._xAxisScale=1,this._yAxisStartScaleDistance=0,i},t.prototype.mouseClickEvent=function(t){var e=this._findWidgetByEvent(t).widget;if(null!==e){var i=this._makeWidgetEvent(t,e);return e.dispatchEvent(\\"mouseClickEvent\\",i)}return!1},t.prototype.mouseRightClickEvent=function(t){var e=this._findWidgetByEvent(t).widget,i=!1;if(null!==e){var o=this._makeWidgetEvent(t,e);switch(e.getName()){case zt:case Yt:case Xt:i=e.dispatchEvent(\\"mouseRightClickEvent\\",o)}i&&this._chart.updatePane(1)}return!1},t.prototype.mouseDoubleClickEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o)switch(o.getName()){case zt:var n=this._makeWidgetEvent(t,o);return o.dispatchEvent(\\"mouseDoubleClickEvent\\",n);case Xt:var r=null==i?void 0:i.getAxisComponent();if(!r.getAutoCalcTickFlag())return r.setAutoCalcTickFlag(!0),this._chart.adjustPaneViewport(!1,!0,!0,!0),!0}return!1},t.prototype.mouseLeaveEvent=function(){return this._chart.getChartStore().getTooltipStore().setCrosshair(),!0},t.prototype.touchStartEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o){var n=this._makeWidgetEvent(t,o);switch(o.getName()){case zt:var r=this._chart.getChartStore(),a=r.getTooltipStore();if(o.dispatchEvent(\\"mouseDownEvent\\",n))return this._touchCancelCrosshair=!0,this._touchCoordinate=null,a.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._flingScrollRequestId&&(ie(this._flingScrollRequestId),this._flingScrollRequestId=null),this._flingStartTime=(new Date).getTime(),this._startScrollCoordinate={x:n.x,y:n.y},r.getTimeScaleStore().startScroll(),this._touchZoomed=!1,null!==this._touchCoordinate){var s=n.x-this._touchCoordinate.x,l=n.y-this._touchCoordinate.y;10>Math.sqrt(s*s+l*l)?(this._touchCoordinate={x:n.x,y:n.y},a.setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()})):(this._touchCoordinate=null,this._touchCancelCrosshair=!0,a.setCrosshair())}return!0;case Yt:case Xt:var u=o.dispatchEvent(\\"mouseDownEvent\\",n);return u&&this._chart.updatePane(1),u}}return!1},t.prototype.touchMoveEvent=function(t){var e,i,o,n=this._findWidgetByEvent(t),r=n.pane,a=n.widget;if(null!==a){var s=this._makeWidgetEvent(t,a),l=a.getName(),u=this._chart.getChartStore(),c=u.getTooltipStore();switch(l){case zt:if(a.dispatchEvent(\\"pressedMouseMoveEvent\\",s))return null===(e=s.preventDefault)||void 0===e||e.call(s),c.setCrosshair(void 0,!0),this._chart.updatePane(1),!0;if(null!==this._touchCoordinate)null===(i=s.preventDefault)||void 0===i||i.call(s),c.setCrosshair({x:s.x,y:s.y,paneId:null==r?void 0:r.getId()});else if(null!==this._startScrollCoordinate&&Math.abs(this._startScrollCoordinate.x-s.x)>this._startScrollCoordinate.y-s.y){var h=s.x-this._startScrollCoordinate.x;u.getTimeScaleStore().scroll(h)}return!0;case Yt:case Xt:var d=a.dispatchEvent(\\"pressedMouseMoveEvent\\",s);return d&&(null===(o=s.preventDefault)||void 0===o||o.call(s),this._chart.updatePane(1)),d}}return!1},t.prototype.touchEndEvent=function(t){var e=this,i=this._findWidgetByEvent(t).widget;if(null!==i){var o=this._makeWidgetEvent(t,i);switch(i.getName()){case zt:if(i.dispatchEvent(\\"mouseUpEvent\\",o),null!==this._startScrollCoordinate){var n=(new Date).getTime()-this._flingStartTime,r=(o.x-this._startScrollCoordinate.x)/(n>0?n:1)*20;if(200>n&&Math.abs(r)>0){var a=this._chart.getChartStore().getTimeScaleStore(),s=function(){e._flingScrollRequestId=ee((function(){a.startScroll(),a.scroll(r),1>Math.abs(r*=.975)?null!==e._flingScrollRequestId&&(ie(e._flingScrollRequestId),e._flingScrollRequestId=null):s()}))};s()}}return!0;case Yt:case Xt:i.dispatchEvent(\\"mouseUpEvent\\",o)&&this._chart.updatePane(1)}}return!1},t.prototype.tapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget,n=!1;if(null!==o){var r=this._makeWidgetEvent(t,o),a=o.dispatchEvent(\\"mouseClickEvent\\",r);if(o.getName()===zt){var s=this._makeWidgetEvent(t,o),l=this._chart.getChartStore().getTooltipStore();a?(this._touchCancelCrosshair=!0,this._touchCoordinate=null,l.setCrosshair(void 0,!0),n=!0):(this._touchCancelCrosshair||this._touchZoomed||(this._touchCoordinate={x:s.x,y:s.y},l.setCrosshair({x:s.x,y:s.y,paneId:null==i?void 0:i.getId()},!0),n=!0),this._touchCancelCrosshair=!1)}(n||a)&&this._chart.updatePane(1)}return n},t.prototype.doubleTapEvent=function(t){return this.mouseDoubleClickEvent(t)},t.prototype.longTapEvent=function(t){var e=this._findWidgetByEvent(t),i=e.pane,o=e.widget;if(null!==o&&o.getName()===zt){var n=this._makeWidgetEvent(t,o);return this._touchCoordinate={x:n.x,y:n.y},this._chart.getChartStore().getTooltipStore().setCrosshair({x:n.x,y:n.y,paneId:null==i?void 0:i.getId()}),!0}return!1},t.prototype._findWidgetByEvent=function(t){var e,i,o=this._chart.getAllPanes(),n=t.x,r=t.y,a=null;try{for(var s=L(o),l=s.next();!l.done;l=s.next()){var u=R(l.value,2)[1],c=u.getBounding();if(!(c.left>n||n>c.left+c.width||c.top>r||r>c.top+c.height)){a=u;break}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}null===a&&(a=this._chart.getPaneById(Kt.XAXIS));var h=null;if(null!==a){var d=a.getSeparatorWidget();if(null!==d){var p=d.getBounding();p.left>n||n>p.left+p.width||p.top>r||r>p.top+7||(h=d)}if(null===h){var v=a.getMainWidget(),g=v.getBounding();g.left>n||n>g.left+g.width||g.top>r||r>g.top+g.height||(h=v)}if(null===h){var f=a.getYAxisWidget();if(null!==f){var m=f.getBounding();m.left>n||n>m.left+m.width||m.top>r||r>m.top+m.height||(h=f)}}}return{pane:a,widget:h}},t.prototype._makeWidgetEvent=function(t,e){var i,o,n,r=null!==(i=null==e?void 0:e.getBounding())&&void 0!==i?i:null;return k(k({},t),{x:t.x-(null!==(o=null==r?void 0:r.left)&&void 0!==o?o:0),y:t.y-(null!==(n=null==r?void 0:r.top)&&void 0!==n?n:0)})},t.prototype.destroy=function(){this._container.removeEventListener(\\"keydown\\",this._boundKeyBoardDownEvent),this._event.destroy()},t}();t.DomPosition=void 0,(ni=t.DomPosition||(t.DomPosition={})).Root=\\"root\\",ni.Main=\\"main\\",ni.YAxis=\\"yAxis\\";var si=function(){function e(t,e){this._panes=new Map,this._initContainer(t),this._chartEvent=new ai(this._chartContainer,this),this._chartStore=new te(this,e),this._xAxisPane=new ei(this._chartContainer,this,Kt.XAXIS),this._panes.set(Kt.CANDLE,new Ue(this._chartContainer,this,Kt.CANDLE)),this.adjustPaneViewport(!0,!0,!0)}return e.prototype._initContainer=function(t){this._container=t,this._chartContainer=Y(\\"div\\",{position:\\"relative\\",width:\\"100%\\",outline:\\"none\\",borderStyle:\\"none\\",cursor:\\"crosshair\\",boxSizing:\\"border-box\\",userSelect:\\"none\\",webkitUserSelect:\\"none\\",msUserSelect:\\"none\\",MozUserSelect:\\"none\\",webkitTapHighlightColor:\\"transparent\\"}),this._chartContainer.tabIndex=1,t.appendChild(this._chartContainer)},e.prototype._measurePaneHeight=function(){var t,e=this._container.offsetHeight,i=this._xAxisPane.getAxisComponent().getAutoSize(),o=e-i;0>o&&(o=0);var n=0;this._panes.forEach((function(t){if(t.getId()!==Kt.CANDLE){var e=t.getBounding().height,i=t.getOptions().minHeight;i>e&&(e=i),n+e>o?e=Math.max(o-(n=o),0):n+=e,t.setBounding({height:e})}}));var r=o-n;null===(t=this._panes.get(Kt.CANDLE))||void 0===t||t.setBounding({height:r});var a=0;this._panes.forEach((function(t){t.setBounding({top:a}),a+=t.getBounding().height})),this._xAxisPane.setBounding({height:i,top:a})},e.prototype._measurePaneWidth=function(){var e=this._chartStore.getStyles().yAxis,i=e.position===t.YAxisPosition.Left,o=!e.inside,n=this._container.offsetWidth,r=0,a=Number.MIN_SAFE_INTEGER,s=0,l=0;this._panes.forEach((function(t){a=Math.max(a,t.getAxisComponent().getAutoSize())})),a>n&&(a=n),o?(r=n-a,i?(s=0,l=a):(s=n-a,l=0)):(r=n,l=0,s=i?0:n-a),this._chartStore.getTimeScaleStore().setTotalBarSpace(r);var u={width:n},c={width:r,left:l},h={width:a,left:s};this._panes.forEach((function(t){t.setBounding(u,c,h)})),this._xAxisPane.setBounding(u,c,h)},e.prototype._setPaneOptions=function(t,e){var i,o,n=this._panes.get(null!==(i=null==t?void 0:t.id)&&void 0!==i?i:\\"\\"),r=!1;if(void 0!==n){var a=e;if(t.id!==Kt.CANDLE&&void 0!==t.height&&t.height>0){var s=Math.max(null!==(o=t.minHeight)&&void 0!==o?o:n.getOptions().minHeight,0);n.setBounding({height:Math.max(s,t.height)}),a=!0,r=!0}n.setOptions(t),a&&this.adjustPaneViewport(r,!0,!0,!0,!0)}},e.prototype.getContainer=function(){return this._container},e.prototype.getChartStore=function(){return this._chartStore},e.prototype.getAllPanes=function(){return this._panes},e.prototype.adjustPaneViewport=function(t,e,i,o,n){t&&this._measurePaneHeight();var r=e,a=null!=n&&n;(null!=o&&o||a)&&this._panes.forEach((function(t){var e=t.getAxisComponent().buildTicks(a);r||(r=e)})),r&&this._measurePaneWidth(),null!=i&&i&&(this._xAxisPane.getAxisComponent().buildTicks(!0),this.updatePane(4))},e.prototype.updatePane=function(t,e){var i;void 0!==e?null===(i=this.getPaneById(e))||void 0===i||i.update(t):(this._xAxisPane.update(t),this._panes.forEach((function(e){e.update(t)})))},e.prototype.getPaneById=function(t){var e;return t===Kt.XAXIS?this._xAxisPane:null!==(e=this._panes.get(t))&&void 0!==e?e:null},e.prototype.crosshairChange=function(e){var i=this,o=this._chartStore.getActionStore();if(o.has(t.ActionType.OnCrosshairChange)){var n={};this._panes.forEach((function(t,o){var r={};i._chartStore.getIndicatorStore().getInstances(o).forEach((function(t){var i,o=t.result;r[t.name]=o[null!==(i=e.dataIndex)&&void 0!==i?i:o.length-1]})),n[o]=r})),void 0!==e.paneId&&o.execute(t.ActionType.OnCrosshairChange,k(k({},e),{indicatorData:n}))}},e.prototype.getDom=function(e,i){var o,n;if(void 0===e)return this._chartContainer;var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getContainer();case t.DomPosition.Main:return r.getMainWidget().getContainer();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getContainer())&&void 0!==n?n:null}return null},e.prototype.getSize=function(e,i){var o,n;if(void 0===e)return{width:this._chartContainer.offsetWidth,height:this._chartContainer.offsetHeight,left:0,top:0,right:0,bottom:0};var r=this.getPaneById(e);if(null!==r)switch(null!=i?i:t.DomPosition.Root){case t.DomPosition.Root:return r.getBounding();case t.DomPosition.Main:return r.getMainWidget().getBounding();case t.DomPosition.YAxis:return null!==(n=null===(o=r.getYAxisWidget())||void 0===o?void 0:o.getBounding())&&void 0!==n?n:null}return null},e.prototype.setStyles=function(t){var e,i,o;this._chartStore.setOptions({styles:t}),void 0!==(null===(e=null==(o=u(t)?Qt(t):t)?void 0:o.yAxis)||void 0===e?void 0:e.type)&&(null===(i=this.getPaneById(Kt.CANDLE))||void 0===i||i.getAxisComponent().setAutoCalcTickFlag(!0)),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getStyles=function(){return this._chartStore.getStyles()},e.prototype.setLocale=function(t){this._chartStore.setOptions({locale:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.getLocale=function(){return this._chartStore.getLocale()},e.prototype.setCustomApi=function(t){this._chartStore.setOptions({customApi:t}),this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.setPriceVolumePrecision=function(t,e){this._chartStore.setPrecision({price:t,volume:e})},e.prototype.getPriceVolumePrecision=function(){return this._chartStore.getPrecision()},e.prototype.setTimezone=function(t){this._chartStore.setOptions({timezone:t}),this._xAxisPane.getAxisComponent().buildTicks(!0),this._xAxisPane.update(3)},e.prototype.getTimezone=function(){return this._chartStore.getTimeScaleStore().getTimezone()},e.prototype.setOffsetRightDistance=function(t){this._chartStore.getTimeScaleStore().setOffsetRightDistance(t,!0)},e.prototype.getOffsetRightDistance=function(){return this._chartStore.getTimeScaleStore().getOffsetRightDistance()},e.prototype.setLeftMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setLeftMinVisibleBarCount(Math.ceil(t))},e.prototype.setRightMinVisibleBarCount=function(t){t>0&&this._chartStore.getTimeScaleStore().setRightMinVisibleBarCount(Math.ceil(t))},e.prototype.setBarSpace=function(t){this._chartStore.getTimeScaleStore().setBarSpace(t)},e.prototype.getBarSpace=function(){return this._chartStore.getTimeScaleStore().getBarSpace().bar},e.prototype.getVisibleRange=function(){return this._chartStore.getTimeScaleStore().getVisibleRange()},e.prototype.clearData=function(){this._chartStore.clear()},e.prototype.getDataList=function(){return this._chartStore.getDataList()},e.prototype.applyNewData=function(t,e,i){this._chartStore.clear(),0===t.length?this.adjustPaneViewport(!1,!0,!0,!0):this.applyMoreData(t,e,i)},e.prototype.applyMoreData=function(t,e,i){var o=this;this._chartStore.addData(t,0,e),t.length>0&&this._chartStore.getIndicatorStore().calcInstance().then((function(t){o.adjustPaneViewport(!1,!0,!0,!0),null==i||i()})).catch((function(t){}))},e.prototype.updateData=function(t,e){var i=this,o=this._chartStore.getDataList(),n=o.length,r=t.timestamp,a=C(o[n-1],\\"timestamp\\",0);if(r>=a){var s=n;r===a&&(s=n-1),this._chartStore.addData(t,s),this._chartStore.getIndicatorStore().calcInstance().then((function(t){i.adjustPaneViewport(!1,!0,!0,!0),null==e||e()})).catch((function(t){}))}},e.prototype.loadMore=function(t){this._chartStore.getTimeScaleStore().setLoadMoreCallback(t)},e.prototype.createIndicator=function(t,e,i,o){var n,r,a,l=this,c=u(t)?{name:t}:t;if(null===pt(c.name))return null;if(s(i)&&u(null==i?void 0:i.id)&&this._panes.has(i.id))a=i.id,this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).then((function(t){var e,o;l._setPaneOptions(i,null!==(o=null===(e=l._panes.get(a))||void 0===e?void 0:e.getAxisComponent().buildTicks(!0))&&void 0!==o&&o)})).catch((function(t){}));else{a=null!==(n=null==i?void 0:i.id)&&void 0!==n?n:z(Kt.INDICATOR);var h=Array.from(this._panes.values()).pop(),d=new Ke(this._chartContainer,this,a,h);h.setBottomPane(d);var p=null!==(r=null==i?void 0:i.height)&&void 0!==r?r:100;d.setBounding({height:p}),s(i)&&d.setOptions(i),this._panes.set(a,d),this._chartStore.getIndicatorStore().addInstance(c,a,null!=e&&e).finally((function(){l.adjustPaneViewport(!0,!0,!0,!0,!0),null==o||o()}))}return a},e.prototype.overrideIndicator=function(t,e,i){var o=this;this._chartStore.getIndicatorStore().override(t,null!=e?e:null).then((function(t){var e=R(t,2),n=e[1];(e[0]||n)&&(o.adjustPaneViewport(!1,n,!0,n),null==i||i())})).catch((function(){}))},e.prototype.getIndicatorByPaneId=function(t,e){return this._chartStore.getIndicatorStore().getInstanceByPaneId(t,e)},e.prototype.removeIndicator=function(t,e){var i=this._chartStore.getIndicatorStore();if(i.removeInstance(t,e)){var o=!1;if(t!==Kt.CANDLE&&!i.hasInstances(t)){var n=this._panes.get(t);if(void 0!==n){o=!0;var r=n.getTopPane(),a=n.getBottomPane();null==a||a.setTopPane(r),null==r||r.setBottomPane(a),null==n||n.destroy(),this._panes.delete(t)}}this.adjustPaneViewport(o,!0,!0,!0,!0)}},e.prototype.createOverlay=function(t,e){var i=[];if(u(t))i=[{name:t}];else if(o(t))i=t.map((function(t){return u(t)?{name:t}:t}));else{i=[t]}var n=!0;void 0!==e&&null!==this.getPaneById(e)||(e=Kt.CANDLE,n=!1);var r=this._chartStore.getOverlayStore().addInstances(i,e,n);return o(t)?r:r[0]},e.prototype.getOverlayById=function(t){return this._chartStore.getOverlayStore().getInstanceById(t)},e.prototype.overrideOverlay=function(t){this._chartStore.getOverlayStore().override(t)},e.prototype.removeOverlay=function(t){var e;void 0!==t&&(e=u(t)?{id:t}:t),this._chartStore.getOverlayStore().removeInstance(e)},e.prototype.setPaneOptions=function(t){this._setPaneOptions(t,!1)},e.prototype.setZoomEnabled=function(t){this._chartStore.getTimeScaleStore().setZoomEnabled(t)},e.prototype.isZoomEnabled=function(){return this._chartStore.getTimeScaleStore().getZoomEnabled()},e.prototype.setScrollEnabled=function(t){this._chartStore.getTimeScaleStore().setScrollEnabled(t)},e.prototype.isScrollEnabled=function(){return this._chartStore.getTimeScaleStore().getScrollEnabled()},e.prototype.scrollByDistance=function(t,e){var i=void 0===e||0>e?0:e,o=this._chartStore.getTimeScaleStore();if(i>0){o.startScroll();var n=(new Date).getTime(),r=function(){var e=((new Date).getTime()-n)/i,a=e>=1;o.scroll(a?t:t*e),a||requestAnimationFrame(r)};r()}else o.startScroll(),o.scroll(t)},e.prototype.scrollToRealTime=function(t){var e=this._chartStore.getTimeScaleStore(),i=e.getBarSpace().bar,o=e.getOffsetRightBarCount()-e.getInitialOffsetRightDistance()/i;this.scrollByDistance(o*i,t)},e.prototype.scrollToDataIndex=function(t,e){var i=this._chartStore.getTimeScaleStore(),o=(i.getOffsetRightBarCount()+(this.getDataList().length-1-t))*i.getBarSpace().bar;this.scrollByDistance(o,e)},e.prototype.scrollToTimestamp=function(t,e){var i=Z(this.getDataList(),\\"timestamp\\",t);this.scrollToDataIndex(i,e)},e.prototype.zoomAtCoordinate=function(t,e,i){var o=void 0===i||0>i?0:i,n=this._chartStore.getTimeScaleStore();if(o>0){var r=n.getBarSpace().bar,a=r*t-r,s=(new Date).getTime(),l=function(){var t=((new Date).getTime()-s)/o,i=t>=1;n.zoom((i?a:a*t)/r,e),i||requestAnimationFrame(l)};l()}else n.zoom(t,e)},e.prototype.zoomAtDataIndex=function(t,e,i){var o=this._chartStore.getTimeScaleStore().dataIndexToCoordinate(e);this.zoomAtCoordinate(t,{x:o,y:0},i)},e.prototype.zoomAtTimestamp=function(t,e,i){var o=Z(this.getDataList(),\\"timestamp\\",e);this.zoomAtDataIndex(t,o,i)},e.prototype.convertToPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e={},i=t.dataIndex;if(void 0!==t.timestamp&&(i=c.timestampToDataIndex(t.timestamp)),void 0!==i&&(e.x=null==p?void 0:p.convertToPixel(i)),void 0!==t.value){var o=null==v?void 0:v.convertToPixel(t.value);e.y=s?h.top+o:o}return e}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.convertFromPixel=function(t,e){var i,n=e.paneId,r=void 0===n?Kt.CANDLE:n,a=e.absolute,s=void 0!==a&&a,l=[];if(r!==Kt.XAXIS){var u=this.getPaneById(r);if(null!==u){var c=this._chartStore.getTimeScaleStore(),h=u.getBounding(),d=[].concat(t),p=this._xAxisPane.getAxisComponent(),v=u.getAxisComponent();l=d.map((function(t){var e,i={};if(void 0!==t.x){var o=p.convertFromPixel(t.x);i.dataIndex=o,i.timestamp=null!==(e=c.dataIndexToTimestamp(o))&&void 0!==e?e:void 0}void 0!==t.y&&(i.value=v.convertFromPixel(s?t.y-h.top:t.y));return i}))}}return o(t)?l:null!==(i=l[0])&&void 0!==i?i:{}},e.prototype.executeAction=function(e,i){var o;if(e===t.ActionType.OnCrosshairChange){var n=k({},i);n.paneId=null!==(o=n.paneId)&&void 0!==o?o:Kt.CANDLE,this._chartStore.getTooltipStore().setCrosshair(n)}},e.prototype.subscribeAction=function(t,e){this._chartStore.getActionStore().subscribe(t,e)},e.prototype.unsubscribeAction=function(t,e){this._chartStore.getActionStore().unsubscribe(t,e)},e.prototype.getConvertPictureUrl=function(t,e,i){var o=this._chartContainer.offsetWidth,n=this._chartContainer.offsetHeight,r=Y(\\"canvas\\",{width:\\"\\".concat(o,\\"px\\"),height:\\"\\".concat(n,\\"px\\"),boxSizing:\\"border-box\\"}),a=r.getContext(\\"2d\\"),s=X(r);r.width=o*s,r.height=n*s,a.scale(s,s),a.fillStyle=null!=i?i:\\"#FFFFFF\\",a.fillRect(0,0,o,n);var l=null!=t&&t;this._panes.forEach((function(t){var e=t.getBounding();a.drawImage(t.getImage(l),0,e.top,o,e.height)}));var u=this._xAxisPane.getBounding();return a.drawImage(this._xAxisPane.getImage(l),0,u.top,o,u.height),r.toDataURL(\\"image/\\".concat(null!=e?e:\\"jpeg\\"))},e.prototype.resize=function(){this.adjustPaneViewport(!0,!0,!0,!0,!0)},e.prototype.destroy=function(){this._chartEvent.destroy(),this._panes.forEach((function(t){t.destroy()})),this._panes.clear(),this._xAxisPane.destroy(),this._container.removeChild(this._chartContainer)},e}(),li=new Map,ui=1;var ci={clone:i,merge:e,isString:u,isNumber:a,isValid:s,isObject:r,isArray:o,isFunction:n,isBoolean:l,formatValue:C,formatPrecision:T,formatBigNumber:w,formatDate:b,formatThousands:E,calcTextWidth:j,getLinearSlopeIntercept:kt,getLinearYFromSlopeIntercept:Pt,getLinearYFromCoordinates:Mt,checkCoordinateOnArc:xe,checkCoordinateOnCircle:re,checkCoordinateOnLine:Dt,checkCoordinateOnPolygon:le,checkCoordinateOnRect:de,checkCoordinateOnText:fe,drawArc:Se,drawCircle:ae,drawLine:At,drawPolygon:ue,drawRect:pe,drawText:me,drawRectText:_e};t.dispose=function(t){var e,i,o;if(t instanceof si)o=t.id;else{var n=void 0;o=null!==(e=null==(n=u(t)?document.getElementById(t):t)?void 0:n.getAttribute(\\"k-line-chart-id\\"))&&void 0!==e?e:null}null!==o&&(null===(i=li.get(o))||void 0===i||i.destroy(),li.delete(o))},t.getFigureClass=function(t){var e;return null!==(e=be[t])&&void 0!==e?e:null},t.getOverlayClass=function(t){var e;return null!==(e=Vt[t])&&void 0!==e?e:null},t.getSupportedFigures=function(){return Object.keys(be)},t.getSupportedIndicators=function(){return Object.keys(ht)},t.getSupportedLocales=function(){return Object.keys(Be)},t.getSupportedOverlays=function(){return Object.keys(Vt)},t.init=function(t,e){var i;if(null===(i=u(t)?document.getElementById(t):t))return null;var o=li.get(i.id);if(void 0!==o)return o;var n=\\"k_line_chart_\\".concat(ui++);return(o=new si(i,e)).id=n,i.setAttribute(\\"k-line-chart-id\\",n),li.set(n,o),o},t.registerFigure=function(t){be[t.name]=wt.extend(t)},t.registerIndicator=function(t){ht[t.name]=nt.extend(t)},t.registerLocale=function(t,e){Be[t]=k(k({},Be[t]),e)},t.registerOverlay=function(t){Vt[t.name]=xt.extend(t)},t.registerStyles=function(t,e){Jt[t]=e},t.utils=ci,t.version=function(){return\\"9.5.4\\"}}));\\n"]]},"headers":[],"relativePath":"sample/axis.md","filePath":"sample/axis.md","lastUpdated":1698784282000}`),d={name:"sample/axis.md"},E=Object.assign(d,{setup(y){return(v,g)=>(i(),r("div",null,[u,l(n,{js:t(s),html:t(o),css:t(a),title:"坐标轴"},null,8,["js","html","css"]),h]))}});export{F as __pageData,E as default}; diff --git a/assets/sample_basic.md.59825fcd.js b/assets/sample_basic.md.80007630.js similarity index 99% rename from assets/sample_basic.md.59825fcd.js rename to assets/sample_basic.md.80007630.js index 6cb47a420..3878309bb 100644 --- a/assets/sample_basic.md.59825fcd.js +++ b/assets/sample_basic.md.80007630.js @@ -1,4 +1,4 @@ -import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as i}from"./chunks/index.7607712b.js";import{o as a,c as r,H as s,l as t,k as e,a as l,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"基础展示",tabindex:"-1"},[l("基础展示 "),e("a",{class:"header-anchor",href:"#基础展示","aria-label":'Permalink to "基础展示"'},"​")],-1),p=c(`
js
import { init } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as i}from"./chunks/index.7607712b.js";import{o as a,c as r,H as s,l as t,k as e,a as l,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"基础展示",tabindex:"-1"},[l("基础展示 "),e("a",{class:"header-anchor",href:"#基础展示","aria-label":'Permalink to "基础展示"'},"​")],-1),p=c(`
js
import { init } from 'klinecharts'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
   let basePrice = 5000
diff --git a/assets/sample_basic.md.59825fcd.lean.js b/assets/sample_basic.md.80007630.lean.js
similarity index 100%
rename from assets/sample_basic.md.59825fcd.lean.js
rename to assets/sample_basic.md.80007630.lean.js
diff --git a/assets/sample_candle-type.md.8c5ec3fb.js b/assets/sample_candle-type.md.cddd1021.js
similarity index 99%
rename from assets/sample_candle-type.md.8c5ec3fb.js
rename to assets/sample_candle-type.md.cddd1021.js
index 2b948731c..932fb90d5 100644
--- a/assets/sample_candle-type.md.8c5ec3fb.js
+++ b/assets/sample_candle-type.md.cddd1021.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.a5468e2b.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"蜡烛类型",tabindex:"-1"},[c("蜡烛类型 "),e("a",{class:"header-anchor",href:"#蜡烛类型","aria-label":'Permalink to "蜡烛类型"'},"​")],-1),h=p(`
js
import { init } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.a5468e2b.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"蜡烛类型",tabindex:"-1"},[c("蜡烛类型 "),e("a",{class:"header-anchor",href:"#蜡烛类型","aria-label":'Permalink to "蜡烛类型"'},"​")],-1),h=p(`
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/sample_candle-type.md.8c5ec3fb.lean.js b/assets/sample_candle-type.md.cddd1021.lean.js
similarity index 100%
rename from assets/sample_candle-type.md.8c5ec3fb.lean.js
rename to assets/sample_candle-type.md.cddd1021.lean.js
diff --git a/assets/sample_data.md.c18759dc.js b/assets/sample_data.md.2938204b.js
similarity index 99%
rename from assets/sample_data.md.c18759dc.js
rename to assets/sample_data.md.2938204b.js
index c652703e4..dedcfb25e 100644
--- a/assets/sample_data.md.c18759dc.js
+++ b/assets/sample_data.md.2938204b.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as i}from"./chunks/index.9e06f78c.js";import{o as a,c as s,H as r,l as t,k as e,a as l,Q as c}from"./chunks/framework.c401375a.js";const p=e("h1",{id:"数据加载",tabindex:"-1"},[l("数据加载 "),e("a",{class:"header-anchor",href:"#数据加载","aria-label":'Permalink to "数据加载"'},"​")],-1),u=c(`
js
import { init } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as i}from"./chunks/index.9e06f78c.js";import{o as a,c as s,H as r,l as t,k as e,a as l,Q as c}from"./chunks/framework.c401375a.js";const p=e("h1",{id:"数据加载",tabindex:"-1"},[l("数据加载 "),e("a",{class:"header-anchor",href:"#数据加载","aria-label":'Permalink to "数据加载"'},"​")],-1),u=c(`
js
import { init } from 'klinecharts'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
   let basePrice = 5000
diff --git a/assets/sample_data.md.c18759dc.lean.js b/assets/sample_data.md.2938204b.lean.js
similarity index 100%
rename from assets/sample_data.md.c18759dc.lean.js
rename to assets/sample_data.md.2938204b.lean.js
diff --git a/assets/sample_i18n.md.de0ef7be.js b/assets/sample_i18n.md.92637d54.js
similarity index 99%
rename from assets/sample_i18n.md.de0ef7be.js
rename to assets/sample_i18n.md.92637d54.js
index e08c8fca2..ddfdd898a 100644
--- a/assets/sample_i18n.md.de0ef7be.js
+++ b/assets/sample_i18n.md.92637d54.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.5af418fd.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"多语言",tabindex:"-1"},[c("多语言 "),e("a",{class:"header-anchor",href:"#多语言","aria-label":'Permalink to "多语言"'},"​")],-1),h=p(`
js
import { init, registerLocale } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.5af418fd.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"多语言",tabindex:"-1"},[c("多语言 "),e("a",{class:"header-anchor",href:"#多语言","aria-label":'Permalink to "多语言"'},"​")],-1),h=p(`
js
import { init, registerLocale } from 'klinecharts'
 import './index.less'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/sample_i18n.md.de0ef7be.lean.js b/assets/sample_i18n.md.92637d54.lean.js
similarity index 100%
rename from assets/sample_i18n.md.de0ef7be.lean.js
rename to assets/sample_i18n.md.92637d54.lean.js
diff --git a/assets/sample_indicator.md.dd6fd3d7.js b/assets/sample_indicator.md.9f30f27b.js
similarity index 99%
rename from assets/sample_indicator.md.dd6fd3d7.js
rename to assets/sample_indicator.md.9f30f27b.js
index 2b8b8b1ba..72593a222 100644
--- a/assets/sample_indicator.md.dd6fd3d7.js
+++ b/assets/sample_indicator.md.9f30f27b.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as s,h as o,c as a}from"./chunks/index.bdd66fc8.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"技术指标",tabindex:"-1"},[p("技术指标 "),e("a",{class:"header-anchor",href:"#技术指标","aria-label":'Permalink to "技术指标"'},"​")],-1),h=c(`
js
import { init, registerIndicator } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as s,h as o,c as a}from"./chunks/index.bdd66fc8.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"技术指标",tabindex:"-1"},[p("技术指标 "),e("a",{class:"header-anchor",href:"#技术指标","aria-label":'Permalink to "技术指标"'},"​")],-1),h=c(`
js
import { init, registerIndicator } from 'klinecharts'
 import './index.css'
 
 const fruits = [
diff --git a/assets/sample_indicator.md.dd6fd3d7.lean.js b/assets/sample_indicator.md.9f30f27b.lean.js
similarity index 100%
rename from assets/sample_indicator.md.dd6fd3d7.lean.js
rename to assets/sample_indicator.md.9f30f27b.lean.js
diff --git a/assets/sample_overlay.md.83ae0572.js b/assets/sample_overlay.md.f27fefab.js
similarity index 99%
rename from assets/sample_overlay.md.83ae0572.js
rename to assets/sample_overlay.md.f27fefab.js
index 18c6501e7..aa91cdaa8 100644
--- a/assets/sample_overlay.md.83ae0572.js
+++ b/assets/sample_overlay.md.f27fefab.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.66862884.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"覆盖物",tabindex:"-1"},[p("覆盖物 "),e("a",{class:"header-anchor",href:"#覆盖物","aria-label":'Permalink to "覆盖物"'},"​")],-1),h=c(`
js
import { init, registerOverlay } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.66862884.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"覆盖物",tabindex:"-1"},[p("覆盖物 "),e("a",{class:"header-anchor",href:"#覆盖物","aria-label":'Permalink to "覆盖物"'},"​")],-1),h=c(`
js
import { init, registerOverlay } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/sample_overlay.md.83ae0572.lean.js b/assets/sample_overlay.md.f27fefab.lean.js
similarity index 100%
rename from assets/sample_overlay.md.83ae0572.lean.js
rename to assets/sample_overlay.md.f27fefab.lean.js
diff --git a/assets/sample_theme.md.a35910ad.js b/assets/sample_theme.md.3fc59377.js
similarity index 99%
rename from assets/sample_theme.md.a35910ad.js
rename to assets/sample_theme.md.3fc59377.js
index 05d7750fa..8013a50d0 100644
--- a/assets/sample_theme.md.a35910ad.js
+++ b/assets/sample_theme.md.3fc59377.js
@@ -1,4 +1,4 @@
-import{u as a,B as r,x as i,o as l,c as p,H as c,l as e,k as o,a as u,Q as h}from"./chunks/framework.c401375a.js";import{C as d}from"./chunks/Chart.68e0a929.js";import{j as y,c as v,h as g}from"./chunks/index.539e966f.js";const f=o("h1",{id:"主题",tabindex:"-1"},[u("主题 "),o("a",{class:"header-anchor",href:"#主题","aria-label":'Permalink to "主题"'},"​")],-1),m=h(`
js
import { init, registerStyles } from 'klinecharts'
+import{u as a,B as r,x as i,o as l,c as p,H as c,l as e,k as o,a as u,Q as h}from"./chunks/framework.c401375a.js";import{C as d}from"./chunks/Chart.68e0a929.js";import{j as y,c as v,h as g}from"./chunks/index.539e966f.js";const f=o("h1",{id:"主题",tabindex:"-1"},[u("主题 "),o("a",{class:"header-anchor",href:"#主题","aria-label":'Permalink to "主题"'},"​")],-1),m=h(`
js
import { init, registerStyles } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/sample_theme.md.a35910ad.lean.js b/assets/sample_theme.md.3fc59377.lean.js
similarity index 100%
rename from assets/sample_theme.md.a35910ad.lean.js
rename to assets/sample_theme.md.3fc59377.lean.js
diff --git a/assets/sample_timezone.md.d8a256a6.js b/assets/sample_timezone.md.c7962eed.js
similarity index 99%
rename from assets/sample_timezone.md.d8a256a6.js
rename to assets/sample_timezone.md.c7962eed.js
index faf4aaea4..6cbf547e7 100644
--- a/assets/sample_timezone.md.d8a256a6.js
+++ b/assets/sample_timezone.md.c7962eed.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.d021247c.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"时区",tabindex:"-1"},[c("时区 "),e("a",{class:"header-anchor",href:"#时区","aria-label":'Permalink to "时区"'},"​")],-1),h=p(`
js
import { init } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as o,h as s,c as a}from"./chunks/index.d021247c.js";import{o as i,c as r,H as l,l as t,k as e,a as c,Q as p}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"时区",tabindex:"-1"},[c("时区 "),e("a",{class:"header-anchor",href:"#时区","aria-label":'Permalink to "时区"'},"​")],-1),h=p(`
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/sample_timezone.md.d8a256a6.lean.js b/assets/sample_timezone.md.c7962eed.lean.js
similarity index 100%
rename from assets/sample_timezone.md.d8a256a6.lean.js
rename to assets/sample_timezone.md.c7962eed.lean.js
diff --git a/assets/sample_tooltip.md.e12dd419.js b/assets/sample_tooltip.md.761071df.js
similarity index 99%
rename from assets/sample_tooltip.md.e12dd419.js
rename to assets/sample_tooltip.md.761071df.js
index 66f7f0cd9..c2edc7dc4 100644
--- a/assets/sample_tooltip.md.e12dd419.js
+++ b/assets/sample_tooltip.md.761071df.js
@@ -1,4 +1,4 @@
-import{C as n}from"./chunks/Chart.68e0a929.js";import{j as s,h as o,c as a}from"./chunks/index.d5980486.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"提示条",tabindex:"-1"},[p("提示条 "),e("a",{class:"header-anchor",href:"#提示条","aria-label":'Permalink to "提示条"'},"​")],-1),h=c(`
js
import { init } from 'klinecharts'
+import{C as n}from"./chunks/Chart.68e0a929.js";import{j as s,h as o,c as a}from"./chunks/index.d5980486.js";import{o as i,c as r,H as l,l as t,k as e,a as p,Q as c}from"./chunks/framework.c401375a.js";const u=e("h1",{id:"提示条",tabindex:"-1"},[p("提示条 "),e("a",{class:"header-anchor",href:"#提示条","aria-label":'Permalink to "提示条"'},"​")],-1),h=c(`
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
diff --git a/assets/sample_tooltip.md.e12dd419.lean.js b/assets/sample_tooltip.md.761071df.lean.js
similarity index 100%
rename from assets/sample_tooltip.md.e12dd419.lean.js
rename to assets/sample_tooltip.md.761071df.lean.js
diff --git a/components/sample/axis/index.html b/components/sample/axis/index.html
index 2e40e6482..419097550 100644
--- a/components/sample/axis/index.html
+++ b/components/sample/axis/index.html
@@ -7,18 +7,18 @@
     
     
     
-    
+    
     
     
-    
-    
+    
+    
     
     
     
     
   
   
-    
Skip to content
js
import { init } from 'klinecharts'
+    
Skip to content
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -277,7 +277,7 @@
   border: none;
 }
 `

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/components/sample/basic/index.html b/components/sample/basic/index.html index 6e77913e4..39d330883 100644 --- a/components/sample/basic/index.html +++ b/components/sample/basic/index.html @@ -7,18 +7,18 @@ - + - - + + -
Skip to content
js
import { init } from 'klinecharts'
+    
Skip to content
js
import { init } from 'klinecharts'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
   let basePrice = 5000
@@ -73,7 +73,7 @@
 
 const chart = init('k-line-chart')
 chart.applyNewData(genData())
html
<div id="k-line-chart" style="height:430px"/>
<div id="k-line-chart" style="height:430px"/>

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/components/sample/candle-type/index.html b/components/sample/candle-type/index.html index 5cce615d2..8c7e19512 100644 --- a/components/sample/candle-type/index.html +++ b/components/sample/candle-type/index.html @@ -7,18 +7,18 @@ - + - - + + -
Skip to content
js
import { init } from 'klinecharts'
+    
Skip to content
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -167,7 +167,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/components/sample/data/index.html b/components/sample/data/index.html index 3e90db8d9..c6e7e53aa 100644 --- a/components/sample/data/index.html +++ b/components/sample/data/index.html @@ -7,18 +7,18 @@ - + - - + + -
Skip to content
js
import { init } from 'klinecharts'
+    
Skip to content
js
import { init } from 'klinecharts'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
   let basePrice = 5000
@@ -115,7 +115,7 @@
     updateData()
   }, 600)
 }
html
<div id="k-line-chart" style="height:430px"/>
<div id="k-line-chart" style="height:430px"/>

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/components/sample/i18n/index.html b/components/sample/i18n/index.html index 244ded4e4..8a6223c51 100644 --- a/components/sample/i18n/index.html +++ b/components/sample/i18n/index.html @@ -7,18 +7,18 @@ - + - - + + -
Skip to content
js
import { init, registerLocale } from 'klinecharts'
+    
Skip to content
js
import { init, registerLocale } from 'klinecharts'
 import './index.less'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -175,7 +175,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/components/sample/indicator/index.html b/components/sample/indicator/index.html index 52ee6fcca..d65624b5e 100644 --- a/components/sample/indicator/index.html +++ b/components/sample/indicator/index.html @@ -7,18 +7,18 @@ - + - - + + -
Skip to content
js
import { init, registerIndicator } from 'klinecharts'
+    
Skip to content
js
import { init, registerIndicator } from 'klinecharts'
 import './index.css'
 
 const fruits = [
@@ -269,7 +269,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/components/sample/overlay/index.html b/components/sample/overlay/index.html index 0635892eb..b7010cb40 100644 --- a/components/sample/overlay/index.html +++ b/components/sample/overlay/index.html @@ -7,18 +7,18 @@ - + - - + + -
Skip to content
js
import { init, registerOverlay } from 'klinecharts'
+    
Skip to content
js
import { init, registerOverlay } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -209,7 +209,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/components/sample/theme/index.html b/components/sample/theme/index.html index 8f63fb0f7..4779d539f 100644 --- a/components/sample/theme/index.html +++ b/components/sample/theme/index.html @@ -7,18 +7,18 @@ - + - - + + -
Skip to content
js
import { init, registerStyles } from 'klinecharts'
+    
Skip to content
js
import { init, registerStyles } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -355,7 +355,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/components/sample/timezone/index.html b/components/sample/timezone/index.html index a609362ca..97df1f0fa 100644 --- a/components/sample/timezone/index.html +++ b/components/sample/timezone/index.html @@ -7,18 +7,18 @@ - + - - + + -
Skip to content
js
import { init } from 'klinecharts'
+    
Skip to content
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -157,7 +157,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/components/sample/tooltip/index.html b/components/sample/tooltip/index.html index 0218731ff..c8026788d 100644 --- a/components/sample/tooltip/index.html +++ b/components/sample/tooltip/index.html @@ -7,18 +7,18 @@ - + - - + + -
Skip to content
js
import { init } from 'klinecharts'
+    
Skip to content
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -315,7 +315,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/changelog.html b/en-US/guide/changelog.html index 6e1be5d05..4234cbad1 100644 --- a/en-US/guide/changelog.html +++ b/en-US/guide/changelog.html @@ -7,10 +7,10 @@ - + - + @@ -19,7 +19,7 @@
Skip to content

📠 Change Log

9.5.4

2023-09-22

  • 🐞 Fix the issue of not display the latest price line when the style candle.type is area.
  • 🐞 Fix the issue of incorrect display of the style crosshair.vertical.text.paddingLeft.

9.5.3

2023-09-19

  • 🐞 Fix typescript import error.

9.5.2

2023-09-18

  • 💄 Optimize the figure text.
  • 💄 Optimize built-in overlays simpleAnnotation and simpleTag.
  • 💄 Optimize the free style of technical indicators and support increment.
  • 🐞 Fix typescript declaration issue.

9.5.1

2023-08-14

  • 🆕 Add chart api getOverlayClass.
  • 🆕 Style configuration candle.tooltip.custom add built-in support change.
  • 💄 Optimize figure rect event trigger.
  • ↩️ Separator event trigger optimization rollback.

9.5.0

2023-06-15

  • 🆕 Overlay add event onDoubleClick, add property modeSensitivity.
  • 🆕 Style configuration candle.tooltip.custom supports string templates.
  • 🐞 Optimize the scrolling frame drop issue on the mobile side.
  • 🐞 Fix pane id naming typo.
  • 💄 Optimize the response sensitivity of dividing line events.
  • 💄 Optimize the attrs type declaration in OverlayFigure under typescript.

9.4.0

2023-05-25

  • 🆕 Instance API 'createOverlay' supports arrays.
  • 🆕 overlay add attributes paneId, defaultZLevel and zLevel.
  • 🆕 xAxis add methods convertTimestampFromPixel and convertTimestampToPixel.
  • 💄 Optimize the display of candle.

9.3.0

2023-05-13

  • 🆕 Add chart API utils.calcTextWidth.
  • 🆕 The instance APIs createIndicator(value, isStack, options) and setPaneOptions(options) have added options. axisOptions.
  • 🆕 The indicator graphic configuration supports customization.
  • 💄 Optimize the bar width ratio.
  • 💄 Optimize internal acquisition of screen pixel ratio.
  • 💄 Optimize internal ID generation.

9.2.2

2023-05-04

  • 🐞 Fix figure line check event error.
  • 💄 Optimize type check.

9.2.1

2023-04-27

  • 💄 Optimize the default style by changing #EF5350 to #F92855 and #26A69A to #2DC08E.
  • 💄 Optimize typescript declarations.

9.2.0

2023-04-24

  • 🆕 Add instance API getOffsetRightDistance and executeAction.
  • 🆕 Add success callback for instance API applyNewData, applyMoreData and updateData.
  • 🆕 Support the display of thousands.
  • 🆕 Add style configuration candle.bar.upBorderColor, candle.bar.downBorderColor, candle.bar.noChangeBorderColor, candle.bar.upWickColor, candle.bar.downWickColor, candle.bar.noChangeWickColor, candle.tooltip.rect.position and candle.tooltip.rect.offsetBottom.
  • 🆕 Add realFrom and realTo to all visibleRange.
  • 💄 Optimize API, klinecharts.utils.isValid and klinecharts.utils.formatBigNumber.
  • 💄 Optimize the log output in the development environment.

9.1.3

2023-04-15

  • 🐞 Fix the issue of not refreshing when the input parameter of the chart API applyNewData is an empty array.
  • 🐞 Fix the issue of cross cursor text not displaying on the y-axis when there is no data.
  • 💄 Optimize the display of area chart.
  • 💄 Optimize coverage event callback parameters and add figureKey and figureIndex.
  • 💄 Optimize typescript overlay style types, as well as base types DeepPartial and DeepRequired.

9.1.2

2023-04-10

  • 🐞 Fix the issue of inaccurate triggering events for the built-in figure line.
  • 🐞 Fix the issue of triggering events for the first time after the simpleAnnotation and simpleTag built-in overlays are drawn.
  • 💄 Optimize overlay figure to ignore events and support event selection.

9.1.1

2023-03-14

  • 🐞 Fix the invalidity of the built-in figure arc.
  • 💄 Optimize rendering updates.

9.1.0

2023-02-23

  • 🆕 The chart instance method subscribeAction and unsubscribeAction types add onCandleBarClick.
  • 🆕 The overlay supports double-clicking to force the end of drawing.
  • 💄 Optimize event handling.

9.0.1

2023-02-17 🐞 Fix the introduction of typescript.

9.0.0

2023-02-16

  • 🛠 Typescript refactoring.
  • 🆕 New features
    • Add Y axis direction zoom and scroll.
    • API
      • New chart methods registerFigure, getSupportFigures, getFigureClass, rigiderOverlay, getSupportOverlays, registerLocale, getSupportLocales, registerStyles are added.
      • New instance methods, getSize, setLocale, getLocal, setCustomApi, getVisibleRange, createOverlay, getOverlayById, overrideOverlay, removeOverlay.
    • Style Configuration
      • Add candle.priceMark.last.text.borderStyle, candle.tooltip.icons, indicator.lastValueMark.text.borderStyle, indicator.tooltip.icons, crosshair.horizontal. text.borderStyle, crosshair.vertical.text.borderStyle.
  • 👉 Change
    • API
      • Chart method extension.addTechnicalIndicatorTemplate is changed to registerIndicator.
      • Chart method extension.addShapeTemplate is changed to registerOverlay.
      • Instance method setStyleOptions is changed to setStyles.
      • Instance method getStyleOptions is changed to getStyles.
      • Instance method setPaneOptions(options), options add new attribute gap.
      • Instance method setOffsetRightSpace is changed to setOffsetRightDistance.
      • Instance method createTechnicalIndicator is changed to createIndicator
      • Instance method overlayTechnicalIndicator is changed to overrideIndicator.
      • Instance method getTechnicalIndicatorByPaneId is changed to getIndicatorByPaneId.
      • Instance method removeTechnicalIndicator is changed to removeIndicator.
    • Style Configuration
      • All line.style options are changed to solid and dashed.
      • All dashValue is changed to dashedValue.
      • xAxis.height is changed to xAxis.size, xAxis.tickeText.paddingTop is changed to xAxis.tickeText.marinStart, and xAxis.tickeText.paddingBottom is changed to xAxis.tickeText.marinEnd.
      • yAxis.height is changed to yAxis.size, yAxis.tickeText.paddingTop is changed to yAxis.tickeText.marinStart, and yAxis.tickeText.paddingBottom is changed to yAxis.tickeText.marinEnd.
      • technicalIndicator.bar is changed to indicator.bars, technicalIndicator.line is changed to indicator.linestechnicalIndicator.circle is changed to indicator.circles
    • Custom Extension
      • The technical indicator attribute calcParams has been changed to support any type.
      • The technical indicator attribute plots is changed to figures.
      • The technical indicator attribute regeneratePlots is changed to' regeneratefigures'.
      • The technical indicator attribute calcTechnicalIndicator is changed to calc.
      • The technical indicator attribute render is changed to 'draw'.
  • 🗑 Abandonment
    • API
      • Delete instance methods getWidth, getHeight, and use getSize instead.
      • Delete instance methods createShape, createAnnotation, createTag, and use createOverlay instead.
      • Delete instance methods removeShape, removeAnnotation, removeTag. Use removeOverlay instead.
      • Delete the instance method setShapeOptions and use overrideOverlay instead.
      • Delete instance methods createHtml, removeHtml, addTechnicalIndicatorTemplate, getTechnicalIndicatorTemplate, addShapeTemplate.
    • Style Configuration
      • Delete shape, annotation, tag and use overlay instead.
      • Delete candle.margintechnicalIndicator.margin
    • Custom Extension
      • The related attributes are no longer saved in the technical indicator template.
      • Delete Shape and use Overlay instead.

8.x

Go to Github to check the change log for 8.x.

7.x

Go to Github to check the change log for 7.x.

6.x

Go to Github to check the change log for 6.x.

5.x

Go to Github to view the 5.x release notes.

4.x

Go to Github to view the 4.x release notes.

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/chart-api.html b/en-US/guide/chart-api.html index 2f8fc0542..e97dd2183 100644 --- a/en-US/guide/chart-api.html +++ b/en-US/guide/chart-api.html @@ -7,10 +7,10 @@ - + - + @@ -769,7 +769,7 @@ backgroundColor?: string } ) => void

Draw text.

  • ctx canvas context
  • rectText text parameter
    • x starting point x-axis value
    • y starting point y-axis value
    • text text content
    • width width
    • height height
    • align horizontal alignment
    • baseline vertical alignment
  • styles styles
    • style style
    • color color
    • size size
    • family font
    • weight weight
    • paddingLeft left padding,
    • paddingTop top padding,
    • paddingRight right padding,
    • paddingBottom bottom padding,
    • borderColor border color
    • borderSize border thickness
    • borderStyle border style
    • borderRadius border radius size
    • borderDashedValue border dashed line parameter value
    • backgroundColor background color

utils.drawRectText(ctx, rectText, styles)

Same as utils.drawRectText(ctx, text, styles), it is deprecated and will be deleted after v10. Please use utils.drawRectText(ctx, text, styles) instead.

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/datasource.html b/en-US/guide/datasource.html index 2bdd7a408..be3a6a2f7 100644 --- a/en-US/guide/datasource.html +++ b/en-US/guide/datasource.html @@ -7,10 +7,10 @@ - + - + @@ -49,7 +49,7 @@ // Turnover, a non-required field, if you need to display the technical indicators 'EMV' and 'AVP', you need to fill this field with data. turnover: number }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/environment.html b/en-US/guide/environment.html index 18a738fd6..9fb8a7453 100644 --- a/en-US/guide/environment.html +++ b/en-US/guide/environment.html @@ -7,10 +7,10 @@ - + - + @@ -25,7 +25,7 @@ import { init } from 'klincharts';
import 'intl';
 import 'intl/local-data/jsonp/en';
 import { init } from 'klincharts';

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/faq.html b/en-US/guide/faq.html index 4461fa86e..23b99a855 100644 --- a/en-US/guide/faq.html +++ b/en-US/guide/faq.html @@ -7,10 +7,10 @@ - + - + @@ -27,7 +27,7 @@ type: 'area', }, });

Built-in technical indicators, calculated data is not what you want, how to do?

You can override calc by the chart method createIndicator or overrideIndicator.

What if I want to create an indicator other than the built-in technical indicator?

Charts support custom technical indicators, see indicators for details.

Want to mark the point of sale, how should do?

Overlays can be used. The built-in overlay has a simpleAnnotation, which can be created with the chart api createOverlay({ name: 'simpleAnnotation', ... }, paneId).

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/feedback.html b/en-US/guide/feedback.html index 73948f026..d464d7d15 100644 --- a/en-US/guide/feedback.html +++ b/en-US/guide/feedback.html @@ -7,10 +7,10 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

💬 Feedback

Github

Telegram

https://t.me/+098syuQtzI0yNzll

Discord

https://discord.gg/7YjHYgvvvZ

Wechat discussion group

Scan to add developers, note KLineChart, and join the group chat.

QQ discussion group

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/figure.html b/en-US/guide/figure.html index 401fcb802..aee64b5e5 100644 --- a/en-US/guide/figure.html +++ b/en-US/guide/figure.html @@ -7,10 +7,10 @@ - + - + @@ -505,7 +505,7 @@ } } }

So a custom figure is completed.

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/getting-started.html b/en-US/guide/getting-started.html index 4c640ac16..ed72bdae8 100644 --- a/en-US/guide/getting-started.html +++ b/en-US/guide/getting-started.html @@ -7,18 +7,18 @@ - + - - + + -
Skip to content

🚀 Getting started

Get KLineChart

KLineChart supports multiple download methods, you can get it through package management tools such as npm or yarn, or through CDN.

bash
npm install klinecharts
npm install klinecharts
bash
yarn add klinecharts
yarn add klinecharts
html
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>

Create the first chart

jsx
import { useEffect } from 'react'
+    
Skip to content

🚀 Getting started

Get KLineChart

KLineChart supports multiple download methods, you can get it through package management tools such as npm or yarn, or through CDN.

bash
npm install klinecharts
npm install klinecharts
bash
yarn add klinecharts
yarn add klinecharts
html
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>

Create the first chart

jsx
import { useEffect } from 'react'
 import { init, dispose } from 'klinecharts'
 
 export default () => {
@@ -441,7 +441,7 @@
     </script>
   </body>
 </html>

This completes your first chart creation.

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/hot-key.html b/en-US/guide/hot-key.html index a9113a31e..94a94b31b 100644 --- a/en-US/guide/hot-key.html +++ b/en-US/guide/hot-key.html @@ -7,10 +7,10 @@ - + - + @@ -19,7 +19,7 @@
Skip to content

⌨️ Hot Key

Currently only supports moving and zooming.

  • shift + move right
  • shift + move left
  • shift + + zoom in
  • shift + - zoom out

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/i18n.html b/en-US/guide/i18n.html index 693a77be0..8c7a52f0e 100644 --- a/en-US/guide/i18n.html +++ b/en-US/guide/i18n.html @@ -7,10 +7,10 @@ - + - + @@ -33,7 +33,7 @@ close: '收:', volume: '成交量:' })

Use new language

After adding new language, you can complete language switching through the chart API init(options) or setLocale(key).

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/indicator.html b/en-US/guide/indicator.html index a917174ee..36fb0e5d4 100644 --- a/en-US/guide/indicator.html +++ b/en-US/guide/indicator.html @@ -7,10 +7,10 @@ - + - + @@ -497,7 +497,7 @@ }) } }

So a custom indicator is completed.

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/instance-api.html b/en-US/guide/instance-api.html index 51b8e8c40..0be82b06b 100644 --- a/en-US/guide/instance-api.html +++ b/en-US/guide/instance-api.html @@ -7,10 +7,10 @@ - + - + @@ -1015,7 +1015,7 @@ timestamp?: number value?: number }>

Convert coordinates to values.

  • coordinate needs to be converted, it can be an object or an array
  • finder filter
    • paneId window id
    • absolute is an absolute coordinate, only works on the y axis

getConvertPictureUrl(includeOverlay, type, backgroundColor)

typescript
(includeOverlay?: boolean, type?: string, backgroundColor?: string) => string
(includeOverlay?: boolean, type?: string, backgroundColor?: string) => string

Get the image url after the chart is converted into an image.

  • includeOverlay needs to include the overlay layer, it can be defaulted
  • type The converted image type, one of the three types of 'png', 'jpeg', 'bmp', can be defaulted, the default is 'jpeg'
  • backgroundColor background color, can be defaulted, the default is '#FFFFFF'

resize()

typescript
() => void
() => void

Resizing the chart will always fill the container size.

Note

This method will recalculate the size of each module in the entire chart, frequent calls may affect performance, please call with caution.

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/overlay.html b/en-US/guide/overlay.html index c7fa6e353..0a1d03cb3 100644 --- a/en-US/guide/overlay.html +++ b/en-US/guide/overlay.html @@ -7,10 +7,10 @@ - + - + @@ -455,7 +455,7 @@ return [] } }

So a custom overlay is complete.

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/styles.html b/en-US/guide/styles.html index 096d77b03..c763170ce 100644 --- a/en-US/guide/styles.html +++ b/en-US/guide/styles.html @@ -7,10 +7,10 @@ - + - + @@ -1020,7 +1020,7 @@ } } }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/v8-to-v9.html b/en-US/guide/v8-to-v9.html index eaf53bf45..4d3235ea9 100644 --- a/en-US/guide/v8-to-v9.html +++ b/en-US/guide/v8-to-v9.html @@ -7,10 +7,10 @@ - + - + @@ -19,7 +19,7 @@
Skip to content

🛠️ From V8 to V9

This document will help you upgrade from kinecharts 8.x to klinecharts 9.x. If you are 7.x or older, please refer to the previous upgrade document to upgrade to 8.x.

Import adjustment

klinecharts/index.blank' and klinecharts/index.simple are no longer distinguished. Please use import {...} from klinecharts uniformly.

Design adjustment

shape, annotation, tag are merged into overlay. Please refer to overlay for details.

Style configuration adjustment

  • The style options of all lines are changed to dashed and dashValue to dashedValue.
  • candle.tooltip.labels and candle.tooltip.values are merged into candle.tooltip.custom.
  • xAxis.height is changed to xAxis.size, xAxis.tickeText.paddingTop is changed to xAxis.tickeText.marinStart, and xAxis.tickeText.paddingBottom is changed to xAxis.tickeText.marginEnd.
  • yAxis.height is changed to yAxis.size, yAxis.tickeText.paddingTop is changed to yAxis.tickeText.marinStart, and yAxis.tickeText.paddingBottom is changed to yAxis.tickeText.marginEnd.
  • technicalIndicator.bar is changed to indicator.bars, technicalIndicator.line is changed to indicator.linestechnicalIndicator.circle is changed to indicator.circles.
  • Delete shape, annotation, tag, please use overlay instead.

API adjustment

Chart API

  • extension.addTechnicalIndicatorTemplate(template) is changed to registerIndicator(template).
  • Delete extension.addShapeTemplate(template), please use registerOverlay(template) instead.

Instance API

  • getDom({paneId, position}) is changed to getDom(paneId, position), and the parameter position option is changed to root, main and yAxis.
  • getWidth() and getHeight() are combined into a method 'getSize(paneId, position).
  • setStyleOptions(styles) is changed to setStyles(styles).
  • getStyleOptions() is changed to getStyles().
  • setOffsetRightSpace(space) is changed to setOffsetRightDistance(distance).
  • createTechnicalIndicator(value, isStack, paneOptions) is changed to createIndicator(value, isStack, paneOptions).
  • overrideTechnicalIndicator(override, paneId) is changed to overrideIndicator(override, paneId).
  • getTechnicalIndicatorByPaneId(paneId, name) is changed to getIndicatorByPaneId(paneId, name).
  • removeTechnicalIndicator(paneId, name) is changed to removeIndicator(paneId, name).
  • subscribeAction(type, callback) and unsubscribeAction(type, callback). The parameter type option is changed to onZoom, onScroll, onCrosshairChange, onVisibleRangeChange and onPaneDrag.
  • convertToPixel(value, finder) and convertFromPixel(coordinate, finder), the parameter finder.absoluteYAxis is changed to finder.absolute.
  • To delete createShape(value, paneId), createAnnotation(annotation, paneId), createTag(tag, paneId), please use createOverlay(value, paneId) instead.
  • To delete removeShape(id), removeAnnotation(paneId, points), removeTag(paneId, tagId), please use removeOverlay(id) instead.
  • To delete setShapeOptions(options), use overrideOverlay(override) instead.
  • To delete reateHtml(html, paneId), removeHtml(paneId, htmlId), please obtain the corresponding dom through getDom(paneId, position).
  • To delete getTechnicalIndicatorByPaneId(paneId, name).

Shape help API

  • All APIs are migrated to 'klinecharts.utils'.

Customized technical indicator adjustment

  • Attribute plots is changed to figures, sub item methods color, isStroke, isDashed are merged into styles.
  • Change the method 'regeneratePlots(params) to regeneratefigures(params).
  • The method calcTechnicalIndicator(kLineDataList, options) is changed to calc(kLineDataList, indicator).
  • The method createTooltipDataSource({ dataSource, viewport, crosshair, technicalIndicator, xAxis, yAxis, defaultStyles }) is changed to createTooltipDataSource({ kLineDataList, indicator, visibleRange, bounding, crosshair, defaultStyles, xAxis, yAxis }). The return value is determined by [{ title: 'xxx', value: 'xxx', color: 'xxx' } ] Change to { name: 'xxx', calcParamsText: 'xxx', values: [{ title: 'xxx', value: 'xxx', color: 'xxx' }, ...] }.
  • The method render({ctx, dataSource, viewport, styles, xAxis, yAxis}) is changed to draw({ ctx, kLineDataList, indicator, visibleRange, bounding, barSpace, defaultStyles, xAxis, yAxis }).
  • Delete the attribute shouldCheckParamCount.

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/guide/what-is-klinechart.html b/en-US/guide/what-is-klinechart.html index 80d6ffb2f..9cea459ac 100644 --- a/en-US/guide/what-is-klinechart.html +++ b/en-US/guide/what-is-klinechart.html @@ -7,10 +7,10 @@ - + - + @@ -19,7 +19,7 @@
Skip to content

📃 Introducation

What's KLineChart?

KLineChart,it is a highly customizable professional lightweight financial chart.

Features

  • 📦 Out of the box: Simple and fast integration, basically zero cost to get started.
  • 🚀 Lightweight and smooth: Zero dependencies, only 40k under gzip compression.
  • 💪 Powerful functions: Built-in multiple indicators and line drawing models.
  • 🎨 Highly scalable: With rich style configuration and API, the function can be extended as you like.
  • 📱 Mobile: Support mobile, one chart, handle multiple terminals.
  • 🛡 Typescript development: Provide complete type definition files.

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/index.html b/en-US/index.html index 08dc465e0..3958e67a4 100644 --- a/en-US/index.html +++ b/en-US/index.html @@ -7,10 +7,10 @@ - + - + @@ -19,7 +19,7 @@
Skip to content

KLineChart

Highly customizable professional lightweight financial chart

Easy to use, lightweight and smooth, suitable for web front-end financial chart with rich scenarios.

KLineChart

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/sample/axis.html b/en-US/sample/axis.html index 155df44e8..c8926e7d8 100644 --- a/en-US/sample/axis.html +++ b/en-US/sample/axis.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

Axis

Open in a new window
js
import { init } from 'klinecharts'
+    
Skip to content

Axis

Open in a new window
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -285,7 +285,7 @@
   border: none;
 }
 `

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/sample/basic.html b/en-US/sample/basic.html index fe0510ac7..3b442e509 100644 --- a/en-US/sample/basic.html +++ b/en-US/sample/basic.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

Basic

Open in a new window
js
import { init } from 'klinecharts'
+    
Skip to content

Basic

Open in a new window
js
import { init } from 'klinecharts'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
   let basePrice = 5000
@@ -81,7 +81,7 @@
 
 const chart = init('k-line-chart')
 chart.applyNewData(genData())
html
<div id="k-line-chart" style="height:430px"/>
<div id="k-line-chart" style="height:430px"/>

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/sample/candle-type.html b/en-US/sample/candle-type.html index 723cdbe45..9411405ad 100644 --- a/en-US/sample/candle-type.html +++ b/en-US/sample/candle-type.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

Candle Type

Open in a new window
js
import { init } from 'klinecharts'
+    
Skip to content

Candle Type

Open in a new window
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -175,7 +175,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/sample/data.html b/en-US/sample/data.html index ac8779c68..9e01c3926 100644 --- a/en-US/sample/data.html +++ b/en-US/sample/data.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

Data

Open in a new window
js
import { init } from 'klinecharts'
+    
Skip to content

Data

Open in a new window
js
import { init } from 'klinecharts'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
   let basePrice = 5000
@@ -123,7 +123,7 @@
     updateData()
   }, 600)
 }
html
<div id="k-line-chart" style="height:430px"/>
<div id="k-line-chart" style="height:430px"/>

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/sample/i18n.html b/en-US/sample/i18n.html index 053b05b55..f69bc88c1 100644 --- a/en-US/sample/i18n.html +++ b/en-US/sample/i18n.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

I18n

Open in a new window
js
import { init, registerLocale } from 'klinecharts'
+    
Skip to content

I18n

Open in a new window
js
import { init, registerLocale } from 'klinecharts'
 import './index.less'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -183,7 +183,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/sample/indicator.html b/en-US/sample/indicator.html index b94d8566a..250c6e448 100644 --- a/en-US/sample/indicator.html +++ b/en-US/sample/indicator.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

Indicator

Open in a new window
js
import { init, registerIndicator } from 'klinecharts'
+    
Skip to content

Indicator

Open in a new window
js
import { init, registerIndicator } from 'klinecharts'
 import './index.css'
 
 const fruits = [
@@ -277,7 +277,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/sample/overlay.html b/en-US/sample/overlay.html index 29337c923..e0f44ae74 100644 --- a/en-US/sample/overlay.html +++ b/en-US/sample/overlay.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

Overlay

Open in a new window
js
import { init, registerOverlay } from 'klinecharts'
+    
Skip to content

Overlay

Open in a new window
js
import { init, registerOverlay } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -217,7 +217,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/sample/theme.html b/en-US/sample/theme.html index 686ec950a..f0a635f87 100644 --- a/en-US/sample/theme.html +++ b/en-US/sample/theme.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

Theme

Open in a new window
js
import { init, registerStyles } from 'klinecharts'
+    
Skip to content

Theme

Open in a new window
js
import { init, registerStyles } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -363,7 +363,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/sample/timezone.html b/en-US/sample/timezone.html index 25c6b4709..656be630d 100644 --- a/en-US/sample/timezone.html +++ b/en-US/sample/timezone.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

Timezone

Open in a new window
js
import { init } from 'klinecharts'
+    
Skip to content

Timezone

Open in a new window
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -165,7 +165,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/sample/tooltip.html b/en-US/sample/tooltip.html index 3d786b365..759b77dff 100644 --- a/en-US/sample/tooltip.html +++ b/en-US/sample/tooltip.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

Tooltip

Open in a new window
js
import { init } from 'klinecharts'
+    
Skip to content

Tooltip

Open in a new window
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -323,7 +323,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/en-US/sponsor.html b/en-US/sponsor.html index 235ce42c4..eda1b4624 100644 --- a/en-US/sponsor.html +++ b/en-US/sponsor.html @@ -7,10 +7,10 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

❤️ Sponsor

KLineChart under the Apache License V2 and completely free to use.

If you think the plugin is good, I hope you can click 🌟 on GitHub. If you can reward a cup of ☕️, that would be very much appreciated.

For organizations or individuals sponsoring KLineChart, if necessary, display the organization's official website or personal homepage on the https://klinecharts.com on the homepage, please provide payment account or address, logo, homepage link, and other information by sending an email to hu_li888@foxmail.com . Those with sponsor amount of $800 will be displayed in the large logo display area. Top three, will use large logo display.

Alipay

Wechat Pay

Cryptocurrency

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/changelog.html b/guide/changelog.html index a5c8d2de7..cef0fb22a 100644 --- a/guide/changelog.html +++ b/guide/changelog.html @@ -7,10 +7,10 @@ - + - + @@ -19,7 +19,7 @@
Skip to content

📠 更新日志

9.5.4

2023-09-22

  • 🐞 修复样式candle.typearea时,最新价线不显示问题。
  • 🐞 修复样式crosshair.vertical.text.paddingLeft显示不对问题。

9.5.3

2023-09-19

  • 🐞 修复ts下引入问题。

9.5.2

2023-09-18

  • 💄 优化基础图形text
  • 💄 优化内置覆盖物simpleAnnotationsimpleTag
  • 💄 优化技术指标自由样式,支持增量。
  • 🐞 修复typescript声明问题。

9.5.1

2023-08-14

  • 🆕 图表方法新增getOverlayClass
  • 🆕 样式配置candle.tooltip.custom新增内置涨跌幅支持。
  • 💄 优化基础图形rect事件响应。
  • ↩️ 分割线事件响应回退

9.5.0

2023-06-15

  • 🆕 Overlay新增事件onDoubleClick,新增属性modeSensitivity
  • 🆕 样式配置candle.tooltip.custom支持字符串模版。
  • 🐞 优化移动端阻尼滚动掉帧问题。
  • 🐞 修复窗口id命名拼写错误。
  • 💄 优化分割线事件响应灵敏度。
  • 💄 优化typescript下,OverlayFigure中的attrs类型声明。

9.4.0

2023-05-25

  • 🆕 实例api createOverlay 支持数组。
  • 🆕 overlay新增属性paneIddefaultZLevelzLevel
  • 🆕 xAxis新增方法convertTimestampFromPixelconvertTimestampToPixel
  • 💄 优化蜡烛柱显示。

9.3.0

2023-05-13

  • 🆕 新增图表API utils.calcTextWidth
  • 🆕 图表API createIndicator(value, isStack, options)setPaneOptions(options)新增options.axisOptions
  • 🆕 指标图形配置支持自定义。
  • 💄 优化bar宽度比例。
  • 💄 优化内部获取屏幕像素比。
  • 💄 优化内部id生成。

9.2.2

2023-05-04

  • 🐞 修复基础图形line事件检查可能导致错误问题。
  • 💄 优化类型检查。

9.2.1

2023-04-27

  • 💄 优化默认样式,#EF5350变更为#F92855#26A69A变更为#2DC08E
  • 💄 优化typescript声明。

9.2.0

2023-04-24

  • 🆕 实例API新增getOffsetRightDistanceexecuteAction
  • 🆕 实例APIapplyNewDataapplyMoreDataupdateData新增成功回调入参callback
  • 🆕 支持千分符显示。
  • 🆕 样式配置新增candle.bar.upBorderColorcandle.bar.downBorderColorcandle.bar.noChangeBorderColorcandle.bar.upWickColorcandle.bar.downWickColorcandle.bar.noChangeWickColorcandle.tooltip.rect.positioncandle.tooltip.rect.offsetBottom
  • 🆕 所有visibleRange新增realFromrealTo
  • 💄 优化API,klinecharts.utils.isValidklinecharts.utils.formatBigNumber
  • 💄 优化开发环境下,日志输出。

9.1.3

2023-04-15

  • 🐞 修复图表api applyNewData 入参是空数组时不刷新问题。
  • 🐞 修复无数据时y轴上十字光标文字不显示问题。
  • 💄 优化面积图显示。
  • 💄 优化覆盖物事件回调参数,新增figureKeyfigureIndex
  • 💄 优化typescript覆盖物样式类型,和基础类型DeepPartial, DeepRequired

9.1.2

2023-04-10

  • 🐞 修复内置基础图形line触发事件不准确问题。
  • 🐞 修复内置覆盖物simpleAnnotationsimpleTag绘制完成后第一次触发事件问题。
  • 💄 优化覆盖物图形事件忽略,支持事件选择。

9.1.1

2023-03-14

  • 🐞 修复内置基础图形arc不生效问题。
  • 💄 优化渲染更新。

9.1.0

2023-02-23

  • 🆕 图表实例方法subscribeActionunsubscribeAction类型新增onCandleBarClick
  • 🆕 覆盖物支持双击强制结束绘制。
  • 💄 优化事件处理。

9.0.1

2023-02-17

  • 🐞 修复typescript引入问题。

9.0.0

2023-02-16

  • 🛠 Typescript重构。
  • 🆕 新特性
    • 新增Y轴方向缩放,滚动。
    • API
      • 新增基图表方法registerFiguregetSupportFiguresgetFigureClassrigisterOverlaygetSupportOverlaysregisterLocalegetSupportLocalesregisterStyles
      • 新增实例方法,getSizesetLocalegetLocalsetCustomApigetVisibleRangecreateOverlaygetOverlayByIdoverrideOverlayremoveOverlay
    • 样式配置
      • 新增candle.priceMark.last.text.borderStylecandle.tooltip.iconsindicator.lastValueMark.text.borderStyleindicator.tooltip.iconscrosshair.horizontal.text.borderStylecrosshair.vertical.text.borderStyle
  • 👉 变更
    • API
      • 图表方法extension.addTechnicalIndicatorTemplate变更为registerIndicator
      • 图表方法extension.addShapeTemplate变更为registerOverlay
      • 实例方法setStyleOptions变更为setStyles
      • 实例方法getStyleOptions变更为getStyles
      • 实例方法setPaneOptions(options)options新增属性gap
      • 实例方法setOffsetRightSpace变更为setOffsetRightDistance
      • 实例方法createTechnicalIndicator变更为createIndicator
      • 实例方法overlayTechnicalIndicator变更为overlayIndicator
      • 实例方法getTechnicalIndicatorByPaneId变更为getIndicatorByPaneId
      • 实例方法removeTechnicalIndicator变更为removeIndicator
    • 样式配置
      • 所有line.style选项变更为soliddashed
      • 所有dashValue变更为dashedValue
      • xAxis.height变更为xAxis.sizexAxis.tickText.paddingTop变更为xAxis.tickText.marginStartxAxis.tickText.paddingBottom变更为xAxis.tickText.marginEnd
      • yAxis.height变更为yAxis.sizeyAxis.tickText.paddingTop变更为yAxis.tickText.marginStartyAxis.tickText.paddingBottom变更为yAxis.tickText.marginEnd
      • technicalIndicator.bar变更为indicator.barstechnicalIndicator.line变更为indicator.linestechnicalIndicator.circle变更为indicator.circles
    • 自定义扩展
      • 技术指标属性calcParams,变更为支持任意类型。
      • 技术指标属性plots变更为figures
      • 技术指标属性regeneratePlots变更为regeneratefigures
      • 技术指标属性calcTechnicalIndicator变更为calc
      • 技术指标属性render变更为draw
  • 🗑 废弃
    • API
      • 删除实例方法getWidthgetHeight,改用getSize
      • 删除实例方法createShapecreateAnnotationcreateTag,改用createOverlay
      • 删除实例方法removeShaperemoveAnnotationremoveTag,改用removeOverlay
      • 删除实例方法setShapeOptions,改用overrideOverlay
      • 删除实例方法createHtmlremoveHtmladdTechnicalIndicatorTemplategetTechnicalIndicatorTemplateaddShapeTemplate
    • 样式配置
      • 删除shapeannotationtag,改用overlay
      • 删除candle.margintechnicalIndicator.margin
    • 自定义扩展
      • 技术指标模版不再保存相关属性。
      • 技术指标删除属性shouldCheckParamCount
      • 删除Shape,改用Overlay

8.x

Github上查看 8.x 的 Change Log。

7.x

Github上查看 7.x 的 Change Log。

6.x

Github上查看 6.x 的 Change Log。

5.x

Github上查看 5.x 的版本记录。

4.x

Github上查看 4.x 的版本记录。

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/chart-api.html b/guide/chart-api.html index 9733c96c0..935559fb3 100644 --- a/guide/chart-api.html +++ b/guide/chart-api.html @@ -7,10 +7,10 @@ - + - + @@ -769,7 +769,7 @@ backgroundColor?: string } ) => void

绘制带背景的文字。

  • ctx 画布上下文
  • attrs 文字参数
    • x 起始点x轴值
    • y 起始点y轴值
    • text 文字内容
    • width 宽度
    • height 高度
    • align 水平对齐方式
    • baseline 垂直对齐方式
  • styles 样式
    • style 样式
    • color 颜色
    • size 尺寸
    • family 字体
    • weight 权重
    • paddingLeft 左内边距,
    • paddingTop 上内边距,
    • paddingRight 右内边距,
    • paddingBottom 下内边距,
    • borderColor 边框颜色
    • borderSize 边框粗细
    • borderStyle 边框样式
    • borderRadius 边框圆角尺寸
    • borderDashedValue 边框虚线参数值
    • backgroundColor 背景色

utils.drawRectText(ctx, rectText, styles)

utils.drawText(ctx, text, styles),已废弃,v10之后会删除,请用utils.drawText(ctx, text, styles)代替。

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/datasource.html b/guide/datasource.html index f8f0df0aa..4b26e60bd 100644 --- a/guide/datasource.html +++ b/guide/datasource.html @@ -7,10 +7,10 @@ - + - + @@ -49,7 +49,7 @@ // 成交额,非必须字段,如果需要展示技术指标'EMV'和'AVP',则需要为该字段填充数据。 turnover: number }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/environment.html b/guide/environment.html index c17782eec..d1662cd78 100644 --- a/guide/environment.html +++ b/guide/environment.html @@ -7,10 +7,10 @@ - + - + @@ -25,7 +25,7 @@ import { init } from 'klincharts';
import 'intl';
 import 'intl/local-data/jsonp/en';
 import { init } from 'klincharts';

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/faq.html b/guide/faq.html index acf15edee..d53db1420 100644 --- a/guide/faq.html +++ b/guide/faq.html @@ -7,10 +7,10 @@ - + - + @@ -27,7 +27,7 @@ type: 'area', }, });

内置的技术指标,计算出来的数据不是想要的,怎么办?

可以通过图表方法createIndicator或者overrideIndicator重写calc即可。

想创建一个内置技术指标之外的指标,怎么办?

图表支持自定义技术指标,详情参阅技术指标

想标记一下买卖点,该怎么做?

可以使用覆盖物,内置的覆盖物有一个simpleAnnotation,用图表api创建即可createOverlay({ name: 'simpleAnnotation', ... }, paneId)

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/feedback.html b/guide/feedback.html index c75d0cade..61d13102e 100644 --- a/guide/feedback.html +++ b/guide/feedback.html @@ -7,10 +7,10 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

💬 反馈和共建

Github

Telegram

https://t.me/+098syuQtzI0yNzll

Discord

https://discord.gg/7YjHYgvvvZ

微信讨论群

扫一扫,添加开发者,备注『 KLineChart 』,加入群聊。

QQ讨论群

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/figure.html b/guide/figure.html index 65169b153..2938d7eea 100644 --- a/guide/figure.html +++ b/guide/figure.html @@ -7,10 +7,10 @@ - + - + @@ -503,7 +503,7 @@ } } }

这样一个自定义的基础图形就完成了。

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/getting-started.html b/guide/getting-started.html index 0d855bec7..520832f8b 100644 --- a/guide/getting-started.html +++ b/guide/getting-started.html @@ -7,18 +7,18 @@ - + - - + + -
Skip to content

🚀 快速开始

获取KLineChart

KLineChart 支持多种下载方式,你可以通过npmyarn等包管理工具,也可以通过CDN获取。

bash
npm install klinecharts
npm install klinecharts
bash
yarn add klinecharts
yarn add klinecharts
html
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>

创建第一个图表

KLineChart 不受前端框架限制,所以你可以在任何一个前端框架中使用。

jsx
import { useEffect } from 'react'
+    
Skip to content

🚀 快速开始

获取KLineChart

KLineChart 支持多种下载方式,你可以通过npmyarn等包管理工具,也可以通过CDN获取。

bash
npm install klinecharts
npm install klinecharts
bash
yarn add klinecharts
yarn add klinecharts
html
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>

创建第一个图表

KLineChart 不受前端框架限制,所以你可以在任何一个前端框架中使用。

jsx
import { useEffect } from 'react'
 import { init, dispose } from 'klinecharts'
 
 export default () => {
@@ -441,7 +441,7 @@
     </script>
   </body>
 </html>

这样你的第一个图表就创建完成了。

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/hot-key.html b/guide/hot-key.html index 3304293d7..054036ffa 100644 --- a/guide/hot-key.html +++ b/guide/hot-key.html @@ -7,10 +7,10 @@ - + - + @@ -19,7 +19,7 @@
Skip to content

⌨️ 快捷键

目前快捷键仅支持移动和缩放。

  • shift + 右移
  • shift + 左移
  • shift + + 放大
  • shift + - 缩小

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/i18n.html b/guide/i18n.html index a529cf394..b1e01be7a 100644 --- a/guide/i18n.html +++ b/guide/i18n.html @@ -7,10 +7,10 @@ - + - + @@ -33,7 +33,7 @@ close: '收:', volume: '成交量:' })

使用语言包

当添加完语言包后,可以通过图表API init(options)或者setLocale(key),完成语言切换。

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/indicator.html b/guide/indicator.html index 097a832d7..1968b0218 100644 --- a/guide/indicator.html +++ b/guide/indicator.html @@ -7,10 +7,10 @@ - + - + @@ -505,7 +505,7 @@ }) } }

这样一个自定义指标就完成了。

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/instance-api.html b/guide/instance-api.html index 0a8a34bb8..477f71cb6 100644 --- a/guide/instance-api.html +++ b/guide/instance-api.html @@ -7,10 +7,10 @@ - + - + @@ -1027,7 +1027,7 @@ timestamp?: number value?: number }>

将坐标转换成值。

  • coordinate 需要转换的值,可以是当个对象,也可以是数组
  • finder 过滤条件
    • paneId 窗口id
    • absolute 是否是绝对坐标,只作用于y轴

getConvertPictureUrl(includeOverlay, type, backgroundColor)

typescript
(includeOverlay?: boolean, type?: string, backgroundColor?: string) => string
(includeOverlay?: boolean, type?: string, backgroundColor?: string) => string

获取图表转换成图片后的图片url。

  • includeOverlay 是否需要包含浮层,可缺省
  • type 转换后的图片类型,类型是'png'、'jpeg'、'bmp'三种中的一种,可缺省,默认为'jpeg'
  • backgroundColor 背景色,可缺省,默认为'#FFFFFF'

resize()

typescript
() => void
() => void

调整图表大小,总是会填充容器大小。

注意

此方法会重新计算整个图表各个模块的大小,频繁调用可能会影响到性能,调用请谨慎。

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/overlay.html b/guide/overlay.html index 44843aed6..205647822 100644 --- a/guide/overlay.html +++ b/guide/overlay.html @@ -7,10 +7,10 @@ - + - + @@ -455,7 +455,7 @@ return [] } }

这样一个自定义覆盖物就完成了。

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/styles.html b/guide/styles.html index 514d5748e..d10b69630 100644 --- a/guide/styles.html +++ b/guide/styles.html @@ -7,10 +7,10 @@ - + - + @@ -1068,7 +1068,7 @@ } } }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/v8-to-v9.html b/guide/v8-to-v9.html index 28c29e4c4..946ba0cb5 100644 --- a/guide/v8-to-v9.html +++ b/guide/v8-to-v9.html @@ -7,10 +7,10 @@ - + - + @@ -19,7 +19,7 @@
Skip to content

🛠️ 从 V8 到 V9

本文档将帮助你从 klinecharts 8.x 版本升级到 klinecharts 9.x 版本,如果你是 7.x 或者更老的版本,请先参考之前的升级文档升级到 8.x。

引入调整

不再区分klinecharts/index.blankklinecharts/index.simple,请统一使用import { ... } from 'klinecharts'

设计调整

shapeannotationtag合并成overlay,详情请查阅覆盖物

样式配置调整

  • 所有线的样式选项dash,更改为dasheddashValue更改为dashedValue
  • candle.tooltip.labelscandle.tooltip.values,合并为candle.tooltip.custom
  • xAxis.height变更为xAxis.sizexAxis.tickText.paddingTop变更为xAxis.tickText.marginStartxAxis.tickText.paddingBottom变更为xAxis.tickText.marginEnd
  • yAxis.height变更为yAxis.sizeyAxis.tickText.paddingTop变更为yAxis.tickText.marginStartyAxis.tickText.paddingBottom变更为yAxis.tickText.marginEnd
  • technicalIndicator.bar变更为indicator.barstechnicalIndicator.line变更为indicator.linestechnicalIndicator.circle变更为indicator.circles
  • 删除shapeannotationtag,请用overlay代替。

API调整

图表API

  • extension.addTechnicalIndicatorTemplate(template)变更为registerIndicator(template)
  • 删除extension.addShapeTemplate(template),请用registerOverlay(template)代替。

实例API

  • getDom({ paneId, position })变更为getDom(paneId, position),参数position选项变更为rootmainyAxis
  • getWidth()getHeight()合并成一个方法getSize(paneId, position)
  • setStyleOptions(styles)变更为setStyles(styles)
  • getStyleOptions()变更为getStyles()
  • setOffsetRightSpace(space)变更为setOffsetRightDistance(distance)
  • createTechnicalIndicator(value, isStack, paneOptions)变更为createIndicator(value, isStack, paneOptions)
  • overrideTechnicalIndicator(override, paneId)变更为overrideIndicator(override, paneId)
  • getTechnicalIndicatorByPaneId(paneId, name)变更为getIndicatorByPaneId(paneId, name)
  • removeTechnicalIndicator(paneId, name)变更为removeIndicator(paneId, name)
  • subscribeAction(type, callback)unsubscribeAction(type, callback),参数type选项变更为onZoomonScrollonCrosshairChangeonVisibleRangeChangeonPaneDrag
  • convertToPixel(value, finder)convertFromPixel(coordinate, finder),参数finder.absoluteYAxis变更为finder.absolute
  • 删除createShape(value, paneId)createAnnotation(annotation, paneId)createTag(tag, paneId),请用createOverlay(value, paneId)代替。
  • 删除removeShape(id)removeAnnotation(paneId, points)removeTag(paneId, tagId),请用removeOverlay(id)代替。
  • 删除setShapeOptions(options),请用overrideOverlay(override)代替。
  • 删除createHtml(html, paneId)removeHtml(paneId, htmlId),请通过getDom(paneId, position)获取到对应的dom后操作。
  • 删除getTechnicalIndicatorByPaneId(paneId, name)

图形辅助API

  • 所有的API都迁移至klinecharts.utils

自定义技术指标调整

  • 属性plots变更为figures,子项方法colorisStrokeisDashed合并成styles
  • 方法regeneratePlots(params)变更为regeneratefigures(params)
  • 方法calcTechnicalIndicator(kLineDataList, options)变更为calc(kLineDataList, indicator)
  • 方法createTooltipDataSource({ dataSource, viewport, crosshair, technicalIndicator, xAxis,yAxis, defaultStyles })变更为createTooltipDataSource({ kLineDataList, indicator, visibleRange, bounding, crosshair, defaultStyles, xAxis, yAxis }),返回值由[{ title: 'xxx', value: 'xxx', color: 'xxx' }, ...]变更为{ name: 'xxx', calcParamsText: 'xxx', values: [{ title: 'xxx', value: 'xxx', color: 'xxx' }, ...] }
  • 方法render({ ctx, dataSource, viewport, styles,xAxis, yAxis })变更为draw({ ctx, kLineDataList, indicator, visibleRange, bounding, barSpace, defaultStyles, xAxis, yAxis })
  • 删除属性shouldCheckParamCount

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/guide/what-is-klinechart.html b/guide/what-is-klinechart.html index fdc3dd417..8c82c33b8 100644 --- a/guide/what-is-klinechart.html +++ b/guide/what-is-klinechart.html @@ -7,10 +7,10 @@ - + - + @@ -19,7 +19,7 @@
Skip to content

📃 介绍

什么是 KLineChart?

KLineChart,是一款可高度自定义的专业级轻量金融图表。

特性

  • 📦 开箱即用:简单快速集成,基本零成本上手。
  • 🚀 轻量流畅:零依赖,Gzip压缩下仅40k。
  • 💪 功能强大:内置多种指标和画线模型。
  • 🎨 高可扩展:丰富的样式配置和API,功能扩展随心所欲。
  • 📱 移动端:支持移动端,一个图表,搞定多端。
  • 🛡 Typescript开发:提供完整的类型定义文件。

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index b9b37f287..aa2123e70 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"components_sample_data_index.md":"e21a7f8d","components_sample_candle-type_index.md":"15b2305b","components_sample_basic_index.md":"bf6fe05d","components_sample_axis_index.md":"df7f96c5","components_sample_indicator_index.md":"18fc3e7d","components_sample_i18n_index.md":"6cb84381","en-us_guide_changelog.md":"dda31407","components_sample_theme_index.md":"10b62b35","en-us_guide_environment.md":"0f83ea9b","en-us_guide_datasource.md":"f97736fc","en-us_guide_faq.md":"63dc70d4","components_sample_timezone_index.md":"9ad259f2","components_sample_overlay_index.md":"3f97d257","en-us_guide_feedback.md":"2f466906","components_sample_tooltip_index.md":"6e7e6d72","en-us_guide_hot-key.md":"14e37aaf","en-us_guide_i18n.md":"25595837","en-us_guide_figure.md":"5d79e97e","en-us_guide_chart-api.md":"f4b42497","en-us_guide_indicator.md":"0a45fae0","en-us_guide_getting-started.md":"e87ea1ad","en-us_guide_overlay.md":"900f764f","en-us_index.md":"e4f4918d","en-us_guide_v8-to-v9.md":"ef7af630","en-us_guide_what-is-klinechart.md":"10ec6daf","en-us_guide_instance-api.md":"0a2be7c1","en-us_guide_styles.md":"bd349e8d","en-us_sample_basic.md":"5b19d9e1","en-us_sample_axis.md":"5227b6d6","en-us_sample_data.md":"78a74d7f","en-us_sample_candle-type.md":"2149e9fa","en-us_sample_i18n.md":"ec5e03b8","en-us_sample_indicator.md":"67007b42","en-us_sample_overlay.md":"42734092","en-us_sponsor.md":"d3aa79c8","en-us_sample_theme.md":"e11fcd7e","guide_changelog.md":"56c3cde0","en-us_sample_timezone.md":"d3cc9c94","guide_datasource.md":"878f563b","guide_faq.md":"7b4ce143","guide_environment.md":"75d9b8de","guide_feedback.md":"b66138e1","guide_i18n.md":"626dfb35","guide_hot-key.md":"61038319","guide_figure.md":"b58230f4","en-us_sample_tooltip.md":"85673bd2","guide_indicator.md":"2e1a6254","guide_chart-api.md":"fecebb39","guide_getting-started.md":"bd134052","guide_v8-to-v9.md":"e897a36e","index.md":"54b9731b","guide_what-is-klinechart.md":"5254bff0","guide_overlay.md":"0f5f5841","guide_styles.md":"9416915c","guide_instance-api.md":"6ef1c08a","sample_axis.md":"339486a1","sample_basic.md":"59825fcd","sample_candle-type.md":"8c5ec3fb","sample_data.md":"c18759dc","sample_i18n.md":"de0ef7be","sponsor.md":"0af0564d","sample_overlay.md":"83ae0572","sample_indicator.md":"dd6fd3d7","sample_theme.md":"a35910ad","sample_timezone.md":"d8a256a6","sample_tooltip.md":"e12dd419"} +{"components_sample_data_index.md":"7dfa20e6","components_sample_basic_index.md":"0f2b9a3e","components_sample_candle-type_index.md":"c9d4a4b7","components_sample_axis_index.md":"de1055b1","components_sample_i18n_index.md":"8ed87aa7","components_sample_indicator_index.md":"7f178871","en-us_guide_environment.md":"0f83ea9b","en-us_guide_datasource.md":"f97736fc","en-us_guide_feedback.md":"2f466906","components_sample_timezone_index.md":"01d1e31d","en-us_guide_changelog.md":"dda31407","components_sample_overlay_index.md":"80c1a44d","en-us_guide_faq.md":"63dc70d4","components_sample_tooltip_index.md":"01467383","components_sample_theme_index.md":"b864fd33","en-us_guide_i18n.md":"25595837","en-us_guide_hot-key.md":"14e37aaf","en-us_guide_figure.md":"5d79e97e","en-us_guide_indicator.md":"0a45fae0","en-us_guide_what-is-klinechart.md":"10ec6daf","en-us_index.md":"e4f4918d","en-us_guide_v8-to-v9.md":"ef7af630","en-us_guide_getting-started.md":"9ca97539","en-us_guide_chart-api.md":"f4b42497","en-us_guide_overlay.md":"900f764f","en-us_guide_styles.md":"bd349e8d","en-us_guide_instance-api.md":"0a2be7c1","en-us_sample_basic.md":"a20f4ddd","en-us_sample_axis.md":"28f57e25","en-us_sample_candle-type.md":"f057a0d8","en-us_sample_data.md":"d50fd3e1","en-us_sample_i18n.md":"1ad12f8b","en-us_sample_indicator.md":"1705d7aa","en-us_sponsor.md":"d3aa79c8","en-us_sample_overlay.md":"e4d9ba54","guide_changelog.md":"56c3cde0","guide_feedback.md":"b66138e1","guide_datasource.md":"878f563b","guide_faq.md":"7b4ce143","guide_environment.md":"75d9b8de","en-us_sample_theme.md":"d1dbc68f","en-us_sample_timezone.md":"6e8af94e","guide_hot-key.md":"61038319","guide_i18n.md":"626dfb35","guide_chart-api.md":"fecebb39","guide_figure.md":"b58230f4","en-us_sample_tooltip.md":"f745fdf1","guide_indicator.md":"2e1a6254","guide_what-is-klinechart.md":"5254bff0","index.md":"54b9731b","guide_v8-to-v9.md":"e897a36e","guide_overlay.md":"0f5f5841","guide_getting-started.md":"7021aecf","guide_styles.md":"9416915c","guide_instance-api.md":"6ef1c08a","sample_basic.md":"80007630","sample_axis.md":"b22b37e6","sample_candle-type.md":"cddd1021","sample_data.md":"2938204b","sample_i18n.md":"92637d54","sample_overlay.md":"f27fefab","sample_indicator.md":"9f30f27b","sponsor.md":"0af0564d","sample_timezone.md":"c7962eed","sample_theme.md":"3fc59377","sample_tooltip.md":"761071df"} diff --git a/index.html b/index.html index e7c938d19..f7bc652ae 100644 --- a/index.html +++ b/index.html @@ -7,10 +7,10 @@ - + - + @@ -19,7 +19,7 @@
Skip to content

KLineChart

可高度自定义的专业级轻量金融图表

简单易用,轻量流畅,适用场景丰富的 Web 前端金融图表。

KLineChart

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/sample/axis.html b/sample/axis.html index 1be534f1c..e5954c792 100644 --- a/sample/axis.html +++ b/sample/axis.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,17 +26,231 @@ -
Skip to content

坐标轴

Released under the Apache License V2.

- +`

Released under the Apache License V2.

+ \ No newline at end of file diff --git a/sample/basic.html b/sample/basic.html index d593f1272..c1cb30ddc 100644 --- a/sample/basic.html +++ b/sample/basic.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

基础展示

在新窗口中打开
js
import { init } from 'klinecharts'
+    
Skip to content

基础展示

在新窗口中打开
js
import { init } from 'klinecharts'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
   let basePrice = 5000
@@ -81,7 +81,7 @@
 
 const chart = init('k-line-chart')
 chart.applyNewData(genData())
html
<div id="k-line-chart" style="height:430px"/>
<div id="k-line-chart" style="height:430px"/>

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/sample/candle-type.html b/sample/candle-type.html index fb987d632..4dc04da41 100644 --- a/sample/candle-type.html +++ b/sample/candle-type.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

蜡烛类型

在新窗口中打开
js
import { init } from 'klinecharts'
+    
Skip to content

蜡烛类型

在新窗口中打开
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -175,7 +175,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/sample/data.html b/sample/data.html index 75f95377d..c843d56e6 100644 --- a/sample/data.html +++ b/sample/data.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

数据加载

在新窗口中打开
js
import { init } from 'klinecharts'
+    
Skip to content

数据加载

在新窗口中打开
js
import { init } from 'klinecharts'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
   let basePrice = 5000
@@ -123,7 +123,7 @@
     updateData()
   }, 600)
 }
html
<div id="k-line-chart" style="height:430px"/>
<div id="k-line-chart" style="height:430px"/>

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/sample/i18n.html b/sample/i18n.html index 011517659..1d3088d98 100644 --- a/sample/i18n.html +++ b/sample/i18n.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

多语言

在新窗口中打开
js
import { init, registerLocale } from 'klinecharts'
+    
Skip to content

多语言

在新窗口中打开
js
import { init, registerLocale } from 'klinecharts'
 import './index.less'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -183,7 +183,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/sample/indicator.html b/sample/indicator.html index 5ce602e26..bad7bc923 100644 --- a/sample/indicator.html +++ b/sample/indicator.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

技术指标

在新窗口中打开
js
import { init, registerIndicator } from 'klinecharts'
+    
Skip to content

技术指标

在新窗口中打开
js
import { init, registerIndicator } from 'klinecharts'
 import './index.css'
 
 const fruits = [
@@ -277,7 +277,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/sample/overlay.html b/sample/overlay.html index f1787a45e..a5d58e903 100644 --- a/sample/overlay.html +++ b/sample/overlay.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

覆盖物

在新窗口中打开
js
import { init, registerOverlay } from 'klinecharts'
+    
Skip to content

覆盖物

在新窗口中打开
js
import { init, registerOverlay } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -217,7 +217,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/sample/theme.html b/sample/theme.html index 409cda472..719541e75 100644 --- a/sample/theme.html +++ b/sample/theme.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

主题

在新窗口中打开
js
import { init, registerStyles } from 'klinecharts'
+    
Skip to content

主题

在新窗口中打开
js
import { init, registerStyles } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -363,7 +363,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/sample/timezone.html b/sample/timezone.html index cf89ab348..a9e58ad08 100644 --- a/sample/timezone.html +++ b/sample/timezone.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

时区

在新窗口中打开
js
import { init } from 'klinecharts'
+    
Skip to content

时区

在新窗口中打开
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -165,7 +165,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/sample/tooltip.html b/sample/tooltip.html index 0613df0e7..c6f8659b4 100644 --- a/sample/tooltip.html +++ b/sample/tooltip.html @@ -7,13 +7,13 @@ - + - + - + @@ -26,7 +26,7 @@ -
Skip to content

提示条

在新窗口中打开
js
import { init } from 'klinecharts'
+    
Skip to content

提示条

在新窗口中打开
js
import { init } from 'klinecharts'
 import './index.css'
 
 function genData (timestamp = new Date().getTime(), length = 800) {
@@ -323,7 +323,7 @@
   outline: none;
   border: none;
 }

Released under the Apache License V2.

- + \ No newline at end of file diff --git a/sponsor.html b/sponsor.html index 7b165440c..fdca54881 100644 --- a/sponsor.html +++ b/sponsor.html @@ -7,10 +7,10 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

❤️ 赞助

KLineChart 是采用 Apache-2.0 许可的开源项目,使用完全免费。

如果你觉得插件还不错,希望你能在 GitHub 点一个 🌟。如果能够打赏一杯 ☕️,那就真的太感谢了。

对于赞助 KLineChart 的组织或个人,如果需要将组织官网或者个人主页展示在 https://klinecharts.com 首页,请提供付款账号或地址,logo,主页链接等信息,发送邮件到 hu_li888@foxmail.com 。赞助额达到 $800 的,将在大号logo展示区展示,前三名,将使用超大logo展示。

赞助渠道

支付宝

微信支付

加密货币

Released under the Apache License V2.

- + \ No newline at end of file